diff --git a/.babelrc b/.babelrc index ae242300..b4d43ab3 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,3 @@ { - "presets": ["es2015"], - "plugins": ["babel-plugin-add-module-exports"] + "presets": ["@babel/preset-env"] } \ No newline at end of file diff --git a/dist/amplitude.js b/dist/amplitude.js index c441e305..007def4e 100644 --- a/dist/amplitude.js +++ b/dist/amplitude.js @@ -1,13424 +1,2 @@ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(); - else if(typeof define === 'function' && define.amd) - define("Amplitude", [], factory); - else if(typeof exports === 'object') - exports["Amplitude"] = factory(); - else - root["Amplitude"] = factory(); -})(this, function() { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // identity function for calling harmony imports with the correct context -/******/ __webpack_require__.i = function(value) { return value; }; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { -/******/ configurable: false, -/******/ enumerable: true, -/******/ get: getter -/******/ }); -/******/ } -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 47); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _package = __webpack_require__(59); - -module.exports = { - version: _package.version, - - audio: new Audio(), - - active_metadata: {}, - - active_album: "", - - active_index: 0, - - active_playlist: null, - - playback_speed: 1.0, - - callbacks: {}, - - songs: [], - - playlists: {}, - - start_song: "", - - starting_playlist: "", - - starting_playlist_song: "", - - repeat: false, - - repeat_song: false, - - shuffle_list: {}, - - shuffle_on: false, - - default_album_art: "", - - default_playlist_art: "", - - debug: false, - - volume: 0.5, - - pre_mute_volume: 0.5, - - volume_increment: 5, - - volume_decrement: 5, - - soundcloud_client: "", - - soundcloud_use_art: false, - - soundcloud_song_count: 0, - - soundcloud_songs_ready: 0, - - is_touch_moving: false, - - buffered: 0, - - bindings: {}, - - continue_next: true, - - delay: 0, - - player_state: "stopped", - - web_audio_api_available: false, - - context: null, - - source: null, - - analyser: null, - - visualizations: { - available: [], - - active: [], - - backup: "" - }, - - waveforms: { - sample_rate: 100, - - built: [] - } -}; /** - * These variables make Amplitude run. The config is the most important - * containing active settings and parameters. - * - * The config JSON is the global settings for ALL of Amplitude functions. - * This is global and contains all of the user preferences. The default - * settings are set, and the user overwrites them when they initialize - * Amplitude. - * - * @module config - * @type {object} - * @property {string} config.version - The current version of AmplitudeJS. - * @property {object} config.audio - Handles all of the audio. - * @property {object} config.active_metadata - Contains the active metadata for the song. - * @property {string} config.active_album - Holds the active album name. Used to check and see if the album changed and run the album changed callback. - * @property {number} config.active_index - Contains the index of the actively playing song. - * @property {string} config.active_playlist - Contains the key to the active playlist index. - * @property {number} config.playback_speed - Sets the initial playback speed of the song. The values for this can be 1.0, 1.5, 2.0 - * @property {object} config.callbacks - The user can pass a JSON object with a key => value store of callbacks to be run at certain events. - * @property {array} config.songs - Contains all of the songs the user has passed to Amplitude to use. - * @property {object} config.playlists - Contains all of the playlists the user created. - * @property {object} config.start_song - The index of the song that AmplitudeJS should start with. - * @property {string} config.starting_playlist - The starting playlist the player will intiialize to. - * @property {string} config.starting_playlist_song - The index of the song in the playlist that should be started. - * @property {boolean} config.repeat - When repeat is on, when the song ends the song will replay itself. - * @property {object} config.shuffle_list - When shuffled, gets populated with the songs the user provided in a random order. - * @property {boolean} config.shuffle_on - When on, gets set to true so when traversing through songs, AmplitudeJS knows whether or not to use the songs object or the shuffle_list - * @property {string} config.default_album_art - The user can set default album art to be displayed if the song they set doesn't contain album art. - * @property {string} config.default_playlist_art - The user can set default playlist art to be displayed if the playlist they are setting meta data for doesn't contain an art picture. - * @property {boolean} config.debug - When set to true, AmplitudeJS will print to the console any errors providing helpful feedback to the user. - * @property {number} config.volume - The user can set the initial volume to a number between 0 and 1 over-riding the default of .5 - * @property {number} config.pre_mute_volume - This is set on mute so that when a user un-mutes AmplitudeJS knows what to restore the volume to. - * @property {number} config.volume_increment - The default values are an integer between 1 and 100 for how much the volume should increase when the user presses the volume up button. - * @property {number} config.volume_decrement - The default values are an integer between 1 and 100 for how much the volume should decrease when the user presses the volume down button. - * @property {string} config.soundcloud_client - When using SoundCloud, the user will have to provide their API Client ID - * @property {boolean} config.soundcloud_use_art - The user can set this to true and AmplitudeJS will use the album art for the song returned from the Soundcloud API - * @property {number} config.soundcloud_song_count - Used on config to count how many songs are from Soundcloud and compare it to how many are ready for when to move to the rest of the configuration - * @property {number} config.soundcloud_songs_ready - Used on config to count how many songs are ready so when we get all of the data from the SoundCloud API that we need this should match the SoundCloud song count meaning we can move to the rest of the config. - * @property {integer} config.is_touch_moving - Flag for if the user is moving the screen. - * @property {boolean} config.buffered - How much of the song is buffered. - * @property {object} config.bindings - Array of bindings to certain key events. - * @property {boolean} config.continue_next - Determines when a song ends, we should continue to the next song. - * @property {number} config.delay - Sets the delay between songs in MS. - * @property {boolean} config.use_web_audio_api - Flag that determines if the user wants to use Web Audio API Components. - * @property {boolean} config.web_audio_api_available - Flag that determines if the Web Audio API is available. - * @property {object} config.context - Web Audio API Context - * @property {object} config.source - Web Audio API Source - * @property {object} config.analyser - Web Audio API Analyser - * @property {string} config.player_state - The current state of the player. - */ - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _checks = __webpack_require__(5); - -var _checks2 = _interopRequireDefault(_checks); - -var _audioNavigation = __webpack_require__(3); - -var _audioNavigation2 = _interopRequireDefault(_audioNavigation); - -var _playPauseElements = __webpack_require__(2); - -var _playPauseElements2 = _interopRequireDefault(_playPauseElements); - -var _metaDataElements = __webpack_require__(7); - -var _metaDataElements2 = _interopRequireDefault(_metaDataElements); - -var _callbacks = __webpack_require__(9); - -var _callbacks2 = _interopRequireDefault(_callbacks); - -var _debug = __webpack_require__(4); - -var _debug2 = _interopRequireDefault(_debug); - -var _visualizations = __webpack_require__(16); - -var _visualizations2 = _interopRequireDefault(_visualizations); - -var _configState = __webpack_require__(6); - -var _configState2 = _interopRequireDefault(_configState); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Interacts directly with native functions of the Audio element. Logic - * leading up to these methods are handled by click handlers which call - * helpers and visual synchronizers. These are the core functions of AmplitudeJS. - * Every other function that leads to these prepare the information to be - * acted upon by these functions. - * - * @module core/Core - */ - - -/** - * Import the Visualizations from the FX module. - * @module fx/visualizations - */ - - -/** - * Imports AmplitudeJS Callback Utility - * @module utilities/callbacks - */ - - -/** - * Imports the Play/Pause Visual Elements module. - * @module visual/playPauseElements - */ - - -/** - * Imports the Checks module. - * @module utilities/checks - */ -var Core = function () { - /** - * Plays the active song. If the current song is live, it reconnects - * the stream before playing. - * - * Public Accessor: Amplitude.play() - * - * @access public - */ - function play() { - _visualizations2.default.stop(); - _visualizations2.default.run(); - - /* - If the audio is live we re-conenct the stream. - */ - if (_config2.default.active_metadata.live) { - reconnectStream(); - } - - /* - Mobile remote sources need to be reconnected on play. I think this is - because mobile browsers are optimized not to load all resources - for speed reasons. We only do this if mobile and the paused button - is not clicked. If the pause button was clicked then we don't reconnect - or the user will lose their place in the stream. - */ - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && !_config2.default.paused) { - reconnectStream(); - } - - /* - Play the song and set the playback rate to the playback - speed. - */ - var playPromise = _config2.default.audio.play(); - - if (playPromise !== undefined) { - playPromise.then(function (_) {}).catch(function (error) {}); - } - _config2.default.audio.play(); - _config2.default.audio.playbackRate = _config2.default.playback_speed; - - /* - Sets the state of the player. - */ - _configState2.default.setPlayerState(); - } - - /** - * Pauses the active song. If it's live, it disconnects the stream. - * - * Public Accessor: Amplitude.pause() - * - * @access public - */ - function pause() { - _visualizations2.default.stop(); - - /* - Pause the active song. - */ - _config2.default.audio.pause(); - - /* - Flag that pause button was clicked. - */ - _config2.default.paused = true; - - /* - If the song is live, we disconnect the stream so we aren't - saving it to memory. - */ - if (_config2.default.active_metadata.live) { - disconnectStream(); - } - - /* - Sets the state of the player. - */ - _configState2.default.setPlayerState(); - } - - /** - * Stops the active song by setting the current song time to 0. - * When the user resumes, it will be from the beginning. - * If it's a live stream it disconnects. - * - * Public Accessor: Amplitude.stop() - * - * @access public - */ - function stop() { - _visualizations2.default.stop(); - - /* - Set the current time of the song to 0 which will reset the song. - */ - if (_config2.default.audio.currentTime != 0) { - _config2.default.audio.currentTime = 0; - } - - /* - Run pause so the song will stop - */ - _config2.default.audio.pause(); - - /* - If the song is live, disconnect the stream. - */ - if (_config2.default.active_metadata.live) { - disconnectStream(); - } - - /* - Sets the state of the player. - */ - _configState2.default.setPlayerState(); - - /* - Run the stop callback - */ - _callbacks2.default.run("stop"); - } - - /** - * Sets the song volume. - * - * Public Accessor: Amplitude.setVolume( volumeLevel ) - * - * @access public - * @param {number} volumeLevel - A number between 1 and 100 as a percentage of - * min to max for a volume level. - */ - function setVolume(volumeLevel) { - /* - If the volume is set to mute somewhere else, we sync the display. - */ - if (volumeLevel == 0) { - _config2.default.audio.muted = true; - } else { - _config2.default.audio.muted = false; - } - - /* - Sets the volume in the config so we can reference it later on. - */ - _config2.default.volume = volumeLevel; - - /* - Set the volume of the active song. - */ - _config2.default.audio.volume = volumeLevel / 100; - } - - /** - * Sets the song percentage. If it's a live song, we ignore this because - * we can't skip ahead. This is an issue if you have a playlist with - * a live source. - * - * Public Accessor: Amplitude.setSongLocation( songPercentage ) - * - * @access public - * @param {number} songPercentage - A number between 1 and 100 as a percentage of song completion. - */ - function setSongLocation(songPercentage) { - /* - As long as the song is not live, we can set the current time of the - song to the percentage the user passed in. - */ - if (!_config2.default.active_metadata.live) { - _config2.default.audio.currentTime = _config2.default.audio.duration * (songPercentage / 100); - } - } - - /** - * Skips to a location in a song - * - * Public Accessor: Amplitude.skipToLocation( seconds ) - * - * @access public - * @param {number} seconds - An integer containing the seconds to skip to - */ - function skipToLocation(seconds) { - /* - When the active song can be played through, we can check to - see if the seconds will work. We only bind the event handler - once and remove it once it's fired. - */ - _config2.default.audio.addEventListener("canplaythrough", function () { - /* - If the active song duration is greater than or equal to the - amount of seconds the user wants to skip to and the seconds - is greater than 0, we skip to the seconds defined. - */ - if (_config2.default.audio.duration >= seconds && seconds > 0) { - _config2.default.audio.currentTime = seconds; - } else { - _debug2.default.writeMessage("Amplitude can't skip to a location greater than the duration of the audio or less than 0"); - } - }, { once: true }); - } - - /** - * Disconnects the live stream - * - * Public Accessor: Amplitude.disconnectStream() - * - * @access public - */ - function disconnectStream() { - _config2.default.audio.src = ""; - _config2.default.audio.load(); - } - - /** - * Reconnects the live stream - * - * Public Accessor: Amplitude.reconnectStream() - * - * @access public\ - */ - function reconnectStream() { - _config2.default.audio.src = _config2.default.active_metadata.url; - _config2.default.audio.load(); - } - - /** - * Sets the playback speed for the song. - * - * @param {number} playbackSpeed The speed we want the song to play back at. - */ - function setPlaybackSpeed(playbackSpeed) { - /* - Set the config playback speed. - */ - _config2.default.playback_speed = playbackSpeed; - - /* - Set the active song playback rate. - */ - _config2.default.audio.playbackRate = _config2.default.playback_speed; - } - - /* - Return publically facing functions - */ - return { - play: play, - pause: pause, - stop: stop, - setVolume: setVolume, - setSongLocation: setSongLocation, - skipToLocation: skipToLocation, - disconnectStream: disconnectStream, - reconnectStream: reconnectStream, - setPlaybackSpeed: setPlaybackSpeed - }; -}(); - -/** - * Import the Config State module. - * @module utilities/configState - */ - - -/** - * Imports AmplitudeJS Debug Utility - * @module utilities/debug - */ - - -/** - * Imports the Meta Data Visual Elements module. - * @module visual/metaDataElements - */ - - -/** - * Imports the Audio Navigation module. - * @module utilities/audioNavigation - */ -/** - * Imports the config module - * @module config - */ -exports.default = Core; -module.exports = exports["default"]; - -/***/ }), -/* 2 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Defines the visual representation of AmplitudeJS play pause elements. - * @module visual/PlayPauseElements - */ -var PlayPauseElements = function () { - /** - * Syncs all play pause elements. - * - * @access public - */ - function sync() { - syncGlobal(); - syncPlaylist(); - syncSong(); - syncSongInPlaylist(); - } - - /** - * Syncs the global play pause buttons to the state of the active song. - * - * @access public - */ - function syncGlobal() { - /* - Get the active song state. - */ - var state = _config2.default.audio.paused ? "paused" : "playing"; - - /* - Get all play pause buttons. - */ - var playPauseElements = document.querySelectorAll(".amplitude-play-pause"); - - /* - Iterate over all of the play pause elements syncing the - display visually. - */ - for (var i = 0; i < playPauseElements.length; i++) { - /* - Grab the playlist and song attributes from the element. - */ - var playlist = playPauseElements[i].getAttribute("data-amplitude-playlist"); - var song = playPauseElements[i].getAttribute("data-amplitude-song-index"); - - /* - This method is responsible for only the global elements, - so we make sure there are no playlist or songs defined on - the element. - */ - if (playlist == null && song == null) { - /* - Determines what classes we should add and remove - from the elements. - */ - switch (state) { - case "playing": - setElementPlay(playPauseElements[i]); - break; - case "paused": - setElementPause(playPauseElements[i]); - break; - } - } - } - } - - /** - * Syncs the main playlist play pause buttons to the state of the active song. - * - * @access public - */ - function syncPlaylist() { - var state = _config2.default.audio.paused ? "paused" : "playing"; - - /* - Get all of the main playlist play pause elements - */ - var playlistPlayPauseElements = document.querySelectorAll('.amplitude-play-pause[data-amplitude-playlist="' + _config2.default.active_playlist + '"]'); - - /* - Iterate over the play pause elements, syncing the state accordingly. - */ - for (var i = 0; i < playlistPlayPauseElements.length; i++) { - /* - Grab the song attributes from the element. - */ - var song = playlistPlayPauseElements[i].getAttribute("data-amplitude-song-index"); - - /* - We want only the play pause elements for the main on a - playlist nothing else. We have another method for the - song in playlist play pause method. - */ - if (song == null) { - /* - Determines what classes we should add and remove - from the elements. - */ - switch (state) { - case "playing": - setElementPlay(playlistPlayPauseElements[i]); - break; - case "paused": - setElementPause(playlistPlayPauseElements[i]); - break; - } - } - } - } - - /** - * Syncs the song play pause buttons to the state of the active song. - * - * @access public - */ - function syncSong() { - var state = _config2.default.audio.paused ? "paused" : "playing"; - - /* - Get all of the individual song play pause buttons. These have an - amplitude-song-index that matches the active index attribute. - */ - var songPlayPauseElements = document.querySelectorAll('.amplitude-play-pause[data-amplitude-song-index="' + _config2.default.active_index + '"]'); - - /* - Iterate over all of the song play pause elements - */ - for (var i = 0; i < songPlayPauseElements.length; i++) { - /* - Grab the playlist attributes from the element. - */ - var playlist = songPlayPauseElements[i].getAttribute("data-amplitude-playlist"); - - /* - We want only the song play pause buttons, not ones scoped in a playlist. - */ - if (playlist == null) { - /* - Determines what classes we should add and remove - from the elements. - */ - switch (state) { - case "playing": - setElementPlay(songPlayPauseElements[i]); - break; - case "paused": - setElementPause(songPlayPauseElements[i]); - break; - } - } - } - } - - /** - * Syncs the song in playlist play pause buttons to the state of - * the active song. - * - * @access public - */ - function syncSongInPlaylist() { - var state = _config2.default.audio.paused ? "paused" : "playing"; - - var activePlaylistIndex = _config2.default.active_playlist != "" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null; - - /* - Get all of the individual song play pause buttons. These have an - amplitude-song-index attribute. Some have amplitude-playlist which - means they are individual songs within a playlist. - */ - var songInPlaylistPlayPauseElements = document.querySelectorAll('.amplitude-play-pause[data-amplitude-song-index="' + activePlaylistIndex + '"][data-amplitude-playlist="' + _config2.default.active_playlist + '"]'); - - /* - Iterate over all of the individual play pause elements for songs inspect - a playlist. - */ - for (var i = 0; i < songInPlaylistPlayPauseElements.length; i++) { - /* - Determines what classes we should add and remove - from the elements. - */ - switch (state) { - case "playing": - setElementPlay(songInPlaylistPlayPauseElements[i]); - break; - case "paused": - setElementPause(songInPlaylistPlayPauseElements[i]); - break; - } - } - } - - /** - * Sets all of the play pause buttons to paused. - * - * @access public - */ - function syncToPause() { - /* - Gets all of the play pause elements - */ - var playPauseElements = document.querySelectorAll(".amplitude-play-pause"); - - /* - Sets all of the elements to pause - */ - for (var i = 0; i < playPauseElements.length; i++) { - setElementPause(playPauseElements[i]); - } - } - - /** - * Sets an element to be playing by removing the 'amplitude-paused' class - * and adding the 'amplitude-playing' class - * - * @access public - * @param {element} element - The element getting the playing class added. - */ - function setElementPlay(element) { - element.classList.add("amplitude-playing"); - element.classList.remove("amplitude-paused"); - } - - /** - * Sets an element to be paused by adding the 'amplitude-paused' class - * and removing the 'amplitude-playing' class - * - * @access public - * @param {element} element - The element getting the paused class added. - */ - function setElementPause(element) { - element.classList.remove("amplitude-playing"); - element.classList.add("amplitude-paused"); - } - - /** - * Returns the public facing methods - */ - return { - sync: sync, - syncGlobal: syncGlobal, - syncPlaylist: syncPlaylist, - syncSong: syncSong, - syncSongInPlaylist: syncSongInPlaylist, - syncToPause: syncToPause - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = PlayPauseElements; -module.exports = exports["default"]; - -/***/ }), -/* 3 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -var _callbacks = __webpack_require__(9); - -var _callbacks2 = _interopRequireDefault(_callbacks); - -var _checks = __webpack_require__(5); - -var _checks2 = _interopRequireDefault(_checks); - -var _playPauseElements = __webpack_require__(2); - -var _playPauseElements2 = _interopRequireDefault(_playPauseElements); - -var _songSliderElements = __webpack_require__(14); - -var _songSliderElements2 = _interopRequireDefault(_songSliderElements); - -var _songPlayedProgressElements = __webpack_require__(20); - -var _songPlayedProgressElements2 = _interopRequireDefault(_songPlayedProgressElements); - -var _timeElements = __webpack_require__(15); - -var _timeElements2 = _interopRequireDefault(_timeElements); - -var _metaDataElements = __webpack_require__(7); - -var _metaDataElements2 = _interopRequireDefault(_metaDataElements); - -var _containerElements = __webpack_require__(49); - -var _containerElements2 = _interopRequireDefault(_containerElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Audio Navigation Utility. - * - * @module utilities/AudioNavigation - */ - - -/** - * Meta Data Elements Module - * - * @module visual/MetaDataElements - */ - - -/** - * Imports the Song Played Progress Elements Module - * - * @module visual/SongPlayedProgressElements - */ - - -/** - * Imports the Play Pause Elements Module - * - * @module visual/PlayPauseElements - */ - - -/** - * Imports the Callbacks Module - * - * @module utilities/Callbacks - */ -/** - * Imports the config module - * @module config - */ -var AudioNavigation = function () { - /** - * Sets the next song - * - * @access public - * @param {boolean} [songEnded=false] If the song ended, this is set to true - * so we take into effect the repeat setting. - */ - function setNext() { - var songEnded = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - - /* - Initializes the next index variable. This will be the - index of the song that is next. - */ - var nextIndex = null; - var nextSong = {}; - - /* - Ensure we don't loop in the playlist if config.repeat is not true - */ - var endOfList = false; - - /* - Determines if we are repeating the song or not. If we are repeating, - the next song will be the same song index. - */ - if (_config2.default.repeat_song) { - /* - If the playlist is shuffled, get the now playing index. - */ - if (_config2.default.shuffle_on) { - nextIndex = _config2.default.shuffle_list[_config2.default.active_index].index; - nextSong = _config2.default.shuffle_list[nextIndex]; - } else { - nextIndex = _config2.default.active_index; - nextSong = _config2.default.songs[nextIndex]; - } - } else { - /* - If the shuffle is on, we use the shuffled list of - songs to determine our next song. - */ - if (_config2.default.shuffle_on) { - /* - If the active shuffle index + 1 is less than the length, then - we use the next shuffle otherwise we go to the beginning - of the shuffle list. - */ - if (parseInt(_config2.default.active_index) + 1 < _config2.default.shuffle_list.length) { - /* - Set the next index to be the index of the song in the shuffle list. - */ - nextIndex = parseInt(_config2.default.active_index) + 1; - } else { - nextIndex = 0; - endOfList = true; - } - - nextSong = _config2.default.shuffle_list[nextIndex]; - } else { - /* - If the active index + 1 is less than the length of the songs, then - we use the next song otherwise we go to the beginning of the - song list. - */ - if (parseInt(_config2.default.active_index) + 1 < _config2.default.songs.length) { - nextIndex = parseInt(_config2.default.active_index) + 1; - } else { - nextIndex = 0; - endOfList = true; - } - - /* - Sets the next index. - */ - nextSong = _config2.default.songs[nextIndex]; - } - } - - /* - Change the song after the next button has been pressed. - */ - changeSong(nextSong, nextIndex); - - /* - If it's the end of the list and repeat is not on, do nothing. - */ - if (endOfList && !_config2.default.repeat) {} else { - /* - If the song has ended and repeat is on, play the song. - */ - if (!(songEnded && !_config2.default.repeat && endOfList)) { - _core2.default.play(); - } - } - - /* - Sync the play pause elements and run the - after next callback. - */ - _playPauseElements2.default.sync(); - _callbacks2.default.run("next"); - - /* - If we repeated the song, run the repeat song callback. - */ - if (_config2.default.repeat_song) { - _callbacks2.default.run("song_repeated"); - } - } - - /** - * Sets the next song in a playlist - * - * @param {string} playlist - The playlist being shuffled - * @param {boolean} [songEnded=false] - If the song ended, this is set to true - * so we take into effect the repeat setting. - */ - function setNextPlaylist(playlist) { - var songEnded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - /* - Initializes the next index - */ - var nextIndex = null; - var nextSong = {}; - - /* - Ensure we don't loop in the playlist if config.repeat is not true - */ - var endOfList = false; - - /* - If we are repeating the song, then we just start the song over. - */ - if (_config2.default.repeat_song) { - /* - If the playlist is shuffled, get the now playing index. - */ - if (_config2.default.playlists[playlist].shuffle) { - nextIndex = _config2.default.playlists[playlist].active_index; - nextSong = _config2.default.playlists[playlist].shuffle_list[nextIndex]; - } else { - nextIndex = _config2.default.playlists[playlist].active_index; - nextSong = _config2.default.playlists[playlist].songs[nextIndex]; - } - } else { - /* - If the playlist is shuffled we get the next index of the playlist. - */ - if (_config2.default.playlists[playlist].shuffle) { - /* - If the active shuffle index + 1 is less than the length of the shuffle list, - then we use the next shuffle otherwise we go to the beginning of the shuffle list. - */ - if (parseInt(_config2.default.playlists[playlist].active_index) + 1 < _config2.default.playlists[playlist].shuffle_list.length) { - /* - Set the next index to be the index of the song in the shuffle list. - */ - nextIndex = _config2.default.playlists[playlist].active_index + 1; - } else { - nextIndex = 0; - endOfList = true; - } - - nextSong = _config2.default.playlists[playlist].shuffle_list[nextIndex]; - } else { - /* - If the active index +1 is less than the length of the songs in the playlist, - then we use the next song otherwise we go to the beginning of the playlist. - */ - if (parseInt(_config2.default.playlists[playlist].active_index) + 1 < _config2.default.playlists[playlist].songs.length) { - nextIndex = parseInt(_config2.default.playlists[playlist].active_index) + 1; - } else { - nextIndex = 0; - endOfList = true; - } - - /* - Sets the next song. - */ - nextSong = _config2.default.playlists[playlist].songs[nextIndex]; - } - } - - /* - Sets the active playlist to the playlist we are on. - */ - setActivePlaylist(playlist); - - /* - Change the song within the playlist. - */ - changeSongPlaylist(playlist, nextSong, nextIndex); - - /* - If it's the end of the playlist and we aren't repeating, do nothing. - */ - if (endOfList && !_config2.default.repeat) {} else { - if (!(songEnded && !_config2.default.repeat && endOfList)) { - _core2.default.play(); - } - } - - /* - Sync the play pause buttons. - */ - _playPauseElements2.default.sync(); - _callbacks2.default.run("next"); - - /* - Repeat the song. - */ - if (_config2.default.repeat_song) { - _callbacks2.default.run("song_repeated"); - } - } - - /** - * Sets the previous song on the global songs array. - * - * @access private - */ - function setPrevious() { - /* - Initializes the previous index - */ - var previousIndex = null; - var previousSong = {}; - - /* - If we are repeating the song, then we just start the song over. - */ - if (_config2.default.repeat_song) { - /* - If the config is shuffled, get the now playing index. - */ - if (_config2.default.shuffle_on) { - previousIndex = _config2.default.active_index; - previousSong = _config2.default.shuffle_list[previousIndex]; - } else { - previousIndex = _config2.default.active_index; - previousSong = _config2.default.songs[previousIndex]; - } - } else { - /* - Get the previous index. If the previous index will be less than 0, get the - last song of the array and continue. - */ - if (parseInt(_config2.default.active_index) - 1 >= 0) { - previousIndex = parseInt(_config2.default.active_index - 1); - } else { - previousIndex = parseInt(_config2.default.songs.length - 1); - } - - /* - If the config is shuffled, we grab the song from the shuffle list - */ - if (_config2.default.shuffle_on) { - /* - Grab song from the shuffle list - */ - previousSong = _config2.default.shuffle_list[previousIndex]; - } else { - /* - Grab song from the songs array - */ - previousSong = _config2.default.songs[previousIndex]; - } - } - /* - Change the song after the next button has been pressed. - */ - changeSong(previousSong, previousIndex); - - /* - Play the newest song. - */ - _core2.default.play(); - - /* - Sync the play pause elements and run the - after next callback. - */ - _playPauseElements2.default.sync(); - _callbacks2.default.run("prev"); - - /* - If we repeated the song, run the repeat song callback. - */ - if (_config2.default.repeat_song) { - _callbacks2.default.run("song_repeated"); - } - } - - /** - * Sets the previous playlist song. - * - * @access private - * - * @prop {string} playlist - The playlist we are navigating in. - */ - function setPreviousPlaylist(playlist) { - /* - Initializes the previous index - */ - var previousIndex = null; - var previousSong = {}; - - /* - If we are repeating the song, then we just start the song over. - */ - if (_config2.default.repeat_song) { - /* - If the playlist is shuffled, get the now playing index. - */ - if (_config2.default.playlists[playlist].shuffle) { - previousIndex = _config2.default.playlists[playlist].active_index; - previousSong = _config2.default.playlists[playlist].shuffle_list[previousIndex]; - } else { - previousIndex = _config2.default.playlists[playlist].active_index; - previousSong = _config2.default.playlists[playlist].songs[previousIndex]; - } - } else { - /* - Get the previous index. If the previous index will be less than 0, get the - last song of the array and continue. - */ - if (parseInt(_config2.default.playlists[playlist].active_index) - 1 >= 0) { - previousIndex = parseInt(_config2.default.playlists[playlist].active_index - 1); - } else { - previousIndex = parseInt(_config2.default.playlists[playlist].songs.length - 1); - } - - /* - If the playlist is shuffled, we grab the song from the shuffle list - */ - if (_config2.default.playlists[playlist].shuffle) { - /* - Grab song from the shuffle list - */ - previousSong = _config2.default.playlists[playlist].shuffle_list[previousIndex]; - } else { - /* - Grab song from the songs array - */ - previousSong = _config2.default.playlists[playlist].songs[previousIndex]; - } - } - - /* - Sets the active playlist to the playlist we are on. - */ - setActivePlaylist(playlist); - - /* - Change the song within the playlist. - */ - changeSongPlaylist(playlist, previousSong, previousIndex); - - /* - Plays the song - */ - _core2.default.play(); - - /* - Sync the play pause buttons. - */ - _playPauseElements2.default.sync(); - _callbacks2.default.run("prev"); - - /* - Repeat the song. - */ - if (_config2.default.repeat_song) { - _callbacks2.default.run("song_repeated"); - } - } - - /** - * Change song in the songs array. - * - * @access private - * @prop {object} song - The song we are changing to. - * @prop {number} index - The index we are changing to. - * @prop {boolean} direct - Determines if it was a direct click on the song. - * We then don't care if shuffle is on or not. - */ - function changeSong(song, index) { - var direct = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - - /* - Prepare the song change. - */ - prepareSongChange(song); - - /* - Change the song. - */ - _config2.default.audio.src = song.url; - _config2.default.active_metadata = song; - _config2.default.active_album = song.album; - - _config2.default.active_index = parseInt(index); - - /* - Set new information now that the song has changed. - */ - afterSongChange(direct); - } - - /** - * Handles a song change in the playlist - * - * @access private - * @prop {string} playlist - The playlist we are changing the song on. - * @prop {object} song - The song we are changing to in the playlist. - * @prop {number} index - The inded of the song we are changing to in the playlist. - * @prop {boolean} direct - Determines if it was a direct click on the song. We - * then don't care if shuffle is on or not - */ - function changeSongPlaylist(playlist, song, index) { - var direct = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; - - /* - Prepare the song change. - */ - prepareSongChange(song); - - /* - Change the song. - */ - _config2.default.audio.src = song.url; - _config2.default.active_metadata = song; - _config2.default.active_album = song.album; - _config2.default.active_index = null; - - _config2.default.playlists[playlist].active_index = parseInt(index); - - /* - Set new information now that the song has changed. - */ - afterSongChange(direct); - } - - /** - * Prepares a song change - * - * @access private - * @prop {object} song - The song we change to. - */ - function prepareSongChange(song) { - /* - Stop the current song. - */ - _core2.default.stop(); - - /* - Sync all of the elements to a stopped song. - */ - _playPauseElements2.default.syncToPause(); - _songSliderElements2.default.resetElements(); - _songPlayedProgressElements2.default.resetElements(); - _timeElements2.default.resetCurrentTimes(); - - /* - If an album changes, fire an album change. - */ - if (_checks2.default.newAlbum(song)) { - _callbacks2.default.run("album_change"); - } - } - - /** - * Updates data on the display after a song has changed. - * - * @prop {boolean} direct - Determines if it was a direct click on the song. - * We then don't care if shuffle is on or not. - * - * @access private - */ - function afterSongChange(direct) { - _metaDataElements2.default.displayMetaData(); - _containerElements2.default.setActive(direct); - _timeElements2.default.resetDurationTimes(); - - /* - Run the song change callback. - */ - _callbacks2.default.run("song_change"); - } - - /** - * Sets the active playlist - * - * @access public - * @param {string} playlist - The string of the playlist being set to active. - */ - function setActivePlaylist(playlist) { - /* - If the active playlist is different than the playlist being set, - we run the `playlist_changed` callback. - */ - if (_config2.default.active_playlist != playlist) { - _callbacks2.default.run("playlist_changed"); - /* - Set the active playlist to the playlist parameter. Only need to - set if it's different. - */ - _config2.default.active_playlist = playlist; - - if (playlist != null) { - _config2.default.playlists[playlist].active_index = 0; - } - } - } - - /* - Return the publically facing methods - */ - return { - setNext: setNext, - setNextPlaylist: setNextPlaylist, - setPrevious: setPrevious, - setPreviousPlaylist: setPreviousPlaylist, - changeSong: changeSong, - changeSongPlaylist: changeSongPlaylist, - setActivePlaylist: setActivePlaylist - }; -}(); - -/** - * Container Elements Module - * - * @module visual/ContainerElements - */ - - -/** - * Imports the Time Elements Module - * - * @module visual/TimeElements - */ - - -/** - * Imports the Song Slider Elements Module - * - * @module visual/SongSliderElements - */ - - -/** - * Imports the Checks Module - * - * @module utilities/Checks - */ - - -/** - * Imports the Core Module - * - * @module core/Core - */ -exports.default = AudioNavigation; -module.exports = exports["default"]; - -/***/ }), -/* 4 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles the debugging of AmplitudeJS - * @module utilities/Debug - */ -var Debug = function () { - /** - * Writes out debug message to the console if enabled. - * - * Public Accessor: Debug.writeMessage( message ) - * - * @access public - * @param {string} message - The string that gets printed to alert the user of a debugging error. - */ - function writeMessage(message) { - /* - If the user has flagged AmplitudeJS to debug, we print out a message - to the console. - */ - if (_config2.default.debug) { - console.log(message); - } - } - - /* - Returns the public facing methods - */ - return { - writeMessage: writeMessage - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = Debug; -module.exports = exports["default"]; - -/***/ }), -/* 5 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Checks Module. Checks for new songs, albums, and playlists - * - * @module utilities/Checks - */ -var Checks = function () { - /** - * Checks to see if the new song to be played is different than the song - * that is currently playing. To be true, the user would have selected - * play on a new song with a new index. To be false, the user would have - * clicked play/pause on the song that was playing. - * - * Public Accessor: Checks.newSong( playlist, songIndex ) - * @access public - * @param {string} playlist - The playlist we are checking the new song for. Could be null - * @param {number} songIndex - The index of the new song to be played. - * @returns {boolean} True if we are setting a new song, false if we are not setting a new song. - */ - function newSong(playlist, songIndex) { - /* - If the playlists don't match, then it's definitely a new song. - */ - if (_config2.default.active_playlist != playlist) { - return true; - } else { - /* - If we aren't in a playlist, we check the active index. - */ - if (_config2.default.active_playlist == null && playlist == null) { - /* - If the active indexes don't match, then it's a new song. - */ - if (_config2.default.active_index != songIndex) { - return true; - } else { - return false; - } - } else { - /* - If we are in a playlist, then we check to see if the - new song index matches the active index. - */ - if (_config2.default.active_playlist == playlist && _config2.default.playlists[playlist].active_index != songIndex) { - return true; - } else { - return false; - } - } - } - } - - /** - * Checks to see if there is a new album - * - * Public Accessor: Checks.newAlbum( album ) - * - * @access public - * @param {string} album - Checks to see if the new song will have a new album. - * @returns {boolean} True if there is a new album, false if there is not a new ablum. - */ - function newAlbum(album) { - if (_config2.default.active_album != album) { - return true; - } else { - return false; - } - } - - /** - * Checks to see if there is a new playlist - * - * Public Accessor: Checks.newPlaylist( playlist ) - * - * @access public - * @param {string} playlist - The playlist passed in to check against the active playlist. - * @returns {boolean} True if there is a new playlist, false if there is not a new playlist. - */ - function newPlaylist(playlist) { - if (_config2.default.active_playlist != playlist) { - return true; - } else { - return false; - } - } - - /** - * Determines if the string passed in is a URL or not - * - * Public Accessor: AmplitudeHelpers.isURL( url ) - * - * @access public - * @param {string} url - The string we are testing to see if it's a URL. - * @returns {boolean} True if the string is a url, false if it is not. - */ - function isURL(url) { - /* - Test the string against the URL pattern and return if it matches - */ - var pattern = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/; - - return pattern.test(url); - } - - /** - * Determines if what is passed in is an integer or not. - * - * Public Accessor: AmplitudeHelpers.isInt( int ) - * - * @access public - * @param {string|number} int - The variable we are testing to see is an integer or not. - * @returns {boolean} If the variable is an integer or not. - */ - function isInt(int) { - return !isNaN(int) && parseInt(Number(int)) == int && !isNaN(parseInt(int, 10)); - } - - /** - * Returns public facing methods - */ - return { - newSong: newSong, - newAlbum: newAlbum, - newPlaylist: newPlaylist, - isURL: isURL, - isInt: isInt - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = Checks; -module.exports = exports["default"]; - -/***/ }), -/* 6 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles the state of the config object. - * - * @module utilities/ConfigState - */ -var ConfigState = function () { - /** - * Resets the config to the default state. This is called on initialize - * to ensure the user's config is what matters. - * - * Public Accessor: AmplitudeHelpers.resetConfig() - * - * @access public - */ - function resetConfig() { - _config2.default.audio = new Audio(); - _config2.default.active_metadata = {}; - _config2.default.active_album = ""; - _config2.default.active_index = 0; - _config2.default.active_playlist = null; - _config2.default.playback_speed = 1.0; - _config2.default.callbacks = {}; - _config2.default.songs = []; - _config2.default.playlists = {}; - _config2.default.start_song = ""; - _config2.default.starting_playlist = ""; - _config2.default.starting_playlist_song = ""; - _config2.default.repeat = false; - _config2.default.shuffle_list = {}; - _config2.default.shuffle_on = false; - _config2.default.default_album_art = ""; - _config2.default.default_playlist_art = ""; - _config2.default.debug = false; - _config2.default.volume = 0.5; - _config2.default.pre_mute_volume = 0.5; - _config2.default.volume_increment = 5; - _config2.default.volume_decrement = 5; - _config2.default.soundcloud_client = ""; - _config2.default.soundcloud_use_art = false; - _config2.default.soundcloud_song_count = 0; - _config2.default.soundcloud_songs_ready = 0; - _config2.default.continue_next = true; - } - - /** - * Sets the state of the player. - */ - function setPlayerState() { - /* - If paused and the current time is 0 the player is stopped. - */ - if (_config2.default.audio.paused && _config2.default.audio.currentTime == 0) { - _config2.default.player_state = "stopped"; - } - - /* - If paused and the current time is greater than 0 the player is - paused. - */ - if (_config2.default.audio.paused && _config2.default.audio.currentTime > 0) { - _config2.default.player_state = "paused"; - } - - /* - If playing, the current state is playing. - */ - if (!_config2.default.audio.paused) { - _config2.default.player_state = "playing"; - } - } - - /* - Returns the public facing methods - */ - return { - resetConfig: resetConfig, - setPlayerState: setPlayerState - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = ConfigState; -module.exports = exports["default"]; - -/***/ }), -/* 7 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * These methods help display the audio's meta data - * - * @module visual/MetaDataElements - */ -var MetaDataElements = function () { - /** - * Displays the active song's metadata. This is called after a song has - * been changed. This method takes the active song and displays the - * metadata. So once the new active song is set, we update all of the - * screen elements. - * - * @access public - */ - function displayMetaData() { - /* - Define the image meta data keys. These are managed separately - since we aren't actually changing the inner HTML of these elements. - */ - var imageMetaDataKeys = ["cover_art_url", "station_art_url", "podcast_episode_cover_art_url"]; - - /* - Get all of the song info elements - */ - var songInfoElements = document.querySelectorAll("[data-amplitude-song-info]"); - - /* - Iterate over all of the song info elements. We will either - set these to the new values, or clear them if the active song - doesn't have the info set. - */ - for (var i = 0; i < songInfoElements.length; i++) { - /* - Get the info so we can check if the active meta data has the - key. - */ - var info = songInfoElements[i].getAttribute("data-amplitude-song-info"); - - /* - Grab the playlist and song index. - */ - var playlist = songInfoElements[i].getAttribute("data-amplitude-playlist"); - var songIndex = songInfoElements[i].getAttribute("data-amplitude-song-index"); - - /* - Ensure that we don't set any individual elements now. We set this with the - sync meta data method. The reason we don't set them here is because - all individual songs would get the now playing artwork. If the playlists - match or the element is a main element meaning it doesn't - belong to a playlist or a song, then we set the song info. - */ - if (songIndex == null && (_config2.default.active_playlist == playlist || playlist == null && songIndex == null)) { - /* - If the active metadata has the key, then we set it, - otherwise we clear it. If it's an image element then - we default it to the default info if needed. - */ - var val = _config2.default.active_metadata[info] != undefined ? _config2.default.active_metadata[info] : null; - if (imageMetaDataKeys.indexOf(info) >= 0) { - val = val || _config2.default.default_album_art; - songInfoElements[i].setAttribute("src", val); - } else { - val = val || ""; - songInfoElements[i].innerHTML = val; - } - } - } - } - - /** - * Displays the playlist meta data. - */ - function displayPlaylistMetaData() { - /* - Define the image meta data keys. These are managed separately - since we aren't actually changing the inner HTML of these elements. - */ - var imageMetaDataKeys = ["image_url"]; - - /* - Get all of the playlist info elements - */ - var playlistInfoElements = document.querySelectorAll("[data-amplitude-playlist-info]"); - - /* - Iterate over all of the playlist info elements. We will either - set these to the new values, or clear them if the active song - doesn't have the info set. - */ - for (var i = 0; i < playlistInfoElements.length; i++) { - /* - Get the info so we can check if the active meta data has the - key. - */ - var info = playlistInfoElements[i].getAttribute("data-amplitude-playlist-info"); - var playlist = playlistInfoElements[i].getAttribute("data-amplitude-playlist"); - - if (_config2.default.playlists[playlist][info] != undefined) { - if (imageMetaDataKeys.indexOf(info) >= 0) { - playlistInfoElements[i].setAttribute("src", _config2.default.playlists[playlist][info]); - } else { - playlistInfoElements[i].innerHTML = _config2.default.playlists[playlist][info]; - } - } else { - /* - We look for the default album art because - the actual key didn't exist. If the default album - art doesn't exist then we set the src attribute - to null. - */ - if (imageMetaDataKeys.indexOf(info) >= 0) { - if (_config2.default.default_playlist_art != "") { - playlistInfoElements[i].setAttribute("src", _config2.default.default_playlist_art); - } else { - playlistInfoElements[i].setAttribute("src", ""); - } - } else { - playlistInfoElements[i].innerHTML = ""; - } - } - } - } - - /** - * Sets the first song in the playlist. This is used to fill in the meta - * data in the playlist - * - * @param {object} song - The song we are setting to be the first song in the playlist - * @param {string} playlist - Key of the playlist we are setting the first song in - */ - function setFirstSongInPlaylist(song, playlist) { - /* - Define the image meta data keys. These are managed separately - since we aren't actually changing the inner HTML of these elements. - */ - var imageMetaDataKeys = ["cover_art_url", "station_art_url", "podcast_episode_cover_art_url"]; - - /* - Get all of the song info elements - */ - var songInfoElements = document.querySelectorAll('[data-amplitude-song-info][data-amplitude-playlist="' + playlist + '"]'); - - /* - Iterate over all of the song info elements. We will either - set these to the new values, or clear them if the active song - doesn't have the info set. - */ - for (var i = 0; i < songInfoElements.length; i++) { - /* - Get the info so we can check if the active meta data has the - key. - */ - var info = songInfoElements[i].getAttribute("data-amplitude-song-info"); - - /* - Get the song info element playlist. - */ - var elementPlaylist = songInfoElements[i].getAttribute("data-amplitude-playlist"); - - /* - If the playlists match or the element is a main element, then - we set the song info. - */ - if (elementPlaylist == playlist) { - /* - If the active metadata has the key, then we set it, - otherwise we clear it. If it's an image element then - we default it to the default info if needed. - */ - if (song[info] != undefined) { - if (imageMetaDataKeys.indexOf(info) >= 0) { - songInfoElements[i].setAttribute("src", song[info]); - } else { - songInfoElements[i].innerHTML = song[info]; - } - } else { - /* - We look for the default album art because - the actual key didn't exist. If the default album - art doesn't exist then we set the src attribute - to null. - */ - if (imageMetaDataKeys.indexOf(info) >= 0) { - if (song.default_album_art != "") { - songInfoElements[i].setAttribute("src", song.default_album_art); - } else { - songInfoElements[i].setAttribute("src", ""); - } - } else { - songInfoElements[i].innerHTML = ""; - } - } - } - } - } - - /** - * Sets the meta data for songs loaded in the songs array - */ - function syncMetaData() { - /* - Define the image meta data keys. These are managed separately - since we aren't actually changing the inner HTML of these elements. - */ - var imageMetaDataKeys = ["cover_art_url", "station_art_url", "podcast_episode_cover_art_url"]; - - /* - Get all of the song info elements - */ - var songInfoElements = document.querySelectorAll("[data-amplitude-song-info]"); - - /* - Iterate over all of the song info elements. We will either - set these to the new values, or clear them if the active song - doesn't have the info set. - */ - for (var i = 0; i < songInfoElements.length; i++) { - var songIndex = songInfoElements[i].getAttribute("data-amplitude-song-index"); - var playlist = songInfoElements[i].getAttribute("data-amplitude-playlist"); - - if (songIndex != null && playlist == null) { - var info = songInfoElements[i].getAttribute("data-amplitude-song-info"); - - /* - Get the song info value referenced on the element. Depending on the type of - element, we may need to fallback to another value when the direct value - we want isn't found. - i.e. - data-amplitude-song-info="cover_art_url" defaults to using the value - of "default_album_art" when "cover_art_url" is missing on the song. - */ - var val = _config2.default.songs[songIndex][info] != undefined ? _config2.default.songs[songIndex][info] : null; - /* - If it's an image meta data key, then we set the src attribute of - the element. Otherwise we set the inner HTML of the element. - */ - if (imageMetaDataKeys.indexOf(info) >= 0) { - /* - If this is an image meta data key and the individual song doesn't - have the key, use the default_album_art - */ - val = val || _config2.default.default_album_art; - songInfoElements[i].setAttribute("src", val); - } else { - songInfoElements[i].innerHTML = val; - } - } - - /* - If the song index and playlist are not null, continue. - */ - if (songIndex != null && playlist != null) { - /* - Get the info we are displaying. - */ - var _info = songInfoElements[i].getAttribute("data-amplitude-song-info"); - - /* - Set the meta data accordingly. - */ - if (_config2.default.playlists[playlist].songs[songIndex][_info] != undefined) { - if (imageMetaDataKeys.indexOf(_info) >= 0) { - songInfoElements[i].setAttribute("src", _config2.default.playlists[playlist].songs[songIndex][_info]); - } else { - songInfoElements[i].innerHTML = _config2.default.playlists[playlist].songs[songIndex][_info]; - } - } - } - } - - /* - Display the playlist meta data. - */ - displayPlaylistMetaData(); - } - - /** - * Returns publically facing methods - */ - return { - displayMetaData: displayMetaData, - setFirstSongInPlaylist: setFirstSongInPlaylist, - syncMetaData: syncMetaData, - displayPlaylistMetaData: displayPlaylistMetaData - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = MetaDataElements; -module.exports = exports["default"]; - -/***/ }), -/* 8 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the visual syncing to the state of the config for the repeat - * elements. - * - * @module visual/RepeatElements - */ -var RepeatElements = function () { - /** - * Syncs repeat for all of the repeat buttons. Users - * can apply styles to the 'amplitude-repeat-on' and - * 'amplitude-repeat-off' classes. They represent the state - * of the player. - */ - function syncRepeat() { - /* - Gets all of the repeat classes - */ - var repeatClasses = document.getElementsByClassName("amplitude-repeat"); - - /* - Iterate over all of the repeat classes. If repeat is on, - then add the 'amplitude-repeat-on' class and remove the - 'amplitude-repeat-off' class. If it's off, then do the - opposite. - */ - for (var i = 0; i < repeatClasses.length; i++) { - if (_config2.default.repeat) { - repeatClasses[i].classList.add("amplitude-repeat-on"); - repeatClasses[i].classList.remove("amplitude-repeat-off"); - } else { - repeatClasses[i].classList.remove("amplitude-repeat-on"); - repeatClasses[i].classList.add("amplitude-repeat-off"); - } - } - } - - /** - * Syncs repeat for all of the playlist repeat buttons. Users - * can apply styles to the `amplitude-repeat-on` and `amplitude-repeat-off` - * classes. They repreent the state of the playlist in the player. - */ - function syncRepeatPlaylist(playlist) { - /* - Gets all of the repeat buttons. - */ - var repeatButtons = document.getElementsByClassName("amplitude-repeat"); - - /* - Iterate over all of the repeat buttons - */ - for (var i = 0; i < repeatButtons.length; i++) { - /* - Ensure that the repeat button belongs to matches the - playlist we are syncing the state for. - */ - if (repeatButtons[i].getAttribute("data-amplitude-playlist") == playlist) { - /* - If the state of the playlist is shuffled on, true, then - we add the 'amplitude-repeat-on' class and remove the - 'amplitude-repeat-off' class. If the player is not shuffled - then we do the opposite. - */ - if (_config2.default.playlists[playlist].repeat) { - repeatButtons[i].classList.add("amplitude-repeat-on"); - repeatButtons[i].classList.remove("amplitude-repeat-off"); - } else { - repeatButtons[i].classList.add("amplitude-repeat-off"); - repeatButtons[i].classList.remove("amplitude-repeat-on"); - } - } - } - } - - /** - * Syncs repeat for all of the repeat song buttons. Users - * can apply styles to the 'amplitude-repeat-song-on' and - * 'amplitude-repeat-song-off' classes. They represent the state - * of the player. - */ - function syncRepeatSong() { - /* - Gets all of the repeat song classes - */ - var repeatSongClasses = document.getElementsByClassName("amplitude-repeat-song"); - - /* - Iterate over all of the repeat song classes. If repeat is on, - then add the 'amplitude-repeat-song-on' class and remove the - 'amplitude-repeat-song-off' class. If it's off, then do the - opposite. - */ - for (var i = 0; i < repeatSongClasses.length; i++) { - if (_config2.default.repeat_song) { - repeatSongClasses[i].classList.add("amplitude-repeat-song-on"); - repeatSongClasses[i].classList.remove("amplitude-repeat-song-off"); - } else { - repeatSongClasses[i].classList.remove("amplitude-repeat-song-on"); - repeatSongClasses[i].classList.add("amplitude-repeat-song-off"); - } - } - } - - /* - Returns the publically available methods. - */ - return { - syncRepeat: syncRepeat, - syncRepeatPlaylist: syncRepeatPlaylist, - syncRepeatSong: syncRepeatSong - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = RepeatElements; -module.exports = exports["default"]; - -/***/ }), -/* 9 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _debug = __webpack_require__(4); - -var _debug2 = _interopRequireDefault(_debug); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Callback Utility - * - * @module utilities/callbacks - */ -/** - * Imports the config module - * @module config - */ -var Callbacks = function () { - /** - * Initializes the callbacks for the player. - */ - function initialize() { - /* - Event: abort - https://www.w3schools.com/tags/av_event_abort.asp - */ - _config2.default.audio.addEventListener("abort", function () { - run("abort"); - }); - - /* - Event: error - https://www.w3schools.com/tags/av_event_error.asp - */ - _config2.default.audio.addEventListener("error", function () { - run("error"); - }); - - /* - Event: loadeddata - https://www.w3schools.com/tags/av_event_loadeddata.asp - */ - _config2.default.audio.addEventListener("loadeddata", function () { - run("loadeddata"); - }); - - /* - Event: loadedmetadata - https://www.w3schools.com/tags/av_event_loadedmetadata.asp - */ - _config2.default.audio.addEventListener("loadedmetadata", function () { - run("loadedmetadata"); - }); - - /* - Event: loadstart - https://www.w3schools.com/tags/av_event_loadstart.asp - */ - _config2.default.audio.addEventListener("loadstart", function () { - run("loadstart"); - }); - - /* - Event: pause - https://www.w3schools.com/tags/av_event_pause.asp - */ - _config2.default.audio.addEventListener("pause", function () { - run("pause"); - }); - - /* - Event: playing - https://www.w3schools.com/tags/av_event_playing.asp - */ - _config2.default.audio.addEventListener("playing", function () { - run("playing"); - }); - - /* - Event: play - https://www.w3schools.com/tags/av_event_play.asp - */ - _config2.default.audio.addEventListener("play", function () { - run("play"); - }); - - /* - Event: progress - https://www.w3schools.com/tags/av_event_progress.asp - */ - _config2.default.audio.addEventListener("progress", function () { - run("progress"); - }); - - /* - Event: ratechange - https://www.w3schools.com/tags/av_event_ratechange.asp - */ - _config2.default.audio.addEventListener("ratechange", function () { - run("ratechange"); - }); - - /* - Event: seeked - https://www.w3schools.com/tags/av_event_seeked.asp - */ - _config2.default.audio.addEventListener("seeked", function () { - run("seeked"); - }); - - /* - Event: seeking - https://www.w3schools.com/tags/av_event_seeking.asp - */ - _config2.default.audio.addEventListener("seeking", function () { - run("seeking"); - }); - - /* - Event: stalled - https://www.w3schools.com/tags/av_event_stalled.asp - */ - _config2.default.audio.addEventListener("stalled", function () { - run("stalled"); - }); - - /* - Event: suspend - https://www.w3schools.com/tags/av_event_suspend.asp - */ - _config2.default.audio.addEventListener("suspend", function () { - run("suspend"); - }); - - /* - Event: timeupdate - https://www.w3schools.com/tags/av_event_timeupdate.asp - */ - _config2.default.audio.addEventListener("timeupdate", function () { - run("timeupdate"); - }); - - /* - Event: volumechange - https://www.w3schools.com/tags/av_event_volumechange.asp - */ - _config2.default.audio.addEventListener("volumechange", function () { - run("volumechange"); - }); - - /* - Event: waiting - https://www.w3schools.com/tags/av_event_waiting.asp - */ - _config2.default.audio.addEventListener("waiting", function () { - run("waiting"); - }); - - /* - Event: canplay - https://www.w3schools.com/tags/av_event_canplay.asp - */ - _config2.default.audio.addEventListener("canplay", function () { - run("canplay"); - }); - - /* - Event: canplaythrough - https://www.w3schools.com/tags/av_event_canplaythrough.asp - */ - _config2.default.audio.addEventListener("canplaythrough", function () { - run("canplaythrough"); - }); - - /* - Event: durationchange - https://www.w3schools.com/tags/av_event_durationchange.asp - */ - _config2.default.audio.addEventListener("durationchange", function () { - run("durationchange"); - }); - - /* - Event: ended - https://www.w3schools.com/tags/av_event_ended.asp - */ - _config2.default.audio.addEventListener("ended", function () { - run("ended"); - }); - } - - /** - * Runs a user defined callback method - * - * Public Accessor: Callbacks.run( callbackName ) - * - * @access public - * @param {string} callbackName - The name of the callback we are going to run. - */ - function run(callbackName) { - /* - Checks to see if a user defined a callback method for the - callback we are running. - */ - if (_config2.default.callbacks[callbackName]) { - /* - Build the callback function - */ - var callbackFunction = _config2.default.callbacks[callbackName]; - - /* - Write a debug message stating the callback we are running - */ - _debug2.default.writeMessage("Running Callback: " + callbackName); - - /* - Run the callback function and catch any errors - */ - try { - callbackFunction(); - } catch (error) { - if (error.message == "CANCEL EVENT") { - throw error; - } else { - _debug2.default.writeMessage("Callback error: " + error.message); - } - } - } - } - - return { - initialize: initialize, - run: run - }; -}(); - -/** - * Imports the debug module - * @module utilities/debug - */ -exports.default = Callbacks; -module.exports = exports["default"]; - -/***/ }), -/* 10 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -/** - * Handles the visual state for all of the mute elements. - * - * @module visual/MuteElements - */ -var MuteElements = function () { - /** - * Syncs mute for all of the mute buttons. This represents the - * state of the player if it's muted or not. - * - * @access public - * @param {string} state - The muted state of the player. - */ - function setMuted(state) { - /* - Get all of the mute buttons. - */ - var muteClasses = document.getElementsByClassName("amplitude-mute"); - - /* - Iterate over all of the mute classes. If the state of the player - is not-muted then we add the amplitude-not-muted classe and remove - the amplitude muted class otherwise we do the opposite. - */ - for (var i = 0; i < muteClasses.length; i++) { - if (!state) { - muteClasses[i].classList.add("amplitude-not-muted"); - muteClasses[i].classList.remove("amplitude-muted"); - } else { - muteClasses[i].classList.remove("amplitude-not-muted"); - muteClasses[i].classList.add("amplitude-muted"); - } - } - } - - return { - setMuted: setMuted - }; -}(); - -exports.default = MuteElements; -module.exports = exports["default"]; - -/***/ }), -/* 11 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Keeps the volume slider elements in sync. - * @module visual/VolumeSliderElements - */ -var VolumeSliderElements = function () { - /** - * Visually syncs the volume sliders so they are all the same if there - * are more than one. - * - * @access public - */ - function sync() { - var volumeSliders = document.getElementsByClassName("amplitude-volume-slider"); - - /* - Iterates over all of the volume sliders for the song, setting the value - to the config value. - */ - for (var i = 0; i < volumeSliders.length; i++) { - volumeSliders[i].value = _config2.default.audio.volume * 100; - } - } - - /** - * Returns the public facing methods - */ - return { - sync: sync - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = VolumeSliderElements; -module.exports = exports["default"]; - -/***/ }), -/* 12 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Repeater utility. Handles setting the repeat for all scenarios. - * - * @module utilities/Repeater - */ -var Repeater = function () { - /** - * Sets the state of the repeat for a song. - * - * @access public - * @param {boolean} repeat - A boolean representing whether the repeat should be on or off - */ - function setRepeat(repeat) { - /* - Set the global repeat to be toggled - */ - _config2.default.repeat = repeat; - } - - /** - * Sets the state of the repeat for a playlist. - * - * @access public - * @param {boolean} repeat - A boolean representing whether the repeat should be on or off - * @param {string} playlist - The key of the playlist for repeating - */ - function setRepeatPlaylist(repeat, playlist) { - /* - Set the playlist repeat to be toggled. - */ - _config2.default.playlists[playlist].repeat = repeat; - } - - /** - * Sets the state of the repeat song - * - * @access public - * @param {boolean} repeat - A boolean representing whether the repeat shoudl be on or off for the song. - */ - function setRepeatSong(repeat) { - _config2.default.repeat_song = repeat; - } - - /* - Returns the public facing methods - */ - return { - setRepeat: setRepeat, - setRepeatPlaylist: setRepeatPlaylist, - setRepeatSong: setRepeatSong - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = Repeater; -module.exports = exports["default"]; - -/***/ }), -/* 13 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Shuffle Module. Handles all of the shuffling functionality for - * AmplitudeJS - * - * @module utilities/Shuffler - */ -var Shuffler = function () { - /** - * Sets the shuffle state globally - * - * @access public - * @param {boolean} shuffle - True when we are shuffling, false when we turn it off. - */ - function setShuffle(shuffle) { - _config2.default.shuffle_on = shuffle; - - if (shuffle) { - shuffleSongs(); - } else { - _config2.default.shuffle_list = []; - } - } - - /** - * Toggles the shuffle status globally. - * - * @access public - */ - function toggleShuffle() { - /* - If shuffle is on, we toggle it off. If shuffle is off, we - toggle on. - */ - if (_config2.default.shuffle_on) { - _config2.default.shuffle_on = false; - _config2.default.shuffle_list = []; - } else { - _config2.default.shuffle_on = true; - shuffleSongs(); - } - } - - /** - * Sets the shuffle state for a playlist - * - * @access public - * @param {string} playlist The key of the playlist we are shuffling. - * @param {boolean} shuffle True when we are shuffling the playlist, false when we turn off shuffle. - */ - function setShufflePlaylist(playlist, shuffle) { - _config2.default.playlists[playlist].shuffle = shuffle; - - if (_config2.default.playlists[playlist].shuffle) { - shufflePlaylistSongs(playlist); - } else { - _config2.default.playlists[playlist].shuffle_list = []; - } - } - - /** - * Sets the shuffle state for a playlist - * - * @access public - * @param {string} playlist The key of the playlist we are shuffling. - */ - function toggleShufflePlaylist(playlist) { - /* - If the playlist shuffled is on, we toggle it off. If the - playlist shuffled is off, we toggle it on. - */ - if (_config2.default.playlists[playlist].shuffle) { - _config2.default.playlists[playlist].shuffle = false; - _config2.default.playlists[playlist].shuffle_list = []; - } else { - _config2.default.playlists[playlist].shuffle = true; - shufflePlaylistSongs(playlist); - } - } - - /** - * Shuffles individual songs in the config - * Based off of: http://www.codinghorror.com/blog/2007/12/the-danger-of-naivete.html - * - * Public Accessor: Shuffle.shuffleSongs() - * - * @access public - */ - function shuffleSongs() { - /* - Builds a temporary array with the length of the config. - */ - var shuffleTemp = new Array(_config2.default.songs.length); - - /* - Set the temporary array equal to the songs array. - */ - for (var i = 0; i < _config2.default.songs.length; i++) { - shuffleTemp[i] = _config2.default.songs[i]; - } - - /* - Iterate ove rthe songs and generate random numbers to - swap the indexes of the shuffle array. - */ - for (var _i = _config2.default.songs.length - 1; _i > 0; _i--) { - var randNum = Math.floor(Math.random() * _config2.default.songs.length + 1); - shuffleSwap(shuffleTemp, _i, randNum - 1); - } - - /* - Set the shuffle list to the shuffle temp. - */ - _config2.default.shuffle_list = shuffleTemp; - } - - /** - * Shuffle songs in a playlist - * - * Public Accessor: Shuffle.shufflePlaylistSongs( playlist ) - * - * @access public - * @param {string} playlist - The playlist we are shuffling. - */ - function shufflePlaylistSongs(playlist) { - /* - Builds a temporary array with the length of the playlist songs. - */ - var shuffleTemp = new Array(_config2.default.playlists[playlist].songs.length); - - /* - Set the temporary array equal to the playlist array. - */ - for (var i = 0; i < _config2.default.playlists[playlist].songs.length; i++) { - shuffleTemp[i] = _config2.default.playlists[playlist].songs[i]; - } - - /* - Iterate ove rthe songs and generate random numbers to - swap the indexes of the shuffle array. - */ - for (var _i2 = _config2.default.playlists[playlist].songs.length - 1; _i2 > 0; _i2--) { - var randNum = Math.floor(Math.random() * _config2.default.playlists[playlist].songs.length + 1); - shuffleSwap(shuffleTemp, _i2, randNum - 1); - } - - /* - Set the shuffle list to the shuffle temp. - */ - _config2.default.playlists[playlist].shuffle_list = shuffleTemp; - } - - /** - * Swaps and randomizes the song shuffle. - * - * @access private - * @param {object} shuffleList - The list of songs that is going to be shuffled - * @param {number} original - The original index of he song in the songs array - * @param {number} random - The randomized index that will be the new index of the song in the shuffle array. - */ - function shuffleSwap(shuffleList, original, random) { - var temp = shuffleList[original]; - shuffleList[original] = shuffleList[random]; - shuffleList[random] = temp; - } - - /** - * Returns public facing methods - */ - return { - setShuffle: setShuffle, - toggleShuffle: toggleShuffle, - setShufflePlaylist: setShufflePlaylist, - toggleShufflePlaylist: toggleShufflePlaylist, - shuffleSongs: shuffleSongs, - shufflePlaylistSongs: shufflePlaylistSongs - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = Shuffler; -module.exports = exports["default"]; - -/***/ }), -/* 14 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Defines the visual representation of AmplitudeJS song slider elements. - * @module visual/SongSliderElements - */ -var SongSliderElements = function () { - /** - * Syncs all of the song slider elements. - * - * @access public - * @param {number} location - The location of the song as a percentage. - * @param {string} playlist - The playlist we are setting the song slider for. - * @param {number} songIndex - The index of the song we are adjusting the song slider for. - */ - function sync(location, playlist, songIndex) { - syncMain(location); - syncPlaylist(location, playlist); - syncSong(location, songIndex); - syncSongInPlaylist(location, playlist); - } - - /** - * Syncs the main slider location - * - * @access public - * @param {number} location - The location of the song as a percentage. - */ - function syncMain(location) { - /* - Ensure we have a location that's a number - */ - location = !isNaN(location) ? location : 0; - - /* - Gets the main song sliders - */ - var mainSongSliders = document.querySelectorAll(".amplitude-song-slider"); - - /* - Iterates over all of the main sliders and sets the value to the - percentage of the song played. - */ - for (var i = 0; i < mainSongSliders.length; i++) { - /* - Grab the playlist and song attributes from the element. - */ - var playlist = mainSongSliders[i].getAttribute("data-amplitude-playlist"); - var song = mainSongSliders[i].getAttribute("data-amplitude-song-index"); - - /* - This method is responsible for only the global elements, - so we make sure there are no playlist or songs defined on - the element. - */ - if (playlist == null && song == null) { - mainSongSliders[i].value = location; - } - } - } - - /** - * Syncs playlist song slider locations - * - * @access public - * @param {number} location - The location of the song as a percentage. - * @param {string} playlist - The playlist we are setting the song slider for. - */ - function syncPlaylist(location, playlist) { - /* - Ensure we have a location that's a number - */ - location = !isNaN(location) ? location : 0; - - /* - Gets the playlist song sliders - */ - var playlistSongSliders = document.querySelectorAll('.amplitude-song-slider[data-amplitude-playlist="' + playlist + '"]'); - - /* - Iterates over all of the playlist sliders and sets the value to the - percentage of the song played. - */ - for (var i = 0; i < playlistSongSliders.length; i++) { - /* - Grab the playlist and song attributes from the element. - */ - var playlistAttribute = playlistSongSliders[i].getAttribute("data-amplitude-playlist"); - var songAttribute = playlistSongSliders[i].getAttribute("data-amplitude-song-index"); - - /* - This method is responsible for only the playlist elements, - so we make sure the playlist attribute matches what is passed - in. - */ - if (playlistAttribute == playlist && songAttribute == null) { - playlistSongSliders[i].value = location; - } - } - } - - /** - * Syncs individual song slider locations - * - * @access public - * @param {number} location - The location of the song as a percentage. - * @param {number} songIndex - The index of the song we are adjusting the song slider for. - */ - function syncSong(location, songIndex) { - /* - We only want to sync song sliders if the playlist is null. - */ - if (_config2.default.active_playlist == null) { - /* - Ensure we have a location that's a number - */ - location = !isNaN(location) ? location : 0; - - /* - Gets the individual song sliders - */ - var songSliders = document.querySelectorAll('.amplitude-song-slider[data-amplitude-song-index="' + songIndex + '"]'); - - /* - Iterates over all of the individual song sliders and sets the value - to the percentage of the song played. - */ - for (var i = 0; i < songSliders.length; i++) { - /* - Grab the playlist and song attributes from the element. - */ - var playlistAttribute = songSliders[i].getAttribute("data-amplitude-playlist"); - var songAttribute = songSliders[i].getAttribute("data-amplitude-song-index"); - - /* - This method is responsible for only the playlist elements, - so we make sure the playlist attribute matches what is passed - in. - */ - if (playlistAttribute == null && songAttribute == songIndex) { - songSliders[i].value = location; - } - } - } - } - - /** - * Syncs individual song slider locations - * - * @access public - * @param {number} location - The location of the song as a percentage. - * @param {string} playlist - The playlist we are setting the song slider for. - */ - function syncSongInPlaylist(location, playlist) { - /* - Ensure we have a location that's a number - */ - location = !isNaN(location) ? location : 0; - - var activePlaylistIndex = _config2.default.active_playlist != "" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null; - - /* - Gets the song in playlist sliders - */ - var songInPlaylistSliders = document.querySelectorAll('.amplitude-song-slider[data-amplitude-playlist="' + playlist + '"][data-amplitude-song-index="' + activePlaylistIndex + '"]'); - - /* - Iterates over all of the song in playlist sliders and sets the value - to the percentage of the song played. - */ - for (var i = 0; i < songInPlaylistSliders.length; i++) { - songInPlaylistSliders[i].value = location; - } - } - - /** - * Visually syncs the song sliders back to 0. This usually happens when - * a song has changed, we ensure that all song sliders get reset. - * - * @access public - */ - function resetElements() { - var songSliders = document.getElementsByClassName("amplitude-song-slider"); - - /* - Iterate over all of the song sliders and set them to - 0 essentially resetting them. - */ - for (var i = 0; i < songSliders.length; i++) { - songSliders[i].value = 0; - } - } - - /** - * Returns the public facing methods - */ - return { - sync: sync, - syncMain: syncMain, - syncPlaylist: syncPlaylist, - syncSong: syncSong, - syncSongInPlaylist: syncSongInPlaylist, - resetElements: resetElements - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = SongSliderElements; -module.exports = exports["default"]; - -/***/ }), -/* 15 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _currentTimeElements = __webpack_require__(53); - -var _currentTimeElements2 = _interopRequireDefault(_currentTimeElements); - -var _currentHourElements = __webpack_require__(50); - -var _currentHourElements2 = _interopRequireDefault(_currentHourElements); - -var _currentMinuteElements = __webpack_require__(51); - -var _currentMinuteElements2 = _interopRequireDefault(_currentMinuteElements); - -var _currentSecondElements = __webpack_require__(52); - -var _currentSecondElements2 = _interopRequireDefault(_currentSecondElements); - -var _durationCountDownTimeElements = __webpack_require__(54); - -var _durationCountDownTimeElements2 = _interopRequireDefault(_durationCountDownTimeElements); - -var _durationHourElements = __webpack_require__(55); - -var _durationHourElements2 = _interopRequireDefault(_durationHourElements); - -var _durationMinuteElements = __webpack_require__(56); - -var _durationMinuteElements2 = _interopRequireDefault(_durationMinuteElements); - -var _durationSecondElements = __webpack_require__(57); - -var _durationSecondElements2 = _interopRequireDefault(_durationSecondElements); - -var _durationTimeElements = __webpack_require__(58); - -var _durationTimeElements2 = _interopRequireDefault(_durationTimeElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Time Elements Interface. This allows us to update all of the sub time elements - * through one central point. - * @module visual/TimeElements - */ - - -/** - * Imports the AmplitudeJS Duration Second Elements - * @module visual/time/DurationSecondElements - */ - - -/** - * Imports the AmplitudeJS Duration Hour Elements - * @module visual/time/DurationHourElements - */ - - -/** - * Imports the AmplitudeJS Current Second Elements - * @module visual/time/CurrentTimeElements - */ - - -/** - * Imports the AmplitudeJS Current Hour Elements - * @module visual/time/CurrentHourElements - */ -var TimeElements = function () { - /** - * Resets the current times. - */ - function resetCurrentTimes() { - _currentTimeElements2.default.resetTimes(); - _currentHourElements2.default.resetTimes(); - _currentMinuteElements2.default.resetTimes(); - _currentSecondElements2.default.resetTimes(); - } - - /** - * Syncs the current time elements to the time provided. - * - * @param {Object} currentTime - An object representing the current time of the audio. - */ - function syncCurrentTimes(currentTime) { - _currentTimeElements2.default.sync(currentTime); - _currentHourElements2.default.sync(currentTime.hours); - _currentMinuteElements2.default.sync(currentTime.minutes); - _currentSecondElements2.default.sync(currentTime.seconds); - } - - /** - * Resets the duration times. - */ - function resetDurationTimes() { - _durationCountDownTimeElements2.default.resetTimes(); - _durationHourElements2.default.resetTimes(); - _durationMinuteElements2.default.resetTimes(); - _durationSecondElements2.default.resetTimes(); - _durationTimeElements2.default.resetTimes(); - } - - /** - * Syncs the duration times to the times provided. - * - * @param {Object} currentTime - An object representing the current time of the audio. - * @param {Object} songDuration - An object representing the duration of the audio - */ - function syncDurationTimes(currentTime, songDuration) { - _durationCountDownTimeElements2.default.sync(currentTime, songDuration); - _durationTimeElements2.default.sync(songDuration); - _durationHourElements2.default.sync(songDuration.hours); - _durationMinuteElements2.default.sync(songDuration.minutes); - _durationSecondElements2.default.sync(songDuration.seconds); - } - - /** - * Returns the publically accessible methods. - */ - return { - resetCurrentTimes: resetCurrentTimes, - syncCurrentTimes: syncCurrentTimes, - resetDurationTimes: resetDurationTimes, - syncDurationTimes: syncDurationTimes - }; -}(); - -/** - * Imports the AmplitudeJS Duration Time Elements - * @module visual/time/DurationTimeElements - */ - - -/** - * Imports the AmplitudeJS Duration Minute Elements - * @module visual/time/DurationMinuteElements - */ - - -/** - * Imports the AmplitudeJS Duration Count Down Time Elements - * @module visual/time/DurationCountDownTimeElements - */ - - -/** - * Imports the AmplitudeJS Current Minute Elements - * @module visual/time/CurrentMinuteElements - */ -/** - * Imports the AmplitudeJS Current Time - * @module visual/time/CurrentTimeElements - */ -exports.default = TimeElements; -module.exports = exports["default"]; - -/***/ }), -/* 16 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _debug = __webpack_require__(4); - -var _debug2 = _interopRequireDefault(_debug); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles the visualizations elements. - * - * @module Visualizations - */ -/** - * Imports the config module - * @module config - */ -var Visualizations = function () { - /** - * Runs all of the visualizations on the screen. - */ - function run() { - /* - Get all of the visualization elements on the page - */ - var visualizationElements = document.querySelectorAll(".amplitude-visualization"); - - /* - If the web audio API is available, we display the visualizations. - */ - if (_config2.default.web_audio_api_available) { - /* - If the visualization has not started, there are visualizations available, - and we have at least one visualization element, then we continue. - */ - if (Object.keys(_config2.default.visualizations.available).length > 0 && visualizationElements.length > 0) { - /* - Iterate over all of the visualizations on the page and activate the - ones we need. - */ - for (var i = 0; i < visualizationElements.length; i++) { - /* - Grab the playlist and song attributes from the visualization to - determine which one we run. - */ - var playlist = visualizationElements[i].getAttribute("data-amplitude-playlist"); - var song = visualizationElements[i].getAttribute("data-amplitude-song-index"); - - /* - If the playlist and song are null, it's a global visualization element. - */ - if (playlist == null && song == null) { - runGlobalVisualization(visualizationElements[i]); - } - - /* - if the playlist is not null and the song is null it's a playlist visualization - element. - */ - if (playlist != null && song == null) { - runPlaylistVisualization(visualizationElements[i], playlist); - } - - /* - If the playlist is null and the song is not null it's a song visualization element. - */ - if (playlist == null && song != null) { - runSongVisualization(visualizationElements[i], song); - } - - /* - If the playlist and song are not null then it's a song in playlist visualization - element. - */ - if (playlist != null && song != null) { - runSongInPlaylistVisualization(visualizationElements[i], playlist, song); - } - } - } - } else { - displayBackups(); - } - } - - /** - * Runs a global visualization - * - * @param {Node} element The container element that handles the visualization. - */ - function runGlobalVisualization(element) { - /* - Gets the global visualization index and the active song visualization indexes - so we know which visualization to use. The song will override the global - */ - var globalVisualizationIndex = _config2.default.visualization; - var activeSongVisualizationIndex = _config2.default.active_index != null ? _config2.default.songs[_config2.default.active_index].visualization : _config2.default.playlists[_config2.default.active_playlist].songs[_config2.default.playlists[_config2.default.active_playlist].active_index].visualization; - - /* - If the active song visualization is defined and the visualization exists, - use that visualization. - */ - if (activeSongVisualizationIndex != undefined && _config2.default.visualizations.available[activeSongVisualizationIndex] != undefined) { - addToActiveVisualizations(activeSongVisualizationIndex, element); - - /* - If the user defined a global visualization, use that one. - */ - } else if (globalVisualizationIndex != undefined && _config2.default.visualizations.available[globalVisualizationIndex] != undefined) { - addToActiveVisualizations(globalVisualizationIndex, element); - - /* - If the user didn't define a global visualization, use the first visualization - registered if there is one. - */ - } else { - /* - Grab the first registered visualization. If it exists, use that one. - */ - var firstVisualization = Object.keys(_config2.default.visualizations.available).length > 0 ? Object.keys(_config2.default.visualizations.available)[0] : null; - - if (firstVisualization != null) { - addToActiveVisualizations(firstVisualization, element); - } - } - } - - /** - * Run a specific playlist visualization. - * - * @param {Node} element The container element that handles the visualization. - * @param {string} playlist The key of the playlist we are running the visualization for. - */ - function runPlaylistVisualization(element, playlist) { - /* - If the playlist is equal to the active playlist, then we continue. - */ - if (playlist == _config2.default.active_playlist) { - /* - Checks if the song has a visualization and that visualization exists, - run that visualization. - */ - var activeSongVisualizationIndex = _config2.default.playlists[_config2.default.active_playlist].songs[_config2.default.playlists[_config2.default.active_playlist].active_index].visualization; - var activePlaylistVisualizationIndex = _config2.default.playlists[_config2.default.active_playlist].visualization; - var globalVisualizationIndex = _config2.default.visualization; - - /* - If the actual song has a visualization, we run that. - */ - if (activeSongVisualizationIndex != undefined && _config2.default.visualizations.available[activeSongVisualizationIndex] != undefined) { - addToActiveVisualizations(activeSongVisualizationIndex, element); - - /* - If the actual playlist has a visualization, run that. - */ - } else if (activePlaylistVisualizationIndex != undefined && _config2.default.visualizations.available[activePlaylistVisualizationIndex] != undefined) { - addToActiveVisualizations(activePlaylistVisualizationIndex, element); - - /* - If a global visualization is defined, run that. - */ - } else if (globalVisualizationIndex != undefined && _config2.default.visualizations.available[globalVisualizationIndex] != undefined) { - addToActiveVisualizations(globalVisualizationIndex, element); - } else { - /* - Grab the first registered visualization. If it exists, use that one. - */ - var firstVisualization = Object.keys(_config2.default.visualizations.available).length > 0 ? Object.keys(_config2.default.visualizations.available)[0] : null; - - if (firstVisualization != null) { - addToActiveVisualizations(firstVisualization, element); - } - } - } - } - - /** - * Run a song specific visualization. - * - * @param {Node} element The container element that handles the visualization. - * @param {string} song The song index that we are running the visualization for. - */ - function runSongVisualization(element, song) { - /* - If the song is equal to the active song, then we continue. - */ - if (song == _config2.default.active_index) { - /* - Get the indexes of the song - */ - var activeSongVisualizationIndex = _config2.default.songs[_config2.default.active_index].visualization; - var globalVisualizationIndex = _config2.default.visualization; - - /* - If the song has a visualization, run that. - */ - if (activeSongVisualizationIndex != undefined && _config2.default.visualizations.available[activeSongVisualizationIndex] != undefined) { - addToActiveVisualizations(activeSongVisualizationIndex, element); - - /* - If the global visualization is set, use that. - */ - } else if (globalVisualizationIndex != undefined && _config2.default.visualizations.available[globalVisualizationIndex] != undefined) { - addToActiveVisualizations(globalVisualizationIndex, element); - } else { - /* - Grab the first registered visualization. If it exists, use that one. - */ - var firstVisualization = Object.keys(_config2.default.visualizations.available).length > 0 ? Object.keys(_config2.default.visualizations.available)[0] : null; - - if (firstVisualization != null) { - addToActiveVisualizations(firstVisualization, element); - } - } - } - } - - /** - * Run a song in playlist visualization. - * - * @param {Node} element - The element containing the visualization. - * @param {string} playlist - The string of the playlist key. - * @param {index} song - The index of the song in the playlist. - */ - function runSongInPlaylistVisualization(element, playlist, song) { - /* - If the playlist is the same as the active playlist and the active - index of the song is the same as the song, then we continue. - */ - if (playlist == _config2.default.active_playlist && _config2.default.playlists[playlist].active_index == song) { - /* - Checks if the song has a visualization and that visualization exists, - run that visualization. - */ - var activeSongVisualizationIndex = _config2.default.playlists[_config2.default.active_playlist].songs[_config2.default.playlists[_config2.default.active_playlist].active_index].visualization; - var activePlaylistVisualizationIndex = _config2.default.playlists[_config2.default.active_playlist].visualization; - var globalVisualizationIndex = _config2.default.visualization; - - /* - If the active song has a visualization, we use that. - */ - if (activeSongVisualizationIndex != undefined && _config2.default.visualizations.available[activeSongVisualizationIndex] != undefined) { - addToActiveVisualizations(activeSongVisualizationIndex, element); - - /* - If the active playlist has a visualization, we use that. - */ - } else if (activePlaylistVisualizationIndex != undefined && _config2.default.visualizations.available[activePlaylistVisualizationIndex] != undefined) { - addToActiveVisualizations(activePlaylistVisualizationIndex, element); - - /* - If the global visualization has been set, we use that. - */ - } else if (globalVisualizationIndex != undefined && _config2.default.visualizations.available[globalVisualizationIndex] != undefined) { - addToActiveVisualizations(globalVisualizationIndex, element); - } else { - /* - Grab the first registered visualization. If it exists, use that one. - */ - var firstVisualization = Object.keys(_config2.default.visualizations.available).length > 0 ? Object.keys(_config2.default.visualizations.available)[0] : null; - - if (firstVisualization != null) { - addToActiveVisualizations(firstVisualization, element); - } - } - } - } - - /** - * Add a visualization to the array of active visualizations. - * - * @param {string} key - The key of the active visualization. - * @param {Node} element - The element that the visualization will be applied to. - */ - function addToActiveVisualizations(key, element) { - var visualization = new _config2.default.visualizations.available[key]["object"](); - visualization.setPreferences(_config2.default.visualizations.available[key]["preferences"]); - visualization.startVisualization(element); - _config2.default.visualizations.active.push(visualization); - } - - /** - * Stops all active visualizations. - */ - function stop() { - /* - Iterates over all of the visualizations and stop the visualization. - */ - for (var i = 0; i < _config2.default.visualizations.active.length; i++) { - _config2.default.visualizations.active[i].stopVisualization(); - } - - /* - Clear the active visualizations. - */ - _config2.default.visualizations.active = []; - } - - /** - * Registers any visualization we can use. - * - * @param {object} visualization The visualization object itself - * @param {object} preferences User preferences overrides. - */ - function register(visualization, preferences) { - /* - Initialize the new visualization. - */ - var newVisualization = new visualization(); - - /* - Adds the visualization to the global config so it knows - it can be used when playing songs. - getID is a public function for getting a visualization's id. - It becomes the key to access the visualization. - */ - _config2.default.visualizations.available[newVisualization.getID()] = new Array(); - _config2.default.visualizations.available[newVisualization.getID()]["object"] = visualization; - _config2.default.visualizations.available[newVisualization.getID()]["preferences"] = preferences; - } - - /** - * Displays the backups for the visualizations. - */ - function displayBackups() { - /* - Get all of the visualization elements on the page - */ - var visualizationElements = document.querySelectorAll(".amplitude-visualization"); - - if (visualizationElements.length > 0) { - for (var x = 0; x < visualizationElements.length; x++) { - /* - Grab the playlist and song attributes from the visualization to - determine which one we run. - */ - var playlist = visualizationElements[x].getAttribute("data-amplitude-playlist"); - var song = visualizationElements[x].getAttribute("data-amplitude-song-index"); - - /* - If the playlist and song are null, it's a global visualization element. - */ - if (playlist == null && song == null) { - displayGlobalBackup(visualizationElements[x]); - } - - /* - if the playlist is not null and the song is null it's a playlist visualization - element. - */ - if (playlist != null && song == null) { - displayPlaylistBackup(visualizationElements[x], playlist); - } - - /* - If the playlist is null and the song is not null it's a song visualization element. - */ - if (playlist == null && song != null) { - displaySongBackup(visualizationElements[x], song); - } - - /* - If the playlist and song are not null then it's a song in playlist visualization - element. - */ - if (playlist != null && song != null) { - displaySongInPlaylistBackup(visualizationElements[x], playlist, song); - } - } - } - } - - /** - * Displays the global backup which is the cover art of the image in the - * visualization container. - * - * @param {node} element - The element we are adding the background image to. - */ - function displayGlobalBackup(element) { - element.style.backgroundImage = "url(" + _config2.default.active_metadata.cover_art_url + ")"; - } - - /** - * Displays the playlist backup which is the cover art of the image in the - * visualization container. - * - * @param {node} element - The element we are adding the background image to. - */ - function displayPlaylistBackup(element, playlist) { - if (_config2.default.active_playlist == playlist) { - element.style.backgroundImage = "url(" + _config2.default.active_metadata.cover_art_url + ")"; - } - } - - /** - * Displays the song backup which is the cover art of the image in the - * visualization container. - * - * @param {node} element - The element we are adding the background image to. - */ - function displaySongBackup(element, song) { - if (_config2.default.active_index == song) { - element.style.backgroundImage = "url(" + _config2.default.active_metadata.cover_art_url + ")"; - } - } - - /** - * Displays the song in playlist backup which is the cover art of the image in the - * visualization container. - * - * @param {node} element - The element we are adding the background image to. - */ - function displaySongInPlaylistBackup(element, playlist, song) { - if (_config2.default.active_playlist == playlist && _config2.default.playlists[active_playlist].active_index == song) { - element.style.backgroundImage = "url(" + _config2.default.active_metadata.cover_art_url + ")"; - } - } - - /* - Returns the public facing methods - */ - return { - run: run, - stop: stop, - register: register - }; -}(); - -/** - * Imports the debug module - * @module utilities/Debug - */ -exports.default = Visualizations; -module.exports = exports["default"]; - -/***/ }), -/* 17 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _init = __webpack_require__(21); - -var _init2 = _interopRequireDefault(_init); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * These helpers wrap around the basic methods of the Soundcloud API - * and get the information we need from SoundCloud to make the songs - * streamable through Amplitude - * - * @module soundcloud/SoundCloud - */ -/** - * Imports the config module - * @module config - */ -var SoundCloud = function () { - /** - * Defines the temporary user config used while we configure soundcloud - * @type {object} - */ - var tempUserConfig = {}; - - /** - * Loads the soundcloud SDK for use with Amplitude so the user doesn't have - * to load it themselves. - * With help from: http://stackoverflow.com/questions/950087/include-a-javascript-file-in-another-javascript-file - * - * @access public - * @param {object} userConfig - The config defined by the user for AmplitudeJS - */ - function loadSoundCloud(userConfig) { - /* - Sets the temporary config to the config passed by the user so we can make changes - and not break the actual config. - */ - tempUserConfig = userConfig; - - /* - Gets the head tag for the document and create a script element. - */ - var head = document.getElementsByTagName("head")[0]; - var script = document.createElement("script"); - - script.type = "text/javascript"; - - /* - URL to the remote soundcloud SDK - */ - script.src = "https://connect.soundcloud.com/sdk.js"; - script.onreadystatechange = initSoundcloud; - script.onload = initSoundcloud; - - /* - Add the script to the head of the document. - */ - head.appendChild(script); - } - - /** - * Initializes soundcloud with the key provided. - * - * @access private - */ - function initSoundcloud() { - /* - Calls the SoundCloud initialize function - from their API and sends it the client_id - that the user passed in. - */ - SC.initialize({ - client_id: _config2.default.soundcloud_client - }); - - /* - Gets the streamable URLs to run through Amplitue. This is - VERY important since Amplitude can't stream the copy and pasted - link from the SoundCloud page, but can resolve the streaming - URLs from the link. - */ - getStreamableURLs(); - } - - /** - * Gets the streamable URL from the URL provided for - * all of the soundcloud links. This will loop through - * and set all of the information for the soundcloud - * urls. - * - * @access private - */ - function getStreamableURLs() { - /* - Define the regex to find the soundcloud URLs - */ - var soundcloud_regex = /^https?:\/\/(soundcloud.com|snd.sc)\/(.*)$/; - - for (var i = 0; i < _config2.default.songs.length; i++) { - /* - If the URL matches soundcloud, we grab - that url and get the streamable link - if there is one. - */ - if (_config2.default.songs[i].url.match(soundcloud_regex)) { - _config2.default.soundcloud_song_count++; - resolveStreamable(_config2.default.songs[i].url, i); - } - } - } - - /** - * Resolves an individual streamable URL. - * - * @param {string} url - The URL of the SoundCloud song to get the streamable URL from. - * @param {string} playlist - The playlist we are getting the streamable URL for. - * @param {Integer} index - The index of the song in the playlist or the songs array. - * @param {boolean} addToShuffleList - Whether we add to the shuffle list for the songs or playlist. - * - */ - function resolveIndividualStreamableURL(url, playlist, index) { - var addToShuffleList = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; - - SC.get("/resolve/?url=" + url, function (sound) { - /* - If streamable we get the url and bind the client ID to the end - so Amplitude can just stream the song normally. We then overwrite - the url the user provided with the streamable URL. - */ - if (sound.streamable) { - if (playlist != null) { - _config2.default.playlists[playlist].songs[index].url = sound.stream_url + "?client_id=" + _config2.default.soundcloud_client; - - if (addToShuffleList) { - _config2.default.playlists[playlist].shuffle_list[index].url = sound.stream_url + "?client_id=" + _config2.default.soundcloud_client; - } - /* - If the user want's to use soundcloud art, we overwrite the - cover_art_url with the soundcloud artwork url. - */ - if (_config2.default.soundcloud_use_art) { - _config2.default.playlists[playlist].songs[index].cover_art_url = sound.artwork_url; - - if (addToShuffleList) { - _config2.default.playlists[playlist].shuffle_list[index].cover_art_url = sound.artwork_url; - } - } - - /* - Grab the extra metadata from soundcloud and bind it to the - song. The user can get this through the public function: - getActiveSongMetadata - */ - _config2.default.playlists[playlist].songs[index].soundcloud_data = sound; - - if (addToShuffleList) { - _config2.default.playlists[playlist].shuffle_list[index].soundcloud_data = sound; - } - } else { - _config2.default.songs[index].url = sound.stream_url + "?client_id=" + _config2.default.soundcloud_client; - - if (addToShuffleList) { - _config2.default.shuffle_list[index].stream_url + "?client_id=" + _config2.default.soundcloud_client; - } - - /* - If the user want's to use soundcloud art, we overwrite the - cover_art_url with the soundcloud artwork url. - */ - if (_config2.default.soundcloud_use_art) { - _config2.default.songs[index].cover_art_url = sound.artwork_url; - - if (addToShuffleList) { - _config2.default.shuffle_list[index].cover_art_url = sound.artwork_url; - } - } - - /* - Grab the extra metadata from soundcloud and bind it to the - song. The user can get this through the public function: - getActiveSongMetadata - */ - _config2.default.songs[index].soundcloud_data = sound; - - if (addToShuffleList) { - _config2.default.shuffle_list[index].soundcloud_data = sound; - } - } - } else { - if (playlist != null) { - AmplitudeHelpers.writeDebugMessage(_config2.default.playlists[playlist].songs[index].name + " by " + _config2.default.playlists[playlist].songs[index].artist + " is not streamable by the Soundcloud API"); - } else { - /* - If not streamable, then we print a message to the user stating - that the song with name X and artist X is not streamable. This - gets printed ONLY if they have debug turned on. - */ - AmplitudeHelpers.writeDebugMessage(_config2.default.songs[index].name + " by " + _config2.default.songs[index].artist + " is not streamable by the Soundcloud API"); - } - } - }); - } - - /** - * Due to Soundcloud SDK being asynchronous, we need to scope the - * index of the song in another function. The privateGetSoundcloudStreamableURLs - * function does the actual iteration and scoping. - * - * @access private - * @param {string} url - URL of the soundcloud song - * @param {number} index - The index of the soundcloud song in the songs array. - */ - function resolveStreamable(url, index) { - SC.get("/resolve/?url=" + url, function (sound) { - /* - If streamable we get the url and bind the client ID to the end - so Amplitude can just stream the song normally. We then overwrite - the url the user provided with the streamable URL. - */ - if (sound.streamable) { - _config2.default.songs[index].url = sound.stream_url + "?client_id=" + _config2.default.soundcloud_client; - - /* - If the user want's to use soundcloud art, we overwrite the - cover_art_url with the soundcloud artwork url. - */ - if (_config2.default.soundcloud_use_art) { - _config2.default.songs[index].cover_art_url = sound.artwork_url; - } - - /* - Grab the extra metadata from soundcloud and bind it to the - song. The user can get this through the public function: - getActiveSongMetadata - */ - _config2.default.songs[index].soundcloud_data = sound; - } else { - /* - If not streamable, then we print a message to the user stating - that the song with name X and artist X is not streamable. This - gets printed ONLY if they have debug turned on. - */ - AmplitudeHelpers.writeDebugMessage(_config2.default.songs[index].name + " by " + _config2.default.songs[index].artist + " is not streamable by the Soundcloud API"); - } - /* - Increments the song ready counter. - */ - _config2.default.soundcloud_songs_ready++; - - /* - When all songs are accounted for, then amplitude is ready - to rock and we set the rest of the config. - */ - if (_config2.default.soundcloud_songs_ready == _config2.default.soundcloud_song_count) { - _init2.default.setConfig(tempUserConfig); - } - }); - } - - /** - * Determines if a given URL is a SoundCloud URL. - * - * @param {string} url - The URL to test if it's a SoundCloud URL. - */ - function isSoundCloudURL(url) { - var soundcloud_regex = /^https?:\/\/(soundcloud.com|snd.sc)\/(.*)$/; - - return url.match(soundcloud_regex); - } - - /* - Returns the publically accessible methods - */ - return { - loadSoundCloud: loadSoundCloud, - resolveIndividualStreamableURL: resolveIndividualStreamableURL, - isSoundCloudURL: isSoundCloudURL - }; -}(); - -/** - * Imports the initializer - * @module init/AmplitudeInitializer - */ -exports.default = SoundCloud; -module.exports = exports["default"]; - -/***/ }), -/* 18 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Defines the Playback Speed Visual Elements Handler - * @module visual/PlaybackSpeedElements - */ -var PlaybackSpeedElements = function () { - /** - * Sets all of the visual playback speed buttons to have the right class - * to display the background image that represents the current playback - * speed. - * - * @access public - */ - function sync() { - /* - Gets all of the playback speed classes. - */ - var playbackSpeedClasses = document.getElementsByClassName("amplitude-playback-speed"); - - /* - Iterates over all of the playback speed classes - applying the right speed class for visual purposes. - */ - for (var i = 0; i < playbackSpeedClasses.length; i++) { - /* - Removes all of the old playback speed classes. - */ - playbackSpeedClasses[i].classList.remove("amplitude-playback-speed-10"); - playbackSpeedClasses[i].classList.remove("amplitude-playback-speed-15"); - playbackSpeedClasses[i].classList.remove("amplitude-playback-speed-20"); - - /* - Switch the current playback speed and apply the appropriate - speed class. - */ - switch (_config2.default.playback_speed) { - case 1: - playbackSpeedClasses[i].classList.add("amplitude-playback-speed-10"); - break; - case 1.5: - playbackSpeedClasses[i].classList.add("amplitude-playback-speed-15"); - break; - case 2: - playbackSpeedClasses[i].classList.add("amplitude-playback-speed-20"); - break; - } - } - } - - /** - * Returns the public facing methods - */ - return { - sync: sync - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = PlaybackSpeedElements; -module.exports = exports["default"]; - -/***/ }), -/* 19 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the shuffle elements - * @module visual/ShuffleElements - */ -var ShuffleElements = function () { - /** - * Syncs the global shuffle button visual state. - * - * @access public - */ - function syncMain() { - /* - Gets the shuffle buttons. - */ - var shuffleButtons = document.getElementsByClassName("amplitude-shuffle"); - - /* - Iterate over all of the shuffle buttons. - */ - for (var i = 0; i < shuffleButtons.length; i++) { - /* - Ensure the shuffle button doesn't belong to a playlist. We have - a separate method for that. - */ - if (shuffleButtons[i].getAttribute("data-amplitude-playlist") == null) { - /* - If the state of the player is shuffled on, true, then - we add the 'amplitude-shuffle-on' class and remove the - 'amplitude-shuffle-off' class. If the player is not shuffled - then we do the opposite. - */ - if (_config2.default.shuffle_on) { - shuffleButtons[i].classList.add("amplitude-shuffle-on"); - shuffleButtons[i].classList.remove("amplitude-shuffle-off"); - } else { - shuffleButtons[i].classList.add("amplitude-shuffle-off"); - shuffleButtons[i].classList.remove("amplitude-shuffle-on"); - } - } - } - } - - /** - * Syncs the playlist shuffle button visual state. - * - * @access public - * @param {string} playlist - The playlist string the shuffle button belongs to. - */ - function syncPlaylist(playlist) { - /* - Gets all of the shuffle buttons. - */ - var shuffleButtons = document.querySelectorAll('.amplitude-shuffle[data-amplitude-playlist="' + playlist + '"]'); - - /* - Iterate over all of the shuffle buttons - */ - for (var i = 0; i < shuffleButtons.length; i++) { - /* - If the state of the playlist is shuffled on, true, then - we add the 'amplitude-shuffle-on' class and remove the - 'amplitude-shuffle-off' class. If the player is not shuffled - then we do the opposite. - */ - if (_config2.default.playlists[playlist].shuffle) { - shuffleButtons[i].classList.add("amplitude-shuffle-on"); - shuffleButtons[i].classList.remove("amplitude-shuffle-off"); - } else { - shuffleButtons[i].classList.add("amplitude-shuffle-off"); - shuffleButtons[i].classList.remove("amplitude-shuffle-on"); - } - } - } - - /** - * Returns public facing methods - */ - return { - syncMain: syncMain, - syncPlaylist: syncPlaylist - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = ShuffleElements; -module.exports = exports["default"]; - -/***/ }), -/* 20 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles the syncing of the song played progress elements. - * - * @module visual/SongPlayedProgressElements - */ -var SongPlayedProgressElements = function () { - /** - * Syncs the song played progress bars. These are HTML5 progress elements. - * - * @access private - * @param {number} songPlayedPercentage - The percentage of the song that has been played. - */ - function sync(songPlayedPercentage) { - syncGlobal(songPlayedPercentage); - syncPlaylist(songPlayedPercentage); - syncSong(songPlayedPercentage); - syncSongInPlaylist(songPlayedPercentage); - } - - /** - * Sync how much has been played with a progress bar. This is the global progress bar. - * - * @access private - * @param {number} songPlayedPercentage - The percent of the song completed. - */ - function syncGlobal(percentage) { - /* - Ensure that the song completion percentage is a number - */ - if (!isNaN(percentage)) { - /* - Get all of the song progress bars - */ - var songPlayedProgressBars = document.querySelectorAll(".amplitude-song-played-progress"); - - for (var i = 0; i < songPlayedProgressBars.length; i++) { - var playlist = songPlayedProgressBars[i].getAttribute("data-amplitude-playlist"); - var songIndex = songPlayedProgressBars[i].getAttribute("data-amplitude-song-index"); - - if (playlist == null && songIndex == null) { - var max = songPlayedProgressBars[i].max; - - songPlayedProgressBars[i].value = percentage / 100 * max; - } - } - } - } - - /** - * Sync how much has been played with a progress bar. This is the playlist progress bar. - * - * @access public - * @param {number} songPlayedPercentage - The percent of the song completed. - */ - function syncPlaylist(percentage) { - /* - Ensure that the song completion percentage is a number - */ - if (!isNaN(percentage)) { - /* - Get all of the song progress bars - */ - var songPlayedProgressBars = document.querySelectorAll('.amplitude-song-played-progress[data-amplitude-playlist="' + _config2.default.active_playlist + '"]'); - - for (var i = 0; i < songPlayedProgressBars.length; i++) { - var song = songPlayedProgressBars[i].getAttribute("data-amplitude-song-index"); - - if (song == null) { - var max = songPlayedProgressBars[i].max; - - songPlayedProgressBars[i].value = percentage / 100 * max; - } - } - } - } - - /** - * Sync how much has been played with a progress bar. This is for an individual song. - * - * @access private - * @param {number} songPlayedPercentage - The percent of the song completed. - */ - function syncSong(percentage) { - if (_config2.default.active_playlist == null) { - /* - Ensure that the song completion percentage is a number - */ - if (!isNaN(percentage)) { - /* - Get all of the song progress bars - */ - var songPlayedProgressBars = document.querySelectorAll('.amplitude-song-played-progress[data-amplitude-song-index="' + _config2.default.active_index + '"]'); - - for (var i = 0; i < songPlayedProgressBars.length; i++) { - var playlist = songPlayedProgressBars[i].getAttribute("data-amplitude-playlist"); - - if (playlist == null) { - var max = songPlayedProgressBars[i].max; - - songPlayedProgressBars[i].value = percentage / 100 * max; - } - } - } - } - } - - /** - * Sync how much has been played with a progress bar. This is for an individual song in playlist. - * - * @access private - * @param {number} songPlayedPercentage - The percent of the song completed. - */ - function syncSongInPlaylist(percentage) { - /* - Ensure that the song completion percentage is a number - */ - if (!isNaN(percentage)) { - var activePlaylistIndex = _config2.default.active_playlist != "" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null; - - /* - Get all of the song progress bars - */ - var songPlayedProgressBars = document.querySelectorAll('.amplitude-song-played-progress[data-amplitude-playlist="' + _config2.default.active_playlist + '"][data-amplitude-song-index="' + activePlaylistIndex + '"]'); - - /* - Iterates over all of the song played progress elements - and sets them accordingly. - */ - for (var i = 0; i < songPlayedProgressBars.length; i++) { - var playlist = songPlayedProgressBars[i].getAttribute("data-amplitude-playlist"); - var songIndex = songPlayedProgressBars[i].getAttribute("data-amplitude-song-index"); - - if (playlist != null && songIndex != null) { - var max = songPlayedProgressBars[i].max; - - songPlayedProgressBars[i].value = percentage / 100 * max; - } - } - } - } - - /** - * Sets all of the song played progress bars to 0 - * - * @access public - */ - function resetElements() { - var songPlayedProgressBars = document.getElementsByClassName("amplitude-song-played-progress"); - - for (var i = 0; i < songPlayedProgressBars.length; i++) { - songPlayedProgressBars[i].value = 0; - } - } - - return { - sync: sync, - resetElements: resetElements - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = SongPlayedProgressElements; -module.exports = exports["default"]; - -/***/ }), -/* 21 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /** - * Imports the config module - * @module config - */ - - -/** - * AmplitudeJS Core Module - * @module core/Core - */ - - -/** - * AmplitudeJS SoundCloud Module - * @module soundcloud/SoundCloud - */ - - -/** - * Imports the utilities used by the main module. - */ -/** - * AmplitudeJS Config State Module - * @module utilities/ConfigState - */ - - -/** - * AmplitudeJS Debug Module - * @module utilities/Debug - */ - - -/** - * AmplitudeJS Checks Module - * @module utilities/Checks - */ - - -/** - * AmplitudeJS Shuffler Module - * @module utilities/Shuffler - */ - - -/** - * AmplitudeJS Events Module - * @module events/Events - */ - - -/** - * AmplitudeJS FX Module - * @module fx/Fx - */ - - -/** - * AmplitudeJS Visualizations Module - * @module fx/Visualizations - */ - - -/** - * AmplitudeJS WaveForm Module - * @module fx/WaveForm - */ - - -/** - * AmplitudeJS Audio Navigation Module. - * @module utilities/AudioNavigation - */ - - -/** - * AmplitudeJS Callbacks Module - * @module utilities/Callbacks - */ - - -/** - * AmplitudeJS Playlists Initializer Module - * @module init/Playlists - */ - - -/** - * Imports the AmplitudeJS Shuffle Elements - * @module visual/ShuffleElements - */ - - -/** - * Imports the AmplitudeJS Mute Elements - * @module visual/MuteElements - */ - - -/** - * Imports the AmplitudeJS Volume Slider - * @module visual/VolumeSliderElements - */ - - -/** - * Imports the AmplitudeJS Time Elements - * @module visual/TimeElements - */ - - -/** - * Imports the AmplitudeJS Play/Pause Elements Module. - * @module visual/PlayPauseElements - */ - - -/** - * Imports the AmplitudeJS MetaData Elements Module. - * @module visual/MetaDataElements - */ - - -/** - * Imports the AmplitudeJS PlaybackSpeedElements Module. - * @module visual/PlayBackSpeedElements - */ - - -/** - * Imports the AmplitudeJS Repeat Element - * @module visual/RepeatElements - */ - - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -var _soundcloud = __webpack_require__(17); - -var _soundcloud2 = _interopRequireDefault(_soundcloud); - -var _configState = __webpack_require__(6); - -var _configState2 = _interopRequireDefault(_configState); - -var _debug = __webpack_require__(4); - -var _debug2 = _interopRequireDefault(_debug); - -var _checks = __webpack_require__(5); - -var _checks2 = _interopRequireDefault(_checks); - -var _shuffler = __webpack_require__(13); - -var _shuffler2 = _interopRequireDefault(_shuffler); - -var _events = __webpack_require__(26); - -var _events2 = _interopRequireDefault(_events); - -var _fx = __webpack_require__(46); - -var _fx2 = _interopRequireDefault(_fx); - -var _visualizations = __webpack_require__(16); - -var _visualizations2 = _interopRequireDefault(_visualizations); - -var _waveform = __webpack_require__(22); - -var _waveform2 = _interopRequireDefault(_waveform); - -var _audioNavigation = __webpack_require__(3); - -var _audioNavigation2 = _interopRequireDefault(_audioNavigation); - -var _callbacks = __webpack_require__(9); - -var _callbacks2 = _interopRequireDefault(_callbacks); - -var _playlists = __webpack_require__(48); - -var _playlists2 = _interopRequireDefault(_playlists); - -var _shuffleElements = __webpack_require__(19); - -var _shuffleElements2 = _interopRequireDefault(_shuffleElements); - -var _muteElements = __webpack_require__(10); - -var _muteElements2 = _interopRequireDefault(_muteElements); - -var _volumeSliderElements = __webpack_require__(11); - -var _volumeSliderElements2 = _interopRequireDefault(_volumeSliderElements); - -var _timeElements = __webpack_require__(15); - -var _timeElements2 = _interopRequireDefault(_timeElements); - -var _playPauseElements = __webpack_require__(2); - -var _playPauseElements2 = _interopRequireDefault(_playPauseElements); - -var _metaDataElements = __webpack_require__(7); - -var _metaDataElements2 = _interopRequireDefault(_metaDataElements); - -var _playbackSpeedElements = __webpack_require__(18); - -var _playbackSpeedElements2 = _interopRequireDefault(_playbackSpeedElements); - -var _repeatElements = __webpack_require__(8); - -var _repeatElements2 = _interopRequireDefault(_repeatElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Initializer Module. Helps with the handling of all of the - * initialization for AmplitudeJS. - * - * @module init/Initializer - */ -var Initializer = function () { - /** - * The main init function. The user will call this through - * Amplitude.init({}) and pass in their settings. - * - * Public Accessor: Amplitude.init( user_config_json ) - * @access public - * @param {object} userConfig - A JSON object of user defined values that help configure and initialize AmplitudeJS. - */ - function initialize(userConfig) { - var ready = false; - - /* - Reset the config on init so we have a clean slate. This is if the - user has to re-init. - */ - _configState2.default.resetConfig(); - - /* - Initialize event handlers on init. This will clear any old - event handlers on the amplitude element and re-bind what is - necessary. - */ - _events2.default.initialize(); - - /* - Initialize the callbacks we listen to for the audio object. - */ - _callbacks2.default.initialize(); - - /* - Initializes debugging right away so we can use it for the rest - of the configuration. - */ - _config2.default.debug = userConfig.debug != undefined ? userConfig.debug : false; - - /* - Set default artwork, if specified. - */ - setArt(userConfig); - - /* - Checks to see if the user has songs defined. - */ - if (userConfig.songs) { - /* - Checks to see if the user has some songs in the songs array. - */ - if (userConfig.songs.length != 0) { - /* - Copies over the user defined songs. and prepares - Amplitude for the rest of the configuration. - */ - _config2.default.songs = userConfig.songs; - /* - Flag amplitude as ready. - */ - ready = true; - } else { - _debug2.default.writeMessage("Please add some songs, to your songs object!"); - } - } else { - _debug2.default.writeMessage("Please provide a songs object for AmplitudeJS to run!"); - } - - /* - Initializes the audio context. In this method it checks to see if the - user wants to use visualizations or not before proceeding. - */ - if (_fx2.default.webAudioAPIAvailable()) { - if (_fx2.default.determineUsingAnyFX()) { - /* - Configure the Web Audio API If It's available. - */ - _fx2.default.configureWebAudioAPI(); - - /* - Activates the audio context after an event for the user. - */ - document.documentElement.addEventListener("mousedown", function () { - if (_config2.default.context.state !== "running") { - _config2.default.context.resume(); - } - }); - - document.documentElement.addEventListener("keydown", function () { - if (_config2.default.context.state !== "running") { - _config2.default.context.resume(); - } - }); - - document.documentElement.addEventListener("keyup", function () { - if (_config2.default.context.state !== "running") { - _config2.default.context.resume(); - } - }); - - /* - Set the user waveform settings if provided. - */ - if (userConfig.waveforms != undefined && userConfig.waveforms.sample_rate != undefined) { - _config2.default.waveforms.sample_rate = userConfig.waveforms.sample_rate; - } - - /* - Initialize the waveform. - */ - _waveform2.default.init(); - - /* - If the user is registering visualizations on init, - we set them right away. - */ - if (userConfig.visualizations != undefined && userConfig.visualizations.length > 0) { - /* - Iterate over all of the visualizations and - register them in our player. - */ - for (var i = 0; i < userConfig.visualizations.length; i++) { - _visualizations2.default.register(userConfig.visualizations[i].object, userConfig.visualizations[i].params); - } - } - } - } else { - _debug2.default.writeMessage("The Web Audio API is not available on this platform. We are using your defined backups!"); - } - - /* - Initialize default live settings - */ - initializeDefaultLiveSettings(); - - /* - Initialize default song indexes - */ - initializeDefaultSongIndexes(); - - /* - When the preliminary config is ready, we are ready to proceed. - */ - if (ready) { - /* - Copies over the soundcloud information to the global config - which will determine where we go from there. - */ - _config2.default.soundcloud_client = userConfig.soundcloud_client != undefined ? userConfig.soundcloud_client : ""; - - /* - Checks if we want to use the art loaded from soundcloud. - */ - _config2.default.soundcloud_use_art = userConfig.soundcloud_use_art != undefined ? userConfig.soundcloud_use_art : ""; - - /* - If the user provides a soundcloud client then we assume that - there are URLs in their songs that will reference SoundCloud. - We then copy over the user config they provided to the - temp_user_config so we don't mess up the global or their configs - and load the soundcloud information. - */ - var tempUserConfig = {}; - - /* - If there's a soundcloud_client key set, we load the SoundCloud data - for all of the songs in the array. - */ - if (_config2.default.soundcloud_client != "") { - tempUserConfig = userConfig; - - /* - Load up SoundCloud for use with AmplitudeJS. - */ - _soundcloud2.default.loadSoundCloud(tempUserConfig); - } else { - /* - The user is not using Soundcloud with Amplitude at this point - so we just finish the configuration with the users's preferences. - */ - setConfig(userConfig); - } - } - - /* - Debug out what was initialized with AmplitudeJS. - */ - _debug2.default.writeMessage("Initialized With: "); - _debug2.default.writeMessage(_config2.default); - } - - /** - * Rebinds all of the elements in the display. - * - * Public Accessor: Amplitude.rebindDisplay() - * @access public - */ - function rebindDisplay() { - _events2.default.initialize(); - _metaDataElements2.default.displayMetaData(); - } - - /** - * Finishes the initalization of the config. Takes all of the user defined - * parameters and makes sure they override the defaults. The important - * config information is assigned in the publicInit() function. - * - * This function can be called from 2 different locations: - * 1. Right away on init after the important settings are defined. - * - * 2. After all of the Soundcloud URLs are resolved properly and - * soundcloud is configured. We will need the proper URLs from Soundcloud - * to stream through Amplitude so we get those right away before we - * set the information and the active song - * - * @access public - * @param {object} userConfig - A JSON object of user defined values that help configure and initialize AmplitudeJS. - */ - function setConfig(userConfig) { - /* - Checks if the user has any playlists defined. If they do - we have to initialize the functionality for the playlists. - */ - if (userConfig.playlists && countPlaylists(userConfig.playlists) > 0) { - _playlists2.default.initialize(userConfig.playlists); - } - - /* - Check to see if the user entered a start song - */ - if (userConfig.start_song != undefined && !userConfig.starting_playlist) { - /* - Ensure what has been entered is an integer. - */ - if (_checks2.default.isInt(userConfig.start_song)) { - _audioNavigation2.default.changeSong(_config2.default.songs[userConfig.start_song], userConfig.start_song); - } else { - _debug2.default.writeMessage("You must enter an integer index for the start song."); - } - } else { - _audioNavigation2.default.changeSong(_config2.default.songs[0], 0); - } - - /* - If the shuffle is on by default, shuffle the songs and - switch to the shuffled song. - */ - if (userConfig.shuffle_on != undefined && userConfig.shuffle_on) { - _config2.default.shuffle_on = true; - _shuffler2.default.shuffleSongs(); - - _audioNavigation2.default.changeSong(_config2.default.shuffle_list[0], 0); - } - - /* - Allows the user to set whether they want to continue to the next song - when the current song finishes or not. In any scenario that's not a playlist, - contining to the next song may not be desired. - */ - _config2.default.continue_next = userConfig.continue_next != undefined ? userConfig.continue_next : true; - - /* - If the user defined a playback speed, we copy over their - preference here, otherwise we default to normal playback - speed of 1.0. - */ - _config2.default.playback_speed = userConfig.playback_speed != undefined ? userConfig.playback_speed : 1.0; - - /* - Sets the audio playback speed. - */ - _core2.default.setPlaybackSpeed(_config2.default.playback_speed); - - /* - If the user wants the song to be pre-loaded for instant - playback, they set it to true. By default it's set to just - load the metadata. - */ - _config2.default.audio.preload = userConfig.preload != undefined ? userConfig.preload : "auto"; - - /* - Initializes the user defined callbacks. This should be a JSON - object that contains a key->value store of the callback name - and the name of the function the user needs to call. - */ - _config2.default.callbacks = userConfig.callbacks != undefined ? userConfig.callbacks : {}; - - /* - Initializes the user defined key bindings. This should be a JSON - object that contains a key->value store of the key event number - pressed and the method to be run. - */ - _config2.default.bindings = userConfig.bindings != undefined ? userConfig.bindings : {}; - - /* - The user can define a starting volume in a range of 0-100 with - 0 being muted and 100 being the loudest. After the config is set - Amplitude sets the active song's volume to the volume defined - by the user. - */ - _config2.default.volume = userConfig.volume != undefined ? userConfig.volume : 50; - - /* - Sets the delay between songs if the user has it set. This should be in MS. - */ - _config2.default.delay = userConfig.delay != undefined ? userConfig.delay : 0; - - /* - The user can set the volume increment and decrement values between 1 and 100 - for when the volume up or down button is pressed. The default is an increase - or decrease of 5. - */ - _config2.default.volume_increment = userConfig.volume_increment != undefined ? userConfig.volume_increment : 5; - - _config2.default.volume_decrement = userConfig.volume_decrement != undefined ? userConfig.volume_decrement : 5; - - /* - Set the volume to what is defined in the config. The user can define this, - so we should set it up that way. - */ - _core2.default.setVolume(_config2.default.volume); - - /* - Set default artwork, if specified - */ - setArt(userConfig); - - /* - Initialize the visual elements - */ - initializeElements(); - - /* - If the user has selected a starting playlist, we need to set the starting playlist - and sync the visuals - */ - if (userConfig.starting_playlist != undefined && userConfig.starting_playlist != "") { - /* - Set the active playlist to the starting playlist by the user - */ - _config2.default.active_playlist = userConfig.starting_playlist; - - /* - Check if the user defined a song to start with in the playlist. - */ - if (userConfig.starting_playlist_song != undefined && userConfig.starting_playlist_song != "") { - /* - Ensure the song is a valid index. - */ - if (_typeof(userConfig.playlists[userConfig.starting_playlist].songs[parseInt(userConfig.starting_playlist_song)]) != undefined) { - /* - Set the player to the song defined by the user. - */ - _audioNavigation2.default.changeSongPlaylist(_config2.default.active_playlist, userConfig.playlists[userConfig.starting_playlist].songs[parseInt(userConfig.starting_playlist_song)], parseInt(userConfig.starting_playlist_song)); - } else { - /* - Set the player to the first song in the playlist - */ - _audioNavigation2.default.changeSongPlaylist(_config2.default.active_playlist, userConfig.playlists[userConfig.starting_playlist].songs[0], 0); - /* - Debug that the song index doesn't exist - */ - _debug2.default.writeMessage("The index of " + userConfig.starting_playlist_song + " does not exist in the playlist " + userConfig.starting_playlist); - } - } else { - /* - Set the player to the first song in the playlist - */ - _audioNavigation2.default.changeSong(_config2.default.active_playlist, userConfig.playlists[userConfig.starting_playlist].songs[0], 0); - } - - /* - Sync the main and song play pause buttons. - */ - _playPauseElements2.default.sync(); - } - - /* - Run after init callback - */ - _callbacks2.default.run("initialized"); - } - - /** - * Sets the default_album_art and default_playlist_art from the - * user supplied configuration. - * - * @access public - * @param {object} userConfig - A JSON object of user defined values that help configure and initialize AmplitudeJS. - */ - function setArt(userConfig) { - /* - If the user defines default album art, this image will display if the active - song doesn't have album art defined. - */ - if (userConfig.default_album_art != undefined) { - _config2.default.default_album_art = userConfig.default_album_art; - } else { - _config2.default.default_album_art = ""; - } - - /* - If the user defines default playlist art, this image will display if the user - tries to set up a playlist meta data image tag but doesn't have one defined. - */ - if (userConfig.default_playlist_art != undefined) { - _config2.default.default_playlist_art = userConfig.default_playlist_art; - } else { - _config2.default.default_playlist_art = ""; - } - } - - /** - * Initializes all of the elements on the page to the default starting point - * to build from there. - * - * @access private - */ - function initializeElements() { - /* - Visually sync the shuffle statuses - */ - _shuffleElements2.default.syncMain(); - - /* - Sync Mute Elements. - */ - _muteElements2.default.setMuted(_config2.default.volume == 0 ? true : false); - - /* - Sync Volume Slider Elements - */ - _volumeSliderElements2.default.sync(); - - /* - Syncs all of the playback speed elements. - */ - _playbackSpeedElements2.default.sync(); - - /* - Syncs all of the visual time elements to 00. - */ - _timeElements2.default.resetCurrentTimes(); - - /* - Sets all of the play pause buttons to pause. - */ - _playPauseElements2.default.syncToPause(); - - /* - Sets the meta data for the songs automatically. - */ - _metaDataElements2.default.syncMetaData(); - - /* - Sets the repeat buttons automatically. - */ - _repeatElements2.default.syncRepeatSong(); - } - - /** - * Counts the number of playlists the user has configured. This ensures - * that the user has at least 1 playlist so we can validate the songs - * defined in the playlist are correct and they didn't enter an invalid - * ID. - * - * @access private - * @param {object} playlists - - */ - function countPlaylists(playlists) { - /* - Initialize the placeholders to iterate through the playlists - and find out how many we have to account for. - */ - var size = 0, - key = void 0; - - /* - Iterate over playlists and if the user has the playlist defined, - increment the size of playlists. - */ - for (key in playlists) { - if (playlists.hasOwnProperty(key)) { - size++; - } - } - - /* - Debug how many playlists are in the config. - */ - _debug2.default.writeMessage("You have " + size + " playlist(s) in your config"); - - /* - Return the number of playlists in the config. - */ - return size; - } - - /** - * Intializes the default live settings for all of the songs. - * - * @access private - */ - function initializeDefaultLiveSettings() { - for (var i = 0; i < _config2.default.songs.length; i++) { - if (_config2.default.songs[i].live == undefined) { - _config2.default.songs[i].live = false; - } - } - } - - /** - * Initializes the index of the song in the songs array so - * we can reference it if needed - * - * @access private - */ - function initializeDefaultSongIndexes() { - for (var i = 0; i < _config2.default.songs.length; i++) { - _config2.default.songs[i].index = i; - } - } - - /* - Returns the publicly accessible methods - */ - return { - initialize: initialize, - setConfig: setConfig, - rebindDisplay: rebindDisplay - }; -}(); - -exports.default = Initializer; -module.exports = exports["default"]; - -/***/ }), -/* 22 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Builds a waveform for the current audio. - * Help from: https://robots.thoughtbot.com/javascript-audio-api - * https://stackoverflow.com/questions/21347833/html-svg-not-drawing-works-in-other-pages - */ -var WaveForm = function () { - /* - Initialize the local variables used in the Waveform. - */ - var buffer = ""; - var sampleRate = ""; - var peaks = ""; - - function init() { - sampleRate = _config2.default.waveforms.sample_rate; - - /* - Grabs all of the waveform elements on the page. - */ - var waveforms = document.querySelectorAll(".amplitude-wave-form"); - - /* - If there are waveforms, we iterate over them and set them up to display - properly. - */ - if (waveforms.length > 0) { - /* - Iterate over all of the waveforms and build the SVG parts. - */ - for (var i = 0; i < waveforms.length; i++) { - /* - Clear the inner HTML of the element if we are replacing the waveform. - */ - waveforms[i].innerHTML = ""; - - /* - Inserts an SVG into the element. - */ - var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg"); - svg.setAttribute("viewBox", "0 -1 " + sampleRate + " 2"); - svg.setAttribute("preserveAspectRatio", "none"); - - /* - Add a g component to the SVG - */ - var g = document.createElementNS("http://www.w3.org/2000/svg", "g"); - svg.appendChild(g); - - /* - Add a path component to the g - */ - var path = document.createElementNS("http://www.w3.org/2000/svg", "path"); - path.setAttribute("d", ""); - path.setAttribute("id", "waveform"); - - g.appendChild(path); - - /* - Append the SVG to the waveform. - */ - waveforms[i].appendChild(svg); - } - } - } - - /** - * Builds each waveform for the page. - */ - function build() { - if (_config2.default.web_audio_api_available) { - /* - If we don't have the wave form built, we need to build the waveform by loading - the src with an array buffer. - */ - if (_config2.default.waveforms.built[Math.abs(_config2.default.audio.src.split("").reduce(function (a, b) { - a = (a << 5) - a + b.charCodeAt(0); - return a & a; - }, 0))] == undefined) { - /* - Initializes a new XML Http Request. - */ - var req = new XMLHttpRequest(); - - /* - Opens the src parameter for the audio file to read in. - */ - req.open("GET", _config2.default.audio.src, true); - req.responseType = "arraybuffer"; - - /* - When the ready state changes, check to see if we can render the - wave form. - */ - req.onreadystatechange = function (e) { - /* - When the request is complete, then we begin decoding the - audio to build the waveform. - */ - if (req.readyState == 4) { - /* - If the status is 200 means the response is a success and - we decode the audio data. - */ - if (req.status == 200) { - /* - Decode the audio data and process the waveform. - */ - _config2.default.context.decodeAudioData(req.response, function (bufferedAudio) { - /* - Set the buffer to the audio returned. - */ - buffer = bufferedAudio; - - /* - Get the peaks in the audio. - */ - peaks = getPeaks(sampleRate, buffer); - - /* - Build the SVG - */ - process(sampleRate, buffer, peaks); - }); - } - } - }; - req.send(); - } else { - /* - If we already have a waveform, we grab the waveform that - was created for the song and display it. We do a simple hash - of the song URL so it's already unique. - */ - displayWaveForms(_config2.default.waveforms.built[Math.abs(_config2.default.audio.src.split("").reduce(function (a, b) { - a = (a << 5) - a + b.charCodeAt(0); - return a & a; - }, 0))]); - } - } - } - - /** - * Processes the audio and generates the waveform. - * - * @param {sampleRate} sampleRate - The rate we should sample the audio. - * @param {arraybuffer} buffer - The Web Audio API - * @param {array} peaks - The peaks in the audio. - */ - function process(sampleRate, buffer, peaks) { - /* - If we have a buffer, we find the peaks in the audio. - */ - if (buffer) { - /* - Get the total peaks in the song. - */ - var totalPeaks = peaks.length; - - /* - Figure out the depth of the peak. - */ - var d = ""; - for (var peakNumber = 0; peakNumber < totalPeaks; peakNumber++) { - if (peakNumber % 2 === 0) { - d += " M" + ~~(peakNumber / 2) + ", " + peaks.shift(); - } else { - d += " L" + ~~(peakNumber / 2) + ", " + peaks.shift(); - } - } - - /* - Add the waveform to the built waveforms array. - */ - _config2.default.waveforms.built[Math.abs(_config2.default.audio.src.split("").reduce(function (a, b) { - a = (a << 5) - a + b.charCodeAt(0); - return a & a; - }, 0))] = d; - - /* - Display the waveform. - */ - displayWaveForms(_config2.default.waveforms.built[Math.abs(_config2.default.audio.src.split("").reduce(function (a, b) { - a = (a << 5) - a + b.charCodeAt(0); - return a & a; - }, 0))]); - } - } - - /** - * Get the peaks of the audio for the waveform. - * - * @param {number} length - The sample size of the audio. - * @param {array} buffer - The array buffer used to find the peaks in the audio. - */ - function getPeaks(length, buffer) { - /* - Set the parameters needed to build the SVG. - */ - var sampleSize = buffer.length / length; - var sampleStep = ~~(sampleSize / 10) || 1; - var numberOfChannels = buffer.numberOfChannels; - var mergedPeaks = []; - - /* - Iterate over the channels and find the peaks. - */ - for (var channelNumber = 0; channelNumber < numberOfChannels; channelNumber++) { - /* - Initialize the peaks array and set the channel data to what - the buffer has in its channel data. - */ - var _peaks = []; - var channelData = buffer.getChannelData(channelNumber); - - /* - Iterate over peaks with respect to the sample size. - */ - for (var peakNumber = 0; peakNumber < length; peakNumber++) { - /* - Gt the start and end peak. - */ - var start = ~~(peakNumber * sampleSize); - var end = ~~(start + sampleSize); - - /* - Set min and max to the channel data first peak. - */ - var min = channelData[0]; - var max = channelData[0]; - - /* - Iterate over the parts of the song starting to the - ending to display the waveform. - */ - for (var sampleIndex = start; sampleIndex < end; sampleIndex += sampleStep) { - var value = channelData[sampleIndex]; - - if (value > max) { - max = value; - } - if (value < min) { - min = value; - } - } - - /* - Set the max and min for the peak. - */ - _peaks[2 * peakNumber] = max; - _peaks[2 * peakNumber + 1] = min; - - /* - Merge the peaks - */ - if (channelNumber === 0 || max > mergedPeaks[2 * peakNumber]) { - mergedPeaks[2 * peakNumber] = max; - } - - if (channelNumber === 0 || min < mergedPeaks[2 * peakNumber + 1]) { - mergedPeaks[2 * peakNumber + 1] = min; - } - } - } - - /* - Returns the merged peaks. - */ - return mergedPeaks; - } - - /** - * Displays all of the waveforms necessary. - * - * @param {path} svg - The drawing of the waveform. - */ - function displayWaveForms(svg) { - var waveformElements = document.querySelectorAll(".amplitude-wave-form"); - - /* - Iterate over all of the waveform elements and - display the waveform. - */ - for (var i = 0; i < waveformElements.length; i++) { - /* - Get the playlist attribute of the waveform element. - */ - var playlist = waveformElements[i].getAttribute("data-amplitude-playlist"); - - /* - Get the song index attribute of the waveform element. - */ - var song = waveformElements[i].getAttribute("data-amplitude-song-index"); - - /* - If the playlist is null and the song is null it's a global element. - */ - if (playlist == null && song == null) { - displayGlobalWaveform(waveformElements[i], svg); - } - - /* - If the playlist is defined but the song is null it's a playlist element. - */ - if (playlist != null && song == null) { - displayPlaylistWaveform(waveformElements[i], svg, playlist); - } - - /* - If the playlist is not defined and the song is not null it's a song - element. - */ - if (playlist == null && song != null) { - displaySongWaveform(waveformElements[i], svg, song); - } - - /* - If the playlist and song are defined it's a song in the playlist element. - */ - if (playlist != null && song != null) { - displaySongInPlaylistWaveform(waveformElements[i], svg, playlist, song); - } - } - } - - /** - * Displays a global wave form. - * - * @param {Node} element - Element to display the waveform in. - * @param {SVG} svg - The waveform path. - */ - function displayGlobalWaveform(element, svg) { - var waveformPath = element.querySelector("svg g path"); - - waveformPath.setAttribute("d", svg); - } - - /** - * Displays a playlist wave form. - * - * @param {Node} element - Element to display the waveform in. - * @param {SVG} svg - The waveform path. - * @param {string} playlist - The playlist we are displaying the waveform for. - */ - function displayPlaylistWaveform(element, svg, playlist) { - /* - Ensure the playlist is the active playlist. - */ - if (_config2.default.active_playlist == playlist) { - var waveformPath = element.querySelector("svg g path"); - - waveformPath.setAttribute("d", svg); - } - } - - /** - * Displays a song wave form. - * - * @param {Node} element - Element to display the waveform in. - * @param {SVG} svg - The waveform path. - * @param {Integer} song - The index of the song we are displaying the - * waveform for. - */ - function displaySongWaveform(element, svg, song) { - /* - Ensure it's the active song being displayed. - */ - if (_config2.default.active_index == song) { - var waveformPath = element.querySelector("svg g path"); - - waveformPath.setAttribute("d", svg); - } - } - - /** - * Displays a song in playlist waveform. - * - * @param {Node} element - Element to display the waveform in. - * @param {SVG} svg - The waveform path. - * @param {String} playlist - The playlist the waveform is in. - * @param {Integer} song - The index of the song we are displaying the waveform for. - */ - function displaySongInPlaylistWaveform(element, svg, playlist, song) { - /* - Ensure it's the active song in the active playlist. - */ - if (_config2.default.active_playlist == playlist && _config2.default.playlists[_config2.default.active_playlist].active_index == song) { - var waveformPath = element.querySelector("svg g path"); - - waveformPath.setAttribute("d", svg); - } - } - - /** - * Determines if the user is using waveforms - */ - function determineIfUsingWaveforms() { - var waveforms = document.querySelectorAll(".amplitude-wave-form"); - - if (waveforms.length > 0) { - return true; - } else { - return false; - } - } - - /* - Return the public methods. - */ - return { - init: init, - build: build, - determineIfUsingWaveforms: determineIfUsingWaveforms - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = WaveForm; -module.exports = exports["default"]; - -/***/ }), -/* 23 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * The utility to handle the computation of time in AmplitudeJS. - * @module utilities/Time - */ -var Time = function () { - /** - * Computes the current song time. Breaks down where the song is into - * hours, minutes, seconds and formats it to be displayed to the user. - * - * @access public - */ - function computeCurrentTimes() { - /* - Initialize the current time object that will be returned. - */ - var currentTime = {}; - - /* - Computes the current seconds for the song. - */ - var currentSeconds = (Math.floor(_config2.default.audio.currentTime % 60) < 10 ? "0" : "") + Math.floor(_config2.default.audio.currentTime % 60); - - /* - Computes the current minutes for the song. - */ - var currentMinutes = Math.floor(_config2.default.audio.currentTime / 60); - - /* - Initialize the current hours variable. - */ - var currentHours = "00"; - - /* - If the current minutes is less than 10, we add a leading 0. - */ - if (currentMinutes < 10) { - currentMinutes = "0" + currentMinutes; - } - - /* - If the user is more than 60 minutes into the song, then - we extract the hours. - */ - if (currentMinutes >= 60) { - currentHours = Math.floor(currentMinutes / 60); - currentMinutes = currentMinutes % 60; - - /* - If the user is less than 10 minutes in, we append the - additional 0 to the minutes. - */ - if (currentMinutes < 10) { - currentMinutes = "0" + currentMinutes; - } - } - - /* - Build a clean current time object and send back the appropriate information. - */ - currentTime.seconds = currentSeconds; - currentTime.minutes = currentMinutes; - currentTime.hours = currentHours; - - return currentTime; - } - - /** - * Computes the current song duration. Breaks down where the song is into - * hours, minutes, seconds and formats it to be displayed to the user. - * - * @access public - */ - function computeSongDuration() { - /* - Initialize the song duration object that will be returned. - */ - var songDuration = {}; - - /* - Computes the duration of the song's seconds. - */ - var songDurationSeconds = (Math.floor(_config2.default.audio.duration % 60) < 10 ? "0" : "") + Math.floor(_config2.default.audio.duration % 60); - - /* - Computes the duration of the song's minutes. - */ - var songDurationMinutes = Math.floor(_config2.default.audio.duration / 60); - - /* - Initialize the hours duration variable. - */ - var songDurationHours = "00"; - - /* - If the song duration minutes is less than 10, we add a leading 0. - */ - if (songDurationMinutes < 10) { - songDurationMinutes = "0" + songDurationMinutes; - } - - /* - If there is more than 60 minutes in the song, then we - extract the hours. - */ - if (songDurationMinutes >= 60) { - songDurationHours = Math.floor(songDurationMinutes / 60); - songDurationMinutes = songDurationMinutes % 60; - - /* - If the song duration minutes is less than 10 we append - the additional 0. - */ - if (songDurationMinutes < 10) { - songDurationMinutes = "0" + songDurationMinutes; - } - } - - /* - Build a clean song duration object and send back the appropriate information. - */ - songDuration.seconds = isNaN(songDurationSeconds) ? "00" : songDurationSeconds; - songDuration.minutes = isNaN(songDurationMinutes) ? "00" : songDurationMinutes; - songDuration.hours = isNaN(songDurationHours) ? "00" : songDurationHours.toString(); - - return songDuration; - } - - /** - * Computes the song completion percentage. - * - * @access public - */ - function computeSongCompletionPercentage() { - return _config2.default.audio.currentTime / _config2.default.audio.duration * 100; - } - - /** - * Sets the current time for the audio. - * - * @access public - */ - function setCurrentTime(time) { - /* - If the song is not live, we can set the current time. - */ - if (!_config2.default.active_metadata.live) { - /* - Makes sure the number is finite to set the time. - */ - if (isFinite(time)) { - _config2.default.audio.currentTime = time; - } - } - } - - /** - * Defines what is returned by the module - */ - return { - computeCurrentTimes: computeCurrentTimes, - computeSongDuration: computeSongDuration, - computeSongCompletionPercentage: computeSongCompletionPercentage, - setCurrentTime: setCurrentTime - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = Time; -module.exports = exports["default"]; - -/***/ }), -/* 24 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Visual Handler for Buffered Progress Elements - * - * @module visual/BufferedProgressElements - */ -var BufferedProgressElements = function () { - /** - * Syncs the buffered progress bars to the current percentage in the config - * - * @access public - */ - function sync() { - syncGlobal(); - syncPlaylist(); - syncSong(); - syncSongInPlaylist(); - } - - /** - * Sync the global song buffered progress elements. - */ - function syncGlobal() { - /* - Gets all of the song buffered progress bars. - */ - var songBufferedProgressBars = document.getElementsByClassName("amplitude-buffered-progress"); - - /* - Iterate over all of the song buffered progress bar and - set them to 0 which is like re-setting them. - */ - for (var i = 0; i < songBufferedProgressBars.length; i++) { - var playlist = songBufferedProgressBars[i].getAttribute("data-amplitude-playlist"); - var song = songBufferedProgressBars[i].getAttribute("data-amplitude-song-index"); - - if (playlist == null && song == null && !isNaN(_config2.default.buffered)) { - songBufferedProgressBars[i].value = parseFloat(parseFloat(_config2.default.buffered) / 100); - } - } - } - - /** - * Sync the playlist song buffered progress elements. - */ - function syncPlaylist() { - /* - Gets all of the song buffered progress bars. - */ - var songBufferedProgressBarsPlaylist = document.querySelectorAll('.amplitude-buffered-progress[data-amplitude-playlist="' + _config2.default.active_playlist + '"]'); - - /* - Iterate over all of the song buffered progress bar and - set them to 0 which is like re-setting them. - */ - for (var i = 0; i < songBufferedProgressBarsPlaylist.length; i++) { - var song = songBufferedProgressBarsPlaylist[i].getAttribute("data-amplitude-song-index"); - - if (song == null && !isNaN(_config2.default.buffered)) { - songBufferedProgressBarsPlaylist[i].value = parseFloat(parseFloat(_config2.default.buffered) / 100); - } - } - } - - /** - * Sync the song song buffered progress elements. - */ - function syncSong() { - /* - Gets all of the song buffered progress bars. - */ - var songBufferedProgressBarsSongs = document.querySelectorAll('.amplitude-buffered-progress[data-amplitude-song-index="' + _config2.default.active_index + '"]'); - - /* - Iterate over all of the song buffered progress bar and - set them to 0 which is like re-setting them. - */ - for (var i = 0; i < songBufferedProgressBarsSongs.length; i++) { - var playlist = songBufferedProgressBarsSongs[i].getAttribute("data-amplitude-playlist"); - - if (playlist == null && !isNaN(_config2.default.buffered)) { - songBufferedProgressBarsSongs[i].value = parseFloat(parseFloat(_config2.default.buffered) / 100); - } - } - } - - /** - * Sync the song in playlist song buffered progress elements. - */ - function syncSongInPlaylist() { - var activePlaylistIndex = _config2.default.active_playlist != null && _config2.default.active_playlist != "" ? _config2.default.playlists[_config2.default.active_playlist].active_index : null; - - /* - Gets all of the song buffered progress bars. - */ - var songBufferedProgressBarsSongsInPlaylist = document.querySelectorAll('.amplitude-buffered-progress[data-amplitude-song-index="' + activePlaylistIndex + '"][data-amplitude-playlist="' + _config2.default.active_playlist + '"]'); - - /* - Iterate over all of the song buffered progress bar and - set them to 0 which is like re-setting them. - */ - for (var i = 0; i < songBufferedProgressBarsSongsInPlaylist.length; i++) { - if (!isNaN(_config2.default.buffered)) { - songBufferedProgressBarsSongsInPlaylist[i].value = parseFloat(parseFloat(_config2.default.buffered) / 100); - } - } - } - - /** - * Sets all of the song buffered progress bars to 0 - * - * @access public - */ - function reset() { - /* - Gets all of the song buffered progress bars. - */ - var songBufferedProgressBars = document.getElementsByClassName("amplitude-buffered-progress"); - - /* - Iterate over all of the song buffered progress bar and - set them to 0 which is like re-setting them. - */ - for (var i = 0; i < songBufferedProgressBars.length; i++) { - songBufferedProgressBars[i].value = 0; - } - } - - /** - * Returns the public facing methods - */ - return { - sync: sync, - reset: reset - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = BufferedProgressElements; -module.exports = exports["default"]; - -/***/ }), -/* 25 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _audioNavigation = __webpack_require__(3); - -var _audioNavigation2 = _interopRequireDefault(_audioNavigation); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -var _playPauseElements = __webpack_require__(2); - -var _playPauseElements2 = _interopRequireDefault(_playPauseElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Ended Module. Handles the ended event on the audio. - * - * @module events/Ended - */ - - -/** - * Imports the AmplitudeJS Core Methods - * @module core/Core - */ -/** - * Imports the config module - * @module config - */ -var Ended = function () { - /** - * When the song has ended, handles what to do next - * - * HANDLER FOR: ended - * - * @access public - */ - function handle() { - /* - Sets the time out for song ended. This determines if - we should go to the next song or delay between songs. - */ - setTimeout(function () { - /* - If we continue next, we should move to the next song in the playlist. - */ - if (_config2.default.continue_next) { - /* - If the active playlist is not set, we set the - next song that's in the songs array. - */ - if (_config2.default.active_playlist == "" || _config2.default.active_playlist == null) { - _audioNavigation2.default.setNext(true); - } else { - _audioNavigation2.default.setNextPlaylist(_config2.default.active_playlist, true); - } - } else { - if (!_config2.default.is_touch_moving) { - /* - Stops the active song. - */ - _core2.default.stop(); - - /* - Sync the play pause elements. - */ - _playPauseElements2.default.sync(); - } - } - }, _config2.default.delay); - } - - /* - Returns the public facing methods. - */ - return { - handle: handle - }; -}(); - -/** - * Imports the AmplitudeJS Play Pause Elements - * @module visual/PlayPauseElements - */ - - -/** - * Imports the Audio Navigation Utility - * @module utilities/AudioNavigation - */ -exports.default = Ended; -module.exports = exports["default"]; - -/***/ }), -/* 26 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _keydown = __webpack_require__(27); - -var _keydown2 = _interopRequireDefault(_keydown); - -var _timeUpdate = __webpack_require__(42); - -var _timeUpdate2 = _interopRequireDefault(_timeUpdate); - -var _ended = __webpack_require__(25); - -var _ended2 = _interopRequireDefault(_ended); - -var _progress = __webpack_require__(35); - -var _progress2 = _interopRequireDefault(_progress); - -var _play = __webpack_require__(31); - -var _play2 = _interopRequireDefault(_play); - -var _pause = __webpack_require__(30); - -var _pause2 = _interopRequireDefault(_pause); - -var _playPause = __webpack_require__(32); - -var _playPause2 = _interopRequireDefault(_playPause); - -var _stop = __webpack_require__(41); - -var _stop2 = _interopRequireDefault(_stop); - -var _mute = __webpack_require__(28); - -var _mute2 = _interopRequireDefault(_mute); - -var _volumeUp = __webpack_require__(45); - -var _volumeUp2 = _interopRequireDefault(_volumeUp); - -var _volumeDown = __webpack_require__(43); - -var _volumeDown2 = _interopRequireDefault(_volumeDown); - -var _songSlider = __webpack_require__(40); - -var _songSlider2 = _interopRequireDefault(_songSlider); - -var _volumeSlider = __webpack_require__(44); - -var _volumeSlider2 = _interopRequireDefault(_volumeSlider); - -var _next = __webpack_require__(29); - -var _next2 = _interopRequireDefault(_next); - -var _prev = __webpack_require__(34); - -var _prev2 = _interopRequireDefault(_prev); - -var _repeat = __webpack_require__(36); - -var _repeat2 = _interopRequireDefault(_repeat); - -var _repeatSong = __webpack_require__(37); - -var _repeatSong2 = _interopRequireDefault(_repeatSong); - -var _playbackSpeed = __webpack_require__(33); - -var _playbackSpeed2 = _interopRequireDefault(_playbackSpeed); - -var _shuffle = __webpack_require__(38); - -var _shuffle2 = _interopRequireDefault(_shuffle); - -var _skipTo = __webpack_require__(39); - -var _skipTo2 = _interopRequireDefault(_skipTo); - -var _waveform = __webpack_require__(22); - -var _waveform2 = _interopRequireDefault(_waveform); - -var _debug = __webpack_require__(4); - -var _debug2 = _interopRequireDefault(_debug); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Events Module. Handles all of the events we listen to in - * AmplitudeJS. - * - * @module events/Events - */ - - -/** - * Imports all of the handler objects used by the events. - */ -var Events = function () { - /** - * Initializes the handlers for the events listened to by Amplitude - * - * @access public - */ - function initialize() { - /* - Write out debug message - */ - _debug2.default.writeMessage("Beginning initialization of event handlers.."); - - /* - Sets flag that the screen is moving and not a tap - */ - document.addEventListener("touchmove", function () { - _config2.default.is_touch_moving = true; - }); - - /* - On touch end if it was a touch move event, set moving to - false - */ - document.addEventListener("touchend", function () { - if (_config2.default.is_touch_moving) { - _config2.default.is_touch_moving = false; - } - }); - - /* - On time update for the audio element, update visual displays that - represent the time on either a visualized element or time display. - */ - bindTimeUpdate(); - - /* - Binds key down event handlers for matching key codes to functions. - */ - bindKeyDownEventHandlers(); - - /* - When the audio element has ended playing, we handle the song - ending. In a single song or multiple modular song instance, - this just synchronizes the visuals for time and song time - visualization, but for a playlist it determines whether - it should play the next song or not. - */ - bindSongEnded(); - - /* - Binds progress event so we can see how much of the song is loaded. - */ - bindProgress(); - - /* - Binds 'amplitude-play' event handlers - */ - bindPlay(); - - /* - Binds 'amplitude-pause' event handlers. - */ - bindPause(); - - /* - Binds 'amplitude-play-pause' event handlers. - */ - bindPlayPause(); - - /* - Binds 'amplitude-stop' event handlers. - */ - bindStop(); - - /* - Binds 'amplitude-mute' event handlers. - */ - bindMute(); - - /* - Binds 'amplitude-volume-up' event handlers - */ - bindVolumeUp(); - - /* - Binds 'amplitude-volume-down' event handlers - */ - bindVolumeDown(); - - /* - Binds 'amplitude-song-slider' event handlers - */ - bindSongSlider(); - - /* - Binds 'amplitude-volume-slider' event handlers. - */ - bindVolumeSlider(); - - /* - Binds 'amplitude-next' event handlers. - */ - bindNext(); - - /* - Binds 'amplitude-prev' event handlers. - */ - bindPrev(); - - /* - Binds 'amplitude-shuffle' event handlers. - */ - bindShuffle(); - - /* - Binds 'amplitude-repeat' event handlers. - */ - bindRepeat(); - - /* - Binds 'amplitude-repeat-song' event handlers. - */ - bindRepeatSong(); - - /* - Binds 'amplitude-playback-speed' event handlers. - */ - bindPlaybackSpeed(); - - /* - Binds 'amplitude-skip-to' event handlers. - */ - bindSkipTo(); - - /* - Binds `canplaythrough` event to build the waveform. - */ - bindCanPlayThrough(); - } - - /** - * On time update for the audio element, update visual displays that - * represent the time on either a visualized element or time display. - * - * @access private - */ - function bindTimeUpdate() { - /* - Bind for time update - */ - _config2.default.audio.removeEventListener("timeupdate", _timeUpdate2.default.handle); - _config2.default.audio.addEventListener("timeupdate", _timeUpdate2.default.handle); - - /* - Bind for duration change - */ - _config2.default.audio.removeEventListener("durationchange", _timeUpdate2.default.handle); - _config2.default.audio.addEventListener("durationchange", _timeUpdate2.default.handle); - } - - /** - * On keydown, we listen to what key got pressed so we can map the key to - * a function. This allows the user to map pause and play, next, etc. to key - * presses. - * - * @access private - */ - function bindKeyDownEventHandlers() { - document.removeEventListener("keydown", _keydown2.default.handle); - document.addEventListener("keydown", _keydown2.default.handle); - } - - /** - * When the audio element has ended playing, we handle the song - * ending. In a single song or multiple modular song instance, - * this just synchronizes the visuals for time and song time - * visualization, but for a playlist it determines whether - * it should play the next song or not. - * - * @access private - */ - function bindSongEnded() { - _config2.default.audio.removeEventListener("ended", _ended2.default.handle); - _config2.default.audio.addEventListener("ended", _ended2.default.handle); - } - - /** - * As the audio is loaded, the progress event gets fired. We bind into this - * to grab the buffered percentage of the song. We can then add more elements - * to show the buffered amount. - * - * @access private - */ - function bindProgress() { - _config2.default.audio.removeEventListener("progress", _progress2.default.handle); - _config2.default.audio.addEventListener("progress", _progress2.default.handle); - } - - /** - * Binds click and touchend events for AmplitudeJS play buttons - * - * @access private - */ - function bindPlay() { - /* - Gets all of the elements with the class amplitude-play - */ - var play_classes = document.getElementsByClassName("amplitude-play"); - - /* - Iterates over all of the play classes and binds the event interaction - method to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < play_classes.length; i++) { - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { - play_classes[i].removeEventListener("touchend", _play2.default.handle); - play_classes[i].addEventListener("touchend", _play2.default.handle); - } else { - play_classes[i].removeEventListener("click", _play2.default.handle); - play_classes[i].addEventListener("click", _play2.default.handle); - } - } - } - - /** - * Binds click and touchend events for AmplitudeJS pause buttons. - * - * @access private - */ - function bindPause() { - /* - Gets all of the elements with the class amplitude-pause - */ - var pause_classes = document.getElementsByClassName("amplitude-pause"); - - /* - Iterates over all of the pause classes and binds the event interaction - method to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < pause_classes.length; i++) { - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { - pause_classes[i].removeEventListener("touchend", _pause2.default.handle); - pause_classes[i].addEventListener("touchend", _pause2.default.handle); - } else { - pause_classes[i].removeEventListener("click", _pause2.default.handle); - pause_classes[i].addEventListener("click", _pause2.default.handle); - } - } - } - - /** - * Binds click and touchend events for AmplitudeJS play pause buttons - * - * @access private - */ - function bindPlayPause() { - /* - Gets all of the elements with the class amplitude-play-pause - */ - var play_pause_classes = document.getElementsByClassName("amplitude-play-pause"); - - /* - Iterates over all of the play/pause classes and binds the event interaction - method to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < play_pause_classes.length; i++) { - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { - play_pause_classes[i].removeEventListener("touchend", _playPause2.default.handle); - play_pause_classes[i].addEventListener("touchend", _playPause2.default.handle); - } else { - play_pause_classes[i].removeEventListener("click", _playPause2.default.handle); - play_pause_classes[i].addEventListener("click", _playPause2.default.handle); - } - } - } - - /** - * Binds click and touchend events for AmplitudeJS stop buttons - * - * @access private - */ - function bindStop() { - /* - Gets all of the elements with the class amplitude-stop - */ - var stop_classes = document.getElementsByClassName("amplitude-stop"); - - /* - Iterates over all of the stop classes and binds the event interaction - method to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < stop_classes.length; i++) { - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { - stop_classes[i].removeEventListener("touchend", _stop2.default.handle); - stop_classes[i].addEventListener("touchend", _stop2.default.handle); - } else { - stop_classes[i].removeEventListener("click", _stop2.default.handle); - stop_classes[i].addEventListener("click", _stop2.default.handle); - } - } - } - - /** - * Binds click and touchend events for AmplitudeJS mute buttons - * - * @access private - */ - function bindMute() { - /* - Gets all of the elements with the class amplitue-mute - */ - var mute_classes = document.getElementsByClassName("amplitude-mute"); - - /* - Iterates over all of the mute classes and binds the event interaction - method to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < mute_classes.length; i++) { - /* - WARNING: If iOS, we don't do anything because iOS does not allow the - volume to be adjusted through anything except the buttons on the side of - the device. - */ - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { - /* - Checks for an iOS device and displays an error message if debugging - is turned on. - */ - if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) { - _debug2.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"); - } else { - mute_classes[i].removeEventListener("touchend", _mute2.default.handle); - mute_classes[i].addEventListener("touchend", _mute2.default.handle); - } - } else { - mute_classes[i].removeEventListener("click", _mute2.default.handle); - mute_classes[i].addEventListener("click", _mute2.default.handle); - } - } - } - - /** - * Binds click and touchend events for AmplitudeJS Volume Up Buttons - * - * @access private - */ - function bindVolumeUp() { - /* - Gets all of the elements with the class amplitude-volume-up - */ - var volume_up_classes = document.getElementsByClassName("amplitude-volume-up"); - - /* - Iterates over all of the volume up classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < volume_up_classes.length; i++) { - /* - WARNING: If iOS, we don't do anything because iOS does not allow the - volume to be adjusted through anything except the buttons on the side of - the device. - */ - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { - /* - Checks for an iOS device and displays an error message if debugging - is turned on. - */ - if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) { - _debug2.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"); - } else { - volume_up_classes[i].removeEventListener("touchend", _volumeUp2.default.handle); - volume_up_classes[i].addEventListener("touchend", _volumeUp2.default.handle); - } - } else { - volume_up_classes[i].removeEventListener("click", _volumeUp2.default.handle); - volume_up_classes[i].addEventListener("click", _volumeUp2.default.handle); - } - } - } - - /** - * Binds click and touchend events for AmplitudeJS Volume Down Buttons - * - * @access private - */ - function bindVolumeDown() { - /* - Gets all of the elements with the class amplitude-volume-down - */ - var volume_down_classes = document.getElementsByClassName("amplitude-volume-down"); - - /* - Iterates over all of the volume down classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < volume_down_classes.length; i++) { - /* - WARNING: If iOS, we don't do anything because iOS does not allow the - volume to be adjusted through anything except the buttons on the side of - the device. - */ - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { - /* - Checks for an iOS device and displays an error message if debugging - is turned on. - */ - if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) { - _debug2.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"); - } else { - volume_down_classes[i].removeEventListener("touchend", _volumeDown2.default.handle); - volume_down_classes[i].addEventListener("touchend", _volumeDown2.default.handle); - } - } else { - volume_down_classes[i].removeEventListener("click", _volumeDown2.default.handle); - volume_down_classes[i].addEventListener("click", _volumeDown2.default.handle); - } - } - } - - /** - * Binds change and input events for AmplitudeJS Song Slider Inputs - * - * @access private - */ - function bindSongSlider() { - /* - Gets browser so if we need to apply overrides, like we usually - have to do for anything cool in IE, we can do that. - */ - var ua = window.navigator.userAgent; - var msie = ua.indexOf("MSIE "); - - /* - Gets all of the elements with the class amplitude-song-slider - */ - var song_sliders = document.getElementsByClassName("amplitude-song-slider"); - - /* - Iterates over all of the song slider classes and binds the event interaction - methods to the element. If the browser is IE we listen to the change event - where if it is anything else, it's the input method. - */ - for (var i = 0; i < song_sliders.length; i++) { - if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) { - song_sliders[i].removeEventListener("change", _songSlider2.default.handle); - song_sliders[i].addEventListener("change", _songSlider2.default.handle); - } else { - song_sliders[i].removeEventListener("input", _songSlider2.default.handle); - song_sliders[i].addEventListener("input", _songSlider2.default.handle); - } - } - } - - /** - * Binds change and input events fro AmplitudeJS Volume Slider inputs - * - * @access private - */ - function bindVolumeSlider() { - /* - Gets browser so if we need to apply overrides, like we usually - have to do for anything cool in IE, we can do that. - */ - var ua = window.navigator.userAgent; - var msie = ua.indexOf("MSIE "); - - /* - Gets all of the elements with the class amplitude-volume-slider - */ - var volume_sliders = document.getElementsByClassName("amplitude-volume-slider"); - - /* - Iterates over all of the volume slider classes and binds the event interaction - methods to the element. If the browser is IE we listen to the change event - where if it is anything else, it's the input method. - */ - for (var i = 0; i < volume_sliders.length; i++) { - /* - WARNING: If iOS, we don't do anything because iOS does not allow the - volume to be adjusted through anything except the buttons on the side of - the device. - */ - if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) { - _debug2.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"); - } else { - if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) { - volume_sliders[i].removeEventListener("change", _volumeSlider2.default.handle); - volume_sliders[i].addEventListener("change", _volumeSlider2.default.handle); - } else { - volume_sliders[i].removeEventListener("input", _volumeSlider2.default.handle); - volume_sliders[i].addEventListener("input", _volumeSlider2.default.handle); - } - } - } - } - - /** - * Binds click and touchend events fro AmplitudeJS Next buttons - * - * @access private - */ - function bindNext() { - /* - Gets all of the elements with the class amplitude-next - */ - var next_classes = document.getElementsByClassName("amplitude-next"); - - /* - Iterates over all of the next classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < next_classes.length; i++) { - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { - next_classes[i].removeEventListener("touchend", _next2.default.handle); - next_classes[i].addEventListener("touchend", _next2.default.handle); - } else { - next_classes[i].removeEventListener("click", _next2.default.handle); - next_classes[i].addEventListener("click", _next2.default.handle); - } - } - } - - /** - * Binds click and touchend events for AmplitudeJS prev buttons. - * - * @access private - */ - function bindPrev() { - /* - Gets all of the elements with the class amplitude-prev - */ - var prev_classes = document.getElementsByClassName("amplitude-prev"); - - /* - Iterates over all of the prev classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < prev_classes.length; i++) { - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { - prev_classes[i].removeEventListener("touchend", _prev2.default.handle); - prev_classes[i].addEventListener("touchend", _prev2.default.handle); - } else { - prev_classes[i].removeEventListener("click", _prev2.default.handle); - prev_classes[i].addEventListener("click", _prev2.default.handle); - } - } - } - - /** - * Binds click and touchend events for AmplitudeJS shuffle buttons. - * - * @access private - */ - function bindShuffle() { - /* - Gets all of the elements with the class amplitude-shuffle - */ - var shuffle_classes = document.getElementsByClassName("amplitude-shuffle"); - - /* - Iterates over all of the shuffle classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < shuffle_classes.length; i++) { - /* - Since we are re-binding everything we remove any classes that signify - a state of the shuffle control. - */ - shuffle_classes[i].classList.remove("amplitude-shuffle-on"); - shuffle_classes[i].classList.add("amplitude-shuffle-off"); - - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { - shuffle_classes[i].removeEventListener("touchend", _shuffle2.default.handle); - shuffle_classes[i].addEventListener("touchend", _shuffle2.default.handle); - } else { - shuffle_classes[i].removeEventListener("click", _shuffle2.default.handle); - shuffle_classes[i].addEventListener("click", _shuffle2.default.handle); - } - } - } - - /** - * Binds click and touchend events for AmplitudeJS repeat buttons. - * - * @access private - */ - function bindRepeat() { - /* - Gets all of the elements with the class amplitude-repeat - */ - var repeat_classes = document.getElementsByClassName("amplitude-repeat"); - - /* - Iterates over all of the repeat classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < repeat_classes.length; i++) { - /* - Since we are re-binding everything we remove any classes that signify - a state of the repeat control. - */ - repeat_classes[i].classList.remove("amplitude-repeat-on"); - repeat_classes[i].classList.add("amplitude-repeat-off"); - - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { - repeat_classes[i].removeEventListener("touchend", _repeat2.default.handle); - repeat_classes[i].addEventListener("touchend", _repeat2.default.handle); - } else { - repeat_classes[i].removeEventListener("click", _repeat2.default.handle); - repeat_classes[i].addEventListener("click", _repeat2.default.handle); - } - } - } - - /** - * Binds click and touchend events for AmplitudeJS repeat song buttons. - * - * @access private - */ - function bindRepeatSong() { - /* - Gets all of the elements with the class amplitude-repeat-song - */ - var repeat_song_classes = document.getElementsByClassName("amplitude-repeat-song"); - - /* - Iterates over all of the repeat song classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < repeat_song_classes.length; i++) { - /* - Since we are re-binding everything we remove any classes that signify - a state of the repeat control. - */ - repeat_song_classes[i].classList.remove("amplitude-repeat-on"); - repeat_song_classes[i].classList.add("amplitude-repeat-off"); - - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { - repeat_song_classes[i].removeEventListener("touchend", _repeatSong2.default.handle); - repeat_song_classes[i].addEventListener("touchend", _repeatSong2.default.handle); - } else { - repeat_song_classes[i].removeEventListener("click", _repeatSong2.default.handle); - repeat_song_classes[i].addEventListener("click", _repeatSong2.default.handle); - } - } - } - - /** - * Binds click and touchend events for AmplitudeJS playback speed buttons - * - * @access private - */ - function bindPlaybackSpeed() { - /* - Gets all of the elements with the class amplitude-playback-speed - */ - var playback_speed_classes = document.getElementsByClassName("amplitude-playback-speed"); - - /* - Iterates over all of the playback speed classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < playback_speed_classes.length; i++) { - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { - playback_speed_classes[i].removeEventListener("touchend", _playbackSpeed2.default.handle); - playback_speed_classes[i].addEventListener("touchend", _playbackSpeed2.default.handle); - } else { - playback_speed_classes[i].removeEventListener("click", _playbackSpeed2.default.handle); - playback_speed_classes[i].addEventListener("click", _playbackSpeed2.default.handle); - } - } - } - - /** - * Binds click and touchend events for AmplitudeJS skip to buttons. - * - * @access private - */ - function bindSkipTo() { - /* - Gets all of the skip to elements with the class 'amplitude-skip-to' - */ - var skipToClasses = document.getElementsByClassName("amplitude-skip-to"); - - /* - Iterates over all of the skip to classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it's a click. - */ - for (var i = 0; i < skipToClasses.length; i++) { - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { - skipToClasses[i].removeEventListener("touchend", _skipTo2.default.handle); - skipToClasses[i].addEventListener("touchend", _skipTo2.default.handle); - } else { - skipToClasses[i].removeEventListener("click", _skipTo2.default.handle); - skipToClasses[i].addEventListener("click", _skipTo2.default.handle); - } - } - } - - /** - * Binds can play through to a song. - * - * @access private - */ - function bindCanPlayThrough() { - if (_waveform2.default.determineIfUsingWaveforms()) { - _config2.default.audio.removeEventListener("canplaythrough", _waveform2.default.build); - _config2.default.audio.addEventListener("canplaythrough", _waveform2.default.build); - } - } - - /* - Returns the public facing functions. - */ - return { - initialize: initialize - }; -}(); - -/** - * Imports the utility classes used by the evnets. - */ -/* - Import the necessary classes and config to use - with the events. -*/ -exports.default = Events; -module.exports = exports["default"]; - -/***/ }), -/* 27 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -var _shuffler = __webpack_require__(13); - -var _shuffler2 = _interopRequireDefault(_shuffler); - -var _repeater = __webpack_require__(12); - -var _repeater2 = _interopRequireDefault(_repeater); - -var _audioNavigation = __webpack_require__(3); - -var _audioNavigation2 = _interopRequireDefault(_audioNavigation); - -var _repeatElements = __webpack_require__(8); - -var _repeatElements2 = _interopRequireDefault(_repeatElements); - -var _playPauseElements = __webpack_require__(2); - -var _playPauseElements2 = _interopRequireDefault(_playPauseElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Key Down event handler - * - * @module events/KeyDown - */ - - -/** - * Imports the Repeat Elements Visual Handler - * @module visual/RepeatElements - */ - - -/** - * Imports the Repeater Utility - * @module utilities/Repeater - */ - - -/** - * Imports the core of AmplitudeJS - * @module core/Core - */ -var KeyDown = function () { - /** - * When the keydown event is fired, we determine which function should be run - * based on what was passed in. - * - * HANDLER FOR: keydown - * - * @access public - * @prop {object} event The event object being passed in. - */ - function handle(event) { - runKeyEvent(event.which); - } - - /** - * Runs an event on key down - * - * @access public - * @param {number} key - The key code the event is bound to. - */ - function runKeyEvent(key) { - /* - Checks to see if the user bound an event to the code pressed. - */ - if (_config2.default.bindings[key] != undefined) { - /* - Determine which event should be run if bound. - */ - switch (_config2.default.bindings[key]) { - /* - Fires a play pause event. - */ - case "play_pause": - runPlayPauseKeyDownEvent(); - break; - - /* - Fires a next event. - */ - case "next": - runNextKeyDownEvent(); - break; - - /* - Fires a previous event. - */ - case "prev": - runPrevKeyDownEvent(); - break; - - /* - Fires a stop event. - */ - case "stop": - runStopKeyDownEvent(); - break; - - /* - Fires a shuffle event. - */ - case "shuffle": - runShuffleKeyDownEvent(); - break; - - /* - Fires a repeat event. - */ - case "repeat": - runRepeatKeyDownEvent(); - break; - } - } - } - - /** - * Runs the play pause method for key down. - */ - function runPlayPauseKeyDownEvent() { - /* - If the song is paused, we play the song. If the song is playing, - we pause the song. - */ - if (_config2.default.audio.paused) { - _core2.default.play(); - } else { - _core2.default.pause(); - } - - /* - Now we sync all the elements to match the state of the audio. - We don't need to do any checks on new songs or changed playlists - in the global since it's whatever song is playing. - */ - _playPauseElements2.default.sync(); - } - - /** - * Runs the next method for key down. - */ - function runNextKeyDownEvent() { - /* - Check to see if the current state of the player - is in playlist mode or not playlist mode. - */ - if (_config2.default.active_playlist == "" || _config2.default.active_playlist == null) { - _audioNavigation2.default.setNext(); - } else { - _audioNavigation2.default.setNextPlaylist(_config2.default.active_playlist); - } - } - - /** - * Runs the previous method for key down. - */ - function runPrevKeyDownEvent() { - /* - Check to see if the current playlist has been set - or null and set the previous song. - */ - if (_config2.default.active_playlist == "" || _config2.default.active_playlist == null) { - _audioNavigation2.default.setPrevious(); - } else { - _audioNavigation2.default.setPreviousPlaylist(_config2.default.active_playlist); - } - } - - /** - * Runs the stop method for key down. - */ - function runStopKeyDownEvent() { - /* - Syncs all of the play pause elements to pause. - */ - _playPauseElements2.default.syncToPause(); - - /* - Stops the active song. - */ - _core2.default.stop(); - } - - /** - * Runs the shuffle method for key down. - */ - function runShuffleKeyDownEvent() { - /* - Check to see if the current playlist has been set - or null and set the previous song. - */ - if (_config2.default.active_playlist == "" || _config2.default.active_playlist == null) { - _shuffler2.default.toggleShuffle(); - } else { - _shuffler2.default.toggleShufflePlaylist(_config2.default.active_playlist); - } - } - - /** - * Run the repeat method for key down. - */ - function runRepeatKeyDownEvent() { - /* - Toggles the repeat - */ - _repeater2.default.setRepeat(!_config2.default.repeat); - - /* - Visually sync repeat - */ - _repeatElements2.default.syncRepeat(); - } - - /** - * Returns the public methods for the handler. - */ - return { - handle: handle - }; -}(); - -/** - * Imports the Play Pause Elements Visual Handler - * @module visual/PlayPauseElements - */ - - -/** - * Imports the Audio Navigation Utility - * @module utilities/AudioNavigation - */ - - -/** - * Imports the Shuffle Utility - * @module utilities/Shuffle - */ -/** - * Imports the config module - * @module config - */ -exports.default = KeyDown; -module.exports = exports["default"]; - -/***/ }), -/* 28 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -var _muteElements = __webpack_require__(10); - -var _muteElements2 = _interopRequireDefault(_muteElements); - -var _volumeSliderElements = __webpack_require__(11); - -var _volumeSliderElements2 = _interopRequireDefault(_volumeSliderElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all events for a mute event. - * @module events/Mute - */ - - -/** - * Imports the AmplitudeJS Visual Mute Elements - * @module visual/MuteElements - */ -/** - * Imports the config to use the values - */ -var Mute = function () { - /** - * Handles an event for a mute element - * - * HANDLER FOR: class="amplitude-mute" - * - * @access public - */ - function handle() { - /* - We don't fire this if the user is touching the screen and it's moving. - This could lead to a mis-fire - */ - if (!_config2.default.is_touch_moving) { - /* - If the current volume in the config is 0, we set the volume to the - pre_mute level. This means that the audio is already muted and - needs to be restored to the pre_mute level. - Otherwise, we set pre_mute volume to the current volume - and set the config volume to 0, muting the audio. - */ - if (_config2.default.volume == 0) { - _core2.default.setVolume(_config2.default.pre_mute_volume); - } else { - _config2.default.pre_mute_volume = _config2.default.volume; - _core2.default.setVolume(0); - } - - /* - Sync Mute Elements. - */ - _muteElements2.default.setMuted(_config2.default.volume == 0 ? true : false); - - /* - Syncs the volume sliders so the visuals align up with the functionality. - If the volume is at 0, then the sliders should represent that so the user - has the right starting point. - */ - _volumeSliderElements2.default.sync(); - } - } - - /** - * Returns the public facing methods - */ - return { - handle: handle - }; -}(); - -/** - * Imports the AmplitudeJS Visual Volume Slider Elements - * @module visual/VolumeSliderElements - */ - - -/** - * Imports the AmplitudeJS Core Methods - * @module core/core - */ -exports.default = Mute; -module.exports = exports["default"]; - -/***/ }), -/* 29 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -var _playPauseElements = __webpack_require__(2); - -var _playPauseElements2 = _interopRequireDefault(_playPauseElements); - -var _callbacks = __webpack_require__(9); - -var _callbacks2 = _interopRequireDefault(_callbacks); - -var _audioNavigation = __webpack_require__(3); - -var _audioNavigation2 = _interopRequireDefault(_audioNavigation); - -var _debug = __webpack_require__(4); - -var _debug2 = _interopRequireDefault(_debug); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Next Event Handler - * - * @module events/Next - */ - - -/** - * Imports the Amplitude Audio Navigation Utility - * @module utilities/AudioNavigation - */ - - -/** - * Imports the Play Pause Elements Module. - * @module visual/PlayPauseElements - */ -/** - * Imports the config module - * @module config - */ -var Next = function () { - /** - * Handles an event on the next button - * - * HANDLER FOR: class="amplitude-next" - * - * GLOBAL: class="amplitude-next" - * PLAYLIST: class="amplitude-next" amplitude-playlist="playlist_key" - * - * @access public - */ - function handle() { - /* - We don't fire this if the user is touching the screen and it's moving. - This could lead to a mis-fire - */ - if (!_config2.default.is_touch_moving) { - /* - Gets the playlist attribute from the element. - */ - var playlist = this.getAttribute("data-amplitude-playlist"); - - /* - If the playlist is null, we handle the global next. - */ - if (playlist == null) { - handleGlobalNext(); - } - - /* - If the playlist is set, we handle the playlist next. - */ - if (playlist != null) { - handlePlaylistNext(playlist); - } - } - } - - /** - * Handles an event on a global enxt button. - * - * @access private - */ - function handleGlobalNext() { - /* - Check to see if the current state of the player - is in playlist mode or not playlist mode. If we are in playlist mode, - we set next on the playlist. - */ - if (_config2.default.active_playlist == "" || _config2.default.active_playlist == null) { - _audioNavigation2.default.setNext(); - } else { - _audioNavigation2.default.setNextPlaylist(_config2.default.active_playlist); - } - } - - /** - * Handles an event on a next playlist button. - * - * @access private - * @prop {string} playlist - The playlist we are handling the next for. - */ - function handlePlaylistNext(playlist) { - /* - Ensure the playlist is the same as the active playlist. To get to change - the scope to a new playlist, you need to play that playlist. - */ - if (playlist == _config2.default.active_playlist) { - _audioNavigation2.default.setNextPlaylist(playlist); - } else { - _debug2.default.writeMessage("You can not go to the next song on a playlist that is not being played!"); - } - } - - /* - Returns the public facing methods. - */ - return { - handle: handle - }; -}(); - -/** - * AmplitudeJS Debug Module - * @module utilities/Debug - */ - - -/** - * Imports the Callbacks Module - * @module utilities/Callbacks - */ - - -/** - * Imports the AmplitudeJS Core module. - * @module core/core - */ -exports.default = Next; -module.exports = exports["default"]; - -/***/ }), -/* 30 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _configState = __webpack_require__(6); - -var _configState2 = _interopRequireDefault(_configState); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -var _playPauseElements = __webpack_require__(2); - -var _playPauseElements2 = _interopRequireDefault(_playPauseElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the pause events - * @module events/Pause - */ - - -/** - * Imports the AmplitudeJS Core Methods - * @module core/Core - */ -/** - * Imports the config module - * @module config - */ -var Pause = function () { - /** - * Handles an event on a pause button - * - * HANDLER FOR: class="amplitude-pause" - * - * GLOBAL: class="amplitude-pause" - * PLAYLIST: class="amplitude-pause" amplitude-playlist="playlist_key" - * SONG: class="amplitude-pause" amplitude-song-index="song_index" - * SONG IN PLAYLIST: class="amplitude-pause" amplitude-playlist="playlist-key" amplitude-song-index="playlist_index" - * - * @access public - */ - function handle() { - /* - If the touch is moving, we do not want to accidentally touch the play - pause element and fire an event. - */ - if (!_config2.default.is_touch_moving) { - /* - Gets the attribute for song index so we can check if - there is a need to change the song. In some scenarios - there might be multiple pause classes on the page. In that - case it is possible the user could click a different pause - class. - */ - var songIndexAttribute = this.getAttribute("data-amplitude-song-index"); - var playlistAttribute = this.getAttribute("data-amplitude-playlist"); - - /* - Handle a global pause button. - */ - if (playlistAttribute == null && songIndexAttribute == null) { - handleGlobalPause(); - } - - /* - Handle a playlist pause button. - */ - if (playlistAttribute != null && songIndexAttribute == null) { - handlePlaylistPause(playlistAttribute); - } - - /* - Handle a song pause button. - */ - if (playlistAttribute == null && songIndexAttribute != null) { - handleSongPause(songIndexAttribute); - } - - /* - Handle a song in playlist pause button. - */ - if (playlistAttribute != null && songIndexAttribute != null) { - handleSongInPlaylistPause(playlistAttribute, songIndexAttribute); - } - } - } - - /** - * Handles global pause button which pauses whatever song is - * active. - * - * @access private - */ - function handleGlobalPause() { - /* - Pauses the song. - */ - _core2.default.pause(); - - /* - Sync the play pause elements. - */ - _playPauseElements2.default.sync(); - } - - /** - * Handles the playlist pause. - * - * @access private - * @param {string} playlist The playlist the pause button belongs to. - */ - function handlePlaylistPause(playlist) { - /* - Checks to see if the active playlist is the same - */ - if (_config2.default.active_playlist == playlist) { - /* - Pauses the song. - */ - _core2.default.pause(); - - /* - Sync the play pause elements. - */ - _playPauseElements2.default.sync(); - } - } - - /** - * Handles the song pause. - * - * @access private - * @param {integer} song The song the pause button belongs to. - */ - function handleSongPause(song) { - /* - Checks to see if the active playlist is null and the song matches - the active index. - */ - if ((_config2.default.active_playlist == "" || _config2.default.active_playlist == null) && _config2.default.active_index == song) { - /* - Pauses the song. - */ - _core2.default.pause(); - - /* - Sync the play pause elements. - */ - _playPauseElements2.default.sync(); - } - } - - /** - * Handles the song in playlist pause. - * - * @access private - * @param {string} playlist The playlist the pause button belongs to. - * @param {integer} song The song the pause button belongs to. - */ - function handleSongInPlaylistPause(playlist, song) { - /* - Checks to see if the active song matches the song and the - active playlist matches the playlist. This means the pause button is - for the song in the playlist. - */ - if (_config2.default.active_playlist == playlist && _config2.default.playlists[playlist].active_index == song) { - /* - Pauses the song. - */ - _core2.default.pause(); - - /* - Sync the play pause elements. - */ - _playPauseElements2.default.sync(); - } - } - - /* - Returns the public facing elements - */ - return { - handle: handle - }; -}(); - -/** - * Imports the AmplitudeJS Play Pause Elements - * @module visual/PlayPauseElements - */ - - -/** - * Imports the ConfigState module. - * @module utilities/ConfigState - */ -exports.default = Pause; -module.exports = exports["default"]; - -/***/ }), -/* 31 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _configState = __webpack_require__(6); - -var _configState2 = _interopRequireDefault(_configState); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -var _checks = __webpack_require__(5); - -var _checks2 = _interopRequireDefault(_checks); - -var _audioNavigation = __webpack_require__(3); - -var _audioNavigation2 = _interopRequireDefault(_audioNavigation); - -var _playPauseElements = __webpack_require__(2); - -var _playPauseElements2 = _interopRequireDefault(_playPauseElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the play events - * @module events/Play - */ - - -/** - * Imports the AmplitudeJS Audio Navigation Utility - * @module utilities/AudioNavigation - */ - - -/** - * Imports the AmplitudeJS Core Methods - * @module core/Core - */ -/** - * Imports the config module - * @module config - */ -var Play = function () { - /** - * Handles an event on a play button in Amplitude. - * - * HANDLER FOR: class="amplitude-play" - * - * GLOBAL: class="amplitude-play" - * PLAYLIST: class="amplitude-play" amplitude-playlist="playlist_key" - * SONG: class="amplitude-play" amplitude-song-index="song_index" - * SONG IN PLAYLIST: class="amplitude-play" amplitude-playlist="playlist-key" amplitude-song-index="playlist_index" - * - * @access public - */ - function handle() { - /* - If the touch is moving, we do not want to accidentally touch the play - pause element and fire an event. - */ - if (!_config2.default.is_touch_moving) { - /* - Gets the attribute for song index so we can check if - there is a need to change the song. In some scenarios - there might be multiple play classes on the page. In that - case it is possible the user could click a different play - class and change the song. - */ - var songIndexAttribute = this.getAttribute("data-amplitude-song-index"); - var playlistAttribute = this.getAttribute("data-amplitude-playlist"); - - /* - Handle a global play button. - */ - if (playlistAttribute == null && songIndexAttribute == null) { - handleGlobalPlay(); - } - - /* - Handle a playlist play button. - */ - if (playlistAttribute != null && songIndexAttribute == null) { - handlePlaylistPlay(playlistAttribute); - } - - /* - Handle a song play button. - */ - if (playlistAttribute == null && songIndexAttribute != null) { - handleSongPlay(songIndexAttribute); - } - - /* - Handle a song in playlist play button. - */ - if (playlistAttribute != null && songIndexAttribute != null) { - handleSongInPlaylistPlay(playlistAttribute, songIndexAttribute); - } - } - } - - /** - * Handles global play button which plays whatever song is - * active. - * - * @access private - */ - function handleGlobalPlay() { - /* - Plays the song - */ - _core2.default.play(); - - /* - Sync the play pause elements. - */ - _playPauseElements2.default.sync(); - } - - /** - * Handle the playlist play. - * - * @access private - * @param {string} playlist The playlist the play button belongs to. - */ - function handlePlaylistPlay(playlist) { - /* - Checks if we have a new playlist. - */ - if (_checks2.default.newPlaylist(playlist)) { - /* - Sets the active playlist to what belongs to the playlist. - */ - _audioNavigation2.default.setActivePlaylist(playlist); - - /* - Play first song in the playlist since we just - switched playlists, we start from the first song. - If the user has shuffle on for the playlist, then - we go from the first song in the shuffle playlist array. - */ - if (_config2.default.playlists[playlist].shuffle) { - _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].shuffle_list[0], 0); - } else { - _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[0], 0); - } - } - - /* - Plays the song. - */ - _core2.default.play(); - - /* - Syncs the play pause elements since they are dependent upon this state - of the player. - */ - _playPauseElements2.default.sync(); - } - - /** - * Handles the song play button. - * - * @access private - * @param {integer} song The index of the song we are playing. - */ - function handleSongPlay(song) { - /* - There can be multiple playlists on the page and there can be - multiple songs on the page AND there can be songs in multiple - playlists, so we have some checking to do. - */ - - /* - Check to see if the playlist has changed. Essentially, if we are moving - out of a playlist context. - */ - if (_checks2.default.newPlaylist(null)) { - /* - We've moved out of the playlist context, so we set the active playlist - to null - */ - _audioNavigation2.default.setActivePlaylist(null); - - /* - We then change the song to the index selected. - */ - _audioNavigation2.default.changeSong(_config2.default.songs[song], song); - } - - /* - Check to see if the song has changed. If it has, - set the active song. If it was in a playlist, the - song wouldn't change here, since we already set the - song when we checked for a playlist. - */ - if (_checks2.default.newSong(null, song)) { - /* - The song selected is different, so we change the - song. - */ - _audioNavigation2.default.changeSong(_config2.default.songs[song], song); - } - - /* - Plays the song - */ - _core2.default.play(); - - /* - Syncs the play pause elements since they are dependent upon this state - of the player. - */ - _playPauseElements2.default.sync(); - } - - /** - * Handles the song in playlist play. - * - * @access private - * @param {string} playlist The playlist the play button belongs to. - * @param {integer} song The song the play button belongs to. - */ - function handleSongInPlaylistPlay(playlist, song) { - /* - There can be multiple playlists on the page and there can be - multiple songs on the page AND there can be songs in multiple - playlists, so we have some checking to do. - */ - - /* - Check to see if the playlist has changed. Essentially, if we are moving - out of a playlist context. - */ - if (_checks2.default.newPlaylist(playlist)) { - /* - We've moved out of the playlist context, so we set the active playlist - to null - */ - _audioNavigation2.default.setActivePlaylist(playlist); - - /* - We then change the song to the index selected. - */ - _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[song], song); - } - - /* - Check to see if the song has changed. If it has, - set the active song. If it was in a playlist, the - song wouldn't change here, since we already set the - song when we checked for a playlist. - */ - if (_checks2.default.newSong(playlist, song)) { - /* - The song selected is different, so we change the - song. - */ - _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[song], song); - } - - /* - Plays the song - */ - _core2.default.play(); - - /* - Now we sync all the elements to match the state of the audio. - We don't need to do any checks on new songs or changed playlists - in the global since it's whatever song is playing. - */ - _playPauseElements2.default.sync(); - } - - /* - Returns the public facing elements - */ - return { - handle: handle - }; -}(); - -/** - * Imports the AmplitudeJS Play Pause Elements - * @module visual/PlayPauseElements - */ - - -/** - * Imports the AmplitudeJS Checks Utility - * @module utilities/Checks - */ - - -/** - * Imports the config state utility. - * @module utilities/ConfigState - */ -exports.default = Play; -module.exports = exports["default"]; - -/***/ }), -/* 32 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _configState = __webpack_require__(6); - -var _configState2 = _interopRequireDefault(_configState); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -var _checks = __webpack_require__(5); - -var _checks2 = _interopRequireDefault(_checks); - -var _audioNavigation = __webpack_require__(3); - -var _audioNavigation2 = _interopRequireDefault(_audioNavigation); - -var _playPauseElements = __webpack_require__(2); - -var _playPauseElements2 = _interopRequireDefault(_playPauseElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the play pause events - * @module events/PlayPause - */ - - -/** - * Imports the AmplitudeJS Audio Navigation Utility - * @module utilities/AudioNavigation - */ - - -/** - * Imports the AmplitudeJS Core Methods - * @module core/Core - */ -/** - * Imports the config module - * @module config - */ -var PlayPause = function () { - /** - * Handles an event on a play/pause button - * - * HANDLER FOR: class="amplitude-play-pause" - * - * GLOBAL: class="amplitude-play-pause" - * PLAYLIST: class="amplitude-play-pause" amplitude-playlist="playlist_key" - * SONG: class="amplitude-play-pause" amplitude-song-index="song_index" - * SONG IN PLAYLIST: class="amplitude-play-pause" amplitude-playlist="playlist-key" amplitude-song-index="playlist_index" - * - * @access public - */ - function handle() { - /* - If the touch is moving, we do not want to accidentally touch the play - pause element and fire an event. - */ - if (!_config2.default.is_touch_moving) { - /* - Get the playlist and song from the element. It's alright if these - are null. - */ - var playlist = this.getAttribute("data-amplitude-playlist"); - var song = this.getAttribute("data-amplitude-song-index"); - - /* - Handle a global play pause button - */ - if (playlist == null && song == null) { - handleGlobalPlayPause(); - } - - /* - Handle a playlist play pause button - */ - if (playlist != null && song == null) { - handlePlaylistPlayPause(playlist); - } - - /* - Handle a song play pause button - */ - if (playlist == null && song != null) { - handleSongPlayPause(song); - } - - /* - Handle a song in playlist play pause button - */ - if (playlist != null && song != null) { - handleSongInPlaylistPlayPause(playlist, song); - } - } - } - - /** - * Sets the main play pause buttons to the current state of the song. - * @access private - */ - function handleGlobalPlayPause() { - /* - If the song is paused, we play the song. If the song is playing, - we pause the song. - */ - if (_config2.default.audio.paused) { - _core2.default.play(); - } else { - _core2.default.pause(); - } - - /* - Now we sync all the elements to match the state of the audio. - We don't need to do any checks on new songs or changed playlists - in the global since it's whatever song is playing. - */ - _playPauseElements2.default.sync(); - } - - /** - * Sets the playlist main play pause buttons to the current state of the song. - * @access private - * @param {string} playlist The playlist the main play pause button controls - */ - function handlePlaylistPlayPause(playlist) { - /* - The only thing that can change when you click a playlist - play pause is the playlist. Main play pauses have no change - in song, song play pauses can change playlist and song. - */ - if (_checks2.default.newPlaylist(playlist)) { - /* - If there's a new playlist, then we set the new playlist. - */ - _audioNavigation2.default.setActivePlaylist(playlist); - - /* - Play first song in the playlist since we just - switched playlists, we start from the first song. - If the user has shuffle on for the playlist, then - we go from the first song in the shuffle playlist array. - */ - if (_config2.default.playlists[playlist].shuffle) { - _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].shuffle_list[0], 0, true); - } else { - _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[0], 0); - } - } - - /* - If the song is paused, we play the song. If the song is playing, - we pause the song. - */ - if (_config2.default.audio.paused) { - _core2.default.play(); - } else { - _core2.default.pause(); - } - - /* - Now we sync all the elements to match the state of the audio. - We don't need to do any checks on new songs or changed playlists - in the global since it's whatever song is playing. - */ - _playPauseElements2.default.sync(); - } - - /** - * Sets the playlist main play pause buttons to the current state of the song. - * @access private - * @param {string} song The index of the song being played/paused - */ - function handleSongPlayPause(song) { - /* - There can be multiple playlists on the page and there can be - multiple songs on the page AND there can be songs in multiple - playlists, so we have some checking to do. - */ - - /* - Check to see if the playlist has changed. Essentially, if we are moving - out of a playlist context. - */ - if (_checks2.default.newPlaylist(null)) { - /* - We've moved out of the playlist context, so we set the active playlist - to null - */ - _audioNavigation2.default.setActivePlaylist(null); - - /* - We then change the song to the index selected. - */ - _audioNavigation2.default.changeSong(_config2.default.songs[song], song, true); - } - - /* - Check to see if the song has changed. If it has, - set the active song. If it was in a playlist, the - song wouldn't change here, since we already set the - song when we checked for a playlist. - */ - if (_checks2.default.newSong(null, song)) { - /* - The song selected is different, so we change the - song. - */ - _audioNavigation2.default.changeSong(_config2.default.songs[song], song, true); - } - - /* - If the song is paused, we play the song. If the song is playing, - we pause the song. - */ - if (_config2.default.audio.paused) { - _core2.default.play(); - } else { - _core2.default.pause(); - } - - /* - Now we sync all the elements to match the state of the audio. - We don't need to do any checks on new songs or changed playlists - in the global since it's whatever song is playing. - */ - _playPauseElements2.default.sync(); - } - - /** - * Sets the song in playlist play pause buttons to the current - * state of the song. - * @access private - * @param {string} playlist The playlist the song is a part of - * @param {number} song The index of the song being played/paused - */ - function handleSongInPlaylistPlayPause(playlist, song) { - /* - There can be multiple playlists on the page and there can be - multiple songs on the page AND there can be songs in multiple - playlists, so we have some checking to do. - */ - - /* - Check to see if the playlist has changed. Essentially, if we are moving - out of a playlist context. - */ - if (_checks2.default.newPlaylist(playlist)) { - /* - We've moved out of the playlist context, so we set the active playlist - to null - */ - _audioNavigation2.default.setActivePlaylist(playlist); - - /* - We then change the song to the index selected. - */ - _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[song], song, true); - } - - /* - Check to see if the song has changed. If it has, - set the active song. If it was in a playlist, the - song wouldn't change here, since we already set the - song when we checked for a playlist. - */ - if (_checks2.default.newSong(playlist, song)) { - /* - The song selected is different, so we change the - song. - */ - _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[song], song, true); - } - - /* - If the song is paused, we play the song. If the song is playing, - we pause the song. - */ - if (_config2.default.audio.paused) { - _core2.default.play(); - } else { - _core2.default.pause(); - } - - /* - Now we sync all the elements to match the state of the audio. - We don't need to do any checks on new songs or changed playlists - in the global since it's whatever song is playing. - */ - _playPauseElements2.default.sync(); - } - - /** - * Returns the public facing methods - */ - return { - handle: handle - }; -}(); - -/** - * Imports the AmplitudeJS Play Pause Elements - * @module visual/PlayPauseElements - */ - - -/** - * Imports the AmplitudeJS Checks Utility - * @module utilities/Checks - */ - - -/** - * Import the config state utility. - * @module utilities/configState - */ -exports.default = PlayPause; -module.exports = exports["default"]; - -/***/ }), -/* 33 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -var _playbackSpeedElements = __webpack_require__(18); - -var _playbackSpeedElements2 = _interopRequireDefault(_playbackSpeedElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Playback Speed Event Handler - * - * @module events/PlaybackSpeed - */ - - -/** - * Imports the Amplitude Core module - * @module core/Core - */ -var PlaybackSpeed = function () { - /** - * Handles an event on the playback speed button - * - * HANDLER FOR: class="amplitude-playback-speed" - * - * @access public - */ - function handle() { - if (!_config2.default.is_touch_moving) { - /* - We increment the speed by .5 everytime we click - the button to change the playback speed. Once we are - actively playing back at 2, we start back at 1 which - is normal speed. - */ - switch (_config2.default.playback_speed) { - case 1: - _core2.default.setPlaybackSpeed(1.5); - break; - case 1.5: - _core2.default.setPlaybackSpeed(2); - break; - case 2: - _core2.default.setPlaybackSpeed(1); - break; - } - - /* - Visually sync the playback speed. - */ - _playbackSpeedElements2.default.sync(); - } - } - - /* - Returns public facing methods - */ - return { - handle: handle - }; -}(); - -/** - * Imports the Playback Speed Visual Elements - * @module visual/PlaybackSpeedElements - */ -/** - * Imports the config module - * @module config - */ -exports.default = PlaybackSpeed; -module.exports = exports["default"]; - -/***/ }), -/* 34 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _audioNavigation = __webpack_require__(3); - -var _audioNavigation2 = _interopRequireDefault(_audioNavigation); - -var _debug = __webpack_require__(4); - -var _debug2 = _interopRequireDefault(_debug); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Prev Event Handler - * - * @module events/Prev - */ - - -/** - * Imports the Amplitude Audio Navigation Utility - * @module utilities/AudioNavigation - */ -var Prev = function () { - /** - * Handles an event on the previous button - * - * HANDLER FOR: class="amplitude-prev" - * - * GLOBAL: class="amplitude-prev" - * PLAYLIST: class="amplitude-prev" amplitude-playlist="playlist_key" - * - * @access public - */ - function handle() { - /* - We don't fire this if the user is touching the screen and it's moving. - This could lead to a mis-fire - */ - if (!_config2.default.is_touch_moving) { - /* - Gets the playlist attribute from the element. - */ - var playlist = this.getAttribute("data-amplitude-playlist"); - - /* - If the playlist is null, we handle the global prev. - */ - if (playlist == null) { - handleGlobalPrev(); - } - - /* - If the playlist is set, we handle the playlist prev. - */ - if (playlist != null) { - handlePlaylistPrev(playlist); - } - } - } - - /** - * Handles an event on a global previous button. - * - * @access private - */ - function handleGlobalPrev() { - /* - Check to see if the current state of the player - is in playlist mode or not playlist mode. If we are in playlist mode, - we set prev on the playlist. - */ - if (_config2.default.active_playlist == "" || _config2.default.active_playlist == null) { - _audioNavigation2.default.setPrevious(); - } else { - _audioNavigation2.default.setPreviousPlaylist(_config2.default.active_playlist); - } - } - - /** - * Handles an event on a previous playlist button. - * - * @access private - * @prop {string} playlist - The playlist we are handling the previous for. - */ - function handlePlaylistPrev(playlist) { - /* - Ensure the playlist is the same as the active playlist. To get to change - the scope to a new playlist, you need to play that playlist. - */ - if (playlist == _config2.default.active_playlist) { - _audioNavigation2.default.setPreviousPlaylist(_config2.default.active_playlist); - } else { - _debug2.default.writeMessage("You can not go to the previous song on a playlist that is not being played!"); - } - } - - /* - Returns the public facing methods. - */ - return { - handle: handle - }; -}(); - -/** - * AmplitudeJS Debug Module - * @module utilities/Debug - */ -/** - * Imports the config module - * @module config - */ -exports.default = Prev; -module.exports = exports["default"]; - -/***/ }), -/* 35 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _bufferedProgressElements = __webpack_require__(24); - -var _bufferedProgressElements2 = _interopRequireDefault(_bufferedProgressElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Event Handler for progress - * - * @module events/Progress - */ -/** - * Imports the config module - * @module config - */ -var Progress = function () { - /** - * As the song is buffered, we can display the buffered percentage in - * a progress bar. - * - * HANDLER FOR: progress - * - * @access public - */ - function handle() { - /* - Help from: http://jsbin.com/badimipi/1/edit?html,js,output - */ - if (_config2.default.audio.buffered.length - 1 >= 0) { - var bufferedEnd = _config2.default.audio.buffered.end(_config2.default.audio.buffered.length - 1); - var duration = _config2.default.audio.duration; - - /* - Set the computed song buffered value to the config. - */ - _config2.default.buffered = bufferedEnd / duration * 100; - } - - /* - Sync the buffered progress bars. - */ - _bufferedProgressElements2.default.sync(); - } - - /** - * Returns the public facing methods - */ - return { - handle: handle - }; -}(); - -/** - * Imports the BufferedProgressElements visual handler - * @module visual/bufferedProgressElements.js - */ -exports.default = Progress; -module.exports = exports["default"]; - -/***/ }), -/* 36 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _repeater = __webpack_require__(12); - -var _repeater2 = _interopRequireDefault(_repeater); - -var _repeatElements = __webpack_require__(8); - -var _repeatElements2 = _interopRequireDefault(_repeatElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Repeat Event Handler - * - * @module events/Repeat - */ - - -/** - * Imports the repeater utility module. - * @module utilities/Repeater - */ -var Repeat = function () { - /** - * Handles an event on the repeat button - * - * HANDLER FOR: class="amplitude-repeat" - * - * GLOBAL: class="amplitude-repeat" - * PLAYLIST: class="amplitude-repeat" amplitude-playlist="playlist_key" - * - * @access public - */ - function handle() { - /* - We don't fire this if the user is touching the screen and it's moving. - This could lead to a mis-fire - */ - if (!_config2.default.is_touch_moving) { - /* - Gets the playlist attribute from the element. - */ - var playlist = this.getAttribute("data-amplitude-playlist"); - - /* - If the playlist is null, we handle the global repeat. - */ - if (playlist == null) { - handleGlobalRepeat(); - } - - /* - If the playlist is set, we handle the playlist repeat. - */ - if (playlist != null) { - handlePlaylistRepeat(playlist); - } - } - } - - /** - * Handles an event on a global repeat button. - * - * @access private - */ - function handleGlobalRepeat() { - /* - Sets repeat to the opposite of what it was set to - */ - _repeater2.default.setRepeat(!_config2.default.repeat); - - /* - Visually sync repeat - */ - _repeatElements2.default.syncRepeat(); - } - - /** - * Handles an event on a playlist repeat button. - * - * @access private - * @prop {string} playlist - The playlist we are handling the repeat store. - */ - function handlePlaylistRepeat(playlist) { - /* - Sets repeat to the opposite of what it was set to for the playlist. - */ - _repeater2.default.setRepeatPlaylist(!_config2.default.playlists[playlist].repeat, playlist); - - /* - Visually sync playlist repeat - */ - _repeatElements2.default.syncRepeatPlaylist(playlist); - } - - /* - Returns the public facing methods. - */ - return { - handle: handle - }; -}(); - -/** - * Imports the visual repeat elements module - * @module visual/RepeatElements - */ -/** - * Imports the config module - * @module config - */ -exports.default = Repeat; -module.exports = exports["default"]; - -/***/ }), -/* 37 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _repeater = __webpack_require__(12); - -var _repeater2 = _interopRequireDefault(_repeater); - -var _repeatElements = __webpack_require__(8); - -var _repeatElements2 = _interopRequireDefault(_repeatElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles an event on the Amplitude Repeat Song. - * - * @module events/RepeatSong - */ - - -/** - * Imports the repeat utility - * @module utilities/Repeater - */ -var RepeatSong = function () { - /** - * Handles an event on the repeat song button - * - * HANDLER FOR: 'amplitude-repeat-song' - * - * @access public - */ - function handle() { - /* - If the touch is moving, we do not want to accidentally touch the play - pause element and fire an event. - */ - if (!_config2.default.is_touch_moving) { - /* - Sets repeat song to the opposite of what it was set to - */ - _repeater2.default.setRepeatSong(!_config2.default.repeat_song); - - /* - Visually sync repeat song - */ - _repeatElements2.default.syncRepeatSong(); - } - } - - /** - * Returns the public facing methods - */ - return { - handle: handle - }; -}(); - -/** - * Imports the AmplitudeJS Repeat Element - * @module visual/RepeatElements - */ -/** - * Imports the config module - * @module config - */ -exports.default = RepeatSong; -module.exports = exports["default"]; - -/***/ }), -/* 38 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _shuffler = __webpack_require__(13); - -var _shuffler2 = _interopRequireDefault(_shuffler); - -var _shuffleElements = __webpack_require__(19); - -var _shuffleElements2 = _interopRequireDefault(_shuffleElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the shuffle events - * @module events/Shuffle - */ - - -/** - * Imports the shuffler utility - * @module utilities/Shuffler - */ -var Shuffle = function () { - /** - * Handles an event on the shuffle button - * - * HANDLER FOR: class="amplitude-shuffle" - * - * GLOBAL: class="amplitude-shuffle" - * PLAYLIST: class="amplitude-shuffle" amplitude-playlist="playlist_key" - * - * @access public - */ - function handle() { - /* - If the touch is moving, we do not want to accidentally touch the play - pause element and fire an event. - */ - if (!_config2.default.is_touch_moving) { - /* - Get the playlist attribute - */ - var playlist = this.getAttribute("data-amplitude-playlist"); - - /* - Check to see if the shuffle button belongs to a playlist - */ - if (playlist == null) { - handleGlobalShuffle(); - } else { - handlePlaylistShuffle(playlist); - } - } - } - - /** - * Handles the event on the global shuffle button. - */ - function handleGlobalShuffle() { - /* - Either shuffles or removes shuffle on the global state. - */ - _shuffler2.default.toggleShuffle(); - - /* - Visualize the shuffle state change. - */ - _shuffleElements2.default.syncMain(_config2.default.shuffle_on); - } - - /** - * Handles the event on the playlist shuffle button. - * - * @param {string} playlist - The playlist string the shuffle button belongs to. - */ - function handlePlaylistShuffle(playlist) { - /* - Either shuffles or removes shuffle on the playlist state. - */ - _shuffler2.default.toggleShufflePlaylist(playlist); - - /* - Visually sync the playlist shuffle statuses. - */ - _shuffleElements2.default.syncPlaylist(playlist); - } - - /** - * Returns public facing methods - */ - return { - handle: handle - }; -}(); - -/** - * Imports the visual shuffle elements - * @module visual/ShuffleElements - */ -/** - * Imports the config module - * @module config - */ -exports.default = Shuffle; -module.exports = exports["default"]; - -/***/ }), -/* 39 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _debug = __webpack_require__(4); - -var _debug2 = _interopRequireDefault(_debug); - -var _audioNavigation = __webpack_require__(3); - -var _audioNavigation2 = _interopRequireDefault(_audioNavigation); - -var _checks = __webpack_require__(5); - -var _checks2 = _interopRequireDefault(_checks); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -var _playPauseElements = __webpack_require__(2); - -var _playPauseElements2 = _interopRequireDefault(_playPauseElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles the skip to event. - * - * @module events/SkipTo - */ - - -/** - * Imports the AmplitudeJS Core Methods - * @module core/Core - */ - - -/** - * Imports the AmplitudeJS Audio Navigation Utility - * @module utilities/AudioNavigation - */ -/** - * Imports the config module - * @module config - */ -var SkipTo = function () { - /** - * Handles an event on a skip to button. - * - * HANDLER FOR: class="amplitude-skip-to" - * - * GLOBAL: class="amplitude-skip-to" amplitude-song-index="song_index" amplitude-location="seconds" - * PLAYLIST: class="amplitude-skip-to" amplitude-playlist="playlist_key" amplitude-song-index="song_index" amplitude-location="seconds" - * - * @access public - */ - function handle() { - /* - If the touch is moving, we do not want to accidentally touch the play - pause element and fire an event. - */ - if (!_config2.default.is_touch_moving) { - /* - Extracts the needed attributes from the element. - */ - var playlist = this.getAttribute("data-amplitude-playlist"); - var songIndex = this.getAttribute("data-amplitude-song-index"); - var location = this.getAttribute("data-amplitude-location"); - - /* - If the location is null, write a message. We can't skip to a location - that is null - */ - if (location == null) { - _debug2.default.writeMessage("You must add an 'data-amplitude-location' attribute in seconds to your 'amplitude-skip-to' element."); - } - - /* - If the song index is null, write a debug message. We can't skip to a location - of a null song. - */ - if (songIndex == null) { - _debug2.default.writeMessage("You must add an 'data-amplitude-song-index' attribute to your 'amplitude-skip-to' element."); - } - - /* - If the location and song index are set, continue. - */ - if (location != null && songIndex != null) { - /* - Determines if the skip to button is in the scope of a playlist. - */ - if (playlist == null) { - handleSkipToSong(parseInt(songIndex), parseInt(location)); - } else { - handleSkipToPlaylist(playlist, parseInt(songIndex), parseInt(location)); - } - } - } - } - - /** - * Handles the skipping to a specific song - * - * @access private - * @param {string} songIndex - The index of the song being skipped to - * @param {number} location - The seconds location of the song in the playlist. - */ - function handleSkipToSong(songIndex, location) { - /* - Changes the song to where it's being skipped and then - play the song. - */ - _audioNavigation2.default.changeSong(_config2.default.songs[songIndex], songIndex); - _core2.default.play(); - - /* - Syncs all of the play pause buttons now that we've skipped. - */ - _playPauseElements2.default.syncGlobal(); - _playPauseElements2.default.syncSong(); - - /* - Skip to the location in the song. - */ - _core2.default.skipToLocation(location); - } - - /** - * Handles the skipping to a song that's in a playlist. - * - * @access private - * @param {string} playlist - The playlist being skipped to - * @param {string} songIndex - The index of the song in the playlist - * @param {number} location - The seconds location of the song in the playlist. - */ - function handleSkipToPlaylist(playlist, songIndex, location) { - /* - Checks if we are skipping to a new playlist - */ - if (_checks2.default.newPlaylist(playlist)) { - _audioNavigation2.default.setActivePlaylist(playlist); - } - - /* - Changes the song to where it's being skipped and then - play the song. - */ - _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[songIndex], songIndex); - _core2.default.play(); - - /* - Sync all of the play pause elements. - */ - _playPauseElements2.default.syncGlobal(); - _playPauseElements2.default.syncPlaylist(); - _playPauseElements2.default.syncSong(); - - /* - Skip to the location in the song. - */ - _core2.default.skipToLocation(location); - } - - /** - * Return public facing methods - */ - return { - handle: handle - }; -}(); - -/** - * Imports the AmplitudeJS play pause elements. - * @module visual/PlayPauseElements - */ - - -/** - * Imports the AmplitudeJS Checks Utility - * @module utilities/Checks - */ - - -/** - * Imports AmplitudeJS Debug Utility - * @module utilities/debug - */ -exports.default = SkipTo; -module.exports = exports["default"]; - -/***/ }), -/* 40 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _time = __webpack_require__(23); - -var _time2 = _interopRequireDefault(_time); - -var _songSliderElements = __webpack_require__(14); - -var _songSliderElements2 = _interopRequireDefault(_songSliderElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles the song slider to event. - * - * @module events/SongSlider - */ - - -/** - * Imports the time utility - * @module utilities/Time - */ -var SongSlider = function () { - /** - * Handles a song slider element. - * - * HANDLER FOR: class="amplitude-song-slider" - * - * GLOBAL: class="amplitude-song-slider" - * PLAYLIST: class="amplitude-song-slider" amplitude-playlist="playlist_key" - * SONG: class="amplitude-song-slider" amplitude-song-index="song_index" - * SONG IN PLAYLIST: class="amplitude-song-slider" amplitude-playlist="playlist_key" amplitude-song-index="song_index" - * - * @access public - */ - function handle() { - /* - Gets the percentage of the song we will be setting the location for. - */ - var locationPercentage = this.value; - - /* - Computes the time in seconds for the current song. - */ - var computedTime = _config2.default.audio.duration * (locationPercentage / 100); - - /* - Gets the attributes for playlist and index for the element. - */ - var playlist = this.getAttribute("data-amplitude-playlist"); - var song = this.getAttribute("data-amplitude-song-index"); - - /* - If no playlist or song is defined, then it's a global song slider. - */ - if (playlist == null && song == null) { - handleGlobalSongSlider(computedTime, locationPercentage); - } - - /* - If a playlist but no song is defined, then it's playlist slider. - */ - if (playlist != null && song == null) { - handlePlaylistSongSlider(computedTime, locationPercentage, playlist); - } - - /* - If no playlist but a song is defined, then it's a song slider. - */ - if (playlist == null && song != null) { - handleSongSongSlider(computedTime, locationPercentage, song); - } - - /* - If playlist and song are defined then it's a song in a playlist - slider. - */ - if (playlist != null && song != null) { - handleSongInPlaylistSongSlider(computedTime, locationPercentage, playlist, song); - } - } - - /** - * Handles a change on a global audio slider - * - * @access private - * @param {integer} computedTime - The time we will set the audio to. - * @param {float} locationPercentage - The percent through the song. - */ - function handleGlobalSongSlider(computedTime, locationPercentage) { - /* - If the active song is not live, set the current time and adjust the slider. - */ - if (!_config2.default.active_metadata.live) { - _time2.default.setCurrentTime(computedTime); - - /* - Sync song slider elements. - */ - _songSliderElements2.default.sync(locationPercentage, _config2.default.active_playlist, _config2.default.active_index); - } - } - - /** - * Handles a change on a playlist audio slider - * - * @access private - * @param {integer} computedTime - The time we will set the audio to. - * @param {float} locationPercentage - The percent through the song. - * @param {string} playlist = The playlist the song slider belongs to. - */ - function handlePlaylistSongSlider(computedTime, locationPercentage, playlist) { - /* - We don't want to song slide a playlist that's not the - active placylist. - */ - if (_config2.default.active_playlist == playlist) { - /* - If the active song is not live, set the current time - */ - if (!_config2.default.active_metadata.live) { - _time2.default.setCurrentTime(computedTime); - - /* - Sync song slider elements. - */ - _songSliderElements2.default.sync(locationPercentage, playlist, _config2.default.active_index); - } - } - } - - /** - * Handles a change on a song audio slider - * - * @access private - * @param {integer} computedTime - The time we will set the audio to. - * @param {float} locationPercentage - The percent through the song. - * @param {integer} songIndex = The song being navigated. - */ - function handleSongSongSlider(computedTime, locationPercentage, songIndex) { - /* - We only want to move the slider if the active song is the - same as the song being selected. - */ - if (_config2.default.active_index == songIndex && _config2.default.active_playlist == null) { - /* - If the active song is not live, set the current time - */ - if (!_config2.default.active_metadata.live) { - _time2.default.setCurrentTime(computedTime); - - /* - Sync song slider elements. - */ - _songSliderElements2.default.sync(locationPercentage, _config2.default.active_playlist, songIndex); - } - } - } - - /** - * Handles a change on a song audio slider - * - * @access private - * @param {integer} computedTime - The time we will set the audio to. - * @param {float} locationPercentage - The percent through the song. - * @param {integer} playlist = The playlist the song belongs to. - * @param {integer} songIndex = The song being navigated. - */ - function handleSongInPlaylistSongSlider(computedTime, locationPercentage, playlist, songIndex) { - /* - We only want to move the slider if the active song is the - same as the song being selected and the active playlist is the same - as the playlist selected. - */ - if (_config2.default.playlists[playlist].active_index == songIndex && _config2.default.active_playlist == playlist) { - /* - If the active song is not live, set the current time - */ - if (!_config2.default.active_metadata.live) { - _time2.default.setCurrentTime(computedTime); - - /* - Sync song slider elements. - */ - _songSliderElements2.default.sync(locationPercentage, playlist, songIndex); - } - } - } - - /* - Return public facing methods - */ - return { - handle: handle - }; -}(); - -/** - * Imports the song slider elements. - * @module visual/SongSliderElements - */ -/** - * Imports the config module - * @module config - */ -exports.default = SongSlider; -module.exports = exports["default"]; - -/***/ }), -/* 41 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _configState = __webpack_require__(6); - -var _configState2 = _interopRequireDefault(_configState); - -var _playPauseElements = __webpack_require__(2); - -var _playPauseElements2 = _interopRequireDefault(_playPauseElements); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the stop events - * @module events/Stop - */ - - -/** - * Imports the AmplitudeJS Play Pause Elements - * @module visual/PlayPauseElements - */ -/** - * Imports the config module - * @module config - */ -var Stop = function () { - /** - * Handles an event on a stop element. - * - * HANDLER FOR: class="amplitude-stop" - * - * @access public - */ - function handle() { - /* - If touch is not moving, we run. We don't want to accidentally press - stop if touch is moving. - */ - if (!_config2.default.is_touch_moving) { - /* - Sets all of the play/pause buttons to pause - */ - _playPauseElements2.default.syncToPause(); - - /* - Stops the active song. - */ - _core2.default.stop(); - } - } - - /** - * Returns public facing methods - */ - return { - handle: handle - }; -}(); - -/** - * Imports the AmplitudeJS Core Methods - * @module core/Core - */ - - -/** - * Imports the config state module. - * @module utilities/configState - */ -exports.default = Stop; -module.exports = exports["default"]; - -/***/ }), -/* 42 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _bufferedProgressElements = __webpack_require__(24); - -var _bufferedProgressElements2 = _interopRequireDefault(_bufferedProgressElements); - -var _timeElements = __webpack_require__(15); - -var _timeElements2 = _interopRequireDefault(_timeElements); - -var _songSliderElements = __webpack_require__(14); - -var _songSliderElements2 = _interopRequireDefault(_songSliderElements); - -var _songPlayedProgressElements = __webpack_require__(20); - -var _songPlayedProgressElements2 = _interopRequireDefault(_songPlayedProgressElements); - -var _time = __webpack_require__(23); - -var _time2 = _interopRequireDefault(_time); - -var _callbacks = __webpack_require__(9); - -var _callbacks2 = _interopRequireDefault(_callbacks); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS Event Handler for Time Update - * - * @module events/TimeUpdate - */ - - -/** - * Imports the Time utility class - * @module utilities/Time - */ - - -/** - * Imports the Song Slider Elements visual class. - * @module visual/songSliderElements - */ - - -/** - * Imports the Buffered Progress Elements visual class - * @module visual/bufferedProgressElements - */ -var TimeUpdate = function () { - /** - * When the time updates on the active song, we sync the current time displays - * - * HANDLER FOR: timeupdate - * - * @access public - */ - function handle() { - /* - Computes the buffered time. - */ - computeBufferedTime(); - - /* - Sync the buffered progress elements. - */ - _bufferedProgressElements2.default.sync(); - - /* - Updates the current time information. - */ - updateTimeInformation(); - - /* - Run time callbacks - */ - runTimeCallbacks(); - } - - /** - * Computes the buffered time - */ - function computeBufferedTime() { - /* - Help from: http://jsbin.com/badimipi/1/edit?html,js,output - */ - if (_config2.default.audio.buffered.length - 1 >= 0) { - var bufferedEnd = _config2.default.audio.buffered.end(_config2.default.audio.buffered.length - 1); - var duration = _config2.default.audio.duration; - - _config2.default.buffered = bufferedEnd / duration * 100; - } - } - - /** - * Updates the current time information. - * @access private - */ - function updateTimeInformation() { - /* - If the current song is not live, then - we can update the time information. Otherwise the - current time updates wouldn't mean much since the time - is infinite. - */ - if (!_config2.default.active_metadata.live) { - /* - Compute the current time - */ - var currentTime = _time2.default.computeCurrentTimes(); - - /* - Compute the song completion percentage - */ - var songCompletionPercentage = _time2.default.computeSongCompletionPercentage(); - - /* - Computes the song duration - */ - var songDuration = _time2.default.computeSongDuration(); - - /* - Sync the current time elements with the current - location of the song and the song duration elements with - the duration of the song. - */ - _timeElements2.default.syncCurrentTimes(currentTime); - - /* - Sync the song slider elements. - */ - _songSliderElements2.default.sync(songCompletionPercentage, _config2.default.active_playlist, _config2.default.active_index); - - /* - Sync the song played progress elements. - */ - _songPlayedProgressElements2.default.sync(songCompletionPercentage); - - /* - Sync the duration time elements. - */ - _timeElements2.default.syncDurationTimes(currentTime, songDuration); - } - } - - /** - * Runs a callback at a certain time in the song. - */ - function runTimeCallbacks() { - /* - Gets the current seconds into the song. - */ - var currentSeconds = Math.floor(_config2.default.audio.currentTime); - - /* - Checks to see if there is a callback at the certain seconds into the song. - */ - if (_config2.default.active_metadata.time_callbacks != undefined && _config2.default.active_metadata.time_callbacks[currentSeconds] != undefined) { - /* - Checks to see if the callback has been run. Since the time updates more than - one second, we don't want the callback to run X times. - */ - if (!_config2.default.active_metadata.time_callbacks[currentSeconds].run) { - _config2.default.active_metadata.time_callbacks[currentSeconds].run = true; - _config2.default.active_metadata.time_callbacks[currentSeconds](); - } - } else { - /* - Iterate over all of the callbacks for a song. If the song has one, we flag - the run as false. This occurs because we have passed the active second for - the callback, so we flag it as not run. It will either run again if the user - seeks back or not run in the future. - */ - for (var seconds in _config2.default.active_metadata.time_callbacks) { - if (_config2.default.active_metadata.time_callbacks.hasOwnProperty(seconds)) { - _config2.default.active_metadata.time_callbacks[seconds].run = false; - } - } - } - } - /** - * Returns public functions - */ - return { - handle: handle - }; -}(); - -/** - * Imports the Callback utility class - * @module utilities/Callbacks - */ - - -/** - * Imports the Song Played Progress Elements visual class. - * @module visual/songPlayedProgressElements - */ - - -/** - * Imports the Time Elements visual class. - * @module visual/timeElements - */ -/** - * Imports the config module - * @module config - */ -exports.default = TimeUpdate; -module.exports = exports["default"]; - -/***/ }), -/* 43 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -var _muteElements = __webpack_require__(10); - -var _muteElements2 = _interopRequireDefault(_muteElements); - -var _volumeSliderElements = __webpack_require__(11); - -var _volumeSliderElements2 = _interopRequireDefault(_volumeSliderElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all events for a volume down event. - * @module events/VolumeDown - */ - - -/** - * Imports the AmplitudeJS Visual Mute Elements - * @module visual/MuteElements - */ -/** - * Imports the config to use the values - */ -var VolumeDown = function () { - /** - * Handles a click on a volume down element. - * - * HANDLER FOR: class="amplitude-volume-down" - * - * @access public - */ - function handle() { - /* - We don't fire this if the user is touching the screen and it's moving. - This could lead to a mis-fire - */ - if (!_config2.default.is_touch_moving) { - /* - The volume range is from 0 to 1 for an audio element. We make this - a base of 100 for ease of working with. - If the new value is less than 100, we use the new calculated - value which gets converted to the proper unit for the audio element. - If the new value is greater than 100, we set the volume to 1 which - is the max for the audio element. - */ - var volume = null; - - if (_config2.default.volume - _config2.default.volume_increment > 0) { - volume = _config2.default.volume - _config2.default.volume_increment; - } else { - volume = 0; - } - - /* - Calls the core function to set the volume to the computed value - based on the user's intent. - */ - _core2.default.setVolume(volume); - - /* - Sync Mute Elements. - */ - _muteElements2.default.setMuted(_config2.default.volume == 0 ? true : false); - - /* - Sync Volume Slider Elements - */ - _volumeSliderElements2.default.sync(); - } - } - - /** - * Returns the public facing methods - */ - return { - handle: handle - }; -}(); - -/** - * Imports the AmplitudeJS Visual Volume Slider Elements - * @module visual/VolumeSliderElements - */ - - -/** - * Imports the AmplitudeJS Core Methods - * @module core/core - */ -exports.default = VolumeDown; -module.exports = exports["default"]; - -/***/ }), -/* 44 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -var _muteElements = __webpack_require__(10); - -var _muteElements2 = _interopRequireDefault(_muteElements); - -var _volumeSliderElements = __webpack_require__(11); - -var _volumeSliderElements2 = _interopRequireDefault(_volumeSliderElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all events for a volume up event. - * @module events/VolumeSlider - */ - - -/** - * Imports the AmplitudeJS Visual Mute Elements - * @module visual/MuteElements - */ -/** - * Imports the config to use the values - */ -var VolumeSlider = function () { - /** - * Handles a change on the volume slider - * - * HANDLER FOR: class="amplitude-volume-slider" - * - * @access public - */ - function handle() { - /* - Calls the core function to set the volume to the computed value - based on the user's intent. - */ - _core2.default.setVolume(this.value); - - /* - Sync Mute Elements. - */ - _muteElements2.default.setMuted(_config2.default.volume == 0 ? true : false); - - /* - Sync the volume slider locations - */ - _volumeSliderElements2.default.sync(); - } - - /** - * Returns the public facing methods - */ - return { - handle: handle - }; -}(); - -/** - * Imports the AmplitudeJS Visual Volume Slider Elements - * @module visual/VolumeSliderElements - */ - - -/** - * Imports the AmplitudeJS Core Methods - * @module core/core - */ -exports.default = VolumeSlider; -module.exports = exports["default"]; - -/***/ }), -/* 45 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -var _muteElements = __webpack_require__(10); - -var _muteElements2 = _interopRequireDefault(_muteElements); - -var _volumeSliderElements = __webpack_require__(11); - -var _volumeSliderElements2 = _interopRequireDefault(_volumeSliderElements); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all events for a volume up event. - * @module events/VolumeUp - */ - - -/** - * Imports the AmplitudeJS Visual Mute Elements - * @module visual/MuteElements - */ -/** - * Imports the config to use the values - */ -var VolumeUp = function () { - /** - * Handles a click on a volume up element. - * - * HANDLER FOR: class="amplitude-volume-up" - * - * @access public - */ - function handle() { - /* - We don't fire this if the user is touching the screen and it's moving. - This could lead to a mis-fire - */ - if (!_config2.default.is_touch_moving) { - /* - The volume range is from 0 to 1 for an audio element. We make this - a base of 100 for ease of working with. - If the new value is less than 100, we use the new calculated - value which gets converted to the proper unit for the audio element. - If the new value is greater than 100, we set the volume to 1 which - is the max for the audio element. - */ - var volume = null; - - if (_config2.default.volume + _config2.default.volume_increment <= 100) { - volume = _config2.default.volume + _config2.default.volume_increment; - } else { - volume = 100; - } - - /* - Calls the core function to set the volume to the computed value - based on the user's intent. - */ - _core2.default.setVolume(volume); - - /* - Sync Mute Elements. - */ - _muteElements2.default.setMuted(_config2.default.volume == 0 ? true : false); - - /* - Sync Volume Slider Elements - */ - _volumeSliderElements2.default.sync(); - } - } - - /** - * Returns the public facing methods - */ - return { - handle: handle - }; -}(); - -/** - * Imports the AmplitudeJS Visual Volume Slider Elements - * @module visual/VolumeSliderElements - */ - - -/** - * Imports the AmplitudeJS Core Methods - * @module core/core - */ -exports.default = VolumeUp; -module.exports = exports["default"]; - -/***/ }), -/* 46 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * AmplitudeJS FX Module. Helps with configuring and setting up visualizations - * and any other features of the Web Audio API that Amplitude takes advantage - * of. - * - * @module fx/FX - */ -var Fx = function () { - /** - * Configures the Web Audio API to work with AmplitudeJS - */ - function configureWebAudioAPI() { - /* - Gets the context for the browser. If this is null, the Web Audio - API is unavailable. - */ - var browserContext = window.AudioContext || window.webkitAudioContext || window.mozAudioContext || window.oAudioContext || window.msAudioContext; - - /* - If we have a context, the Web Audio API is available and we can continue, - otherwise, we alert the user if they have debug turned on. - */ - if (browserContext) { - /* - Web Audio API is available, set the context in our config. - */ - _config2.default.context = new browserContext(); - - /* - Create an analyzer that we will use in the context. - */ - _config2.default.analyser = _config2.default.context.createAnalyser(); - - /* - Set cross origin to anonymous so we have a better chance of being able - to use the power of the Web Audio API. - */ - _config2.default.audio.crossOrigin = "anonymous"; - - /* - Bind the source to the Javascript Audio Element. - */ - _config2.default.source = _config2.default.context.createMediaElementSource(_config2.default.audio); - - /* - Connect the analyser to the source - */ - _config2.default.source.connect(_config2.default.analyser); - - /* - Connect the context destination to the analyser. - */ - _config2.default.analyser.connect(_config2.default.context.destination); - } else { - AmplitudeHelpers.writeDebugMessage("Web Audio API is unavailable! We will set any of your visualizations with your back up definition!"); - } - } - - /** - * Determines if the web audio API is available or not. - */ - function webAudioAPIAvailable() { - /* - Gets the context for the browser. If this is null, the Web Audio - API is unavailable. - */ - var browserContext = window.AudioContext || window.webkitAudioContext || window.mozAudioContext || window.oAudioContext || window.msAudioContext; - _config2.default.web_audio_api_available = false; - - /* - Determines if the Web Audio API is available or not. - */ - if (browserContext) { - /* - Set the flag in the config that the Web Audio API is available - */ - _config2.default.web_audio_api_available = true; - return true; - } else { - /* - Set the flag in the config that the Web Audio API is not available - */ - _config2.default.web_audio_api_available = false; - return false; - } - } - - /** - * Determines if the user is using any of the web audio API features. - */ - function determineUsingAnyFX() { - var waveforms = document.querySelectorAll(".amplitude-wave-form"); - var visualizationElements = document.querySelectorAll(".amplitude-visualization"); - - if (waveforms.length > 0 || visualizationElements.length > 0) { - return true; - } else { - return false; - } - } - - /* - Returns the publicly accessible methods - */ - return { - configureWebAudioAPI: configureWebAudioAPI, - webAudioAPIAvailable: webAudioAPIAvailable, - determineUsingAnyFX: determineUsingAnyFX - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = Fx; -module.exports = exports["default"]; - -/***/ }), -/* 47 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _init = __webpack_require__(21); - -var _init2 = _interopRequireDefault(_init); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _core = __webpack_require__(1); - -var _core2 = _interopRequireDefault(_core); - -var _shuffler = __webpack_require__(13); - -var _shuffler2 = _interopRequireDefault(_shuffler); - -var _configState = __webpack_require__(6); - -var _configState2 = _interopRequireDefault(_configState); - -var _audioNavigation = __webpack_require__(3); - -var _audioNavigation2 = _interopRequireDefault(_audioNavigation); - -var _repeater = __webpack_require__(12); - -var _repeater2 = _interopRequireDefault(_repeater); - -var _checks = __webpack_require__(5); - -var _checks2 = _interopRequireDefault(_checks); - -var _visualizations = __webpack_require__(16); - -var _visualizations2 = _interopRequireDefault(_visualizations); - -var _shuffleElements = __webpack_require__(19); - -var _shuffleElements2 = _interopRequireDefault(_shuffleElements); - -var _repeatElements = __webpack_require__(8); - -var _repeatElements2 = _interopRequireDefault(_repeatElements); - -var _songSliderElements = __webpack_require__(14); - -var _songSliderElements2 = _interopRequireDefault(_songSliderElements); - -var _songPlayedProgressElements = __webpack_require__(20); - -var _songPlayedProgressElements2 = _interopRequireDefault(_songPlayedProgressElements); - -var _timeElements = __webpack_require__(15); - -var _timeElements2 = _interopRequireDefault(_timeElements); - -var _playPauseElements = __webpack_require__(2); - -var _playPauseElements2 = _interopRequireDefault(_playPauseElements); - -var _metaDataElements = __webpack_require__(7); - -var _metaDataElements2 = _interopRequireDefault(_metaDataElements); - -var _playbackSpeedElements = __webpack_require__(18); - -var _playbackSpeedElements2 = _interopRequireDefault(_playbackSpeedElements); - -var _debug = __webpack_require__(4); - -var _debug2 = _interopRequireDefault(_debug); - -var _soundcloud = __webpack_require__(17); - -var _soundcloud2 = _interopRequireDefault(_soundcloud); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Amplitude should just be an interface to the public functions. - * Everything else should be handled by other objects - * - * @module Amplitude - */ - - -/** - * Meta Data Elements - * @module visual/MetaDataElements - */ - - -/** - * Time Elements - * @module visual/TimeElements - */ - - -/** - * Song Slider Elements - * @module visual/SongSliderElements - */ - - -/**************************************************** - * Elements - ****************************************************/ -/** - * Visual Shuffle Elements - * @module visual/ShuffleElements - */ - - -/** - * Imports the checks - * @module utilities/Checks - */ - - -/** - * Imports the audio navigation - * @module utilities/AudioNavigation - */ - - -/**************************************************** - * Utilities - ****************************************************/ -/** - * Shuffler Module - * @module utilities/Shuffler - */ - - -/**************************************************** - * Config - ****************************************************/ -/** - * Imports the config module - * @module config - */ -var Amplitude = function () { - /** - * The main init function. The user will call this through - * Amplitude.init({}) and pass in their settings. - * - * Public Accessor: Amplitude.init( user_config_json ); - * - * @access public - * @param {object} userConfig - A JSON object of user defined values that helps configure and initialize AmplitudeJS. - */ - function init(userConfig) { - _init2.default.initialize(userConfig); - } - - /** - * Returns the current config for AmplitudeJS - */ - function getConfig() { - return _config2.default; - } - - /** - * Binds new elements that were added to the page. - * - * Public Accessor: Amplitude.bindNewElements() - * - * @access public - */ - function bindNewElements() { - _init2.default.rebindDisplay(); - } - - /** - * Returns the active playlist. - * - * Public Accessor: Amplitude.getActivePlaylist() - * - * @access public - */ - function getActivePlaylist() { - return _config2.default.active_playlist; - } - - /** - * Returns the current playback speed. - * - * Public Accessor: Amplitude.getPlaybackSpeed() - * - * @access public - */ - function getPlaybackSpeed() { - return _config2.default.playback_speed; - } - - /** - * Sets the playback speed - * - * Public Accessor: Amplitude.setPlaybackSpeed( speed ) - * - * @access public - */ - function setPlaybackSpeed(speed) { - /* - Increments are set in .5 We only accept values - 1, 1.5, 2 - 1 -> Regular Speed - 1.5 -> 50% faster - 2 -> Twice as fast - */ - _core2.default.setPlaybackSpeed(speed); - - /* - Visually sync the playback speed. - */ - _playbackSpeedElements2.default.sync(); - } - - /** - * Gets the repeat state of the player. - * - * Public Accessor: Amplitude.getRepeat() - * - * @access public - */ - function getRepeat() { - return _config2.default.repeat; - } - - /** - * Gets the repeat state for a playlist - * - * Public Accessor: Amplitude.getRepeatPlaylist() - * - * @access public - */ - function getRepeatPlaylist(playlistKey) { - return _config2.default.playlists[playlistKey].repeat; - } - - /** - * Returns the shuffle state of the player. - * - * Public Accessor: Amplitude.getShuffle() - * - * @access public - */ - function getShuffle() { - return _config2.default.shuffle_on; - } - - /** - * Returns the shuffle state of the playlist. - * - * Public Accessor: Amplitude.getShufflePlaylist( playlist ) - * - * @access public - * @param {string} playlist - The key representing the playlist ID to see if it's shuffled or not. - */ - function getShufflePlaylist(playlist) { - return _config2.default.playlists[playlist].shuffle; - } - - /** - * Sets the shuffle state for the player. - * - * Public Accessor: Amplitude.setShuffle() - * - * @param {boolean} shuffle - True when we are shuffling the songs, false when we turn off shuffle. - * - * @access public - */ - function setShuffle(shuffle) { - _shuffler2.default.setShuffle(shuffle); - - _shuffleElements2.default.syncMain(); - } - - /** - * Sets the shuffle state for the playlist - * - * Public Accessor: Amplitude.setShufflePlaylist( playlist ) - * - * @access public - * @param {string} playlist - The key representing the playlist ID to to shuffle the playlist. - * @param {boolean} shuffle - True when we are shuffling the playlist, false when we turn off shuffle. - */ - function setShufflePlaylist(playlist, shuffle) { - _shuffler2.default.setShufflePlaylist(playlist, shuffle); - - _shuffleElements2.default.syncMain(); - _shuffleElements2.default.syncPlaylist(playlist); - } - - /** - * Sets the repeat state for the player. - * - * Public Accessor: Amplitude.setRepeat() - * - * @access public - * @param {boolean} repeatState - The state you want the repeat song to be in. - */ - function setRepeat(repeatState) { - _repeater2.default.setRepeat(repeatState); - _repeatElements2.default.syncRepeat(); - } - - /** - * Sets the repeat state for a playlist. - * - * Public Accessor: Amplitude.setRepeatPlaylist( playlistKey ) - * - * @access public - * @param {string} playlist - The key representing the playlist ID to to shuffle the playlist. - * @param {boolean} repeatState - The state you want the repeat playlist to be in. - */ - function setRepeatPlaylist(playlist, repeatState) { - _repeater2.default.setRepeatPlaylist(repeatState, playlist); - _repeatElements2.default.syncRepeatPlaylist(playlist); - } - - /** - * Sets the repeat state for the song. - * - * Public Accessor: Amplitude.setRepeatSong() - * - * @access public - * @param {boolean} repeatState - The state you want the repeat song status to be in. - */ - function setRepeatSong(repeatState) { - if (!_config2.default.is_touch_moving) { - /* - Sets repeat to the opposite of what it was set to - */ - _repeater2.default.setRepeatSong(!_config2.default.repeat_song); - - /* - Visually sync repeat song - */ - _repeatElements2.default.syncRepeatSong(); - } - } - - /** - * Gets the default album art for the player - * - * Public Accessor: Amplitude.getDefaultAlbumArt() - * - * @access public - */ - function getDefaultAlbumArt() { - return _config2.default.default_album_art; - } - - /** - * Gets the default playlist art for the playlists - * - * Public Accessor: Amplitude.getDefaultPlaylistArt() - * - * @access public - */ - function getDefaultPlaylistArt() { - return _config2.default.default_playlist_art; - } - - /** - * Sets the default album art for the player - * - * Public Accessor: Amplitude.setDefaultAlbumArt( url ) - * - * @access public - * @param {string} url - A string representing the URL of the new default album art. - */ - function setDefaultAlbumArt(url) { - _config2.default.default_album_art = url; - } - - /** - * Sets the default playlist art for the player - * - * Public Accessor: Amplitude.setDefaultPlaylistArt( url ) - * - * @access public - * @param {string} url - A string representing the URL of the new default playlist art. - */ - function setDefaultPlaylistArt(url) { - _config2.default.default_plalist_art = url; - } - - /** - * Allows the user to get the percentage of the song played. - * - * Public Accessor: Amplitude.getSongPlayedPercentage(); - * - * @access public - */ - function getSongPlayedPercentage() { - /* - Returns the percentage of the song played. - */ - return _config2.default.audio.currentTime / _config2.default.audio.duration * 100; - } - - /** - * Allows the user to get the amount of seconds the song has played. - * - * Public Accessor: Amplitude.getSongPlayed(); - * - * @access public - */ - function getSongPlayedSeconds() { - /* - Returns the amount of seconds the song has played. - */ - return _config2.default.audio.currentTime; - } - - /** - * Allows the user to get the duration of the current song - * - * Public Accessor: Amplitude.getSongPlayed(); - * - * @access public - */ - function getSongDuration() { - /* - Returns the duration of the current song - */ - return _config2.default.audio.duration; - } - - /** - * Allows the user to set how far into the song they want to be. This is - * helpful for implementing custom range sliders. Only works on the current song. - * - * Public Accessor: Amplitude.setSongPlayedPercentage( float ); - * - * @access public - * @param {number} percentage - The percentage of the song played - */ - function setSongPlayedPercentage(percentage) { - /* - Ensures the percentage is a number and is between 0 and 100. - */ - if (typeof percentage == "number" && percentage > 0 && percentage < 100) { - /* - Sets the current time of the song to the percentage. - */ - _config2.default.audio.currentTime = _config2.default.audio.duration * (percentage / 100); - } - } - - /** - * Allows the user to turn on debugging. - * - * Public Accessor: Amplitude.setDebug( bool ); - * - * @access public - * @param {boolean} state - Turns debugging on and off. - */ - function setDebug(state) { - /* - Sets the global config debug on or off. - */ - _config2.default.debug = state; - } - - /** - * Returns the active song meta data for the user to do what is - * needed. - * - * Public Accessor: Amplitude.getActiveSongMetadata(); - * - * @access public - * @returns {object} JSON Object with the active song information - */ - function getActiveSongMetadata() { - return _config2.default.active_metadata; - } - - /** - * Returns the active playlist meta data for the for the user to use. - * - * Public Accessor: Amplitude.getActivePlaylistMetadata(); - * - * @access public - * @returns {object} JSON representation for the active playlist - */ - function getActivePlaylistMetadata() { - return _config2.default.playlists[_config2.default.active_playlist]; - } - - /** - * Returns a song in the songs array at that index - * - * Public Accessor: Amplitude.getSongAtIndex( song_index ) - * - * @access public - * @param {number} index - The integer for the index of the song in the songs array. - * @returns {object} JSON representation for the song at a specific index. - */ - function getSongAtIndex(index) { - return _config2.default.songs[index]; - } - - /** - * Returns a song at a playlist index - * - * Public Accessor: Amplitude.getSongAtPlaylistIndex( playlist, index - * - * @access public - * @param {number} index - The integer for the index of the song in the playlist. - * @param {string} playlist - The key of the playlist we are getting the song at the index for - * @returns {object} JSON representation for the song at a specific index. - */ - function getSongAtPlaylistIndex(playlist, index) { - var song = _config2.default.playlists[playlist].songs[index]; - - return song; - } - - /** - * Adds a song to the end of the config array. This will allow Amplitude - * to play the song in a playlist type setting. - * - * Public Accessor: Amplitude.addSong( song_json ) - * - * @access public - * @param {object} song - JSON representation of a song. - * @returns {number} New index of the song. - */ - function addSong(song) { - /* - Ensures we have a songs array to push to. - */ - if (_config2.default.songs == undefined) { - _config2.default.songs = []; - } - - _config2.default.songs.push(song); - - if (_config2.default.shuffle_on) { - _config2.default.shuffle_list.push(song); - } - - if (_soundcloud2.default.isSoundCloudURL(song.url)) { - _soundcloud2.default.resolveIndividualStreamableURL(song.url, null, _config2.default.songs.length - 1, _config2.default.shuffle_on); - } - - return _config2.default.songs.length - 1; - } - - /** - * Adds a song to the beginning of the config array. - * This will allow Amplitude to play the song in a - * playlist type setting. - * - * Public Accessor: Amplitude.addSong( song_json ) - * - * @access public - * @param {object} song - JSON representation of a song. - * @returns {number} New index of the song (0) - */ - function prependSong(song) { - /* - Ensures we have a songs array to push to. - */ - if (_config2.default.songs == undefined) { - _config2.default.songs = []; - } - - _config2.default.songs.unshift(song); - - if (_config2.default.shuffle_on) { - _config2.default.shuffle_list.unshift(song); - } - - if (_soundcloud2.default.isSoundCloudURL(song.url)) { - _soundcloud2.default.resolveIndividualStreamableURL(song.url, null, _config2.default.songs.length - 1, _config2.default.shuffle_on); - } - - return 0; - } - - /** - * Adds a song to a playlist. This will allow Amplitude to play the song in the - * playlist - * - * Public Accessor: Amplitude.addSongToPlaylist( song_json, playlist_key ) - * - * @access public - * @param {object} song - JSON representation of a song. - * @param {string} playlist - Playlist we are adding the song to. - * @returns {mixed} New index of song in playlist or null if no playlist exists - */ - function addSongToPlaylist(song, playlist) { - if (_config2.default.playlists[playlist] != undefined) { - _config2.default.playlists[playlist].songs.push(song); - - if (_config2.default.playlists[playlist].shuffle) { - _config2.default.playlists[playlist].shuffle_list.push(song); - } - - if (_soundcloud2.default.isSoundCloudURL(song.url)) { - _soundcloud2.default.resolveIndividualStreamableURL(song.url, playlist, _config2.default.playlists[playlist].songs.length - 1, _config2.default.playlists[playlist].shuffle); - } - - return _config2.default.playlists[playlist].songs.length - 1; - } else { - _debug2.default.writeMessage("Playlist doesn't exist!"); - return null; - } - } - - /** - * Adds a playlist to Amplitude. - * - * @param {string} key - The key of the playlist we are adding. - * @param {object} data - The data relating to the playlist - * @param {array} songs - The songs to add to the playlist - */ - function addPlaylist(key, data, songs) { - /* - Ensures the playlist is not already defined. - */ - if (_config2.default.playlists[key] == undefined) { - /* - Initialize the new playlist object. - */ - _config2.default.playlists[key] = {}; - - /* - Define the ignored keys that we don't want to copy over. - */ - var ignoredKeys = ["repeat", "shuffle", "shuffle_list", "songs", "src"]; - - /* - Iterate over all of the keys defined by the user and - set them on the playlist. - */ - for (var dataKey in data) { - if (ignoredKeys.indexOf(dataKey) < 0) { - _config2.default.playlists[key][dataKey] = data[dataKey]; - } - } - - /* - Initialize the default parameters for the playlist and set the songs. - */ - _config2.default.playlists[key].songs = songs; - _config2.default.playlists[key].active_index = null; - _config2.default.playlists[key].repeat = false; - _config2.default.playlists[key].shuffle = false; - _config2.default.playlists[key].shuffle_list = []; - - return _config2.default.playlists[key]; - } else { - _debug2.default.writeMessage("A playlist already exists with that key!"); - return null; - } - } - - /** - * Removes a song from the song array - * - * Public Accessor: Amplitude.removeSong( index ) - * - * @access public - * @param {integer} index - Index of the song being removed - * @returns {boolean} True if removed false if not. - */ - function removeSong(index) { - _config2.default.songs.splice(index, 1); - } - - /** - * Removes a song from the playlist - * - * Public Accessor: Amplitude.removeSongFromPlaylist( index, playlist ) - * - * @access public - * @param {integer} index - Index of the song being removed from the playlist. - * @param {string} playlist - Playlist we are removing the song from. - * @returns {boolean} True if removed false if not. - */ - function removeSongFromPlaylist(index, playlist) { - if (_config2.default.playlists[playlist] != undefined) { - _config2.default.playlists[playlist].songs.splice(index, 1); - } - } - - /** - * When you pass a song object it plays that song right awawy. It sets - * the active song in the config to the song you pass in and synchronizes - * the visuals. - * - * Public Accessor: Amplitude.playNow( song ) - * - * @access public - * @param {object} song - JSON representation of a song. - */ - function playNow(song) { - /* - Makes sure the song object has a URL associated with it - or there will be nothing to play. - */ - if (song.url) { - _config2.default.audio.src = song.url; - _config2.default.active_metadata = song; - _config2.default.active_album = song.album; - } else { - /* - Write error message since the song passed in doesn't - have a URL. - */ - _debug2.default.writeMessage("The song needs to have a URL!"); - } - - /* - Plays the song. - */ - _core2.default.play(); - - /* - Sets the main song control status visual - */ - _playPauseElements2.default.sync(); - - /* - Update the song meta data - */ - _metaDataElements2.default.displayMetaData(); - - /* - Reset the song sliders, song progress bar info, and - reset times. This ensures everything stays in sync. - */ - _songSliderElements2.default.resetElements(); - - /* - Reset the song played progress elements. - */ - _songPlayedProgressElements2.default.resetElements(); - - /* - Reset all of the current time elements. - */ - _timeElements2.default.resetCurrentTimes(); - - /* - Reset all of the duration time elements. - */ - _timeElements2.default.resetDurationTimes(); - } - - /** - * Plays a song at the index passed in from the songs array. - * - * Public Accessor: Amplitude.playSongAtIndex( index ) - * - * @access public - * @param {number} index - The number representing the song in the songs array. - */ - function playSongAtIndex(index) { - /* - Stop the current song. - */ - _core2.default.stop(); - - /* - Determine if there is a new playlist, if so set the active playlist and change the song. - */ - if (_checks2.default.newPlaylist(null)) { - _audioNavigation2.default.setActivePlaylist(null); - - _audioNavigation2.default.changeSong(_config2.default.songs[index], index); - } - - /* - Check if the song is new. If so, change the song. - */ - if (_checks2.default.newSong(null, index)) { - _audioNavigation2.default.changeSong(_config2.default.songs[index], index); - } - - /* - Play the song - */ - _core2.default.play(); - - /* - Sync all of the play pause buttons. - */ - _playPauseElements2.default.sync(); - } - - /** - * Plays a song at the index passed in for the playlist provided. The index passed - * in should be the index of the song in the playlist and not the songs array. - * - * @access public - * @param {number} index - The number representing the song in the playlist array. - * @param {string} playlist - The key string representing the playlist we are playing the song from. - * - */ - function playPlaylistSongAtIndex(index, playlist) { - _core2.default.stop(); - - /* - Determine if there is a new playlist, if so set the active playlist and change the song. - */ - if (_checks2.default.newPlaylist(playlist)) { - _audioNavigation2.default.setActivePlaylist(playlist); - - _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[index], index); - } - - /* - Check if the song is new. If so, change the song. - */ - if (_checks2.default.newSong(playlist, index)) { - _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[index], index); - } - - /* - Sync all of the play pause buttons. - */ - _playPauseElements2.default.sync(); - - /* - Play the song - */ - _core2.default.play(); - } - - /** - * Allows the user to play whatever the active song is directly - * through Javascript. Normally ALL of Amplitude functions that access - * the core features are called through event handlers. - * - * Public Accessor: Amplitude.play(); - * - * @access public - */ - function play() { - _core2.default.play(); - } - - /** - * Allows the user to pause whatever the active song is directly - * through Javascript. Normally ALL of Amplitude functions that access - * the core features are called through event handlers. - * - * Public Accessor: Amplitude.pause(); - * - * @access public - */ - function pause() { - _core2.default.pause(); - } - - /** - * Allows the user to stop whatever the active song is directly - * through Javascript. - * - * Public Accessor: Amplitude.stop(); - * - * @access public - */ - function stop() { - _core2.default.stop(); - } - - /** - * Returns the audio object used to play the audio - * - * Public Accessor: Amplitude.getAudio(); - * - * @access public - */ - function getAudio() { - return _config2.default.audio; - } - - /** - * Returns the Web Audio API ANalyser used for visualizations. - * - * Public Accessor: Amplitude.getAnalyser() - * - * @access public - */ - function getAnalyser() { - return _config2.default.analyser; - } - - /** - * Plays the next song either in the playlist or globally. - * - * Public Accessor: Amplitude.next( playlist ); - * - * @access public - * @param {string} [playlist = null - The playlist key - */ - function next() { - var playlist = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - - var nextData = {}; - /* - If the playlist is empty or null, then we check the active - playlist - */ - if (playlist == "" || playlist == null) { - /* - If the active playlist is null, then we set the next global - song or we set the next in the playlist. - */ - if (_config2.default.active_playlist == null || _config2.default.active_playlist == "") { - _audioNavigation2.default.setNext(); - } else { - _audioNavigation2.default.setNextPlaylist(_config2.default.active_playlist); - } - } else { - _audioNavigation2.default.setNextPlaylist(playlist); - } - } - - /** - * Plays the prev song either in the playlist or globally. - * - * Public Accessor: Amplitude.prev( playlist ); - * - * @access public - * @param {string} [playlist = null] - The playlist key - */ - function prev() { - var playlist = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - - var prevData = {}; - - /* - If the playlist is empty or null, then we check the active - playlist - */ - if (playlist == "" || playlist == null) { - /* - If the active playlist is null, then we set the prev global - song or we set the prev in the playlist. - */ - if (_config2.default.active_playlist == null || _config2.default.active_playlist == "") { - _audioNavigation2.default.setPrevious(); - } else { - _audioNavigation2.default.setPreviousPlaylist(_config2.default.active_playlist); - } - } else { - _audioNavigation2.default.setPreviousPlaylist(playlist); - } - } - - /** - * Gets all of the songs in the songs array - * - * Public Accessor: Amplitude.getSongs( ); - * - * @access public - */ - function getSongs() { - return _config2.default.songs; - } - - /** - * Gets all of the songs in a playlist - * - * Public Accessor: Amplitude.getSongsInPlaylist( playlist ); - * - * @access public - * @param {string} playlist - The playlist key - */ - function getSongsInPlaylist(playlist) { - return _config2.default.playlists[playlist].songs; - } - - /** - * Get current state of songs. If shuffled, this will return the shuffled - * songs. - * - * Public Accessor: Amplitude.getSongsState(); - * - * @access public - */ - function getSongsState() { - if (_config2.default.shuffle_on) { - return _config2.default.shuffle_list; - } else { - return _config2.default.songs; - } - } - - /** - * Get current state of songs in playlist. If shuffled, this will return the - * shuffled songs. - * - * Public Accessor: Amplitude.getSongsStatePlaylist( playlist ); - * - * @access public - * @param {string} playlist - The playlist key - */ - function getSongsStatePlaylist(playlist) { - if (_config2.default.playlists[playlist].shuffle) { - return _config2.default.playlists[playlist].shuffle_list; - } else { - return _config2.default.playlists[playlist].songs; - } - } - - /** - * Gets the active index of the player - * - * Public Accessor: Amplitude.getActiveIndex() - * - * @access public - */ - function getActiveIndex() { - return parseInt(_config2.default.active_index); - } - - /** - * Get the version of AmplitudeJS - * - * Public Accessor: Amplitude.getVersion() - * - * @access public - */ - function getVersion() { - return _config2.default.version; - } - - /** - * Get the buffered amount for the current song - * - * Public Accessor: Amplitude.getBuffered() - * - * @access public - */ - function getBuffered() { - return _config2.default.buffered; - } - - /** - * Skip to a certain location in a selected song. - * - * Public Accessor: Amplitude.getBuffered() - * - * @access public - * @param {number} seconds - The amount of seconds we should skip to in the song. - * @param {number} songIndex - The index of the song in the songs array. - * @param {string} [playlist = null] - The playlist the song we are skipping to belogns to. - */ - function skipTo(seconds, songIndex) { - var playlist = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - - seconds = parseInt(seconds); - - if (playlist != null) { - /* - Checks if we are skipping to a new playlist - */ - if (_checks2.default.newPlaylist(playlist)) { - _audioNavigation2.default.setActivePlaylist(playlist); - } - - /* - Changes the song to where it's being skipped and then - play the song. - */ - _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[songIndex], songIndex); - _core2.default.play(); - - /* - Sync all of the play pause elements. - */ - _playPauseElements2.default.syncGlobal(); - _playPauseElements2.default.syncPlaylist(); - _playPauseElements2.default.syncSong(); - - /* - Skip to the location in the song. - */ - _core2.default.skipToLocation(seconds); - } else { - /* - Changes the song to where it's being skipped and then - play the song. - */ - _audioNavigation2.default.changeSong(_config2.default.songs[songIndex], songIndex); - _core2.default.play(); - - /* - Syncs all of the play pause buttons now that we've skipped. - */ - _playPauseElements2.default.syncGlobal(); - _playPauseElements2.default.syncSong(); - - /* - Skip to the location in the song. - */ - _core2.default.skipToLocation(seconds); - } - } - - /** - * Sets the meta data for a song in the songs array. This will set any - * meta data for a song besides the URL. The URL could cause issues if the - * song was playing. - * - * Public Accessor: Amplitude.setSongMetaData() - * - * @access public - * @param {number} index - The index of the song in the songs array. - * @param {object} metaData - The object containing the meta data we are updating. - * @param {string} playlist - The playlist we are updating the song meta data for. - */ - function setSongMetaData(index, metaData) { - var playlist = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - - /* - Update the meta data for a song in a playlist. - */ - if (playlist != "" && playlist != null && _config2.default.playlists[playlist] != undefined) { - /* - Set all of the defined meta data properties - */ - for (var key in metaData) { - if (metaData.hasOwnProperty(key)) { - if (key != "url" && key != "URL" && key != "live" && key != "LIVE") { - _config2.default.playlists[playlist].songs[index][key] = metaData[key]; - } - } - } - } else { - /* - Update the meta data for a song. - */ - for (var key in metaData) { - if (metaData.hasOwnProperty(key)) { - if (key != "url" && key != "URL" && key != "live" && key != "LIVE") { - _config2.default.songs[index][key] = metaData[key]; - } - } - } - } - - /* - Display the updates on the screen. - */ - _metaDataElements2.default.displayMetaData(); - _metaDataElements2.default.syncMetaData(); - } - - function setPlaylistMetaData(playlist, metaData) { - if (_config2.default.playlists[playlist] != undefined) { - /* - These are the ignored keys that we won't be worrying about displaying. - Every other key in the playlist object can be displayed. - */ - var ignoredKeys = ["repeat", "shuffle", "shuffle_list", "songs", "src"]; - - for (var key in metaData) { - if (metaData.hasOwnProperty(key)) { - if (ignoredKeys.indexOf(key) < 0) { - _config2.default.playlists[playlist][key] = metaData[key]; - } - } - } - - _metaDataElements2.default.displayPlaylistMetaData(); - } else { - _debug2.default.writeMessage("You must provide a valid playlist key!"); - } - } - - /** - * Sets the delay between the songs when they are finished. - * - * Public Accessor: Amplitude.setDelay() - * - * @access public - * @param {number} delay - The millisecond delay time between songs - */ - function setDelay(time) { - _config2.default.delay = time; - } - - /** - * Returns the current delay between songs. - * - * Public Accessor: Amplitude.getDelay() - * - * @access public - */ - function getDelay() { - return _config2.default.delay; - } - - /** - * Returns the state of the player. - * - * Public Accessor: Amplitude.getPlayerState(); - */ - function getPlayerState() { - return _config2.default.player_state; - } - - /** - * Registers a visualization and sets that visualization's - * preferences. When creating a visualization, you can set certain - * preferences that the user can overwrite similar to Amplitude. - * Public Accessor: Amplitude.registerVisualization( visualization, preferences ) - * - * @param {object} visualzation A visualization object that gets registered - * with Amplitude - * - * @param {object} preferences A JSON object of preferences relating to the - * visualization - */ - function registerVisualization(visualization, preferences) { - _visualizations2.default.register(visualization, preferences); - } - - /** - * Set the visualization for the playlist - * - * @param {string} playlist - The playlist we are setting the visualization for. - * @param {string} visualizationKey - The key of the visualization we are adding to the playlist. - */ - function setPlaylistVisualization(playlist, visualizationKey) { - if (_config2.default.playlists[playlist] != undefined) { - if (_config2.default.visualizations.available[visualizationKey] != undefined) { - _config2.default.playlists[playlist].visualization = visualizationKey; - } else { - _debug2.default.writeMessage("A visualization does not exist for the key provided."); - } - } else { - _debug2.default.writeMessage("The playlist for the key provided does not exist"); - } - } - - /** - * Set a visualization for the song. - * - * @param {number} songIndex - The index of the song in the songs array we are setting the visualization for. - * @param {string} visualizationKey - The key of the visualization we are adding to the playlist. - */ - function setSongVisualization(songIndex, visualizationKey) { - if (_config2.default.songs[songIndex]) { - if (_config2.default.visualizations.available[visualizationKey] != undefined) { - _config2.default.songs[songIndex].visualization = visualizationKey; - } else { - _debug2.default.writeMessage("A visualization does not exist for the key provided."); - } - } else { - _debug2.default.writeMessage("A song at that index is undefined"); - } - } - - /** - * Set song in playlist visualization. - * - * @param {string} playlist - The playlist we are setting the song visualization for. - * @param {number} songIndex - The index we are setting the visualization for. - * @param {strong} visualizationKey - The key of the visualization we are adding to the song in the playlist. - */ - function setSongInPlaylistVisualization(playlist, songIndex, visualizationKey) { - if (_config2.default.playlists[playlist].songs[songIndex] != undefined) { - if (_config2.default.visualizations.available[visualizationKey] != undefined) { - _config2.default.playlists[playlist].songs[songIndex].visualization = visualizationKey; - } else { - _debug2.default.writeMessage("A visualization does not exist for the key provided."); - } - } else { - _debug2.default.writeMessage("The song in the playlist at that key is not defined"); - } - } - - /** - * Sets the global visualization default. - */ - function setGlobalVisualization(visualizationKey) { - if (_config2.default.visualizations.available[visualizationKey] != undefined) { - _config2.default.visualization = visualizationKey; - } else { - _debug2.default.writeMessage("A visualization does not exist for the key provided."); - } - } - - /** - * Sets the active volume. - * @param {number} volumeLevel - A number between 1 and 100 as a percentage of - * min to max for a volume level. - */ - function setVolume(volumeLevel) { - _core2.default.setVolume(volumeLevel); - } - - /** - * Gets the active volume. - */ - function getVolume() { - return _config2.default.volume; - } - - /* - Returns all of the publically accesible methods. - */ - return { - init: init, - getConfig: getConfig, - bindNewElements: bindNewElements, - getActivePlaylist: getActivePlaylist, - getPlaybackSpeed: getPlaybackSpeed, - setPlaybackSpeed: setPlaybackSpeed, - getRepeat: getRepeat, - getRepeatPlaylist: getRepeatPlaylist, - getShuffle: getShuffle, - getShufflePlaylist: getShufflePlaylist, - setShuffle: setShuffle, - setShufflePlaylist: setShufflePlaylist, - setRepeat: setRepeat, - setRepeatSong: setRepeatSong, - setRepeatPlaylist: setRepeatPlaylist, - getDefaultAlbumArt: getDefaultAlbumArt, - setDefaultAlbumArt: setDefaultAlbumArt, - getDefaultPlaylistArt: getDefaultPlaylistArt, - setDefaultPlaylistArt: setDefaultPlaylistArt, - getSongPlayedPercentage: getSongPlayedPercentage, - setSongPlayedPercentage: setSongPlayedPercentage, - getSongPlayedSeconds: getSongPlayedSeconds, - getSongDuration: getSongDuration, - setDebug: setDebug, - getActiveSongMetadata: getActiveSongMetadata, - getActivePlaylistMetadata: getActivePlaylistMetadata, - getSongAtIndex: getSongAtIndex, - getSongAtPlaylistIndex: getSongAtPlaylistIndex, - addSong: addSong, - prependSong: prependSong, - addSongToPlaylist: addSongToPlaylist, - removeSong: removeSong, - removeSongFromPlaylist: removeSongFromPlaylist, - playNow: playNow, - playSongAtIndex: playSongAtIndex, - playPlaylistSongAtIndex: playPlaylistSongAtIndex, - play: play, - pause: pause, - stop: stop, - getAudio: getAudio, - getAnalyser: getAnalyser, - next: next, - prev: prev, - getSongs: getSongs, - getSongsInPlaylist: getSongsInPlaylist, - getSongsState: getSongsState, - getSongsStatePlaylist: getSongsStatePlaylist, - getActiveIndex: getActiveIndex, - getVersion: getVersion, - getBuffered: getBuffered, - skipTo: skipTo, - setSongMetaData: setSongMetaData, - setPlaylistMetaData: setPlaylistMetaData, - setDelay: setDelay, - getDelay: getDelay, - getPlayerState: getPlayerState, - addPlaylist: addPlaylist, - registerVisualization: registerVisualization, - setPlaylistVisualization: setPlaylistVisualization, - setSongVisualization: setSongVisualization, - setSongInPlaylistVisualization: setSongInPlaylistVisualization, - setGlobalVisualization: setGlobalVisualization, - getVolume: getVolume, - setVolume: setVolume - }; -}(); - -/** - * Playback Speed Elements - * @module visual/PlaybackSpeedElements - */ - - -/** - * Play Pause Elements - * @module visual/PlayPauseElements - */ - - -/** - * Song Played Progress Elements - * @module visual/SongPlayedProgressElements - */ - - -/** - * Visual Repeat Elements - * @module visual/RepeatElements - */ - - -/**************************************************** - * FX Modules - ****************************************************/ -/** - * Imports the visualizations module - * @module fx/Visualizations - */ - - -/** - * Repeater Module - * - * @module utilities/Repeater - */ - - -/** - * Imports the config state module. - * @module ConfigState - */ - - -/**************************************************** - * Core - ****************************************************/ -/** - * AmplitudeJS Core Module - * - * @module core/Core - */ -/** - * @name AmplitudeJS - * @author Dan Pastori (Server Side Up) - */ -/** - * AmplitudeJS Initializer Module - * - * @module init/AmplitudeInitializer - */ -exports.default = Amplitude; -module.exports = exports["default"]; - -/***/ }), -/* 48 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -var _debug = __webpack_require__(4); - -var _debug2 = _interopRequireDefault(_debug); - -var _checks = __webpack_require__(5); - -var _checks2 = _interopRequireDefault(_checks); - -var _metaDataElements = __webpack_require__(7); - -var _metaDataElements2 = _interopRequireDefault(_metaDataElements); - -var _soundcloud = __webpack_require__(17); - -var _soundcloud2 = _interopRequireDefault(_soundcloud); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles the initialization of the playlists. - * - * @module init/PlaylistsInitializer - */ - - -/** - * AmplitudeJS Visual Meta Data Elements Module - * @module visual/MetaDataElements - */ - - -/** - * AmplitudeJS Debug Module - * @module utilities/Debug - */ -var PlaylistsInitializer = function () { - /** - * Initializes the playlists for AmplitudeJS - * - * @param {Object} playlists - The playlists defined by the user. - */ - function initialize(playlists) { - /* - Copy the playlists over to Amplitude - */ - _config2.default.playlists = playlists; - - /* - Copy songs over from songs array. - */ - copySongsToPlaylists(); - - /* - Grab any SoundCloud Data for the playlist songs if needed. - */ - grabSoundCloudData(); - - /* - Initialize a scoped active index for each playlist. - */ - initializePlaylistActiveIndexes(); - - /* - Initialize the shuffle status of the playlists. - */ - initializePlaylistShuffleStatuses(); - - /* - Initialize the repeat status for the playlits. - */ - initializePlaylistsRepeatStatuses(); - - /* - Initialize temporary place holders for shuffle lists. - */ - initializePlaylistShuffleLists(); - - /* - Initializes the first song in the playlist - */ - initializeFirstSongInPlaylistMetaData(); - } - - /** - * Initializes a scoped active index for each playlist. - * - * @access private - */ - function initializePlaylistActiveIndexes() { - /* - Iterate over all of the playlists defined by the user - and add an active index. - */ - for (var key in _config2.default.playlists) { - _config2.default.playlists[key].active_index = null; - } - } - - /** - * Ensures the indexes in the playlists are valid indexes. The song has - * to exist in the Amplitude config to be played correctly. If the index - * is an integer, we ensure it exists and coy it to the array. - * - * @access private - */ - function copySongsToPlaylists() { - /* - Iterate over all of the config's playlists - */ - for (var key in _config2.default.playlists) { - /* - Checks if the playlist key is accurate. - */ - if (_config2.default.playlists.hasOwnProperty(key)) { - /* - Checks if the playlist has songs. - */ - if (_config2.default.playlists[key].songs) { - /* - Iterate over all of the songs in the playlist - */ - for (var i = 0; i < _config2.default.playlists[key].songs.length; i++) { - if (_checks2.default.isInt(_config2.default.playlists[key].songs[i])) { - _config2.default.playlists[key].songs[i] = _config2.default.songs[_config2.default.playlists[key].songs[i]]; - - _config2.default.playlists[key].songs[i].index = i; - } - /* - Check to see if the index for the song in the playlist - exists in the songs config. - */ - if (_checks2.default.isInt(_config2.default.playlists[key].songs[i]) && !_config2.default.songs[_config2.default.playlists[key].songs[i]]) { - _debug2.default.writeMessage("The song index: " + _config2.default.playlists[key].songs[i] + " in playlist with key: " + key + " is not defined in your songs array!"); - } - - /* - If not an int, then is a dedicated song, just set the index. - */ - if (!_checks2.default.isInt(_config2.default.playlists[key].songs[i])) { - _config2.default.playlists[key].songs[i].index = i; - } - } - } - } - } - } - - /** - * Grabs the SoundCloud data for any song in the playlist that - * the user needs to grab data for. - * - * @access private - */ - function grabSoundCloudData() { - /* - Iterate over all of the config's playlists - */ - for (var key in _config2.default.playlists) { - /* - Checks if the playlist key is accurate. - */ - if (_config2.default.playlists.hasOwnProperty(key)) { - /* - Iterate over all of the songs in the playlist and see if - they need to grab the SoundCloud data for the song. - */ - for (var i = 0; i < _config2.default.playlists[key].songs.length; i++) { - /* - Only Grab the data if the URL is a SoundCloud URL. - */ - if (_soundcloud2.default.isSoundCloudURL(_config2.default.playlists[key].songs[i].url)) { - /* - Only grab the data if the SoundCloud data has not already been - grabbed for the audio. This could happen if the user defined the - song in the songs array and was grabbed before. - */ - if (_config2.default.playlists[key].songs[i].soundcloud_data == undefined) { - _soundcloud2.default.resolveIndividualStreamableURL(_config2.default.playlists[key].songs[i].url, key, i); - } - } - } - } - } - } - - /** - * Initializes the shuffle statuses for each of the playlists. These will - * be referenced when we shuffle individual playlists. - * - * @access private - */ - function initializePlaylistShuffleStatuses() { - /* - Iterate over all of the playlists the user defined adding - the playlist key to the shuffled playlist array and creating - and empty object to house the statuses. - */ - for (var key in _config2.default.playlists) { - _config2.default.playlists[key].shuffle = false; - } - } - - /** - * Initializes the repeat statuses for each of the playlists. These will - * be referenced when we repeat individual playlits. - * - * @access private - */ - function initializePlaylistsRepeatStatuses() { - /* - Iterate over all of the playlists the user defined adding - the playlist key to the repeated playlist array and creating - and empty object to house the statuses. - */ - for (var key in _config2.default.playlists) { - _config2.default.playlists[key].repeat = false; - } - } - - /** - * Initializes the shuffled playlist placeholders. These will be set for - * playlists that are shuffled and contain the shuffled songs. - * - * @access private - */ - function initializePlaylistShuffleLists() { - /* - Iterate over all of the playlists the user defined adding - the playlist key to the shuffled playlists array and creating - and empty object to house the shuffled playlists - */ - for (var key in _config2.default.playlists) { - _config2.default.playlists[key].shuffle_list = []; - } - } - - /** - * Intializes the display for the first song in the playlist meta data. - * - * @access private - */ - function initializeFirstSongInPlaylistMetaData() { - /* - Iterates over all of the playlists setting the meta data for the - first song. - */ - for (var key in _config2.default.playlists) { - _metaDataElements2.default.setFirstSongInPlaylist(_config2.default.playlists[key].songs[0], key); - } - } - - /* - Returns the public facing methods - */ - return { - initialize: initialize - }; -}(); - -/** - * AmplitudeJS SoundCloud Meta module - * @module soundcloud/Soundcloud - */ - - -/** - * AmplitudeJS Checks Utility. - * @module utilities/Checks - */ -/** - * Imports the config module - * @module config - */ -exports.default = PlaylistsInitializer; -module.exports = exports["default"]; - -/***/ }), -/* 49 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the container elements. - * - * @param visual/ContainerElements - */ -var ContainerElements = function () { - /** - * Applies the class 'amplitude-active-song-container' to the element - * containing visual information regarding the active song. - * - * @prop {boolean} direct - Determines if it was a direct click on the song. We - * then don't care if shuffle is on or not. - * - * @access public - */ - function setActive(direct) { - /* - Gets all of the song container elements. - */ - var songContainers = document.getElementsByClassName("amplitude-song-container"); - - /* - Removes all of the active song containrs. - */ - for (var i = 0; i < songContainers.length; i++) { - songContainers[i].classList.remove("amplitude-active-song-container"); - } - - /* - Finds the active index and adds the active song container to the element - that represents the song at the index. - */ - if (_config2.default.active_playlist == "" || _config2.default.active_playlist == null) { - var activeIndex = ""; - - /* - If we click directly on the song element, we ignore - whether it's in shuffle or not. - */ - if (direct) { - activeIndex = _config2.default.active_index; - } else { - if (_config2.default.shuffle_on) { - activeIndex = _config2.default.shuffle_list[_config2.default.active_index].index; - } else { - activeIndex = _config2.default.active_index; - } - } - - if (document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index="' + activeIndex + '"]')) { - var _songContainers = document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index="' + activeIndex + '"]'); - - for (var _i = 0; _i < _songContainers.length; _i++) { - if (!_songContainers[_i].hasAttribute("data-amplitude-playlist")) { - _songContainers[_i].classList.add("amplitude-active-song-container"); - } - } - } - } else { - /* - If we have an active playlist or the action took place directly on the - song element, we ignore the shuffle. - */ - if (_config2.default.active_playlist != null && _config2.default.active_playlist != "" || direct) { - var activePlaylistIndex = _config2.default.playlists[_config2.default.active_playlist].active_index; - } else { - var activePlaylistIndex = ""; - - if (_config2.default.playlists[_config2.default.active_playlist].shuffle) { - activePlaylistIndex = _config2.default.playlists[_config2.default.active_playlist].shuffle_list[_config2.default.playlists[_config2.default.active_playlist].active_index].index; - } else { - activePlaylistIndex = _config2.default.playlists[_config2.default.active_playlist].active_index; - } - } - - if (document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index="' + activePlaylistIndex + '"][data-amplitude-playlist="' + _config2.default.active_playlist + '"]')) { - var _songContainers2 = document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index="' + activePlaylistIndex + '"][data-amplitude-playlist="' + _config2.default.active_playlist + '"]'); - - for (var _i2 = 0; _i2 < _songContainers2.length; _i2++) { - _songContainers2[_i2].classList.add("amplitude-active-song-container"); - } - } - } - } - - return { - setActive: setActive - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = ContainerElements; -module.exports = exports["default"]; - -/***/ }), -/* 50 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the current time hour elements. - * - * @module visual/time/CurrentHourElements - */ -var CurrentHourElements = function () { - function sync(hours) { - syncGlobal(hours); - syncPlaylist(hours); - syncSong(hours); - syncSongInPlaylist(hours); - } - - /** - * Updates any elements that display the current hour for the song. - * - * @access public - * @param {number} hours - An integer conaining how many hours into the song. - */ - function syncGlobal(hours) { - /* - Get all of the hour selectors - */ - var currentHourSelectors = document.querySelectorAll(".amplitude-current-hours"); - - /* - Set the current hour selector's inner html to hours passed in. - */ - for (var i = 0; i < currentHourSelectors.length; i++) { - var playlist = currentHourSelectors[i].getAttribute("data-amplitude-playlist"); - var songIndex = currentHourSelectors[i].getAttribute("data-amplitude-song-index"); - - /* - Updates the current hour selector for a global display. - */ - if (playlist == null && songIndex == null) { - currentHourSelectors[i].innerHTML = hours; - } - } - } - - /** - * Syncs the playlist current hour elements. - * - * @param {Integer} hour - The current audio hour. - */ - function syncPlaylist(hours) { - /* - Get all of the hour selectors - */ - var currentHourPlaylistSelectors = document.querySelectorAll('.amplitude-current-hours[data-amplitude-playlist="' + _config2.default.active_playlist + '"]'); - - /* - Set the current hour selector's inner html to hours passed in. - */ - for (var i = 0; i < currentHourPlaylistSelectors.length; i++) { - var songIndex = currentHourPlaylistSelectors[i].getAttribute("data-amplitude-song-index"); - - /* - Updates the current hour selector for a global display. - */ - if (songIndex == null) { - currentHourPlaylistSelectors[i].innerHTML = hours; - } - } - } - - /** - * Syncs the song hour elements. - * - * @param {Integer} hour - The current audio hour. - */ - function syncSong(hours) { - if (_config2.default.active_playlist == null) { - /* - Get all of the hour selectors - */ - var currentHourSongSelectors = document.querySelectorAll('.amplitude-current-hours[data-amplitude-song-index="' + _config2.default.active_index + '"]'); - - /* - Set the current hour selector's inner html to hours passed in. - */ - for (var i = 0; i < currentHourSongSelectors.length; i++) { - var playlist = currentHourSongSelectors[i].getAttribute("data-amplitude-playlist"); - - /* - Updates the current hour selector for a global display. - */ - if (playlist == null) { - currentHourSongSelectors[i].innerHTML = hours; - } - } - } - } - - /** - * Syncs the song in playlist song hour elements. - * - * @param {Integer} hour - The current audio hour. - */ - function syncSongInPlaylist(hours) { - var activePlaylistIndex = _config2.default.active_playlist != "" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null; - /* - Get all of the hour selectors - */ - var currentHourPlaylistSongSelectors = document.querySelectorAll('.amplitude-current-hours[data-amplitude-playlist="' + _config2.default.active_playlist + '"][data-amplitude-song-index="' + activePlaylistIndex + '"]'); - - /* - Set the current hour selector's inner html to hours passed in. - */ - for (var i = 0; i < currentHourPlaylistSongSelectors.length; i++) { - currentHourPlaylistSongSelectors[i].innerHTML = hours; - } - } - - /** - * Reset the current hour elements. - */ - function resetTimes() { - /* - Gets the hour display elements - */ - var hourSelectors = document.querySelectorAll(".amplitude-current-hours"); - - /* - Iterates over all of the hour selectors and sets the inner HTML - to 00. - */ - for (var i = 0; i < hourSelectors.length; i++) { - hourSelectors[i].innerHTML = "00"; - } - } - - /** - * Returns the publically facing methods. - */ - return { - sync: sync, - resetTimes: resetTimes - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = CurrentHourElements; -module.exports = exports["default"]; - -/***/ }), -/* 51 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the current time minutes elements. - * - * @module visual/time/CurrentMinuteElements - */ -var CurrentMinuteElements = function () { - /** - * Syncs the current minutes elements. - * - * @param {Integer} minutes - The current audio minutes. - */ - function sync(minutes) { - syncGlobal(minutes); - syncPlaylist(minutes); - syncSong(minutes); - syncSongInPlaylist(minutes); - } - - /** - * Syncs the global current minutes elements. - * - * @param {Integer} minutes - The current audio minutes. - */ - function syncGlobal(minutes) { - /* - Get all of the minute selectors - */ - var currentMinuteSelectors = document.querySelectorAll(".amplitude-current-minutes"); - - /* - Set the current minute selector's inner html to minutes passed in. - */ - for (var i = 0; i < currentMinuteSelectors.length; i++) { - var playlist = currentMinuteSelectors[i].getAttribute("data-amplitude-playlist"); - var songIndex = currentMinuteSelectors[i].getAttribute("data-amplitude-song-index"); - - /* - Updates the current minute selector for a global display. - */ - if (playlist == null && songIndex == null) { - currentMinuteSelectors[i].innerHTML = minutes; - } - } - } - - /** - * Syncs the playlist minutes elements. - * - * @param {Integer} minutes - The current audio minutes. - */ - function syncPlaylist(minutes) { - /* - Get all of the minute selectors - */ - var currentMinutePlaylistSelectors = document.querySelectorAll('.amplitude-current-minutes[data-amplitude-playlist="' + _config2.default.active_playlist + '"]'); - - /* - Set the current minute selector's inner html to minutes passed in. - */ - for (var i = 0; i < currentMinutePlaylistSelectors.length; i++) { - var songIndex = currentMinutePlaylistSelectors[i].getAttribute("data-amplitude-song-index"); - - /* - Updates the current minute selector for a global display. - */ - if (songIndex == null) { - currentMinutePlaylistSelectors[i].innerHTML = minutes; - } - } - } - - /** - * Syncs the current song minutes elements. - * - * @param {Integer} minutes - The current audio minutes. - */ - function syncSong(minutes) { - if (_config2.default.active_playlist == null) { - /* - Get all of the minute selectors - */ - var currentMinuteSongSelectors = document.querySelectorAll('.amplitude-current-minutes[data-amplitude-song-index="' + _config2.default.active_index + '"]'); - - /* - Set the current minute selector's inner html to minutes passed in. - */ - for (var i = 0; i < currentMinuteSongSelectors.length; i++) { - var playlist = currentMinuteSongSelectors[i].getAttribute("data-amplitude-playlist"); - - /* - Updates the current minute selector for a global display. - */ - if (playlist == null) { - currentMinuteSongSelectors[i].innerHTML = minutes; - } - } - } - } - - /** - * Syncs the current song in playlist minutes elements. - * - * @param {Integer} minutes - The current audio minutes. - */ - function syncSongInPlaylist(minutes) { - var activePlaylistIndex = _config2.default.active_playlist != "" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null; - - /* - Get all of the minute selectors - */ - var currentMinutePlaylistSongSelectors = document.querySelectorAll('.amplitude-current-minutes[data-amplitude-playlist="' + _config2.default.active_playlist + '"][data-amplitude-song-index="' + activePlaylistIndex + '"]'); - - /* - Set the current minute selector's inner html to minutes passed in. - */ - for (var i = 0; i < currentMinutePlaylistSongSelectors.length; i++) { - currentMinutePlaylistSongSelectors[i].innerHTML = minutes; - } - } - - /** - * Reset the current times. - */ - function resetTimes() { - /* - Gets the minute display elements - */ - var minuteSelectors = document.querySelectorAll(".amplitude-current-minutes"); - - /* - Iterates over all of the minute selectors and sets the inner HTML - to 00. - */ - for (var i = 0; i < minuteSelectors.length; i++) { - minuteSelectors[i].innerHTML = "00"; - } - } - - /** - * Returns the publically facing methods. - */ - return { - sync: sync, - resetTimes: resetTimes - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = CurrentMinuteElements; -module.exports = exports["default"]; - -/***/ }), -/* 52 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the current time seconds elements. - * - * @module visual/time/CurrentSecondElements - */ -var CurrentSecondElements = function () { - /** - * Syncs the current seconds elements. - * - * @param {Integer} seconds - The current audio seconds. - */ - function sync(seconds) { - syncGlobal(seconds); - syncPlaylist(seconds); - syncSong(seconds); - syncSongInPlaylist(seconds); - } - - /** - * Syncs the global current seconds elements. - * - * @param {Integer} seconds - The current audio seconds. - */ - function syncGlobal(seconds) { - /* - Get all of the second selectors - */ - var currentSecondSelectors = document.querySelectorAll(".amplitude-current-seconds"); - - /* - Set the current second selector's inner html to seconds passed in. - */ - for (var i = 0; i < currentSecondSelectors.length; i++) { - var playlist = currentSecondSelectors[i].getAttribute("data-amplitude-playlist"); - var songIndex = currentSecondSelectors[i].getAttribute("data-amplitude-song-index"); - - /* - Updates the current second selector for a global display. - */ - if (playlist == null && songIndex == null) { - currentSecondSelectors[i].innerHTML = seconds; - } - } - } - - /** - * Syncs the playlist seconds elements. - * - * @param {Integer} seconds - The current audio seconds. - */ - function syncPlaylist(seconds) { - /* - Get all of the second selectors - */ - var currentSecondPlaylistSelectors = document.querySelectorAll('.amplitude-current-seconds[data-amplitude-playlist="' + _config2.default.active_playlist + '"]'); - - /* - Set the current second selector's inner html to seconds passed in. - */ - for (var i = 0; i < currentSecondPlaylistSelectors.length; i++) { - var songIndex = currentSecondPlaylistSelectors[i].getAttribute("data-amplitude-song-index"); - - /* - Updates the current second selector for a global display. - */ - if (songIndex == null) { - currentSecondPlaylistSelectors[i].innerHTML = seconds; - } - } - } - - /** - * Syncs the current song seconds elements. - * - * @param {Integer} seconds - The current audio seconds. - */ - function syncSong(seconds) { - if (_config2.default.active_playlist == null) { - /* - Get all of the second selectors - */ - var currentSecondSongSelectors = document.querySelectorAll('.amplitude-current-seconds[data-amplitude-song-index="' + _config2.default.active_index + '"]'); - - /* - Set the current second selector's inner html to seconds passed in. - */ - for (var i = 0; i < currentSecondSongSelectors.length; i++) { - var playlist = currentSecondSongSelectors[i].getAttribute("data-amplitude-playlist"); - - /* - Updates the current second selector for a global display. - */ - if (playlist == null) { - currentSecondSongSelectors[i].innerHTML = seconds; - } - } - } - } - - /** - * Syncs the current song in playlist seconds elements. - * - * @param {Integer} seconds - The current audio seconds. - */ - function syncSongInPlaylist(seconds) { - var activePlaylistIndex = _config2.default.active_playlist != "" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null; - /* - Get all of the second selectors - */ - var currentSecondPlaylistSongSelectors = document.querySelectorAll('.amplitude-current-seconds[data-amplitude-playlist="' + _config2.default.active_playlist + '"][data-amplitude-song-index="' + activePlaylistIndex + '"]'); - - /* - Set the current second selector's inner html to seconds passed in. - */ - for (var i = 0; i < currentSecondPlaylistSongSelectors.length; i++) { - currentSecondPlaylistSongSelectors[i].innerHTML = seconds; - } - } - - /** - * Reset the current seconds elements. - */ - function resetTimes() { - /* - Gets the second display elements - */ - var secondSelectors = document.querySelectorAll(".amplitude-current-seconds"); - - /* - Iterates over all of the second selectors and sets the inner HTML - to 00. - */ - for (var i = 0; i < secondSelectors.length; i++) { - secondSelectors[i].innerHTML = "00"; - } - } - - /** - * Returns the publically facing methods. - */ - return { - sync: sync, - resetTimes: resetTimes - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = CurrentSecondElements; -module.exports = exports["default"]; - -/***/ }), -/* 53 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * These methods help sync visual time elements. - * - * @module visual/CurrentTimeElements - */ -var CurrentTimeElements = function () { - /** - * Visually displays the current time on the screen. This is called on - * time update for the current song. - * - * @access public - * @param {object} currentTime - An object containing the current time for the song in seconds, minutes, and hours. - */ - function sync(currentTime) { - /* - Set current time display. - */ - syncGlobal(currentTime); - syncPlaylist(currentTime); - syncSong(currentTime); - syncSongInPlaylist(currentTime); - } - - /** - * Updates any elements that display the current time for the song. This - * is a computed field that will be commonly used. - * - * @access public - * @param {object} time - A json object conaining the parts for the current time for the song. - */ - function syncGlobal(time) { - /* - Get all of the time selectors. - */ - var currentTimeSelectors = document.querySelectorAll(".amplitude-current-time"); - - /* - Set the time selector's inner html to the current time for the song. The current - time is computed by joining minutes and seconds. - */ - var timeText = time.minutes + ":" + time.seconds; - - if (time.hours > 0) { - timeText = time.hours + ":" + timeText; - } - - for (var i = 0; i < currentTimeSelectors.length; i++) { - var playlist = currentTimeSelectors[i].getAttribute("data-amplitude-playlist"); - var songIndex = currentTimeSelectors[i].getAttribute("data-amplitude-song-index"); - - if (playlist == null && songIndex == null) { - currentTimeSelectors[i].innerHTML = timeText; - } - } - } - - /** - * Updates any elements that display the current time for the song. This - * is a computed field that will be commonly used. - * - * @access public - * @param {object} time - A json object conaining the parts for the current time for the song. - */ - function syncPlaylist(time) { - /* - Get all of the time selectors. - */ - var currentTimeSelectors = document.querySelectorAll('.amplitude-current-time[data-amplitude-playlist="' + _config2.default.active_playlist + '"]'); - - /* - Set the time selector's inner html to the current time for the song. The current - time is computed by joining minutes and seconds. - */ - var timeText = time.minutes + ":" + time.seconds; - - if (time.hours > 0) { - timeText = time.hours + ":" + timeText; - } - - for (var i = 0; i < currentTimeSelectors.length; i++) { - var songIndex = currentTimeSelectors[i].getAttribute("data-amplitude-song-index"); - - if (songIndex == null) { - currentTimeSelectors[i].innerHTML = timeText; - } - } - } - - /** - * Updates any elements that display the current time for the song. This - * is a computed field that will be commonly used. - * - * @access public - * @param {object} time - A json object conaining the parts for the current time for the song. - */ - function syncSong(time) { - if (_config2.default.active_playlist == null) { - /* - Get all of the time selectors. - */ - var currentTimeSelectors = document.querySelectorAll('.amplitude-current-time[data-amplitude-song-index="' + _config2.default.active_index + '"]'); - - /* - Set the time selector's inner html to the current time for the song. The current - time is computed by joining minutes and seconds. - */ - var timeText = time.minutes + ":" + time.seconds; - - if (time.hours > 0) { - timeText = time.hours + ":" + timeText; - } - - for (var i = 0; i < currentTimeSelectors.length; i++) { - var playlist = currentTimeSelectors[i].getAttribute("data-amplitude-playlist"); - - if (playlist == null) { - currentTimeSelectors[i].innerHTML = timeText; - } - } - } - } - - /** - * Updates any elements that display the current time for the song. This - * is a computed field that will be commonly used. - * - * @access public - * @param {object} time - A json object conaining the parts for the current time for the song. - */ - function syncSongInPlaylist(time) { - var activePlaylistIndex = _config2.default.active_playlist != "" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null; - /* - Get all of the time selectors. - */ - var currentTimeSelectors = document.querySelectorAll('.amplitude-current-time[data-amplitude-playlist="' + _config2.default.active_playlist + '"][data-amplitude-song-index="' + activePlaylistIndex + '"]'); - - /* - Set the time selector's inner html to the current time for the song. The current - time is computed by joining minutes and seconds. - */ - var timeText = time.minutes + ":" + time.seconds; - - if (time.hours > 0) { - timeText = time.hours + ":" + timeText; - } - - for (var i = 0; i < currentTimeSelectors.length; i++) { - currentTimeSelectors[i].innerHTML = timeText; - } - } - - /** - * Resets the current time displays to 00:00 - * - * @access public - */ - function resetTimes() { - /* - Gets the time selector display elements - */ - var timeSelectors = document.querySelectorAll(".amplitude-current-time"); - - /* - Iterates over all of the time selectors and sets the inner HTML - to 00. - */ - for (var i = 0; i < timeSelectors.length; i++) { - timeSelectors[i].innerHTML = "00:00"; - } - } - - /** - * Returns the publically facing methods - */ - return { - sync: sync, - resetTimes: resetTimes - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = CurrentTimeElements; -module.exports = exports["default"]; - -/***/ }), -/* 54 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the duration countdown elements. - * - * @module visual/time/DurationCountDownTimeElements. - */ -var DurationCountDownTimeElements = function () { - /** - * Syncs all of the countdown time elements. - * - * @param {object} countDownTime - The current time of the audio. - * @param {object} songDuration - The song duration of the audio. - */ - function sync(countDownTime, songDuration) { - var timeRemaining = computeTimeRemaining(countDownTime, songDuration); - - syncGlobal(timeRemaining); - syncPlaylist(timeRemaining); - syncSong(timeRemaining); - syncSongInPlaylist(timeRemaining); - } - - /** - * Syncs the global count down time elements. - * - * @param {string} timeRemaining - The time remaining for the audio. - */ - function syncGlobal(timeRemaining) { - var durationTimeRemainingSelectors = document.querySelectorAll(".amplitude-time-remaining"); - - for (var i = 0; i < durationTimeRemainingSelectors.length; i++) { - var playlist = durationTimeRemainingSelectors[i].getAttribute("data-amplitude-playlist"); - var songIndex = durationTimeRemainingSelectors[i].getAttribute("data-amplitude-song-index"); - - if (playlist == null && songIndex == null) { - durationTimeRemainingSelectors[i].innerHTML = timeRemaining; - } - } - } - - /** - * Syncs the playlist count down time elements. - * - * @param {string} timeRemaining - The time remaining for the audio. - */ - function syncPlaylist(timeRemaining) { - var durationTimeRemainingSelectors = document.querySelectorAll('.amplitude-time-remaining[data-amplitude-playlist="' + _config2.default.active_playlist + '"]'); - - for (var i = 0; i < durationTimeRemainingSelectors.length; i++) { - var songIndex = durationTimeRemainingSelectors[i].getAttribute("data-amplitude-song-index"); - - if (songIndex == null) { - durationTimeRemainingSelectors[i].innerHTML = timeRemaining; - } - } - } - - /** - * Syncs the song count down time elements. - * - * @param {string} timeRemaining - The time remaining for the audio. - */ - function syncSong(timeRemaining) { - if (_config2.default.active_playlist == null) { - var durationTimeRemainingSelectors = document.querySelectorAll('.amplitude-time-remaining[data-amplitude-song-index="' + _config2.default.active_index + '"]'); - - for (var i = 0; i < durationTimeRemainingSelectors.length; i++) { - var playlist = durationTimeRemainingSelectors[i].getAttribute("data-amplitude-playlist"); - - if (playlist == null) { - durationTimeRemainingSelectors[i].innerHTML = timeRemaining; - } - } - } - } - - /** - * Syncs the song in playlist count down time elements. - * - * @param {string} timeRemaining - The time remaining for the audio. - */ - function syncSongInPlaylist(timeRemaining) { - var activePlaylistIndex = _config2.default.active_playlist != "" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null; - - var durationTimeRemainingSelectors = document.querySelectorAll('.amplitude-time-remaining[data-amplitude-playlist="' + _config2.default.active_playlist + '"][data-amplitude-song-index="' + activePlaylistIndex + '"]'); - - for (var i = 0; i < durationTimeRemainingSelectors.length; i++) { - durationTimeRemainingSelectors[i].innerHTML = timeRemaining; - } - } - - /** - * Resets the count down times. - */ - function resetTimes() { - var durationTimeRemainingSelectors = document.querySelectorAll(".amplitude-time-remaining"); - - for (var i = 0; i < durationTimeRemainingSelectors.length; i++) { - durationTimeRemainingSelectors[i].innerHTML = "00"; - } - } - - /** - * Computes the time remaining for the audio. - * - * @param {object} currentTime - The current time of the audio. - * @param {object} songDuration - The duration of the audio. - */ - function computeTimeRemaining(currentTime, songDuration) { - var timeRemaining = "00:00"; - - /* - Initialize the total current seconds and total duration seconds - */ - var totalCurrentSeconds = parseInt(currentTime.seconds) + parseInt(currentTime.minutes) * 60 + parseInt(currentTime.hours) * 60 * 60; - var totalDurationSeconds = parseInt(songDuration.seconds) + parseInt(songDuration.minutes) * 60 + parseInt(songDuration.hours) * 60 * 60; - - /* - If the two variables are numbers we continue the computing. - */ - if (!isNaN(totalCurrentSeconds) && !isNaN(totalDurationSeconds)) { - /* - Find the total remaining seconds. - */ - var timeRemainingTotalSeconds = totalDurationSeconds - totalCurrentSeconds; - - var remainingHours = Math.floor(timeRemainingTotalSeconds / 3600); - var remainingMinutes = Math.floor((timeRemainingTotalSeconds - remainingHours * 3600) / 60); - var remainingSeconds = timeRemainingTotalSeconds - remainingHours * 3600 - remainingMinutes * 60; - - timeRemaining = (remainingMinutes < 10 ? "0" + remainingMinutes : remainingMinutes) + ":" + (remainingSeconds < 10 ? "0" + remainingSeconds : remainingSeconds); - - if (remainingHours > 0) { - timeRemaining = remainingHours + ":" + timeRemaining; - } - } - - return timeRemaining; - } - - /** - * Returns the publically facing methods. - */ - return { - sync: sync, - resetTimes: resetTimes - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = DurationCountDownTimeElements; -module.exports = exports["default"]; - -/***/ }), -/* 55 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the duration hours elements. - * - * @module visual/time/DurationHourElements. - */ -var DurationHourElements = function () { - /** - * Sync the duration hours elements. - * - * @param {Integer} hours - The duration hours for the audio. - */ - function sync(hours) { - syncGlobal(hours); - syncPlaylist(hours); - syncSong(hours); - syncSongInPlaylist(hours); - } - - /** - * Syncs the global duration hours elements. - * - * @param {Integer} hours - the duration hours for the audio. - */ - function syncGlobal(hours) { - var durationHourSelectors = document.querySelectorAll(".amplitude-duration-hours"); - - for (var i = 0; i < durationHourSelectors.length; i++) { - var playlist = durationHourSelectors[i].getAttribute("data-amplitude-playlist"); - var songIndex = durationHourSelectors[i].getAttribute("data-amplitude-song-index"); - - if (playlist == null && songIndex == null) { - durationHourSelectors[i].innerHTML = hours; - } - } - } - - /** - * Syncs the playlist duration hours for the audio. - * - * @param {Integer} hours - The duration hours for the audio. - */ - function syncPlaylist(hours) { - var durationHourSelectors = document.querySelectorAll('.amplitude-duration-hours[data-amplitude-playlist="' + _config2.default.active_playlist + '"]'); - - for (var i = 0; i < durationHourSelectors.length; i++) { - var songIndex = durationHourSelectors[i].getAttribute("data-amplitude-song-index"); - - if (songIndex == null) { - durationHourSelectors[i].innerHTML = hours; - } - } - } - - /** - * Syncs the song duration hours. - * - * @param {Integer} hours - The duration hours for the audio. - */ - function syncSong(hours) { - if (_config2.default.active_playlist == null) { - var durationHourSelectors = document.querySelectorAll('.amplitude-duration-hours[data-amplitude-song-index="' + _config2.default.active_index + '"]'); - - for (var i = 0; i < durationHourSelectors.length; i++) { - var playlist = durationHourSelectors[i].getAttribute("data-amplitude-playlist"); - - if (playlist == null) { - durationHourSelectors[i].innerHTML = hours; - } - } - } - } - - /** - * Syncs the song in playlist duration hours. - * - * @param {Integer} hours - The duration hours of the audio. - */ - function syncSongInPlaylist(hours) { - var activePlaylistIndex = _config2.default.active_playlist != "" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null; - - var durationHourSelectors = document.querySelectorAll('.amplitude-duration-hours[data-amplitude-playlist="' + _config2.default.active_playlist + '"][data-amplitude-song-index="' + activePlaylistIndex + '"]'); - - for (var i = 0; i < durationHourSelectors.length; i++) { - durationHourSelectors[i].innerHTML = hours; - } - } - - /** - * Resets the duration shours elements to '00' - */ - function resetTimes() { - var durationHourSelectors = document.querySelectorAll(".amplitude-duration-hours"); - - for (var i = 0; i < durationHourSelectors.length; i++) { - durationHourSelectors[i].innerHTML = "00"; - } - } - - /** - * Returns the publically facing methods. - */ - return { - sync: sync, - resetTimes: resetTimes - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = DurationHourElements; -module.exports = exports["default"]; - -/***/ }), -/* 56 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the duration minutes elements. - * - * @module visual/time/DurationMinuteElements. - */ -var DurationMinuteElements = function () { - /** - * Sync the duration minutes elements. - * - * @param {Integer} minutes - The duration minutes for the audio. - */ - function sync(minutes) { - syncGlobal(minutes); - syncPlaylist(minutes); - syncSong(minutes); - syncSongInPlaylist(minutes); - } - - /** - * Syncs the global duration minutes elements. - * - * @param {Integer} minutes - the duration minutes for the audio. - */ - function syncGlobal(minutes) { - var durationMinuteSelectors = document.querySelectorAll(".amplitude-duration-minutes"); - - for (var i = 0; i < durationMinuteSelectors.length; i++) { - var playlist = durationMinuteSelectors[i].getAttribute("data-amplitude-playlist"); - var songIndex = durationMinuteSelectors[i].getAttribute("data-amplitude-song-index"); - - if (playlist == null && songIndex == null) { - durationMinuteSelectors[i].innerHTML = minutes; - } - } - } - - /** - * Syncs the playlist duration minutes for the audio. - * - * @param {Integer} minutes - The duration minutes for the audio. - */ - function syncPlaylist(minutes) { - var durationMinuteSelectors = document.querySelectorAll('.amplitude-duration-minutes[data-amplitude-playlist="' + _config2.default.active_playlist + '"]'); - - for (var i = 0; i < durationMinuteSelectors.length; i++) { - var songIndex = durationMinuteSelectors[i].getAttribute("data-amplitude-song-index"); - - if (songIndex == null) { - durationMinuteSelectors[i].innerHTML = minutes; - } - } - } - - /** - * Syncs the song duration minutes. - * - * @param {Integer} minutes - The duration minutes for the audio. - */ - function syncSong(minutes) { - if (_config2.default.active_playlist == null) { - var durationMinuteSelectors = document.querySelectorAll('.amplitude-duration-minutes[data-amplitude-song-index="' + _config2.default.active_index + '"]'); - - for (var i = 0; i < durationMinuteSelectors.length; i++) { - var playlist = durationMinuteSelectors[i].getAttribute("data-amplitude-playlist"); - - if (playlist == null) { - durationMinuteSelectors[i].innerHTML = minutes; - } - } - } - } - - /** - * Syncs the song in playlist duration minutes. - * - * @param {Integer} minutes - The duration minutes of the audio. - */ - function syncSongInPlaylist(minutes) { - var activePlaylistIndex = _config2.default.active_playlist != "" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null; - - var durationMinuteSelectors = document.querySelectorAll('.amplitude-duration-minutes[data-amplitude-playlist="' + _config2.default.active_playlist + '"][data-amplitude-song-index="' + activePlaylistIndex + '"]'); - - for (var i = 0; i < durationMinuteSelectors.length; i++) { - durationMinuteSelectors[i].innerHTML = minutes; - } - } - - /** - * Resets the duration minutes elements to '00' - */ - function resetTimes() { - var durationMinuteSelectors = document.querySelectorAll(".amplitude-duration-minutes"); - - for (var i = 0; i < durationMinuteSelectors.length; i++) { - durationMinuteSelectors[i].innerHTML = "00"; - } - } - - /** - * Returns the publically facing methods. - */ - return { - sync: sync, - resetTimes: resetTimes - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = DurationMinuteElements; -module.exports = exports["default"]; - -/***/ }), -/* 57 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the duration seconds elements. - * - * @module visual/time/DurationSecondElements. - */ -var DurationSecondElements = function () { - /** - * Sync the duration seconds elements. - * - * @param {Integer} seconds - The duration seconds for the audio. - */ - function sync(seconds) { - syncGlobal(seconds); - syncPlaylist(seconds); - syncSong(seconds); - syncSongInPlaylist(seconds); - } - - /** - * Syncs the global duration seconds elements. - * - * @param {Integer} seconds - the duration seconds for the audio. - */ - function syncGlobal(seconds) { - var durationSecondSelectors = document.querySelectorAll(".amplitude-duration-seconds"); - - for (var i = 0; i < durationSecondSelectors.length; i++) { - var playlist = durationSecondSelectors[i].getAttribute("data-amplitude-playlist"); - var songIndex = durationSecondSelectors[i].getAttribute("data-amplitude-song-index"); - - if (playlist == null && songIndex == null) { - durationSecondSelectors[i].innerHTML = seconds; - } - } - } - - /** - * Syncs the playlist duration seconds for the audio. - * - * @param {Integer} seconds - The duration seconds for the audio. - */ - function syncPlaylist(seconds) { - var durationSecondSelectors = document.querySelectorAll('.amplitude-duration-seconds[data-amplitude-playlist="' + _config2.default.active_playlist + '"]'); - - for (var i = 0; i < durationSecondSelectors.length; i++) { - var songIndex = durationSecondSelectors[i].getAttribute("data-amplitude-song-index"); - - if (songIndex == null) { - durationSecondSelectors[i].innerHTML = seconds; - } - } - } - - /** - * Syncs the song duration seconds. - * - * @param {Integer} seconds - The duration seconds for the audio. - */ - function syncSong(seconds) { - if (_config2.default.active_playlist == null) { - var durationSecondSelectors = document.querySelectorAll('.amplitude-duration-seconds[data-amplitude-song-index="' + _config2.default.active_index + '"]'); - - for (var i = 0; i < durationSecondSelectors.length; i++) { - var playlist = durationSecondSelectors[i].getAttribute("data--amplitude-playlist"); - - if (playlist == null) { - durationSecondSelectors[i].innerHTML = seconds; - } - } - } - } - - /** - * Syncs the song in playlist duration seconds. - * - * @param {Integer} seconds - The duration seconds of the audio. - */ - function syncSongInPlaylist(seconds) { - var activePlaylistIndex = _config2.default.active_playlist != "" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null; - - var durationSecondSelectors = document.querySelectorAll('.amplitude-duration-seconds[data-amplitude-playlist="' + _config2.default.active_playlist + '"][data-amplitude-song-index="' + activePlaylistIndex + '"]'); - - for (var i = 0; i < durationSecondSelectors.length; i++) { - durationSecondSelectors[i].innerHTML = seconds; - } - } - - /** - * Resets the duration seconds elements to '00' - */ - function resetTimes() { - var durationSecondSelectors = document.querySelectorAll(".amplitude-duration-seconds"); - - for (var i = 0; i < durationSecondSelectors.length; i++) { - durationSecondSelectors[i].innerHTML = "00"; - } - } - - /** - * Returns the publically facing methods. - */ - return { - sync: sync, - resetTimes: resetTimes - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = DurationSecondElements; -module.exports = exports["default"]; - -/***/ }), -/* 58 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _config = __webpack_require__(0); - -var _config2 = _interopRequireDefault(_config); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Handles all of the duration time elements. - * - * @module visual/time/DurationTimeElements. - */ -var DurationTimeElements = function () { - /** - * Syncs the duration time for all elements. - * - * @param {Object} durationTime - The object containing all of the song duration times. - */ - function sync(durationTime) { - var durationText = computeDurationText(durationTime); - - syncGlobal(durationText); - syncPlaylist(durationText); - syncSong(durationText); - syncSongInPlaylist(durationText); - } - - /** - * Sync the global song duration elements. - * - * @param {Object} durationText - The text for the song duration. - */ - function syncGlobal(durationText) { - var durationTimeSelectors = document.querySelectorAll(".amplitude-duration-time"); - - for (var i = 0; i < durationTimeSelectors.length; i++) { - var playlist = durationTimeSelectors[i].getAttribute("data-amplitude-playlist"); - var songIndex = durationTimeSelectors[i].getAttribute("data-amplitude-song-index"); - - if (playlist == null && songIndex == null) { - durationTimeSelectors[i].innerHTML = durationText; - } - } - } - - /** - * Sync the playlist duration times. - * - * @param {Object} durationText - The text for the song duration. - */ - function syncPlaylist(durationText) { - var durationTimeSelectors = document.querySelectorAll('.amplitude-duration-time[data-amplitude-playlist="' + _config2.default.active_playlist + '"]'); - - for (var i = 0; i < durationTimeSelectors.length; i++) { - var songIndex = durationTimeSelectors[i].getAttribute("data-amplitude-song-index"); - - if (songIndex == null) { - durationTimeSelectors[i].innerHTML = durationText; - } - } - } - - /** - * Sync the song duration times. - * - * @param {Object} durationText - The text for the song duration. - */ - function syncSong(durationText) { - if (_config2.default.active_playlist == null) { - var durationTimeSelectors = document.querySelectorAll('.amplitude-duration-time[data-amplitude-song-index="' + _config2.default.active_index + '"]'); - - for (var i = 0; i < durationTimeSelectors.length; i++) { - var playlist = durationTimeSelectors[i].getAttribute("data-amplitude-playlist"); - - if (playlist == null) { - durationTimeSelectors[i].innerHTML = durationText; - } - } - } - } - - /** - * Sync the song in playlist duration times. - * - * @param {Object} durationText - An object containing the duration text. - */ - function syncSongInPlaylist(durationText) { - var activePlaylistIndex = _config2.default.active_playlist != "" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null; - - var durationTimeSelectors = document.querySelectorAll('.amplitude-duration-time[data-amplitude-playlist="' + _config2.default.active_playlist + '"][data-amplitude-song-index="' + activePlaylistIndex + '"]'); - - for (var i = 0; i < durationTimeSelectors.length; i++) { - durationTimeSelectors[i].innerHTML = durationText; - } - } - - /** - * Resets all of the duration times to empty. - */ - function resetTimes() { - var durationTimeSelectors = document.querySelectorAll(".amplitude-duration-time"); - - for (var i = 0; i < durationTimeSelectors.length; i++) { - durationTimeSelectors[i].innerHTML = "00:00"; - } - } - - /** - * Computes the duration text - * - * @param {Object} durationTime - An object containint the duration times. - */ - function computeDurationText(durationTime) { - var durationText = "00:00"; - - if (!isNaN(durationTime.minutes) && !isNaN(durationTime.seconds)) { - durationText = durationTime.minutes + ":" + durationTime.seconds; - if (!isNaN(durationTime.hours) && durationTime.hours > 0) { - durationText = durationTime.hours + ":" + durationText; - } - } - - return durationText; - } - - /** - * Return publically accessible methods. - */ - return { - sync: sync, - resetTimes: resetTimes - }; -}(); /** - * Imports the config module - * @module config - */ -exports.default = DurationTimeElements; -module.exports = exports["default"]; - -/***/ }), -/* 59 */ -/***/ (function(module, exports) { - -module.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"} - -/***/ }) -/******/ ]); -}); -//# sourceMappingURL=amplitude.js.map \ No newline at end of file +"use strict";var Hr=Object.defineProperty;var Vr=(h,e,l)=>e in h?Hr(h,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):h[e]=l;var r=(h,e,l)=>(Vr(h,typeof e!="symbol"?e+"":e,l),l),us=(h,e,l)=>{if(!e.has(h))throw TypeError("Cannot "+l)};var c=(h,e,l)=>(us(h,e,"read from private field"),l?l.call(h):e.get(h)),i=(h,e,l)=>{if(e.has(h))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(h):e.set(h,l)},u=(h,e,l,a)=>(us(h,e,"write to private field"),a?a.call(h,l):e.set(h,l),l);var t=(h,e,l)=>(us(h,e,"access private method"),l);const Fr="amplitudejs",jr="6.0.0",Or="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://serversideup.net/open-source/amplitudejs",Br="dist/amplitude.js",Kr={vite:"^3.0.0"},Yr={doc:"docs"},Rr=["dist"],$r={type:"opencollective",url:"https://opencollective.com/amplitudejs"},Wr={dev:"vite",build:"vite build",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"},Jr={type:"git",url:"git+https://github.com/521dimensions/amplitudejs.git"},Xr=["webaudio","html5","javascript","audio-player"],Zr="521 Dimensions (https://521dimensions.com)",Gr="MIT",eh={url:"https://github.com/521dimensions/amplitudejs/issues"},th="https://github.com/521dimensions/amplitudejs#readme",ih={name:Fr,version:jr,description:Or,main:Br,devDependencies:Kr,directories:Yr,files:Rr,funding:$r,scripts:Wr,repository:Jr,keywords:Xr,author:Zr,license:Gr,bugs:eh,homepage:th},n={audio_element:new Audio,mobile:!1,version:ih,active_metadata:{},active_album:"",active_index:0,active_podcast:null,active_playlist:null,active_collection:null,playback_speed:1,repeat:!1,shuffle_list:{},repeat_audio:!1,shuffle_on:!1,callbacks:[],audio:[],collections:[],debug:!0,default_artwork:"",default_playlist_art:"",start_audio:"",starting_playlist:"",starting_playlist_song:"",starting_podcast:"",starting_podcast_episode:"",volume:{current:50,increment:5,decrement:5,pre_mute_level:50},soundcloud:{client:"",use_art:!1,audio_count:0,ready_count:0},is_touch_moving:!1,buffered:0,bindings:{},continue_next:!0,delay:0,player_state:"stopped",time_format:"MM:SS",web_audio_api:{availabile:!1,context:null,source:null,analyser:null},visualizations:{available:[],active:[],backup:""},waveforms:{sample_rate:100,built:[]}};class y{static writeMessage(e){n.debug&&console.log(e)}}class o{setIsMobile(){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?n.mobile=!0:n.mobile=!1}static isIos(){return/iPhone|iPad|iPod/i.test(navigator.userAgent)}static isIE(){return window.navigator.userAgent.indexOf("MSIE ")>0||!!navigator.userAgent.match(/Trident.*rv\:11\./)}static isMobile(){return n.mobile}static isTouchMoving(){return n.is_touch_moving}static getAudioState(){return n.audio_element.paused?"paused":"playing"}static getScope(){return n.active_collection==""||n.active_collection==null?"audio":"collection"}static getVolume(){return n.volume.current}static getVolumeIncrement(){return n.volume.increment}static getVolumeDecrement(){return n.volume.decrement}static getPreMuteVolume(){return n.volume.pre_mute_level}static setPreMuteVolume(e=null){e||(e=n.volume.current),n.volume.pre_mute_level=e}static getPlaybackSpeed(){return n.playback_speed}static isCollectionShuffled(e){return!!(n.collections[e]&&n.collections[e].shuffled)}static setCollectionShuffled(e,l,a){n.collections[e].shuffled=l,n.collections[e].audio=a}static getCollectionAudio(e){return n.collections[e].audio}static getActiveCollection(){return n.active_collection}static getActiveAudioIndex(){return n.active_index}static getContinueNext(){return n.continue_next}static updateBufferedTime(){if(n.audio_element.buffered.length-1>=0){let e=n.audio_element.buffered.end(n.audio_element.buffered.length-1),l=n.audio_element.duration;n.buffered=e/l*100}}static getBufferedPercentage(){return parseFloat(n.buffered)/100}static isLive(){return n.active_metadata.live}static getTimeFormat(){return n.time_format}static getCallback(e){let l=!1;return n.callbacks.forEach(function(a){a.event==e&&(l=a)}),l}resetConfig(){n.audio_element=new Audio,n.active_metadata={},n.active_album="",n.active_index=0,n.active_playlist=null,n.playback_speed=1,n.audio=[],n.playlists={},n.start_audio="",n.starting_playlist="",n.starting_playlist_song="",n.repeat=!1,n.shuffle_list={},n.shuffle_on=!1,n.default_artwork="",n.default_playlist_art="",n.debug=!0,n.callbacks=[],n.volume={current:50,increment:5,decrement:5,pre_mute_level:50},n.soundcloud={client:"",use_art:!1,audio_count:0,ready_count:0},n.continue_next=!0}static setPlayerState(){n.audio_element.paused&&n.audio_element.currentTime==0&&(n.player_state="stopped"),n.audio_element.paused&&n.audio_element.currentTime>0&&(n.player_state="paused"),n.audio_element.paused||(n.player_state="playing")}}var sl;const Es=class{constructor(){i(this,sl,["abort","error","loadeddata","loadedmetadata","loadstart","pause","playing","play","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","canplay","canplaythrough","durationchange","ended"])}handleNativeAudioElementEvents(){c(this,sl).forEach(function(e){n.audio_element.addEventListener(e,function(){Es.run(e)})})}static run(e){let l=o.getCallback(e);if(l){y.writeMessage("Running Callback for event '"+l.event+"' with method '"+l.handler+"'");try{window[l.handler]()}catch(a){if(a.message=="CANCEL EVENT")throw a;y.writeMessage(a.message)}}}};let g=Es;sl=new WeakMap;var cl,Bs,Et,ds,ul,Ks,At,rs,dl,Ys,bt,hs,rl,Rs,hl,$s;class p{constructor(){i(this,cl);i(this,Et);i(this,ul);i(this,At);i(this,dl);i(this,bt);i(this,rl);i(this,hl)}play(){t(this,cl,Bs).call(this),t(this,ul,Ks).call(this),t(this,dl,Ys).call(this),o.setPlayerState()}pause(){t(this,Et,ds).call(this),t(this,bt,hs).call(this),t(this,At,rs).call(this),o.setPlayerState()}stop(){t(this,Et,ds).call(this),this.setCurrentTime(0),t(this,bt,hs).call(this),t(this,At,rs).call(this),o.setPlayerState(),g.run("stop")}skipToLocation(e){n.active_metadata.live||n.audio_element.addEventListener("canplaythrough",function(){n.audio_element.duration>=e&&e>0?n.audio_element.currentTime=e:y.writeMessage("Amplitude can't skip to a location greater than the duration of the audio or less than 0.")},{once:!0})}setVolume(e){t(this,rl,Rs).call(this,e),t(this,hl,$s).call(this,e)}setAudioLocation(e){n.active_metadata.live||(n.audio_element.currentTime=n.audio_element.duration*(e/100))}setPlaybackSpeed(e){n.playback_speed=e,n.audio_element.playbackRate=n.playback_speed}setCurrentTime(e){isFinite(e)&&(n.audio_element.currentTime=e)}}cl=new WeakSet,Bs=function(){},Et=new WeakSet,ds=function(){},ul=new WeakSet,Ks=function(){(n.active_metadata.live||o.isMobile()&&!n.paused)&&(n.audio_element.src=n.active_metadata.url,n.audio_element.load())},At=new WeakSet,rs=function(){n.active_metadata.live&&(n.audio_element.src="",n.audio_element.load())},dl=new WeakSet,Ys=function(){let e=n.audio_element.play();e!==void 0&&e.then(l=>{}).catch(l=>{}),n.audio_element.playbackRate=n.playback_speed},bt=new WeakSet,hs=function(){n.audio_element.pause(),n.paused=!0},rl=new WeakSet,Rs=function(e){e==0?n.audio_element.muted=!0:n.audio_element.muted=!1},hl=new WeakSet,$s=function(e){n.volume.current=e,n.audio_element.volume=e/100};var kt,xt,ml,Ws,pl,Js,Q,Te;const rt=class{constructor(){i(this,ml);i(this,pl);i(this,Q);i(this,kt,void 0);i(this,xt,void 0);u(this,xt,o.isMobile())}initialize(){t(this,ml,Ws).call(this),t(this,pl,Js).call(this)}static syncUI(){let e=o.getAudioState();document.querySelectorAll(rt.globalPlayPauseQuery).forEach(a=>{e=="playing"?m.setElementPlay(a):m.setElementPause(a)})}static syncToPause(){document.querySelectorAll(rt.globalPlayPauseQuery).forEach(l=>{m.setElementPause(l)})}};let ge=rt;kt=new WeakMap,xt=new WeakMap,ml=new WeakSet,Ws=function(){u(this,kt,document.querySelectorAll(rt.globalPlayPauseQuery))},pl=new WeakSet,Js=function(){c(this,kt).forEach(e=>{c(this,xt)?(e.removeEventListener("touchend",t(this,Q,Te)),e.addEventListener("touchend",t(this,Q,Te))):(e.removeEventListener("click",t(this,Q,Te)),e.addEventListener("click",t(this,Q,Te)))})},Q=new WeakSet,Te=function(){if(!o.isTouchMoving()){let e=new p;n.audio_element.paused?e.play():e.pause(),m.syncAll()}},r(ge,"globalPlayPauseQuery",".amplitude-play-pause:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])");class E{static collectionExists(e){return!!n.collections[e]}static collectionChanged(e){return n.active_collection!=e}static isCollectionShuffled(e){return!!n.collections[e].shuffle}}var Lt,It,fl,Xs,yl,Zs,z,we,vl,Gs,gl,ec;const ht=class{constructor(){i(this,fl);i(this,yl);i(this,z);i(this,vl);i(this,gl);i(this,Lt,void 0);i(this,It,void 0);u(this,It,o.isMobile())}initialize(){t(this,fl,Xs).call(this),t(this,yl,Zs).call(this)}static syncUI(){let e=o.getAudioState(),l=document.querySelectorAll(ht.collectionPlayPauseQuery),a=o.getActiveCollection();l.forEach(s=>{let d=s.getAttribute("data-amplitude-collection-key");e=="playing"&&a==d?m.setElementPlay(s):m.setElementPause(s)})}static syncToPause(){document.querySelectorAll(ht.collectionPlayPauseQuery).forEach(l=>{m.setElementPause(l)})}};let Ee=ht;Lt=new WeakMap,It=new WeakMap,fl=new WeakSet,Xs=function(){u(this,Lt,document.querySelectorAll(ht.collectionPlayPauseQuery))},yl=new WeakSet,Zs=function(){c(this,Lt).forEach(e=>{c(this,It)?(e.removeEventListener("touchend",t(this,z,we)),e.addEventListener("touchend",t(this,z,we).bind(this,e))):(e.removeEventListener("click",t(this,z,we)),e.addEventListener("click",t(this,z,we).bind(this,e)))})},z=new WeakSet,we=function(e){if(!o.isTouchMoving()){let l=e.getAttribute("data-amplitude-collection-key");if(!E.collectionExists(l))return y.writeMessage('Collection with key "'+l+'" does not exist! Please define this collection in your configuration.'),!1;t(this,vl,Gs).call(this,l),t(this,gl,ec).call(this),m.syncAll()}},vl=new WeakSet,Gs=function(e){if(E.collectionChanged(e)){let l=new v;l.setActiveCollection(e),E.isCollectionShuffled(e)?l.changeAudioCollection(e,n.collections[e].shuffle_list[0],0,!0):l.changeAudioCollection(e,n.collections[e].audio[0],0)}},gl=new WeakSet,ec=function(){let e=new p;n.audio_element.paused?e.play():e.pause()},r(Ee,"collectionPlayPauseQuery",".amplitude-play-pause[data-amplitude-collection-key]:not([data-amplitude-audio-index])");class Ie{static audioExists(e){return!!n.audio[e]}static audioChanged(e,l=null){return n.active_collection!=l?!0:n.active_collection==null&&l==null?n.active_index!=e:n.active_collection==collection&&n.collections[l].active_index!=e}}var El,Al,tc,bl,ic,kl,lc,xl,nc,U,Me;const me=class{constructor(){i(this,Al);i(this,bl);i(this,kl);i(this,xl);i(this,U);i(this,El,["cover_art_url","station_art_url","podcast_episode_cover_art_url","album_art_url"])}displayMetaData(){t(this,Al,tc).call(this),t(this,bl,ic).call(this)}displayCollectionMetaData(){}syncMetaData(){t(this,kl,lc).call(this),t(this,xl,nc).call(this),this.displayCollectionMetaData()}};let A=me;El=new WeakMap,Al=new WeakSet,tc=function(){document.querySelectorAll(me.globalMetaDataElementsQuery).forEach(l=>{let a=l.getAttribute("data-amplitude-audio-info"),s=n.active_metadata[a]!=null?n.active_metadata[a]:null;t(this,U,Me).call(this,a,s,l)})},bl=new WeakSet,ic=function(){document.querySelectorAll(me.collectionMetaDataElementsQuery).forEach(l=>{let a=l.getAttribute("data-amplitude-audio-info"),s=n.active_metadata[a]!=null?n.active_metadata[a]:null;t(this,U,Me).call(this,a,s,l)})},kl=new WeakSet,lc=function(){document.querySelectorAll(me.audioMetaDataElementsQuery).forEach(l=>{let a=l.getAttribute("data-amplitude-audio-info"),s=l.getAttribute("data-amplitude-audio-index"),d=n.audio[s][a]!=null?n.audio[s][a]:null;t(this,U,Me).call(this,a,d,l)})},xl=new WeakSet,nc=function(){document.querySelectorAll(me.collectionAudioMetaDataElementsQuery).forEach(l=>{let a=l.getAttribute("data-amplitude-audio-info"),s=l.getAttribute("data-amplitude-audio-index"),d=l.getAttribute("data-amplitude-collection-key"),f=n.collections[d].audio[s][info]!=null?n.collections[d].audio[s][info]:null;t(this,U,Me).call(this,a,f,l)})},U=new WeakSet,Me=function(e,l,a){c(this,El).indexOf(e)>=0?(l=l||n.default_art,a.setAttribute("src",l)):(l=l||"",a.innerHTML=l)},r(A,"globalMetaDataElementsQuery","[data-amplitude-audio-info]:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"),r(A,"collectionMetaDataElementsQuery","[data-amplitude-audio-info][data-amplitude-collection-key]:not([data-amplitude-audio-index])"),r(A,"audioMetaDataElementsQuery","[data-amplitude-audio-info][data-amplitude-audio-index]:not([data-amplitude-collection-key])"),r(A,"collectionAudioMetaDataElementsQuery","[data-amplitude-audio-info][data-amplitude-audio-index][data-amplitude-collection-key]"),r(A,"collectionInfoElementsQuery","[data-amplitude-collection-info]");var St,Tt,Ll,ac,Il,oc,Sl,sc,Tl,cc;const As=class{constructor(){i(this,Ll);i(this,Il);i(this,Sl);i(this,Tl);i(this,St,void 0);i(this,Tt,void 0)}setActive(){o.getScope()=="audio"&&(t(this,Ll,ac).call(this),t(this,Il,oc).call(this),t(this,Sl,sc).call(this),t(this,Tl,cc).call(this))}};let qi=As;St=new WeakMap,Tt=new WeakMap,Ll=new WeakSet,ac=function(){u(this,St,document.querySelectorAll(As.audioContainerElementQuery))},Il=new WeakSet,oc=function(){c(this,St).forEach(function(e){e.classList.remove("amplitude-active-audio-container")})},Sl=new WeakSet,sc=function(){u(this,Tt,n.active_index)},Tl=new WeakSet,cc=function(){document.querySelectorAll('.amplitude-audio-container[data-amplitude-audio-index="'+c(this,Tt)+'"]:not([data-amplitude-collection-key])').forEach(function(l){l.classList.add("amplitude-active-audio-container")})},r(qi,"audioContainerElementQuery",".amplitude-audio-container[data-amplitude-audio-index]:not([data-amplitude-collection-key])");var wt,Mt,q,b,wl,uc,Ml,dc,Cl,rc,_l,hc;const bs=class{constructor(e){i(this,wl);i(this,Ml);i(this,Cl);i(this,_l);i(this,wt,void 0);i(this,Mt,void 0);i(this,q,void 0);i(this,b,void 0);u(this,wt,e)}setActive(){o.getScope()=="collection"&&(t(this,wl,uc).call(this),t(this,Ml,dc).call(this),t(this,Cl,rc).call(this),t(this,_l,hc).call(this))}};let Ni=bs;wt=new WeakMap,Mt=new WeakMap,q=new WeakMap,b=new WeakMap,wl=new WeakSet,uc=function(){u(this,Mt,document.querySelectorAll(bs.collectionAudioContainerElementQuery))},Ml=new WeakSet,dc=function(){c(this,Mt).forEach(function(e){e.classList.remove("amplitude-active-audio-container")})},Cl=new WeakSet,rc=function(){u(this,b,o.getActiveCollection()),c(this,wt)?u(this,q,n.collections[c(this,b)].active_index):o.isCollectionShuffled(c(this,b))?u(this,q,n.collections[c(this,b)].shuffle_list[n.collections[c(this,b)].active_index].index):u(this,q,n.collections[c(this,b)].active_index)},_l=new WeakSet,hc=function(){document.querySelectorAll('.amplitude-audio-container[data-amplitude-audio-index="'+c(this,q)+'"][data-amplitude-collection-key="'+c(this,b)+'"]').forEach(function(l){l.classList.add("amplitude-active-audio-container")})},r(Ni,"collectionAudioContainerElementQuery",".amplitude-audio-container[data-amplitude-audio-index][data-amplitude-collection-key]");var Pl,pc,Ql,fc;class mc{constructor(){i(this,Pl);i(this,Ql)}setActiveContainers(e){t(this,Pl,pc).call(this),t(this,Ql,fc).call(this,e)}}Pl=new WeakSet,pc=function(){new qi().setActive()},Ql=new WeakSet,fc=function(e){new Ni(e).setActive()};var zl,yc,Ul,vc,ql,gc,Nl,Ec;class Se{constructor(){i(this,zl);i(this,Ul);i(this,ql);i(this,Nl)}changeAudio(e,l,a=!1){t(this,zl,yc).call(this,e),t(this,Ul,vc).call(this,e,l),t(this,ql,gc).call(this,a)}}zl=new WeakSet,yc=function(e){new p().stop(),m.syncAllToPause()},Ul=new WeakSet,vc=function(e,l){n.active_collection=null,n.audio_element.src=e.url,n.active_metadata=e,n.active_index=parseInt(l)},ql=new WeakSet,gc=function(e){t(this,Nl,Ec).call(this),new mc().setActiveContainers(e),g.run("audio_change")},Nl=new WeakSet,Ec=function(){new A().displayMetaData()};var Ct,_t,Dl,Ac,Hl,bc,N,Ce,Vl,kc,Fl,xc,jl,Lc;const mt=class{constructor(){i(this,Dl);i(this,Hl);i(this,N);i(this,Vl);i(this,Fl);i(this,jl);i(this,Ct,void 0);i(this,_t,void 0);u(this,_t,o.isMobile())}initialize(){t(this,Dl,Ac).call(this),t(this,Hl,bc).call(this)}static syncUI(){let e=o.getAudioState(),l=document.querySelectorAll(mt.audioPlayPauseQuery),a=o.getActiveAudioIndex();l.forEach(s=>{let d=s.getAttribute("data-amplitude-audio-index");e=="playing"&&a==d?m.setElementPlay(s):m.setElementPause(s)})}static syncToPause(){document.querySelectorAll(mt.audioPlayPauseQuery).forEach(l=>{m.setElementPause(l)})}};let Ae=mt;Ct=new WeakMap,_t=new WeakMap,Dl=new WeakSet,Ac=function(){u(this,Ct,document.querySelectorAll(mt.audioPlayPauseQuery))},Hl=new WeakSet,bc=function(){c(this,Ct).forEach(e=>{c(this,_t)?(e.removeEventListener("touchend",t(this,N,Ce)),e.addEventListener("touchend",t(this,N,Ce).bind(this,e))):(e.removeEventListener("click",t(this,N,Ce)),e.addEventListener("click",t(this,N,Ce).bind(this,e)))})},N=new WeakSet,Ce=function(e){if(!o.isTouchMoving()){let l=e.getAttribute("data-amplitude-audio-index");if(!Ie.audioExists(l))return y.writeMessage('Audio with index "'+l+'" does not exist! Please add an audio object at this index in your configuration.'),!1;t(this,Vl,kc).call(this,l),t(this,Fl,xc).call(this,l),t(this,jl,Lc).call(this),m.syncAll()}},Vl=new WeakSet,kc=function(e){if(E.collectionChanged(null)){let l=new v,a=new Se;l.setActiveCollection(null),a.changeAudio(n.audio[e],e,!0)}},Fl=new WeakSet,xc=function(e){Ie.audioChanged(e)&&new Se().changeAudio(n.audio[e],e,!0)},jl=new WeakSet,Lc=function(){let e=new p;n.audio_element.paused?e.play():e.pause()},r(Ae,"audioPlayPauseQuery",".amplitude-play-pause[data-amplitude-audio-index]:not([data-amplitude-collection-key])");var Pt,Qt,Ol,Ic,Bl,Sc,D,_e,Kl,Tc,Yl,wc,Rl,Mc;const pt=class{constructor(){i(this,Ol);i(this,Bl);i(this,D);i(this,Kl);i(this,Yl);i(this,Rl);i(this,Pt,void 0);i(this,Qt,void 0);u(this,Qt,o.isMobile())}initialize(){t(this,Ol,Ic).call(this),t(this,Bl,Sc).call(this)}static syncUI(){let e=o.getAudioState();document.querySelectorAll(pt.collectionAudioPlayPauseQuery).forEach(a=>{e=="playing"?m.setElementPlay(a):m.setElementPause(a)})}static syncToPause(){document.querySelectorAll(pt.collectionAudioPlayPauseQuery).forEach(l=>{m.setElementPause(l)})}};let be=pt;Pt=new WeakMap,Qt=new WeakMap,Ol=new WeakSet,Ic=function(){u(this,Pt,document.querySelectorAll(pt.collectionAudioPlayPauseQuery))},Bl=new WeakSet,Sc=function(){c(this,Pt).forEach(e=>{c(this,Qt)?(e.removeEventListener("touchend",t(this,D,_e)),e.addEventListener("touchend",t(this,D,_e).bind(this,e))):(e.removeEventListener("click",t(this,D,_e)),e.addEventListener("click",t(this,D,_e).bind(this,e)))})},D=new WeakSet,_e=function(e){if(!o.isTouchMoving()){let l=e.getAttribute("data-amplitude-collection-key"),a=e.getAttribute("data-amplitude-audio-index");t(this,Kl,Tc).call(this,l,a),t(this,Yl,wc).call(this,l,a),t(this,Rl,Mc).call(this),m.syncAll()}},Kl=new WeakSet,Tc=function(e,l){if(E.collectionChanged(e)){let a=new v;a.setActiveCollection(e),a.changeAudioCollection(e,n.collections[e].audio[l],l,!0)}},Yl=new WeakSet,wc=function(e,l){Ie.audioChanged(l,e)&&new v().changeAudioCollection(e,n.collections[e].audio[l],l,!0)},Rl=new WeakSet,Mc=function(){let e=new p;n.audio_element.paused?e.play():e.pause()},r(be,"collectionAudioPlayPauseQuery",".amplitude-play-pause[data-amplitude-audio-index][data-amplitude-collection-key]");var $l,Cc,Wl,_c,Jl,Pc,Xl,Qc;class m{constructor(){i(this,$l);i(this,Wl);i(this,Jl);i(this,Xl)}setUp(){t(this,$l,Cc).call(this),t(this,Wl,_c).call(this),t(this,Jl,Pc).call(this),t(this,Xl,Qc).call(this)}static syncAll(){ge.syncUI(),Ee.syncUI(),Ae.syncUI(),be.syncUI()}static syncAllToPause(){ge.syncToPause(),Ee.syncToPause(),Ae.syncToPause(),be.syncToPause()}static setElementPlay(e){e.classList.add("amplitude-playing"),e.classList.remove("amplitude-paused")}static setElementPause(e){e.classList.remove("amplitude-playing"),e.classList.add("amplitude-paused")}}$l=new WeakSet,Cc=function(){new ge().initialize()},Wl=new WeakSet,_c=function(){new Ee().initialize()},Jl=new WeakSet,Pc=function(){new Ae().initialize()},Xl=new WeakSet,Qc=function(){new be().initialize()};var Zl,zc,zt,ms,Gl,Uc,en,qc,tn,Nc,ln,Dc,nn,Hc,an,Vc,on,Fc,sn,jc,cn,Oc,un,Bc;class v{constructor(){i(this,Zl);i(this,zt);i(this,Gl);i(this,en);i(this,tn);i(this,ln);i(this,nn);i(this,an);i(this,on);i(this,sn);i(this,cn);i(this,un)}next(e=null,l=!1){e||(e=n.active_collection);let a=t(this,Zl,zc).call(this,e);this.setActiveCollection(e),this.changeCollectionAudio(e,a.audio,a.index),t(this,tn,Nc).call(this,a.end,l),m.syncAll(),g.run("next"),n.repeat_audio&&g.run("audio_repeated")}previous(e=null){e||(e=n.active_collection);let l=t(this,ln,Dc).call(this,e);this.setActiveCollection(e),this.changeCollectionAudio(e,l.audio,l.index),new p().play(),m.syncAll(),g.run("previous"),n.repeat_audio&&g.run("audio_repeated")}setActiveCollection(e){n.active_collection!=e&&(g.run("collection_changed"),n.active_collection=e,e!=null&&(n.collections[e].active_index=0))}changeAudioCollection(e,l,a,s){t(this,on,Fc).call(this,l),t(this,sn,jc).call(this,e,l,a),t(this,cn,Oc).call(this,s)}}Zl=new WeakSet,zc=function(e){return n.repeat_audio?t(this,zt,ms).call(this,e):n.collections[e].shuffle?t(this,Gl,Uc).call(this,e):t(this,en,qc).call(this,e)},zt=new WeakSet,ms=function(e){let l=n.collections[e].active_index;return{index:nextIndex,audio:n.collections[e].shuffle?n.collections[e].shuffle_list[l]:n.collections[e].audio[l],end:!1}},Gl=new WeakSet,Uc=function(e){let l=null,a=!1,s=n.collections[e].active_index,d=n.collections[e].shuffle_list.length;return parseInt(s+1)=0?l=parseInt(a-1):l=parseInt(s-1),{index:l,audio:n.collections[e].shuffleList[l]}},an=new WeakSet,Vc=function(e){let l=null,a=n.collections[e].active_index,s=n.collections[e].audio.length;return parseInt(a-1)>=0?l=parseInt(a-1):l=parseInt(s-1),{index:l,audio:n.collections[e].audio[l]}},on=new WeakSet,Fc=function(e){p.stop(),m.syncAllToPause()},sn=new WeakSet,jc=function(e,l,a){n.audio_element=l.url,n.active_metadata=l,n.active_index=null,n.collections[e].active_index=parseInt(a)},cn=new WeakSet,Oc=function(e){t(this,un,Bc).call(this),new mc().setActiveContainers(e),g.run("audio_change")},un=new WeakSet,Bc=function(){new A().displayMetaData()};var Ut,ps;class lh{constructor(){i(this,Ut)}bind(){n.audio_element.removeEventListener("ended",t(this,Ut,ps)),n.audio_element.addEventListener("ended",t(this,Ut,ps).bind(this))}}Ut=new WeakSet,ps=function(){setTimeout(function(){o.getScope()=="collection"&&o.getContinueNext()?new v().next(o.getActiveCollection(),!0):(new p().stop(),m.syncAll())},n.delay)};var dn,Kc,qt,fs,rn,Yc;class nh{constructor(){i(this,dn);i(this,qt);i(this,rn)}bind(){t(this,dn,Kc).call(this)}}dn=new WeakSet,Kc=function(){document.removeEventListener("keydown",t(this,qt,fs).bind(this)),document.addEventListener("keydown",t(this,qt,fs).bind(this))},qt=new WeakSet,fs=function(e){t(this,rn,Yc).call(this)||e.key},rn=new WeakSet,Yc=function(){let e=document.activeElement.tagName.toLowerCase();return["input","textarea","select","checkbox"].indexOf(e)>-1};const ks=class{static syncUI(){document.querySelectorAll(ks.globalBufferedProgressQuery).forEach(function(l){isNaN(n.buffered)||(l.value=parseFloat(o.getBufferedPercentage()))})}};let Di=ks;r(Di,"globalBufferedProgressQuery","progress.amplitude-buffered-progress:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])");class ah{static syncUI(){let e=o.getActiveCollection();document.querySelectorAll('progress.amplitude-buffered-progress[data-amplitude-collection-key="'+e+'"]:not([data-amplitude-audio-index])').forEach(function(a){isNaN(n.buffered)||(a.value=parseFloat(o.getBufferedPercentage()))})}}class Rc{static syncUI(){let e=o.getActiveAudioIndex();document.querySelectorAll('progress.amplitude-buffered-progress[data-amplitude-audio-index="'+e+'"]:not([data-amplitude-collection-key])').forEach(function(a){isNaN(n.buffered)||(a.value=parseFloat(o.getBufferedPercentage()))})}}r(Rc,"audioBufferedProgressQuery","progress.amplitude-buffered-progress[data-amplitude-audio-index]:not([data-amplitude-collection-key])");class oh{static syncAll(){Di.syncUI(),ah.syncUI(),Rc.syncUI()}}const xs=class{static syncUI(e){!isNaN(e)&&isFinite(e)&&document.querySelectorAll(xs.globalProgressQuery).forEach(a=>{let s=a.max;a.value=e/100*s})}};let Hi=xs;r(Hi,"globalProgressQuery","progress.amplitude-audio-played-progress:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])");const Ls=class{static syncUI(e){if(!isNaN(e)&&isFinite(e)){let l=document.querySelectorAll(Ls.collectionProgressQuery),a=o.getActiveCollection();l.forEach(s=>{let d=s.getAttribute("data-amplitude-collection-key"),f=s.max;a==d?s.value=e/100*f:s.value=0})}}};let Vi=Ls;r(Vi,"collectionProgressQuery","progress.amplitude-audio-played-progress[data-amplitude-collection-key]:not([data-amplitude-audio-index])");const Is=class{static syncUI(e){if(!isNaN(e)&&isFinite(e)){let l=document.querySelectorAll(Is.audioProgressQuery),a=o.getActiveAudioIndex();l.forEach(s=>{let d=s.getAttribute("data-amplitude-audio-index"),f=s.max;a==d?s.value=e/100*f:s.value=0})}}};let Fi=Is;r(Fi,"audioProgressQuery","progress.amplitude-audio-played-progress[data-amplitude-audio-index]:not([data-amplitude-collection-key])");const Ss=class{static syncUI(e){if(!isNaN(e)&&isFinite(e)){let l=document.querySelectorAll(Ss.collectionAudioProgressQuery),a=o.getActiveCollection(),s=o.getActiveAudioIndex();l.forEach(d=>{let f=d.getAttribute("data-amplitude-collection-key"),w=d.getAttribute("data-amplitude-audio-index"),Ui=d.max;a==f&&s==w?d.value=e/100*Ui:d.value=0})}}};let ji=Ss;r(ji,"collectionAudioProgressQuery","progress.amplitude-audio-played-progress[data-amplitude-collection-key][data-amplitude-audio-index]");class sh{constructor(){}static syncCurrentTime(e){Hi.syncUI(e),Vi.syncUI(e),Fi.syncUI(e),ji.syncUI(e)}}var hn,$c,mn,Wc,pn,Jc,fn,Xc,yn,Zc,vn,Gc;class zi{constructor(){i(this,hn);i(this,mn);i(this,pn);i(this,fn);i(this,yn);i(this,vn)}static percentageInSeconds(e){return n.audio_element.duration*(e/100)}computeCurrentTimes(){let e={};return e.seconds=t(this,hn,$c).call(this),e.minutes=t(this,mn,Wc).call(this),e.hours=t(this,pn,Jc).call(this),e}computeAudioCompletionPercentage(){return n.audio_element.currentTime/n.audio_element.duration*100}computeAudioDuration(){let e={};return e.seconds=t(this,fn,Xc).call(this),e.minutes=t(this,yn,Zc).call(this),e.hours=t(this,vn,Gc).call(this),e}}hn=new WeakSet,$c=function(){return(Math.floor(n.audio_element.currentTime%60)<10?"0":"")+Math.floor(n.audio_element.currentTime%60)},mn=new WeakSet,Wc=function(){let e=Math.floor(n.audio_element.currentTime/60);return e<10&&(e="0"+e),e},pn=new WeakSet,Jc=function(){let e=Math.floor(n.audio_element.currentTime/3600);return e<10&&(e="0"+e),e},fn=new WeakSet,Xc=function(){return(Math.floor(n.audio_element.duration%60)<10?"0":"")+Math.floor(n.audio_element.duration%60)},yn=new WeakSet,Zc=function(){let e=Math.floor(n.audio_element.duration/60);return e<10&&(e="0"+e),e},vn=new WeakSet,Gc=function(){let e=Math.floor(n.audio_element.duration/3600);return e<10&&(e="0"+e),e};var k,gn,eu,En,tu,An,iu,bn,lu;const pe=class{constructor(e){i(this,gn);i(this,En);i(this,An);i(this,bn);i(this,k,void 0);u(this,k,e)}sync(){t(this,gn,eu).call(this),t(this,En,tu).call(this),t(this,An,iu).call(this),t(this,bn,lu).call(this)}};let M=pe;k=new WeakMap,gn=new WeakSet,eu=function(){let e=o.getTimeFormat(),l=document.querySelectorAll(pe.globalFormattedTimeElementQuery),a=e.replace("HH",c(this,k).hours).replace("MM",c(this,k).minutes).replace("SS",c(this,k).seconds);l.forEach(s=>{s.innerHTML=a})},En=new WeakSet,tu=function(){document.querySelectorAll(pe.globalHoursTimeElementQuery).forEach(l=>{l.innerHTML=c(this,k).hours})},An=new WeakSet,iu=function(){document.querySelectorAll(pe.globalMinutesTimeElementQuery).forEach(l=>{l.innerHTML=c(this,k).minutes})},bn=new WeakSet,lu=function(){document.querySelectorAll(pe.globalSecondsTimeElementQuery).forEach(l=>{l.innerHTML=c(this,k).seconds})},r(M,"globalFormattedTimeElementQuery",".amplitude-current-time:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"),r(M,"globalHoursTimeElementQuery",".amplitude-current-hours:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"),r(M,"globalMinutesTimeElementQuery",".amplitude-current-minutes:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"),r(M,"globalSecondsTimeElementQuery",".amplitude-current-seconds:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])");var x,kn,nu,xn,au,Ln,ou,In,su;const fe=class{constructor(e){i(this,kn);i(this,xn);i(this,Ln);i(this,In);i(this,x,void 0);u(this,x,e)}sync(){t(this,kn,nu).call(this),t(this,xn,au).call(this),t(this,Ln,ou).call(this),t(this,In,su).call(this)}};let C=fe;x=new WeakMap,kn=new WeakSet,nu=function(){let e=o.getTimeFormat(),l=o.getActiveCollection(),a=document.querySelectorAll(fe.collectionFormattedTimeElementQuery),s=e.replace("HH",c(this,x).hours).replace("MM",c(this,x).minutes).replace("SS",c(this,x).seconds);a.forEach(d=>{let f=d.getAttribute("data-amplitude-collection-key");l==f?d.innerHTML=s:d.innerHTML="00:00"})},xn=new WeakSet,au=function(){let e=document.querySelectorAll(fe.collectionHoursTimeElementQuery),l=o.getActiveCollection();e.forEach(a=>{let s=a.getAttribute("data-amplitude-collection-key");l==s?a.innerHTML=c(this,x).hours:a.innerHTML="00"})},Ln=new WeakSet,ou=function(){let e=document.querySelectorAll(fe.collectionMinutesTimeElementQuery),l=o.getActiveCollection();e.forEach(a=>{let s=a.getAttribute("data-amplitude-collection-key");l==s?a.innerHTML=c(this,x).minutes:a.innerHTML="00"})},In=new WeakSet,su=function(){let e=document.querySelectorAll(fe.collectionSecondsTimeElementQuery),l=o.getActiveCollection();e.forEach(a=>{let s=a.getAttribute("data-amplitude-collection-key");l==s?a.innerHTML=c(this,x).seconds:a.innerHTML="00"})},r(C,"collectionFormattedTimeElementQuery",".amplitude-current-time[data-amplitude-collection-key]:not([data-amplitude-audio-index])"),r(C,"collectionHoursTimeElementQuery",".amplitude-current-hours[data-amplitude-collection-key]:not([data-amplitude-audio-index])"),r(C,"collectionMinutesTimeElementQuery",".amplitude-current-minutes[data-amplitude-collection-key]:not([data-amplitude-audio-index])"),r(C,"collectionSecondsTimeElementQuery",".amplitude-current-seconds[data-amplitude-collection-key]:not([data-amplitude-audio-index])");var L,Sn,cu,Tn,uu,wn,du,Mn,ru;const ye=class{constructor(e){i(this,Sn);i(this,Tn);i(this,wn);i(this,Mn);i(this,L,void 0);u(this,L,e)}sync(){t(this,Sn,cu).call(this),t(this,Tn,uu).call(this),t(this,wn,du).call(this),t(this,Mn,ru).call(this)}};let _=ye;L=new WeakMap,Sn=new WeakSet,cu=function(){let e=o.getTimeFormat(),l=o.getActiveAudioIndex(),a=document.querySelectorAll(ye.audioFormattedTimeElementQuery),s=e.replace("HH",c(this,L).hours).replace("MM",c(this,L).minutes).replace("SS",c(this,L).seconds);a.forEach(d=>{let f=d.getAttribute("data-amplitude-audio-index");l==f?d.innerHTML=s:d.innerHTML="00:00"})},Tn=new WeakSet,uu=function(){let e=document.querySelectorAll(ye.audioHoursTimeElementQuery),l=o.getActiveAudioIndex();e.forEach(a=>{let s=a.getAttribute("data-amplitude-audio-index");l==s?a.innerHTML=c(this,L).hours:a.innerHTML="00"})},wn=new WeakSet,du=function(){let e=document.querySelectorAll(ye.audioMinutesTimeElementQuery),l=o.getActiveAudioIndex();e.forEach(a=>{let s=a.getAttribute("data-amplitude-audio-index");l==s?a.innerHTML=c(this,L).minutes:a.innerHTML="00"})},Mn=new WeakSet,ru=function(){let e=document.querySelectorAll(ye.audioSecondsTimeElementQuery),l=o.getActiveAudioIndex();e.forEach(a=>{let s=a.getAttribute("data-amplitude-audio-index");l==s?a.innerHTML=c(this,L).seconds:a.innerHTML="00"})},r(_,"audioFormattedTimeElementQuery",".amplitude-current-time[data-amplitude-audio-index]:not([data-amplitude-collection-key])"),r(_,"audioHoursTimeElementQuery",".amplitude-current-hours[data-amplitude-audio-index]:not([data-amplitude-collection-key])"),r(_,"audioMinutesTimeElementQuery",".amplitude-current-minutes[data-amplitude-audio-index]:not([data-amplitude-collection-key])"),r(_,"audioSecondsTimeElementQuery",".amplitude-current-seconds[data-amplitude-audio-index]:not([data-amplitude-collection-key])");var I,Cn,hu,_n,mu,Pn,pu,Qn,fu;const ve=class{constructor(e){i(this,Cn);i(this,_n);i(this,Pn);i(this,Qn);i(this,I,void 0);u(this,I,e)}sync(){t(this,Cn,hu).call(this),t(this,_n,mu).call(this),t(this,Pn,pu).call(this),t(this,Qn,fu).call(this)}};let P=ve;I=new WeakMap,Cn=new WeakSet,hu=function(){let e=o.getTimeFormat(),l=o.getActiveCollection(),a=o.getActiveAudioIndex(),s=document.querySelectorAll(ve.collectionAudioFormattedTimeElementQuery),d=e.replace("HH",c(this,I).hours).replace("MM",c(this,I).minutes).replace("SS",c(this,I).seconds);s.forEach(f=>{let w=f.getAttribute("data-amplitude-collection-key"),Ui=f.getAttribute("data-amplitude-audio-index");l==w&&a==Ui?f.innerHTML=d:f.innerHTML="00:00"})},_n=new WeakSet,mu=function(){let e=document.querySelectorAll(ve.collectionAudioHoursTimeElementQuery),l=o.getActiveCollection(),a=o.getActiveAudioIndex();e.forEach(s=>{let d=s.getAttribute("data-amplitude-collection-key"),f=s.getAttribute("data-amplitude-audio-index");l==d&&a==f?s.innerHTML=c(this,I).hours:s.innerHTML="00"})},Pn=new WeakSet,pu=function(){let e=document.querySelectorAll(ve.collectionAudioMinutesTimeElementQuery),l=o.getActiveCollection(),a=o.getActiveAudioIndex();e.forEach(s=>{let d=s.getAttribute("data-amplitude-collection-key"),f=s.getAttribute("data-amplitude-audio-index");l==d&&a==f?s.innerHTML=c(this,I).minutes:s.innerHTML="00"})},Qn=new WeakSet,fu=function(){let e=document.querySelectorAll(ve.collectionAudioSecondsTimeElementQuery),l=o.getActiveCollection(),a=o.getActiveAudioIndex();e.forEach(s=>{let d=s.getAttribute("data-amplitude-collection-key"),f=s.getAttribute("data-amplitude-audio-index");l==d&&a==f?s.innerHTML=c(this,I).seconds:s.innerHTML="00"})},r(P,"collectionAudioFormattedTimeElementQuery",".amplitude-current-time[data-amplitude-collection-key][data-amplitude-audio-index]"),r(P,"collectionAudioHoursTimeElementQuery",".amplitude-current-hours[data-amplitude-collection-key][data-amplitude-audio-index]"),r(P,"collectionAudioMinutesTimeElementQuery",".amplitude-current-minutes[data-amplitude-collection-key][data-amplitude-audio-index]"),r(P,"collectionAudioSecondsTimeElementQuery",".amplitude-current-seconds[data-amplitude-collection-key][data-amplitude-audio-index]");class ch{syncCurrentTime(e){new M(e).sync(),new C(e).sync(),new _(e).sync(),new P(e).sync()}syncDurationTime(){}resetDurationTime(){}}var Nt,Dt,zn,yu,Un,vu,H,Pe;const qn=class{constructor(){i(this,zn);i(this,Un);i(this,H);i(this,Nt,void 0);i(this,Dt,void 0);u(this,Dt,o.isIE())}initialize(){t(this,zn,yu).call(this),t(this,Un,vu).call(this)}static syncUI(e){document.querySelectorAll(qn.globalTrackerQuery).forEach(a=>{a.value=e})}};let at=qn;Nt=new WeakMap,Dt=new WeakMap,zn=new WeakSet,yu=function(){u(this,Nt,document.querySelectorAll(qn.globalTrackerQuery))},Un=new WeakSet,vu=function(){c(this,Nt).forEach(e=>{c(this,Dt)?(e.removeEventListener("change",t(this,H,Pe)),e.addEventListener("change",t(this,H,Pe).bind(this,e))):(e.removeEventListener("input",t(this,H,Pe)),e.addEventListener("input",t(this,H,Pe).bind(this,e)))})},H=new WeakSet,Pe=function(e){if(!o.isLive()){let l=e.value,a=zi.percentageInSeconds(l);new p().setCurrentTime(a)}},r(at,"globalTrackerQuery",'input[type="range"].amplitude-audio-tracker:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])');var Ht,Vt,Nn,gu,Dn,Eu,V,Qe;const Hn=class{constructor(){i(this,Nn);i(this,Dn);i(this,V);i(this,Ht,void 0);i(this,Vt,void 0);u(this,Vt,o.isIE())}initialize(){t(this,Nn,gu).call(this),t(this,Dn,Eu).call(this)}static syncUI(e){let l=document.querySelectorAll(Hn.collectionTrackerQuery),a=o.getActiveCollection();l.forEach(s=>{let d=s.getAttribute("data-amplitude-collection-key");a==d?s.value=e:s.value=0})}};let ot=Hn;Ht=new WeakMap,Vt=new WeakMap,Nn=new WeakSet,gu=function(){u(this,Ht,document.querySelectorAll(Hn.collectionTrackerQuery))},Dn=new WeakSet,Eu=function(){c(this,Ht).forEach(e=>{c(this,Vt)?(e.removeEventListener("change",t(this,V,Qe)),e.addEventListener("change",t(this,V,Qe).bind(this,e))):(e.removeEventListener("input",t(this,V,Qe)),e.addEventListener("input",t(this,V,Qe).bind(this,e)))})},V=new WeakSet,Qe=function(e){if(!o.isLive()){let l=o.getActiveCollection(),a=e.getAttribute("data-amplitude-collection-key");if(l==a){let s=e.value,d=zi.percentageInSeconds(s);new p().setCurrentTime(d)}}},r(ot,"collectionTrackerQuery",'input[type="range"].amplitude-audio-tracker[data-amplitude-collection-key]:not([data-amplitude-audio-index])');var Ft,jt,Vn,Au,Fn,bu,F,ze;const jn=class{constructor(){i(this,Vn);i(this,Fn);i(this,F);i(this,Ft,void 0);i(this,jt,void 0);u(this,jt,o.isIE())}initialize(){t(this,Vn,Au).call(this),t(this,Fn,bu).call(this)}static syncUI(e){let l=document.querySelectorAll(jn.audioTrackerQuery),a=o.getActiveAudioIndex();l.forEach(s=>{let d=s.getAttribute("data-amplitude-audio-index");a==d?s.value=e:s.value=0})}};let st=jn;Ft=new WeakMap,jt=new WeakMap,Vn=new WeakSet,Au=function(){u(this,Ft,document.querySelectorAll(jn.audioTrackerQuery))},Fn=new WeakSet,bu=function(){c(this,Ft).forEach(e=>{c(this,jt)?(e.removeEventListener("change",t(this,F,ze)),e.addEventListener("change",t(this,F,ze).bind(this,e))):(e.removeEventListener("input",t(this,F,ze)),e.addEventListener("input",t(this,F,ze).bind(this,e)))})},F=new WeakSet,ze=function(e){if(!o.isLive()){let l=o.getActiveAudioIndex(),a=e.getAttribute("data-amplitude-audio-index");if(l==a){let s=e.value,d=zi.percentageInSeconds(s);new p().setCurrentTime(d)}}},r(st,"audioTrackerQuery",'input[type="range"].amplitude-audio-tracker[data-amplitude-audio-index]:not([data-amplitude-collection-key])');var Ot,Bt,On,ku,Bn,xu,j,Ue;const Kn=class{constructor(){i(this,On);i(this,Bn);i(this,j);i(this,Ot,void 0);i(this,Bt,void 0);u(this,Bt,o.isIE())}initialize(){t(this,On,ku).call(this),t(this,Bn,xu).call(this)}static syncUI(e){let l=document.querySelectorAll(Kn.collectionAudioTrackerQuery),a=o.getActiveCollection(),s=o.getActiveAudioIndex();l.forEach(d=>{let f=d.getAttribute("data-amplitude-collection-key"),w=d.getAttribute("data-amplitude-audio-index");a==f&&s==w?d.value=e:d.value=0})}};let ct=Kn;Ot=new WeakMap,Bt=new WeakMap,On=new WeakSet,ku=function(){u(this,Ot,document.querySelectorAll(Kn.collectionAudioTrackerQuery))},Bn=new WeakSet,xu=function(){c(this,Ot).forEach(e=>{c(this,Bt)?(e.removeEventListener("change",t(this,j,Ue)),e.addEventListener("change",t(this,j,Ue).bind(this,e))):(e.removeEventListener("input",t(this,j,Ue)),e.addEventListener("input",t(this,j,Ue).bind(this,e)))})},j=new WeakSet,Ue=function(e){if(!o.isLive()){let l=o.getActiveCollection(),a=e.getAttribute("data-amplitude-collection-key"),s=o.getActiveAudioIndex(),d=e.getAttribute("data-amplitude-audio-index");if(l==a&&s==d){let f=e.value,w=zi.percentageInSeconds(f);new p().setCurrentTime(w)}}},r(ct,"collectionAudioTrackerQuery",'input[type="range"].amplitude-audio-tracker[data-amplitude-collection-key][data-amplitude-audio-index]');var Yn,Iu,Rn,Su,$n,Tu,Wn,wu;class Lu{constructor(){i(this,Yn);i(this,Rn);i(this,$n);i(this,Wn)}setUp(){t(this,Yn,Iu).call(this),t(this,Rn,Su).call(this),t(this,$n,Tu).call(this),t(this,Wn,wu).call(this)}static syncCurrentTime(e){at.syncUI(e),ot.syncUI(e),st.syncUI(e),ct.syncUI(e)}}Yn=new WeakSet,Iu=function(){new at().initialize()},Rn=new WeakSet,Su=function(){new ot().initialize()},$n=new WeakSet,Tu=function(){new st().initialize()},Wn=new WeakSet,wu=function(){new ct().initialize()};var Jn,Mu,Xn,Cu,O,qe,Zn,_u,Gn,Pu;class uh{constructor(){i(this,Jn);i(this,Xn);i(this,O);i(this,Zn);i(this,Gn)}bind(){t(this,Jn,Mu).call(this),t(this,Xn,Cu).call(this)}}Jn=new WeakSet,Mu=function(){n.audio_element.removeEventListener("timeupdate",t(this,O,qe).bind(this)),n.audio_element.addEventListener("timeupdate",t(this,O,qe).bind(this))},Xn=new WeakSet,Cu=function(){n.audio_element.removeEventListener("durationchange",t(this,O,qe).bind(this)),n.audio_element.addEventListener("durationchange",t(this,O,qe).bind(this))},O=new WeakSet,qe=function(){o.updateBufferedTime(),oh.syncAll(),t(this,Zn,_u).call(this),t(this,Gn,Pu).call(this)},Zn=new WeakSet,_u=function(){if(!o.isLive()){let e=new zi,l=e.computeCurrentTimes(),a=e.computeAudioCompletionPercentage(),s=e.computeAudioDuration(),d=new ch;d.syncCurrentTime(l),d.syncDurationTime(l,s),Lu.syncCurrentTime(a),sh.syncCurrentTime(a)}},Gn=new WeakSet,Pu=function(){};var ea,Qu,ta,zu,ia,Uu,la,qu,vs,rh,na,Nu;class dh{constructor(){i(this,ea);i(this,ta);i(this,ia);i(this,la);i(this,vs);i(this,na)}initializeAllEvents(){y.writeMessage("Starting initialization of event handlers..."),t(this,ea,Qu).call(this),t(this,ta,zu).call(this),t(this,ia,Uu).call(this),t(this,la,qu).call(this),t(this,na,Nu).call(this)}}ea=new WeakSet,Qu=function(){document.addEventListener("touchmove",()=>{n.is_touch_moving=!0}),document.addEventListener("touchend",()=>{n.is_touch_moving||(n.is_touch_moving=!1)})},ta=new WeakSet,zu=function(){new uh().bind()},ia=new WeakSet,Uu=function(){new nh().bind()},la=new WeakSet,qu=function(){new lh().bind()},vs=new WeakSet,rh=function(){new ProgressEvent().bind()},na=new WeakSet,Nu=function(){};var Kt,Yt,aa,Du,oa,Hu,B,Ne;const Ts=class{constructor(){i(this,aa);i(this,oa);i(this,B);i(this,Kt,void 0);i(this,Yt,void 0);u(this,Yt,o.isMobile())}initialize(){t(this,aa,Du).call(this),t(this,oa,Hu).call(this)}};let Oi=Ts;Kt=new WeakMap,Yt=new WeakMap,aa=new WeakSet,Du=function(){u(this,Kt,document.querySelectorAll(Ts.collectionNextQuery))},oa=new WeakSet,Hu=function(){c(this,Kt).forEach(e=>{c(this,Yt)?(e.removeEventListener("touchend",t(this,B,Ne)),e.addEventListener("touchend",t(this,B,Ne))):(e.removeEventListener("click",t(this,B,Ne)),e.addEventListener("click",t(this,B,Ne)))})},B=new WeakSet,Ne=function(){let e=this.getAttribute("data-amplitude-collection-key");e==n.active_collection?new v().next(e):y.writeMessage("You can not go to the next audio on a playlist that is not being played!")},r(Oi,"collectionNextQuery",".amplitude-next[data-amplitude-collection-key]");var Rt,$t,sa,Vu,ca,Fu,K,De;const ws=class{constructor(){i(this,sa);i(this,ca);i(this,K);i(this,Rt,void 0);i(this,$t,void 0);u(this,$t,o.isMobile())}initialize(){t(this,sa,Vu).call(this),t(this,ca,Fu).call(this)}};let Bi=ws;Rt=new WeakMap,$t=new WeakMap,sa=new WeakSet,Vu=function(){u(this,Rt,document.querySelectorAll(ws.globalNextQuery))},ca=new WeakSet,Fu=function(){c(this,Rt).forEach(e=>{c(this,$t)?(e.removeEventListener("touchend",t(this,K,De)),e.addEventListener("touchend",t(this,K,De))):(e.removeEventListener("click",t(this,K,De)),e.addEventListener("click",t(this,K,De)))})},K=new WeakSet,De=function(){o.getScope()=="collection"?new v().next():y.writeMessage("You can only navigate next when you are playing a collection.")},r(Bi,"globalNextQuery",".amplitude-next:not([data-amplitude-collection-key])");var ua,ju,da,Ou;class hh{constructor(){i(this,ua);i(this,da)}setUp(){t(this,ua,ju).call(this),t(this,da,Ou).call(this)}}ua=new WeakSet,ju=function(){new Bi().initialize()},da=new WeakSet,Ou=function(){new Oi().initialize()};var Wt,Jt,ra,Bu,ha,Ku,Y,He;const ft=class{constructor(){i(this,ra);i(this,ha);i(this,Y);i(this,Wt,void 0);i(this,Jt,void 0);u(this,Jt,o.isIE())}setUp(){t(this,ra,Bu).call(this),t(this,ha,Ku).call(this)}static syncElements(){document.querySelectorAll(ft.volumeSliderElementQuery).forEach(function(l){l.value=o.getVolume()})}};let he=ft;Wt=new WeakMap,Jt=new WeakMap,ra=new WeakSet,Bu=function(){u(this,Wt,document.querySelectorAll(ft.volumeSliderElementQuery))},ha=new WeakSet,Ku=function(){o.isIos()?Debug.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"):c(this,Wt).forEach(e=>{c(this,Jt)?(e.removeEventListener("change",t(this,Y,He)),e.addEventListener("change",t(this,Y,He))):(e.removeEventListener("input",t(this,Y,He)),e.addEventListener("input",t(this,Y,He)))})},Y=new WeakSet,He=function(){new p().setVolume(this.value),T.syncElements(),ft.syncElements()},r(he,"volumeSliderElementQuery",'input[type="range"].amplitude-volume-slider');var Xt,Zt,ma,Yu,pa,Ru,R,Ve;const yt=class{constructor(){i(this,ma);i(this,pa);i(this,R);i(this,Xt,void 0);i(this,Zt,void 0);u(this,Zt,o.isMobile())}setUp(){t(this,ma,Yu).call(this),t(this,pa,Ru).call(this)}static syncElements(){document.querySelectorAll(yt.muteElementQuery).forEach(function(l){o.getVolume()==0?(l.classList.remove("amplitude-not-muted"),l.classList.add("amplitude-muted")):(l.classList.add("amplitude-not-muted"),l.classList.remove("amplitude-muted"))})}};let T=yt;Xt=new WeakMap,Zt=new WeakMap,ma=new WeakSet,Yu=function(){u(this,Xt,document.querySelectorAll(yt.muteElementQuery))},pa=new WeakSet,Ru=function(){o.isIos()?y.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"):c(this,Xt).forEach(e=>{c(this,Zt)?(e.removeEventListener("touchend",t(this,R,Ve)),e.addEventListener("touchend",t(this,R,Ve))):(e.removeEventListener("click",t(this,R,Ve)),e.addEventListener("click",t(this,R,Ve)))})},R=new WeakSet,Ve=function(){if(!o.isTouchMoving()){let e=new p;o.getVolume()==0?e.setVolume(o.getPreMuteVolume()):(o.setPreMuteVolume(),e.setVolume(0)),yt.syncElements(),he.syncElements()}},r(T,"muteElementQuery",".amplitude-mute");var Gt,ei,fa,$u,ya,Wu,$,Fe;const Ms=class{constructor(){i(this,fa);i(this,ya);i(this,$);i(this,Gt,void 0);i(this,ei,void 0);u(this,ei,o.isMobile())}initialize(){t(this,fa,$u).call(this),t(this,ya,Wu).call(this)}};let Ki=Ms;Gt=new WeakMap,ei=new WeakMap,fa=new WeakSet,$u=function(){u(this,Gt,document.querySelectorAll(Ms.globalPauseQuery))},ya=new WeakSet,Wu=function(){c(this,Gt).forEach(e=>{c(this,ei)?(e.removeEventListener("touchend",t(this,$,Fe)),e.addEventListener("touchend",t(this,$,Fe))):(e.removeEventListener("click",t(this,$,Fe)),e.addEventListener("click",t(this,$,Fe)))})},$=new WeakSet,Fe=function(){o.isTouchMoving()||(new p().pause(),m.syncAll())},r(Ki,"globalPauseQuery",".amplitude-pause:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])");var ti,ii,va,Ju,ga,Xu,W,je;const Cs=class{constructor(){i(this,va);i(this,ga);i(this,W);i(this,ti,void 0);i(this,ii,void 0);u(this,ii,o.isMobile())}initialize(){t(this,va,Ju).call(this),t(this,ga,Xu).call(this)}};let Yi=Cs;ti=new WeakMap,ii=new WeakMap,va=new WeakSet,Ju=function(){u(this,ti,document.querySelectorAll(Cs.collectionPauseQuery))},ga=new WeakSet,Xu=function(){c(this,ti).forEach(e=>{c(this,ii)?(e.removeEventListener("touchend",t(this,W,je)),e.addEventListener("touchend",t(this,W,je))):(e.removeEventListener("click",t(this,W,je)),e.addEventListener("click",t(this,W,je)))})},W=new WeakSet,je=function(){if(!o.isTouchMoving()){let e=this.getAttribute("data-amplitude-collection-key");config.active_collection==e&&(new p().pause(),m.syncAll())}},r(Yi,"collectionPauseQuery",".amplitude-pause[data-amplitude-collection-key]:not([data-amplitude-audio-index])");var li,ni,Ea,Zu,Aa,Gu,J,Oe;const _s=class{constructor(){i(this,Ea);i(this,Aa);i(this,J);i(this,li,void 0);i(this,ni,void 0);u(this,ni,o.isMobile())}initialize(){t(this,Ea,Zu).call(this),t(this,Aa,Gu).call(this)}};let Ri=_s;li=new WeakMap,ni=new WeakMap,Ea=new WeakSet,Zu=function(){u(this,li,document.querySelectorAll(_s.audioPauseQuery))},Aa=new WeakSet,Gu=function(){c(this,li).forEach(e=>{c(this,ni)?(e.removeEventListener("touchend",t(this,J,Oe)),e.addEventListener("touchend",t(this,J,Oe))):(e.removeEventListener("click",t(this,J,Oe)),e.addEventListener("click",t(this,J,Oe)))})},J=new WeakSet,Oe=function(){if(!o.isTouchMoving()){let e=this.getAttribute("data-amplitude-audio-index");o.getScope()=="audio"&&n.active_index==e&&(new p().pause(),m.syncAll())}},r(Ri,"audioPauseQuery",".amplitude-pause[data-amplitude-audio-index]:not([data-amplitude-collection-key])");var ai,oi,ba,ed,ka,td,X,Be;const Ps=class{constructor(){i(this,ba);i(this,ka);i(this,X);i(this,ai,void 0);i(this,oi,void 0);u(this,oi,o.isMobile())}initialize(){t(this,ba,ed).call(this),t(this,ka,td).call(this)}};let $i=Ps;ai=new WeakMap,oi=new WeakMap,ba=new WeakSet,ed=function(){u(this,ai,document.querySelectorAll(Ps.collectionAudioPauseQuery))},ka=new WeakSet,td=function(){c(this,ai).forEach(e=>{c(this,oi)?(e.removeEventListener("touchend",t(this,X,Be)),e.addEventListener("touchend",t(this,X,Be).bind(this,e))):(e.removeEventListener("click",t(this,X,Be)),e.addEventListener("click",t(this,X,Be).bind(this,e)))})},X=new WeakSet,Be=function(){if(!o.isTouchMoving()){let e=element.getAttribute("data-amplitude-collection-key"),l=element.getAttribute("data-amplitude-audio-index");n.active_collection==e&&n.collections[e].active_index==l&&(new p().pause(),m.syncAll())}},r($i,"collectionAudioPauseQuery",".amplitude-pause[data-amplitude-collection-key][data-amplitude-audio-index]");var xa,id,La,ld,Ia,nd,Sa,ad;class mh{constructor(){i(this,xa);i(this,La);i(this,Ia);i(this,Sa)}setUp(){t(this,xa,id).call(this),t(this,La,ld).call(this),t(this,Ia,nd).call(this),t(this,Sa,ad).call(this)}}xa=new WeakSet,id=function(){new Ki().initialize()},La=new WeakSet,ld=function(){new Yi().initialize()},Ia=new WeakSet,nd=function(){new Ri().initialize()},Sa=new WeakSet,ad=function(){new $i().initialize()};var si,ci,Ta,od,wa,sd,Z,Ke;const Qs=class{constructor(){i(this,Ta);i(this,wa);i(this,Z);i(this,si,void 0);i(this,ci,void 0);u(this,ci,o.isMobile())}initialize(){t(this,Ta,od).call(this),t(this,wa,sd).call(this)}};let Wi=Qs;si=new WeakMap,ci=new WeakMap,Ta=new WeakSet,od=function(){u(this,si,document.querySelectorAll(Qs.globalPlayQuery))},wa=new WeakSet,sd=function(){c(this,si).forEach(e=>{c(this,ci)?(e.removeEventListener("touchend",t(this,Z,Ke)),e.addEventListener("touchend",t(this,Z,Ke))):(e.removeEventListener("click",t(this,Z,Ke)),e.addEventListener("click",t(this,Z,Ke)))})},Z=new WeakSet,Ke=function(){new p().play(),m.syncAll()},r(Wi,"globalPlayQuery",".amplitude-play:not([data-amplitude-audio-index]):not([data-amplitude-collection-index])");var ui,di,Ma,cd,Ca,ud,G,Ye,_a,dd,Pa,rd;const zs=class{constructor(){i(this,Ma);i(this,Ca);i(this,G);i(this,_a);i(this,Pa);i(this,ui,void 0);i(this,di,void 0);u(this,di,o.isMobile())}initialize(){t(this,Ma,cd).call(this),t(this,Ca,ud).call(this)}};let Ji=zs;ui=new WeakMap,di=new WeakMap,Ma=new WeakSet,cd=function(){u(this,ui,document.querySelectorAll(zs.collectionPlayQuery))},Ca=new WeakSet,ud=function(){c(this,ui).forEach(e=>{c(this,di)?(e.removeEventListener("touchend",t(this,G,Ye)),e.addEventListener("touchend",t(this,G,Ye))):(e.removeEventListener("click",t(this,G,Ye)),e.addEventListener("click",t(this,G,Ye)))})},G=new WeakSet,Ye=function(){if(!o.isTouchMoving()){let e=this.getAttribute("data-amplitude-collection-key");if(!E.collectionExists(e))return y.writeMessage('Collection with key "'+e+'" does not exist! Please define this collection in your configuration.'),!1;t(this,_a,dd).call(this,e),t(this,Pa,rd).call(this),m.syncAll()}},_a=new WeakSet,dd=function(e){if(E.collectionChanged(e)){let l=new v;l.setActiveCollection(e),E.isCollectionShuffled(e)?l.changeAudioCollection(e,n.collections[e].shuffle_list[0],0,!0):l.changeAudioCollection(e,n.collections[e].audio[0],0)}},Pa=new WeakSet,rd=function(){new p().play()},r(Ji,"collectionPlayQuery",".amplitude-play[data-amplitude-collection-key]:not([data-amplitude-audio-index])");var ri,hi,Qa,hd,za,md,ee,Re,Ua,pd,qa,fd,Na,yd;const Us=class{constructor(){i(this,Qa);i(this,za);i(this,ee);i(this,Ua);i(this,qa);i(this,Na);i(this,ri,void 0);i(this,hi,void 0);u(this,hi,o.isMobile())}initialize(){t(this,Qa,hd).call(this),t(this,za,md).call(this)}};let Xi=Us;ri=new WeakMap,hi=new WeakMap,Qa=new WeakSet,hd=function(){u(this,ri,document.querySelectorAll(Us.audioPlayQuery))},za=new WeakSet,md=function(){c(this,ri).forEach(e=>{c(this,hi)?(e.removeEventListener("touchend",t(this,ee,Re)),e.addEventListener("touchend",t(this,ee,Re).bind(this,e))):(e.removeEventListener("click",t(this,ee,Re)),e.addEventListener("click",t(this,ee,Re).bind(this,e)))})},ee=new WeakSet,Re=function(e){if(!o.isTouchMoving()){let l=e.getAttribute("data-amplitude-audio-index");if(!Ie.audioExists(l))return y.writeMessage('Audio with index "'+l+'" does not exist! Please add an audio object at this index in your configuration.'),!1;t(this,Ua,pd).call(this,l),t(this,qa,fd).call(this,l),t(this,Na,yd).call(this),m.syncAll()}},Ua=new WeakSet,pd=function(e){if(E.collectionChanged(null)){let l=new v,a=new Se;l.setActiveCollection(null),a.changeAudio(n.audio[e],e,!0)}},qa=new WeakSet,fd=function(e){Ie.audioChanged(e)&&new Se().changeAudio(n.audio[e],e,!0)},Na=new WeakSet,yd=function(){new p().play()},r(Xi,"audioPlayQuery",".amplitude-play[data-amplitude-audio-index]:not([data-amplitude-collection-key])");var mi,pi,Da,vd,Ha,gd,te,$e,Va,Ed,Fa,Ad,ja,bd;const qs=class{constructor(){i(this,Da);i(this,Ha);i(this,te);i(this,Va);i(this,Fa);i(this,ja);i(this,mi,void 0);i(this,pi,void 0);u(this,pi,o.isMobile())}initialize(){t(this,Da,vd).call(this),t(this,Ha,gd).call(this)}};let Zi=qs;mi=new WeakMap,pi=new WeakMap,Da=new WeakSet,vd=function(){u(this,mi,document.querySelectorAll(qs.collectionAudioPlayQuery))},Ha=new WeakSet,gd=function(){c(this,mi).forEach(e=>{c(this,pi)?(e.removeEventListener("touchend",t(this,te,$e)),e.addEventListener("touchend",t(this,te,$e))):(e.removeEventListener("click",t(this,te,$e)),e.addEventListener("click",t(this,te,$e)))})},te=new WeakSet,$e=function(){if(!o.isTouchMoving()){let e=this.getAttribute("data-amplitude-collection-key"),l=this.getAttribute("data-amplitude-audio-index");t(this,Va,Ed).call(this,e,l),t(this,Fa,Ad).call(this,e,l),t(this,ja,bd).call(this),m.syncAll()}},Va=new WeakSet,Ed=function(e,l){if(E.collectionChanged(e)){let a=new v;a.setActiveCollection(e),a.changeAudioCollection(e,n.collections[e].audio[l],l,!0)}},Fa=new WeakSet,Ad=function(e,l){Ie.audioChanged(l,e)&&new v().changeAudioCollection(e,n.collections[e].audio[l],l,!0)},ja=new WeakSet,bd=function(){new p().play()},r(Zi,"collectionAudioPlayQuery",".amplitude-play[data-amplitude-audio-index][data-amplitude-collection-key]");var Oa,kd,Ba,xd,Ka,Ld,Ya,Id;class ph{constructor(){i(this,Oa);i(this,Ba);i(this,Ka);i(this,Ya)}setUp(){t(this,Oa,kd).call(this),t(this,Ba,xd).call(this),t(this,Ka,Ld).call(this),t(this,Ya,Id).call(this)}}Oa=new WeakSet,kd=function(){new Wi().initialize()},Ba=new WeakSet,xd=function(){new Ji().initialize()},Ka=new WeakSet,Ld=function(){new Xi().initialize()},Ya=new WeakSet,Id=function(){new Zi().initialize()};var fi,yi,Ra,Sd,$a,Td,ie,We;const vt=class{constructor(){i(this,Ra);i(this,$a);i(this,ie);i(this,fi,void 0);i(this,yi,void 0);u(this,yi,o.isMobile())}setUp(){t(this,Ra,Sd).call(this),t(this,$a,Td).call(this)}static syncElements(){document.querySelectorAll(vt.playbackSpeedElementQuery).forEach(function(l){switch(l.classList.remove("amplitude-playback-speed-10"),l.classList.remove("amplitude-playback-speed-15"),l.classList.remove("amplitude-playback-speed-20"),o.getPlaybackSpeed()){case 1:l.classList.add("amplitude-playback-speed-10");break;case 1.5:l.classList.add("amplitude-playback-speed-15");break;case 2:l.classList.add("amplitude-playback-speed-20");break}})}};let ut=vt;fi=new WeakMap,yi=new WeakMap,Ra=new WeakSet,Sd=function(){u(this,fi,document.querySelectorAll(vt.playbackSpeedElementQuery))},$a=new WeakSet,Td=function(){c(this,fi).forEach(e=>{c(this,yi)?(e.removeEventListener("touchend",t(this,ie,We)),e.addEventListener("touchend",t(this,ie,We))):(e.removeEventListener("click",t(this,ie,We)),e.addEventListener("click",t(this,ie,We)))})},ie=new WeakSet,We=function(){if(!o.isTouchMoving()){let e=new p;switch(o.getPlaybackSpeed()){case 1:e.setPlaybackSpeed(1.5);break;case 1.5:e.setPlaybackSpeed(2);break;case 2:e.setPlaybackSpeed(1);break}vt.syncElements()}},r(ut,"playbackSpeedElementQuery",".amplitude-playback-speed");var vi,gi,Wa,wd,Ja,Md,le,Je;const Ns=class{constructor(){i(this,Wa);i(this,Ja);i(this,le);i(this,vi,void 0);i(this,gi,void 0);u(this,gi,o.isMobile())}initialize(){t(this,Wa,wd).call(this),t(this,Ja,Md).call(this)}};let Gi=Ns;vi=new WeakMap,gi=new WeakMap,Wa=new WeakSet,wd=function(){u(this,vi,document.querySelectorAll(Ns.collectionPreviousQuery))},Ja=new WeakSet,Md=function(){c(this,vi).forEach(e=>{c(this,gi)?(e.removeEventListener("touchend",t(this,le,Je)),e.addEventListener("touchend",t(this,le,Je))):(e.removeEventListener("click",t(this,le,Je)),e.addEventListener("click",t(this,le,Je)))})},le=new WeakSet,Je=function(){o.isTouchMoving()||(this.getAttribute("data-amplitude-collection-key")==config.active_collection?new v().previous():y.writeMessage("You can not go to the previous audio on a playlist that is not being played!"))},r(Gi,"collectionPreviousQuery",".amplitude-previous[data-amplitude-collection-key]");var Ei,Ai,Xa,Cd,Za,_d,ne,Xe;const Ds=class{constructor(){i(this,Xa);i(this,Za);i(this,ne);i(this,Ei,void 0);i(this,Ai,void 0);u(this,Ai,o.isMobile())}initialize(){t(this,Xa,Cd).call(this),t(this,Za,_d).call(this)}};let el=Ds;Ei=new WeakMap,Ai=new WeakMap,Xa=new WeakSet,Cd=function(){u(this,Ei,document.querySelectorAll(Ds.globalPreviousQuery))},Za=new WeakSet,_d=function(){c(this,Ei).forEach(e=>{c(this,Ai)?(e.removeEventListener("touchend",t(this,ne,Xe)),e.addEventListener("touchend",t(this,ne,Xe))):(e.removeEventListener("click",t(this,ne,Xe)),e.addEventListener("click",t(this,ne,Xe)))})},ne=new WeakSet,Xe=function(){o.isTouchMoving()||(o.getScope()=="collection"?new v().previous():y.writeMessage("You can only navigate previous when you are playing a collection."))},r(el,"globalPreviousQuery",".amplitude-previous:not([data-amplitude-collection-key])");var Ga,Pd,eo,Qd;class fh{constructor(){i(this,Ga);i(this,eo)}setUp(){t(this,Ga,Pd).call(this),t(this,eo,Qd).call(this)}}Ga=new WeakSet,Pd=function(){new el().initialize()},eo=new WeakSet,Qd=function(){new Gi().initialize()};var to,io,Ud,lo,qd;class zd{constructor(e){i(this,io);i(this,lo);i(this,to,void 0);u(this,to,e)}toggleShuffle(e){if(o.isCollectionShuffled(e))o.setCollectionShuffled(e,!1,[]);else{let a=t(this,io,Ud).call(this,e);o.setCollectionShuffled(e,!0,a)}}}to=new WeakMap,io=new WeakSet,Ud=function(e){let l=o.getCollectionAudio(e),a=new Array(l.length);l.forEach((s,d)=>{a[d]=s[d]});for(let s=l.length-1;s>0;s--){let d=Math.floor(Math.random()*l.length+1);t(this,lo,qd).call(this,a,s,d-1)}return a},lo=new WeakSet,qd=function(e,l,a){let s=e[l];e[l]=e[a],e[a]=s};var bi,ki,no,Nd,ao,Dd,ae,Ze;const oo=class{constructor(){i(this,no);i(this,ao);i(this,ae);i(this,bi,void 0);i(this,ki,void 0);u(this,ki,o.isMobile())}initialize(){t(this,no,Nd).call(this),t(this,ao,Dd).call(this)}static syncUI(e){document.querySelectorAll('.amplitude-shuffle[data-amplitude-collection="'+e+'"]').forEach(a=>{o.isCollectionShuffled(e)?(a.classList.add("amplitude-shuffle-on"),a.classList.remove("amplitude-shuffle-off")):(a.classList.add("amplitude-shuffle-off"),a.classList.remove("amplitude-shuffle-on"))})}};let dt=oo;bi=new WeakMap,ki=new WeakMap,no=new WeakSet,Nd=function(){u(this,bi,document.querySelectorAll(oo.collectionShuffleQuery))},ao=new WeakSet,Dd=function(){c(this,bi).forEach(e=>{c(this,ki)?(e.removeEventListener("touchend",t(this,ae,Ze)),e.addEventListener("touchend",t(this,ae,Ze))):(e.removeEventListener("click",t(this,ae,Ze)),e.addEventListener("click",t(this,ae,Ze)))})},ae=new WeakSet,Ze=function(){let e=this.getAttribute("data-amplitude-collection-key");new zd(e).toggleShuffle(),oo.syncUI(e)},r(dt,"collectionShuffleQuery",".amplitude-shuffle[data-amplitude-collection-key]");var xi,Li,so,Hd,co,Vd,oe,Ge;const gt=class{constructor(){i(this,so);i(this,co);i(this,oe);i(this,xi,void 0);i(this,Li,void 0);u(this,Li,o.isMobile())}initialize(){t(this,so,Hd).call(this),t(this,co,Vd).call(this)}static syncUI(){let e=document.querySelectorAll(gt.globalShuffleQuery),l=o.getActiveCollection();e.forEach(a=>{o.isCollectionShuffled(l)?(a.classList.add("amplitude-shuffle-on"),a.classList.remove("amplitude-shuffle-off")):(a.classList.add("amplitude-shuffle-off"),a.classList.remove("amplitude-shuffle-on"))})}};let tl=gt;xi=new WeakMap,Li=new WeakMap,so=new WeakSet,Hd=function(){u(this,xi,document.querySelectorAll(gt.globalShuffleQuery))},co=new WeakSet,Vd=function(){c(this,xi).forEach(e=>{c(this,Li)?(e.removeEventListener("touchend",t(this,oe,Ge)),e.addEventListener("touchend",t(this,oe,Ge))):(e.removeEventListener("click",t(this,oe,Ge)),e.addEventListener("click",t(this,oe,Ge)))})},oe=new WeakSet,Ge=function(){if(o.getScope()=="collection"){let e=o.getActiveCollection();new zd(collectionKey).toggleShuffle(),gt.syncUI(),dt.syncUI(e)}else y.writeMessage("You can only shuffle a collection if you are playing a collection.")},r(tl,"globalShuffleQuery",".amplitude-shuffle:not([data-amplitude-collection-key])");var uo,Fd,ro,jd;class yh{constructor(){i(this,uo);i(this,ro)}setUp(){t(this,uo,Fd).call(this),t(this,ro,jd).call(this)}}uo=new WeakSet,Fd=function(){new tl().initialize()},ro=new WeakSet,jd=function(){new dt().initialize()};var Ii,Si,ho,Od,mo,Bd,se,et,po,Kd,fo,Yd,yo,Rd,vo,$d;const Hs=class{constructor(){i(this,ho);i(this,mo);i(this,se);i(this,po);i(this,fo);i(this,yo);i(this,vo);i(this,Ii,void 0);i(this,Si,void 0);u(this,Si,o.isMobile())}initialize(){t(this,ho,Od).call(this),t(this,mo,Bd).call(this)}};let il=Hs;Ii=new WeakMap,Si=new WeakMap,ho=new WeakSet,Od=function(){u(this,Ii,document.querySelectorAll(Hs.audioSkipToElementQuery))},mo=new WeakSet,Bd=function(){c(this,Ii).forEach(e=>{c(this,Si)?(e.removeEventListener("touchend",t(this,se,et)),e.addEventListener("touchend",t(this,se,et).bind(this,e))):(e.removeEventListener("click",t(this,se,et)),e.addEventListener("click",t(this,se,et).bind(this,e)))})},se=new WeakSet,et=function(e){if(!o.isTouchMoving()){let l=e.getAttribute("data-amplitude-audio-index"),a=e.getAttribute("data-amplitude-location");t(this,po,Kd).call(this,l,a)&&(t(this,fo,Yd).call(this,l),t(this,yo,Rd).call(this),m.syncAll(),t(this,vo,$d).call(this,a))}},po=new WeakSet,Kd=function(e,l){return e==null?(y.writeMessage("You must add a `data-amplitude-audio-index` attribute to your `amplitude-skip-to` element."),!1):l==null?(y.writeMessage("You must add a `data-amplitude-location` attribute in seconds to your `amplitude-skip-to` element."),!1):!0},fo=new WeakSet,Yd=function(e){new Se().changeAudio(n.audio[parseInt(e)],parseInt(e),!0)},yo=new WeakSet,Rd=function(){new p().play()},vo=new WeakSet,$d=function(e){new p().skipToLocation(parseInt(e))},r(il,"audioSkipToElementQuery",".amplitude-skip-to[data-amplitude-audio-index]:not([data-amplitude-collection-key])");var Ti,wi,go,Wd,Eo,Jd,ce,tt,Ao,Xd,bo,Zd,ko,Gd,xo,er,Lo,tr;const Vs=class{constructor(){i(this,go);i(this,Eo);i(this,ce);i(this,Ao);i(this,bo);i(this,ko);i(this,xo);i(this,Lo);i(this,Ti,void 0);i(this,wi,void 0);u(this,wi,o.isMobile())}initialize(){t(this,go,Wd).call(this),t(this,Eo,Jd).call(this)}};let ll=Vs;Ti=new WeakMap,wi=new WeakMap,go=new WeakSet,Wd=function(){u(this,Ti,document.querySelectorAll(Vs.collectionAudioSkipToElementQuery))},Eo=new WeakSet,Jd=function(){c(this,Ti).forEach(e=>{c(this,wi)?(e.removeEventListener("touchend",t(this,ce,tt)),e.addEventListener("touchend",t(this,ce,tt).bind(this,e))):(e.removeEventListener("click",t(this,ce,tt)),e.addEventListener("click",t(this,ce,tt).bind(this,e)))})},ce=new WeakSet,tt=function(e){if(!o.isTouchMoving()){let l=e.getAttribute("data-amplitude-audio-index"),a=e.getAttribute("data-amplitude-collection-key"),s=e.getAttribute("data-amplitude-location");t(this,Ao,Xd).call(this,l,a,s)&&(t(this,bo,Zd).call(this,a),t(this,ko,Gd).call(this,l,a),t(this,xo,er).call(this),m.syncAll(),t(this,Lo,tr).call(this,s))}},Ao=new WeakSet,Xd=function(e,l,a){return e==null?(Debug.writeMessage("You must add a `data-amplitude-audio-index` attribute to your `amplitude-skip-to` element."),!1):l==null?(Debug.writeMessage("You must add a valid `data-amplitude-collection-key` attribute to your `amplitude-skip-to` element."),!1):a==null?(Debug.writeMessage("You must add a `data-amplitude-location` attribute in seconds to your `amplitude-skip-to` element."),!1):!0},bo=new WeakSet,Zd=function(e){E.collectionChanged(e)&&new v().setActiveCollection(e)},ko=new WeakSet,Gd=function(e,l){new v().changeAudioCollection(l,config.collections[l].audio[parseInt(e)],parseInt(e),!0)},xo=new WeakSet,er=function(){new p().play()},Lo=new WeakSet,tr=function(e){new p().skipToLocation(parseInt(e))},r(ll,"collectionAudioSkipToElementQuery",".amplitude-skip-to[data-amplitude-audio-index][data-amplitude-collection-key]");var Io,ir,So,lr;class vh{constructor(){i(this,Io);i(this,So)}setUp(){t(this,Io,ir).call(this),t(this,So,lr).call(this)}}Io=new WeakSet,ir=function(){new il().initialize()},So=new WeakSet,lr=function(){new ll().initialize()};var Mi,Ci,To,nr,wo,ar,ue,it;const Fs=class{constructor(){i(this,To);i(this,wo);i(this,ue);i(this,Mi,void 0);i(this,Ci,void 0);u(this,Ci,o.isMobile())}setUp(){t(this,To,nr).call(this),t(this,wo,ar).call(this)}};let nl=Fs;Mi=new WeakMap,Ci=new WeakMap,To=new WeakSet,nr=function(){u(this,Mi,document.querySelectorAll(Fs.stopElementQuery))},wo=new WeakSet,ar=function(){c(this,Mi).forEach(e=>{c(this,Ci)?(e.removeEventListener("touchend",t(this,ue,it)),e.addEventListener("touchend",t(this,ue,it))):(e.removeEventListener("click",t(this,ue,it)),e.addEventListener("click",t(this,ue,it)))})},ue=new WeakSet,it=function(){o.isTouchMoving()||(new p().stop(),m.syncAll())},r(nl,"stopElementQuery",".amplitude-stop");var ke,_i,Mo,or,Co,sr,de,lt;const js=class{constructor(){i(this,Mo);i(this,Co);i(this,de);i(this,ke,void 0);i(this,_i,void 0);u(this,_i,o.isMobile())}setUp(){t(this,Mo,or).call(this),t(this,Co,sr).call(this)}};let al=js;ke=new WeakMap,_i=new WeakMap,Mo=new WeakSet,or=function(){u(this,ke,document.querySelectorAll(js.volumeDownElementQuery))},Co=new WeakSet,sr=function(){c(this,ke).length>0&&o.isIos()?y.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"):c(this,ke).forEach(e=>{c(this,_i)?(e.removeEventListener("touchend",t(this,de,lt)),e.addEventListener("touchend",t(this,de,lt))):(e.removeEventListener("click",t(this,de,lt)),e.addEventListener("click",t(this,de,lt)))})},de=new WeakSet,lt=function(){if(!o.isTouchMoving()){let e=new p,l=o.getVolume(),a=o.getVolumeDecrement();l-a>0?e.setVolume(l-a):e.setVolume(0),T.syncElements(),he.syncElements()}},r(al,"volumeDownElementQuery",".amplitude-volume-down");var xe,Pi,_o,cr,Po,ur,re,nt;const Os=class{constructor(){i(this,_o);i(this,Po);i(this,re);i(this,xe,void 0);i(this,Pi,void 0);u(this,Pi,o.isMobile())}setUp(){t(this,_o,cr).call(this),t(this,Po,ur).call(this)}};let ol=Os;xe=new WeakMap,Pi=new WeakMap,_o=new WeakSet,cr=function(){u(this,xe,document.querySelectorAll(Os.volumeUpElementQuery))},Po=new WeakSet,ur=function(){c(this,xe).length>0&&o.isIos()?y.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"):c(this,xe).forEach(e=>{c(this,Pi)?(e.removeEventListener("touchend",t(this,re,nt)),e.addEventListener("touchend",t(this,re,nt))):(e.removeEventListener("click",t(this,re,nt)),e.addEventListener("click",t(this,re,nt)))})},re=new WeakSet,nt=function(){if(!o.isTouchMoving()){let e=new p,l=o.getVolume(),a=o.getVolumeIncrement();l+a<=100?e.setVolume(l+a):e.setVolume(100),T.syncElements(),he.syncElements()}},r(ol,"volumeUpElementQuery",".amplitude-volume-up");var Qo,dr,zo,rr,Uo,hr,qo,mr,No,pr,Do,fr,Ho,yr,Vo,vr,Fo,gr,jo,Er,Oo,Ar,Bo,br,Ko,kr,Yo,xr,Ro,Lr;class gh{constructor(){i(this,Qo);i(this,zo);i(this,Uo);i(this,qo);i(this,No);i(this,Do);i(this,Ho);i(this,Vo);i(this,Fo);i(this,jo);i(this,Oo);i(this,Bo);i(this,Ko);i(this,Yo);i(this,Ro)}setVisualElementsDefaults(){}initializeElements(){t(this,Qo,dr).call(this),t(this,zo,rr).call(this),t(this,Uo,hr).call(this),t(this,qo,mr).call(this),t(this,No,pr).call(this),t(this,Do,fr).call(this),t(this,Ho,yr).call(this),t(this,Vo,vr).call(this),t(this,Fo,gr).call(this),t(this,jo,Er).call(this),t(this,Oo,Ar).call(this),t(this,Bo,br).call(this),t(this,Ko,kr).call(this),t(this,Yo,xr).call(this),t(this,Ro,Lr).call(this)}}Qo=new WeakSet,dr=function(){new A().syncMetaData()},zo=new WeakSet,rr=function(){new ph().setUp()},Uo=new WeakSet,hr=function(){new mh().setUp()},qo=new WeakSet,mr=function(){new m().setUp()},No=new WeakSet,pr=function(){new hh().setUp()},Do=new WeakSet,fr=function(){new fh().setUp()},Ho=new WeakSet,yr=function(){new T().setUp()},Vo=new WeakSet,vr=function(){new he().setUp()},Fo=new WeakSet,gr=function(){new ut().setUp()},jo=new WeakSet,Er=function(){new nl().setUp()},Oo=new WeakSet,Ar=function(){new al().setUp()},Bo=new WeakSet,br=function(){new ol().setUp()},Ko=new WeakSet,kr=function(){new yh().setUp()},Yo=new WeakSet,xr=function(){new vh().setUp()},Ro=new WeakSet,Lr=function(){new Lu().setUp()};var $o,Ir,Wo,Sr,Jo,Tr,Xo,wr;class Eh{constructor(){i(this,$o);i(this,Wo);i(this,Jo);i(this,Xo)}initializeCollections(){n.collections.length>0&&(t(this,$o,Ir).call(this),t(this,Wo,Sr).call(this),t(this,Jo,Tr).call(this),t(this,Xo,wr).call(this))}}$o=new WeakSet,Ir=function(){},Wo=new WeakSet,Sr=function(){n.collections.forEach(e=>{e.active_index=null})},Jo=new WeakSet,Tr=function(){n.collections.forEach(e=>{e.shuffle=!1,e.shuffle_list=[]})},Xo=new WeakSet,wr=function(){n.collections.forEach(e=>{e.repeat=!1}),console.log(n)};var Zo,Mr,Go,Cr;class Ah{constructor(){i(this,Zo);i(this,Go)}copyUserSettings(e){this.setAudio(e.audio),this.setCollections(e.collections),this.setVolume(e.volume),this.setDebug(e.debug),this.setDefaultArtwork(e.default_artwork),this.setPlaybackSpeed(e.playback_speed),this.setCallbacks(e.callbacks)}setAudio(e){n.audio=e!=null?e:[],t(this,Zo,Mr).call(this),t(this,Go,Cr).call(this)}setCollections(e){n.collections=e,new Eh().initializeCollections()}setVolume(e){n.volume.current=e&&e.initial?e.initial:50,n.volume.increment=e&&e.increment?e.increment:5,n.volume.decrement=e&&e.decrement?e.decrement:5,T.syncElements()}setDebug(e){n.debug=e!=null?e:!1}setDefaultArtwork(e){n.default_artwork=e!=null?e:!1}setPlaybackSpeed(e){n.playback_speed=e!=null?e:1,ut.syncElements()}setCallbacks(e){n.callbacks=e!=null?e:[]}}Zo=new WeakSet,Mr=function(){n.audio.forEach((e,l)=>{e.live==null&&(e.live=!1)})},Go=new WeakSet,Cr=function(){n.audio.forEach((e,l)=>{e.index=l})};var es,S,Le,gs,ts,_r,is,Pr,Qi,ys,ls,Qr,ns,zr,as,Ur,os,qr,ss,Nr,cs,Dr;class bh{constructor(e,l){i(this,ts);i(this,is);i(this,Qi);i(this,ls);i(this,ns);i(this,as);i(this,os);i(this,ss);i(this,cs);i(this,es,void 0);i(this,S,void 0);i(this,Le,void 0);i(this,gs,!1);u(this,Le,new o),c(this,Le).setIsMobile(),u(this,S,e),u(this,es,l)}setup(){t(this,ts,_r).call(this,c(this,S))?t(this,is,Pr).call(this):t(this,Qi,ys).call(this)}}es=new WeakMap,S=new WeakMap,Le=new WeakMap,gs=new WeakMap,ts=new WeakSet,_r=function(e){try{new URL(e)}catch{return y.writeMessage("AmplitudeJS must be initialized with a JSON object or a valid URL."),!1}return!0},is=new WeakSet,Pr=function(){fetch(c(this,S)).then(e=>{if(e.status!=200)throw e.status;return e.json()}).then(e=>{u(this,S,e),t(this,Qi,ys).call(this)}).catch(e=>{y.writeMessage(e)})},Qi=new WeakSet,ys=function(){t(this,ls,Qr).call(this),t(this,ns,zr).call(this),t(this,os,qr).call(this),t(this,as,Ur).call(this),t(this,ss,Nr).call(this),t(this,cs,Dr).call(this)},ls=new WeakSet,Qr=function(){c(this,Le).resetConfig()},ns=new WeakSet,zr=function(){new Ah().copyUserSettings(c(this,S))},as=new WeakSet,Ur=function(){new dh().initializeAllEvents()},os=new WeakSet,qr=function(){let e=new Se;n.start_audio||e.changeAudio(n.audio[0],0)},ss=new WeakSet,Nr=function(){new gh().initializeElements()},cs=new WeakSet,Dr=function(){new g().handleNativeAudioElementEvents()};function kh(h={},e=null){new bh(h,e).setup()}const xh=Object.freeze(Object.defineProperty({__proto__:null,init:kh},Symbol.toStringTag,{value:"Module"}));function Lh(){return n}const Ih=Object.freeze(Object.defineProperty({__proto__:null,getConfig:Lh},Symbol.toStringTag,{value:"Module"}));function Sh(){return n.active_playlist}const Th=Object.freeze(Object.defineProperty({__proto__:null,getActivePlaylist:Sh},Symbol.toStringTag,{value:"Module"})),wh=["abort","error","loadeddata","loadedmetadata","loadstart","pause","playing","play","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","canplay","canplaythrough","durationchange","ended"];function Mh(h,e){wh.indexOf(h)>-1?n.audio_element.addEventListener(h,e):y.writeMessage("Invalid event listener. Please see all valid events here: https://www.w3schools.com/tags/ref_av_dom.asp")}const Ch=Object.freeze(Object.defineProperty({__proto__:null,addAudioEventListener:Mh},Symbol.toStringTag,{value:"Module"})),_h=function(){return{...xh,...Ih,...Th,...Ch}}();module.exports=_h; +//# sourceMappingURL=amplitude.js.map diff --git a/dist/amplitude.js.map b/dist/amplitude.js.map index 6cc663b0..5ee0f914 100644 --- a/dist/amplitude.js.map +++ b/dist/amplitude.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 1342b390611d32154be3","webpack:///./src/config.js","webpack:///./src/core/core.js","webpack:///./src/visual/playPauseElements.js","webpack:///./src/utilities/audioNavigation.js","webpack:///./src/utilities/debug.js","webpack:///./src/utilities/checks.js","webpack:///./src/utilities/configState.js","webpack:///./src/visual/metaDataElements.js","webpack:///./src/visual/repeatElements.js","webpack:///./src/utilities/callbacks.js","webpack:///./src/visual/muteElements.js","webpack:///./src/visual/volumeSliderElements.js","webpack:///./src/utilities/repeater.js","webpack:///./src/utilities/shuffler.js","webpack:///./src/visual/songSliderElements.js","webpack:///./src/visual/timeElements.js","webpack:///./src/fx/visualizations.js","webpack:///./src/soundcloud/soundcloud.js","webpack:///./src/visual/playbackSpeedElements.js","webpack:///./src/visual/shuffleElements.js","webpack:///./src/visual/songPlayedProgressElements.js","webpack:///./src/init/init.js","webpack:///./src/fx/waveform.js","webpack:///./src/utilities/time.js","webpack:///./src/visual/bufferedProgressElements.js","webpack:///./src/events/ended.js","webpack:///./src/events/events.js","webpack:///./src/events/keydown.js","webpack:///./src/events/mute.js","webpack:///./src/events/next.js","webpack:///./src/events/pause.js","webpack:///./src/events/play.js","webpack:///./src/events/playPause.js","webpack:///./src/events/playbackSpeed.js","webpack:///./src/events/prev.js","webpack:///./src/events/progress.js","webpack:///./src/events/repeat.js","webpack:///./src/events/repeatSong.js","webpack:///./src/events/shuffle.js","webpack:///./src/events/skipTo.js","webpack:///./src/events/songSlider.js","webpack:///./src/events/stop.js","webpack:///./src/events/timeUpdate.js","webpack:///./src/events/volumeDown.js","webpack:///./src/events/volumeSlider.js","webpack:///./src/events/volumeUp.js","webpack:///./src/fx/fx.js","webpack:///./src/index.js","webpack:///./src/init/playlists.js","webpack:///./src/visual/containerElements.js","webpack:///./src/visual/time/currentHourElements.js","webpack:///./src/visual/time/currentMinuteElements.js","webpack:///./src/visual/time/currentSecondElements.js","webpack:///./src/visual/time/currentTimeElements.js","webpack:///./src/visual/time/durationCountDownTimeElements.js","webpack:///./src/visual/time/durationHourElements.js","webpack:///./src/visual/time/durationMinuteElements.js","webpack:///./src/visual/time/durationSecondElements.js","webpack:///./src/visual/time/durationTimeElements.js","webpack:///./package.json"],"names":["module","exports","version","audio","Audio","active_metadata","active_album","active_index","active_playlist","playback_speed","callbacks","songs","playlists","start_song","starting_playlist","starting_playlist_song","repeat","repeat_song","shuffle_list","shuffle_on","default_album_art","default_playlist_art","debug","volume","pre_mute_volume","volume_increment","volume_decrement","soundcloud_client","soundcloud_use_art","soundcloud_song_count","soundcloud_songs_ready","is_touch_moving","buffered","bindings","continue_next","delay","player_state","web_audio_api_available","context","source","analyser","visualizations","available","active","backup","waveforms","sample_rate","built","Core","play","Visualizations","stop","run","config","live","reconnectStream","test","navigator","userAgent","paused","playPromise","undefined","then","catch","playbackRate","ConfigState","setPlayerState","pause","disconnectStream","currentTime","Callbacks","setVolume","volumeLevel","muted","setSongLocation","songPercentage","duration","skipToLocation","seconds","addEventListener","Debug","writeMessage","once","src","load","url","setPlaybackSpeed","playbackSpeed","PlayPauseElements","sync","syncGlobal","syncPlaylist","syncSong","syncSongInPlaylist","state","playPauseElements","document","querySelectorAll","i","length","playlist","getAttribute","song","setElementPlay","setElementPause","playlistPlayPauseElements","songPlayPauseElements","activePlaylistIndex","songInPlaylistPlayPauseElements","syncToPause","element","classList","add","remove","AudioNavigation","setNext","songEnded","nextIndex","nextSong","endOfList","index","parseInt","changeSong","setNextPlaylist","shuffle","setActivePlaylist","changeSongPlaylist","setPrevious","previousIndex","previousSong","setPreviousPlaylist","direct","prepareSongChange","album","afterSongChange","SongSliderElements","resetElements","SongPlayedProgressElements","TimeElements","resetCurrentTimes","Checks","newAlbum","MetaDataElements","displayMetaData","ContainerElements","setActive","resetDurationTimes","message","console","log","newSong","songIndex","newPlaylist","isURL","pattern","isInt","int","isNaN","Number","resetConfig","imageMetaDataKeys","songInfoElements","info","val","indexOf","setAttribute","innerHTML","displayPlaylistMetaData","playlistInfoElements","setFirstSongInPlaylist","elementPlaylist","syncMetaData","RepeatElements","syncRepeat","repeatClasses","getElementsByClassName","syncRepeatPlaylist","repeatButtons","syncRepeatSong","repeatSongClasses","initialize","callbackName","callbackFunction","error","MuteElements","setMuted","muteClasses","VolumeSliderElements","volumeSliders","value","Repeater","setRepeat","setRepeatPlaylist","setRepeatSong","Shuffler","setShuffle","shuffleSongs","toggleShuffle","setShufflePlaylist","shufflePlaylistSongs","toggleShufflePlaylist","shuffleTemp","Array","randNum","Math","floor","random","shuffleSwap","shuffleList","original","temp","location","syncMain","mainSongSliders","playlistSongSliders","playlistAttribute","songAttribute","songSliders","songInPlaylistSliders","CurrentTimeElements","resetTimes","CurrentHourElements","CurrentMinuteElements","CurrentSecondElements","syncCurrentTimes","hours","minutes","DurationCountDownTimeElements","DurationHourElements","DurationMinuteElements","DurationSecondElements","DurationTimeElements","syncDurationTimes","songDuration","visualizationElements","Object","keys","runGlobalVisualization","runPlaylistVisualization","runSongVisualization","runSongInPlaylistVisualization","displayBackups","globalVisualizationIndex","visualization","activeSongVisualizationIndex","addToActiveVisualizations","firstVisualization","activePlaylistVisualizationIndex","key","setPreferences","startVisualization","push","stopVisualization","register","preferences","newVisualization","getID","x","displayGlobalBackup","displayPlaylistBackup","displaySongBackup","displaySongInPlaylistBackup","style","backgroundImage","cover_art_url","SoundCloud","tempUserConfig","loadSoundCloud","userConfig","head","getElementsByTagName","script","createElement","type","onreadystatechange","initSoundcloud","onload","appendChild","SC","client_id","getStreamableURLs","soundcloud_regex","match","resolveStreamable","resolveIndividualStreamableURL","addToShuffleList","get","sound","streamable","stream_url","artwork_url","soundcloud_data","AmplitudeHelpers","writeDebugMessage","name","artist","AmplitudeInitializer","setConfig","isSoundCloudURL","PlaybackSpeedElements","playbackSpeedClasses","ShuffleElements","shuffleButtons","songPlayedPercentage","percentage","songPlayedProgressBars","max","Initializer","ready","Events","setArt","Fx","webAudioAPIAvailable","determineUsingAnyFX","configureWebAudioAPI","documentElement","resume","WaveForm","init","object","params","initializeDefaultLiveSettings","initializeDefaultSongIndexes","rebindDisplay","countPlaylists","PlaylistsInitializer","preload","initializeElements","size","hasOwnProperty","buffer","sampleRate","peaks","svg","createElementNS","g","path","build","abs","split","reduce","a","b","charCodeAt","req","XMLHttpRequest","open","responseType","e","readyState","status","decodeAudioData","response","bufferedAudio","getPeaks","process","send","displayWaveForms","totalPeaks","d","peakNumber","shift","sampleSize","sampleStep","numberOfChannels","mergedPeaks","channelNumber","channelData","getChannelData","start","end","min","sampleIndex","waveformElements","displayGlobalWaveform","displayPlaylistWaveform","displaySongWaveform","displaySongInPlaylistWaveform","waveformPath","querySelector","determineIfUsingWaveforms","Time","computeCurrentTimes","currentSeconds","currentMinutes","currentHours","computeSongDuration","songDurationSeconds","songDurationMinutes","songDurationHours","toString","computeSongCompletionPercentage","setCurrentTime","time","isFinite","BufferedProgressElements","songBufferedProgressBars","parseFloat","songBufferedProgressBarsPlaylist","songBufferedProgressBarsSongs","songBufferedProgressBarsSongsInPlaylist","reset","Ended","handle","setTimeout","bindTimeUpdate","bindKeyDownEventHandlers","bindSongEnded","bindProgress","bindPlay","bindPause","bindPlayPause","bindStop","bindMute","bindVolumeUp","bindVolumeDown","bindSongSlider","bindVolumeSlider","bindNext","bindPrev","bindShuffle","bindRepeat","bindRepeatSong","bindPlaybackSpeed","bindSkipTo","bindCanPlayThrough","removeEventListener","TimeUpdate","KeyDown","Progress","play_classes","Play","pause_classes","Pause","play_pause_classes","PlayPause","stop_classes","Stop","mute_classes","Mute","volume_up_classes","VolumeUp","volume_down_classes","VolumeDown","ua","window","msie","song_sliders","SongSlider","volume_sliders","VolumeSlider","next_classes","Next","prev_classes","Prev","shuffle_classes","Shuffle","repeat_classes","Repeat","repeat_song_classes","RepeatSong","playback_speed_classes","PlaybackSpeed","skipToClasses","SkipTo","event","runKeyEvent","which","runPlayPauseKeyDownEvent","runNextKeyDownEvent","runPrevKeyDownEvent","runStopKeyDownEvent","runShuffleKeyDownEvent","runRepeatKeyDownEvent","handleGlobalNext","handlePlaylistNext","songIndexAttribute","handleGlobalPause","handlePlaylistPause","handleSongPause","handleSongInPlaylistPause","handleGlobalPlay","handlePlaylistPlay","handleSongPlay","handleSongInPlaylistPlay","handleGlobalPlayPause","handlePlaylistPlayPause","handleSongPlayPause","handleSongInPlaylistPlayPause","handleGlobalPrev","handlePlaylistPrev","bufferedEnd","handleGlobalRepeat","handlePlaylistRepeat","handleGlobalShuffle","handlePlaylistShuffle","handleSkipToSong","handleSkipToPlaylist","locationPercentage","computedTime","handleGlobalSongSlider","handlePlaylistSongSlider","handleSongSongSlider","handleSongInPlaylistSongSlider","computeBufferedTime","updateTimeInformation","runTimeCallbacks","songCompletionPercentage","time_callbacks","browserContext","AudioContext","webkitAudioContext","mozAudioContext","oAudioContext","msAudioContext","createAnalyser","crossOrigin","createMediaElementSource","connect","destination","Amplitude","getConfig","bindNewElements","getActivePlaylist","getPlaybackSpeed","speed","getRepeat","getRepeatPlaylist","playlistKey","getShuffle","getShufflePlaylist","repeatState","getDefaultAlbumArt","getDefaultPlaylistArt","setDefaultAlbumArt","setDefaultPlaylistArt","default_plalist_art","getSongPlayedPercentage","getSongPlayedSeconds","getSongDuration","setSongPlayedPercentage","setDebug","getActiveSongMetadata","getActivePlaylistMetadata","getSongAtIndex","getSongAtPlaylistIndex","addSong","prependSong","unshift","addSongToPlaylist","addPlaylist","data","ignoredKeys","dataKey","removeSong","splice","removeSongFromPlaylist","playNow","playSongAtIndex","playPlaylistSongAtIndex","getAudio","getAnalyser","next","nextData","prev","prevData","getSongs","getSongsInPlaylist","getSongsState","getSongsStatePlaylist","getActiveIndex","getVersion","getBuffered","skipTo","setSongMetaData","metaData","setPlaylistMetaData","setDelay","getDelay","getPlayerState","registerVisualization","setPlaylistVisualization","visualizationKey","setSongVisualization","setSongInPlaylistVisualization","setGlobalVisualization","getVolume","copySongsToPlaylists","grabSoundCloudData","initializePlaylistActiveIndexes","initializePlaylistShuffleStatuses","initializePlaylistsRepeatStatuses","initializePlaylistShuffleLists","initializeFirstSongInPlaylistMetaData","songContainers","activeIndex","hasAttribute","currentHourSelectors","currentHourPlaylistSelectors","currentHourSongSelectors","currentHourPlaylistSongSelectors","hourSelectors","currentMinuteSelectors","currentMinutePlaylistSelectors","currentMinuteSongSelectors","currentMinutePlaylistSongSelectors","minuteSelectors","currentSecondSelectors","currentSecondPlaylistSelectors","currentSecondSongSelectors","currentSecondPlaylistSongSelectors","secondSelectors","currentTimeSelectors","timeText","timeSelectors","countDownTime","timeRemaining","computeTimeRemaining","durationTimeRemainingSelectors","totalCurrentSeconds","totalDurationSeconds","timeRemainingTotalSeconds","remainingHours","remainingMinutes","remainingSeconds","durationHourSelectors","durationMinuteSelectors","durationSecondSelectors","durationTime","durationText","computeDurationText","durationTimeSelectors"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA,mDAA2C,cAAc;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;;;;ACdA;;AAEAA,OAAOC,OAAP,GAAiB;AACfC,WAASA,gBADM;;AAGfC,SAAO,IAAIC,KAAJ,EAHQ;;AAKfC,mBAAiB,EALF;;AAOfC,gBAAc,EAPC;;AASfC,gBAAc,CATC;;AAWfC,mBAAiB,IAXF;;AAafC,kBAAgB,GAbD;;AAefC,aAAW,EAfI;;AAiBfC,SAAO,EAjBQ;;AAmBfC,aAAW,EAnBI;;AAqBfC,cAAY,EArBG;;AAuBfC,qBAAmB,EAvBJ;;AAyBfC,0BAAwB,EAzBT;;AA2BfC,UAAQ,KA3BO;;AA6BfC,eAAa,KA7BE;;AA+BfC,gBAAc,EA/BC;;AAiCfC,cAAY,KAjCG;;AAmCfC,qBAAmB,EAnCJ;;AAqCfC,wBAAsB,EArCP;;AAuCfC,SAAO,KAvCQ;;AAyCfC,UAAQ,GAzCO;;AA2CfC,mBAAiB,GA3CF;;AA6CfC,oBAAkB,CA7CH;;AA+CfC,oBAAkB,CA/CH;;AAiDfC,qBAAm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,EAA0D;AACxDoZ,uBAAeD,aAAanZ,KAAb,GAAqB,GAArB,GAA2BoZ,YAA1C;AACD;AACF;;AAED,WAAOA,YAAP;AACD;;AAED;;;AAGA,SAAO;AACL5hB,UAAMA,IADD;AAELmI,gBAAYA;AAFP,GAAP;AAID,CArJ0B,EAA3B,C,CAXA;;;;kBAkKeW,oB;;;;;;;AClKf,kBAAkB,mTAAmT,uQAAuQ,gBAAgB,aAAa,6BAA6B,uEAAuE,YAAY,yNAAyN,eAAe,0EAA0E,2IAA2I,4DAA4D,kE","file":"amplitude.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"Amplitude\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Amplitude\"] = factory();\n\telse\n\t\troot[\"Amplitude\"] = factory();\n})(this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 47);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 1342b390611d32154be3","/**\n * These variables make Amplitude run. The config is the most important\n * containing active settings and parameters.\n *\n * The config JSON is the global settings for ALL of Amplitude functions.\n * This is global and contains all of the user preferences. The default\n * settings are set, and the user overwrites them when they initialize\n * Amplitude.\n *\n * @module config\n * @type {object}\n * @property {string} \tconfig.version \t\t\t\t- The current version of AmplitudeJS.\n * @property {object} \tconfig.audio \t\t \t\t\t\t\t\t\t\t-\tHandles all of the audio.\n * @property {object} \tconfig.active_metadata\t\t\t\t\t- Contains the active metadata for the song.\n * @property {string} \tconfig.active_album\t\t\t\t\t\t\t- Holds the active album name. Used to check and see if the album changed and run the album changed callback.\n * @property {number} \tconfig.active_index\t\t\t\t\t\t\t- Contains the index of the actively playing song.\n * @property {string} \tconfig.active_playlist\t\t\t\t\t- Contains the key to the active playlist index.\n * @property {number} \tconfig.playback_speed\t\t\t\t\t\t- Sets the initial playback speed of the song. The values for this can be 1.0, 1.5, 2.0\n * @property {object} \tconfig.callbacks\t\t\t\t\t\t\t\t- The user can pass a JSON object with a key => value store of callbacks to be run at certain events.\n * @property {array} \t\tconfig.songs\t\t\t\t\t\t\t\t\t\t- Contains all of the songs the user has passed to Amplitude to use.\n * @property {object} \tconfig.playlists\t\t\t\t\t\t\t\t- Contains all of the playlists the user created.\n * @property {object} \tconfig.start_song \t\t\t\t\t\t\t- The index of the song that AmplitudeJS should start with.\n * @property {string} \tconfig.starting_playlist \t\t\t\t- The starting playlist the player will intiialize to.\n * @property {string} \tconfig.starting_playlist_song \t- The index of the song in the playlist that should be started.\n * @property {boolean} \tconfig.repeat \t\t\t\t\t\t\t\t\t- When repeat is on, when the song ends the song will replay itself.\n * @property {object} \tconfig.shuffle_list\t\t\t\t\t\t\t- When shuffled, gets populated with the songs the user provided in a random order.\n * @property {boolean} \tconfig.shuffle_on\t\t\t\t\t\t\t\t- When on, gets set to true so when traversing through songs, AmplitudeJS knows whether or not to use the songs object or the shuffle_list\n * @property {string}\t\tconfig.default_album_art \t\t\t\t- The user can set default album art to be displayed if the song they set doesn't contain album art.\n * @property {string} \tconfig.default_playlist_art \t\t- The user can set default playlist art to be displayed if the playlist they are setting meta data for doesn't contain an art picture.\n * @property {boolean} \tconfig.debug\t\t\t\t\t\t\t\t\t\t- When set to true, AmplitudeJS will print to the console any errors providing helpful feedback to the user.\n * @property {number} \tconfig.volume \t\t\t\t\t\t\t\t\t- The user can set the initial volume to a number between 0 and 1 over-riding the default of .5\n * @property {number} \tconfig.pre_mute_volume \t\t\t\t\t- This is set on mute so that when a user un-mutes AmplitudeJS knows what to restore the volume to.\n * @property {number}\t\tconfig.volume_increment \t\t\t\t- The default values are an integer between 1 and 100 for how much the volume should increase when the user presses the volume up button.\n * @property {number}\t\tconfig.volume_decrement \t\t\t\t- The default values are an integer between 1 and 100 for how much the volume should decrease when the user presses the volume down button.\n * @property {string} \tconfig.soundcloud_client \t\t\t\t- When using SoundCloud, the user will have to provide their API Client ID\n * @property {boolean} \tconfig.soundcloud_use_art \t\t\t- The user can set this to true and AmplitudeJS will use the album art for the song returned from the Soundcloud API\n * @property {number} \tconfig.soundcloud_song_count \t\t- Used on config to count how many songs are from Soundcloud and compare it to how many are ready for when to move to the rest of the configuration\n * @property {number} \tconfig.soundcloud_songs_ready \t- Used on config to count how many songs are ready so when we get all of the data from the SoundCloud API that we need this should match the SoundCloud song count meaning we can move to the rest of the config.\n * @property {integer}\tconfig.is_touch_moving \t\t\t\t\t- Flag for if the user is moving the screen.\n * @property {boolean}\tconfig.buffered\t\t\t\t\t\t\t\t\t- How much of the song is buffered.\n * @property {object} \tconfig.bindings\t\t\t\t\t\t\t\t\t- Array of bindings to certain key events.\n * @property {boolean} \tconfig.continue_next \t\t\t\t\t\t- Determines when a song ends, we should continue to the next song.\n * @property {number} config.delay \t\t\t\t\t\t\t\t\t\t- Sets the delay between songs in MS.\n * @property {boolean} config.use_web_audio_api \t\t\t\t- Flag that determines if the user wants to use Web Audio API Components.\n * @property {boolean} config.web_audio_api_available - Flag that determines if the Web Audio API is available.\n * @property {object} \tconfig.context \t\t\t\t\t\t\t\t\t- Web Audio API Context\n * @property {object}\t\tconfig.source \t\t\t\t\t\t\t\t\t- Web Audio API Source\n * @property {object} \tconfig.analyser \t\t\t\t\t\t\t\t- Web Audio API Analyser\n * @property {string}\t\tconfig.player_state \t\t\t\t\t\t- The current state of the player.\n */\nimport { version } from \"../package.json\";\n\nmodule.exports = {\n version: version,\n\n audio: new Audio(),\n\n active_metadata: {},\n\n active_album: \"\",\n\n active_index: 0,\n\n active_playlist: null,\n\n playback_speed: 1.0,\n\n callbacks: {},\n\n songs: [],\n\n playlists: {},\n\n start_song: \"\",\n\n starting_playlist: \"\",\n\n starting_playlist_song: \"\",\n\n repeat: false,\n\n repeat_song: false,\n\n shuffle_list: {},\n\n shuffle_on: false,\n\n default_album_art: \"\",\n\n default_playlist_art: \"\",\n\n debug: false,\n\n volume: 0.5,\n\n pre_mute_volume: 0.5,\n\n volume_increment: 5,\n\n volume_decrement: 5,\n\n soundcloud_client: \"\",\n\n soundcloud_use_art: false,\n\n soundcloud_song_count: 0,\n\n soundcloud_songs_ready: 0,\n\n is_touch_moving: false,\n\n buffered: 0,\n\n bindings: {},\n\n continue_next: true,\n\n delay: 0,\n\n player_state: \"stopped\",\n\n web_audio_api_available: false,\n\n context: null,\n\n source: null,\n\n analyser: null,\n\n visualizations: {\n available: [],\n\n active: [],\n\n backup: \"\"\n },\n\n waveforms: {\n sample_rate: 100,\n\n built: []\n }\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/config.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the Checks module.\n * @module utilities/checks\n */\nimport Checks from \"../utilities/checks.js\";\n\n/**\n * Imports the Audio Navigation module.\n * @module utilities/audioNavigation\n */\nimport AudioNavigation from \"../utilities/audioNavigation.js\";\n\n/**\n * Imports the Play/Pause Visual Elements module.\n * @module visual/playPauseElements\n */\nimport PlayPauseElements from \"../visual/playPauseElements.js\";\n\n/**\n * Imports the Meta Data Visual Elements module.\n * @module visual/metaDataElements\n */\nimport MetaDataElements from \"../visual/metaDataElements.js\";\n\n/**\n * Imports AmplitudeJS Callback Utility\n * @module utilities/callbacks\n */\nimport Callbacks from \"../utilities/callbacks.js\";\n\n/**\n * Imports AmplitudeJS Debug Utility\n * @module utilities/debug\n */\nimport Debug from \"../utilities/debug.js\";\n\n/**\n * Import the Visualizations from the FX module.\n * @module fx/visualizations\n */\nimport Visualizations from \"../fx/visualizations.js\";\n\n/**\n * Import the Config State module.\n * @module utilities/configState\n */\n import ConfigState from \"../utilities/configState.js\";\n\n/**\n * Interacts directly with native functions of the Audio element. Logic\n * leading up to these methods are handled by click handlers which call\n * helpers and visual synchronizers. These are the core functions of AmplitudeJS.\n * Every other function that leads to these prepare the information to be\n * acted upon by these functions.\n *\n * @module core/Core\n */\nlet Core = (function() {\n /**\n * Plays the active song. If the current song is live, it reconnects\n * the stream before playing.\n *\n * Public Accessor: Amplitude.play()\n *\n * @access public\n */\n function play() {\n Visualizations.stop();\n Visualizations.run();\n\n /*\n\t\t\tIf the audio is live we re-conenct the stream.\n\t\t*/\n if (config.active_metadata.live) {\n reconnectStream();\n }\n\n /*\n\t\t\tMobile remote sources need to be reconnected on play. I think this is\n\t\t\tbecause mobile browsers are optimized not to load all resources\n\t\t\tfor speed reasons. We only do this if mobile and the paused button\n\t\t\tis not clicked. If the pause button was clicked then we don't reconnect\n\t\t\tor the user will lose their place in the stream.\n\t\t*/\n if (\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\n navigator.userAgent\n ) &&\n !config.paused\n ) {\n reconnectStream();\n }\n\n /*\n\t\t\tPlay the song and set the playback rate to the playback\n\t\t\tspeed.\n */\n let playPromise = config.audio.play();\n\n if (playPromise !== undefined) {\n playPromise.then(_ => {}).catch(error => {});\n }\n config.audio.play();\n config.audio.playbackRate = config.playback_speed;\n \n /*\n Sets the state of the player.\n */\n ConfigState.setPlayerState();\n }\n\n /**\n * Pauses the active song. If it's live, it disconnects the stream.\n *\n * Public Accessor: Amplitude.pause()\n *\n * @access public\n */\n function pause() {\n Visualizations.stop();\n\n /*\n\t\t\tPause the active song.\n\t\t*/\n config.audio.pause();\n\n /*\n\t\t\tFlag that pause button was clicked.\n\t\t*/\n config.paused = true;\n \n \n /*\n\t\t\tIf the song is live, we disconnect the stream so we aren't\n\t\t\tsaving it to memory.\n\t\t*/\n if (config.active_metadata.live) {\n disconnectStream();\n }\n \n /*\n Sets the state of the player.\n */\n ConfigState.setPlayerState();\n }\n\n /**\n * Stops the active song by setting the current song time to 0.\n * When the user resumes, it will be from the beginning.\n * If it's a live stream it disconnects.\n *\n * Public Accessor: Amplitude.stop()\n *\n * @access public\n */\n function stop() {\n Visualizations.stop();\n\n /*\n\t\t\tSet the current time of the song to 0 which will reset the song.\n\t\t*/\n if (config.audio.currentTime != 0) {\n config.audio.currentTime = 0;\n }\n\n /*\n\t\t\tRun pause so the song will stop\n\t\t*/\n config.audio.pause();\n\n /*\n\t\t\tIf the song is live, disconnect the stream.\n\t\t*/\n if (config.active_metadata.live) {\n disconnectStream();\n }\n\n /*\n Sets the state of the player.\n */\n ConfigState.setPlayerState();\n \n /*\n\t\t\tRun the stop callback\n\t\t*/\n Callbacks.run(\"stop\");\n }\n\n /**\n * Sets the song volume.\n *\n * Public Accessor: Amplitude.setVolume( volumeLevel )\n *\n * @access public\n * @param {number} volumeLevel - A number between 1 and 100 as a percentage of\n * min to max for a volume level.\n */\n function setVolume(volumeLevel) {\n /*\n\t\t\tIf the volume is set to mute somewhere else, we sync the display.\n\t\t*/\n if (volumeLevel == 0) {\n config.audio.muted = true;\n } else {\n config.audio.muted = false;\n }\n\n /*\n\t\t\tSets the volume in the config so we can reference it later on.\n\t\t*/\n config.volume = volumeLevel;\n\n /*\n\t\t\tSet the volume of the active song.\n\t\t*/\n config.audio.volume = volumeLevel / 100;\n }\n\n /**\n * Sets the song percentage. If it's a live song, we ignore this because\n * we can't skip ahead. This is an issue if you have a playlist with\n * a live source.\n *\n * Public Accessor: Amplitude.setSongLocation( songPercentage )\n *\n * @access public\n * @param {number} songPercentage - A number between 1 and 100 as a percentage of song completion.\n */\n function setSongLocation(songPercentage) {\n /*\n\t\t\tAs long as the song is not live, we can set the current time of the\n\t\t\tsong to the percentage the user passed in.\n\t\t*/\n if (!config.active_metadata.live) {\n config.audio.currentTime = config.audio.duration * (songPercentage / 100);\n }\n }\n\n /**\n * Skips to a location in a song\n *\n * Public Accessor: Amplitude.skipToLocation( seconds )\n *\n * @access public\n * @param {number} seconds - An integer containing the seconds to skip to\n */\n function skipToLocation(seconds) {\n /*\n\t\t\tWhen the active song can be played through, we can check to\n\t\t\tsee if the seconds will work. We only bind the event handler\n\t\t\tonce and remove it once it's fired.\n\t\t*/\n config.audio.addEventListener(\n \"canplaythrough\",\n function() {\n /*\n\t\t\t\tIf the active song duration is greater than or equal to the\n\t\t\t\tamount of seconds the user wants to skip to and the seconds\n\t\t\t\tis greater than 0, we skip to the seconds defined.\n\t\t\t*/\n if (config.audio.duration >= seconds && seconds > 0) {\n config.audio.currentTime = seconds;\n } else {\n Debug.writeMessage(\n \"Amplitude can't skip to a location greater than the duration of the audio or less than 0\"\n );\n }\n },\n { once: true }\n );\n }\n\n /**\n * Disconnects the live stream\n *\n * Public Accessor: Amplitude.disconnectStream()\n *\n * @access public\n */\n function disconnectStream() {\n config.audio.src = \"\";\n config.audio.load();\n }\n\n /**\n * Reconnects the live stream\n *\n * Public Accessor: Amplitude.reconnectStream()\n *\n * @access public\\\n */\n function reconnectStream() {\n config.audio.src = config.active_metadata.url;\n config.audio.load();\n }\n\n /**\n * Sets the playback speed for the song.\n *\n * @param {number} playbackSpeed The speed we want the song to play back at.\n */\n function setPlaybackSpeed(playbackSpeed) {\n /*\n\t\t\tSet the config playback speed.\n\t\t*/\n config.playback_speed = playbackSpeed;\n\n /*\n\t\t\tSet the active song playback rate.\n\t\t*/\n config.audio.playbackRate = config.playback_speed;\n }\n\n /*\n\t\tReturn publically facing functions\n\t*/\n return {\n play: play,\n pause: pause,\n stop: stop,\n setVolume: setVolume,\n setSongLocation: setSongLocation,\n skipToLocation: skipToLocation,\n disconnectStream: disconnectStream,\n reconnectStream: reconnectStream,\n setPlaybackSpeed: setPlaybackSpeed\n };\n})();\n\nexport default Core;\n\n\n\n// WEBPACK FOOTER //\n// ./src/core/core.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Defines the visual representation of AmplitudeJS play pause elements.\n * @module visual/PlayPauseElements\n */\nlet PlayPauseElements = (function() {\n /**\n * Syncs all play pause elements.\n *\n * @access public\n */\n function sync() {\n syncGlobal();\n syncPlaylist();\n syncSong();\n syncSongInPlaylist();\n }\n\n /**\n * Syncs the global play pause buttons to the state of the active song.\n *\n * @access public\n */\n function syncGlobal() {\n /*\n Get the active song state.\n */\n let state = config.audio.paused ? \"paused\" : \"playing\";\n\n /*\n Get all play pause buttons.\n */\n const playPauseElements = document.querySelectorAll(\n \".amplitude-play-pause\"\n );\n\n /*\n Iterate over all of the play pause elements syncing the\n display visually.\n */\n for (let i = 0; i < playPauseElements.length; i++) {\n /*\n Grab the playlist and song attributes from the element.\n */\n let playlist = playPauseElements[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let song = playPauseElements[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n This method is responsible for only the global elements,\n so we make sure there are no playlist or songs defined on\n the element.\n */\n if (playlist == null && song == null) {\n /*\n Determines what classes we should add and remove\n from the elements.\n */\n switch (state) {\n case \"playing\":\n setElementPlay(playPauseElements[i]);\n break;\n case \"paused\":\n setElementPause(playPauseElements[i]);\n break;\n }\n }\n }\n }\n\n /**\n * Syncs the main playlist play pause buttons to the state of the active song.\n *\n * @access public\n */\n function syncPlaylist() {\n let state = config.audio.paused ? \"paused\" : \"playing\";\n\n /*\n Get all of the main playlist play pause elements\n */\n const playlistPlayPauseElements = document.querySelectorAll(\n '.amplitude-play-pause[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n );\n\n /*\n Iterate over the play pause elements, syncing the state accordingly.\n */\n for (let i = 0; i < playlistPlayPauseElements.length; i++) {\n /*\n Grab the song attributes from the element.\n */\n let song = playlistPlayPauseElements[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n /*\n We want only the play pause elements for the main on a\n playlist nothing else. We have another method for the\n song in playlist play pause method.\n */\n if (song == null) {\n /*\n Determines what classes we should add and remove\n from the elements.\n */\n switch (state) {\n case \"playing\":\n setElementPlay(playlistPlayPauseElements[i]);\n break;\n case \"paused\":\n setElementPause(playlistPlayPauseElements[i]);\n break;\n }\n }\n }\n }\n\n /**\n * Syncs the song play pause buttons to the state of the active song.\n *\n * @access public\n */\n function syncSong() {\n let state = config.audio.paused ? \"paused\" : \"playing\";\n\n /*\n Get all of the individual song play pause buttons. These have an\n amplitude-song-index that matches the active index attribute.\n */\n let songPlayPauseElements = document.querySelectorAll(\n '.amplitude-play-pause[data-amplitude-song-index=\"' +\n config.active_index +\n '\"]'\n );\n\n /*\n Iterate over all of the song play pause elements\n */\n for (let i = 0; i < songPlayPauseElements.length; i++) {\n /*\n Grab the playlist attributes from the element.\n */\n let playlist = songPlayPauseElements[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n\n /*\n We want only the song play pause buttons, not ones scoped in a playlist.\n */\n if (playlist == null) {\n /*\n Determines what classes we should add and remove\n from the elements.\n */\n switch (state) {\n case \"playing\":\n setElementPlay(songPlayPauseElements[i]);\n break;\n case \"paused\":\n setElementPause(songPlayPauseElements[i]);\n break;\n }\n }\n }\n }\n\n /**\n * Syncs the song in playlist play pause buttons to the state of\n * the active song.\n *\n * @access public\n */\n function syncSongInPlaylist() {\n let state = config.audio.paused ? \"paused\" : \"playing\";\n\n let activePlaylistIndex =\n config.active_playlist != \"\" && config.active_playlist != null\n ? config.playlists[config.active_playlist].active_index\n : null;\n\n /*\n Get all of the individual song play pause buttons. These have an\n amplitude-song-index attribute. Some have amplitude-playlist which\n means they are individual songs within a playlist.\n */\n let songInPlaylistPlayPauseElements = document.querySelectorAll(\n '.amplitude-play-pause[data-amplitude-song-index=\"' +\n activePlaylistIndex +\n '\"][data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n );\n\n /*\n Iterate over all of the individual play pause elements for songs inspect\n a playlist.\n */\n for (let i = 0; i < songInPlaylistPlayPauseElements.length; i++) {\n /*\n Determines what classes we should add and remove\n from the elements.\n */\n switch (state) {\n case \"playing\":\n setElementPlay(songInPlaylistPlayPauseElements[i]);\n break;\n case \"paused\":\n setElementPause(songInPlaylistPlayPauseElements[i]);\n break;\n }\n }\n }\n\n /**\n * Sets all of the play pause buttons to paused.\n *\n * @access public\n */\n function syncToPause() {\n /*\n Gets all of the play pause elements\n */\n let playPauseElements = document.querySelectorAll(\".amplitude-play-pause\");\n\n /*\n Sets all of the elements to pause\n */\n for (let i = 0; i < playPauseElements.length; i++) {\n setElementPause(playPauseElements[i]);\n }\n }\n\n /**\n * Sets an element to be playing by removing the 'amplitude-paused' class\n * and adding the 'amplitude-playing' class\n *\n * @access public\n * @param {element} element \t- The element getting the playing class added.\n */\n function setElementPlay(element) {\n element.classList.add(\"amplitude-playing\");\n element.classList.remove(\"amplitude-paused\");\n }\n\n /**\n * Sets an element to be paused by adding the 'amplitude-paused' class\n * and removing the 'amplitude-playing' class\n *\n * @access public\n * @param {element} element \t- The element getting the paused class added.\n */\n function setElementPause(element) {\n element.classList.remove(\"amplitude-playing\");\n element.classList.add(\"amplitude-paused\");\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n sync: sync,\n syncGlobal: syncGlobal,\n syncPlaylist: syncPlaylist,\n syncSong: syncSong,\n syncSongInPlaylist: syncSongInPlaylist,\n syncToPause: syncToPause\n };\n})();\n\nexport default PlayPauseElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/playPauseElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the Core Module\n *\n * @module core/Core\n */\nimport Core from \"../core/core.js\";\n\n/**\n * Imports the Callbacks Module\n *\n * @module utilities/Callbacks\n */\nimport Callbacks from \"../utilities/callbacks.js\";\n\n/**\n * Imports the Checks Module\n *\n * @module utilities/Checks\n */\nimport Checks from \"../utilities/checks.js\";\n\n/**\n * Imports the Play Pause Elements Module\n *\n * @module visual/PlayPauseElements\n */\nimport PlayPauseElements from \"../visual/playPauseElements.js\";\n\n/**\n * Imports the Song Slider Elements Module\n *\n * @module visual/SongSliderElements\n */\nimport SongSliderElements from \"../visual/songSliderElements.js\";\n\n/**\n * Imports the Song Played Progress Elements Module\n *\n * @module visual/SongPlayedProgressElements\n */\nimport SongPlayedProgressElements from \"../visual/songPlayedProgressElements.js\";\n\n/**\n * Imports the Time Elements Module\n *\n * @module visual/TimeElements\n */\nimport TimeElements from \"../visual/timeElements.js\";\n\n/**\n * Meta Data Elements Module\n *\n * @module visual/MetaDataElements\n */\nimport MetaDataElements from \"../visual/metaDataElements.js\";\n\n/**\n * Container Elements Module\n *\n * @module visual/ContainerElements\n */\nimport ContainerElements from \"../visual/containerElements.js\";\n\n/**\n * AmplitudeJS Audio Navigation Utility.\n *\n * @module utilities/AudioNavigation\n */\nlet AudioNavigation = (function() {\n /**\n * Sets the next song\n *\n * @access public\n * @param {boolean} [songEnded=false] If the song ended, this is set to true\n * so we take into effect the repeat setting.\n */\n function setNext(songEnded = false) {\n /*\n Initializes the next index variable. This will be the\n index of the song that is next.\n */\n let nextIndex = null;\n let nextSong = {};\n\n /*\n Ensure we don't loop in the playlist if config.repeat is not true\n */\n let endOfList = false;\n\n /*\n Determines if we are repeating the song or not. If we are repeating,\n the next song will be the same song index.\n */\n if (config.repeat_song) {\n /*\n If the playlist is shuffled, get the now playing index.\n */\n if (config.shuffle_on) {\n nextIndex = config.shuffle_list[config.active_index].index;\n nextSong = config.shuffle_list[nextIndex];\n } else {\n nextIndex = config.active_index;\n nextSong = config.songs[nextIndex];\n }\n } else {\n /*\n If the shuffle is on, we use the shuffled list of\n songs to determine our next song.\n */\n if (config.shuffle_on) {\n /*\n If the active shuffle index + 1 is less than the length, then\n we use the next shuffle otherwise we go to the beginning\n of the shuffle list.\n */\n if (parseInt(config.active_index) + 1 < config.shuffle_list.length) {\n /*\n Set the next index to be the index of the song in the shuffle list.\n */\n nextIndex = parseInt(config.active_index) + 1;\n } else {\n nextIndex = 0;\n endOfList = true;\n }\n\n nextSong = config.shuffle_list[nextIndex];\n } else {\n /*\n If the active index + 1 is less than the length of the songs, then\n we use the next song otherwise we go to the beginning of the\n song list.\n */\n if (parseInt(config.active_index) + 1 < config.songs.length) {\n nextIndex = parseInt(config.active_index) + 1;\n } else {\n nextIndex = 0;\n endOfList = true;\n }\n\n /*\n Sets the next index.\n */\n nextSong = config.songs[nextIndex];\n }\n }\n\n /*\n Change the song after the next button has been pressed.\n */\n changeSong(nextSong, nextIndex);\n\n /*\n \t\tIf it's the end of the list and repeat is not on, do nothing.\n \t*/\n if (endOfList && !config.repeat) {\n } else {\n /*\n \t\t\tIf the song has ended and repeat is on, play the song.\n \t\t*/\n if (!(songEnded && !config.repeat && endOfList)) {\n Core.play();\n }\n }\n\n /*\n Sync the play pause elements and run the\n after next callback.\n */\n PlayPauseElements.sync();\n Callbacks.run(\"next\");\n\n /*\n If we repeated the song, run the repeat song callback.\n */\n if (config.repeat_song) {\n Callbacks.run(\"song_repeated\");\n }\n }\n\n /**\n * Sets the next song in a playlist\n *\n * @param {string} playlist - The playlist being shuffled\n * @param {boolean} [songEnded=false] - If the song ended, this is set to true\n * so we take into effect the repeat setting.\n */\n function setNextPlaylist(playlist, songEnded = false) {\n /*\n Initializes the next index\n */\n let nextIndex = null;\n let nextSong = {};\n\n /*\n Ensure we don't loop in the playlist if config.repeat is not true\n */\n let endOfList = false;\n\n /*\n If we are repeating the song, then we just start the song over.\n */\n if (config.repeat_song) {\n /*\n If the playlist is shuffled, get the now playing index.\n */\n if (config.playlists[playlist].shuffle) {\n nextIndex = config.playlists[playlist].active_index;\n nextSong = config.playlists[playlist].shuffle_list[nextIndex];\n } else {\n nextIndex = config.playlists[playlist].active_index;\n nextSong = config.playlists[playlist].songs[nextIndex];\n }\n } else {\n /*\n If the playlist is shuffled we get the next index of the playlist.\n */\n if (config.playlists[playlist].shuffle) {\n /*\n If the active shuffle index + 1 is less than the length of the shuffle list,\n then we use the next shuffle otherwise we go to the beginning of the shuffle list.\n */\n if (\n parseInt(config.playlists[playlist].active_index) + 1 <\n config.playlists[playlist].shuffle_list.length\n ) {\n /*\n Set the next index to be the index of the song in the shuffle list.\n */\n nextIndex = config.playlists[playlist].active_index + 1;\n } else {\n nextIndex = 0;\n endOfList = true;\n }\n\n nextSong = config.playlists[playlist].shuffle_list[nextIndex];\n } else {\n /*\n If the active index +1 is less than the length of the songs in the playlist,\n then we use the next song otherwise we go to the beginning of the playlist.\n */\n if (\n parseInt(config.playlists[playlist].active_index) + 1 <\n config.playlists[playlist].songs.length\n ) {\n nextIndex = parseInt(config.playlists[playlist].active_index) + 1;\n } else {\n nextIndex = 0;\n endOfList = true;\n }\n\n /*\n Sets the next song.\n */\n nextSong = config.playlists[playlist].songs[nextIndex];\n }\n }\n\n /*\n Sets the active playlist to the playlist we are on.\n */\n setActivePlaylist(playlist);\n\n /*\n Change the song within the playlist.\n */\n changeSongPlaylist(playlist, nextSong, nextIndex);\n\n /*\n If it's the end of the playlist and we aren't repeating, do nothing.\n */\n if (endOfList && !config.repeat) {\n } else {\n if (!(songEnded && !config.repeat && endOfList)) {\n Core.play();\n }\n }\n\n /*\n Sync the play pause buttons.\n */\n PlayPauseElements.sync();\n Callbacks.run(\"next\");\n\n /*\n Repeat the song.\n */\n if (config.repeat_song) {\n Callbacks.run(\"song_repeated\");\n }\n }\n\n /**\n * Sets the previous song on the global songs array.\n *\n * @access private\n */\n function setPrevious() {\n /*\n Initializes the previous index\n */\n let previousIndex = null;\n let previousSong = {};\n\n /*\n If we are repeating the song, then we just start the song over.\n */\n if (config.repeat_song) {\n /*\n If the config is shuffled, get the now playing index.\n */\n if (config.shuffle_on) {\n previousIndex = config.active_index;\n previousSong = config.shuffle_list[previousIndex];\n } else {\n previousIndex = config.active_index;\n previousSong = config.songs[previousIndex];\n }\n } else {\n /*\n Get the previous index. If the previous index will be less than 0, get the\n last song of the array and continue.\n */\n if (parseInt(config.active_index) - 1 >= 0) {\n previousIndex = parseInt(config.active_index - 1);\n } else {\n previousIndex = parseInt(config.songs.length - 1);\n }\n\n /*\n If the config is shuffled, we grab the song from the shuffle list\n */\n if (config.shuffle_on) {\n /*\n Grab song from the shuffle list\n */\n previousSong = config.shuffle_list[previousIndex];\n } else {\n /*\n Grab song from the songs array\n */\n previousSong = config.songs[previousIndex];\n }\n }\n /*\n Change the song after the next button has been pressed.\n */\n changeSong(previousSong, previousIndex);\n\n /*\n Play the newest song.\n */\n Core.play();\n\n /*\n Sync the play pause elements and run the\n after next callback.\n */\n PlayPauseElements.sync();\n Callbacks.run(\"prev\");\n\n /*\n If we repeated the song, run the repeat song callback.\n */\n if (config.repeat_song) {\n Callbacks.run(\"song_repeated\");\n }\n }\n\n /**\n * Sets the previous playlist song.\n *\n * @access private\n *\n * @prop {string} playlist - The playlist we are navigating in.\n */\n function setPreviousPlaylist(playlist) {\n /*\n Initializes the previous index\n */\n let previousIndex = null;\n let previousSong = {};\n\n /*\n If we are repeating the song, then we just start the song over.\n */\n if (config.repeat_song) {\n /*\n If the playlist is shuffled, get the now playing index.\n */\n if (config.playlists[playlist].shuffle) {\n previousIndex = config.playlists[playlist].active_index;\n previousSong = config.playlists[playlist].shuffle_list[previousIndex];\n } else {\n previousIndex = config.playlists[playlist].active_index;\n previousSong = config.playlists[playlist].songs[previousIndex];\n }\n } else {\n /*\n Get the previous index. If the previous index will be less than 0, get the\n last song of the array and continue.\n */\n if (parseInt(config.playlists[playlist].active_index) - 1 >= 0) {\n previousIndex = parseInt(config.playlists[playlist].active_index - 1);\n } else {\n previousIndex = parseInt(config.playlists[playlist].songs.length - 1);\n }\n\n /*\n If the playlist is shuffled, we grab the song from the shuffle list\n */\n if (config.playlists[playlist].shuffle) {\n /*\n Grab song from the shuffle list\n */\n previousSong = config.playlists[playlist].shuffle_list[previousIndex];\n } else {\n /*\n Grab song from the songs array\n */\n previousSong = config.playlists[playlist].songs[previousIndex];\n }\n }\n\n /*\n Sets the active playlist to the playlist we are on.\n */\n setActivePlaylist(playlist);\n\n /*\n Change the song within the playlist.\n */\n changeSongPlaylist(playlist, previousSong, previousIndex);\n\n /*\n Plays the song\n */\n Core.play();\n\n /*\n Sync the play pause buttons.\n */\n PlayPauseElements.sync();\n Callbacks.run(\"prev\");\n\n /*\n Repeat the song.\n */\n if (config.repeat_song) {\n Callbacks.run(\"song_repeated\");\n }\n }\n\n /**\n * Change song in the songs array.\n *\n * @access private\n * @prop {object} song - The song we are changing to.\n * @prop {number} index - The index we are changing to.\n * @prop {boolean} direct - Determines if it was a direct click on the song.\n * We then don't care if shuffle is on or not.\n */\n function changeSong(song, index, direct = false) {\n /*\n Prepare the song change.\n */\n prepareSongChange(song);\n\n /*\n Change the song.\n */\n config.audio.src = song.url;\n config.active_metadata = song;\n config.active_album = song.album;\n\n config.active_index = parseInt(index);\n\n /*\n Set new information now that the song has changed.\n */\n afterSongChange(direct);\n }\n\n /**\n * Handles a song change in the playlist\n *\n * @access private\n * @prop {string} playlist - The playlist we are changing the song on.\n * @prop {object} song - The song we are changing to in the playlist.\n * @prop {number} index - The inded of the song we are changing to in the playlist.\n * @prop {boolean} direct - Determines if it was a direct click on the song. We\n * then don't care if shuffle is on or not\n */\n function changeSongPlaylist(playlist, song, index, direct = false) {\n /*\n Prepare the song change.\n */\n prepareSongChange(song);\n\n /*\n Change the song.\n */\n config.audio.src = song.url;\n config.active_metadata = song;\n config.active_album = song.album;\n config.active_index = null;\n\n config.playlists[playlist].active_index = parseInt(index);\n\n /*\n Set new information now that the song has changed.\n */\n afterSongChange(direct);\n }\n\n /**\n * Prepares a song change\n *\n * @access private\n * @prop {object} song - The song we change to.\n */\n function prepareSongChange(song) {\n /*\n Stop the current song.\n */\n Core.stop();\n\n /*\n Sync all of the elements to a stopped song.\n */\n PlayPauseElements.syncToPause();\n SongSliderElements.resetElements();\n SongPlayedProgressElements.resetElements();\n TimeElements.resetCurrentTimes();\n\n /*\n If an album changes, fire an album change.\n */\n if (Checks.newAlbum(song)) {\n Callbacks.run(\"album_change\");\n }\n }\n\n /**\n * Updates data on the display after a song has changed.\n *\n * @prop {boolean} direct - Determines if it was a direct click on the song.\n * We then don't care if shuffle is on or not.\n *\n * @access private\n */\n function afterSongChange(direct) {\n MetaDataElements.displayMetaData();\n ContainerElements.setActive(direct);\n TimeElements.resetDurationTimes();\n\n /*\n Run the song change callback.\n */\n Callbacks.run(\"song_change\");\n }\n\n /**\n * Sets the active playlist\n *\n * @access public\n * @param {string} playlist - The string of the playlist being set to active.\n */\n function setActivePlaylist(playlist) {\n /*\n If the active playlist is different than the playlist being set,\n we run the `playlist_changed` callback.\n */\n if (config.active_playlist != playlist) {\n Callbacks.run(\"playlist_changed\");\n /*\n Set the active playlist to the playlist parameter. Only need to\n set if it's different.\n */\n config.active_playlist = playlist;\n\n if (playlist != null) {\n config.playlists[playlist].active_index = 0;\n }\n }\n }\n\n /*\n Return the publically facing methods\n */\n return {\n setNext: setNext,\n setNextPlaylist: setNextPlaylist,\n setPrevious: setPrevious,\n setPreviousPlaylist: setPreviousPlaylist,\n changeSong: changeSong,\n changeSongPlaylist: changeSongPlaylist,\n setActivePlaylist: setActivePlaylist\n };\n})();\n\nexport default AudioNavigation;\n\n\n\n// WEBPACK FOOTER //\n// ./src/utilities/audioNavigation.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Handles the debugging of AmplitudeJS\n * @module utilities/Debug\n */\nlet Debug = (function() {\n /**\n * Writes out debug message to the console if enabled.\n *\n * Public Accessor: Debug.writeMessage( message )\n *\n * @access public\n * @param {string} message - The string that gets printed to alert the user of a debugging error.\n */\n function writeMessage(message) {\n /*\n If the user has flagged AmplitudeJS to debug, we print out a message\n to the console.\n */\n if (config.debug) {\n console.log(message);\n }\n }\n\n /*\n Returns the public facing methods\n */\n return {\n writeMessage: writeMessage\n };\n})();\n\nexport default Debug;\n\n\n\n// WEBPACK FOOTER //\n// ./src/utilities/debug.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * AmplitudeJS Checks Module. Checks for new songs, albums, and playlists\n *\n * @module utilities/Checks\n */\nlet Checks = (function() {\n /**\n * Checks to see if the new song to be played is different than the song\n * that is currently playing. To be true, the user would have selected\n * play on a new song with a new index. To be false, the user would have\n * clicked play/pause on the song that was playing.\n *\n * Public Accessor: Checks.newSong( playlist, songIndex )\n * @access public\n * @param {string} playlist - The playlist we are checking the new song for. Could be null\n * @param {number} songIndex - The index of the new song to be played.\n * @returns {boolean} True if we are setting a new song, false if we are not setting a new song.\n */\n function newSong(playlist, songIndex) {\n /*\n If the playlists don't match, then it's definitely a new song.\n */\n if (config.active_playlist != playlist) {\n return true;\n } else {\n /*\n If we aren't in a playlist, we check the active index.\n */\n if (config.active_playlist == null && playlist == null) {\n /*\n If the active indexes don't match, then it's a new song.\n */\n if (config.active_index != songIndex) {\n return true;\n } else {\n return false;\n }\n } else {\n /*\n If we are in a playlist, then we check to see if the\n new song index matches the active index.\n */\n if (\n config.active_playlist == playlist &&\n config.playlists[playlist].active_index != songIndex\n ) {\n return true;\n } else {\n return false;\n }\n }\n }\n }\n\n /**\n * Checks to see if there is a new album\n *\n * Public Accessor: Checks.newAlbum( album )\n *\n * @access public\n * @param {string} album - Checks to see if the new song will have a new album.\n * @returns {boolean} True if there is a new album, false if there is not a new ablum.\n */\n function newAlbum(album) {\n if (config.active_album != album) {\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * Checks to see if there is a new playlist\n *\n * Public Accessor: Checks.newPlaylist( playlist )\n *\n * @access public\n * @param {string} playlist - The playlist passed in to check against the active playlist.\n * @returns {boolean} True if there is a new playlist, false if there is not a new playlist.\n */\n function newPlaylist(playlist) {\n if (config.active_playlist != playlist) {\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * Determines if the string passed in is a URL or not\n *\n * Public Accessor: AmplitudeHelpers.isURL( url )\n *\n * @access public\n * @param {string} url - The string we are testing to see if it's a URL.\n * @returns {boolean} True if the string is a url, false if it is not.\n */\n function isURL(url) {\n /*\n\t\t\tTest the string against the URL pattern and return if it matches\n\t\t*/\n let pattern = /(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-\\/]))?/;\n\n return pattern.test(url);\n }\n\n /**\n * Determines if what is passed in is an integer or not.\n *\n * Public Accessor: AmplitudeHelpers.isInt( int )\n *\n * @access public\n * @param {string|number} int - The variable we are testing to see is an integer or not.\n * @returns {boolean} If the variable is an integer or not.\n */\n function isInt(int) {\n return (\n !isNaN(int) && parseInt(Number(int)) == int && !isNaN(parseInt(int, 10))\n );\n }\n\n /**\n * Returns public facing methods\n */\n return {\n newSong: newSong,\n newAlbum: newAlbum,\n newPlaylist: newPlaylist,\n isURL: isURL,\n isInt: isInt\n };\n})();\n\nexport default Checks;\n\n\n\n// WEBPACK FOOTER //\n// ./src/utilities/checks.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Handles the state of the config object.\n *\n * @module utilities/ConfigState\n */\nlet ConfigState = (function() {\n /**\n * Resets the config to the default state. This is called on initialize\n * to ensure the user's config is what matters.\n *\n * Public Accessor: AmplitudeHelpers.resetConfig()\n *\n * @access public\n */\n function resetConfig() {\n config.audio = new Audio();\n config.active_metadata = {};\n config.active_album = \"\";\n config.active_index = 0;\n config.active_playlist = null;\n config.playback_speed = 1.0;\n config.callbacks = {};\n config.songs = [];\n config.playlists = {};\n config.start_song = \"\";\n config.starting_playlist = \"\";\n config.starting_playlist_song = \"\";\n config.repeat = false;\n config.shuffle_list = {};\n config.shuffle_on = false;\n config.default_album_art = \"\";\n config.default_playlist_art = \"\";\n config.debug = false;\n config.volume = 0.5;\n config.pre_mute_volume = 0.5;\n config.volume_increment = 5;\n config.volume_decrement = 5;\n config.soundcloud_client = \"\";\n config.soundcloud_use_art = false;\n config.soundcloud_song_count = 0;\n config.soundcloud_songs_ready = 0;\n config.continue_next = true;\n }\n\n /**\n * Sets the state of the player.\n */\n function setPlayerState() {\n /*\n If paused and the current time is 0 the player is stopped.\n */\n if (config.audio.paused && config.audio.currentTime == 0) {\n config.player_state = \"stopped\";\n }\n\n /*\n If paused and the current time is greater than 0 the player is\n paused.\n */\n if (config.audio.paused && config.audio.currentTime > 0) {\n config.player_state = \"paused\";\n }\n\n /*\n If playing, the current state is playing.\n */\n if (!config.audio.paused) {\n config.player_state = \"playing\";\n }\n }\n\n /*\n\t\tReturns the public facing methods\n\t*/\n return {\n resetConfig: resetConfig,\n setPlayerState: setPlayerState\n };\n})();\n\nexport default ConfigState;\n\n\n\n// WEBPACK FOOTER //\n// ./src/utilities/configState.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * These methods help display the audio's meta data\n *\n * @module visual/MetaDataElements\n */\nlet MetaDataElements = (function() {\n /**\n * Displays the active song's metadata. This is called after a song has\n * been changed. This method takes the active song and displays the\n * metadata. So once the new active song is set, we update all of the\n * screen elements.\n *\n * @access public\n */\n function displayMetaData() {\n /*\n\t\t\tDefine the image meta data keys. These are managed separately\n\t\t\tsince we aren't actually changing the inner HTML of these elements.\n\t\t*/\n let imageMetaDataKeys = [\n \"cover_art_url\",\n \"station_art_url\",\n \"podcast_episode_cover_art_url\"\n ];\n\n /*\n\t\t\tGet all of the song info elements\n\t\t*/\n let songInfoElements = document.querySelectorAll(\n \"[data-amplitude-song-info]\"\n );\n\n /*\n\t\t\tIterate over all of the song info elements. We will either\n\t\t\tset these to the new values, or clear them if the active song\n\t\t\tdoesn't have the info set.\n\t\t*/\n for (let i = 0; i < songInfoElements.length; i++) {\n /*\n\t\t\t\tGet the info so we can check if the active meta data has the\n\t\t\t\tkey.\n\t\t\t*/\n let info = songInfoElements[i].getAttribute(\"data-amplitude-song-info\");\n\n /*\n\t\t\t\tGrab the playlist and song index.\n\t\t\t*/\n let playlist = songInfoElements[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let songIndex = songInfoElements[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n /*\n\t\t\t\tEnsure that we don't set any individual elements now. We set this with the\n\t\t\t\tsync meta data method. The reason we don't set them here is because\n\t\t\t\tall individual songs would get the now playing artwork. If the playlists\n\t\t\t\tmatch or the element is a main element meaning it doesn't\n\t\t\t\tbelong to a playlist or a song, then we set the song info.\n\t\t\t*/\n if (\n songIndex == null &&\n (config.active_playlist == playlist ||\n (playlist == null && songIndex == null))\n ) {\n /*\n\t\t\t\t\tIf the active metadata has the key, then we set it,\n\t\t\t\t\totherwise we clear it. If it's an image element then\n\t\t\t\t\twe default it to the default info if needed.\n\t\t\t\t*/\n let val = (config.active_metadata[info] != undefined) ? config.active_metadata[info] : null;\n if (imageMetaDataKeys.indexOf(info) >= 0) {\n val = val || config.default_album_art\n songInfoElements[i].setAttribute(\n \"src\",\n val\n );\n } else {\n val = val || \"\"\n songInfoElements[i].innerHTML = val;\n }\n }\n }\n }\n\n /**\n * Displays the playlist meta data.\n */\n function displayPlaylistMetaData() {\n /*\n\t\t\tDefine the image meta data keys. These are managed separately\n\t\t\tsince we aren't actually changing the inner HTML of these elements.\n\t\t*/\n let imageMetaDataKeys = [\"image_url\"];\n\n /*\n\t\t\tGet all of the playlist info elements\n\t\t*/\n let playlistInfoElements = document.querySelectorAll(\n \"[data-amplitude-playlist-info]\"\n );\n\n /*\n\t\t\tIterate over all of the playlist info elements. We will either\n\t\t\tset these to the new values, or clear them if the active song\n\t\t\tdoesn't have the info set.\n\t\t*/\n for (let i = 0; i < playlistInfoElements.length; i++) {\n /*\n\t\t\t\tGet the info so we can check if the active meta data has the\n\t\t\t\tkey.\n\t\t\t*/\n let info = playlistInfoElements[i].getAttribute(\n \"data-amplitude-playlist-info\"\n );\n let playlist = playlistInfoElements[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n\n if (config.playlists[playlist][info] != undefined) {\n if (imageMetaDataKeys.indexOf(info) >= 0) {\n playlistInfoElements[i].setAttribute(\n \"src\",\n config.playlists[playlist][info]\n );\n } else {\n playlistInfoElements[i].innerHTML = config.playlists[playlist][info];\n }\n } else {\n /*\n\t\t\t\t\tWe look for the default album art because\n\t\t\t\t\tthe actual key didn't exist. If the default album\n\t\t\t\t\tart doesn't exist then we set the src attribute\n\t\t\t\t\tto null.\n\t\t\t\t*/\n if (imageMetaDataKeys.indexOf(info) >= 0) {\n if (config.default_playlist_art != \"\") {\n playlistInfoElements[i].setAttribute(\n \"src\",\n config.default_playlist_art\n );\n } else {\n playlistInfoElements[i].setAttribute(\"src\", \"\");\n }\n } else {\n playlistInfoElements[i].innerHTML = \"\";\n }\n }\n }\n }\n\n /**\n * Sets the first song in the playlist. This is used to fill in the meta\n * data in the playlist\n *\n * @param {object} song \t\t\t- The song we are setting to be the first song in the playlist\n * @param {string} playlist \t- Key of the playlist we are setting the first song in\n */\n function setFirstSongInPlaylist(song, playlist) {\n /*\n Define the image meta data keys. These are managed separately\n since we aren't actually changing the inner HTML of these elements.\n */\n let imageMetaDataKeys = [\n \"cover_art_url\",\n \"station_art_url\",\n \"podcast_episode_cover_art_url\"\n ];\n\n /*\n Get all of the song info elements\n */\n let songInfoElements = document.querySelectorAll(\n '[data-amplitude-song-info][data-amplitude-playlist=\"' + playlist + '\"]'\n );\n\n /*\n Iterate over all of the song info elements. We will either\n set these to the new values, or clear them if the active song\n doesn't have the info set.\n */\n for (let i = 0; i < songInfoElements.length; i++) {\n /*\n Get the info so we can check if the active meta data has the\n key.\n */\n let info = songInfoElements[i].getAttribute(\"data-amplitude-song-info\");\n\n /*\n Get the song info element playlist.\n */\n let elementPlaylist = songInfoElements[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n\n /*\n If the playlists match or the element is a main element, then\n we set the song info.\n */\n if (elementPlaylist == playlist) {\n /*\n If the active metadata has the key, then we set it,\n otherwise we clear it. If it's an image element then\n we default it to the default info if needed.\n */\n if (song[info] != undefined) {\n if (imageMetaDataKeys.indexOf(info) >= 0) {\n songInfoElements[i].setAttribute(\"src\", song[info]);\n } else {\n songInfoElements[i].innerHTML = song[info];\n }\n } else {\n /*\n We look for the default album art because\n the actual key didn't exist. If the default album\n art doesn't exist then we set the src attribute\n to null.\n */\n if (imageMetaDataKeys.indexOf(info) >= 0) {\n if (song.default_album_art != \"\") {\n songInfoElements[i].setAttribute(\"src\", song.default_album_art);\n } else {\n songInfoElements[i].setAttribute(\"src\", \"\");\n }\n } else {\n songInfoElements[i].innerHTML = \"\";\n }\n }\n }\n }\n }\n\n /**\n * Sets the meta data for songs loaded in the songs array\n */\n function syncMetaData() {\n /*\n\t\t Define the image meta data keys. These are managed separately\n\t\t since we aren't actually changing the inner HTML of these elements.\n\t */\n let imageMetaDataKeys = [\n \"cover_art_url\",\n \"station_art_url\",\n \"podcast_episode_cover_art_url\"\n ];\n\n /*\n\t\t Get all of the song info elements\n\t */\n let songInfoElements = document.querySelectorAll(\n \"[data-amplitude-song-info]\"\n );\n\n /*\n\t\t Iterate over all of the song info elements. We will either\n\t\t set these to the new values, or clear them if the active song\n\t\t doesn't have the info set.\n\t */\n for (let i = 0; i < songInfoElements.length; i++) {\n let songIndex = songInfoElements[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n let playlist = songInfoElements[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n\n if (songIndex != null && playlist == null) {\n let info = songInfoElements[i].getAttribute(\"data-amplitude-song-info\");\n\n /*\n Get the song info value referenced on the element. Depending on the type of\n element, we may need to fallback to another value when the direct value\n we want isn't found.\n i.e.\n data-amplitude-song-info=\"cover_art_url\" defaults to using the value\n of \"default_album_art\" when \"cover_art_url\" is missing on the song.\n */\n let val = config.songs[songIndex][info] != undefined ? config.songs[songIndex][info] : null;\n /*\n If it's an image meta data key, then we set the src attribute of\n the element. Otherwise we set the inner HTML of the element.\n */\n if (imageMetaDataKeys.indexOf(info) >= 0) {\n /*\n If this is an image meta data key and the individual song doesn't\n have the key, use the default_album_art\n */\n val = val || config.default_album_art\n songInfoElements[i].setAttribute(\n \"src\",\n val\n );\n } else {\n songInfoElements[i].innerHTML = val;\n }\n }\n\n /*\n If the song index and playlist are not null, continue.\n */\n if (songIndex != null && playlist != null) {\n /*\n Get the info we are displaying.\n */\n let info = songInfoElements[i].getAttribute(\"data-amplitude-song-info\");\n\n /*\n Set the meta data accordingly.\n */\n if (config.playlists[playlist].songs[songIndex][info] != undefined) {\n if (imageMetaDataKeys.indexOf(info) >= 0) {\n songInfoElements[i].setAttribute(\n \"src\",\n config.playlists[playlist].songs[songIndex][info]\n );\n } else {\n songInfoElements[i].innerHTML =\n config.playlists[playlist].songs[songIndex][info];\n }\n }\n }\n }\n\n /*\n Display the playlist meta data.\n */\n displayPlaylistMetaData();\n }\n\n /**\n * Returns publically facing methods\n */\n return {\n displayMetaData: displayMetaData,\n setFirstSongInPlaylist: setFirstSongInPlaylist,\n syncMetaData: syncMetaData,\n displayPlaylistMetaData: displayPlaylistMetaData\n };\n})();\n\nexport default MetaDataElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/metaDataElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Handles all of the visual syncing to the state of the config for the repeat\n * elements.\n *\n * @module visual/RepeatElements\n */\nlet RepeatElements = (function() {\n /**\n * Syncs repeat for all of the repeat buttons. Users\n * can apply styles to the 'amplitude-repeat-on' and\n * 'amplitude-repeat-off' classes. They represent the state\n * of the player.\n */\n function syncRepeat() {\n /*\n\t\t\tGets all of the repeat classes\n\t\t*/\n let repeatClasses = document.getElementsByClassName(\"amplitude-repeat\");\n\n /*\n\t\t\tIterate over all of the repeat classes. If repeat is on,\n\t\t\tthen add the 'amplitude-repeat-on' class and remove the\n\t\t\t'amplitude-repeat-off' class. If it's off, then do the\n\t\t\topposite.\n\t\t*/\n for (let i = 0; i < repeatClasses.length; i++) {\n if (config.repeat) {\n repeatClasses[i].classList.add(\"amplitude-repeat-on\");\n repeatClasses[i].classList.remove(\"amplitude-repeat-off\");\n } else {\n repeatClasses[i].classList.remove(\"amplitude-repeat-on\");\n repeatClasses[i].classList.add(\"amplitude-repeat-off\");\n }\n }\n }\n\n /**\n * Syncs repeat for all of the playlist repeat buttons. Users\n * can apply styles to the `amplitude-repeat-on` and `amplitude-repeat-off`\n * classes. They repreent the state of the playlist in the player.\n */\n function syncRepeatPlaylist(playlist) {\n /*\n\t\t\t Gets all of the repeat buttons.\n\t\t */\n let repeatButtons = document.getElementsByClassName(\"amplitude-repeat\");\n\n /*\n\t\t\t Iterate over all of the repeat buttons\n\t\t */\n for (let i = 0; i < repeatButtons.length; i++) {\n /*\n\t\t\t\t Ensure that the repeat button belongs to matches the\n\t\t\t\t playlist we are syncing the state for.\n\t\t\t */\n if (\n repeatButtons[i].getAttribute(\"data-amplitude-playlist\") == playlist\n ) {\n /*\n\t\t\t\t\t If the state of the playlist is shuffled on, true, then\n\t\t\t\t\t we add the 'amplitude-repeat-on' class and remove the\n\t\t\t\t\t 'amplitude-repeat-off' class. If the player is not shuffled\n\t\t\t\t\t then we do the opposite.\n\t\t\t\t */\n if (config.playlists[playlist].repeat) {\n repeatButtons[i].classList.add(\"amplitude-repeat-on\");\n repeatButtons[i].classList.remove(\"amplitude-repeat-off\");\n } else {\n repeatButtons[i].classList.add(\"amplitude-repeat-off\");\n repeatButtons[i].classList.remove(\"amplitude-repeat-on\");\n }\n }\n }\n }\n\n /**\n * Syncs repeat for all of the repeat song buttons. Users\n * can apply styles to the 'amplitude-repeat-song-on' and\n * 'amplitude-repeat-song-off' classes. They represent the state\n * of the player.\n */\n function syncRepeatSong() {\n /*\n\t\t\tGets all of the repeat song classes\n\t\t*/\n let repeatSongClasses = document.getElementsByClassName(\n \"amplitude-repeat-song\"\n );\n\n /*\n\t\t\tIterate over all of the repeat song classes. If repeat is on,\n\t\t\tthen add the 'amplitude-repeat-song-on' class and remove the\n\t\t\t'amplitude-repeat-song-off' class. If it's off, then do the\n\t\t\topposite.\n\t\t*/\n for (let i = 0; i < repeatSongClasses.length; i++) {\n if (config.repeat_song) {\n repeatSongClasses[i].classList.add(\"amplitude-repeat-song-on\");\n repeatSongClasses[i].classList.remove(\"amplitude-repeat-song-off\");\n } else {\n repeatSongClasses[i].classList.remove(\"amplitude-repeat-song-on\");\n repeatSongClasses[i].classList.add(\"amplitude-repeat-song-off\");\n }\n }\n }\n\n /*\n Returns the publically available methods.\n */\n return {\n syncRepeat: syncRepeat,\n syncRepeatPlaylist: syncRepeatPlaylist,\n syncRepeatSong: syncRepeatSong\n };\n})();\n\nexport default RepeatElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/repeatElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the debug module\n * @module utilities/debug\n */\nimport Debug from \"./debug.js\";\n\n/**\n * AmplitudeJS Callback Utility\n *\n * @module utilities/callbacks\n */\nlet Callbacks = (function() {\n /**\n * Initializes the callbacks for the player.\n */\n function initialize() {\n /*\n Event: abort\n https://www.w3schools.com/tags/av_event_abort.asp\n */\n config.audio.addEventListener(\"abort\", function() {\n run(\"abort\");\n });\n\n /*\n Event: error\n https://www.w3schools.com/tags/av_event_error.asp\n */\n config.audio.addEventListener(\"error\", function() {\n run(\"error\");\n });\n\n /*\n Event: loadeddata\n https://www.w3schools.com/tags/av_event_loadeddata.asp\n */\n config.audio.addEventListener(\"loadeddata\", function() {\n run(\"loadeddata\");\n });\n\n /*\n Event: loadedmetadata\n https://www.w3schools.com/tags/av_event_loadedmetadata.asp\n */\n config.audio.addEventListener(\"loadedmetadata\", function() {\n run(\"loadedmetadata\");\n });\n\n /*\n Event: loadstart\n https://www.w3schools.com/tags/av_event_loadstart.asp\n */\n config.audio.addEventListener(\"loadstart\", function() {\n run(\"loadstart\");\n });\n\n /*\n Event: pause\n https://www.w3schools.com/tags/av_event_pause.asp\n */\n config.audio.addEventListener(\"pause\", function() {\n run(\"pause\");\n });\n\n /*\n Event: playing\n https://www.w3schools.com/tags/av_event_playing.asp\n */\n config.audio.addEventListener(\"playing\", function() {\n run(\"playing\");\n });\n\n /*\n Event: play\n https://www.w3schools.com/tags/av_event_play.asp\n */\n config.audio.addEventListener(\"play\", function() {\n run(\"play\");\n });\n\n /*\n Event: progress\n https://www.w3schools.com/tags/av_event_progress.asp\n */\n config.audio.addEventListener(\"progress\", function() {\n run(\"progress\");\n });\n\n /*\n Event: ratechange\n https://www.w3schools.com/tags/av_event_ratechange.asp\n */\n config.audio.addEventListener(\"ratechange\", function() {\n run(\"ratechange\");\n });\n\n /*\n Event: seeked\n https://www.w3schools.com/tags/av_event_seeked.asp\n */\n config.audio.addEventListener(\"seeked\", function() {\n run(\"seeked\");\n });\n\n /*\n Event: seeking\n https://www.w3schools.com/tags/av_event_seeking.asp\n */\n config.audio.addEventListener(\"seeking\", function() {\n run(\"seeking\");\n });\n\n /*\n Event: stalled\n https://www.w3schools.com/tags/av_event_stalled.asp\n */\n config.audio.addEventListener(\"stalled\", function() {\n run(\"stalled\");\n });\n\n /*\n Event: suspend\n https://www.w3schools.com/tags/av_event_suspend.asp\n */\n config.audio.addEventListener(\"suspend\", function() {\n run(\"suspend\");\n });\n\n /*\n Event: timeupdate\n https://www.w3schools.com/tags/av_event_timeupdate.asp\n */\n config.audio.addEventListener(\"timeupdate\", function() {\n run(\"timeupdate\");\n });\n\n /*\n Event: volumechange\n https://www.w3schools.com/tags/av_event_volumechange.asp\n */\n config.audio.addEventListener(\"volumechange\", function() {\n run(\"volumechange\");\n });\n\n /*\n Event: waiting\n https://www.w3schools.com/tags/av_event_waiting.asp\n */\n config.audio.addEventListener(\"waiting\", function() {\n run(\"waiting\");\n });\n\n /*\n Event: canplay\n https://www.w3schools.com/tags/av_event_canplay.asp\n */\n config.audio.addEventListener(\"canplay\", function() {\n run(\"canplay\");\n });\n\n /*\n Event: canplaythrough\n https://www.w3schools.com/tags/av_event_canplaythrough.asp\n */\n config.audio.addEventListener(\"canplaythrough\", function() {\n run(\"canplaythrough\");\n });\n\n /*\n Event: durationchange\n https://www.w3schools.com/tags/av_event_durationchange.asp\n */\n config.audio.addEventListener(\"durationchange\", function() {\n run(\"durationchange\");\n });\n\n /*\n Event: ended\n https://www.w3schools.com/tags/av_event_ended.asp\n */\n config.audio.addEventListener(\"ended\", function() {\n run(\"ended\");\n });\n }\n\n /**\n * Runs a user defined callback method\n *\n * Public Accessor: Callbacks.run( callbackName )\n *\n * @access public\n * @param {string} callbackName - The name of the callback we are going to run.\n */\n function run(callbackName) {\n /*\n Checks to see if a user defined a callback method for the\n callback we are running.\n */\n if (config.callbacks[callbackName]) {\n /*\n Build the callback function\n */\n let callbackFunction = config.callbacks[callbackName];\n\n /*\n Write a debug message stating the callback we are running\n */\n Debug.writeMessage(\"Running Callback: \" + callbackName);\n\n /*\n Run the callback function and catch any errors\n */\n try {\n callbackFunction();\n } catch (error) {\n if (error.message == \"CANCEL EVENT\") {\n throw error;\n } else {\n Debug.writeMessage(\"Callback error: \" + error.message);\n }\n }\n }\n }\n\n return {\n initialize: initialize,\n run: run\n };\n})();\n\nexport default Callbacks;\n\n\n\n// WEBPACK FOOTER //\n// ./src/utilities/callbacks.js","/**\n * Handles the visual state for all of the mute elements.\n *\n * @module visual/MuteElements\n */\nlet MuteElements = (function() {\n /**\n * Syncs mute for all of the mute buttons. This represents the\n * state of the player if it's muted or not.\n *\n * @access public\n * @param {string} state \t- The muted state of the player.\n */\n function setMuted(state) {\n /*\n\t\t\tGet all of the mute buttons.\n\t\t*/\n let muteClasses = document.getElementsByClassName(\"amplitude-mute\");\n\n /*\n\t\t\tIterate over all of the mute classes. If the state of the player\n\t\t\tis not-muted then we add the amplitude-not-muted classe and remove\n\t\t\tthe amplitude muted class otherwise we do the opposite.\n\t\t*/\n for (let i = 0; i < muteClasses.length; i++) {\n if (!state) {\n muteClasses[i].classList.add(\"amplitude-not-muted\");\n muteClasses[i].classList.remove(\"amplitude-muted\");\n } else {\n muteClasses[i].classList.remove(\"amplitude-not-muted\");\n muteClasses[i].classList.add(\"amplitude-muted\");\n }\n }\n }\n\n return {\n setMuted: setMuted\n };\n})();\n\nexport default MuteElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/muteElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Keeps the volume slider elements in sync.\n * @module visual/VolumeSliderElements\n */\nlet VolumeSliderElements = (function() {\n /**\n * Visually syncs the volume sliders so they are all the same if there\n * are more than one.\n *\n * @access public\n */\n function sync() {\n let volumeSliders = document.getElementsByClassName(\n \"amplitude-volume-slider\"\n );\n\n /*\n\t\t\tIterates over all of the volume sliders for the song, setting the value\n\t\t\tto the config value.\n\t\t*/\n for (let i = 0; i < volumeSliders.length; i++) {\n volumeSliders[i].value = config.audio.volume * 100;\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n sync: sync\n };\n})();\n\nexport default VolumeSliderElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/volumeSliderElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * AmplitudeJS Repeater utility. Handles setting the repeat for all scenarios.\n *\n * @module utilities/Repeater\n */\nlet Repeater = (function() {\n /**\n * Sets the state of the repeat for a song.\n *\n * @access public\n * @param {boolean} repeat - A boolean representing whether the repeat should be on or off\n */\n function setRepeat(repeat) {\n /*\n Set the global repeat to be toggled\n */\n config.repeat = repeat;\n }\n\n /**\n * Sets the state of the repeat for a playlist.\n *\n * @access public\n * @param {boolean} repeat - A boolean representing whether the repeat should be on or off\n * @param {string} playlist - The key of the playlist for repeating\n */\n function setRepeatPlaylist(repeat, playlist) {\n /*\n Set the playlist repeat to be toggled.\n */\n config.playlists[playlist].repeat = repeat;\n }\n\n /**\n * Sets the state of the repeat song\n *\n * @access public\n * @param {boolean} repeat - A boolean representing whether the repeat shoudl be on or off for the song.\n */\n function setRepeatSong(repeat) {\n config.repeat_song = repeat;\n }\n\n /*\n Returns the public facing methods\n */\n return {\n setRepeat: setRepeat,\n setRepeatPlaylist: setRepeatPlaylist,\n setRepeatSong: setRepeatSong\n };\n})();\n\nexport default Repeater;\n\n\n\n// WEBPACK FOOTER //\n// ./src/utilities/repeater.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * AmplitudeJS Shuffle Module. Handles all of the shuffling functionality for\n * AmplitudeJS\n *\n * @module utilities/Shuffler\n */\nlet Shuffler = (function() {\n /**\n * Sets the shuffle state globally\n *\n * @access public\n * @param {boolean} shuffle - True when we are shuffling, false when we turn it off.\n */\n function setShuffle(shuffle) {\n config.shuffle_on = shuffle;\n\n if (shuffle) {\n shuffleSongs();\n } else {\n config.shuffle_list = [];\n }\n }\n\n /**\n * Toggles the shuffle status globally.\n *\n * @access public\n */\n function toggleShuffle() {\n /*\n If shuffle is on, we toggle it off. If shuffle is off, we\n toggle on.\n */\n if (config.shuffle_on) {\n config.shuffle_on = false;\n config.shuffle_list = [];\n } else {\n config.shuffle_on = true;\n shuffleSongs();\n }\n }\n\n /**\n * Sets the shuffle state for a playlist\n *\n * @access public\n * @param {string} playlist The key of the playlist we are shuffling.\n * @param {boolean} shuffle True when we are shuffling the playlist, false when we turn off shuffle.\n */\n function setShufflePlaylist(playlist, shuffle) {\n config.playlists[playlist].shuffle = shuffle;\n\n if (config.playlists[playlist].shuffle) {\n shufflePlaylistSongs(playlist);\n } else {\n config.playlists[playlist].shuffle_list = [];\n }\n }\n\n /**\n * Sets the shuffle state for a playlist\n *\n * @access public\n * @param {string} playlist The key of the playlist we are shuffling.\n */\n function toggleShufflePlaylist(playlist) {\n /*\n If the playlist shuffled is on, we toggle it off. If the\n playlist shuffled is off, we toggle it on.\n */\n if (config.playlists[playlist].shuffle) {\n config.playlists[playlist].shuffle = false;\n config.playlists[playlist].shuffle_list = [];\n } else {\n config.playlists[playlist].shuffle = true;\n shufflePlaylistSongs(playlist);\n }\n }\n\n /**\n * Shuffles individual songs in the config\n * Based off of: http://www.codinghorror.com/blog/2007/12/the-danger-of-naivete.html\n *\n * Public Accessor: Shuffle.shuffleSongs()\n *\n * @access public\n */\n function shuffleSongs() {\n /*\n\t\t\tBuilds a temporary array with the length of the config.\n\t\t*/\n let shuffleTemp = new Array(config.songs.length);\n\n /*\n\t\t\tSet the temporary array equal to the songs array.\n\t\t*/\n for (let i = 0; i < config.songs.length; i++) {\n shuffleTemp[i] = config.songs[i];\n }\n\n /*\n\t\t\tIterate ove rthe songs and generate random numbers to\n\t\t\tswap the indexes of the shuffle array.\n\t\t*/\n for (let i = config.songs.length - 1; i > 0; i--) {\n let randNum = Math.floor(Math.random() * config.songs.length + 1);\n shuffleSwap(shuffleTemp, i, randNum - 1);\n }\n\n /*\n\t\t\tSet the shuffle list to the shuffle temp.\n\t\t*/\n config.shuffle_list = shuffleTemp;\n }\n\n /**\n * Shuffle songs in a playlist\n *\n * Public Accessor: Shuffle.shufflePlaylistSongs( playlist )\n *\n * @access public\n * @param {string} playlist - The playlist we are shuffling.\n */\n function shufflePlaylistSongs(playlist) {\n /*\n Builds a temporary array with the length of the playlist songs.\n */\n let shuffleTemp = new Array(config.playlists[playlist].songs.length);\n\n /*\n Set the temporary array equal to the playlist array.\n */\n for (let i = 0; i < config.playlists[playlist].songs.length; i++) {\n shuffleTemp[i] = config.playlists[playlist].songs[i];\n }\n\n /*\n Iterate ove rthe songs and generate random numbers to\n swap the indexes of the shuffle array.\n */\n for (let i = config.playlists[playlist].songs.length - 1; i > 0; i--) {\n let randNum = Math.floor(\n Math.random() * config.playlists[playlist].songs.length + 1\n );\n shuffleSwap(shuffleTemp, i, randNum - 1);\n }\n\n /*\n Set the shuffle list to the shuffle temp.\n */\n config.playlists[playlist].shuffle_list = shuffleTemp;\n }\n\n /**\n * Swaps and randomizes the song shuffle.\n *\n * @access private\n * @param {object} shuffleList \t- The list of songs that is going to be shuffled\n * @param {number} original \t\t- The original index of he song in the songs array\n * @param {number} random \t\t\t- The randomized index that will be the new index of the song in the shuffle array.\n */\n function shuffleSwap(shuffleList, original, random) {\n let temp = shuffleList[original];\n shuffleList[original] = shuffleList[random];\n shuffleList[random] = temp;\n }\n\n /**\n * Returns public facing methods\n */\n return {\n setShuffle: setShuffle,\n toggleShuffle: toggleShuffle,\n setShufflePlaylist: setShufflePlaylist,\n toggleShufflePlaylist: toggleShufflePlaylist,\n shuffleSongs: shuffleSongs,\n shufflePlaylistSongs: shufflePlaylistSongs\n };\n})();\n\nexport default Shuffler;\n\n\n\n// WEBPACK FOOTER //\n// ./src/utilities/shuffler.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Defines the visual representation of AmplitudeJS song slider elements.\n * @module visual/SongSliderElements\n */\nlet SongSliderElements = (function() {\n /**\n * Syncs all of the song slider elements.\n *\n * @access public\n * @param {number} location \t- The location of the song as a percentage.\n * @param {string} playlist \t- The playlist we are setting the song slider for.\n * @param {number} songIndex \t- The index of the song we are adjusting the song slider for.\n */\n function sync(location, playlist, songIndex) {\n syncMain(location);\n syncPlaylist(location, playlist);\n syncSong(location, songIndex);\n syncSongInPlaylist(location, playlist);\n }\n\n /**\n * Syncs the main slider location\n *\n * @access public\n * @param {number} location \t- The location of the song as a percentage.\n */\n function syncMain(location) {\n /*\n\t\t\tEnsure we have a location that's a number\n\t\t*/\n location = !isNaN(location) ? location : 0;\n\n /*\n\t\t\tGets the main song sliders\n\t\t*/\n const mainSongSliders = document.querySelectorAll(\".amplitude-song-slider\");\n\n /*\n\t\t\tIterates over all of the main sliders and sets the value to the\n\t\t\tpercentage of the song played.\n\t\t*/\n for (let i = 0; i < mainSongSliders.length; i++) {\n /*\n Grab the playlist and song attributes from the element.\n */\n let playlist = mainSongSliders[i].getAttribute(\"data-amplitude-playlist\");\n let song = mainSongSliders[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n This method is responsible for only the global elements,\n so we make sure there are no playlist or songs defined on\n the element.\n */\n if (playlist == null && song == null) {\n mainSongSliders[i].value = location;\n }\n }\n }\n\n /**\n * Syncs playlist song slider locations\n *\n * @access public\n * @param {number} location \t- The location of the song as a percentage.\n * @param {string} playlist \t- The playlist we are setting the song slider for.\n */\n function syncPlaylist(location, playlist) {\n /*\n\t\t\tEnsure we have a location that's a number\n\t\t*/\n location = !isNaN(location) ? location : 0;\n\n /*\n\t\t\tGets the playlist song sliders\n\t\t*/\n const playlistSongSliders = document.querySelectorAll(\n '.amplitude-song-slider[data-amplitude-playlist=\"' + playlist + '\"]'\n );\n\n /*\n\t\t\tIterates over all of the playlist sliders and sets the value to the\n\t\t\tpercentage of the song played.\n\t\t*/\n for (let i = 0; i < playlistSongSliders.length; i++) {\n /*\n Grab the playlist and song attributes from the element.\n */\n let playlistAttribute = playlistSongSliders[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let songAttribute = playlistSongSliders[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n /*\n\t\t\t\tThis method is responsible for only the playlist elements,\n\t\t\t\tso we make sure the playlist attribute matches what is passed\n\t\t\t\tin.\n\t\t\t*/\n if (playlistAttribute == playlist && songAttribute == null) {\n playlistSongSliders[i].value = location;\n }\n }\n }\n\n /**\n * Syncs individual song slider locations\n *\n * @access public\n * @param {number} location \t- The location of the song as a percentage.\n * @param {number} songIndex \t- The index of the song we are adjusting the song slider for.\n */\n function syncSong(location, songIndex) {\n /*\n\t\t\tWe only want to sync song sliders if the playlist is null.\n\t\t*/\n if (config.active_playlist == null) {\n /*\n\t\t\t\tEnsure we have a location that's a number\n\t\t\t*/\n location = !isNaN(location) ? location : 0;\n\n /*\n\t\t\t\tGets the individual song sliders\n\t\t\t*/\n const songSliders = document.querySelectorAll(\n '.amplitude-song-slider[data-amplitude-song-index=\"' + songIndex + '\"]'\n );\n\n /*\n\t\t\t\tIterates over all of the individual song sliders and sets the value\n\t\t\t\tto the percentage of the song played.\n\t\t\t*/\n for (let i = 0; i < songSliders.length; i++) {\n /*\n\t Grab the playlist and song attributes from the element.\n\t */\n let playlistAttribute = songSliders[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let songAttribute = songSliders[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n /*\n\t\t\t\t\tThis method is responsible for only the playlist elements,\n\t\t\t\t\tso we make sure the playlist attribute matches what is passed\n\t\t\t\t\tin.\n\t\t\t\t*/\n if (playlistAttribute == null && songAttribute == songIndex) {\n songSliders[i].value = location;\n }\n }\n }\n }\n\n /**\n * Syncs individual song slider locations\n *\n * @access public\n * @param {number} location \t- The location of the song as a percentage.\n * @param {string} playlist \t- The playlist we are setting the song slider for.\n */\n function syncSongInPlaylist(location, playlist) {\n /*\n\t\t\tEnsure we have a location that's a number\n\t\t*/\n location = !isNaN(location) ? location : 0;\n\n let activePlaylistIndex =\n config.active_playlist != \"\" && config.active_playlist != null\n ? config.playlists[config.active_playlist].active_index\n : null;\n\n /*\n\t\t\tGets the song in playlist sliders\n\t\t*/\n const songInPlaylistSliders = document.querySelectorAll(\n '.amplitude-song-slider[data-amplitude-playlist=\"' +\n playlist +\n '\"][data-amplitude-song-index=\"' +\n activePlaylistIndex +\n '\"]'\n );\n\n /*\n\t\t\tIterates over all of the song in playlist sliders and sets the value\n\t\t\tto the percentage of the song played.\n\t\t*/\n for (let i = 0; i < songInPlaylistSliders.length; i++) {\n songInPlaylistSliders[i].value = location;\n }\n }\n\n /**\n * Visually syncs the song sliders back to 0. This usually happens when\n * a song has changed, we ensure that all song sliders get reset.\n *\n * @access public\n */\n function resetElements() {\n let songSliders = document.getElementsByClassName(\"amplitude-song-slider\");\n\n /*\n\t\t\tIterate over all of the song sliders and set them to\n\t\t\t0 essentially resetting them.\n\t\t*/\n for (let i = 0; i < songSliders.length; i++) {\n songSliders[i].value = 0;\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n sync: sync,\n syncMain: syncMain,\n syncPlaylist: syncPlaylist,\n syncSong: syncSong,\n syncSongInPlaylist: syncSongInPlaylist,\n resetElements: resetElements\n };\n})();\n\nexport default SongSliderElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/songSliderElements.js","/**\n * Imports the AmplitudeJS Current Time\n * @module visual/time/CurrentTimeElements\n */\nimport CurrentTimeElements from \"./time/currentTimeElements.js\";\n\n/**\n * Imports the AmplitudeJS Current Hour Elements\n * @module visual/time/CurrentHourElements\n */\nimport CurrentHourElements from \"./time/currentHourElements.js\";\n\n/**\n * Imports the AmplitudeJS Current Minute Elements\n * @module visual/time/CurrentMinuteElements\n */\nimport CurrentMinuteElements from \"./time/currentMinuteElements.js\";\n\n/**\n * Imports the AmplitudeJS Current Second Elements\n * @module visual/time/CurrentTimeElements\n */\nimport CurrentSecondElements from \"./time/currentSecondElements.js\";\n\n/**\n * Imports the AmplitudeJS Duration Count Down Time Elements\n * @module visual/time/DurationCountDownTimeElements\n */\nimport DurationCountDownTimeElements from \"./time/durationCountDownTimeElements.js\";\n\n/**\n * Imports the AmplitudeJS Duration Hour Elements\n * @module visual/time/DurationHourElements\n */\nimport DurationHourElements from \"./time/durationHourElements.js\";\n\n/**\n * Imports the AmplitudeJS Duration Minute Elements\n * @module visual/time/DurationMinuteElements\n */\nimport DurationMinuteElements from \"./time/durationMinuteElements.js\";\n\n/**\n * Imports the AmplitudeJS Duration Second Elements\n * @module visual/time/DurationSecondElements\n */\nimport DurationSecondElements from \"./time/durationSecondElements.js\";\n\n/**\n * Imports the AmplitudeJS Duration Time Elements\n * @module visual/time/DurationTimeElements\n */\nimport DurationTimeElements from \"./time/durationTimeElements.js\";\n\n/**\n * Time Elements Interface. This allows us to update all of the sub time elements\n * through one central point.\n * @module visual/TimeElements\n */\nlet TimeElements = (function() {\n /**\n * Resets the current times.\n */\n function resetCurrentTimes() {\n CurrentTimeElements.resetTimes();\n CurrentHourElements.resetTimes();\n CurrentMinuteElements.resetTimes();\n CurrentSecondElements.resetTimes();\n }\n\n /**\n * Syncs the current time elements to the time provided.\n *\n * @param {Object} currentTime - An object representing the current time of the audio.\n */\n function syncCurrentTimes(currentTime) {\n CurrentTimeElements.sync(currentTime);\n CurrentHourElements.sync(currentTime.hours);\n CurrentMinuteElements.sync(currentTime.minutes);\n CurrentSecondElements.sync(currentTime.seconds);\n }\n\n /**\n * Resets the duration times.\n */\n function resetDurationTimes() {\n DurationCountDownTimeElements.resetTimes();\n DurationHourElements.resetTimes();\n DurationMinuteElements.resetTimes();\n DurationSecondElements.resetTimes();\n DurationTimeElements.resetTimes();\n }\n\n /**\n * Syncs the duration times to the times provided.\n *\n * @param {Object} currentTime - An object representing the current time of the audio.\n * @param {Object} songDuration - An object representing the duration of the audio\n */\n function syncDurationTimes(currentTime, songDuration) {\n DurationCountDownTimeElements.sync(currentTime, songDuration);\n DurationTimeElements.sync(songDuration);\n DurationHourElements.sync(songDuration.hours);\n DurationMinuteElements.sync(songDuration.minutes);\n DurationSecondElements.sync(songDuration.seconds);\n }\n\n /**\n * Returns the publically accessible methods.\n */\n return {\n resetCurrentTimes: resetCurrentTimes,\n syncCurrentTimes: syncCurrentTimes,\n resetDurationTimes: resetDurationTimes,\n syncDurationTimes: syncDurationTimes\n };\n})();\n\nexport default TimeElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/timeElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the debug module\n * @module utilities/Debug\n */\nimport Debug from \"../utilities/debug.js\";\n\n/**\n * Handles the visualizations elements.\n *\n * @module Visualizations\n */\nlet Visualizations = (function() {\n /**\n * Runs all of the visualizations on the screen.\n */\n function run() {\n /*\n Get all of the visualization elements on the page\n */\n let visualizationElements = document.querySelectorAll(\n \".amplitude-visualization\"\n );\n\n /*\n If the web audio API is available, we display the visualizations.\n */\n if (config.web_audio_api_available) {\n /*\n If the visualization has not started, there are visualizations available,\n and we have at least one visualization element, then we continue.\n */\n if (\n Object.keys(config.visualizations.available).length > 0 &&\n visualizationElements.length > 0\n ) {\n /*\n Iterate over all of the visualizations on the page and activate the\n ones we need.\n */\n for (let i = 0; i < visualizationElements.length; i++) {\n /*\n Grab the playlist and song attributes from the visualization to\n determine which one we run.\n */\n let playlist = visualizationElements[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let song = visualizationElements[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n /*\n If the playlist and song are null, it's a global visualization element.\n */\n if (playlist == null && song == null) {\n runGlobalVisualization(visualizationElements[i]);\n }\n\n /*\n if the playlist is not null and the song is null it's a playlist visualization\n element.\n */\n if (playlist != null && song == null) {\n runPlaylistVisualization(visualizationElements[i], playlist);\n }\n\n /*\n If the playlist is null and the song is not null it's a song visualization element.\n */\n if (playlist == null && song != null) {\n runSongVisualization(visualizationElements[i], song);\n }\n\n /*\n If the playlist and song are not null then it's a song in playlist visualization\n element.\n */\n if (playlist != null && song != null) {\n runSongInPlaylistVisualization(\n visualizationElements[i],\n playlist,\n song\n );\n }\n }\n }\n } else {\n displayBackups();\n }\n }\n\n /**\n * Runs a global visualization\n *\n * @param {Node} element The container element that handles the visualization.\n */\n function runGlobalVisualization(element) {\n /*\n Gets the global visualization index and the active song visualization indexes\n so we know which visualization to use. The song will override the global\n */\n let globalVisualizationIndex = config.visualization;\n let activeSongVisualizationIndex =\n config.active_index != null\n ? config.songs[config.active_index].visualization\n : config.playlists[config.active_playlist].songs[\n config.playlists[config.active_playlist].active_index\n ].visualization;\n\n /*\n If the active song visualization is defined and the visualization exists,\n use that visualization.\n */\n if (\n activeSongVisualizationIndex != undefined &&\n config.visualizations.available[activeSongVisualizationIndex] != undefined\n ) {\n addToActiveVisualizations(activeSongVisualizationIndex, element);\n\n /*\n If the user defined a global visualization, use that one.\n */\n } else if (\n globalVisualizationIndex != undefined &&\n config.visualizations.available[globalVisualizationIndex] != undefined\n ) {\n addToActiveVisualizations(globalVisualizationIndex, element);\n\n /*\n If the user didn't define a global visualization, use the first visualization\n registered if there is one.\n */\n } else {\n /*\n Grab the first registered visualization. If it exists, use that one.\n */\n let firstVisualization =\n Object.keys(config.visualizations.available).length > 0\n ? Object.keys(config.visualizations.available)[0]\n : null;\n\n if (firstVisualization != null) {\n addToActiveVisualizations(firstVisualization, element);\n }\n }\n }\n\n /**\n * Run a specific playlist visualization.\n *\n * @param {Node} element The container element that handles the visualization.\n * @param {string} playlist The key of the playlist we are running the visualization for.\n */\n function runPlaylistVisualization(element, playlist) {\n /*\n If the playlist is equal to the active playlist, then we continue.\n */\n if (playlist == config.active_playlist) {\n /*\n Checks if the song has a visualization and that visualization exists,\n run that visualization.\n */\n let activeSongVisualizationIndex =\n config.playlists[config.active_playlist].songs[\n config.playlists[config.active_playlist].active_index\n ].visualization;\n let activePlaylistVisualizationIndex =\n config.playlists[config.active_playlist].visualization;\n let globalVisualizationIndex = config.visualization;\n\n /*\n If the actual song has a visualization, we run that.\n */\n if (\n activeSongVisualizationIndex != undefined &&\n config.visualizations.available[activeSongVisualizationIndex] !=\n undefined\n ) {\n addToActiveVisualizations(activeSongVisualizationIndex, element);\n\n /*\n If the actual playlist has a visualization, run that.\n */\n } else if (\n activePlaylistVisualizationIndex != undefined &&\n config.visualizations.available[activePlaylistVisualizationIndex] !=\n undefined\n ) {\n addToActiveVisualizations(activePlaylistVisualizationIndex, element);\n\n /*\n If a global visualization is defined, run that.\n */\n } else if (\n globalVisualizationIndex != undefined &&\n config.visualizations.available[globalVisualizationIndex] != undefined\n ) {\n addToActiveVisualizations(globalVisualizationIndex, element);\n } else {\n /*\n Grab the first registered visualization. If it exists, use that one.\n */\n let firstVisualization =\n Object.keys(config.visualizations.available).length > 0\n ? Object.keys(config.visualizations.available)[0]\n : null;\n\n if (firstVisualization != null) {\n addToActiveVisualizations(firstVisualization, element);\n }\n }\n }\n }\n\n /**\n * Run a song specific visualization.\n *\n * @param {Node} element The container element that handles the visualization.\n * @param {string} song The song index that we are running the visualization for.\n */\n function runSongVisualization(element, song) {\n /*\n If the song is equal to the active song, then we continue.\n */\n if (song == config.active_index) {\n /*\n Get the indexes of the song\n */\n let activeSongVisualizationIndex =\n config.songs[config.active_index].visualization;\n let globalVisualizationIndex = config.visualization;\n\n /*\n If the song has a visualization, run that.\n */\n if (\n activeSongVisualizationIndex != undefined &&\n config.visualizations.available[activeSongVisualizationIndex] !=\n undefined\n ) {\n addToActiveVisualizations(activeSongVisualizationIndex, element);\n\n /*\n If the global visualization is set, use that.\n */\n } else if (\n globalVisualizationIndex != undefined &&\n config.visualizations.available[globalVisualizationIndex] != undefined\n ) {\n addToActiveVisualizations(globalVisualizationIndex, element);\n } else {\n /*\n Grab the first registered visualization. If it exists, use that one.\n */\n let firstVisualization =\n Object.keys(config.visualizations.available).length > 0\n ? Object.keys(config.visualizations.available)[0]\n : null;\n\n if (firstVisualization != null) {\n addToActiveVisualizations(firstVisualization, element);\n }\n }\n }\n }\n\n /**\n * Run a song in playlist visualization.\n *\n * @param {Node} element - The element containing the visualization.\n * @param {string} playlist - The string of the playlist key.\n * @param {index} song - The index of the song in the playlist.\n */\n function runSongInPlaylistVisualization(element, playlist, song) {\n /*\n If the playlist is the same as the active playlist and the active\n index of the song is the same as the song, then we continue.\n */\n if (\n playlist == config.active_playlist &&\n config.playlists[playlist].active_index == song\n ) {\n /*\n Checks if the song has a visualization and that visualization exists,\n run that visualization.\n */\n let activeSongVisualizationIndex =\n config.playlists[config.active_playlist].songs[\n config.playlists[config.active_playlist].active_index\n ].visualization;\n let activePlaylistVisualizationIndex =\n config.playlists[config.active_playlist].visualization;\n let globalVisualizationIndex = config.visualization;\n\n /*\n If the active song has a visualization, we use that.\n */\n if (\n activeSongVisualizationIndex != undefined &&\n config.visualizations.available[activeSongVisualizationIndex] !=\n undefined\n ) {\n addToActiveVisualizations(activeSongVisualizationIndex, element);\n\n /*\n If the active playlist has a visualization, we use that.\n */\n } else if (\n activePlaylistVisualizationIndex != undefined &&\n config.visualizations.available[activePlaylistVisualizationIndex] !=\n undefined\n ) {\n addToActiveVisualizations(activePlaylistVisualizationIndex, element);\n\n /*\n If the global visualization has been set, we use that.\n */\n } else if (\n globalVisualizationIndex != undefined &&\n config.visualizations.available[globalVisualizationIndex] != undefined\n ) {\n addToActiveVisualizations(globalVisualizationIndex, element);\n } else {\n /*\n Grab the first registered visualization. If it exists, use that one.\n */\n let firstVisualization =\n Object.keys(config.visualizations.available).length > 0\n ? Object.keys(config.visualizations.available)[0]\n : null;\n\n if (firstVisualization != null) {\n addToActiveVisualizations(firstVisualization, element);\n }\n }\n }\n }\n\n /**\n * Add a visualization to the array of active visualizations.\n *\n * @param {string} key - The key of the active visualization.\n * @param {Node} element - The element that the visualization will be applied to.\n */\n function addToActiveVisualizations(key, element) {\n let visualization = new config.visualizations.available[key][\"object\"]();\n visualization.setPreferences(\n config.visualizations.available[key][\"preferences\"]\n );\n visualization.startVisualization(element);\n config.visualizations.active.push(visualization);\n }\n\n /**\n * Stops all active visualizations.\n */\n function stop() {\n /*\n Iterates over all of the visualizations and stop the visualization.\n */\n for (let i = 0; i < config.visualizations.active.length; i++) {\n config.visualizations.active[i].stopVisualization();\n }\n\n /*\n Clear the active visualizations.\n */\n config.visualizations.active = [];\n }\n\n /**\n * Registers any visualization we can use.\n *\n * @param {object} visualization The visualization object itself\n * @param {object} preferences User preferences overrides.\n */\n function register(visualization, preferences) {\n /*\n Initialize the new visualization.\n */\n let newVisualization = new visualization();\n\n /*\n\t Adds the visualization to the global config so it knows\n\t it can be used when playing songs.\n\n\t getID is a public function for getting a visualization's id.\n\t It becomes the key to access the visualization.\n\t */\n config.visualizations.available[newVisualization.getID()] = new Array();\n config.visualizations.available[newVisualization.getID()][\n \"object\"\n ] = visualization;\n config.visualizations.available[newVisualization.getID()][\n \"preferences\"\n ] = preferences;\n }\n\n /**\n * Displays the backups for the visualizations.\n */\n function displayBackups() {\n /*\n Get all of the visualization elements on the page\n */\n let visualizationElements = document.querySelectorAll(\n \".amplitude-visualization\"\n );\n\n if (visualizationElements.length > 0) {\n for (let x = 0; x < visualizationElements.length; x++) {\n /*\n Grab the playlist and song attributes from the visualization to\n determine which one we run.\n */\n let playlist = visualizationElements[x].getAttribute(\n \"data-amplitude-playlist\"\n );\n let song = visualizationElements[x].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n /*\n If the playlist and song are null, it's a global visualization element.\n */\n if (playlist == null && song == null) {\n displayGlobalBackup(visualizationElements[x]);\n }\n\n /*\n if the playlist is not null and the song is null it's a playlist visualization\n element.\n */\n if (playlist != null && song == null) {\n displayPlaylistBackup(visualizationElements[x], playlist);\n }\n\n /*\n If the playlist is null and the song is not null it's a song visualization element.\n */\n if (playlist == null && song != null) {\n displaySongBackup(visualizationElements[x], song);\n }\n\n /*\n If the playlist and song are not null then it's a song in playlist visualization\n element.\n */\n if (playlist != null && song != null) {\n displaySongInPlaylistBackup(visualizationElements[x], playlist, song);\n }\n }\n }\n }\n\n /**\n * Displays the global backup which is the cover art of the image in the\n * visualization container.\n *\n * @param {node} element - The element we are adding the background image to.\n */\n function displayGlobalBackup(element) {\n element.style.backgroundImage =\n \"url(\" + config.active_metadata.cover_art_url + \")\";\n }\n\n /**\n * Displays the playlist backup which is the cover art of the image in the\n * visualization container.\n *\n * @param {node} element - The element we are adding the background image to.\n */\n function displayPlaylistBackup(element, playlist) {\n if (config.active_playlist == playlist) {\n element.style.backgroundImage =\n \"url(\" + config.active_metadata.cover_art_url + \")\";\n }\n }\n\n /**\n * Displays the song backup which is the cover art of the image in the\n * visualization container.\n *\n * @param {node} element - The element we are adding the background image to.\n */\n function displaySongBackup(element, song) {\n if (config.active_index == song) {\n element.style.backgroundImage =\n \"url(\" + config.active_metadata.cover_art_url + \")\";\n }\n }\n\n /**\n * Displays the song in playlist backup which is the cover art of the image in the\n * visualization container.\n *\n * @param {node} element - The element we are adding the background image to.\n */\n function displaySongInPlaylistBackup(element, playlist, song) {\n if (\n config.active_playlist == playlist &&\n config.playlists[active_playlist].active_index == song\n ) {\n element.style.backgroundImage =\n \"url(\" + config.active_metadata.cover_art_url + \")\";\n }\n }\n\n /*\n Returns the public facing methods\n */\n return {\n run: run,\n stop: stop,\n register: register\n };\n})();\n\nexport default Visualizations;\n\n\n\n// WEBPACK FOOTER //\n// ./src/fx/visualizations.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the initializer\n * @module init/AmplitudeInitializer\n */\nimport AmplitudeInitializer from \"../init/init.js\";\n\n/**\n * These helpers wrap around the basic methods of the Soundcloud API\n * and get the information we need from SoundCloud to make the songs\n * streamable through Amplitude\n *\n * @module soundcloud/SoundCloud\n */\nlet SoundCloud = (function() {\n /**\n * Defines the temporary user config used while we configure soundcloud\n * @type {object}\n */\n let tempUserConfig = {};\n\n /**\n * Loads the soundcloud SDK for use with Amplitude so the user doesn't have\n * to load it themselves.\n * With help from: http://stackoverflow.com/questions/950087/include-a-javascript-file-in-another-javascript-file\n *\n * @access public\n * @param {object} userConfig \t- The config defined by the user for AmplitudeJS\n */\n function loadSoundCloud(userConfig) {\n /*\n\t\t\tSets the temporary config to the config passed by the user so we can make changes\n\t\t\tand not break the actual config.\n\t\t*/\n tempUserConfig = userConfig;\n\n /*\n\t\t\tGets the head tag for the document and create a script element.\n\t\t*/\n let head = document.getElementsByTagName(\"head\")[0];\n let script = document.createElement(\"script\");\n\n script.type = \"text/javascript\";\n\n /*\n\t\t\tURL to the remote soundcloud SDK\n\t\t*/\n script.src = \"https://connect.soundcloud.com/sdk.js\";\n script.onreadystatechange = initSoundcloud;\n script.onload = initSoundcloud;\n\n /*\n\t\t\tAdd the script to the head of the document.\n\t\t*/\n head.appendChild(script);\n }\n\n /**\n * Initializes soundcloud with the key provided.\n *\n * @access private\n */\n function initSoundcloud() {\n /*\n\t\t\tCalls the SoundCloud initialize function\n\t\t\tfrom their API and sends it the client_id\n\t\t\tthat the user passed in.\n\t\t*/\n SC.initialize({\n client_id: config.soundcloud_client\n });\n\n /*\n\t\t\tGets the streamable URLs to run through Amplitue. This is\n\t\t\tVERY important since Amplitude can't stream the copy and pasted\n\t\t\tlink from the SoundCloud page, but can resolve the streaming\n\t\t\tURLs from the link.\n\t\t*/\n getStreamableURLs();\n }\n\n /**\n * Gets the streamable URL from the URL provided for\n * all of the soundcloud links. This will loop through\n * and set all of the information for the soundcloud\n * urls.\n *\n * @access private\n */\n function getStreamableURLs() {\n /*\n\t\t\tDefine the regex to find the soundcloud URLs\n\t\t*/\n let soundcloud_regex = /^https?:\\/\\/(soundcloud.com|snd.sc)\\/(.*)$/;\n\n for (let i = 0; i < config.songs.length; i++) {\n /*\n\t\t\t\tIf the URL matches soundcloud, we grab\n\t\t\t\tthat url and get the streamable link\n\t\t\t\tif there is one.\n\t\t\t*/\n if (config.songs[i].url.match(soundcloud_regex)) {\n config.soundcloud_song_count++;\n resolveStreamable(config.songs[i].url, i);\n }\n }\n }\n\n /**\n * Resolves an individual streamable URL.\n *\n * @param {string} url - The URL of the SoundCloud song to get the streamable URL from.\n * @param {string} playlist - The playlist we are getting the streamable URL for.\n * @param {Integer} index - The index of the song in the playlist or the songs array.\n * @param {boolean} addToShuffleList - Whether we add to the shuffle list for the songs or playlist.\n *\n */\n function resolveIndividualStreamableURL(\n url,\n playlist,\n index,\n addToShuffleList = false\n ) {\n SC.get(\"/resolve/?url=\" + url, function(sound) {\n /*\n If streamable we get the url and bind the client ID to the end\n so Amplitude can just stream the song normally. We then overwrite\n the url the user provided with the streamable URL.\n */\n if (sound.streamable) {\n if (playlist != null) {\n config.playlists[playlist].songs[index].url =\n sound.stream_url + \"?client_id=\" + config.soundcloud_client;\n\n if (addToShuffleList) {\n config.playlists[playlist].shuffle_list[index].url =\n sound.stream_url + \"?client_id=\" + config.soundcloud_client;\n }\n /*\n If the user want's to use soundcloud art, we overwrite the\n cover_art_url with the soundcloud artwork url.\n */\n if (config.soundcloud_use_art) {\n config.playlists[playlist].songs[index].cover_art_url =\n sound.artwork_url;\n\n if (addToShuffleList) {\n config.playlists[playlist].shuffle_list[index].cover_art_url =\n sound.artwork_url;\n }\n }\n\n /*\n Grab the extra metadata from soundcloud and bind it to the\n song. The user can get this through the public function:\n getActiveSongMetadata\n */\n config.playlists[playlist].songs[index].soundcloud_data = sound;\n\n if (addToShuffleList) {\n config.playlists[playlist].shuffle_list[\n index\n ].soundcloud_data = sound;\n }\n } else {\n config.songs[index].url =\n sound.stream_url + \"?client_id=\" + config.soundcloud_client;\n\n if (addToShuffleList) {\n config.shuffle_list[index].stream_url +\n \"?client_id=\" +\n config.soundcloud_client;\n }\n\n /*\n If the user want's to use soundcloud art, we overwrite the\n cover_art_url with the soundcloud artwork url.\n */\n if (config.soundcloud_use_art) {\n config.songs[index].cover_art_url = sound.artwork_url;\n\n if (addToShuffleList) {\n config.shuffle_list[index].cover_art_url = sound.artwork_url;\n }\n }\n\n /*\n Grab the extra metadata from soundcloud and bind it to the\n song. The user can get this through the public function:\n getActiveSongMetadata\n */\n config.songs[index].soundcloud_data = sound;\n\n if (addToShuffleList) {\n config.shuffle_list[index].soundcloud_data = sound;\n }\n }\n } else {\n if (playlist != null) {\n AmplitudeHelpers.writeDebugMessage(\n config.playlists[playlist].songs[index].name +\n \" by \" +\n config.playlists[playlist].songs[index].artist +\n \" is not streamable by the Soundcloud API\"\n );\n } else {\n /*\n If not streamable, then we print a message to the user stating\n that the song with name X and artist X is not streamable. This\n gets printed ONLY if they have debug turned on.\n */\n AmplitudeHelpers.writeDebugMessage(\n config.songs[index].name +\n \" by \" +\n config.songs[index].artist +\n \" is not streamable by the Soundcloud API\"\n );\n }\n }\n });\n }\n\n /**\n * Due to Soundcloud SDK being asynchronous, we need to scope the\n * index of the song in another function. The privateGetSoundcloudStreamableURLs\n * function does the actual iteration and scoping.\n *\n * @access private\n * @param {string} url \t\t- URL of the soundcloud song\n * @param {number} index \t- The index of the soundcloud song in the songs array.\n */\n function resolveStreamable(url, index) {\n SC.get(\"/resolve/?url=\" + url, function(sound) {\n /*\n\t\t\t\tIf streamable we get the url and bind the client ID to the end\n\t\t\t\tso Amplitude can just stream the song normally. We then overwrite\n\t\t\t\tthe url the user provided with the streamable URL.\n\t\t\t*/\n if (sound.streamable) {\n config.songs[index].url =\n sound.stream_url + \"?client_id=\" + config.soundcloud_client;\n\n /*\n\t\t\t\t\tIf the user want's to use soundcloud art, we overwrite the\n\t\t\t\t\tcover_art_url with the soundcloud artwork url.\n\t\t\t\t*/\n if (config.soundcloud_use_art) {\n config.songs[index].cover_art_url = sound.artwork_url;\n }\n\n /*\n\t\t\t\t\tGrab the extra metadata from soundcloud and bind it to the\n\t\t\t\t\tsong. The user can get this through the public function:\n\t\t\t\t\tgetActiveSongMetadata\n\t\t\t\t*/\n config.songs[index].soundcloud_data = sound;\n } else {\n /*\n\t\t\t\t\tIf not streamable, then we print a message to the user stating\n\t\t\t\t\tthat the song with name X and artist X is not streamable. This\n\t\t\t\t\tgets printed ONLY if they have debug turned on.\n\t\t\t\t*/\n AmplitudeHelpers.writeDebugMessage(\n config.songs[index].name +\n \" by \" +\n config.songs[index].artist +\n \" is not streamable by the Soundcloud API\"\n );\n }\n /*\n\t\t\t\tIncrements the song ready counter.\n\t\t\t*/\n config.soundcloud_songs_ready++;\n\n /*\n\t\t\t\tWhen all songs are accounted for, then amplitude is ready\n\t\t\t\tto rock and we set the rest of the config.\n\t\t\t*/\n if (config.soundcloud_songs_ready == config.soundcloud_song_count) {\n AmplitudeInitializer.setConfig(tempUserConfig);\n }\n });\n }\n\n /**\n * Determines if a given URL is a SoundCloud URL.\n *\n * @param {string} url - The URL to test if it's a SoundCloud URL.\n */\n function isSoundCloudURL(url) {\n let soundcloud_regex = /^https?:\\/\\/(soundcloud.com|snd.sc)\\/(.*)$/;\n\n return url.match(soundcloud_regex);\n }\n\n /*\n\t\tReturns the publically accessible methods\n\t*/\n return {\n loadSoundCloud: loadSoundCloud,\n resolveIndividualStreamableURL: resolveIndividualStreamableURL,\n isSoundCloudURL: isSoundCloudURL\n };\n})();\n\nexport default SoundCloud;\n\n\n\n// WEBPACK FOOTER //\n// ./src/soundcloud/soundcloud.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Defines the Playback Speed Visual Elements Handler\n * @module visual/PlaybackSpeedElements\n */\nlet PlaybackSpeedElements = (function() {\n /**\n * Sets all of the visual playback speed buttons to have the right class\n * to display the background image that represents the current playback\n * speed.\n *\n * @access public\n */\n function sync() {\n /*\n\t\t\tGets all of the playback speed classes.\n\t\t*/\n let playbackSpeedClasses = document.getElementsByClassName(\n \"amplitude-playback-speed\"\n );\n\n /*\n\t\t\tIterates over all of the playback speed classes\n\t\t\tapplying the right speed class for visual purposes.\n\t\t*/\n for (let i = 0; i < playbackSpeedClasses.length; i++) {\n /*\n\t\t\t\tRemoves all of the old playback speed classes.\n\t\t\t*/\n playbackSpeedClasses[i].classList.remove(\"amplitude-playback-speed-10\");\n playbackSpeedClasses[i].classList.remove(\"amplitude-playback-speed-15\");\n playbackSpeedClasses[i].classList.remove(\"amplitude-playback-speed-20\");\n\n /*\n\t\t\t\tSwitch the current playback speed and apply the appropriate\n\t\t\t\tspeed class.\n\t\t\t*/\n switch (config.playback_speed) {\n case 1:\n playbackSpeedClasses[i].classList.add(\"amplitude-playback-speed-10\");\n break;\n case 1.5:\n playbackSpeedClasses[i].classList.add(\"amplitude-playback-speed-15\");\n break;\n case 2:\n playbackSpeedClasses[i].classList.add(\"amplitude-playback-speed-20\");\n break;\n }\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n sync: sync\n };\n})();\n\nexport default PlaybackSpeedElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/playbackSpeedElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Handles all of the shuffle elements\n * @module visual/ShuffleElements\n */\nlet ShuffleElements = (function() {\n /**\n * Syncs the global shuffle button visual state.\n *\n * @access public\n */\n function syncMain() {\n /*\n\t\t\tGets the shuffle buttons.\n\t\t*/\n let shuffleButtons = document.getElementsByClassName(\"amplitude-shuffle\");\n\n /*\n\t\t\tIterate over all of the shuffle buttons.\n\t\t*/\n for (let i = 0; i < shuffleButtons.length; i++) {\n /*\n\t\t\t\tEnsure the shuffle button doesn't belong to a playlist. We have\n\t\t\t\ta separate method for that.\n\t\t\t*/\n if (shuffleButtons[i].getAttribute(\"data-amplitude-playlist\") == null) {\n /*\n\t\t\t\t\tIf the state of the player is shuffled on, true, then\n\t\t\t\t\twe add the 'amplitude-shuffle-on' class and remove the\n\t\t\t\t\t'amplitude-shuffle-off' class. If the player is not shuffled\n\t\t\t\t\tthen we do the opposite.\n\t\t\t\t*/\n if (config.shuffle_on) {\n shuffleButtons[i].classList.add(\"amplitude-shuffle-on\");\n shuffleButtons[i].classList.remove(\"amplitude-shuffle-off\");\n } else {\n shuffleButtons[i].classList.add(\"amplitude-shuffle-off\");\n shuffleButtons[i].classList.remove(\"amplitude-shuffle-on\");\n }\n }\n }\n }\n\n /**\n * Syncs the playlist shuffle button visual state.\n *\n * @access public\n * @param {string} playlist - The playlist string the shuffle button belongs to.\n */\n function syncPlaylist(playlist) {\n /*\n\t\t\tGets all of the shuffle buttons.\n\t\t*/\n let shuffleButtons = document.querySelectorAll(\n '.amplitude-shuffle[data-amplitude-playlist=\"' + playlist + '\"]'\n );\n\n /*\n\t\t\tIterate over all of the shuffle buttons\n\t\t*/\n for (let i = 0; i < shuffleButtons.length; i++) {\n /*\n\t\t\t\tIf the state of the playlist is shuffled on, true, then\n\t\t\t\twe add the 'amplitude-shuffle-on' class and remove the\n\t\t\t\t'amplitude-shuffle-off' class. If the player is not shuffled\n\t\t\t\tthen we do the opposite.\n\t\t\t*/\n if (config.playlists[playlist].shuffle) {\n shuffleButtons[i].classList.add(\"amplitude-shuffle-on\");\n shuffleButtons[i].classList.remove(\"amplitude-shuffle-off\");\n } else {\n shuffleButtons[i].classList.add(\"amplitude-shuffle-off\");\n shuffleButtons[i].classList.remove(\"amplitude-shuffle-on\");\n }\n }\n }\n\n /**\n * Returns public facing methods\n */\n return {\n syncMain: syncMain,\n syncPlaylist: syncPlaylist\n };\n})();\n\nexport default ShuffleElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/shuffleElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Handles the syncing of the song played progress elements.\n *\n * @module visual/SongPlayedProgressElements\n */\nlet SongPlayedProgressElements = (function() {\n /**\n * Syncs the song played progress bars. These are HTML5 progress elements.\n *\n * @access private\n * @param {number} songPlayedPercentage \t- The percentage of the song that has been played.\n */\n function sync(songPlayedPercentage) {\n syncGlobal(songPlayedPercentage);\n syncPlaylist(songPlayedPercentage);\n syncSong(songPlayedPercentage);\n syncSongInPlaylist(songPlayedPercentage);\n }\n\n /**\n * Sync how much has been played with a progress bar. This is the global progress bar.\n *\n * @access private\n * @param {number} songPlayedPercentage \t- The percent of the song completed.\n */\n function syncGlobal(percentage) {\n /*\n\t\t\tEnsure that the song completion percentage is a number\n\t\t*/\n if (!isNaN(percentage)) {\n /*\n\t\t\t\tGet all of the song progress bars\n\t\t\t*/\n let songPlayedProgressBars = document.querySelectorAll(\n \".amplitude-song-played-progress\"\n );\n\n for (let i = 0; i < songPlayedProgressBars.length; i++) {\n let playlist = songPlayedProgressBars[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let songIndex = songPlayedProgressBars[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (playlist == null && songIndex == null) {\n let max = songPlayedProgressBars[i].max;\n\n songPlayedProgressBars[i].value = (percentage / 100) * max;\n }\n }\n }\n }\n\n /**\n * Sync how much has been played with a progress bar. This is the playlist progress bar.\n *\n * @access public\n * @param {number} songPlayedPercentage \t- The percent of the song completed.\n */\n function syncPlaylist(percentage) {\n /*\n\t\t\tEnsure that the song completion percentage is a number\n\t\t*/\n if (!isNaN(percentage)) {\n /*\n\t\t\t\tGet all of the song progress bars\n\t\t\t*/\n let songPlayedProgressBars = document.querySelectorAll(\n '.amplitude-song-played-progress[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n );\n\n for (let i = 0; i < songPlayedProgressBars.length; i++) {\n let song = songPlayedProgressBars[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (song == null) {\n let max = songPlayedProgressBars[i].max;\n\n songPlayedProgressBars[i].value = (percentage / 100) * max;\n }\n }\n }\n }\n\n /**\n * Sync how much has been played with a progress bar. This is for an individual song.\n *\n * @access private\n * @param {number} songPlayedPercentage \t- The percent of the song completed.\n */\n function syncSong(percentage) {\n if (config.active_playlist == null) {\n /*\n\t\t\t\tEnsure that the song completion percentage is a number\n\t\t\t*/\n if (!isNaN(percentage)) {\n /*\n\t\t\t\t\tGet all of the song progress bars\n\t\t\t\t*/\n let songPlayedProgressBars = document.querySelectorAll(\n '.amplitude-song-played-progress[data-amplitude-song-index=\"' +\n config.active_index +\n '\"]'\n );\n\n for (let i = 0; i < songPlayedProgressBars.length; i++) {\n let playlist = songPlayedProgressBars[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n\n if (playlist == null) {\n let max = songPlayedProgressBars[i].max;\n\n songPlayedProgressBars[i].value = (percentage / 100) * max;\n }\n }\n }\n }\n }\n\n /**\n * Sync how much has been played with a progress bar. This is for an individual song in playlist.\n *\n * @access private\n * @param {number} songPlayedPercentage \t- The percent of the song completed.\n */\n function syncSongInPlaylist(percentage) {\n /*\n\t\t\tEnsure that the song completion percentage is a number\n\t\t*/\n if (!isNaN(percentage)) {\n let activePlaylistIndex =\n config.active_playlist != \"\" && config.active_playlist != null\n ? config.playlists[config.active_playlist].active_index\n : null;\n\n /*\n\t\t\t\tGet all of the song progress bars\n\t\t\t*/\n let songPlayedProgressBars = document.querySelectorAll(\n '.amplitude-song-played-progress[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"][data-amplitude-song-index=\"' +\n activePlaylistIndex +\n '\"]'\n );\n\n /*\n Iterates over all of the song played progress elements\n and sets them accordingly.\n */\n for (let i = 0; i < songPlayedProgressBars.length; i++) {\n let playlist = songPlayedProgressBars[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let songIndex = songPlayedProgressBars[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (playlist != null && songIndex != null) {\n let max = songPlayedProgressBars[i].max;\n\n songPlayedProgressBars[i].value = (percentage / 100) * max;\n }\n }\n }\n }\n\n /**\n * Sets all of the song played progress bars to 0\n *\n * @access public\n */\n function resetElements() {\n let songPlayedProgressBars = document.getElementsByClassName(\n \"amplitude-song-played-progress\"\n );\n\n for (let i = 0; i < songPlayedProgressBars.length; i++) {\n songPlayedProgressBars[i].value = 0;\n }\n }\n\n return {\n sync: sync,\n resetElements: resetElements\n };\n})();\n\nexport default SongPlayedProgressElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/songPlayedProgressElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * AmplitudeJS Core Module\n * @module core/Core\n */\nimport Core from \"../core/core.js\";\n\n/**\n * AmplitudeJS SoundCloud Module\n * @module soundcloud/SoundCloud\n */\nimport SoundCloud from \"../soundcloud/soundcloud.js\";\n\n/**\n * Imports the utilities used by the main module.\n */\n/**\n * AmplitudeJS Config State Module\n * @module utilities/ConfigState\n */\nimport ConfigState from \"../utilities/configState.js\";\n\n/**\n * AmplitudeJS Debug Module\n * @module utilities/Debug\n */\nimport Debug from \"../utilities/debug.js\";\n\n/**\n * AmplitudeJS Checks Module\n * @module utilities/Checks\n */\nimport Checks from \"../utilities/checks.js\";\n\n/**\n * AmplitudeJS Shuffler Module\n * @module utilities/Shuffler\n */\nimport Shuffler from \"../utilities/shuffler.js\";\n\n/**\n * AmplitudeJS Events Module\n * @module events/Events\n */\nimport Events from \"../events/events.js\";\n\n/**\n * AmplitudeJS FX Module\n * @module fx/Fx\n */\nimport Fx from \"../fx/fx.js\";\n\n/**\n * AmplitudeJS Visualizations Module\n * @module fx/Visualizations\n */\nimport Visualizations from \"../fx/visualizations.js\";\n\n/**\n * AmplitudeJS WaveForm Module\n * @module fx/WaveForm\n */\nimport WaveForm from \"../fx/waveform.js\";\n\n/**\n * AmplitudeJS Audio Navigation Module.\n * @module utilities/AudioNavigation\n */\nimport AudioNavigation from \"../utilities/audioNavigation.js\";\n\n/**\n * AmplitudeJS Callbacks Module\n * @module utilities/Callbacks\n */\nimport Callbacks from \"../utilities/callbacks.js\";\n\n/**\n * AmplitudeJS Playlists Initializer Module\n * @module init/Playlists\n */\nimport PlaylistsInitializer from \"./playlists.js\";\n\n/**\n * Imports the AmplitudeJS Shuffle Elements\n * @module visual/ShuffleElements\n */\nimport ShuffleElements from \"../visual/shuffleElements.js\";\n\n/**\n * Imports the AmplitudeJS Mute Elements\n * @module visual/MuteElements\n */\nimport MuteElements from \"../visual/muteElements.js\";\n\n/**\n * Imports the AmplitudeJS Volume Slider\n * @module visual/VolumeSliderElements\n */\nimport VolumeSliderElements from \"../visual/volumeSliderElements.js\";\n\n/**\n * Imports the AmplitudeJS Time Elements\n * @module visual/TimeElements\n */\nimport TimeElements from \"../visual/timeElements.js\";\n\n/**\n * Imports the AmplitudeJS Play/Pause Elements Module.\n * @module visual/PlayPauseElements\n */\nimport PlayPauseElements from \"../visual/playPauseElements.js\";\n\n/**\n * Imports the AmplitudeJS MetaData Elements Module.\n * @module visual/MetaDataElements\n */\nimport MetaDataElements from \"../visual/metaDataElements.js\";\n\n/**\n * Imports the AmplitudeJS PlaybackSpeedElements Module.\n * @module visual/PlayBackSpeedElements\n */\nimport PlaybackSpeedElements from \"../visual/playbackSpeedElements.js\";\n\n/**\n * Imports the AmplitudeJS Repeat Element\n * @module visual/RepeatElements\n */\nimport RepeatElements from \"../visual/repeatElements.js\";\n\n/**\n * AmplitudeJS Initializer Module. Helps with the handling of all of the\n * initialization for AmplitudeJS.\n *\n * @module init/Initializer\n */\nlet Initializer = (function() {\n /**\n * The main init function. The user will call this through\n * Amplitude.init({}) and pass in their settings.\n *\n * Public Accessor: Amplitude.init( user_config_json )\n * @access public\n * @param {object} userConfig - A JSON object of user defined values that help configure and initialize AmplitudeJS.\n */\n function initialize(userConfig) {\n let ready = false;\n\n /*\n\t\t\tReset the config on init so we have a clean slate. This is if the\n\t\t\tuser has to re-init.\n\t\t*/\n ConfigState.resetConfig();\n\n /*\n\t\t\tInitialize event handlers on init. This will clear any old\n\t\t\tevent handlers on the amplitude element and re-bind what is\n\t\t\tnecessary.\n\t\t*/\n Events.initialize();\n\n /*\n Initialize the callbacks we listen to for the audio object.\n */\n Callbacks.initialize();\n\n /*\n\t\t\tInitializes debugging right away so we can use it for the rest\n\t\t\tof the configuration.\n\t\t*/\n config.debug = userConfig.debug != undefined ? userConfig.debug : false;\n\n /*\n Set default artwork, if specified.\n */\n setArt(userConfig);\n\n /*\n\t\t\tChecks to see if the user has songs defined.\n\t\t*/\n if (userConfig.songs) {\n /*\n\t\t\t\tChecks to see if the user has some songs in the songs array.\n\t\t\t*/\n if (userConfig.songs.length != 0) {\n /*\n\t\t\t\t\tCopies over the user defined songs. and prepares\n\t\t\t\t\tAmplitude for the rest of the configuration.\n\t\t\t\t*/\n config.songs = userConfig.songs;\n /*\n\t\t\t\t\tFlag amplitude as ready.\n\t\t\t\t*/\n ready = true;\n } else {\n Debug.writeMessage(\"Please add some songs, to your songs object!\");\n }\n } else {\n Debug.writeMessage(\n \"Please provide a songs object for AmplitudeJS to run!\"\n );\n }\n\n /*\n\t\t\tInitializes the audio context. In this method it checks to see if the\n\t\t\tuser wants to use visualizations or not before proceeding.\n\t\t*/\n if (Fx.webAudioAPIAvailable()) {\n if (Fx.determineUsingAnyFX()) {\n /*\n Configure the Web Audio API If It's available.\n */\n Fx.configureWebAudioAPI();\n\n /*\n Activates the audio context after an event for the user.\n */\n document.documentElement.addEventListener(\"mousedown\", function() {\n if (config.context.state !== \"running\") {\n config.context.resume();\n }\n });\n\n document.documentElement.addEventListener(\"keydown\", function() {\n if (config.context.state !== \"running\") {\n config.context.resume();\n }\n });\n\n document.documentElement.addEventListener(\"keyup\", function() {\n if (config.context.state !== \"running\") {\n config.context.resume();\n }\n });\n\n /*\n Set the user waveform settings if provided.\n */\n if (\n userConfig.waveforms != undefined &&\n userConfig.waveforms.sample_rate != undefined\n ) {\n config.waveforms.sample_rate = userConfig.waveforms.sample_rate;\n }\n\n /*\n Initialize the waveform.\n */\n WaveForm.init();\n\n /*\n If the user is registering visualizations on init,\n we set them right away.\n */\n if (\n userConfig.visualizations != undefined &&\n userConfig.visualizations.length > 0\n ) {\n /*\n Iterate over all of the visualizations and\n register them in our player.\n */\n for (let i = 0; i < userConfig.visualizations.length; i++) {\n Visualizations.register(\n userConfig.visualizations[i].object,\n userConfig.visualizations[i].params\n );\n }\n }\n }\n } else {\n Debug.writeMessage(\n \"The Web Audio API is not available on this platform. We are using your defined backups!\"\n );\n }\n\n /*\n Initialize default live settings\n */\n initializeDefaultLiveSettings();\n\n /*\n Initialize default song indexes\n */\n initializeDefaultSongIndexes();\n\n /*\n\t\t\tWhen the preliminary config is ready, we are ready to proceed.\n\t\t*/\n if (ready) {\n /*\n\t\t\t\tCopies over the soundcloud information to the global config\n\t\t\t\twhich will determine where we go from there.\n\t\t\t*/\n config.soundcloud_client =\n userConfig.soundcloud_client != undefined\n ? userConfig.soundcloud_client\n : \"\";\n\n /*\n\t\t\t\tChecks if we want to use the art loaded from soundcloud.\n\t\t\t*/\n config.soundcloud_use_art =\n userConfig.soundcloud_use_art != undefined\n ? userConfig.soundcloud_use_art\n : \"\";\n\n /*\n\t\t\t\tIf the user provides a soundcloud client then we assume that\n\t\t\t\tthere are URLs in their songs that will reference SoundCloud.\n\t\t\t\tWe then copy over the user config they provided to the\n\t\t\t\ttemp_user_config so we don't mess up the global or their configs\n\t\t\t\tand load the soundcloud information.\n\t\t\t*/\n let tempUserConfig = {};\n\n /*\n If there's a soundcloud_client key set, we load the SoundCloud data\n for all of the songs in the array.\n */\n if (config.soundcloud_client != \"\") {\n tempUserConfig = userConfig;\n\n /*\n\t\t\t\t\tLoad up SoundCloud for use with AmplitudeJS.\n\t\t\t\t*/\n SoundCloud.loadSoundCloud(tempUserConfig);\n } else {\n /*\n\t\t\t\t\tThe user is not using Soundcloud with Amplitude at this point\n\t\t\t\t\tso we just finish the configuration with the users's preferences.\n\t\t\t\t*/\n setConfig(userConfig);\n }\n }\n\n /*\n\t\t\tDebug out what was initialized with AmplitudeJS.\n\t\t*/\n Debug.writeMessage(\"Initialized With: \");\n Debug.writeMessage(config);\n }\n\n /**\n * Rebinds all of the elements in the display.\n *\n * Public Accessor: Amplitude.rebindDisplay()\n * @access public\n */\n function rebindDisplay() {\n Events.initialize();\n MetaDataElements.displayMetaData();\n }\n\n /**\n * Finishes the initalization of the config. Takes all of the user defined\n * parameters and makes sure they override the defaults. The important\n * config information is assigned in the publicInit() function.\n *\n * This function can be called from 2 different locations:\n * \t1. Right away on init after the important settings are defined.\n *\n * \t2. After all of the Soundcloud URLs are resolved properly and\n *\t \tsoundcloud is configured. We will need the proper URLs from Soundcloud\n * \t\tto stream through Amplitude so we get those right away before we\n * \t\tset the information and the active song\n *\n * @access public\n * @param {object} userConfig - A JSON object of user defined values that help configure and initialize AmplitudeJS.\n */\n function setConfig(userConfig) {\n /*\n Checks if the user has any playlists defined. If they do\n we have to initialize the functionality for the playlists.\n */\n if (userConfig.playlists && countPlaylists(userConfig.playlists) > 0) {\n PlaylistsInitializer.initialize(userConfig.playlists);\n }\n\n /*\n\t\t\tCheck to see if the user entered a start song\n\t\t*/\n if (userConfig.start_song != undefined && !userConfig.starting_playlist) {\n /*\n\t\t\t\tEnsure what has been entered is an integer.\n\t\t\t*/\n if (Checks.isInt(userConfig.start_song)) {\n AudioNavigation.changeSong(\n config.songs[userConfig.start_song],\n userConfig.start_song\n );\n } else {\n Debug.writeMessage(\n \"You must enter an integer index for the start song.\"\n );\n }\n } else {\n AudioNavigation.changeSong(config.songs[0], 0);\n }\n\n /*\n If the shuffle is on by default, shuffle the songs and\n switch to the shuffled song.\n */\n if (userConfig.shuffle_on != undefined && userConfig.shuffle_on) {\n config.shuffle_on = true;\n Shuffler.shuffleSongs();\n\n AudioNavigation.changeSong(config.shuffle_list[0], 0);\n }\n\n /*\n\t\t\tAllows the user to set whether they want to continue to the next song\n\t\t\twhen the current song finishes or not. In any scenario that's not a playlist,\n\t\t\tcontining to the next song may not be desired.\n\t\t*/\n config.continue_next =\n userConfig.continue_next != undefined ? userConfig.continue_next : true;\n\n /*\n\t\t\tIf the user defined a playback speed, we copy over their\n\t\t\tpreference here, otherwise we default to normal playback\n\t\t\tspeed of 1.0.\n\t\t*/\n config.playback_speed =\n userConfig.playback_speed != undefined ? userConfig.playback_speed : 1.0;\n\n /*\n\t\t\tSets the audio playback speed.\n\t\t*/\n Core.setPlaybackSpeed(config.playback_speed);\n\n /*\n\t\t\tIf the user wants the song to be pre-loaded for instant\n\t\t\tplayback, they set it to true. By default it's set to just\n\t\t\tload the metadata.\n\t\t*/\n config.audio.preload =\n userConfig.preload != undefined ? userConfig.preload : \"auto\";\n\n /*\n\t\t\tInitializes the user defined callbacks. This should be a JSON\n\t\t\tobject that contains a key->value store of the callback name\n\t\t\tand the name of the function the user needs to call.\n\t\t*/\n config.callbacks =\n userConfig.callbacks != undefined ? userConfig.callbacks : {};\n\n /*\n\t\t\tInitializes the user defined key bindings. This should be a JSON\n\t\t\tobject that contains a key->value store of the key event number\n\t\t\tpressed and the method to be run.\n\t\t*/\n config.bindings =\n userConfig.bindings != undefined ? userConfig.bindings : {};\n\n /*\n\t\t\tThe user can define a starting volume in a range of 0-100 with\n\t\t\t0 being muted and 100 being the loudest. After the config is set\n\t\t\tAmplitude sets the active song's volume to the volume defined\n\t\t\tby the user.\n\t\t*/\n config.volume = userConfig.volume != undefined ? userConfig.volume : 50;\n\n /*\n\t\t\tSets the delay between songs if the user has it set. This should be in MS.\n\t\t*/\n config.delay = userConfig.delay != undefined ? userConfig.delay : 0;\n\n /*\n\t\t\tThe user can set the volume increment and decrement values between 1 and 100\n\t\t\tfor when the volume up or down button is pressed. The default is an increase\n\t\t\tor decrease of 5.\n\t\t*/\n config.volume_increment =\n userConfig.volume_increment != undefined\n ? userConfig.volume_increment\n : 5;\n\n config.volume_decrement =\n userConfig.volume_decrement != undefined\n ? userConfig.volume_decrement\n : 5;\n\n /*\n\t\t\tSet the volume to what is defined in the config. The user can define this,\n\t\t\tso we should set it up that way.\n\t\t*/\n Core.setVolume(config.volume);\n\n /*\n Set default artwork, if specified\n */\n setArt(userConfig);\n\n /*\n Initialize the visual elements\n */\n initializeElements();\n\n /*\n\t\t\tIf the user has selected a starting playlist, we need to set the starting playlist\n\t\t\tand sync the visuals\n\t\t*/\n if (\n userConfig.starting_playlist != undefined &&\n userConfig.starting_playlist != \"\"\n ) {\n /*\n\t\t\t\tSet the active playlist to the starting playlist by the user\n\t\t\t*/\n config.active_playlist = userConfig.starting_playlist;\n\n /*\n\t\t\t\tCheck if the user defined a song to start with in the playlist.\n\t\t\t*/\n if (\n userConfig.starting_playlist_song != undefined &&\n userConfig.starting_playlist_song != \"\"\n ) {\n /*\n\t\t\t\t\tEnsure the song is a valid index.\n\t\t\t\t*/\n if (\n typeof userConfig.playlists[userConfig.starting_playlist].songs[\n parseInt(userConfig.starting_playlist_song)\n ] != undefined\n ) {\n /*\n\t\t\t\t\t\tSet the player to the song defined by the user.\n\t\t\t\t\t*/\n AudioNavigation.changeSongPlaylist(\n config.active_playlist,\n userConfig.playlists[userConfig.starting_playlist].songs[\n parseInt(userConfig.starting_playlist_song)\n ],\n parseInt(userConfig.starting_playlist_song)\n );\n } else {\n /*\n\t\t\t\t\t\tSet the player to the first song in the playlist\n\t\t\t\t\t*/\n AudioNavigation.changeSongPlaylist(\n config.active_playlist,\n userConfig.playlists[userConfig.starting_playlist].songs[0],\n 0\n );\n /*\n\t\t\t\t\t\tDebug that the song index doesn't exist\n\t\t\t\t\t*/\n Debug.writeMessage(\n \"The index of \" +\n userConfig.starting_playlist_song +\n \" does not exist in the playlist \" +\n userConfig.starting_playlist\n );\n }\n } else {\n /*\n\t\t\t\t\tSet the player to the first song in the playlist\n\t\t\t\t*/\n AudioNavigation.changeSong(\n config.active_playlist,\n userConfig.playlists[userConfig.starting_playlist].songs[0],\n 0\n );\n }\n\n /*\n\t\t\t\tSync the main and song play pause buttons.\n\t\t\t*/\n PlayPauseElements.sync();\n }\n\n /*\n\t\t\tRun after init callback\n\t\t*/\n Callbacks.run(\"initialized\");\n }\n\n /**\n * Sets the default_album_art and default_playlist_art from the\n * user supplied configuration.\n *\n * @access public\n * @param {object} userConfig - A JSON object of user defined values that help configure and initialize AmplitudeJS.\n */\n function setArt(userConfig) {\n /*\n If the user defines default album art, this image will display if the active\n song doesn't have album art defined.\n */\n if (userConfig.default_album_art != undefined) {\n config.default_album_art = userConfig.default_album_art;\n } else {\n config.default_album_art = \"\";\n }\n\n /*\n\t\t\tIf the user defines default playlist art, this image will display if the user\n\t\t\ttries to set up a playlist meta data image tag but doesn't have one defined.\n\t\t*/\n if (userConfig.default_playlist_art != undefined) {\n config.default_playlist_art = userConfig.default_playlist_art;\n } else {\n config.default_playlist_art = \"\";\n }\n }\n\n /**\n * Initializes all of the elements on the page to the default starting point\n * to build from there.\n *\n * @access private\n */\n function initializeElements() {\n /*\n\t\t\tVisually sync the shuffle statuses\n\t\t*/\n ShuffleElements.syncMain();\n\n /*\n\t\t\tSync Mute Elements.\n\t\t*/\n MuteElements.setMuted(config.volume == 0 ? true : false);\n\n /*\n\t\t\tSync Volume Slider Elements\n\t\t*/\n VolumeSliderElements.sync();\n\n /*\n\t\t\tSyncs all of the playback speed elements.\n\t\t*/\n PlaybackSpeedElements.sync();\n\n /*\n\t\t\tSyncs all of the visual time elements to 00.\n\t\t*/\n TimeElements.resetCurrentTimes();\n\n /*\n\t\t\tSets all of the play pause buttons to pause.\n\t\t*/\n PlayPauseElements.syncToPause();\n\n /*\n\t\t\tSets the meta data for the songs automatically.\n\t\t*/\n MetaDataElements.syncMetaData();\n\n /*\n\t\t\tSets the repeat buttons automatically.\n\t\t*/\n RepeatElements.syncRepeatSong();\n }\n\n /**\n * Counts the number of playlists the user has configured. This ensures\n * that the user has at least 1 playlist so we can validate the songs\n * defined in the playlist are correct and they didn't enter an invalid\n * ID.\n *\n * @access private\n * @param {object} playlists \t-\n */\n function countPlaylists(playlists) {\n /*\n\t\t\tInitialize the placeholders to iterate through the playlists\n\t\t\tand find out how many we have to account for.\n\t\t*/\n let size = 0,\n key;\n\n /*\n\t\t\tIterate over playlists and if the user has the playlist defined,\n\t\t\tincrement the size of playlists.\n\t\t*/\n for (key in playlists) {\n if (playlists.hasOwnProperty(key)) {\n size++;\n }\n }\n\n /*\n\t\t\tDebug how many playlists are in the config.\n\t\t*/\n Debug.writeMessage(\"You have \" + size + \" playlist(s) in your config\");\n\n /*\n\t\t\tReturn the number of playlists in the config.\n\t\t*/\n return size;\n }\n\n /**\n * Intializes the default live settings for all of the songs.\n *\n * @access private\n */\n function initializeDefaultLiveSettings() {\n for (let i = 0; i < config.songs.length; i++) {\n if (config.songs[i].live == undefined) {\n config.songs[i].live = false;\n }\n }\n }\n\n /**\n * Initializes the index of the song in the songs array so\n * we can reference it if needed\n *\n * @access private\n */\n function initializeDefaultSongIndexes() {\n for (let i = 0; i < config.songs.length; i++) {\n config.songs[i].index = i;\n }\n }\n\n /*\n\t\tReturns the publicly accessible methods\n\t*/\n return {\n initialize: initialize,\n setConfig: setConfig,\n rebindDisplay: rebindDisplay\n };\n})();\n\nexport default Initializer;\n\n\n\n// WEBPACK FOOTER //\n// ./src/init/init.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Builds a waveform for the current audio.\n * Help from: https://robots.thoughtbot.com/javascript-audio-api\n * https://stackoverflow.com/questions/21347833/html-svg-not-drawing-works-in-other-pages\n */\nlet WaveForm = (function() {\n /*\n Initialize the local variables used in the Waveform.\n */\n let buffer = \"\";\n let sampleRate = \"\";\n let peaks = \"\";\n\n function init() {\n sampleRate = config.waveforms.sample_rate;\n\n /*\n Grabs all of the waveform elements on the page.\n */\n let waveforms = document.querySelectorAll(\".amplitude-wave-form\");\n\n /*\n If there are waveforms, we iterate over them and set them up to display\n properly.\n */\n if (waveforms.length > 0) {\n /*\n Iterate over all of the waveforms and build the SVG parts.\n */\n for (let i = 0; i < waveforms.length; i++) {\n /*\n Clear the inner HTML of the element if we are replacing the waveform.\n */\n waveforms[i].innerHTML = \"\";\n\n /*\n Inserts an SVG into the element.\n */\n let svg = document.createElementNS(\"http://www.w3.org/2000/svg\", \"svg\");\n svg.setAttribute(\"viewBox\", \"0 -1 \" + sampleRate + \" 2\");\n svg.setAttribute(\"preserveAspectRatio\", \"none\");\n\n /*\n Add a g component to the SVG\n */\n let g = document.createElementNS(\"http://www.w3.org/2000/svg\", \"g\");\n svg.appendChild(g);\n\n /*\n Add a path component to the g\n */\n let path = document.createElementNS(\n \"http://www.w3.org/2000/svg\",\n \"path\"\n );\n path.setAttribute(\"d\", \"\");\n path.setAttribute(\"id\", \"waveform\");\n\n g.appendChild(path);\n\n /*\n Append the SVG to the waveform.\n */\n waveforms[i].appendChild(svg);\n }\n }\n }\n\n /**\n * Builds each waveform for the page.\n */\n function build() {\n if (config.web_audio_api_available) {\n /*\n If we don't have the wave form built, we need to build the waveform by loading\n the src with an array buffer.\n */\n if (\n config.waveforms.built[\n Math.abs(\n config.audio.src.split(\"\").reduce(function(a, b) {\n a = (a << 5) - a + b.charCodeAt(0);\n return a & a;\n }, 0)\n )\n ] == undefined\n ) {\n /*\n Initializes a new XML Http Request.\n */\n var req = new XMLHttpRequest();\n\n /*\n Opens the src parameter for the audio file to read in.\n */\n req.open(\"GET\", config.audio.src, true);\n req.responseType = \"arraybuffer\";\n\n /*\n When the ready state changes, check to see if we can render the\n wave form.\n */\n req.onreadystatechange = function(e) {\n /*\n When the request is complete, then we begin decoding the\n audio to build the waveform.\n */\n if (req.readyState == 4) {\n /*\n If the status is 200 means the response is a success and\n we decode the audio data.\n */\n if (req.status == 200) {\n /*\n Decode the audio data and process the waveform.\n */\n config.context.decodeAudioData(req.response, function(\n bufferedAudio\n ) {\n /*\n Set the buffer to the audio returned.\n */\n buffer = bufferedAudio;\n\n /*\n Get the peaks in the audio.\n */\n peaks = getPeaks(sampleRate, buffer);\n\n /*\n Build the SVG\n */\n process(sampleRate, buffer, peaks);\n });\n }\n }\n };\n req.send();\n } else {\n /*\n If we already have a waveform, we grab the waveform that\n was created for the song and display it. We do a simple hash\n of the song URL so it's already unique.\n */\n displayWaveForms(\n config.waveforms.built[\n Math.abs(\n config.audio.src.split(\"\").reduce(function(a, b) {\n a = (a << 5) - a + b.charCodeAt(0);\n return a & a;\n }, 0)\n )\n ]\n );\n }\n }\n }\n\n /**\n * Processes the audio and generates the waveform.\n *\n * @param {sampleRate} sampleRate - The rate we should sample the audio.\n * @param {arraybuffer} buffer - The Web Audio API\n * @param {array} peaks - The peaks in the audio.\n */\n function process(sampleRate, buffer, peaks) {\n /*\n If we have a buffer, we find the peaks in the audio.\n */\n if (buffer) {\n /*\n Get the total peaks in the song.\n */\n let totalPeaks = peaks.length;\n\n /*\n Figure out the depth of the peak.\n */\n let d = \"\";\n for (let peakNumber = 0; peakNumber < totalPeaks; peakNumber++) {\n if (peakNumber % 2 === 0) {\n d += ` M${~~(peakNumber / 2)}, ${peaks.shift()}`;\n } else {\n d += ` L${~~(peakNumber / 2)}, ${peaks.shift()}`;\n }\n }\n\n /*\n Add the waveform to the built waveforms array.\n */\n config.waveforms.built[\n Math.abs(\n config.audio.src.split(\"\").reduce(function(a, b) {\n a = (a << 5) - a + b.charCodeAt(0);\n return a & a;\n }, 0)\n )\n ] = d;\n\n /*\n Display the waveform.\n */\n displayWaveForms(\n config.waveforms.built[\n Math.abs(\n config.audio.src.split(\"\").reduce(function(a, b) {\n a = (a << 5) - a + b.charCodeAt(0);\n return a & a;\n }, 0)\n )\n ]\n );\n }\n }\n\n /**\n * Get the peaks of the audio for the waveform.\n *\n * @param {number} length - The sample size of the audio.\n * @param {array} buffer - The array buffer used to find the peaks in the audio.\n */\n function getPeaks(length, buffer) {\n /*\n Set the parameters needed to build the SVG.\n */\n const sampleSize = buffer.length / length;\n const sampleStep = ~~(sampleSize / 10) || 1;\n const numberOfChannels = buffer.numberOfChannels;\n const mergedPeaks = [];\n\n /*\n Iterate over the channels and find the peaks.\n */\n for (\n let channelNumber = 0;\n channelNumber < numberOfChannels;\n channelNumber++\n ) {\n /*\n Initialize the peaks array and set the channel data to what\n the buffer has in its channel data.\n */\n const peaks = [];\n const channelData = buffer.getChannelData(channelNumber);\n\n /*\n Iterate over peaks with respect to the sample size.\n */\n for (let peakNumber = 0; peakNumber < length; peakNumber++) {\n /*\n Gt the start and end peak.\n */\n const start = ~~(peakNumber * sampleSize);\n const end = ~~(start + sampleSize);\n\n /*\n Set min and max to the channel data first peak.\n */\n let min = channelData[0];\n let max = channelData[0];\n\n /*\n Iterate over the parts of the song starting to the\n ending to display the waveform.\n */\n for (\n let sampleIndex = start;\n sampleIndex < end;\n sampleIndex += sampleStep\n ) {\n const value = channelData[sampleIndex];\n\n if (value > max) {\n max = value;\n }\n if (value < min) {\n min = value;\n }\n }\n\n /*\n Set the max and min for the peak.\n */\n peaks[2 * peakNumber] = max;\n peaks[2 * peakNumber + 1] = min;\n\n /*\n Merge the peaks\n */\n if (channelNumber === 0 || max > mergedPeaks[2 * peakNumber]) {\n mergedPeaks[2 * peakNumber] = max;\n }\n\n if (channelNumber === 0 || min < mergedPeaks[2 * peakNumber + 1]) {\n mergedPeaks[2 * peakNumber + 1] = min;\n }\n }\n }\n\n /*\n Returns the merged peaks.\n */\n return mergedPeaks;\n }\n\n /**\n * Displays all of the waveforms necessary.\n *\n * @param {path} svg - The drawing of the waveform.\n */\n function displayWaveForms(svg) {\n let waveformElements = document.querySelectorAll(\".amplitude-wave-form\");\n\n /*\n Iterate over all of the waveform elements and\n display the waveform.\n */\n for (let i = 0; i < waveformElements.length; i++) {\n /*\n Get the playlist attribute of the waveform element.\n */\n let playlist = waveformElements[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n\n /*\n Get the song index attribute of the waveform element.\n */\n let song = waveformElements[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n If the playlist is null and the song is null it's a global element.\n */\n if (playlist == null && song == null) {\n displayGlobalWaveform(waveformElements[i], svg);\n }\n\n /*\n If the playlist is defined but the song is null it's a playlist element.\n */\n if (playlist != null && song == null) {\n displayPlaylistWaveform(waveformElements[i], svg, playlist);\n }\n\n /*\n If the playlist is not defined and the song is not null it's a song\n element.\n */\n if (playlist == null && song != null) {\n displaySongWaveform(waveformElements[i], svg, song);\n }\n\n /*\n If the playlist and song are defined it's a song in the playlist element.\n */\n if (playlist != null && song != null) {\n displaySongInPlaylistWaveform(waveformElements[i], svg, playlist, song);\n }\n }\n }\n\n /**\n * Displays a global wave form.\n *\n * @param {Node} element - Element to display the waveform in.\n * @param {SVG} svg - The waveform path.\n */\n function displayGlobalWaveform(element, svg) {\n let waveformPath = element.querySelector(\"svg g path\");\n\n waveformPath.setAttribute(\"d\", svg);\n }\n\n /**\n * Displays a playlist wave form.\n *\n * @param {Node} element - Element to display the waveform in.\n * @param {SVG} svg - The waveform path.\n * @param {string} playlist - The playlist we are displaying the waveform for.\n */\n function displayPlaylistWaveform(element, svg, playlist) {\n /*\n Ensure the playlist is the active playlist.\n */\n if (config.active_playlist == playlist) {\n let waveformPath = element.querySelector(\"svg g path\");\n\n waveformPath.setAttribute(\"d\", svg);\n }\n }\n\n /**\n * Displays a song wave form.\n *\n * @param {Node} element - Element to display the waveform in.\n * @param {SVG} svg - The waveform path.\n * @param {Integer} song - The index of the song we are displaying the\n * waveform for.\n */\n function displaySongWaveform(element, svg, song) {\n /*\n Ensure it's the active song being displayed.\n */\n if (config.active_index == song) {\n let waveformPath = element.querySelector(\"svg g path\");\n\n waveformPath.setAttribute(\"d\", svg);\n }\n }\n\n /**\n * Displays a song in playlist waveform.\n *\n * @param {Node} element - Element to display the waveform in.\n * @param {SVG} svg - The waveform path.\n * @param {String} playlist - The playlist the waveform is in.\n * @param {Integer} song - The index of the song we are displaying the waveform for.\n */\n function displaySongInPlaylistWaveform(element, svg, playlist, song) {\n /*\n Ensure it's the active song in the active playlist.\n */\n if (\n config.active_playlist == playlist &&\n config.playlists[config.active_playlist].active_index == song\n ) {\n let waveformPath = element.querySelector(\"svg g path\");\n\n waveformPath.setAttribute(\"d\", svg);\n }\n }\n\n /**\n * Determines if the user is using waveforms\n */\n function determineIfUsingWaveforms() {\n let waveforms = document.querySelectorAll(\".amplitude-wave-form\");\n\n if (waveforms.length > 0) {\n return true;\n } else {\n return false;\n }\n }\n\n /*\n Return the public methods.\n */\n return {\n init: init,\n build: build,\n determineIfUsingWaveforms: determineIfUsingWaveforms\n };\n})();\n\nexport default WaveForm;\n\n\n\n// WEBPACK FOOTER //\n// ./src/fx/waveform.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * The utility to handle the computation of time in AmplitudeJS.\n * @module utilities/Time\n */\nlet Time = (function() {\n /**\n * Computes the current song time. Breaks down where the song is into\n * hours, minutes, seconds and formats it to be displayed to the user.\n *\n * @access public\n */\n function computeCurrentTimes() {\n /*\n\t\t\tInitialize the current time object that will be returned.\n\t\t*/\n let currentTime = {};\n\n /*\n\t\t\tComputes the current seconds for the song.\n\t\t*/\n let currentSeconds =\n (Math.floor(config.audio.currentTime % 60) < 10 ? \"0\" : \"\") +\n Math.floor(config.audio.currentTime % 60);\n\n /*\n\t\t\tComputes the current minutes for the song.\n\t\t*/\n let currentMinutes = Math.floor(config.audio.currentTime / 60);\n\n /*\n\t\t\tInitialize the current hours variable.\n\t\t*/\n let currentHours = \"00\";\n\n /*\n\t\t\tIf the current minutes is less than 10, we add a leading 0.\n\t\t*/\n if (currentMinutes < 10) {\n currentMinutes = \"0\" + currentMinutes;\n }\n\n /*\n\t\t\tIf the user is more than 60 minutes into the song, then\n\t\t\twe extract the hours.\n\t\t*/\n if (currentMinutes >= 60) {\n currentHours = Math.floor(currentMinutes / 60);\n currentMinutes = currentMinutes % 60;\n\n /*\n\t\t\t\tIf the user is less than 10 minutes in, we append the\n\t\t\t\tadditional 0 to the minutes.\n\t\t\t*/\n if (currentMinutes < 10) {\n currentMinutes = \"0\" + currentMinutes;\n }\n }\n\n /*\n\t\t\tBuild a clean current time object and send back the appropriate information.\n\t\t*/\n currentTime.seconds = currentSeconds;\n currentTime.minutes = currentMinutes;\n currentTime.hours = currentHours;\n\n return currentTime;\n }\n\n /**\n * Computes the current song duration. Breaks down where the song is into\n * hours, minutes, seconds and formats it to be displayed to the user.\n *\n * @access public\n */\n function computeSongDuration() {\n /*\n\t\t\tInitialize the song duration object that will be returned.\n\t\t*/\n let songDuration = {};\n\n /*\n\t\t\tComputes the duration of the song's seconds.\n\t\t*/\n let songDurationSeconds =\n (Math.floor(config.audio.duration % 60) < 10 ? \"0\" : \"\") +\n Math.floor(config.audio.duration % 60);\n\n /*\n\t\t\tComputes the duration of the song's minutes.\n\t\t*/\n let songDurationMinutes = Math.floor(config.audio.duration / 60);\n\n /*\n\t\t\tInitialize the hours duration variable.\n\t\t*/\n var songDurationHours = \"00\";\n\n /*\n\t\t\tIf the song duration minutes is less than 10, we add a leading 0.\n\t\t*/\n if (songDurationMinutes < 10) {\n songDurationMinutes = \"0\" + songDurationMinutes;\n }\n\n /*\n\t\t\tIf there is more than 60 minutes in the song, then we\n\t\t\textract the hours.\n\t\t*/\n if (songDurationMinutes >= 60) {\n songDurationHours = Math.floor(songDurationMinutes / 60);\n songDurationMinutes = songDurationMinutes % 60;\n\n /*\n\t\t\t\tIf the song duration minutes is less than 10 we append\n\t\t\t\tthe additional 0.\n\t\t\t*/\n if (songDurationMinutes < 10) {\n songDurationMinutes = \"0\" + songDurationMinutes;\n }\n }\n\n /*\n\t\t\tBuild a clean song duration object and send back the appropriate information.\n\t\t*/\n songDuration.seconds = isNaN(songDurationSeconds)\n ? \"00\"\n : songDurationSeconds;\n songDuration.minutes = isNaN(songDurationMinutes)\n ? \"00\"\n : songDurationMinutes;\n songDuration.hours = isNaN(songDurationHours)\n ? \"00\"\n : songDurationHours.toString();\n\n return songDuration;\n }\n\n /**\n * Computes the song completion percentage.\n *\n * @access public\n */\n function computeSongCompletionPercentage() {\n return (config.audio.currentTime / config.audio.duration) * 100;\n }\n\n /**\n * Sets the current time for the audio.\n *\n * @access public\n */\n function setCurrentTime(time) {\n /*\n If the song is not live, we can set the current time.\n */\n if (!config.active_metadata.live) {\n /*\n Makes sure the number is finite to set the time.\n */\n if (isFinite(time)) {\n config.audio.currentTime = time;\n }\n }\n }\n\n /**\n * Defines what is returned by the module\n */\n return {\n computeCurrentTimes: computeCurrentTimes,\n computeSongDuration: computeSongDuration,\n computeSongCompletionPercentage: computeSongCompletionPercentage,\n setCurrentTime: setCurrentTime\n };\n})();\n\nexport default Time;\n\n\n\n// WEBPACK FOOTER //\n// ./src/utilities/time.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * AmplitudeJS Visual Handler for Buffered Progress Elements\n *\n * @module visual/BufferedProgressElements\n */\nlet BufferedProgressElements = (function() {\n /**\n * Syncs the buffered progress bars to the current percentage in the config\n *\n * @access public\n */\n function sync() {\n syncGlobal();\n syncPlaylist();\n syncSong();\n syncSongInPlaylist();\n }\n\n /**\n * Sync the global song buffered progress elements.\n */\n function syncGlobal() {\n /*\n\t\t\tGets all of the song buffered progress bars.\n\t\t*/\n const songBufferedProgressBars = document.getElementsByClassName(\n \"amplitude-buffered-progress\"\n );\n\n /*\n\t\t\tIterate over all of the song buffered progress bar and\n\t\t\tset them to 0 which is like re-setting them.\n\t\t*/\n for (let i = 0; i < songBufferedProgressBars.length; i++) {\n let playlist = songBufferedProgressBars[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let song = songBufferedProgressBars[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (playlist == null && song == null && !isNaN(config.buffered)) {\n songBufferedProgressBars[i].value = parseFloat(\n parseFloat(config.buffered) / 100\n );\n }\n }\n }\n\n /**\n * Sync the playlist song buffered progress elements.\n */\n function syncPlaylist() {\n /*\n\t\t\tGets all of the song buffered progress bars.\n\t\t*/\n const songBufferedProgressBarsPlaylist = document.querySelectorAll(\n '.amplitude-buffered-progress[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n );\n\n /*\n\t\t\tIterate over all of the song buffered progress bar and\n\t\t\tset them to 0 which is like re-setting them.\n\t\t*/\n for (let i = 0; i < songBufferedProgressBarsPlaylist.length; i++) {\n let song = songBufferedProgressBarsPlaylist[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (song == null && !isNaN(config.buffered)) {\n songBufferedProgressBarsPlaylist[i].value = parseFloat(\n parseFloat(config.buffered) / 100\n );\n }\n }\n }\n\n /**\n * Sync the song song buffered progress elements.\n */\n function syncSong() {\n /*\n\t\t\tGets all of the song buffered progress bars.\n\t\t*/\n const songBufferedProgressBarsSongs = document.querySelectorAll(\n '.amplitude-buffered-progress[data-amplitude-song-index=\"' +\n config.active_index +\n '\"]'\n );\n\n /*\n\t\t\tIterate over all of the song buffered progress bar and\n\t\t\tset them to 0 which is like re-setting them.\n\t\t*/\n for (let i = 0; i < songBufferedProgressBarsSongs.length; i++) {\n let playlist = songBufferedProgressBarsSongs[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n\n if (playlist == null && !isNaN(config.buffered)) {\n songBufferedProgressBarsSongs[i].value = parseFloat(\n parseFloat(config.buffered) / 100\n );\n }\n }\n }\n\n /**\n * Sync the song in playlist song buffered progress elements.\n */\n function syncSongInPlaylist() {\n let activePlaylistIndex =\n config.active_playlist != null && config.active_playlist != \"\"\n ? config.playlists[config.active_playlist].active_index\n : null;\n\n /*\n\t\t\tGets all of the song buffered progress bars.\n\t\t*/\n const songBufferedProgressBarsSongsInPlaylist = document.querySelectorAll(\n '.amplitude-buffered-progress[data-amplitude-song-index=\"' +\n activePlaylistIndex +\n '\"][data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n );\n\n /*\n\t\t\tIterate over all of the song buffered progress bar and\n\t\t\tset them to 0 which is like re-setting them.\n\t\t*/\n for (let i = 0; i < songBufferedProgressBarsSongsInPlaylist.length; i++) {\n if (!isNaN(config.buffered)) {\n songBufferedProgressBarsSongsInPlaylist[i].value = parseFloat(\n parseFloat(config.buffered) / 100\n );\n }\n }\n }\n\n /**\n * Sets all of the song buffered progress bars to 0\n *\n * @access public\n */\n function reset() {\n /*\n\t\t\tGets all of the song buffered progress bars.\n\t\t*/\n let songBufferedProgressBars = document.getElementsByClassName(\n \"amplitude-buffered-progress\"\n );\n\n /*\n\t\t\tIterate over all of the song buffered progress bar and\n\t\t\tset them to 0 which is like re-setting them.\n\t\t*/\n for (let i = 0; i < songBufferedProgressBars.length; i++) {\n songBufferedProgressBars[i].value = 0;\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n sync: sync,\n reset: reset\n };\n})();\n\nexport default BufferedProgressElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/bufferedProgressElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the Audio Navigation Utility\n * @module utilities/AudioNavigation\n */\nimport AudioNavigation from \"../utilities/audioNavigation.js\";\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/Core\n */\nimport Core from \"../core/core.js\";\n\n/**\n * Imports the AmplitudeJS Play Pause Elements\n * @module visual/PlayPauseElements\n */\nimport PlayPauseElements from \"../visual/playPauseElements.js\";\n\n/**\n * AmplitudeJS Ended Module. Handles the ended event on the audio.\n *\n * @module events/Ended\n */\nlet Ended = (function() {\n /**\n * When the song has ended, handles what to do next\n *\n * HANDLER FOR: ended\n *\n * @access public\n */\n function handle() {\n /*\n Sets the time out for song ended. This determines if\n we should go to the next song or delay between songs.\n */\n setTimeout(function() {\n /*\n If we continue next, we should move to the next song in the playlist.\n */\n if (config.continue_next) {\n /*\n\t\t\t\t\tIf the active playlist is not set, we set the\n\t\t\t\t\tnext song that's in the songs array.\n\t\t\t\t*/\n if (config.active_playlist == \"\" || config.active_playlist == null) {\n AudioNavigation.setNext(true);\n } else {\n AudioNavigation.setNextPlaylist(config.active_playlist, true);\n }\n } else {\n if (!config.is_touch_moving) {\n /*\n\t\t\t\t\t\tStops the active song.\n\t\t\t\t\t*/\n Core.stop();\n\n /*\n Sync the play pause elements.\n */\n PlayPauseElements.sync();\n }\n }\n }, config.delay);\n }\n\n /*\n Returns the public facing methods.\n */\n return {\n handle: handle\n };\n})();\n\nexport default Ended;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/ended.js","/*\n\tImport the necessary classes and config to use\n\twith the events.\n*/\nimport config from \"../config.js\";\n\n/**\n * Imports all of the handler objects used by the events.\n */\nimport KeyDown from \"./keydown.js\";\nimport TimeUpdate from \"./timeUpdate.js\";\nimport Ended from \"./ended.js\";\nimport Progress from \"./progress.js\";\nimport Play from \"./play.js\";\nimport Pause from \"./pause.js\";\nimport PlayPause from \"./playPause.js\";\nimport Stop from \"./stop.js\";\nimport Mute from \"./mute.js\";\nimport VolumeUp from \"./volumeUp.js\";\nimport VolumeDown from \"./volumeDown.js\";\nimport SongSlider from \"./songSlider.js\";\nimport VolumeSlider from \"./volumeSlider.js\";\nimport Next from \"./next.js\";\nimport Prev from \"./prev.js\";\nimport Repeat from \"./repeat.js\";\nimport RepeatSong from \"./repeatSong.js\";\nimport PlaybackSpeed from \"./playbackSpeed.js\";\nimport Shuffle from \"./shuffle.js\";\nimport SkipTo from \"./skipTo.js\";\nimport WaveForm from \"../fx/waveform.js\";\n\n/**\n * Imports the utility classes used by the evnets.\n */\nimport Debug from \"../utilities/debug.js\";\n\n/**\n * AmplitudeJS Events Module. Handles all of the events we listen to in\n * AmplitudeJS.\n *\n * @module events/Events\n */\nvar Events = (function() {\n /**\n * Initializes the handlers for the events listened to by Amplitude\n *\n * @access public\n */\n function initialize() {\n /*\n\t\t\tWrite out debug message\n\t\t*/\n Debug.writeMessage(\"Beginning initialization of event handlers..\");\n\n /*\n\t\t\tSets flag that the screen is moving and not a tap\n\t\t*/\n document.addEventListener(\"touchmove\", function() {\n config.is_touch_moving = true;\n });\n\n /*\n\t\t\tOn touch end if it was a touch move event, set moving to\n\t\t\tfalse\n\t\t*/\n document.addEventListener(\"touchend\", function() {\n if (config.is_touch_moving) {\n config.is_touch_moving = false;\n }\n });\n\n /*\n\t\t\tOn time update for the audio element, update visual displays that\n\t\t\trepresent the time on either a visualized element or time display.\n\t\t*/\n bindTimeUpdate();\n\n /*\n\t\t\tBinds key down event handlers for matching key codes to functions.\n\t\t*/\n bindKeyDownEventHandlers();\n\n /*\n\t\t\tWhen the audio element has ended playing, we handle the song\n\t\t\tending. In a single song or multiple modular song instance,\n\t\t\tthis just synchronizes the visuals for time and song time\n\t\t\tvisualization, but for a playlist it determines whether\n\t\t\tit should play the next song or not.\n\t\t*/\n bindSongEnded();\n\n /*\n\t\t\tBinds progress event so we can see how much of the song is loaded.\n\t\t*/\n bindProgress();\n\n /*\n\t\t\tBinds 'amplitude-play' event handlers\n\t\t*/\n bindPlay();\n\n /*\n\t\t\tBinds 'amplitude-pause' event handlers.\n\t\t*/\n bindPause();\n\n /*\n\t\t\tBinds 'amplitude-play-pause' event handlers.\n\t\t*/\n bindPlayPause();\n\n /*\n\t\t\tBinds 'amplitude-stop' event handlers.\n\t\t*/\n bindStop();\n\n /*\n\t\t\tBinds 'amplitude-mute' event handlers.\n\t\t*/\n bindMute();\n\n /*\n\t\t\tBinds 'amplitude-volume-up' event handlers\n\t\t*/\n bindVolumeUp();\n\n /*\n\t\t\tBinds 'amplitude-volume-down' event handlers\n\t\t*/\n bindVolumeDown();\n\n /*\n\t\t\tBinds 'amplitude-song-slider' event handlers\n\t\t*/\n bindSongSlider();\n\n /*\n\t\t\tBinds 'amplitude-volume-slider' event handlers.\n\t\t*/\n bindVolumeSlider();\n\n /*\n\t\t\tBinds 'amplitude-next' event handlers.\n\t\t*/\n bindNext();\n\n /*\n\t\t\tBinds 'amplitude-prev' event handlers.\n\t\t*/\n bindPrev();\n\n /*\n\t\t\tBinds 'amplitude-shuffle' event handlers.\n\t\t*/\n bindShuffle();\n\n /*\n\t\t\tBinds 'amplitude-repeat' event handlers.\n\t\t*/\n bindRepeat();\n\n /*\n\t\t\tBinds 'amplitude-repeat-song' event handlers.\n\t\t*/\n bindRepeatSong();\n\n /*\n\t\t\tBinds 'amplitude-playback-speed' event handlers.\n\t\t*/\n bindPlaybackSpeed();\n\n /*\n\t\t\tBinds 'amplitude-skip-to' event handlers.\n\t\t*/\n bindSkipTo();\n\n /*\n\t\t\tBinds `canplaythrough` event to build the waveform.\n\t\t*/\n bindCanPlayThrough();\n }\n\n /**\n * On time update for the audio element, update visual displays that\n * represent the time on either a visualized element or time display.\n *\n * @access private\n */\n function bindTimeUpdate() {\n /*\n\t\t\tBind for time update\n\t\t*/\n config.audio.removeEventListener(\"timeupdate\", TimeUpdate.handle);\n config.audio.addEventListener(\"timeupdate\", TimeUpdate.handle);\n\n /*\n\t\t\tBind for duration change\n\t\t*/\n config.audio.removeEventListener(\"durationchange\", TimeUpdate.handle);\n config.audio.addEventListener(\"durationchange\", TimeUpdate.handle);\n }\n\n /**\n * On keydown, we listen to what key got pressed so we can map the key to\n * a function. This allows the user to map pause and play, next, etc. to key\n * presses.\n *\n * @access private\n */\n function bindKeyDownEventHandlers() {\n document.removeEventListener(\"keydown\", KeyDown.handle);\n document.addEventListener(\"keydown\", KeyDown.handle);\n }\n\n /**\n * When the audio element has ended playing, we handle the song\n * ending. In a single song or multiple modular song instance,\n * this just synchronizes the visuals for time and song time\n * visualization, but for a playlist it determines whether\n * it should play the next song or not.\n *\n * @access private\n */\n function bindSongEnded() {\n config.audio.removeEventListener(\"ended\", Ended.handle);\n config.audio.addEventListener(\"ended\", Ended.handle);\n }\n\n /**\n * As the audio is loaded, the progress event gets fired. We bind into this\n * to grab the buffered percentage of the song. We can then add more elements\n * to show the buffered amount.\n *\n * @access private\n */\n function bindProgress() {\n config.audio.removeEventListener(\"progress\", Progress.handle);\n config.audio.addEventListener(\"progress\", Progress.handle);\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS play buttons\n *\n * @access private\n */\n function bindPlay() {\n /*\n\t\t\tGets all of the elements with the class amplitude-play\n\t\t*/\n var play_classes = document.getElementsByClassName(\"amplitude-play\");\n\n /*\n\t\t\tIterates over all of the play classes and binds the event interaction\n\t\t\tmethod to the element. If the browser is mobile, then the event is touchend\n\t\t\totherwise it is click.\n\t\t*/\n for (var i = 0; i < play_classes.length; i++) {\n if (\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\n navigator.userAgent\n )\n ) {\n play_classes[i].removeEventListener(\"touchend\", Play.handle);\n play_classes[i].addEventListener(\"touchend\", Play.handle);\n } else {\n play_classes[i].removeEventListener(\"click\", Play.handle);\n play_classes[i].addEventListener(\"click\", Play.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS pause buttons.\n *\n * @access private\n */\n function bindPause() {\n /*\n\t\t\tGets all of the elements with the class amplitude-pause\n\t\t*/\n var pause_classes = document.getElementsByClassName(\"amplitude-pause\");\n\n /*\n\t\t\tIterates over all of the pause classes and binds the event interaction\n\t\t\tmethod to the element. If the browser is mobile, then the event is touchend\n\t\t\totherwise it is click.\n\t\t*/\n for (var i = 0; i < pause_classes.length; i++) {\n if (\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\n navigator.userAgent\n )\n ) {\n pause_classes[i].removeEventListener(\"touchend\", Pause.handle);\n pause_classes[i].addEventListener(\"touchend\", Pause.handle);\n } else {\n pause_classes[i].removeEventListener(\"click\", Pause.handle);\n pause_classes[i].addEventListener(\"click\", Pause.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS play pause buttons\n *\n * @access private\n */\n function bindPlayPause() {\n /*\n\t\t\tGets all of the elements with the class amplitude-play-pause\n\t\t*/\n var play_pause_classes = document.getElementsByClassName(\n \"amplitude-play-pause\"\n );\n\n /*\n\t\t\tIterates over all of the play/pause classes and binds the event interaction\n\t\t\tmethod to the element. If the browser is mobile, then the event is touchend\n\t\t\totherwise it is click.\n\t\t*/\n for (var i = 0; i < play_pause_classes.length; i++) {\n if (\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\n navigator.userAgent\n )\n ) {\n play_pause_classes[i].removeEventListener(\"touchend\", PlayPause.handle);\n play_pause_classes[i].addEventListener(\"touchend\", PlayPause.handle);\n } else {\n play_pause_classes[i].removeEventListener(\"click\", PlayPause.handle);\n play_pause_classes[i].addEventListener(\"click\", PlayPause.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS stop buttons\n *\n * @access private\n */\n function bindStop() {\n /*\n\t\t\tGets all of the elements with the class amplitude-stop\n\t\t*/\n var stop_classes = document.getElementsByClassName(\"amplitude-stop\");\n\n /*\n\t\t\tIterates over all of the stop classes and binds the event interaction\n\t\t\tmethod to the element. If the browser is mobile, then the event is touchend\n\t\t\totherwise it is click.\n\t\t*/\n for (var i = 0; i < stop_classes.length; i++) {\n if (\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\n navigator.userAgent\n )\n ) {\n stop_classes[i].removeEventListener(\"touchend\", Stop.handle);\n stop_classes[i].addEventListener(\"touchend\", Stop.handle);\n } else {\n stop_classes[i].removeEventListener(\"click\", Stop.handle);\n stop_classes[i].addEventListener(\"click\", Stop.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS mute buttons\n *\n * @access private\n */\n function bindMute() {\n /*\n\t\t\tGets all of the elements with the class amplitue-mute\n\t\t*/\n var mute_classes = document.getElementsByClassName(\"amplitude-mute\");\n\n /*\n\t\t\tIterates over all of the mute classes and binds the event interaction\n\t\t\tmethod to the element. If the browser is mobile, then the event is touchend\n\t\t\totherwise it is click.\n\t\t*/\n for (var i = 0; i < mute_classes.length; i++) {\n /*\n\t\t\t\tWARNING: If iOS, we don't do anything because iOS does not allow the\n\t\t\t\tvolume to be adjusted through anything except the buttons on the side of\n\t\t\t\tthe device.\n\t\t\t*/\n if (\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\n navigator.userAgent\n )\n ) {\n /*\n\t\t\t\t\tChecks for an iOS device and displays an error message if debugging\n\t\t\t\t\tis turned on.\n\t\t\t\t*/\n if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {\n Debug.writeMessage(\n \"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\"\n );\n } else {\n mute_classes[i].removeEventListener(\"touchend\", Mute.handle);\n mute_classes[i].addEventListener(\"touchend\", Mute.handle);\n }\n } else {\n mute_classes[i].removeEventListener(\"click\", Mute.handle);\n mute_classes[i].addEventListener(\"click\", Mute.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS Volume Up Buttons\n *\n * @access private\n */\n function bindVolumeUp() {\n /*\n\t\t\tGets all of the elements with the class amplitude-volume-up\n\t\t*/\n var volume_up_classes = document.getElementsByClassName(\n \"amplitude-volume-up\"\n );\n\n /*\n\t\t\tIterates over all of the volume up classes and binds the event interaction\n\t\t\tmethods to the element. If the browser is mobile, then the event is touchend\n\t\t\totherwise it is click.\n\t\t*/\n for (var i = 0; i < volume_up_classes.length; i++) {\n /*\n\t\t\t\tWARNING: If iOS, we don't do anything because iOS does not allow the\n\t\t\t\tvolume to be adjusted through anything except the buttons on the side of\n\t\t\t\tthe device.\n\t\t\t*/\n if (\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\n navigator.userAgent\n )\n ) {\n /*\n\t\t\t\t\tChecks for an iOS device and displays an error message if debugging\n\t\t\t\t\tis turned on.\n\t\t\t\t*/\n if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {\n Debug.writeMessage(\n \"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\"\n );\n } else {\n volume_up_classes[i].removeEventListener(\"touchend\", VolumeUp.handle);\n volume_up_classes[i].addEventListener(\"touchend\", VolumeUp.handle);\n }\n } else {\n volume_up_classes[i].removeEventListener(\"click\", VolumeUp.handle);\n volume_up_classes[i].addEventListener(\"click\", VolumeUp.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS Volume Down Buttons\n *\n * @access private\n */\n function bindVolumeDown() {\n /*\n\t\t\tGets all of the elements with the class amplitude-volume-down\n\t\t*/\n var volume_down_classes = document.getElementsByClassName(\n \"amplitude-volume-down\"\n );\n\n /*\n\t\t\tIterates over all of the volume down classes and binds the event interaction\n\t\t\tmethods to the element. If the browser is mobile, then the event is touchend\n\t\t\totherwise it is click.\n\t\t*/\n for (var i = 0; i < volume_down_classes.length; i++) {\n /*\n\t\t\t\tWARNING: If iOS, we don't do anything because iOS does not allow the\n\t\t\t\tvolume to be adjusted through anything except the buttons on the side of\n\t\t\t\tthe device.\n\t\t\t*/\n if (\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\n navigator.userAgent\n )\n ) {\n /*\n\t\t\t\t\tChecks for an iOS device and displays an error message if debugging\n\t\t\t\t\tis turned on.\n\t\t\t\t*/\n if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {\n Debug.writeMessage(\n \"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\"\n );\n } else {\n volume_down_classes[i].removeEventListener(\n \"touchend\",\n VolumeDown.handle\n );\n volume_down_classes[i].addEventListener(\n \"touchend\",\n VolumeDown.handle\n );\n }\n } else {\n volume_down_classes[i].removeEventListener(\"click\", VolumeDown.handle);\n volume_down_classes[i].addEventListener(\"click\", VolumeDown.handle);\n }\n }\n }\n\n /**\n * Binds change and input events for AmplitudeJS Song Slider Inputs\n *\n * @access private\n */\n function bindSongSlider() {\n /*\n\t\t\tGets browser so if we need to apply overrides, like we usually\n\t\t\thave to do for anything cool in IE, we can do that.\n\t\t*/\n var ua = window.navigator.userAgent;\n var msie = ua.indexOf(\"MSIE \");\n\n /*\n\t\t\tGets all of the elements with the class amplitude-song-slider\n\t\t*/\n var song_sliders = document.getElementsByClassName(\"amplitude-song-slider\");\n\n /*\n\t\t\tIterates over all of the song slider classes and binds the event interaction\n\t\t\tmethods to the element. If the browser is IE we listen to the change event\n\t\t\twhere if it is anything else, it's the input method.\n\t\t*/\n for (var i = 0; i < song_sliders.length; i++) {\n if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\\:11\\./)) {\n song_sliders[i].removeEventListener(\"change\", SongSlider.handle);\n song_sliders[i].addEventListener(\"change\", SongSlider.handle);\n } else {\n song_sliders[i].removeEventListener(\"input\", SongSlider.handle);\n song_sliders[i].addEventListener(\"input\", SongSlider.handle);\n }\n }\n }\n\n /**\n * Binds change and input events fro AmplitudeJS Volume Slider inputs\n *\n * @access private\n */\n function bindVolumeSlider() {\n /*\n\t\t\tGets browser so if we need to apply overrides, like we usually\n\t\t\thave to do for anything cool in IE, we can do that.\n\t\t*/\n var ua = window.navigator.userAgent;\n var msie = ua.indexOf(\"MSIE \");\n\n /*\n\t\t\tGets all of the elements with the class amplitude-volume-slider\n */\n var volume_sliders = document.getElementsByClassName(\n \"amplitude-volume-slider\"\n );\n\n /*\n\t\t\tIterates over all of the volume slider classes and binds the event interaction\n\t\t\tmethods to the element. If the browser is IE we listen to the change event\n\t\t\twhere if it is anything else, it's the input method.\n\t\t*/\n for (var i = 0; i < volume_sliders.length; i++) {\n /*\n\t\t\t\tWARNING: If iOS, we don't do anything because iOS does not allow the\n\t\t\t\tvolume to be adjusted through anything except the buttons on the side of\n\t\t\t\tthe device.\n\t\t\t*/\n if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {\n Debug.writeMessage(\n \"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\"\n );\n } else {\n if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\\:11\\./)) {\n volume_sliders[i].removeEventListener(\"change\", VolumeSlider.handle);\n volume_sliders[i].addEventListener(\"change\", VolumeSlider.handle);\n } else {\n volume_sliders[i].removeEventListener(\"input\", VolumeSlider.handle);\n volume_sliders[i].addEventListener(\"input\", VolumeSlider.handle);\n }\n }\n }\n }\n\n /**\n * Binds click and touchend events fro AmplitudeJS Next buttons\n *\n * @access private\n */\n function bindNext() {\n /*\n\t\t\tGets all of the elements with the class amplitude-next\n */\n var next_classes = document.getElementsByClassName(\"amplitude-next\");\n\n /*\n\t\t\tIterates over all of the next classes and binds the event interaction\n\t\t\tmethods to the element. If the browser is mobile, then the event is touchend\n\t\t\totherwise it is click.\n\t\t*/\n for (var i = 0; i < next_classes.length; i++) {\n if (\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\n navigator.userAgent\n )\n ) {\n next_classes[i].removeEventListener(\"touchend\", Next.handle);\n next_classes[i].addEventListener(\"touchend\", Next.handle);\n } else {\n next_classes[i].removeEventListener(\"click\", Next.handle);\n next_classes[i].addEventListener(\"click\", Next.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS prev buttons.\n *\n * @access private\n */\n function bindPrev() {\n /*\n\t\t\tGets all of the elements with the class amplitude-prev\n\t\t*/\n var prev_classes = document.getElementsByClassName(\"amplitude-prev\");\n\n /*\n\t\t\tIterates over all of the prev classes and binds the event interaction\n\t\t\tmethods to the element. If the browser is mobile, then the event is touchend\n\t\t\totherwise it is click.\n\t\t*/\n for (var i = 0; i < prev_classes.length; i++) {\n if (\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\n navigator.userAgent\n )\n ) {\n prev_classes[i].removeEventListener(\"touchend\", Prev.handle);\n prev_classes[i].addEventListener(\"touchend\", Prev.handle);\n } else {\n prev_classes[i].removeEventListener(\"click\", Prev.handle);\n prev_classes[i].addEventListener(\"click\", Prev.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS shuffle buttons.\n *\n * @access private\n */\n function bindShuffle() {\n /*\n\t\t\tGets all of the elements with the class amplitude-shuffle\n\t\t*/\n var shuffle_classes = document.getElementsByClassName(\"amplitude-shuffle\");\n\n /*\n\t\t\tIterates over all of the shuffle classes and binds the event interaction\n\t\t\tmethods to the element. If the browser is mobile, then the event is touchend\n\t\t\totherwise it is click.\n\t\t*/\n for (var i = 0; i < shuffle_classes.length; i++) {\n /*\n\t\t\t\tSince we are re-binding everything we remove any classes that signify\n\t\t\t\ta state of the shuffle control.\n\t\t\t*/\n shuffle_classes[i].classList.remove(\"amplitude-shuffle-on\");\n shuffle_classes[i].classList.add(\"amplitude-shuffle-off\");\n\n if (\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\n navigator.userAgent\n )\n ) {\n shuffle_classes[i].removeEventListener(\"touchend\", Shuffle.handle);\n shuffle_classes[i].addEventListener(\"touchend\", Shuffle.handle);\n } else {\n shuffle_classes[i].removeEventListener(\"click\", Shuffle.handle);\n shuffle_classes[i].addEventListener(\"click\", Shuffle.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS repeat buttons.\n *\n * @access private\n */\n function bindRepeat() {\n /*\n\t\t\tGets all of the elements with the class amplitude-repeat\n\t\t*/\n var repeat_classes = document.getElementsByClassName(\"amplitude-repeat\");\n\n /*\n\t\t\tIterates over all of the repeat classes and binds the event interaction\n\t\t\tmethods to the element. If the browser is mobile, then the event is touchend\n\t\t\totherwise it is click.\n\t\t*/\n for (var i = 0; i < repeat_classes.length; i++) {\n /*\n\t\t\t\tSince we are re-binding everything we remove any classes that signify\n\t\t\t\ta state of the repeat control.\n\t\t\t*/\n repeat_classes[i].classList.remove(\"amplitude-repeat-on\");\n repeat_classes[i].classList.add(\"amplitude-repeat-off\");\n\n if (\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\n navigator.userAgent\n )\n ) {\n repeat_classes[i].removeEventListener(\"touchend\", Repeat.handle);\n repeat_classes[i].addEventListener(\"touchend\", Repeat.handle);\n } else {\n repeat_classes[i].removeEventListener(\"click\", Repeat.handle);\n repeat_classes[i].addEventListener(\"click\", Repeat.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS repeat song buttons.\n *\n * @access private\n */\n function bindRepeatSong() {\n /*\n\t\t\tGets all of the elements with the class amplitude-repeat-song\n\t\t*/\n var repeat_song_classes = document.getElementsByClassName(\n \"amplitude-repeat-song\"\n );\n\n /*\n\t\t\tIterates over all of the repeat song classes and binds the event interaction\n\t\t\tmethods to the element. If the browser is mobile, then the event is touchend\n\t\t\totherwise it is click.\n\t\t*/\n for (var i = 0; i < repeat_song_classes.length; i++) {\n /*\n\t\t\t\tSince we are re-binding everything we remove any classes that signify\n\t\t\t\ta state of the repeat control.\n\t\t\t*/\n repeat_song_classes[i].classList.remove(\"amplitude-repeat-on\");\n repeat_song_classes[i].classList.add(\"amplitude-repeat-off\");\n\n if (\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\n navigator.userAgent\n )\n ) {\n repeat_song_classes[i].removeEventListener(\n \"touchend\",\n RepeatSong.handle\n );\n repeat_song_classes[i].addEventListener(\"touchend\", RepeatSong.handle);\n } else {\n repeat_song_classes[i].removeEventListener(\"click\", RepeatSong.handle);\n repeat_song_classes[i].addEventListener(\"click\", RepeatSong.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS playback speed buttons\n *\n * @access private\n */\n function bindPlaybackSpeed() {\n /*\n\t\t\tGets all of the elements with the class amplitude-playback-speed\n\t\t*/\n var playback_speed_classes = document.getElementsByClassName(\n \"amplitude-playback-speed\"\n );\n\n /*\n\t\t\tIterates over all of the playback speed classes and binds the event interaction\n\t\t\tmethods to the element. If the browser is mobile, then the event is touchend\n\t\t\totherwise it is click.\n\t\t*/\n for (var i = 0; i < playback_speed_classes.length; i++) {\n if (\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\n navigator.userAgent\n )\n ) {\n playback_speed_classes[i].removeEventListener(\n \"touchend\",\n PlaybackSpeed.handle\n );\n playback_speed_classes[i].addEventListener(\n \"touchend\",\n PlaybackSpeed.handle\n );\n } else {\n playback_speed_classes[i].removeEventListener(\n \"click\",\n PlaybackSpeed.handle\n );\n playback_speed_classes[i].addEventListener(\n \"click\",\n PlaybackSpeed.handle\n );\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS skip to buttons.\n *\n * @access private\n */\n function bindSkipTo() {\n /*\n\t\t\tGets all of the skip to elements with the class 'amplitude-skip-to'\n\t\t*/\n var skipToClasses = document.getElementsByClassName(\"amplitude-skip-to\");\n\n /*\n\t\t\tIterates over all of the skip to classes and binds the event interaction\n\t\t\tmethods to the element. If the browser is mobile, then the event is touchend\n\t\t\totherwise it's a click.\n\t\t*/\n for (var i = 0; i < skipToClasses.length; i++) {\n if (\n /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\n navigator.userAgent\n )\n ) {\n skipToClasses[i].removeEventListener(\"touchend\", SkipTo.handle);\n skipToClasses[i].addEventListener(\"touchend\", SkipTo.handle);\n } else {\n skipToClasses[i].removeEventListener(\"click\", SkipTo.handle);\n skipToClasses[i].addEventListener(\"click\", SkipTo.handle);\n }\n }\n }\n\n /**\n * Binds can play through to a song.\n *\n * @access private\n */\n function bindCanPlayThrough() {\n if (WaveForm.determineIfUsingWaveforms()) {\n config.audio.removeEventListener(\"canplaythrough\", WaveForm.build);\n config.audio.addEventListener(\"canplaythrough\", WaveForm.build);\n }\n }\n\n /*\n\t\tReturns the public facing functions.\n\t*/\n return {\n initialize: initialize\n };\n})();\n\nexport default Events;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/events.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the core of AmplitudeJS\n * @module core/Core\n */\nimport Core from \"../core/core.js\";\n\n/**\n * Imports the Shuffle Utility\n * @module utilities/Shuffle\n */\nimport Shuffle from \"../utilities/shuffler.js\";\n\n/**\n * Imports the Repeater Utility\n * @module utilities/Repeater\n */\nimport Repeater from \"../utilities/repeater.js\";\n\n/**\n * Imports the Audio Navigation Utility\n * @module utilities/AudioNavigation\n */\nimport AudioNavigation from \"../utilities/audioNavigation.js\";\n\n/**\n * Imports the Repeat Elements Visual Handler\n * @module visual/RepeatElements\n */\nimport RepeatElements from \"../visual/repeatElements.js\";\n\n/**\n * Imports the Play Pause Elements Visual Handler\n * @module visual/PlayPauseElements\n */\nimport PlayPauseElements from \"../visual/playPauseElements.js\";\n\n/**\n * AmplitudeJS Key Down event handler\n *\n * @module events/KeyDown\n */\nlet KeyDown = (function() {\n /**\n * When the keydown event is fired, we determine which function should be run\n * based on what was passed in.\n *\n * HANDLER FOR: keydown\n *\n * @access public\n * @prop {object} event The event object being passed in.\n */\n function handle(event) {\n runKeyEvent(event.which);\n }\n\n /**\n * Runs an event on key down\n *\n * @access public\n * @param {number} key \t- The key code the event is bound to.\n */\n function runKeyEvent(key) {\n /*\n\t\t\tChecks to see if the user bound an event to the code pressed.\n\t\t*/\n if (config.bindings[key] != undefined) {\n /*\n\t\t\t\tDetermine which event should be run if bound.\n\t\t\t*/\n switch (config.bindings[key]) {\n /*\n\t\t\t\t\tFires a play pause event.\n\t\t\t\t*/\n case \"play_pause\":\n runPlayPauseKeyDownEvent();\n break;\n\n /*\n\t\t\t\t\tFires a next event.\n\t\t\t\t*/\n case \"next\":\n runNextKeyDownEvent();\n break;\n\n /*\n\t\t\t\t\tFires a previous event.\n\t\t\t\t*/\n case \"prev\":\n runPrevKeyDownEvent();\n break;\n\n /*\n\t\t\t\t\tFires a stop event.\n\t\t\t\t*/\n case \"stop\":\n runStopKeyDownEvent();\n break;\n\n /*\n\t\t\t\t\tFires a shuffle event.\n\t\t\t\t*/\n case \"shuffle\":\n runShuffleKeyDownEvent();\n break;\n\n /*\n\t\t\t\t\tFires a repeat event.\n\t\t\t\t*/\n case \"repeat\":\n runRepeatKeyDownEvent();\n break;\n }\n }\n }\n\n /**\n * Runs the play pause method for key down.\n */\n function runPlayPauseKeyDownEvent() {\n /*\n If the song is paused, we play the song. If the song is playing,\n we pause the song.\n */\n if (config.audio.paused) {\n Core.play();\n } else {\n Core.pause();\n }\n\n /*\n Now we sync all the elements to match the state of the audio.\n We don't need to do any checks on new songs or changed playlists\n in the global since it's whatever song is playing.\n */\n PlayPauseElements.sync();\n }\n\n /**\n * Runs the next method for key down.\n */\n function runNextKeyDownEvent() {\n /*\n Check to see if the current state of the player\n is in playlist mode or not playlist mode.\n */\n if (config.active_playlist == \"\" || config.active_playlist == null) {\n AudioNavigation.setNext();\n } else {\n AudioNavigation.setNextPlaylist(config.active_playlist);\n }\n }\n\n /**\n * Runs the previous method for key down.\n */\n function runPrevKeyDownEvent() {\n /*\n Check to see if the current playlist has been set\n or null and set the previous song.\n */\n if (config.active_playlist == \"\" || config.active_playlist == null) {\n AudioNavigation.setPrevious();\n } else {\n AudioNavigation.setPreviousPlaylist(config.active_playlist);\n }\n }\n\n /**\n * Runs the stop method for key down.\n */\n function runStopKeyDownEvent() {\n /*\n Syncs all of the play pause elements to pause.\n */\n PlayPauseElements.syncToPause();\n\n /*\n Stops the active song.\n */\n Core.stop();\n }\n\n /**\n * Runs the shuffle method for key down.\n */\n function runShuffleKeyDownEvent() {\n /*\n Check to see if the current playlist has been set\n or null and set the previous song.\n */\n if (config.active_playlist == \"\" || config.active_playlist == null) {\n Shuffle.toggleShuffle();\n } else {\n Shuffle.toggleShufflePlaylist(config.active_playlist);\n }\n }\n\n /**\n * Run the repeat method for key down.\n */\n function runRepeatKeyDownEvent() {\n /*\n Toggles the repeat\n */\n Repeater.setRepeat(!config.repeat);\n\n /*\n Visually sync repeat\n */\n RepeatElements.syncRepeat();\n }\n\n /**\n * Returns the public methods for the handler.\n */\n return {\n handle: handle\n };\n})();\n\nexport default KeyDown;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/keydown.js","/**\n * Imports the config to use the values\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/core\n */\nimport Core from \"../core/core.js\";\n\n/**\n * Imports the AmplitudeJS Visual Mute Elements\n * @module visual/MuteElements\n */\nimport MuteElements from \"../visual/muteElements.js\";\n\n/**\n * Imports the AmplitudeJS Visual Volume Slider Elements\n * @module visual/VolumeSliderElements\n */\nimport VolumeSliderElements from \"../visual/volumeSliderElements.js\";\n\n/**\n * Handles all events for a mute event.\n * @module events/Mute\n */\nlet Mute = (function() {\n /**\n * Handles an event for a mute element\n *\n * HANDLER FOR: class=\"amplitude-mute\"\n *\n * @access public\n */\n function handle() {\n /*\n We don't fire this if the user is touching the screen and it's moving.\n This could lead to a mis-fire\n */\n if (!config.is_touch_moving) {\n /*\n\t\t\t\tIf the current volume in the config is 0, we set the volume to the\n\t\t\t\tpre_mute level. This means that the audio is already muted and\n\t\t\t\tneeds to be restored to the pre_mute level.\n\n\t\t\t\tOtherwise, we set pre_mute volume to the current volume\n\t\t\t\tand set the config volume to 0, muting the audio.\n\t\t\t*/\n if (config.volume == 0) {\n Core.setVolume(config.pre_mute_volume);\n } else {\n config.pre_mute_volume = config.volume;\n Core.setVolume(0);\n }\n\n /*\n Sync Mute Elements.\n */\n MuteElements.setMuted(config.volume == 0 ? true : false);\n\n /*\n\t\t\t\tSyncs the volume sliders so the visuals align up with the functionality.\n\t\t\t\tIf the volume is at 0, then the sliders should represent that so the user\n\t\t\t\thas the right starting point.\n\t\t\t*/\n VolumeSliderElements.sync();\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n handle: handle\n };\n})();\n\nexport default Mute;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/mute.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the AmplitudeJS Core module.\n * @module core/core\n */\nimport Core from \"../core/core.js\";\n\n/**\n * Imports the Play Pause Elements Module.\n * @module visual/PlayPauseElements\n */\nimport PlayPauseElements from \"../visual/playPauseElements.js\";\n\n/**\n * Imports the Callbacks Module\n * @module utilities/Callbacks\n */\nimport Callbacks from \"../utilities/callbacks.js\";\n\n/**\n * Imports the Amplitude Audio Navigation Utility\n * @module utilities/AudioNavigation\n */\nimport AudioNavigation from \"../utilities/audioNavigation.js\";\n\n/**\n * AmplitudeJS Debug Module\n * @module utilities/Debug\n */\nimport Debug from \"../utilities/debug.js\";\n\n/**\n * AmplitudeJS Next Event Handler\n *\n * @module events/Next\n */\nlet Next = (function() {\n /**\n * Handles an event on the next button\n *\n * HANDLER FOR: class=\"amplitude-next\"\n *\n * GLOBAL: class=\"amplitude-next\"\n * PLAYLIST: class=\"amplitude-next\" amplitude-playlist=\"playlist_key\"\n *\n * @access public\n */\n function handle() {\n /*\n We don't fire this if the user is touching the screen and it's moving.\n This could lead to a mis-fire\n */\n if (!config.is_touch_moving) {\n /*\n Gets the playlist attribute from the element.\n */\n let playlist = this.getAttribute(\"data-amplitude-playlist\");\n\n /*\n If the playlist is null, we handle the global next.\n */\n if (playlist == null) {\n handleGlobalNext();\n }\n\n /*\n If the playlist is set, we handle the playlist next.\n */\n if (playlist != null) {\n handlePlaylistNext(playlist);\n }\n }\n }\n\n /**\n * Handles an event on a global enxt button.\n *\n * @access private\n */\n function handleGlobalNext() {\n /*\n Check to see if the current state of the player\n is in playlist mode or not playlist mode. If we are in playlist mode,\n we set next on the playlist.\n */\n if (config.active_playlist == \"\" || config.active_playlist == null) {\n AudioNavigation.setNext();\n } else {\n AudioNavigation.setNextPlaylist(config.active_playlist);\n }\n }\n\n /**\n * Handles an event on a next playlist button.\n *\n * @access private\n * @prop {string} playlist - The playlist we are handling the next for.\n */\n function handlePlaylistNext(playlist) {\n /*\n Ensure the playlist is the same as the active playlist. To get to change\n the scope to a new playlist, you need to play that playlist.\n */\n if (playlist == config.active_playlist) {\n AudioNavigation.setNextPlaylist(playlist);\n } else {\n Debug.writeMessage(\n \"You can not go to the next song on a playlist that is not being played!\"\n );\n }\n }\n\n /*\n Returns the public facing methods.\n */\n return {\n handle: handle\n };\n})();\n\nexport default Next;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/next.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the ConfigState module.\n * @module utilities/ConfigState\n */\nimport ConfigState from \"../utilities/configState.js\";\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/Core\n */\nimport Core from \"../core/core.js\";\n\n/**\n * Imports the AmplitudeJS Play Pause Elements\n * @module visual/PlayPauseElements\n */\nimport PlayPauseElements from \"../visual/playPauseElements.js\";\n\n/**\n * Handles all of the pause events\n * @module events/Pause\n */\nlet Pause = (function() {\n /**\n * Handles an event on a pause button\n *\n * HANDLER FOR: class=\"amplitude-pause\"\n *\n * GLOBAL: class=\"amplitude-pause\"\n * PLAYLIST: class=\"amplitude-pause\" amplitude-playlist=\"playlist_key\"\n * SONG: class=\"amplitude-pause\" amplitude-song-index=\"song_index\"\n * SONG IN PLAYLIST: class=\"amplitude-pause\" amplitude-playlist=\"playlist-key\" amplitude-song-index=\"playlist_index\"\n *\n * @access public\n */\n function handle() {\n /*\n If the touch is moving, we do not want to accidentally touch the play\n pause element and fire an event.\n */\n if (!config.is_touch_moving) {\n /*\n Gets the attribute for song index so we can check if\n there is a need to change the song. In some scenarios\n there might be multiple pause classes on the page. In that\n case it is possible the user could click a different pause\n class.\n */\n let songIndexAttribute = this.getAttribute(\"data-amplitude-song-index\");\n let playlistAttribute = this.getAttribute(\"data-amplitude-playlist\");\n\n /*\n Handle a global pause button.\n */\n if (playlistAttribute == null && songIndexAttribute == null) {\n handleGlobalPause();\n }\n\n /*\n Handle a playlist pause button.\n */\n if (playlistAttribute != null && songIndexAttribute == null) {\n handlePlaylistPause(playlistAttribute);\n }\n\n /*\n Handle a song pause button.\n */\n if (playlistAttribute == null && songIndexAttribute != null) {\n handleSongPause(songIndexAttribute);\n }\n\n /*\n Handle a song in playlist pause button.\n */\n if (playlistAttribute != null && songIndexAttribute != null) {\n handleSongInPlaylistPause(playlistAttribute, songIndexAttribute);\n }\n }\n }\n\n /**\n * Handles global pause button which pauses whatever song is\n * active.\n *\n * @access private\n */\n function handleGlobalPause() {\n /*\n Pauses the song.\n */\n Core.pause();\n\n /*\n Sync the play pause elements.\n */\n PlayPauseElements.sync();\n }\n\n /**\n * Handles the playlist pause.\n *\n * @access private\n * @param {string} playlist The playlist the pause button belongs to.\n */\n function handlePlaylistPause(playlist) {\n /*\n Checks to see if the active playlist is the same\n */\n if (config.active_playlist == playlist) {\n /*\n Pauses the song.\n */\n Core.pause();\n\n /*\n Sync the play pause elements.\n */\n PlayPauseElements.sync();\n }\n }\n\n /**\n * Handles the song pause.\n *\n * @access private\n * @param {integer} song The song the pause button belongs to.\n */\n function handleSongPause(song) {\n /*\n Checks to see if the active playlist is null and the song matches\n the active index.\n */\n if (\n (config.active_playlist == \"\" || config.active_playlist == null) &&\n config.active_index == song\n ) {\n /*\n Pauses the song.\n */\n Core.pause();\n\n /*\n Sync the play pause elements.\n */\n PlayPauseElements.sync();\n }\n }\n\n /**\n * Handles the song in playlist pause.\n *\n * @access private\n * @param {string} playlist The playlist the pause button belongs to.\n * @param {integer} song The song the pause button belongs to.\n */\n function handleSongInPlaylistPause(playlist, song) {\n /*\n Checks to see if the active song matches the song and the\n active playlist matches the playlist. This means the pause button is\n for the song in the playlist.\n */\n if (\n config.active_playlist == playlist &&\n config.playlists[playlist].active_index == song\n ) {\n /*\n Pauses the song.\n */\n Core.pause();\n\n /*\n Sync the play pause elements.\n */\n PlayPauseElements.sync();\n }\n }\n\n /*\n Returns the public facing elements\n */\n return {\n handle: handle\n };\n})();\n\nexport default Pause;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/pause.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the config state utility.\n * @module utilities/ConfigState\n */\nimport ConfigState from \"../utilities/configState.js\";\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/Core\n */\nimport Core from \"../core/core.js\";\n\n/**\n * Imports the AmplitudeJS Checks Utility\n * @module utilities/Checks\n */\nimport Checks from \"../utilities/checks.js\";\n\n/**\n * Imports the AmplitudeJS Audio Navigation Utility\n * @module utilities/AudioNavigation\n */\nimport AudioNavigation from \"../utilities/audioNavigation.js\";\n\n/**\n * Imports the AmplitudeJS Play Pause Elements\n * @module visual/PlayPauseElements\n */\nimport PlayPauseElements from \"../visual/playPauseElements.js\";\n\n/**\n * Handles all of the play events\n * @module events/Play\n */\nlet Play = (function() {\n /**\n * Handles an event on a play button in Amplitude.\n *\n * HANDLER FOR: class=\"amplitude-play\"\n *\n * GLOBAL: class=\"amplitude-play\"\n * PLAYLIST: class=\"amplitude-play\" amplitude-playlist=\"playlist_key\"\n * SONG: class=\"amplitude-play\" amplitude-song-index=\"song_index\"\n * SONG IN PLAYLIST: class=\"amplitude-play\" amplitude-playlist=\"playlist-key\" amplitude-song-index=\"playlist_index\"\n *\n * @access public\n */\n function handle() {\n /*\n If the touch is moving, we do not want to accidentally touch the play\n pause element and fire an event.\n */\n if (!config.is_touch_moving) {\n /*\n Gets the attribute for song index so we can check if\n there is a need to change the song. In some scenarios\n there might be multiple play classes on the page. In that\n case it is possible the user could click a different play\n class and change the song.\n */\n let songIndexAttribute = this.getAttribute(\"data-amplitude-song-index\");\n let playlistAttribute = this.getAttribute(\"data-amplitude-playlist\");\n\n /*\n Handle a global play button.\n */\n if (playlistAttribute == null && songIndexAttribute == null) {\n handleGlobalPlay();\n }\n\n /*\n Handle a playlist play button.\n */\n if (playlistAttribute != null && songIndexAttribute == null) {\n handlePlaylistPlay(playlistAttribute);\n }\n\n /*\n Handle a song play button.\n */\n if (playlistAttribute == null && songIndexAttribute != null) {\n handleSongPlay(songIndexAttribute);\n }\n\n /*\n Handle a song in playlist play button.\n */\n if (playlistAttribute != null && songIndexAttribute != null) {\n handleSongInPlaylistPlay(playlistAttribute, songIndexAttribute);\n }\n }\n }\n\n /**\n * Handles global play button which plays whatever song is\n * active.\n *\n * @access private\n */\n function handleGlobalPlay() {\n /*\n Plays the song\n */\n Core.play();\n\n /*\n Sync the play pause elements.\n */\n PlayPauseElements.sync();\n }\n\n /**\n * Handle the playlist play.\n *\n * @access private\n * @param {string} playlist The playlist the play button belongs to.\n */\n function handlePlaylistPlay(playlist) {\n /*\n Checks if we have a new playlist.\n */\n if (Checks.newPlaylist(playlist)) {\n /*\n Sets the active playlist to what belongs to the playlist.\n */\n AudioNavigation.setActivePlaylist(playlist);\n\n /*\n Play first song in the playlist since we just\n switched playlists, we start from the first song.\n\n If the user has shuffle on for the playlist, then\n we go from the first song in the shuffle playlist array.\n */\n if (config.playlists[playlist].shuffle) {\n AudioNavigation.changeSongPlaylist(\n playlist,\n config.playlists[playlist].shuffle_list[0],\n 0\n );\n } else {\n AudioNavigation.changeSongPlaylist(\n playlist,\n config.playlists[playlist].songs[0],\n 0\n );\n }\n }\n\n /*\n Plays the song.\n */\n Core.play();\n\n /*\n Syncs the play pause elements since they are dependent upon this state\n of the player.\n */\n PlayPauseElements.sync();\n }\n\n /**\n * Handles the song play button.\n *\n * @access private\n * @param {integer} song The index of the song we are playing.\n */\n function handleSongPlay(song) {\n /*\n There can be multiple playlists on the page and there can be\n multiple songs on the page AND there can be songs in multiple\n playlists, so we have some checking to do.\n */\n\n /*\n Check to see if the playlist has changed. Essentially, if we are moving\n out of a playlist context.\n */\n if (Checks.newPlaylist(null)) {\n /*\n We've moved out of the playlist context, so we set the active playlist\n to null\n */\n AudioNavigation.setActivePlaylist(null);\n\n /*\n We then change the song to the index selected.\n */\n AudioNavigation.changeSong(config.songs[song], song);\n }\n\n /*\n Check to see if the song has changed. If it has,\n set the active song. If it was in a playlist, the\n song wouldn't change here, since we already set the\n song when we checked for a playlist.\n */\n if (Checks.newSong(null, song)) {\n /*\n The song selected is different, so we change the\n song.\n */\n AudioNavigation.changeSong(config.songs[song], song);\n }\n\n /*\n Plays the song\n */\n Core.play();\n\n /*\n Syncs the play pause elements since they are dependent upon this state\n of the player.\n */\n PlayPauseElements.sync();\n }\n\n /**\n * Handles the song in playlist play.\n *\n * @access private\n * @param {string} playlist The playlist the play button belongs to.\n * @param {integer} song The song the play button belongs to.\n */\n function handleSongInPlaylistPlay(playlist, song) {\n /*\n\t\t\tThere can be multiple playlists on the page and there can be\n\t\t\tmultiple songs on the page AND there can be songs in multiple\n\t\t\tplaylists, so we have some checking to do.\n\t\t*/\n\n /*\n\t\t\tCheck to see if the playlist has changed. Essentially, if we are moving\n out of a playlist context.\n\t\t*/\n if (Checks.newPlaylist(playlist)) {\n /*\n We've moved out of the playlist context, so we set the active playlist\n to null\n */\n AudioNavigation.setActivePlaylist(playlist);\n\n /*\n\t\t\t\tWe then change the song to the index selected.\n\t\t\t*/\n AudioNavigation.changeSongPlaylist(\n playlist,\n config.playlists[playlist].songs[song],\n song\n );\n }\n\n /*\n\t\t\tCheck to see if the song has changed. If it has,\n\t\t\tset the active song. If it was in a playlist, the\n\t\t\tsong wouldn't change here, since we already set the\n\t\t\tsong when we checked for a playlist.\n\t\t*/\n if (Checks.newSong(playlist, song)) {\n /*\n\t\t\t\tThe song selected is different, so we change the\n\t\t\t\tsong.\n\t\t\t*/\n AudioNavigation.changeSongPlaylist(\n playlist,\n config.playlists[playlist].songs[song],\n song\n );\n }\n\n /*\n Plays the song\n */\n Core.play();\n\n /*\n Now we sync all the elements to match the state of the audio.\n We don't need to do any checks on new songs or changed playlists\n in the global since it's whatever song is playing.\n */\n PlayPauseElements.sync();\n }\n\n /*\n Returns the public facing elements\n */\n return {\n handle: handle\n };\n})();\n\nexport default Play;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/play.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Import the config state utility.\n * @module utilities/configState\n */\nimport ConfigState from \"../utilities/configState.js\";\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/Core\n */\nimport Core from \"../core/core.js\";\n\n/**\n * Imports the AmplitudeJS Checks Utility\n * @module utilities/Checks\n */\nimport Checks from \"../utilities/checks.js\";\n\n/**\n * Imports the AmplitudeJS Audio Navigation Utility\n * @module utilities/AudioNavigation\n */\nimport AudioNavigation from \"../utilities/audioNavigation.js\";\n\n/**\n * Imports the AmplitudeJS Play Pause Elements\n * @module visual/PlayPauseElements\n */\nimport PlayPauseElements from \"../visual/playPauseElements.js\";\n\n/**\n * Handles all of the play pause events\n * @module events/PlayPause\n */\nlet PlayPause = (function() {\n /**\n * Handles an event on a play/pause button\n *\n * HANDLER FOR: class=\"amplitude-play-pause\"\n *\n * GLOBAL: class=\"amplitude-play-pause\"\n * PLAYLIST: class=\"amplitude-play-pause\" amplitude-playlist=\"playlist_key\"\n * SONG: class=\"amplitude-play-pause\" amplitude-song-index=\"song_index\"\n * SONG IN PLAYLIST: class=\"amplitude-play-pause\" amplitude-playlist=\"playlist-key\" amplitude-song-index=\"playlist_index\"\n *\n * @access public\n */\n function handle() {\n /*\n If the touch is moving, we do not want to accidentally touch the play\n pause element and fire an event.\n */\n if (!config.is_touch_moving) {\n /*\n Get the playlist and song from the element. It's alright if these\n are null.\n */\n let playlist = this.getAttribute(\"data-amplitude-playlist\");\n let song = this.getAttribute(\"data-amplitude-song-index\");\n\n /*\n Handle a global play pause button\n */\n if (playlist == null && song == null) {\n handleGlobalPlayPause();\n }\n\n /*\n Handle a playlist play pause button\n */\n if (playlist != null && song == null) {\n handlePlaylistPlayPause(playlist);\n }\n\n /*\n Handle a song play pause button\n */\n if (playlist == null && song != null) {\n handleSongPlayPause(song);\n }\n\n /*\n Handle a song in playlist play pause button\n */\n if (playlist != null && song != null) {\n handleSongInPlaylistPlayPause(playlist, song);\n }\n }\n }\n\n /**\n * Sets the main play pause buttons to the current state of the song.\n * @access private\n */\n function handleGlobalPlayPause() {\n /*\n If the song is paused, we play the song. If the song is playing,\n we pause the song.\n */\n if (config.audio.paused) {\n Core.play();\n } else {\n Core.pause();\n }\n\n /*\n Now we sync all the elements to match the state of the audio.\n We don't need to do any checks on new songs or changed playlists\n in the global since it's whatever song is playing.\n */\n PlayPauseElements.sync();\n }\n\n /**\n * Sets the playlist main play pause buttons to the current state of the song.\n * @access private\n * @param {string} playlist The playlist the main play pause button controls\n */\n function handlePlaylistPlayPause(playlist) {\n /*\n The only thing that can change when you click a playlist\n play pause is the playlist. Main play pauses have no change\n in song, song play pauses can change playlist and song.\n */\n if (Checks.newPlaylist(playlist)) {\n /*\n If there's a new playlist, then we set the new playlist.\n */\n AudioNavigation.setActivePlaylist(playlist);\n\n /*\n Play first song in the playlist since we just\n switched playlists, we start from the first song.\n\n If the user has shuffle on for the playlist, then\n we go from the first song in the shuffle playlist array.\n */\n if (config.playlists[playlist].shuffle) {\n AudioNavigation.changeSongPlaylist(\n playlist,\n config.playlists[playlist].shuffle_list[0],\n 0,\n true\n );\n } else {\n AudioNavigation.changeSongPlaylist(\n playlist,\n config.playlists[playlist].songs[0],\n 0\n );\n }\n }\n\n /*\n If the song is paused, we play the song. If the song is playing,\n we pause the song.\n */\n if (config.audio.paused) {\n Core.play();\n } else {\n Core.pause();\n }\n\n /*\n Now we sync all the elements to match the state of the audio.\n We don't need to do any checks on new songs or changed playlists\n in the global since it's whatever song is playing.\n */\n PlayPauseElements.sync();\n }\n\n /**\n * Sets the playlist main play pause buttons to the current state of the song.\n * @access private\n * @param {string} song The index of the song being played/paused\n */\n function handleSongPlayPause(song) {\n /*\n\t\t\tThere can be multiple playlists on the page and there can be\n\t\t\tmultiple songs on the page AND there can be songs in multiple\n\t\t\tplaylists, so we have some checking to do.\n\t\t*/\n\n /*\n\t\t\tCheck to see if the playlist has changed. Essentially, if we are moving\n out of a playlist context.\n\t\t*/\n if (Checks.newPlaylist(null)) {\n /*\n We've moved out of the playlist context, so we set the active playlist\n to null\n */\n AudioNavigation.setActivePlaylist(null);\n\n /*\n\t\t\t\tWe then change the song to the index selected.\n\t\t\t*/\n AudioNavigation.changeSong(config.songs[song], song, true);\n }\n\n /*\n\t\t\tCheck to see if the song has changed. If it has,\n\t\t\tset the active song. If it was in a playlist, the\n\t\t\tsong wouldn't change here, since we already set the\n\t\t\tsong when we checked for a playlist.\n\t\t*/\n if (Checks.newSong(null, song)) {\n /*\n\t\t\t\tThe song selected is different, so we change the\n\t\t\t\tsong.\n\t\t\t*/\n AudioNavigation.changeSong(config.songs[song], song, true);\n }\n\n /*\n If the song is paused, we play the song. If the song is playing,\n we pause the song.\n */\n if (config.audio.paused) {\n Core.play();\n } else {\n Core.pause();\n }\n\n /*\n Now we sync all the elements to match the state of the audio.\n We don't need to do any checks on new songs or changed playlists\n in the global since it's whatever song is playing.\n */\n PlayPauseElements.sync();\n }\n\n /**\n * Sets the song in playlist play pause buttons to the current\n * state of the song.\n * @access private\n * @param {string} playlist The playlist the song is a part of\n * @param {number} song The index of the song being played/paused\n */\n function handleSongInPlaylistPlayPause(playlist, song) {\n /*\n\t\t\tThere can be multiple playlists on the page and there can be\n\t\t\tmultiple songs on the page AND there can be songs in multiple\n\t\t\tplaylists, so we have some checking to do.\n\t\t*/\n\n /*\n\t\t\tCheck to see if the playlist has changed. Essentially, if we are moving\n out of a playlist context.\n\t\t*/\n if (Checks.newPlaylist(playlist)) {\n /*\n We've moved out of the playlist context, so we set the active playlist\n to null\n */\n AudioNavigation.setActivePlaylist(playlist);\n\n /*\n\t\t\t\tWe then change the song to the index selected.\n\t\t\t*/\n AudioNavigation.changeSongPlaylist(\n playlist,\n config.playlists[playlist].songs[song],\n song,\n true\n );\n }\n\n /*\n\t\t\tCheck to see if the song has changed. If it has,\n\t\t\tset the active song. If it was in a playlist, the\n\t\t\tsong wouldn't change here, since we already set the\n\t\t\tsong when we checked for a playlist.\n\t\t*/\n if (Checks.newSong(playlist, song)) {\n /*\n\t\t\t\tThe song selected is different, so we change the\n\t\t\t\tsong.\n\t\t\t*/\n AudioNavigation.changeSongPlaylist(\n playlist,\n config.playlists[playlist].songs[song],\n song,\n true\n );\n }\n\n /*\n If the song is paused, we play the song. If the song is playing,\n we pause the song.\n */\n if (config.audio.paused) {\n Core.play();\n } else {\n Core.pause();\n }\n\n /*\n Now we sync all the elements to match the state of the audio.\n We don't need to do any checks on new songs or changed playlists\n in the global since it's whatever song is playing.\n */\n PlayPauseElements.sync();\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n handle: handle\n };\n})();\n\nexport default PlayPause;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/playPause.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the Amplitude Core module\n * @module core/Core\n */\nimport Core from \"../core/core.js\";\n\n/**\n * Imports the Playback Speed Visual Elements\n * @module visual/PlaybackSpeedElements\n */\nimport PlaybackSpeedElements from \"../visual/playbackSpeedElements.js\";\n\n/**\n * AmplitudeJS Playback Speed Event Handler\n *\n * @module events/PlaybackSpeed\n */\nlet PlaybackSpeed = (function() {\n /**\n * Handles an event on the playback speed button\n *\n * HANDLER FOR: class=\"amplitude-playback-speed\"\n *\n * @access public\n */\n function handle() {\n if (!config.is_touch_moving) {\n /*\n\t\t\t\tWe increment the speed by .5 everytime we click\n\t\t\t\tthe button to change the playback speed. Once we are\n\t\t\t\tactively playing back at 2, we start back at 1 which\n\t\t\t\tis normal speed.\n\t\t\t*/\n switch (config.playback_speed) {\n case 1:\n Core.setPlaybackSpeed(1.5);\n break;\n case 1.5:\n Core.setPlaybackSpeed(2);\n break;\n case 2:\n Core.setPlaybackSpeed(1);\n break;\n }\n\n /*\n\t\t\t\tVisually sync the playback speed.\n\t\t\t*/\n PlaybackSpeedElements.sync();\n }\n }\n\n /*\n Returns public facing methods\n */\n return {\n handle: handle\n };\n})();\n\nexport default PlaybackSpeed;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/playbackSpeed.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the Amplitude Audio Navigation Utility\n * @module utilities/AudioNavigation\n */\nimport AudioNavigation from \"../utilities/audioNavigation.js\";\n\n/**\n * AmplitudeJS Debug Module\n * @module utilities/Debug\n */\nimport Debug from \"../utilities/debug.js\";\n\n/**\n * AmplitudeJS Prev Event Handler\n *\n * @module events/Prev\n */\nlet Prev = (function() {\n /**\n * Handles an event on the previous button\n *\n * HANDLER FOR: class=\"amplitude-prev\"\n *\n * GLOBAL: class=\"amplitude-prev\"\n * PLAYLIST: class=\"amplitude-prev\" amplitude-playlist=\"playlist_key\"\n *\n * @access public\n */\n function handle() {\n /*\n We don't fire this if the user is touching the screen and it's moving.\n This could lead to a mis-fire\n */\n if (!config.is_touch_moving) {\n /*\n Gets the playlist attribute from the element.\n */\n let playlist = this.getAttribute(\"data-amplitude-playlist\");\n\n /*\n If the playlist is null, we handle the global prev.\n */\n if (playlist == null) {\n handleGlobalPrev();\n }\n\n /*\n If the playlist is set, we handle the playlist prev.\n */\n if (playlist != null) {\n handlePlaylistPrev(playlist);\n }\n }\n }\n\n /**\n * Handles an event on a global previous button.\n *\n * @access private\n */\n function handleGlobalPrev() {\n /*\n Check to see if the current state of the player\n is in playlist mode or not playlist mode. If we are in playlist mode,\n we set prev on the playlist.\n */\n if (config.active_playlist == \"\" || config.active_playlist == null) {\n AudioNavigation.setPrevious();\n } else {\n AudioNavigation.setPreviousPlaylist(config.active_playlist);\n }\n }\n\n /**\n * Handles an event on a previous playlist button.\n *\n * @access private\n * @prop {string} playlist - The playlist we are handling the previous for.\n */\n function handlePlaylistPrev(playlist) {\n /*\n Ensure the playlist is the same as the active playlist. To get to change\n the scope to a new playlist, you need to play that playlist.\n */\n if (playlist == config.active_playlist) {\n AudioNavigation.setPreviousPlaylist(config.active_playlist);\n } else {\n Debug.writeMessage(\n \"You can not go to the previous song on a playlist that is not being played!\"\n );\n }\n }\n\n /*\n Returns the public facing methods.\n */\n return {\n handle: handle\n };\n})();\n\nexport default Prev;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/prev.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the BufferedProgressElements visual handler\n * @module visual/bufferedProgressElements.js\n */\nimport BufferedProgressElements from \"../visual/bufferedProgressElements.js\";\n\n/**\n * AmplitudeJS Event Handler for progress\n *\n * @module events/Progress\n */\nlet Progress = (function() {\n /**\n * As the song is buffered, we can display the buffered percentage in\n * a progress bar.\n *\n * HANDLER FOR: progress\n *\n * @access public\n */\n function handle() {\n /*\n Help from: http://jsbin.com/badimipi/1/edit?html,js,output\n */\n if (config.audio.buffered.length - 1 >= 0) {\n let bufferedEnd = config.audio.buffered.end(\n config.audio.buffered.length - 1\n );\n let duration = config.audio.duration;\n\n /*\n Set the computed song buffered value to the config.\n */\n config.buffered = (bufferedEnd / duration) * 100;\n }\n\n /*\n Sync the buffered progress bars.\n */\n BufferedProgressElements.sync();\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n handle: handle\n };\n})();\n\nexport default Progress;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/progress.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the repeater utility module.\n * @module utilities/Repeater\n */\nimport Repeater from \"../utilities/repeater.js\";\n\n/**\n * Imports the visual repeat elements module\n * @module visual/RepeatElements\n */\nimport RepeatElements from \"../visual/repeatElements.js\";\n\n/**\n * AmplitudeJS Repeat Event Handler\n *\n * @module events/Repeat\n */\nlet Repeat = (function() {\n /**\n * Handles an event on the repeat button\n *\n * HANDLER FOR: class=\"amplitude-repeat\"\n *\n * GLOBAL: class=\"amplitude-repeat\"\n * PLAYLIST: class=\"amplitude-repeat\" amplitude-playlist=\"playlist_key\"\n *\n * @access public\n */\n function handle() {\n /*\n We don't fire this if the user is touching the screen and it's moving.\n This could lead to a mis-fire\n */\n if (!config.is_touch_moving) {\n /*\n Gets the playlist attribute from the element.\n */\n let playlist = this.getAttribute(\"data-amplitude-playlist\");\n\n /*\n If the playlist is null, we handle the global repeat.\n */\n if (playlist == null) {\n handleGlobalRepeat();\n }\n\n /*\n If the playlist is set, we handle the playlist repeat.\n */\n if (playlist != null) {\n handlePlaylistRepeat(playlist);\n }\n }\n }\n\n /**\n * Handles an event on a global repeat button.\n *\n * @access private\n */\n function handleGlobalRepeat() {\n /*\n Sets repeat to the opposite of what it was set to\n */\n Repeater.setRepeat(!config.repeat);\n\n /*\n Visually sync repeat\n */\n RepeatElements.syncRepeat();\n }\n\n /**\n * Handles an event on a playlist repeat button.\n *\n * @access private\n * @prop {string} playlist - The playlist we are handling the repeat store.\n */\n function handlePlaylistRepeat(playlist) {\n /*\n Sets repeat to the opposite of what it was set to for the playlist.\n */\n Repeater.setRepeatPlaylist(!config.playlists[playlist].repeat, playlist);\n\n /*\n Visually sync playlist repeat\n */\n RepeatElements.syncRepeatPlaylist(playlist);\n }\n\n /*\n Returns the public facing methods.\n */\n return {\n handle: handle\n };\n})();\n\nexport default Repeat;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/repeat.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the repeat utility\n * @module utilities/Repeater\n */\nimport Repeater from \"../utilities/repeater.js\";\n\n/**\n * Imports the AmplitudeJS Repeat Element\n * @module visual/RepeatElements\n */\nimport RepeatElements from \"../visual/repeatElements.js\";\n\n/**\n * Handles an event on the Amplitude Repeat Song.\n *\n * @module events/RepeatSong\n */\nlet RepeatSong = (function() {\n /**\n * Handles an event on the repeat song button\n *\n * HANDLER FOR: 'amplitude-repeat-song'\n *\n * @access public\n */\n function handle() {\n /*\n If the touch is moving, we do not want to accidentally touch the play\n pause element and fire an event.\n */\n if (!config.is_touch_moving) {\n /*\n\t\t\t\tSets repeat song to the opposite of what it was set to\n\t\t\t*/\n Repeater.setRepeatSong(!config.repeat_song);\n\n /*\n\t\t\t\tVisually sync repeat song\n\t\t\t*/\n RepeatElements.syncRepeatSong();\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n handle: handle\n };\n})();\n\nexport default RepeatSong;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/repeatSong.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the shuffler utility\n * @module utilities/Shuffler\n */\nimport Shuffler from \"../utilities/shuffler.js\";\n\n/**\n * Imports the visual shuffle elements\n * @module visual/ShuffleElements\n */\nimport ShuffleElements from \"../visual/shuffleElements.js\";\n\n/**\n * Handles all of the shuffle events\n * @module events/Shuffle\n */\nlet Shuffle = (function() {\n /**\n * Handles an event on the shuffle button\n *\n * HANDLER FOR: class=\"amplitude-shuffle\"\n *\n * GLOBAL: class=\"amplitude-shuffle\"\n * PLAYLIST: class=\"amplitude-shuffle\" amplitude-playlist=\"playlist_key\"\n *\n * @access public\n */\n function handle() {\n /*\n If the touch is moving, we do not want to accidentally touch the play\n pause element and fire an event.\n */\n if (!config.is_touch_moving) {\n /*\n Get the playlist attribute\n */\n let playlist = this.getAttribute(\"data-amplitude-playlist\");\n\n /*\n\t\t\t\tCheck to see if the shuffle button belongs to a playlist\n\t\t\t*/\n if (playlist == null) {\n handleGlobalShuffle();\n } else {\n handlePlaylistShuffle(playlist);\n }\n }\n }\n\n /**\n * Handles the event on the global shuffle button.\n */\n function handleGlobalShuffle() {\n /*\n Either shuffles or removes shuffle on the global state.\n */\n Shuffler.toggleShuffle();\n\n /*\n Visualize the shuffle state change.\n */\n ShuffleElements.syncMain(config.shuffle_on);\n }\n\n /**\n * Handles the event on the playlist shuffle button.\n *\n * @param {string} playlist - The playlist string the shuffle button belongs to.\n */\n function handlePlaylistShuffle(playlist) {\n /*\n Either shuffles or removes shuffle on the playlist state.\n */\n Shuffler.toggleShufflePlaylist(playlist);\n\n /*\n Visually sync the playlist shuffle statuses.\n */\n ShuffleElements.syncPlaylist(playlist);\n }\n\n /**\n * Returns public facing methods\n */\n return {\n handle: handle\n };\n})();\n\nexport default Shuffle;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/shuffle.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports AmplitudeJS Debug Utility\n * @module utilities/debug\n */\nimport Debug from \"../utilities/debug.js\";\n\n/**\n * Imports the AmplitudeJS Audio Navigation Utility\n * @module utilities/AudioNavigation\n */\nimport AudioNavigation from \"../utilities/audioNavigation.js\";\n\n/**\n * Imports the AmplitudeJS Checks Utility\n * @module utilities/Checks\n */\nimport Checks from \"../utilities/checks.js\";\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/Core\n */\nimport Core from \"../core/core.js\";\n\n/**\n * Imports the AmplitudeJS play pause elements.\n * @module visual/PlayPauseElements\n */\nimport PlayPauseElements from \"../visual/playPauseElements.js\";\n\n/**\n * Handles the skip to event.\n *\n * @module events/SkipTo\n */\nlet SkipTo = (function() {\n /**\n * Handles an event on a skip to button.\n *\n * HANDLER FOR: class=\"amplitude-skip-to\"\n *\n * GLOBAL: class=\"amplitude-skip-to\" amplitude-song-index=\"song_index\" amplitude-location=\"seconds\"\n * PLAYLIST: class=\"amplitude-skip-to\" amplitude-playlist=\"playlist_key\" amplitude-song-index=\"song_index\" amplitude-location=\"seconds\"\n *\n * @access public\n */\n function handle() {\n /*\n If the touch is moving, we do not want to accidentally touch the play\n pause element and fire an event.\n */\n if (!config.is_touch_moving) {\n /*\n Extracts the needed attributes from the element.\n */\n let playlist = this.getAttribute(\"data-amplitude-playlist\");\n let songIndex = this.getAttribute(\"data-amplitude-song-index\");\n let location = this.getAttribute(\"data-amplitude-location\");\n\n /*\n If the location is null, write a message. We can't skip to a location\n that is null\n */\n if (location == null) {\n Debug.writeMessage(\n \"You must add an 'data-amplitude-location' attribute in seconds to your 'amplitude-skip-to' element.\"\n );\n }\n\n /*\n If the song index is null, write a debug message. We can't skip to a location\n of a null song.\n */\n if (songIndex == null) {\n Debug.writeMessage(\n \"You must add an 'data-amplitude-song-index' attribute to your 'amplitude-skip-to' element.\"\n );\n }\n\n /*\n If the location and song index are set, continue.\n */\n if (location != null && songIndex != null) {\n /*\n \t\t\t\tDetermines if the skip to button is in the scope of a playlist.\n \t\t\t*/\n if (playlist == null) {\n handleSkipToSong(parseInt(songIndex), parseInt(location));\n } else {\n handleSkipToPlaylist(\n playlist,\n parseInt(songIndex),\n parseInt(location)\n );\n }\n }\n }\n }\n\n /**\n * Handles the skipping to a specific song\n *\n * @access private\n * @param {string} songIndex - The index of the song being skipped to\n * @param {number} location - The seconds location of the song in the playlist.\n */\n function handleSkipToSong(songIndex, location) {\n /*\n Changes the song to where it's being skipped and then\n play the song.\n */\n AudioNavigation.changeSong(config.songs[songIndex], songIndex);\n Core.play();\n\n /*\n Syncs all of the play pause buttons now that we've skipped.\n */\n PlayPauseElements.syncGlobal();\n PlayPauseElements.syncSong();\n\n /*\n Skip to the location in the song.\n */\n Core.skipToLocation(location);\n }\n\n /**\n * Handles the skipping to a song that's in a playlist.\n *\n * @access private\n * @param {string} playlist - The playlist being skipped to\n * @param {string} songIndex - The index of the song in the playlist\n * @param {number} location - The seconds location of the song in the playlist.\n */\n function handleSkipToPlaylist(playlist, songIndex, location) {\n /*\n Checks if we are skipping to a new playlist\n */\n if (Checks.newPlaylist(playlist)) {\n AudioNavigation.setActivePlaylist(playlist);\n }\n\n /*\n Changes the song to where it's being skipped and then\n play the song.\n */\n AudioNavigation.changeSongPlaylist(\n playlist,\n config.playlists[playlist].songs[songIndex],\n songIndex\n );\n Core.play();\n\n /*\n Sync all of the play pause elements.\n */\n PlayPauseElements.syncGlobal();\n PlayPauseElements.syncPlaylist();\n PlayPauseElements.syncSong();\n\n /*\n Skip to the location in the song.\n */\n Core.skipToLocation(location);\n }\n\n /**\n * Return public facing methods\n */\n return {\n handle: handle\n };\n})();\n\nexport default SkipTo;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/skipTo.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the time utility\n * @module utilities/Time\n */\nimport Time from \"../utilities/time.js\";\n\n/**\n * Imports the song slider elements.\n * @module visual/SongSliderElements\n */\nimport SongSliderElements from \"../visual/songSliderElements.js\";\n\n/**\n * Handles the song slider to event.\n *\n * @module events/SongSlider\n */\nlet SongSlider = (function() {\n /**\n * Handles a song slider element.\n *\n * HANDLER FOR: class=\"amplitude-song-slider\"\n *\n * GLOBAL: class=\"amplitude-song-slider\"\n * PLAYLIST: class=\"amplitude-song-slider\" amplitude-playlist=\"playlist_key\"\n * SONG: class=\"amplitude-song-slider\" amplitude-song-index=\"song_index\"\n * SONG IN PLAYLIST: class=\"amplitude-song-slider\" amplitude-playlist=\"playlist_key\" amplitude-song-index=\"song_index\"\n *\n * @access public\n */\n function handle() {\n /*\n\t\t\tGets the percentage of the song we will be setting the location for.\n\t\t*/\n let locationPercentage = this.value;\n\n /*\n Computes the time in seconds for the current song.\n */\n let computedTime = config.audio.duration * (locationPercentage / 100);\n\n /*\n Gets the attributes for playlist and index for the element.\n */\n let playlist = this.getAttribute(\"data-amplitude-playlist\");\n let song = this.getAttribute(\"data-amplitude-song-index\");\n\n /*\n If no playlist or song is defined, then it's a global song slider.\n */\n if (playlist == null && song == null) {\n handleGlobalSongSlider(computedTime, locationPercentage);\n }\n\n /*\n If a playlist but no song is defined, then it's playlist slider.\n */\n if (playlist != null && song == null) {\n handlePlaylistSongSlider(computedTime, locationPercentage, playlist);\n }\n\n /*\n If no playlist but a song is defined, then it's a song slider.\n */\n if (playlist == null && song != null) {\n handleSongSongSlider(computedTime, locationPercentage, song);\n }\n\n /*\n If playlist and song are defined then it's a song in a playlist\n slider.\n */\n if (playlist != null && song != null) {\n handleSongInPlaylistSongSlider(\n computedTime,\n locationPercentage,\n playlist,\n song\n );\n }\n }\n\n /**\n * Handles a change on a global audio slider\n *\n * @access private\n * @param {integer} computedTime - The time we will set the audio to.\n * @param {float} locationPercentage - The percent through the song.\n */\n function handleGlobalSongSlider(computedTime, locationPercentage) {\n /*\n\t\t\tIf the active song is not live, set the current time and adjust the slider.\n\t\t*/\n if (!config.active_metadata.live) {\n Time.setCurrentTime(computedTime);\n\n /*\n Sync song slider elements.\n */\n SongSliderElements.sync(\n locationPercentage,\n config.active_playlist,\n config.active_index\n );\n }\n }\n\n /**\n * Handles a change on a playlist audio slider\n *\n * @access private\n * @param {integer} computedTime - The time we will set the audio to.\n * @param {float} locationPercentage - The percent through the song.\n * @param {string} playlist = The playlist the song slider belongs to.\n */\n function handlePlaylistSongSlider(\n computedTime,\n locationPercentage,\n playlist\n ) {\n /*\n\t\t\tWe don't want to song slide a playlist that's not the\n\t\t\tactive placylist.\n\t\t*/\n if (config.active_playlist == playlist) {\n /*\n \t\t\tIf the active song is not live, set the current time\n \t\t*/\n if (!config.active_metadata.live) {\n Time.setCurrentTime(computedTime);\n\n /*\n Sync song slider elements.\n */\n SongSliderElements.sync(\n locationPercentage,\n playlist,\n config.active_index\n );\n }\n }\n }\n\n /**\n * Handles a change on a song audio slider\n *\n * @access private\n * @param {integer} computedTime - The time we will set the audio to.\n * @param {float} locationPercentage - The percent through the song.\n * @param {integer} songIndex = The song being navigated.\n */\n function handleSongSongSlider(computedTime, locationPercentage, songIndex) {\n /*\n We only want to move the slider if the active song is the\n same as the song being selected.\n */\n if (config.active_index == songIndex && config.active_playlist == null) {\n /*\n \t\tIf the active song is not live, set the current time\n \t*/\n if (!config.active_metadata.live) {\n Time.setCurrentTime(computedTime);\n\n /*\n Sync song slider elements.\n */\n SongSliderElements.sync(\n locationPercentage,\n config.active_playlist,\n songIndex\n );\n }\n }\n }\n\n /**\n * Handles a change on a song audio slider\n *\n * @access private\n * @param {integer} computedTime - The time we will set the audio to.\n * @param {float} locationPercentage - The percent through the song.\n * @param {integer} playlist = The playlist the song belongs to.\n * @param {integer} songIndex = The song being navigated.\n */\n function handleSongInPlaylistSongSlider(\n computedTime,\n locationPercentage,\n playlist,\n songIndex\n ) {\n /*\n We only want to move the slider if the active song is the\n same as the song being selected and the active playlist is the same\n as the playlist selected.\n */\n if (\n config.playlists[playlist].active_index == songIndex &&\n config.active_playlist == playlist\n ) {\n /*\n \t\tIf the active song is not live, set the current time\n \t*/\n if (!config.active_metadata.live) {\n Time.setCurrentTime(computedTime);\n\n /*\n Sync song slider elements.\n */\n SongSliderElements.sync(locationPercentage, playlist, songIndex);\n }\n }\n }\n\n /*\n Return public facing methods\n */\n return {\n handle: handle\n };\n})();\n\nexport default SongSlider;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/songSlider.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the config state module.\n * @module utilities/configState\n */\nimport ConfigState from \"../utilities/configState.js\";\n\n/**\n * Imports the AmplitudeJS Play Pause Elements\n * @module visual/PlayPauseElements\n */\nimport PlayPauseElements from \"../visual/playPauseElements.js\";\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/Core\n */\nimport Core from \"../core/core.js\";\n\n/**\n * Handles all of the stop events\n * @module events/Stop\n */\nlet Stop = (function() {\n /**\n * Handles an event on a stop element.\n *\n * HANDLER FOR: class=\"amplitude-stop\"\n *\n * @access public\n */\n function handle() {\n /*\n If touch is not moving, we run. We don't want to accidentally press\n stop if touch is moving.\n */\n if (!config.is_touch_moving) {\n /*\n\t\t\t\tSets all of the play/pause buttons to pause\n\t\t\t*/\n PlayPauseElements.syncToPause();\n\n /*\n\t\t\t\tStops the active song.\n\t\t\t*/\n Core.stop();\n }\n }\n\n /**\n * Returns public facing methods\n */\n return {\n handle: handle\n };\n})();\n\nexport default Stop;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/stop.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the Buffered Progress Elements visual class\n * @module visual/bufferedProgressElements\n */\nimport BufferedProgressElements from \"../visual/bufferedProgressElements.js\";\n\n/**\n * Imports the Time Elements visual class.\n * @module visual/timeElements\n */\nimport TimeElements from \"../visual/timeElements.js\";\n\n/**\n * Imports the Song Slider Elements visual class.\n * @module visual/songSliderElements\n */\nimport SongSliderElements from \"../visual/songSliderElements.js\";\n\n/**\n * Imports the Song Played Progress Elements visual class.\n * @module visual/songPlayedProgressElements\n */\nimport SongPlayedProgressElements from \"../visual/songPlayedProgressElements.js\";\n\n/**\n * Imports the Time utility class\n * @module utilities/Time\n */\nimport Time from \"../utilities/time.js\";\n\n/**\n * Imports the Callback utility class\n * @module utilities/Callbacks\n */\nimport Callbacks from \"../utilities/callbacks.js\";\n\n/**\n * AmplitudeJS Event Handler for Time Update\n *\n * @module events/TimeUpdate\n */\nlet TimeUpdate = (function() {\n /**\n * When the time updates on the active song, we sync the current time displays\n *\n * HANDLER FOR: timeupdate\n *\n * @access public\n */\n function handle() {\n /*\n Computes the buffered time.\n */\n computeBufferedTime();\n\n /*\n Sync the buffered progress elements.\n */\n BufferedProgressElements.sync();\n\n /*\n Updates the current time information.\n */\n updateTimeInformation();\n\n /*\n Run time callbacks\n */\n runTimeCallbacks();\n }\n\n /**\n * Computes the buffered time\n */\n function computeBufferedTime() {\n /*\n Help from: http://jsbin.com/badimipi/1/edit?html,js,output\n */\n if (config.audio.buffered.length - 1 >= 0) {\n let bufferedEnd = config.audio.buffered.end(\n config.audio.buffered.length - 1\n );\n let duration = config.audio.duration;\n\n config.buffered = (bufferedEnd / duration) * 100;\n }\n }\n\n /**\n * Updates the current time information.\n * @access private\n */\n function updateTimeInformation() {\n /*\n If the current song is not live, then\n we can update the time information. Otherwise the\n current time updates wouldn't mean much since the time\n is infinite.\n */\n if (!config.active_metadata.live) {\n /*\n Compute the current time\n */\n let currentTime = Time.computeCurrentTimes();\n\n /*\n Compute the song completion percentage\n */\n let songCompletionPercentage = Time.computeSongCompletionPercentage();\n\n /*\n Computes the song duration\n */\n let songDuration = Time.computeSongDuration();\n\n /*\n Sync the current time elements with the current\n location of the song and the song duration elements with\n the duration of the song.\n */\n TimeElements.syncCurrentTimes(currentTime);\n\n /*\n Sync the song slider elements.\n */\n SongSliderElements.sync(\n songCompletionPercentage,\n config.active_playlist,\n config.active_index\n );\n\n /*\n Sync the song played progress elements.\n */\n SongPlayedProgressElements.sync(songCompletionPercentage);\n\n /*\n Sync the duration time elements.\n */\n TimeElements.syncDurationTimes(currentTime, songDuration);\n }\n }\n\n /**\n * Runs a callback at a certain time in the song.\n */\n function runTimeCallbacks() {\n /*\n Gets the current seconds into the song.\n */\n let currentSeconds = Math.floor(config.audio.currentTime);\n\n /*\n Checks to see if there is a callback at the certain seconds into the song.\n */\n if (\n config.active_metadata.time_callbacks != undefined &&\n config.active_metadata.time_callbacks[currentSeconds] != undefined\n ) {\n /*\n Checks to see if the callback has been run. Since the time updates more than\n one second, we don't want the callback to run X times.\n */\n if (!config.active_metadata.time_callbacks[currentSeconds].run) {\n config.active_metadata.time_callbacks[currentSeconds].run = true;\n config.active_metadata.time_callbacks[currentSeconds]();\n }\n } else {\n /*\n Iterate over all of the callbacks for a song. If the song has one, we flag\n the run as false. This occurs because we have passed the active second for\n the callback, so we flag it as not run. It will either run again if the user\n seeks back or not run in the future.\n */\n for (var seconds in config.active_metadata.time_callbacks) {\n if (config.active_metadata.time_callbacks.hasOwnProperty(seconds)) {\n config.active_metadata.time_callbacks[seconds].run = false;\n }\n }\n }\n }\n /**\n * Returns public functions\n */\n return {\n handle: handle\n };\n})();\n\nexport default TimeUpdate;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/timeUpdate.js","/**\n * Imports the config to use the values\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/core\n */\nimport Core from \"../core/core.js\";\n\n/**\n * Imports the AmplitudeJS Visual Mute Elements\n * @module visual/MuteElements\n */\nimport MuteElements from \"../visual/muteElements.js\";\n\n/**\n * Imports the AmplitudeJS Visual Volume Slider Elements\n * @module visual/VolumeSliderElements\n */\nimport VolumeSliderElements from \"../visual/volumeSliderElements.js\";\n\n/**\n * Handles all events for a volume down event.\n * @module events/VolumeDown\n */\nlet VolumeDown = (function() {\n /**\n * Handles a click on a volume down element.\n *\n * HANDLER FOR: class=\"amplitude-volume-down\"\n *\n * @access public\n */\n function handle() {\n /*\n We don't fire this if the user is touching the screen and it's moving.\n This could lead to a mis-fire\n */\n if (!config.is_touch_moving) {\n /*\n\t\t\t\tThe volume range is from 0 to 1 for an audio element. We make this\n\t\t\t\ta base of 100 for ease of working with.\n\n\t\t\t\tIf the new value is less than 100, we use the new calculated\n\t\t\t\tvalue which gets converted to the proper unit for the audio element.\n\n\t\t\t\tIf the new value is greater than 100, we set the volume to 1 which\n\t\t\t\tis the max for the audio element.\n\t\t\t*/\n let volume = null;\n\n if (config.volume - config.volume_increment > 0) {\n volume = config.volume - config.volume_increment;\n } else {\n volume = 0;\n }\n\n /*\n\t\t\t\tCalls the core function to set the volume to the computed value\n\t\t\t\tbased on the user's intent.\n\t\t\t*/\n Core.setVolume(volume);\n\n /*\n Sync Mute Elements.\n */\n MuteElements.setMuted(config.volume == 0 ? true : false);\n\n /*\n Sync Volume Slider Elements\n */\n VolumeSliderElements.sync();\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n handle: handle\n };\n})();\n\nexport default VolumeDown;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/volumeDown.js","/**\n * Imports the config to use the values\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/core\n */\nimport Core from \"../core/core.js\";\n\n/**\n * Imports the AmplitudeJS Visual Mute Elements\n * @module visual/MuteElements\n */\nimport MuteElements from \"../visual/muteElements.js\";\n\n/**\n * Imports the AmplitudeJS Visual Volume Slider Elements\n * @module visual/VolumeSliderElements\n */\nimport VolumeSliderElements from \"../visual/volumeSliderElements.js\";\n\n/**\n * Handles all events for a volume up event.\n * @module events/VolumeSlider\n */\nlet VolumeSlider = (function() {\n /**\n * Handles a change on the volume slider\n *\n * HANDLER FOR: class=\"amplitude-volume-slider\"\n *\n * @access public\n */\n function handle() {\n /*\n\t\t\tCalls the core function to set the volume to the computed value\n\t\t\tbased on the user's intent.\n\t\t*/\n Core.setVolume(this.value);\n\n /*\n Sync Mute Elements.\n */\n MuteElements.setMuted(config.volume == 0 ? true : false);\n\n /*\n\t\t\tSync the volume slider locations\n\t\t*/\n VolumeSliderElements.sync();\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n handle: handle\n };\n})();\n\nexport default VolumeSlider;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/volumeSlider.js","/**\n * Imports the config to use the values\n */\nimport config from \"../config.js\";\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/core\n */\nimport Core from \"../core/core.js\";\n\n/**\n * Imports the AmplitudeJS Visual Mute Elements\n * @module visual/MuteElements\n */\nimport MuteElements from \"../visual/muteElements.js\";\n\n/**\n * Imports the AmplitudeJS Visual Volume Slider Elements\n * @module visual/VolumeSliderElements\n */\nimport VolumeSliderElements from \"../visual/volumeSliderElements.js\";\n\n/**\n * Handles all events for a volume up event.\n * @module events/VolumeUp\n */\nlet VolumeUp = (function() {\n /**\n * Handles a click on a volume up element.\n *\n * HANDLER FOR: class=\"amplitude-volume-up\"\n *\n * @access public\n */\n function handle() {\n /*\n We don't fire this if the user is touching the screen and it's moving.\n This could lead to a mis-fire\n */\n if (!config.is_touch_moving) {\n /*\n\t\t\t\tThe volume range is from 0 to 1 for an audio element. We make this\n\t\t\t\ta base of 100 for ease of working with.\n\n\t\t\t\tIf the new value is less than 100, we use the new calculated\n\t\t\t\tvalue which gets converted to the proper unit for the audio element.\n\n\t\t\t\tIf the new value is greater than 100, we set the volume to 1 which\n\t\t\t\tis the max for the audio element.\n\t\t\t*/\n let volume = null;\n\n if (config.volume + config.volume_increment <= 100) {\n volume = config.volume + config.volume_increment;\n } else {\n volume = 100;\n }\n\n /*\n\t\t\t\tCalls the core function to set the volume to the computed value\n\t\t\t\tbased on the user's intent.\n\t\t\t*/\n Core.setVolume(volume);\n\n /*\n Sync Mute Elements.\n */\n MuteElements.setMuted(config.volume == 0 ? true : false);\n\n /*\n Sync Volume Slider Elements\n */\n VolumeSliderElements.sync();\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n handle: handle\n };\n})();\n\nexport default VolumeUp;\n\n\n\n// WEBPACK FOOTER //\n// ./src/events/volumeUp.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * AmplitudeJS FX Module. Helps with configuring and setting up visualizations\n * and any other features of the Web Audio API that Amplitude takes advantage\n * of.\n *\n * @module fx/FX\n */\nlet Fx = (function() {\n /**\n * Configures the Web Audio API to work with AmplitudeJS\n */\n function configureWebAudioAPI() {\n /*\n\t\t\tGets the context for the browser. If this is null, the Web Audio\n\t\t\tAPI is unavailable.\n\t\t*/\n let browserContext =\n window.AudioContext ||\n window.webkitAudioContext ||\n window.mozAudioContext ||\n window.oAudioContext ||\n window.msAudioContext;\n\n /*\n\t\t\tIf we have a context, the Web Audio API is available and we can continue,\n\t\t\totherwise, we alert the user if they have debug turned on.\n\t\t*/\n if (browserContext) {\n /*\n\t\t\t\tWeb Audio API is available, set the context in our config.\n\t\t\t*/\n config.context = new browserContext();\n \n /*\n\t\t\t\tCreate an analyzer that we will use in the context.\n\t\t\t*/\n config.analyser = config.context.createAnalyser();\n\n /*\n\t\t\t\tSet cross origin to anonymous so we have a better chance of being able\n\t\t\t\tto use the power of the Web Audio API.\n\t\t\t*/\n config.audio.crossOrigin = \"anonymous\";\n \n /*\n\t\t\t\tBind the source to the Javascript Audio Element.\n\t\t\t*/\n config.source = config.context.createMediaElementSource(config.audio);\n\n /*\n\t\t\t\tConnect the analyser to the source\n\t\t\t*/\n config.source.connect(config.analyser);\n\n /*\n\t\t\t\tConnect the context destination to the analyser.\n\t\t\t*/\n config.analyser.connect(config.context.destination);\n } else {\n AmplitudeHelpers.writeDebugMessage(\n \"Web Audio API is unavailable! We will set any of your visualizations with your back up definition!\"\n );\n }\n }\n\n /**\n * Determines if the web audio API is available or not.\n */\n function webAudioAPIAvailable() {\n /*\n\t\t\tGets the context for the browser. If this is null, the Web Audio\n\t\t\tAPI is unavailable.\n\t\t*/\n let browserContext =\n window.AudioContext ||\n window.webkitAudioContext ||\n window.mozAudioContext ||\n window.oAudioContext ||\n window.msAudioContext;\n config.web_audio_api_available = false;\n\n /*\n\t\t\tDetermines if the Web Audio API is available or not.\n\t\t*/\n if (browserContext) {\n /*\n\t\t\t\tSet the flag in the config that the Web Audio API is available\n\t\t\t*/\n config.web_audio_api_available = true;\n return true;\n } else {\n /*\n\t\t\t\tSet the flag in the config that the Web Audio API is not available\n\t\t\t*/\n config.web_audio_api_available = false;\n return false;\n }\n }\n\n /**\n * Determines if the user is using any of the web audio API features.\n */\n function determineUsingAnyFX(){\n let waveforms = document.querySelectorAll(\".amplitude-wave-form\");\n let visualizationElements = document.querySelectorAll(\n \".amplitude-visualization\"\n );\n\n if( waveforms.length > 0 || visualizationElements.length > 0 ){\n return true;\n }else{\n return false;\n }\n }\n\n /*\n\t\tReturns the publicly accessible methods\n\t*/\n return {\n configureWebAudioAPI: configureWebAudioAPI,\n webAudioAPIAvailable: webAudioAPIAvailable,\n determineUsingAnyFX: determineUsingAnyFX\n };\n})();\n\nexport default Fx;\n\n\n\n// WEBPACK FOOTER //\n// ./src/fx/fx.js","/**\n * @name \t\tAmplitudeJS\n * @author \tDan Pastori (Server Side Up) \n */\n/**\n * AmplitudeJS Initializer Module\n *\n * @module init/AmplitudeInitializer\n */\nimport Initializer from \"./init/init.js\";\n\n/****************************************************\n * Config\n ****************************************************/\n/**\n * Imports the config module\n * @module config\n */\nimport config from \"./config.js\";\n\n/****************************************************\n * Core\n ****************************************************/\n/**\n * AmplitudeJS Core Module\n *\n * @module core/Core\n */\nimport Core from \"./core/core.js\";\n\n/****************************************************\n * Utilities\n ****************************************************/\n/**\n * Shuffler Module\n * @module utilities/Shuffler\n */\nimport Shuffler from \"./utilities/shuffler.js\";\n\n/**\n * Imports the config state module.\n * @module ConfigState\n */\nimport ConfigState from \"./utilities/configState.js\";\n\n/**\n * Imports the audio navigation\n * @module utilities/AudioNavigation\n */\nimport AudioNavigation from \"./utilities/audioNavigation.js\";\n\n/**\n * Repeater Module\n *\n * @module utilities/Repeater\n */\nimport Repeater from \"./utilities/repeater.js\";\n\n/**\n * Imports the checks\n * @module utilities/Checks\n */\nimport Checks from \"./utilities/checks.js\";\n\n/****************************************************\n * FX Modules\n ****************************************************/\n/**\n * Imports the visualizations module\n * @module fx/Visualizations\n */\nimport Visualizations from \"./fx/visualizations.js\";\n\n/****************************************************\n * Elements\n ****************************************************/\n/**\n * Visual Shuffle Elements\n * @module visual/ShuffleElements\n */\nimport ShuffleElements from \"./visual/shuffleElements.js\";\n\n/**\n * Visual Repeat Elements\n * @module visual/RepeatElements\n */\nimport RepeatElements from \"./visual/repeatElements.js\";\n\n/**\n * Song Slider Elements\n * @module visual/SongSliderElements\n */\nimport SongSliderElements from \"./visual/songSliderElements.js\";\n\n/**\n * Song Played Progress Elements\n * @module visual/SongPlayedProgressElements\n */\nimport SongPlayedProgressElements from \"./visual/songPlayedProgressElements.js\";\n\n/**\n * Time Elements\n * @module visual/TimeElements\n */\nimport TimeElements from \"./visual/timeElements.js\";\n\n/**\n * Play Pause Elements\n * @module visual/PlayPauseElements\n */\nimport PlayPauseElements from \"./visual/playPauseElements.js\";\n\n/**\n * Meta Data Elements\n * @module visual/MetaDataElements\n */\nimport MetaDataElements from \"./visual/metaDataElements.js\";\n\n/**\n * Playback Speed Elements\n * @module visual/PlaybackSpeedElements\n */\nimport PlaybackSpeedElements from \"./visual/playbackSpeedElements.js\";\n\nimport Debug from \"./utilities/debug.js\";\n\nimport SoundCloud from \"./soundcloud/soundcloud.js\";\n\n/**\n * Amplitude should just be an interface to the public functions.\n * Everything else should be handled by other objects\n *\n * @module Amplitude\n */\nlet Amplitude = (function() {\n /**\n * The main init function. The user will call this through\n * Amplitude.init({}) and pass in their settings.\n *\n * Public Accessor: Amplitude.init( user_config_json );\n *\n * @access public\n * @param {object} userConfig \t- A JSON object of user defined values that helps configure and initialize AmplitudeJS.\n */\n function init(userConfig) {\n Initializer.initialize(userConfig);\n }\n\n /**\n * Returns the current config for AmplitudeJS\n */\n function getConfig() {\n return config;\n }\n\n /**\n * Binds new elements that were added to the page.\n *\n * Public Accessor: Amplitude.bindNewElements()\n *\n * @access public\n */\n function bindNewElements() {\n Initializer.rebindDisplay();\n }\n\n /**\n * Returns the active playlist.\n *\n * Public Accessor: Amplitude.getActivePlaylist()\n *\n * @access public\n */\n function getActivePlaylist() {\n return config.active_playlist;\n }\n\n /**\n * Returns the current playback speed.\n *\n * Public Accessor: Amplitude.getPlaybackSpeed()\n *\n * @access public\n */\n function getPlaybackSpeed() {\n return config.playback_speed;\n }\n\n /**\n * Sets the playback speed\n *\n * Public Accessor: Amplitude.setPlaybackSpeed( speed )\n *\n * @access public\n */\n function setPlaybackSpeed(speed) {\n /*\n Increments are set in .5 We only accept values\n 1, 1.5, 2\n\n 1 -> Regular Speed\n 1.5 -> 50% faster\n 2 -> Twice as fast\n */\n Core.setPlaybackSpeed(speed);\n\n /*\n Visually sync the playback speed.\n */\n PlaybackSpeedElements.sync();\n }\n\n /**\n * Gets the repeat state of the player.\n *\n * Public Accessor: Amplitude.getRepeat()\n *\n * @access public\n */\n function getRepeat() {\n return config.repeat;\n }\n\n /**\n * Gets the repeat state for a playlist\n *\n * Public Accessor: Amplitude.getRepeatPlaylist()\n *\n * @access public\n */\n function getRepeatPlaylist(playlistKey) {\n return config.playlists[playlistKey].repeat;\n }\n\n /**\n * Returns the shuffle state of the player.\n *\n * Public Accessor: Amplitude.getShuffle()\n *\n * @access public\n */\n function getShuffle() {\n return config.shuffle_on;\n }\n\n /**\n * Returns the shuffle state of the playlist.\n *\n * Public Accessor: Amplitude.getShufflePlaylist( playlist )\n *\n * @access public\n * @param {string} playlist \t- The key representing the playlist ID to see if it's shuffled or not.\n */\n function getShufflePlaylist(playlist) {\n return config.playlists[playlist].shuffle;\n }\n\n /**\n * Sets the shuffle state for the player.\n *\n * Public Accessor: Amplitude.setShuffle()\n *\n * @param {boolean} shuffle \t- True when we are shuffling the songs, false when we turn off shuffle.\n *\n * @access public\n */\n function setShuffle(shuffle) {\n Shuffler.setShuffle(shuffle);\n\n ShuffleElements.syncMain();\n }\n\n /**\n * Sets the shuffle state for the playlist\n *\n * Public Accessor: Amplitude.setShufflePlaylist( playlist )\n *\n * @access public\n * @param {string} playlist \t- The key representing the playlist ID to to shuffle the playlist.\n * @param {boolean} shuffle \t- True when we are shuffling the playlist, false when we turn off shuffle.\n */\n function setShufflePlaylist(playlist, shuffle) {\n Shuffler.setShufflePlaylist(playlist, shuffle);\n\n ShuffleElements.syncMain();\n ShuffleElements.syncPlaylist(playlist);\n }\n\n /**\n * Sets the repeat state for the player.\n *\n * Public Accessor: Amplitude.setRepeat()\n *\n * @access public\n * @param {boolean} repeatState \t- The state you want the repeat song to be in.\n */\n function setRepeat(repeatState) {\n Repeater.setRepeat(repeatState);\n RepeatElements.syncRepeat();\n }\n\n /**\n * Sets the repeat state for a playlist.\n *\n * Public Accessor: Amplitude.setRepeatPlaylist( playlistKey )\n *\n * @access public\n * @param {string} playlist \t- The key representing the playlist ID to to shuffle the playlist.\n * @param {boolean} repeatState - The state you want the repeat playlist to be in.\n */\n function setRepeatPlaylist(playlist, repeatState) {\n Repeater.setRepeatPlaylist(repeatState, playlist);\n RepeatElements.syncRepeatPlaylist(playlist);\n }\n\n /**\n * Sets the repeat state for the song.\n *\n * Public Accessor: Amplitude.setRepeatSong()\n *\n * @access public\n * @param {boolean} repeatState \t- The state you want the repeat song status to be in.\n */\n function setRepeatSong(repeatState) {\n if (!config.is_touch_moving) {\n /*\n\t\t\t Sets repeat to the opposite of what it was set to\n\t\t\t*/\n Repeater.setRepeatSong(!config.repeat_song);\n\n /*\n\t\t\t\tVisually sync repeat song\n\t\t\t*/\n RepeatElements.syncRepeatSong();\n }\n }\n\n /**\n * Gets the default album art for the player\n *\n * Public Accessor: Amplitude.getDefaultAlbumArt()\n *\n * @access public\n */\n function getDefaultAlbumArt() {\n return config.default_album_art;\n }\n\n /**\n * Gets the default playlist art for the playlists\n *\n * Public Accessor: Amplitude.getDefaultPlaylistArt()\n *\n * @access public\n */\n function getDefaultPlaylistArt() {\n return config.default_playlist_art;\n }\n\n /**\n * Sets the default album art for the player\n *\n * Public Accessor: Amplitude.setDefaultAlbumArt( url )\n *\n * @access public\n * @param {string} url \t- A string representing the URL of the new default album art.\n */\n function setDefaultAlbumArt(url) {\n config.default_album_art = url;\n }\n\n /**\n * Sets the default playlist art for the player\n *\n * Public Accessor: Amplitude.setDefaultPlaylistArt( url )\n *\n * @access public\n * @param {string} url - A string representing the URL of the new default playlist art.\n */\n function setDefaultPlaylistArt(url) {\n config.default_plalist_art = url;\n }\n\n /**\n * Allows the user to get the percentage of the song played.\n *\n * Public Accessor: Amplitude.getSongPlayedPercentage();\n *\n * @access public\n */\n function getSongPlayedPercentage() {\n /*\n\t\t\tReturns the percentage of the song played.\n\t\t*/\n return (config.audio.currentTime / config.audio.duration) * 100;\n }\n\n /**\n * Allows the user to get the amount of seconds the song has played.\n *\n * Public Accessor: Amplitude.getSongPlayed();\n *\n * @access public\n */\n function getSongPlayedSeconds() {\n /*\n\t\t\tReturns the amount of seconds the song has played.\n\t\t*/\n return config.audio.currentTime;\n }\n\n /**\n * Allows the user to get the duration of the current song\n *\n * Public Accessor: Amplitude.getSongPlayed();\n *\n * @access public\n */\n function getSongDuration() {\n /*\n\t\t\tReturns the duration of the current song\n\t\t*/\n return config.audio.duration;\n }\n\n /**\n * Allows the user to set how far into the song they want to be. This is\n * helpful for implementing custom range sliders. Only works on the current song.\n *\n * Public Accessor: Amplitude.setSongPlayedPercentage( float );\n *\n * @access public\n * @param {number} percentage \t- The percentage of the song played\n */\n function setSongPlayedPercentage(percentage) {\n /*\n\t\t\tEnsures the percentage is a number and is between 0 and 100.\n\t\t*/\n if (typeof percentage == \"number\" && (percentage > 0 && percentage < 100)) {\n /*\n\t\t\t\t\tSets the current time of the song to the percentage.\n\t\t\t\t*/\n config.audio.currentTime = config.audio.duration * (percentage / 100);\n }\n }\n\n /**\n * Allows the user to turn on debugging.\n *\n * Public Accessor: Amplitude.setDebug( bool );\n *\n * @access public\n * @param {boolean} state \t\t- Turns debugging on and off.\n */\n function setDebug(state) {\n /*\n\t\t\tSets the global config debug on or off.\n\t\t*/\n config.debug = state;\n }\n\n /**\n * Returns the active song meta data for the user to do what is\n * needed.\n *\n * Public Accessor: Amplitude.getActiveSongMetadata();\n *\n * @access public\n * @returns {object} JSON Object with the active song information\n */\n function getActiveSongMetadata() {\n return config.active_metadata;\n }\n\n /**\n * Returns the active playlist meta data for the for the user to use.\n *\n * Public Accessor: Amplitude.getActivePlaylistMetadata();\n *\n * @access public\n * @returns {object} JSON representation for the active playlist\n */\n function getActivePlaylistMetadata() {\n return config.playlists[config.active_playlist];\n }\n\n /**\n * Returns a song in the songs array at that index\n *\n * Public Accessor: Amplitude.getSongAtIndex( song_index )\n *\n * @access public\n * @param {number} index \t- The integer for the index of the song in the songs array.\n * @returns {object} JSON representation for the song at a specific index.\n */\n function getSongAtIndex(index) {\n return config.songs[index];\n }\n\n /**\n * Returns a song at a playlist index\n *\n * Public Accessor: Amplitude.getSongAtPlaylistIndex( playlist, index\n *\n * @access public\n * @param {number} index \t\t\t- The integer for the index of the song in the playlist.\n * @param {string} playlist\t\t- The key of the playlist we are getting the song at the index for\n * @returns {object} JSON representation for the song at a specific index.\n */\n function getSongAtPlaylistIndex(playlist, index) {\n let song = config.playlists[playlist].songs[index];\n\n return song;\n }\n\n /**\n * Adds a song to the end of the config array. This will allow Amplitude\n * to play the song in a playlist type setting.\n *\n * Public Accessor: Amplitude.addSong( song_json )\n *\n * @access public\n * @param {object} song \t- JSON representation of a song.\n * @returns {number} New index of the song.\n */\n function addSong(song) {\n /*\n\t\t\tEnsures we have a songs array to push to.\n\t\t*/\n if (config.songs == undefined) {\n config.songs = [];\n }\n\n config.songs.push(song);\n\n if (config.shuffle_on) {\n config.shuffle_list.push(song);\n }\n\n if (SoundCloud.isSoundCloudURL(song.url)) {\n SoundCloud.resolveIndividualStreamableURL(\n song.url,\n null,\n config.songs.length - 1,\n config.shuffle_on\n );\n }\n\n return config.songs.length - 1;\n }\n\n /**\n * Adds a song to the beginning of the config array.\n * This will allow Amplitude to play the song in a\n * playlist type setting.\n *\n * Public Accessor: Amplitude.addSong( song_json )\n *\n * @access public\n * @param {object} song \t- JSON representation of a song.\n * @returns {number} New index of the song (0)\n */\n function prependSong(song) {\n /*\n\t\t\tEnsures we have a songs array to push to.\n\t\t*/\n if (config.songs == undefined) {\n config.songs = [];\n }\n\n config.songs.unshift(song);\n\n if (config.shuffle_on) {\n config.shuffle_list.unshift(song);\n }\n\n if (SoundCloud.isSoundCloudURL(song.url)) {\n SoundCloud.resolveIndividualStreamableURL(\n song.url,\n null,\n config.songs.length - 1,\n config.shuffle_on\n );\n }\n\n return 0;\n }\n\n /**\n * Adds a song to a playlist. This will allow Amplitude to play the song in the\n * playlist\n *\n * Public Accessor: Amplitude.addSongToPlaylist( song_json, playlist_key )\n *\n * @access public\n * @param {object} song \t\t\t- JSON representation of a song.\n * @param {string} playlist\t\t- Playlist we are adding the song to.\n * @returns {mixed} New index of song in playlist or null if no playlist exists\n */\n function addSongToPlaylist(song, playlist) {\n if (config.playlists[playlist] != undefined) {\n config.playlists[playlist].songs.push(song);\n\n if (config.playlists[playlist].shuffle) {\n config.playlists[playlist].shuffle_list.push(song);\n }\n\n if (SoundCloud.isSoundCloudURL(song.url)) {\n SoundCloud.resolveIndividualStreamableURL(\n song.url,\n playlist,\n config.playlists[playlist].songs.length - 1,\n config.playlists[playlist].shuffle\n );\n }\n\n return config.playlists[playlist].songs.length - 1;\n } else {\n Debug.writeMessage(\"Playlist doesn't exist!\");\n return null;\n }\n }\n\n /**\n * Adds a playlist to Amplitude.\n *\n * @param {string} key - The key of the playlist we are adding.\n * @param {object} data - The data relating to the playlist\n * @param {array} songs - The songs to add to the playlist\n */\n function addPlaylist(key, data, songs) {\n /*\n Ensures the playlist is not already defined.\n */\n if (config.playlists[key] == undefined) {\n /*\n Initialize the new playlist object.\n */\n config.playlists[key] = {};\n\n /*\n Define the ignored keys that we don't want to copy over.\n */\n let ignoredKeys = [\"repeat\", \"shuffle\", \"shuffle_list\", \"songs\", \"src\"];\n\n /*\n Iterate over all of the keys defined by the user and\n set them on the playlist.\n */\n for (let dataKey in data) {\n if (ignoredKeys.indexOf(dataKey) < 0) {\n config.playlists[key][dataKey] = data[dataKey];\n }\n }\n\n /*\n Initialize the default parameters for the playlist and set the songs.\n */\n config.playlists[key].songs = songs;\n config.playlists[key].active_index = null;\n config.playlists[key].repeat = false;\n config.playlists[key].shuffle = false;\n config.playlists[key].shuffle_list = [];\n\n return config.playlists[key];\n } else {\n Debug.writeMessage(\"A playlist already exists with that key!\");\n return null;\n }\n }\n\n /**\n * Removes a song from the song array\n *\n * Public Accessor: Amplitude.removeSong( index )\n *\n * @access public\n * @param {integer} index - Index of the song being removed\n * @returns {boolean} True if removed false if not.\n */\n function removeSong(index) {\n config.songs.splice(index, 1);\n }\n\n /**\n * Removes a song from the playlist\n *\n * Public Accessor: Amplitude.removeSongFromPlaylist( index, playlist )\n *\n * @access public\n * @param {integer} index \t\t\t- Index of the song being removed from the playlist.\n * @param {string} playlist\t\t\t- Playlist we are removing the song from.\n * @returns {boolean} True if removed false if not.\n */\n function removeSongFromPlaylist(index, playlist) {\n if (config.playlists[playlist] != undefined) {\n config.playlists[playlist].songs.splice(index, 1);\n }\n }\n\n /**\n * When you pass a song object it plays that song right awawy. It sets\n * the active song in the config to the song you pass in and synchronizes\n * the visuals.\n *\n * Public Accessor: Amplitude.playNow( song )\n *\n * @access public\n * @param {object} song \t- JSON representation of a song.\n */\n function playNow(song) {\n /*\n\t\t\tMakes sure the song object has a URL associated with it\n\t\t\tor there will be nothing to play.\n\t\t*/\n if (song.url) {\n config.audio.src = song.url;\n config.active_metadata = song;\n config.active_album = song.album;\n } else {\n /*\n\t\t\t\tWrite error message since the song passed in doesn't\n\t\t\t\thave a URL.\n\t\t\t*/\n Debug.writeMessage(\"The song needs to have a URL!\");\n }\n\n /*\n\t\t\tPlays the song.\n\t\t*/\n Core.play();\n\n /*\n\t\t\tSets the main song control status visual\n\t\t*/\n PlayPauseElements.sync();\n\n /*\n\t\t\tUpdate the song meta data\n\t\t*/\n MetaDataElements.displayMetaData();\n\n /*\n\t\t\tReset the song sliders, song progress bar info, and\n\t\t\treset times. This ensures everything stays in sync.\n\t\t*/\n SongSliderElements.resetElements();\n\n /*\n\t\t\tReset the song played progress elements.\n\t\t*/\n SongPlayedProgressElements.resetElements();\n\n /*\n\t\t\tReset all of the current time elements.\n\t\t*/\n TimeElements.resetCurrentTimes();\n\n /*\n\t\t\tReset all of the duration time elements.\n\t\t*/\n TimeElements.resetDurationTimes();\n\n }\n\n /**\n * Plays a song at the index passed in from the songs array.\n *\n * Public Accessor: Amplitude.playSongAtIndex( index )\n *\n * @access public\n * @param {number} index \t- The number representing the song in the songs array.\n */\n function playSongAtIndex(index) {\n /*\n\t\t\t Stop the current song.\n\t\t*/\n Core.stop();\n\n /*\n\t\t\t Determine if there is a new playlist, if so set the active playlist and change the song.\n\t\t*/\n if (Checks.newPlaylist(null)) {\n AudioNavigation.setActivePlaylist(null);\n\n AudioNavigation.changeSong(config.songs[index], index);\n }\n\n /*\n\t\t\t Check if the song is new. If so, change the song.\n\t\t*/\n if (Checks.newSong(null, index)) {\n AudioNavigation.changeSong(config.songs[index], index);\n }\n\n /*\n\t\t\tPlay the song\n\t\t*/\n Core.play();\n\n /*\n\t\t\tSync all of the play pause buttons.\n\t\t*/\n PlayPauseElements.sync();\n }\n\n /**\n * Plays a song at the index passed in for the playlist provided. The index passed\n * in should be the index of the song in the playlist and not the songs array.\n *\n * @access public\n * @param {number} index \t\t- The number representing the song in the playlist array.\n * @param {string} playlist - The key string representing the playlist we are playing the song from.\n *\n */\n function playPlaylistSongAtIndex(index, playlist) {\n Core.stop();\n\n /*\n\t\t\tDetermine if there is a new playlist, if so set the active playlist and change the song.\n\t\t*/\n if (Checks.newPlaylist(playlist)) {\n AudioNavigation.setActivePlaylist(playlist);\n\n AudioNavigation.changeSongPlaylist(\n playlist,\n config.playlists[playlist].songs[index],\n index\n );\n }\n\n /*\n\t\t\tCheck if the song is new. If so, change the song.\n\t\t*/\n if (Checks.newSong(playlist, index)) {\n AudioNavigation.changeSongPlaylist(\n playlist,\n config.playlists[playlist].songs[index],\n index\n );\n }\n\n /*\n\t\t\tSync all of the play pause buttons.\n\t\t*/\n PlayPauseElements.sync();\n\n /*\n\t\t\tPlay the song\n\t\t*/\n Core.play();\n }\n\n /**\n * Allows the user to play whatever the active song is directly\n * through Javascript. Normally ALL of Amplitude functions that access\n * the core features are called through event handlers.\n *\n * Public Accessor: Amplitude.play();\n *\n * @access public\n */\n function play() {\n Core.play();\n }\n\n /**\n * Allows the user to pause whatever the active song is directly\n * through Javascript. Normally ALL of Amplitude functions that access\n * the core features are called through event handlers.\n *\n * Public Accessor: Amplitude.pause();\n *\n * @access public\n */\n function pause() {\n Core.pause();\n }\n\n /**\n * Allows the user to stop whatever the active song is directly\n * through Javascript.\n *\n * Public Accessor: Amplitude.stop();\n *\n * @access public\n */\n function stop() {\n Core.stop();\n }\n\n /**\n * Returns the audio object used to play the audio\n *\n * Public Accessor: Amplitude.getAudio();\n *\n * @access public\n */\n function getAudio() {\n return config.audio;\n }\n\n /**\n * Returns the Web Audio API ANalyser used for visualizations.\n *\n * Public Accessor: Amplitude.getAnalyser()\n *\n * @access public\n */\n function getAnalyser() {\n return config.analyser;\n }\n\n /**\n * Plays the next song either in the playlist or globally.\n *\n * Public Accessor: Amplitude.next( playlist );\n *\n * @access public\n * @param {string} [playlist = null \t- The playlist key\n */\n function next(playlist = null) {\n let nextData = {};\n /*\n\t\t\tIf the playlist is empty or null, then we check the active\n\t\t\tplaylist\n\t\t*/\n if (playlist == \"\" || playlist == null) {\n /*\n\t\t\t\tIf the active playlist is null, then we set the next global\n\t\t\t\tsong or we set the next in the playlist.\n\t\t\t*/\n if (config.active_playlist == null || config.active_playlist == \"\") {\n AudioNavigation.setNext();\n } else {\n AudioNavigation.setNextPlaylist(config.active_playlist);\n }\n } else {\n AudioNavigation.setNextPlaylist(playlist);\n }\n }\n\n /**\n * Plays the prev song either in the playlist or globally.\n *\n * Public Accessor: Amplitude.prev( playlist );\n *\n * @access public\n * @param {string} [playlist = null] \t- The playlist key\n */\n function prev(playlist = null) {\n let prevData = {};\n\n /*\n\t\t\tIf the playlist is empty or null, then we check the active\n\t\t\tplaylist\n\t\t*/\n if (playlist == \"\" || playlist == null) {\n /*\n\t\t\t\tIf the active playlist is null, then we set the prev global\n\t\t\t\tsong or we set the prev in the playlist.\n\t\t\t*/\n if (config.active_playlist == null || config.active_playlist == \"\") {\n AudioNavigation.setPrevious();\n } else {\n AudioNavigation.setPreviousPlaylist(config.active_playlist);\n }\n } else {\n AudioNavigation.setPreviousPlaylist(playlist);\n }\n }\n\n /**\n * Gets all of the songs in the songs array\n *\n * Public Accessor: Amplitude.getSongs( );\n *\n * @access public\n */\n function getSongs() {\n return config.songs;\n }\n\n /**\n * Gets all of the songs in a playlist\n *\n * Public Accessor: Amplitude.getSongsInPlaylist( playlist );\n *\n * @access public\n * @param {string} playlist \t- The playlist key\n */\n function getSongsInPlaylist(playlist) {\n return config.playlists[playlist].songs;\n }\n\n /**\n * Get current state of songs. If shuffled, this will return the shuffled\n * songs.\n *\n * Public Accessor: Amplitude.getSongsState();\n *\n * @access public\n */\n function getSongsState() {\n if (config.shuffle_on) {\n return config.shuffle_list;\n } else {\n return config.songs;\n }\n }\n\n /**\n * Get current state of songs in playlist. If shuffled, this will return the\n * shuffled songs.\n *\n * Public Accessor: Amplitude.getSongsStatePlaylist( playlist );\n *\n * @access public\n * @param {string} playlist \t- The playlist key\n */\n function getSongsStatePlaylist(playlist) {\n if (config.playlists[playlist].shuffle) {\n return config.playlists[playlist].shuffle_list;\n } else {\n return config.playlists[playlist].songs;\n }\n }\n\n /**\n * Gets the active index of the player\n *\n * Public Accessor: Amplitude.getActiveIndex()\n *\n * @access public\n */\n function getActiveIndex() {\n return parseInt(config.active_index);\n }\n\n /**\n * Get the version of AmplitudeJS\n *\n * Public Accessor: Amplitude.getVersion()\n *\n * @access public\n */\n function getVersion() {\n return config.version;\n }\n\n /**\n * Get the buffered amount for the current song\n *\n * Public Accessor: Amplitude.getBuffered()\n *\n * @access public\n */\n function getBuffered() {\n return config.buffered;\n }\n\n /**\n * Skip to a certain location in a selected song.\n *\n * Public Accessor: Amplitude.getBuffered()\n *\n * @access public\n * @param {number} seconds \t\t\t\t\t\t- The amount of seconds we should skip to in the song.\n * @param {number} songIndex \t\t\t\t\t- The index of the song in the songs array.\n * @param {string} [playlist = null]\t- The playlist the song we are skipping to belogns to.\n */\n function skipTo(seconds, songIndex, playlist = null) {\n seconds = parseInt(seconds);\n\n if (playlist != null) {\n /*\n Checks if we are skipping to a new playlist\n */\n if (Checks.newPlaylist(playlist)) {\n AudioNavigation.setActivePlaylist(playlist);\n }\n\n /*\n Changes the song to where it's being skipped and then\n play the song.\n */\n AudioNavigation.changeSongPlaylist(\n playlist,\n config.playlists[playlist].songs[songIndex],\n songIndex\n );\n Core.play();\n\n /*\n Sync all of the play pause elements.\n */\n PlayPauseElements.syncGlobal();\n PlayPauseElements.syncPlaylist();\n PlayPauseElements.syncSong();\n\n /*\n Skip to the location in the song.\n */\n Core.skipToLocation(seconds);\n } else {\n /*\n Changes the song to where it's being skipped and then\n play the song.\n */\n AudioNavigation.changeSong(config.songs[songIndex], songIndex);\n Core.play();\n\n /*\n Syncs all of the play pause buttons now that we've skipped.\n */\n PlayPauseElements.syncGlobal();\n PlayPauseElements.syncSong();\n\n /*\n Skip to the location in the song.\n */\n Core.skipToLocation(seconds);\n }\n }\n\n /**\n * Sets the meta data for a song in the songs array. This will set any\n * meta data for a song besides the URL. The URL could cause issues if the\n * song was playing.\n *\n * Public Accessor: Amplitude.setSongMetaData()\n *\n * @access public\n * @param {number} index\t\t\t\t\t- The index of the song in the songs array.\n * @param {object} metaData \t\t\t- The object containing the meta data we are updating.\n * @param {string} playlist - The playlist we are updating the song meta data for.\n */\n function setSongMetaData(index, metaData, playlist = null) {\n /*\n Update the meta data for a song in a playlist.\n */\n if (\n playlist != \"\" &&\n playlist != null &&\n config.playlists[playlist] != undefined\n ) {\n /*\n Set all of the defined meta data properties\n */\n for (var key in metaData) {\n if (metaData.hasOwnProperty(key)) {\n if (key != \"url\" && key != \"URL\" && key != \"live\" && key != \"LIVE\") {\n config.playlists[playlist].songs[index][key] = metaData[key];\n }\n }\n }\n } else {\n /*\n Update the meta data for a song.\n */\n for (var key in metaData) {\n if (metaData.hasOwnProperty(key)) {\n if (key != \"url\" && key != \"URL\" && key != \"live\" && key != \"LIVE\") {\n config.songs[index][key] = metaData[key];\n }\n }\n }\n }\n\n /*\n Display the updates on the screen.\n */\n MetaDataElements.displayMetaData();\n MetaDataElements.syncMetaData();\n }\n\n function setPlaylistMetaData(playlist, metaData) {\n if (config.playlists[playlist] != undefined) {\n /*\n \t\t\tThese are the ignored keys that we won't be worrying about displaying.\n \t\t\tEvery other key in the playlist object can be displayed.\n \t\t*/\n let ignoredKeys = [\"repeat\", \"shuffle\", \"shuffle_list\", \"songs\", \"src\"];\n\n for (var key in metaData) {\n if (metaData.hasOwnProperty(key)) {\n if (ignoredKeys.indexOf(key) < 0) {\n config.playlists[playlist][key] = metaData[key];\n }\n }\n }\n\n MetaDataElements.displayPlaylistMetaData();\n } else {\n Debug.writeMessage(\"You must provide a valid playlist key!\");\n }\n }\n\n /**\n * Sets the delay between the songs when they are finished.\n *\n * Public Accessor: Amplitude.setDelay()\n *\n * @access public\n * @param {number} delay \t- The millisecond delay time between songs\n */\n function setDelay(time) {\n config.delay = time;\n }\n\n /**\n * Returns the current delay between songs.\n *\n * Public Accessor: Amplitude.getDelay()\n *\n * @access public\n */\n function getDelay() {\n return config.delay;\n }\n\n /**\n * Returns the state of the player.\n *\n * Public Accessor: Amplitude.getPlayerState();\n */\n function getPlayerState() {\n return config.player_state;\n }\n\n /**\n * Registers a visualization and sets that visualization's\n * preferences. When creating a visualization, you can set certain\n * preferences that the user can overwrite similar to Amplitude.\n * Public Accessor: Amplitude.registerVisualization( visualization, preferences )\n *\n * @param {object} visualzation A visualization object that gets registered\n * with Amplitude\n *\n * @param {object} preferences A JSON object of preferences relating to the\n * visualization\n */\n function registerVisualization(visualization, preferences) {\n Visualizations.register(visualization, preferences);\n }\n\n /**\n * Set the visualization for the playlist\n *\n * @param {string} playlist - The playlist we are setting the visualization for.\n * @param {string} visualizationKey - The key of the visualization we are adding to the playlist.\n */\n function setPlaylistVisualization(playlist, visualizationKey) {\n if (config.playlists[playlist] != undefined) {\n if (config.visualizations.available[visualizationKey] != undefined) {\n config.playlists[playlist].visualization = visualizationKey;\n } else {\n Debug.writeMessage(\n \"A visualization does not exist for the key provided.\"\n );\n }\n } else {\n Debug.writeMessage(\"The playlist for the key provided does not exist\");\n }\n }\n\n /**\n * Set a visualization for the song.\n *\n * @param {number} songIndex - The index of the song in the songs array we are setting the visualization for.\n * @param {string} visualizationKey - The key of the visualization we are adding to the playlist.\n */\n function setSongVisualization(songIndex, visualizationKey) {\n if (config.songs[songIndex]) {\n if (config.visualizations.available[visualizationKey] != undefined) {\n config.songs[songIndex].visualization = visualizationKey;\n } else {\n Debug.writeMessage(\n \"A visualization does not exist for the key provided.\"\n );\n }\n } else {\n Debug.writeMessage(\"A song at that index is undefined\");\n }\n }\n\n /**\n * Set song in playlist visualization.\n *\n * @param {string} playlist - The playlist we are setting the song visualization for.\n * @param {number} songIndex - The index we are setting the visualization for.\n * @param {strong} visualizationKey - The key of the visualization we are adding to the song in the playlist.\n */\n function setSongInPlaylistVisualization(\n playlist,\n songIndex,\n visualizationKey\n ) {\n if (config.playlists[playlist].songs[songIndex] != undefined) {\n if (config.visualizations.available[visualizationKey] != undefined) {\n config.playlists[playlist].songs[\n songIndex\n ].visualization = visualizationKey;\n } else {\n Debug.writeMessage(\n \"A visualization does not exist for the key provided.\"\n );\n }\n } else {\n Debug.writeMessage(\"The song in the playlist at that key is not defined\");\n }\n }\n\n /**\n * Sets the global visualization default.\n */\n function setGlobalVisualization(visualizationKey) {\n if (config.visualizations.available[visualizationKey] != undefined) {\n config.visualization = visualizationKey;\n } else {\n Debug.writeMessage(\n \"A visualization does not exist for the key provided.\"\n );\n }\n }\n\n /**\n * Sets the active volume.\n * @param {number} volumeLevel - A number between 1 and 100 as a percentage of\n * min to max for a volume level.\n */\n function setVolume(volumeLevel) {\n Core.setVolume(volumeLevel);\n }\n\n /**\n * Gets the active volume.\n */\n function getVolume() {\n return config.volume;\n }\n\n /*\n\t\tReturns all of the publically accesible methods.\n\t*/\n return {\n init: init,\n getConfig: getConfig,\n bindNewElements: bindNewElements,\n getActivePlaylist: getActivePlaylist,\n getPlaybackSpeed: getPlaybackSpeed,\n setPlaybackSpeed: setPlaybackSpeed,\n getRepeat: getRepeat,\n getRepeatPlaylist: getRepeatPlaylist,\n getShuffle: getShuffle,\n getShufflePlaylist: getShufflePlaylist,\n setShuffle: setShuffle,\n setShufflePlaylist: setShufflePlaylist,\n setRepeat: setRepeat,\n setRepeatSong: setRepeatSong,\n setRepeatPlaylist: setRepeatPlaylist,\n getDefaultAlbumArt: getDefaultAlbumArt,\n setDefaultAlbumArt: setDefaultAlbumArt,\n getDefaultPlaylistArt: getDefaultPlaylistArt,\n setDefaultPlaylistArt: setDefaultPlaylistArt,\n getSongPlayedPercentage: getSongPlayedPercentage,\n setSongPlayedPercentage: setSongPlayedPercentage,\n getSongPlayedSeconds: getSongPlayedSeconds,\n getSongDuration: getSongDuration,\n setDebug: setDebug,\n getActiveSongMetadata: getActiveSongMetadata,\n getActivePlaylistMetadata: getActivePlaylistMetadata,\n getSongAtIndex: getSongAtIndex,\n getSongAtPlaylistIndex: getSongAtPlaylistIndex,\n addSong: addSong,\n prependSong: prependSong,\n addSongToPlaylist: addSongToPlaylist,\n removeSong: removeSong,\n removeSongFromPlaylist: removeSongFromPlaylist,\n playNow: playNow,\n playSongAtIndex: playSongAtIndex,\n playPlaylistSongAtIndex: playPlaylistSongAtIndex,\n play: play,\n pause: pause,\n stop: stop,\n getAudio: getAudio,\n getAnalyser: getAnalyser,\n next: next,\n prev: prev,\n getSongs: getSongs,\n getSongsInPlaylist: getSongsInPlaylist,\n getSongsState: getSongsState,\n getSongsStatePlaylist: getSongsStatePlaylist,\n getActiveIndex: getActiveIndex,\n getVersion: getVersion,\n getBuffered: getBuffered,\n skipTo: skipTo,\n setSongMetaData: setSongMetaData,\n setPlaylistMetaData: setPlaylistMetaData,\n setDelay: setDelay,\n getDelay: getDelay,\n getPlayerState: getPlayerState,\n addPlaylist: addPlaylist,\n registerVisualization: registerVisualization,\n setPlaylistVisualization: setPlaylistVisualization,\n setSongVisualization: setSongVisualization,\n setSongInPlaylistVisualization: setSongInPlaylistVisualization,\n setGlobalVisualization: setGlobalVisualization,\n getVolume: getVolume,\n setVolume: setVolume\n };\n})();\n\nexport default Amplitude;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * AmplitudeJS Debug Module\n * @module utilities/Debug\n */\nimport Debug from \"../utilities/debug.js\";\n\n/**\n * AmplitudeJS Checks Utility.\n * @module utilities/Checks\n */\nimport Checks from \"../utilities/checks.js\";\n\n/**\n * AmplitudeJS Visual Meta Data Elements Module\n * @module visual/MetaDataElements\n */\nimport MetaDataElements from \"../visual/metaDataElements.js\";\n\n/**\n * AmplitudeJS SoundCloud Meta module\n * @module soundcloud/Soundcloud\n */\nimport SoundCloud from \"../soundcloud/soundcloud.js\";\n\n/**\n * Handles the initialization of the playlists.\n *\n * @module init/PlaylistsInitializer\n */\nlet PlaylistsInitializer = (function() {\n /**\n * Initializes the playlists for AmplitudeJS\n *\n * @param {Object} playlists - The playlists defined by the user.\n */\n function initialize(playlists) {\n /*\n Copy the playlists over to Amplitude\n */\n config.playlists = playlists;\n\n /*\n Copy songs over from songs array.\n */\n copySongsToPlaylists();\n\n /*\n Grab any SoundCloud Data for the playlist songs if needed.\n */\n grabSoundCloudData();\n\n /*\n Initialize a scoped active index for each playlist.\n */\n initializePlaylistActiveIndexes();\n\n /*\n Initialize the shuffle status of the playlists.\n */\n initializePlaylistShuffleStatuses();\n\n /*\n Initialize the repeat status for the playlits.\n */\n initializePlaylistsRepeatStatuses();\n\n /*\n Initialize temporary place holders for shuffle lists.\n */\n initializePlaylistShuffleLists();\n\n /*\n Initializes the first song in the playlist\n */\n initializeFirstSongInPlaylistMetaData();\n }\n\n /**\n * Initializes a scoped active index for each playlist.\n *\n * @access private\n */\n function initializePlaylistActiveIndexes() {\n /*\n \t\tIterate over all of the playlists defined by the user\n and add an active index.\n\t\t*/\n for (let key in config.playlists) {\n config.playlists[key].active_index = null;\n }\n }\n\n /**\n * Ensures the indexes in the playlists are valid indexes. The song has\n * to exist in the Amplitude config to be played correctly. If the index\n * is an integer, we ensure it exists and coy it to the array.\n *\n * @access private\n */\n function copySongsToPlaylists() {\n /*\n Iterate over all of the config's playlists\n */\n for (let key in config.playlists) {\n /*\n Checks if the playlist key is accurate.\n */\n if (config.playlists.hasOwnProperty(key)) {\n /*\n Checks if the playlist has songs.\n */\n if (config.playlists[key].songs) {\n /*\n Iterate over all of the songs in the playlist\n */\n for (let i = 0; i < config.playlists[key].songs.length; i++) {\n if (Checks.isInt(config.playlists[key].songs[i])) {\n config.playlists[key].songs[i] =\n config.songs[config.playlists[key].songs[i]];\n\n config.playlists[key].songs[i].index = i;\n }\n /*\n Check to see if the index for the song in the playlist\n exists in the songs config.\n */\n if (\n Checks.isInt(config.playlists[key].songs[i]) &&\n !config.songs[config.playlists[key].songs[i]]\n ) {\n Debug.writeMessage(\n \"The song index: \" +\n config.playlists[key].songs[i] +\n \" in playlist with key: \" +\n key +\n \" is not defined in your songs array!\"\n );\n }\n\n /*\n If not an int, then is a dedicated song, just set the index.\n */\n if (!Checks.isInt(config.playlists[key].songs[i]) ){\n config.playlists[key].songs[i].index = i;\n }\n }\n }\n }\n }\n }\n\n /**\n * Grabs the SoundCloud data for any song in the playlist that\n * the user needs to grab data for.\n *\n * @access private\n */\n function grabSoundCloudData() {\n /*\n Iterate over all of the config's playlists\n */\n for (let key in config.playlists) {\n /*\n Checks if the playlist key is accurate.\n */\n if (config.playlists.hasOwnProperty(key)) {\n /*\n Iterate over all of the songs in the playlist and see if\n they need to grab the SoundCloud data for the song.\n */\n for (let i = 0; i < config.playlists[key].songs.length; i++) {\n /*\n Only Grab the data if the URL is a SoundCloud URL.\n */\n if (SoundCloud.isSoundCloudURL(config.playlists[key].songs[i].url)) {\n /*\n Only grab the data if the SoundCloud data has not already been\n grabbed for the audio. This could happen if the user defined the\n song in the songs array and was grabbed before.\n */\n if (config.playlists[key].songs[i].soundcloud_data == undefined) {\n SoundCloud.resolveIndividualStreamableURL(\n config.playlists[key].songs[i].url,\n key,\n i\n );\n }\n }\n }\n }\n }\n }\n\n /**\n * Initializes the shuffle statuses for each of the playlists. These will\n * be referenced when we shuffle individual playlists.\n *\n * @access private\n */\n function initializePlaylistShuffleStatuses() {\n /*\n\t\t\tIterate over all of the playlists the user defined adding\n\t\t\tthe playlist key to the shuffled playlist array and creating\n\t\t\tand empty object to house the statuses.\n\t\t*/\n for (let key in config.playlists) {\n config.playlists[key].shuffle = false;\n }\n }\n\n /**\n * Initializes the repeat statuses for each of the playlists. These will\n * be referenced when we repeat individual playlits.\n *\n * @access private\n */\n function initializePlaylistsRepeatStatuses() {\n /*\n Iterate over all of the playlists the user defined adding\n the playlist key to the repeated playlist array and creating\n and empty object to house the statuses.\n */\n for (let key in config.playlists) {\n config.playlists[key].repeat = false;\n }\n }\n\n /**\n * Initializes the shuffled playlist placeholders. These will be set for\n * playlists that are shuffled and contain the shuffled songs.\n *\n * @access private\n */\n function initializePlaylistShuffleLists() {\n /*\n \t\t\tIterate over all of the playlists the user defined adding\n \t\t\tthe playlist key to the shuffled playlists array and creating\n \t\t\tand empty object to house the shuffled playlists\n \t\t*/\n for (let key in config.playlists) {\n config.playlists[key].shuffle_list = [];\n }\n }\n\n /**\n * Intializes the display for the first song in the playlist meta data.\n *\n * @access private\n */\n function initializeFirstSongInPlaylistMetaData() {\n /*\n\t\t\tIterates over all of the playlists setting the meta data for the\n\t\t\tfirst song.\n\t\t*/\n for (let key in config.playlists) {\n MetaDataElements.setFirstSongInPlaylist(\n config.playlists[key].songs[0],\n key\n );\n }\n }\n\n /*\n Returns the public facing methods\n */\n return {\n initialize: initialize\n };\n})();\n\nexport default PlaylistsInitializer;\n\n\n\n// WEBPACK FOOTER //\n// ./src/init/playlists.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../config.js\";\n\n/**\n * Handles all of the container elements.\n *\n * @param visual/ContainerElements\n */\nlet ContainerElements = (function() {\n /**\n * Applies the class 'amplitude-active-song-container' to the element\n * containing visual information regarding the active song.\n *\n * @prop {boolean} direct - Determines if it was a direct click on the song. We\n * then don't care if shuffle is on or not.\n *\n * @access public\n */\n function setActive(direct) {\n /*\n Gets all of the song container elements.\n */\n let songContainers = document.getElementsByClassName(\n \"amplitude-song-container\"\n );\n\n /*\n\t\t\tRemoves all of the active song containrs.\n\t\t*/\n for (let i = 0; i < songContainers.length; i++) {\n songContainers[i].classList.remove(\"amplitude-active-song-container\");\n }\n\n /*\n\t\t\tFinds the active index and adds the active song container to the element\n\t\t\tthat represents the song at the index.\n\t\t*/\n if (config.active_playlist == \"\" || config.active_playlist == null) {\n let activeIndex = \"\";\n\n /*\n If we click directly on the song element, we ignore\n whether it's in shuffle or not.\n */\n if (direct) {\n activeIndex = config.active_index;\n } else {\n if (config.shuffle_on) {\n activeIndex = config.shuffle_list[config.active_index].index;\n } else {\n activeIndex = config.active_index;\n }\n }\n\n if (\n document.querySelectorAll(\n '.amplitude-song-container[data-amplitude-song-index=\"' +\n activeIndex +\n '\"]'\n )\n ) {\n let songContainers = document.querySelectorAll(\n '.amplitude-song-container[data-amplitude-song-index=\"' +\n activeIndex +\n '\"]'\n );\n\n for (let i = 0; i < songContainers.length; i++) {\n if (!songContainers[i].hasAttribute(\"data-amplitude-playlist\")) {\n songContainers[i].classList.add(\"amplitude-active-song-container\");\n }\n }\n }\n } else {\n /*\n If we have an active playlist or the action took place directly on the\n song element, we ignore the shuffle.\n */\n if (\n (config.active_playlist != null && config.active_playlist != \"\") ||\n direct\n ) {\n var activePlaylistIndex =\n config.playlists[config.active_playlist].active_index;\n } else {\n var activePlaylistIndex = \"\";\n\n if (config.playlists[config.active_playlist].shuffle) {\n activePlaylistIndex =\n config.playlists[config.active_playlist].shuffle_list[\n config.playlists[config.active_playlist].active_index\n ].index;\n } else {\n activePlaylistIndex =\n config.playlists[config.active_playlist].active_index;\n }\n }\n\n if (\n document.querySelectorAll(\n '.amplitude-song-container[data-amplitude-song-index=\"' +\n activePlaylistIndex +\n '\"][data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n )\n ) {\n let songContainers = document.querySelectorAll(\n '.amplitude-song-container[data-amplitude-song-index=\"' +\n activePlaylistIndex +\n '\"][data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n );\n\n for (let i = 0; i < songContainers.length; i++) {\n songContainers[i].classList.add(\"amplitude-active-song-container\");\n }\n }\n }\n }\n\n return {\n setActive: setActive\n };\n})();\n\nexport default ContainerElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/containerElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../../config.js\";\n\n/**\n * Handles all of the current time hour elements.\n *\n * @module visual/time/CurrentHourElements\n */\nlet CurrentHourElements = (function() {\n function sync(hours) {\n syncGlobal(hours);\n syncPlaylist(hours);\n syncSong(hours);\n syncSongInPlaylist(hours);\n }\n\n /**\n * Updates any elements that display the current hour for the song.\n *\n * @access public\n * @param {number} hours \t- An integer conaining how many hours into the song.\n */\n function syncGlobal(hours) {\n /*\n\t\t\tGet all of the hour selectors\n\t\t*/\n const currentHourSelectors = document.querySelectorAll(\n \".amplitude-current-hours\"\n );\n\n /*\n\t\t\tSet the current hour selector's inner html to hours passed in.\n\t\t*/\n for (let i = 0; i < currentHourSelectors.length; i++) {\n let playlist = currentHourSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let songIndex = currentHourSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n /*\n Updates the current hour selector for a global display.\n */\n if (playlist == null && songIndex == null) {\n currentHourSelectors[i].innerHTML = hours;\n }\n }\n }\n\n /**\n * Syncs the playlist current hour elements.\n *\n * @param {Integer} hour - The current audio hour.\n */\n function syncPlaylist(hours) {\n /*\n\t\t\tGet all of the hour selectors\n\t\t*/\n const currentHourPlaylistSelectors = document.querySelectorAll(\n '.amplitude-current-hours[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n );\n\n /*\n\t\t\tSet the current hour selector's inner html to hours passed in.\n\t\t*/\n for (let i = 0; i < currentHourPlaylistSelectors.length; i++) {\n let songIndex = currentHourPlaylistSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n /*\n Updates the current hour selector for a global display.\n */\n if (songIndex == null) {\n currentHourPlaylistSelectors[i].innerHTML = hours;\n }\n }\n }\n\n /**\n * Syncs the song hour elements.\n *\n * @param {Integer} hour - The current audio hour.\n */\n function syncSong(hours) {\n if (config.active_playlist == null) {\n /*\n \t\t\tGet all of the hour selectors\n \t\t*/\n const currentHourSongSelectors = document.querySelectorAll(\n '.amplitude-current-hours[data-amplitude-song-index=\"' +\n config.active_index +\n '\"]'\n );\n\n /*\n \t\t\tSet the current hour selector's inner html to hours passed in.\n \t\t*/\n for (let i = 0; i < currentHourSongSelectors.length; i++) {\n let playlist = currentHourSongSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n\n /*\n Updates the current hour selector for a global display.\n */\n if (playlist == null) {\n currentHourSongSelectors[i].innerHTML = hours;\n }\n }\n }\n }\n\n /**\n * Syncs the song in playlist song hour elements.\n *\n * @param {Integer} hour - The current audio hour.\n */\n function syncSongInPlaylist(hours) {\n let activePlaylistIndex =\n config.active_playlist != \"\" && config.active_playlist != null\n ? config.playlists[config.active_playlist].active_index\n : null;\n /*\n\t\t\tGet all of the hour selectors\n\t\t*/\n const currentHourPlaylistSongSelectors = document.querySelectorAll(\n '.amplitude-current-hours[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"][data-amplitude-song-index=\"' +\n activePlaylistIndex +\n '\"]'\n );\n\n /*\n\t\t\tSet the current hour selector's inner html to hours passed in.\n\t\t*/\n for (let i = 0; i < currentHourPlaylistSongSelectors.length; i++) {\n currentHourPlaylistSongSelectors[i].innerHTML = hours;\n }\n }\n\n /**\n * Reset the current hour elements.\n */\n function resetTimes() {\n /*\n Gets the hour display elements\n */\n let hourSelectors = document.querySelectorAll(\".amplitude-current-hours\");\n\n /*\n Iterates over all of the hour selectors and sets the inner HTML\n to 00.\n */\n for (var i = 0; i < hourSelectors.length; i++) {\n hourSelectors[i].innerHTML = \"00\";\n }\n }\n\n /**\n * Returns the publically facing methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n})();\n\nexport default CurrentHourElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/time/currentHourElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../../config.js\";\n\n/**\n * Handles all of the current time minutes elements.\n *\n * @module visual/time/CurrentMinuteElements\n */\nlet CurrentMinuteElements = (function() {\n /**\n * Syncs the current minutes elements.\n *\n * @param {Integer} minutes - The current audio minutes.\n */\n function sync(minutes) {\n syncGlobal(minutes);\n syncPlaylist(minutes);\n syncSong(minutes);\n syncSongInPlaylist(minutes);\n }\n\n /**\n * Syncs the global current minutes elements.\n *\n * @param {Integer} minutes - The current audio minutes.\n */\n function syncGlobal(minutes) {\n /*\n\t\t\tGet all of the minute selectors\n\t\t*/\n const currentMinuteSelectors = document.querySelectorAll(\n \".amplitude-current-minutes\"\n );\n\n /*\n\t\t\tSet the current minute selector's inner html to minutes passed in.\n\t\t*/\n for (let i = 0; i < currentMinuteSelectors.length; i++) {\n let playlist = currentMinuteSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let songIndex = currentMinuteSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n /*\n Updates the current minute selector for a global display.\n */\n if (playlist == null && songIndex == null) {\n currentMinuteSelectors[i].innerHTML = minutes;\n }\n }\n }\n\n /**\n * Syncs the playlist minutes elements.\n *\n * @param {Integer} minutes - The current audio minutes.\n */\n function syncPlaylist(minutes) {\n /*\n\t\t\tGet all of the minute selectors\n\t\t*/\n const currentMinutePlaylistSelectors = document.querySelectorAll(\n '.amplitude-current-minutes[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n );\n\n /*\n\t\t\tSet the current minute selector's inner html to minutes passed in.\n\t\t*/\n for (let i = 0; i < currentMinutePlaylistSelectors.length; i++) {\n let songIndex = currentMinutePlaylistSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n /*\n Updates the current minute selector for a global display.\n */\n if (songIndex == null) {\n currentMinutePlaylistSelectors[i].innerHTML = minutes;\n }\n }\n }\n\n /**\n * Syncs the current song minutes elements.\n *\n * @param {Integer} minutes - The current audio minutes.\n */\n function syncSong(minutes) {\n if (config.active_playlist == null) {\n /*\n \t\t\tGet all of the minute selectors\n \t\t*/\n const currentMinuteSongSelectors = document.querySelectorAll(\n '.amplitude-current-minutes[data-amplitude-song-index=\"' +\n config.active_index +\n '\"]'\n );\n\n /*\n \t\t\tSet the current minute selector's inner html to minutes passed in.\n \t\t*/\n for (let i = 0; i < currentMinuteSongSelectors.length; i++) {\n let playlist = currentMinuteSongSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n\n /*\n Updates the current minute selector for a global display.\n */\n if (playlist == null) {\n currentMinuteSongSelectors[i].innerHTML = minutes;\n }\n }\n }\n }\n\n /**\n * Syncs the current song in playlist minutes elements.\n *\n * @param {Integer} minutes - The current audio minutes.\n */\n function syncSongInPlaylist(minutes) {\n let activePlaylistIndex =\n config.active_playlist != \"\" && config.active_playlist != null\n ? config.playlists[config.active_playlist].active_index\n : null;\n\n /*\n\t\t\tGet all of the minute selectors\n\t\t*/\n const currentMinutePlaylistSongSelectors = document.querySelectorAll(\n '.amplitude-current-minutes[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"][data-amplitude-song-index=\"' +\n activePlaylistIndex +\n '\"]'\n );\n\n /*\n\t\t\tSet the current minute selector's inner html to minutes passed in.\n\t\t*/\n for (let i = 0; i < currentMinutePlaylistSongSelectors.length; i++) {\n currentMinutePlaylistSongSelectors[i].innerHTML = minutes;\n }\n }\n\n /**\n * Reset the current times.\n */\n function resetTimes() {\n /*\n Gets the minute display elements\n */\n let minuteSelectors = document.querySelectorAll(\n \".amplitude-current-minutes\"\n );\n\n /*\n Iterates over all of the minute selectors and sets the inner HTML\n to 00.\n */\n for (var i = 0; i < minuteSelectors.length; i++) {\n minuteSelectors[i].innerHTML = \"00\";\n }\n }\n\n /**\n * Returns the publically facing methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n})();\n\nexport default CurrentMinuteElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/time/currentMinuteElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../../config.js\";\n\n/**\n * Handles all of the current time seconds elements.\n *\n * @module visual/time/CurrentSecondElements\n */\nlet CurrentSecondElements = (function() {\n /**\n * Syncs the current seconds elements.\n *\n * @param {Integer} seconds - The current audio seconds.\n */\n function sync(seconds) {\n syncGlobal(seconds);\n syncPlaylist(seconds);\n syncSong(seconds);\n syncSongInPlaylist(seconds);\n }\n\n /**\n * Syncs the global current seconds elements.\n *\n * @param {Integer} seconds - The current audio seconds.\n */\n function syncGlobal(seconds) {\n /*\n\t\t\tGet all of the second selectors\n\t\t*/\n const currentSecondSelectors = document.querySelectorAll(\n \".amplitude-current-seconds\"\n );\n\n /*\n\t\t\tSet the current second selector's inner html to seconds passed in.\n\t\t*/\n for (let i = 0; i < currentSecondSelectors.length; i++) {\n let playlist = currentSecondSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let songIndex = currentSecondSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n /*\n Updates the current second selector for a global display.\n */\n if (playlist == null && songIndex == null) {\n currentSecondSelectors[i].innerHTML = seconds;\n }\n }\n }\n\n /**\n * Syncs the playlist seconds elements.\n *\n * @param {Integer} seconds - The current audio seconds.\n */\n function syncPlaylist(seconds) {\n /*\n\t\t\tGet all of the second selectors\n\t\t*/\n const currentSecondPlaylistSelectors = document.querySelectorAll(\n '.amplitude-current-seconds[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n );\n\n /*\n\t\t\tSet the current second selector's inner html to seconds passed in.\n\t\t*/\n for (let i = 0; i < currentSecondPlaylistSelectors.length; i++) {\n let songIndex = currentSecondPlaylistSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n /*\n Updates the current second selector for a global display.\n */\n if (songIndex == null) {\n currentSecondPlaylistSelectors[i].innerHTML = seconds;\n }\n }\n }\n\n /**\n * Syncs the current song seconds elements.\n *\n * @param {Integer} seconds - The current audio seconds.\n */\n function syncSong(seconds) {\n if (config.active_playlist == null) {\n /*\n \t\t\tGet all of the second selectors\n \t\t*/\n const currentSecondSongSelectors = document.querySelectorAll(\n '.amplitude-current-seconds[data-amplitude-song-index=\"' +\n config.active_index +\n '\"]'\n );\n\n /*\n \t\t\tSet the current second selector's inner html to seconds passed in.\n \t\t*/\n for (let i = 0; i < currentSecondSongSelectors.length; i++) {\n let playlist = currentSecondSongSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n\n /*\n Updates the current second selector for a global display.\n */\n if (playlist == null) {\n currentSecondSongSelectors[i].innerHTML = seconds;\n }\n }\n }\n }\n\n /**\n * Syncs the current song in playlist seconds elements.\n *\n * @param {Integer} seconds - The current audio seconds.\n */\n function syncSongInPlaylist(seconds) {\n let activePlaylistIndex =\n config.active_playlist != \"\" && config.active_playlist != null\n ? config.playlists[config.active_playlist].active_index\n : null;\n /*\n\t\t\tGet all of the second selectors\n\t\t*/\n const currentSecondPlaylistSongSelectors = document.querySelectorAll(\n '.amplitude-current-seconds[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"][data-amplitude-song-index=\"' +\n activePlaylistIndex +\n '\"]'\n );\n\n /*\n\t\t\tSet the current second selector's inner html to seconds passed in.\n\t\t*/\n for (let i = 0; i < currentSecondPlaylistSongSelectors.length; i++) {\n currentSecondPlaylistSongSelectors[i].innerHTML = seconds;\n }\n }\n\n /**\n * Reset the current seconds elements.\n */\n function resetTimes() {\n /*\n Gets the second display elements\n */\n let secondSelectors = document.querySelectorAll(\n \".amplitude-current-seconds\"\n );\n\n /*\n Iterates over all of the second selectors and sets the inner HTML\n to 00.\n */\n for (var i = 0; i < secondSelectors.length; i++) {\n secondSelectors[i].innerHTML = \"00\";\n }\n }\n\n /**\n * Returns the publically facing methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n})();\n\nexport default CurrentSecondElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/time/currentSecondElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../../config.js\";\n\n/**\n * These methods help sync visual time elements.\n *\n * @module visual/CurrentTimeElements\n */\nlet CurrentTimeElements = (function() {\n /**\n * Visually displays the current time on the screen. This is called on\n * time update for the current song.\n *\n * @access public\n * @param {object} currentTime \t\t\t\t\t- An object containing the current time for the song in seconds, minutes, and hours.\n */\n function sync(currentTime) {\n /*\n\t\t\tSet current time display.\n\t\t*/\n syncGlobal(currentTime);\n syncPlaylist(currentTime);\n syncSong(currentTime);\n syncSongInPlaylist(currentTime);\n }\n\n /**\n * Updates any elements that display the current time for the song. This\n * is a computed field that will be commonly used.\n *\n * @access public\n * @param {object} time \t- A json object conaining the parts for the current time for the song.\n */\n function syncGlobal(time) {\n /*\n\t\t\tGet all of the time selectors.\n\t\t*/\n let currentTimeSelectors = document.querySelectorAll(\n \".amplitude-current-time\"\n );\n\n /*\n\t\t\tSet the time selector's inner html to the current time for the song. The current\n\t\t\ttime is computed by joining minutes and seconds.\n\t\t*/\n var timeText = time.minutes + \":\" + time.seconds;\n\n if (time.hours > 0) {\n timeText = time.hours + \":\" + timeText;\n }\n\n for (let i = 0; i < currentTimeSelectors.length; i++) {\n let playlist = currentTimeSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let songIndex = currentTimeSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (playlist == null && songIndex == null) {\n currentTimeSelectors[i].innerHTML = timeText;\n }\n }\n }\n\n /**\n * Updates any elements that display the current time for the song. This\n * is a computed field that will be commonly used.\n *\n * @access public\n * @param {object} time \t- A json object conaining the parts for the current time for the song.\n */\n function syncPlaylist(time) {\n /*\n\t\t\tGet all of the time selectors.\n\t\t*/\n let currentTimeSelectors = document.querySelectorAll(\n '.amplitude-current-time[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n );\n\n /*\n\t\t\tSet the time selector's inner html to the current time for the song. The current\n\t\t\ttime is computed by joining minutes and seconds.\n\t\t*/\n var timeText = time.minutes + \":\" + time.seconds;\n\n if (time.hours > 0) {\n timeText = time.hours + \":\" + timeText;\n }\n\n for (let i = 0; i < currentTimeSelectors.length; i++) {\n let songIndex = currentTimeSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (songIndex == null) {\n currentTimeSelectors[i].innerHTML = timeText;\n }\n }\n }\n\n /**\n * Updates any elements that display the current time for the song. This\n * is a computed field that will be commonly used.\n *\n * @access public\n * @param {object} time \t- A json object conaining the parts for the current time for the song.\n */\n function syncSong(time) {\n if (config.active_playlist == null) {\n /*\n \t\t\tGet all of the time selectors.\n \t\t*/\n let currentTimeSelectors = document.querySelectorAll(\n '.amplitude-current-time[data-amplitude-song-index=\"' +\n config.active_index +\n '\"]'\n );\n\n /*\n \t\t\tSet the time selector's inner html to the current time for the song. The current\n \t\t\ttime is computed by joining minutes and seconds.\n \t\t*/\n var timeText = time.minutes + \":\" + time.seconds;\n\n if (time.hours > 0) {\n timeText = time.hours + \":\" + timeText;\n }\n\n for (let i = 0; i < currentTimeSelectors.length; i++) {\n let playlist = currentTimeSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n\n if (playlist == null) {\n currentTimeSelectors[i].innerHTML = timeText;\n }\n }\n }\n }\n\n /**\n * Updates any elements that display the current time for the song. This\n * is a computed field that will be commonly used.\n *\n * @access public\n * @param {object} time \t- A json object conaining the parts for the current time for the song.\n */\n function syncSongInPlaylist(time) {\n let activePlaylistIndex =\n config.active_playlist != \"\" && config.active_playlist != null\n ? config.playlists[config.active_playlist].active_index\n : null;\n /*\n\t\t\tGet all of the time selectors.\n\t\t*/\n let currentTimeSelectors = document.querySelectorAll(\n '.amplitude-current-time[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"][data-amplitude-song-index=\"' +\n activePlaylistIndex +\n '\"]'\n );\n\n /*\n\t\t\tSet the time selector's inner html to the current time for the song. The current\n\t\t\ttime is computed by joining minutes and seconds.\n\t\t*/\n var timeText = time.minutes + \":\" + time.seconds;\n\n if (time.hours > 0) {\n timeText = time.hours + \":\" + timeText;\n }\n\n for (let i = 0; i < currentTimeSelectors.length; i++) {\n currentTimeSelectors[i].innerHTML = timeText;\n }\n }\n\n /**\n * Resets the current time displays to 00:00\n *\n * @access public\n */\n function resetTimes() {\n /*\n\t\t\tGets the time selector display elements\n\t\t*/\n let timeSelectors = document.querySelectorAll(\".amplitude-current-time\");\n\n /*\n\t\t\tIterates over all of the time selectors and sets the inner HTML\n\t\t\tto 00.\n\t\t*/\n for (let i = 0; i < timeSelectors.length; i++) {\n timeSelectors[i].innerHTML = \"00:00\";\n }\n }\n\n /**\n * Returns the publically facing methods\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n})();\n\nexport default CurrentTimeElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/time/currentTimeElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../../config.js\";\n\n/**\n * Handles all of the duration countdown elements.\n *\n * @module visual/time/DurationCountDownTimeElements.\n */\nlet DurationCountDownTimeElements = (function() {\n /**\n * Syncs all of the countdown time elements.\n *\n * @param {object} countDownTime - The current time of the audio.\n * @param {object} songDuration - The song duration of the audio.\n */\n function sync(countDownTime, songDuration) {\n let timeRemaining = computeTimeRemaining(countDownTime, songDuration);\n\n syncGlobal(timeRemaining);\n syncPlaylist(timeRemaining);\n syncSong(timeRemaining);\n syncSongInPlaylist(timeRemaining);\n }\n\n /**\n * Syncs the global count down time elements.\n *\n * @param {string} timeRemaining - The time remaining for the audio.\n */\n function syncGlobal(timeRemaining) {\n let durationTimeRemainingSelectors = document.querySelectorAll(\n \".amplitude-time-remaining\"\n );\n\n for (let i = 0; i < durationTimeRemainingSelectors.length; i++) {\n let playlist = durationTimeRemainingSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let songIndex = durationTimeRemainingSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (playlist == null && songIndex == null) {\n durationTimeRemainingSelectors[i].innerHTML = timeRemaining;\n }\n }\n }\n\n /**\n * Syncs the playlist count down time elements.\n *\n * @param {string} timeRemaining - The time remaining for the audio.\n */\n function syncPlaylist(timeRemaining) {\n let durationTimeRemainingSelectors = document.querySelectorAll(\n '.amplitude-time-remaining[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n );\n\n for (let i = 0; i < durationTimeRemainingSelectors.length; i++) {\n let songIndex = durationTimeRemainingSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (songIndex == null) {\n durationTimeRemainingSelectors[i].innerHTML = timeRemaining;\n }\n }\n }\n\n /**\n * Syncs the song count down time elements.\n *\n * @param {string} timeRemaining - The time remaining for the audio.\n */\n function syncSong(timeRemaining) {\n if (config.active_playlist == null) {\n let durationTimeRemainingSelectors = document.querySelectorAll(\n '.amplitude-time-remaining[data-amplitude-song-index=\"' +\n config.active_index +\n '\"]'\n );\n\n for (let i = 0; i < durationTimeRemainingSelectors.length; i++) {\n let playlist = durationTimeRemainingSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n\n if (playlist == null) {\n durationTimeRemainingSelectors[i].innerHTML = timeRemaining;\n }\n }\n }\n }\n\n /**\n * Syncs the song in playlist count down time elements.\n *\n * @param {string} timeRemaining - The time remaining for the audio.\n */\n function syncSongInPlaylist(timeRemaining) {\n let activePlaylistIndex =\n config.active_playlist != \"\" && config.active_playlist != null\n ? config.playlists[config.active_playlist].active_index\n : null;\n\n let durationTimeRemainingSelectors = document.querySelectorAll(\n '.amplitude-time-remaining[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"][data-amplitude-song-index=\"' +\n activePlaylistIndex +\n '\"]'\n );\n\n for (let i = 0; i < durationTimeRemainingSelectors.length; i++) {\n durationTimeRemainingSelectors[i].innerHTML = timeRemaining;\n }\n }\n\n /**\n * Resets the count down times.\n */\n function resetTimes() {\n let durationTimeRemainingSelectors = document.querySelectorAll(\n \".amplitude-time-remaining\"\n );\n\n for (let i = 0; i < durationTimeRemainingSelectors.length; i++) {\n durationTimeRemainingSelectors[i].innerHTML = \"00\";\n }\n }\n\n /**\n * Computes the time remaining for the audio.\n *\n * @param {object} currentTime - The current time of the audio.\n * @param {object} songDuration - The duration of the audio.\n */\n function computeTimeRemaining(currentTime, songDuration) {\n let timeRemaining = \"00:00\";\n\n /*\n Initialize the total current seconds and total duration seconds\n */\n let totalCurrentSeconds =\n parseInt(currentTime.seconds) +\n parseInt(currentTime.minutes) * 60 +\n parseInt(currentTime.hours) * 60 * 60;\n let totalDurationSeconds =\n parseInt(songDuration.seconds) +\n parseInt(songDuration.minutes) * 60 +\n parseInt(songDuration.hours) * 60 * 60;\n\n /*\n If the two variables are numbers we continue the computing.\n */\n if (!isNaN(totalCurrentSeconds) && !isNaN(totalDurationSeconds)) {\n /*\n Find the total remaining seconds.\n */\n let timeRemainingTotalSeconds =\n totalDurationSeconds - totalCurrentSeconds;\n\n var remainingHours = Math.floor(timeRemainingTotalSeconds / 3600);\n var remainingMinutes = Math.floor(\n (timeRemainingTotalSeconds - remainingHours * 3600) / 60\n );\n var remainingSeconds =\n timeRemainingTotalSeconds -\n remainingHours * 3600 -\n remainingMinutes * 60;\n\n timeRemaining =\n (remainingMinutes < 10 ? \"0\" + remainingMinutes : remainingMinutes) +\n \":\" +\n (remainingSeconds < 10 ? \"0\" + remainingSeconds : remainingSeconds);\n\n if (remainingHours > 0) {\n timeRemaining = remainingHours + \":\" + timeRemaining;\n }\n }\n\n return timeRemaining;\n }\n\n /**\n * Returns the publically facing methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n})();\n\nexport default DurationCountDownTimeElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/time/durationCountDownTimeElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../../config.js\";\n\n/**\n * Handles all of the duration hours elements.\n *\n * @module visual/time/DurationHourElements.\n */\nlet DurationHourElements = (function() {\n /**\n * Sync the duration hours elements.\n *\n * @param {Integer} hours - The duration hours for the audio.\n */\n function sync(hours) {\n syncGlobal(hours);\n syncPlaylist(hours);\n syncSong(hours);\n syncSongInPlaylist(hours);\n }\n\n /**\n * Syncs the global duration hours elements.\n *\n * @param {Integer} hours - the duration hours for the audio.\n */\n function syncGlobal(hours) {\n let durationHourSelectors = document.querySelectorAll(\n \".amplitude-duration-hours\"\n );\n\n for (let i = 0; i < durationHourSelectors.length; i++) {\n let playlist = durationHourSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let songIndex = durationHourSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (playlist == null && songIndex == null) {\n durationHourSelectors[i].innerHTML = hours;\n }\n }\n }\n\n /**\n * Syncs the playlist duration hours for the audio.\n *\n * @param {Integer} hours - The duration hours for the audio.\n */\n function syncPlaylist(hours) {\n let durationHourSelectors = document.querySelectorAll(\n '.amplitude-duration-hours[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n );\n\n for (let i = 0; i < durationHourSelectors.length; i++) {\n let songIndex = durationHourSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (songIndex == null) {\n durationHourSelectors[i].innerHTML = hours;\n }\n }\n }\n\n /**\n * Syncs the song duration hours.\n *\n * @param {Integer} hours - The duration hours for the audio.\n */\n function syncSong(hours) {\n if (config.active_playlist == null) {\n let durationHourSelectors = document.querySelectorAll(\n '.amplitude-duration-hours[data-amplitude-song-index=\"' +\n config.active_index +\n '\"]'\n );\n\n for (let i = 0; i < durationHourSelectors.length; i++) {\n let playlist = durationHourSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n\n if (playlist == null) {\n durationHourSelectors[i].innerHTML = hours;\n }\n }\n }\n }\n\n /**\n * Syncs the song in playlist duration hours.\n *\n * @param {Integer} hours - The duration hours of the audio.\n */\n function syncSongInPlaylist(hours) {\n let activePlaylistIndex =\n config.active_playlist != \"\" && config.active_playlist != null\n ? config.playlists[config.active_playlist].active_index\n : null;\n\n let durationHourSelectors = document.querySelectorAll(\n '.amplitude-duration-hours[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"][data-amplitude-song-index=\"' +\n activePlaylistIndex +\n '\"]'\n );\n\n for (let i = 0; i < durationHourSelectors.length; i++) {\n durationHourSelectors[i].innerHTML = hours;\n }\n }\n\n /**\n * Resets the duration shours elements to '00'\n */\n function resetTimes() {\n let durationHourSelectors = document.querySelectorAll(\n \".amplitude-duration-hours\"\n );\n\n for (let i = 0; i < durationHourSelectors.length; i++) {\n durationHourSelectors[i].innerHTML = \"00\";\n }\n }\n\n /**\n * Returns the publically facing methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n})();\n\nexport default DurationHourElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/time/durationHourElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../../config.js\";\n\n/**\n * Handles all of the duration minutes elements.\n *\n * @module visual/time/DurationMinuteElements.\n */\nlet DurationMinuteElements = (function() {\n /**\n * Sync the duration minutes elements.\n *\n * @param {Integer} minutes - The duration minutes for the audio.\n */\n function sync(minutes) {\n syncGlobal(minutes);\n syncPlaylist(minutes);\n syncSong(minutes);\n syncSongInPlaylist(minutes);\n }\n\n /**\n * Syncs the global duration minutes elements.\n *\n * @param {Integer} minutes - the duration minutes for the audio.\n */\n function syncGlobal(minutes) {\n let durationMinuteSelectors = document.querySelectorAll(\n \".amplitude-duration-minutes\"\n );\n\n for (let i = 0; i < durationMinuteSelectors.length; i++) {\n let playlist = durationMinuteSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let songIndex = durationMinuteSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (playlist == null && songIndex == null) {\n durationMinuteSelectors[i].innerHTML = minutes;\n }\n }\n }\n\n /**\n * Syncs the playlist duration minutes for the audio.\n *\n * @param {Integer} minutes - The duration minutes for the audio.\n */\n function syncPlaylist(minutes) {\n let durationMinuteSelectors = document.querySelectorAll(\n '.amplitude-duration-minutes[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n );\n\n for (let i = 0; i < durationMinuteSelectors.length; i++) {\n let songIndex = durationMinuteSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (songIndex == null) {\n durationMinuteSelectors[i].innerHTML = minutes;\n }\n }\n }\n\n /**\n * Syncs the song duration minutes.\n *\n * @param {Integer} minutes - The duration minutes for the audio.\n */\n function syncSong(minutes) {\n if (config.active_playlist == null) {\n let durationMinuteSelectors = document.querySelectorAll(\n '.amplitude-duration-minutes[data-amplitude-song-index=\"' +\n config.active_index +\n '\"]'\n );\n\n for (let i = 0; i < durationMinuteSelectors.length; i++) {\n let playlist = durationMinuteSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n\n if (playlist == null) {\n durationMinuteSelectors[i].innerHTML = minutes;\n }\n }\n }\n }\n\n /**\n * Syncs the song in playlist duration minutes.\n *\n * @param {Integer} minutes - The duration minutes of the audio.\n */\n function syncSongInPlaylist(minutes) {\n let activePlaylistIndex =\n config.active_playlist != \"\" && config.active_playlist != null\n ? config.playlists[config.active_playlist].active_index\n : null;\n\n let durationMinuteSelectors = document.querySelectorAll(\n '.amplitude-duration-minutes[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"][data-amplitude-song-index=\"' +\n activePlaylistIndex +\n '\"]'\n );\n\n for (let i = 0; i < durationMinuteSelectors.length; i++) {\n durationMinuteSelectors[i].innerHTML = minutes;\n }\n }\n\n /**\n * Resets the duration minutes elements to '00'\n */\n function resetTimes() {\n let durationMinuteSelectors = document.querySelectorAll(\n \".amplitude-duration-minutes\"\n );\n\n for (let i = 0; i < durationMinuteSelectors.length; i++) {\n durationMinuteSelectors[i].innerHTML = \"00\";\n }\n }\n\n /**\n * Returns the publically facing methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n})();\n\nexport default DurationMinuteElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/time/durationMinuteElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../../config.js\";\n\n/**\n * Handles all of the duration seconds elements.\n *\n * @module visual/time/DurationSecondElements.\n */\nlet DurationSecondElements = (function() {\n /**\n * Sync the duration seconds elements.\n *\n * @param {Integer} seconds - The duration seconds for the audio.\n */\n function sync(seconds) {\n syncGlobal(seconds);\n syncPlaylist(seconds);\n syncSong(seconds);\n syncSongInPlaylist(seconds);\n }\n\n /**\n * Syncs the global duration seconds elements.\n *\n * @param {Integer} seconds - the duration seconds for the audio.\n */\n function syncGlobal(seconds) {\n let durationSecondSelectors = document.querySelectorAll(\n \".amplitude-duration-seconds\"\n );\n\n for (let i = 0; i < durationSecondSelectors.length; i++) {\n let playlist = durationSecondSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let songIndex = durationSecondSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (playlist == null && songIndex == null) {\n durationSecondSelectors[i].innerHTML = seconds;\n }\n }\n }\n\n /**\n * Syncs the playlist duration seconds for the audio.\n *\n * @param {Integer} seconds - The duration seconds for the audio.\n */\n function syncPlaylist(seconds) {\n let durationSecondSelectors = document.querySelectorAll(\n '.amplitude-duration-seconds[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n );\n\n for (let i = 0; i < durationSecondSelectors.length; i++) {\n let songIndex = durationSecondSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (songIndex == null) {\n durationSecondSelectors[i].innerHTML = seconds;\n }\n }\n }\n\n /**\n * Syncs the song duration seconds.\n *\n * @param {Integer} seconds - The duration seconds for the audio.\n */\n function syncSong(seconds) {\n if (config.active_playlist == null) {\n let durationSecondSelectors = document.querySelectorAll(\n '.amplitude-duration-seconds[data-amplitude-song-index=\"' +\n config.active_index +\n '\"]'\n );\n\n for (let i = 0; i < durationSecondSelectors.length; i++) {\n let playlist = durationSecondSelectors[i].getAttribute(\n \"data--amplitude-playlist\"\n );\n\n if (playlist == null) {\n durationSecondSelectors[i].innerHTML = seconds;\n }\n }\n }\n }\n\n /**\n * Syncs the song in playlist duration seconds.\n *\n * @param {Integer} seconds - The duration seconds of the audio.\n */\n function syncSongInPlaylist(seconds) {\n let activePlaylistIndex =\n config.active_playlist != \"\" && config.active_playlist != null\n ? config.playlists[config.active_playlist].active_index\n : null;\n\n let durationSecondSelectors = document.querySelectorAll(\n '.amplitude-duration-seconds[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"][data-amplitude-song-index=\"' +\n activePlaylistIndex +\n '\"]'\n );\n\n for (let i = 0; i < durationSecondSelectors.length; i++) {\n durationSecondSelectors[i].innerHTML = seconds;\n }\n }\n\n /**\n * Resets the duration seconds elements to '00'\n */\n function resetTimes() {\n let durationSecondSelectors = document.querySelectorAll(\n \".amplitude-duration-seconds\"\n );\n\n for (let i = 0; i < durationSecondSelectors.length; i++) {\n durationSecondSelectors[i].innerHTML = \"00\";\n }\n }\n\n /**\n * Returns the publically facing methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n})();\n\nexport default DurationSecondElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/time/durationSecondElements.js","/**\n * Imports the config module\n * @module config\n */\nimport config from \"../../config.js\";\n\n/**\n * Handles all of the duration time elements.\n *\n * @module visual/time/DurationTimeElements.\n */\nlet DurationTimeElements = (function() {\n /**\n * Syncs the duration time for all elements.\n *\n * @param {Object} durationTime - The object containing all of the song duration times.\n */\n function sync(durationTime) {\n let durationText = computeDurationText(durationTime);\n\n syncGlobal(durationText);\n syncPlaylist(durationText);\n syncSong(durationText);\n syncSongInPlaylist(durationText);\n }\n\n /**\n * Sync the global song duration elements.\n *\n * @param {Object} durationText - The text for the song duration.\n */\n function syncGlobal(durationText) {\n let durationTimeSelectors = document.querySelectorAll(\n \".amplitude-duration-time\"\n );\n\n for (let i = 0; i < durationTimeSelectors.length; i++) {\n let playlist = durationTimeSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n let songIndex = durationTimeSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (playlist == null && songIndex == null) {\n durationTimeSelectors[i].innerHTML = durationText;\n }\n }\n }\n\n /**\n * Sync the playlist duration times.\n *\n * @param {Object} durationText - The text for the song duration.\n */\n function syncPlaylist(durationText) {\n let durationTimeSelectors = document.querySelectorAll(\n '.amplitude-duration-time[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"]'\n );\n\n for (let i = 0; i < durationTimeSelectors.length; i++) {\n let songIndex = durationTimeSelectors[i].getAttribute(\n \"data-amplitude-song-index\"\n );\n\n if (songIndex == null) {\n durationTimeSelectors[i].innerHTML = durationText;\n }\n }\n }\n\n /**\n * Sync the song duration times.\n *\n * @param {Object} durationText - The text for the song duration.\n */\n function syncSong(durationText) {\n if (config.active_playlist == null) {\n let durationTimeSelectors = document.querySelectorAll(\n '.amplitude-duration-time[data-amplitude-song-index=\"' +\n config.active_index +\n '\"]'\n );\n\n for (let i = 0; i < durationTimeSelectors.length; i++) {\n let playlist = durationTimeSelectors[i].getAttribute(\n \"data-amplitude-playlist\"\n );\n\n if (playlist == null) {\n durationTimeSelectors[i].innerHTML = durationText;\n }\n }\n }\n }\n\n /**\n * Sync the song in playlist duration times.\n *\n * @param {Object} durationText - An object containing the duration text.\n */\n function syncSongInPlaylist(durationText) {\n let activePlaylistIndex =\n config.active_playlist != \"\" && config.active_playlist != null\n ? config.playlists[config.active_playlist].active_index\n : null;\n\n let durationTimeSelectors = document.querySelectorAll(\n '.amplitude-duration-time[data-amplitude-playlist=\"' +\n config.active_playlist +\n '\"][data-amplitude-song-index=\"' +\n activePlaylistIndex +\n '\"]'\n );\n\n for (let i = 0; i < durationTimeSelectors.length; i++) {\n durationTimeSelectors[i].innerHTML = durationText;\n }\n }\n\n /**\n * Resets all of the duration times to empty.\n */\n function resetTimes() {\n let durationTimeSelectors = document.querySelectorAll(\n \".amplitude-duration-time\"\n );\n\n for (let i = 0; i < durationTimeSelectors.length; i++) {\n durationTimeSelectors[i].innerHTML = \"00:00\";\n }\n }\n\n /**\n * Computes the duration text\n *\n * @param {Object} durationTime - An object containint the duration times.\n */\n function computeDurationText(durationTime) {\n var durationText = \"00:00\";\n\n if (!isNaN(durationTime.minutes) && !isNaN(durationTime.seconds)) {\n durationText = durationTime.minutes + \":\" + durationTime.seconds;\n if (!isNaN(durationTime.hours) && durationTime.hours > 0) {\n durationText = durationTime.hours + \":\" + durationText;\n }\n }\n\n return durationText;\n }\n\n /**\n * Return publically accessible methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n})();\n\nexport default DurationTimeElements;\n\n\n\n// WEBPACK FOOTER //\n// ./src/visual/time/durationTimeElements.js","module.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\"}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./package.json\n// module id = 59\n// module chunks = 0 1"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"amplitude.js","sources":["../src/config.js","../src/services/Debug.js","../src/services/ConfigState.js","../src/services/Callbacks.js","../src/core/Audio.js","../src/elements/PlayPauseElements/GlobalPlayPauseElement.js","../src/services/Collections/Checks.js","../src/elements/PlayPauseElements/CollectionPlayPauseElement.js","../src/services/Audio/Checks.js","../src/elements/MetaDataElement.js","../src/elements/ContainerElements/AudioContainerElement.js","../src/elements/ContainerElements/CollectionAudioContainerElement.js","../src/elements/ContainerElement.js","../src/services/Audio/Navigation.js","../src/elements/PlayPauseElements/AudioPlayPauseElement.js","../src/elements/PlayPauseElements/CollectionAudioPlayPauseElement.js","../src/elements/PlayPauseElement.js","../src/services/Collections/Navigation.js","../src/events/AudioEndedEvent.js","../src/events/KeyBindingEvents.js","../src/elements/BufferedProgressElements/GlobalBufferedProgressElement.js","../src/elements/BufferedProgressElements/CollectionBufferedProgressElement.js","../src/elements/BufferedProgressElements/AudioBufferedProgressElement.js","../src/elements/BufferedProgressElement.js","../src/elements/ProgressElements/GlobalProgressElement.js","../src/elements/ProgressElements/CollectionProgressElement.js","../src/elements/ProgressElements/AudioProgressElement.js","../src/elements/ProgressElements/CollectionAudioProgressElement.js","../src/elements/ProgressElement.js","../src/services/Time.js","../src/elements/TimeElements/CurrentTime/GlobalCurrentTimeElement.js","../src/elements/TimeElements/CurrentTime/CollectionCurrentTimeElement.js","../src/elements/TimeElements/CurrentTime/AudioCurrentTimeElement.js","../src/elements/TimeElements/CurrentTime/CollectionAudioCurrentTimeElement.js","../src/elements/TimeElement.js","../src/elements/TrackerElements/GlobalTrackerElement.js","../src/elements/TrackerElements/CollectionTrackerElement.js","../src/elements/TrackerElements/AudioTrackerElement.js","../src/elements/TrackerElements/CollectionAudioTrackerElement.js","../src/elements/TrackerElement.js","../src/events/TimeUpdateEvent.js","../src/services/EventManager.js","../src/elements/NextElements/CollectionNextElement.js","../src/elements/NextElements/GlobalNextElement.js","../src/elements/NextElement.js","../src/elements/VolumeSliderElement.js","../src/elements/MuteElement.js","../src/elements/PauseElements/GlobalPauseElement.js","../src/elements/PauseElements/CollectionPauseElement.js","../src/elements/PauseElements/AudioPauseElement.js","../src/elements/PauseElements/CollectionAudioPauseElement.js","../src/elements/PauseElement.js","../src/elements/PlayElements/GlobalPlayElement.js","../src/elements/PlayElements/CollectionPlayElement.js","../src/elements/PlayElements/AudioPlayElement.js","../src/elements/PlayElements/CollectionAudioPlayElement.js","../src/elements/PlayElement.js","../src/elements/PlaybackSpeedElement.js","../src/elements/PreviousElements/CollectionPreviousElement.js","../src/elements/PreviousElements/GlobalPreviousElement.js","../src/elements/PreviousElement.js","../src/services/Collections/Shuffle.js","../src/elements/ShuffleElements/CollectionShuffleElement.js","../src/elements/ShuffleElements/GlobalShuffleElement.js","../src/elements/ShuffleElement.js","../src/elements/SkipToElements/AudioSkipToElement.js","../src/elements/SkipToElements/CollectionAudioSkipToElement.js","../src/elements/SkipToElement.js","../src/elements/StopElement.js","../src/elements/VolumeDownElement.js","../src/elements/VolumeUpElement.js","../src/services/ElementsManager.js","../src/init/Collections.js","../src/init/UserConfig.js","../src/init/Initializer.js","../src/methods/init.js","../src/methods/config.js","../src/methods/playlists.js","../src/methods/eventListeners.js","../src/index.js"],"sourcesContent":["/**\n * These variables make Amplitude run. The config is the most important\n * containing active settings and parameters.\n *\n * The config JSON is the global settings for ALL of Amplitude functions.\n * This is global and contains all of the user preferences. The default\n * settings are set, and the user overwrites them when they initialize\n * Amplitude.\n */\nimport version from \"../package.json\";\n\nexport const config = {\n\t// Amplitude State Variables\n\taudio_element: new Audio(),\n\tmobile: false,\n\tversion: version,\n\n\t// Amplitude Dynamic Variables\n\tactive_metadata: {},\n\tactive_album: \"\",\n\tactive_index: 0,\n\n\tactive_podcast: null,\n\tactive_playlist: null,\n\tactive_collection: null,\n\n\tplayback_speed: 1.0,\n\trepeat: false,\n\tshuffle_list: {},\n\t/**\n\t * @todo BREAKING should be repeat_audio\n\t */\n\t// repeat_song: false,\n\trepeat_audio: false,\n\tshuffle_on: false,\n\n\t// User Definable Variables\n\tcallbacks: [],\n\t\n\taudio: [],\n\n\tcollections: [],\n\n\tdebug: true,\n\tdefault_artwork: \"\",\n\tdefault_playlist_art: \"\",\n\n\tstart_audio: \"\",\n\n\tstarting_playlist: \"\",\n\tstarting_playlist_song: \"\",\n\n\tstarting_podcast: \"\",\n\tstarting_podcast_episode: \"\",\n\n\t/**\n\t * @todo BREAKING CHANGE\n\t */\n\tvolume: {\n\t\tcurrent: 50,\n\t\tincrement: 5,\n\t\tdecrement: 5,\n\t\tpre_mute_level: 50\n\t},\n\t// volume: 0.5,\n\n\t// pre_mute_volume: 0.5,\n\n\t// volume_increment: 5,\n\n\t// volume_decrement: 5,\n\n\t/**\n\t * @todo BREAKING CHANGE\n\t */\n\tsoundcloud: {\n\t\tclient: '',\n\t\tuse_art: false,\n\t\taudio_count: 0,\n\t\tready_count: 0\n\t},\n\t// soundcloud_client: \"\",\n\n\t// soundcloud_use_art: false,\n\n\t// soundcloud_song_count: 0,\n\n\t// soundcloud_songs_ready: 0,\n\n\tis_touch_moving: false,\n\n\tbuffered: 0,\n\n\tbindings: {},\n\n\tcontinue_next: true,\n\n\tdelay: 0,\n\n\tplayer_state: \"stopped\",\n\n\ttime_format: 'MM:SS',\n\n\t/**\n\t * @todo BREAKING\n\t */\n\tweb_audio_api:{\n\t\tavailabile: false,\n\t\tcontext: null,\n\t\tsource: null,\n\t\tanalyser: null\n\t},\n\t// web_audio_api_available: false,\n\n\t// context: null,\n\n\t// source: null,\n\n\t// analyser: null,\n\n\tvisualizations: {\n\t\tavailable: [],\n\n\t\tactive: [],\n\n\t\tbackup: \"\"\n\t},\n\t\n\twaveforms: {\n\tsample_rate: 100,\n\n\tbuilt: [],\n\n\t}\n};\n","import { config } from \"@/config.js\";\n\nexport class Debug{\n\tstatic writeMessage( message ){\n\t\tif( config.debug ){\n\t\t\tconsole.log( message );\n\t\t}\n\t}\n}","import { config } from '@/config.js';\n\n\n\nexport class ConfigState{\n\tsetIsMobile(){\n\t\tif ( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ) ) {\n\t\t\tconfig.mobile = true;\n\t\t}else{\n\t\t\tconfig.mobile = false;\n\t\t}\n\t}\n\n\tstatic isIos(){\n\t\treturn /iPhone|iPad|iPod/i.test( navigator.userAgent );\n\t}\n\n\tstatic isIE(){\n\t\tlet ua = window.navigator.userAgent;\n\t\tlet msie = ua.indexOf(\"MSIE \");\n\n\t\treturn ( msie > 0 || !!navigator.userAgent.match(/Trident.*rv\\:11\\./) );\n\t}\n\n\tstatic isMobile(){\n\t\treturn config.mobile;\n\t}\n\n\tstatic isTouchMoving(){\n\t\treturn config.is_touch_moving;\n\t}\n\n\tstatic getAudioState(){\n\t\treturn config.audio_element.paused ? \"paused\" : \"playing\";\n\t}\n\n\tstatic getScope(){\n\t\tif( config.active_collection == '' || config.active_collection == null ){\n\t\t\treturn 'audio';\n\t\t}else{\n\t\t\treturn 'collection';\n\t\t}\n\t}\n\n\tstatic getVolume(){\n\t\treturn config.volume.current;\n\t}\n\n\tstatic getVolumeIncrement(){\n\t\treturn config.volume.increment;\n\t}\n\n\tstatic getVolumeDecrement(){\n\t\treturn config.volume.decrement;\n\t}\n\n\tstatic getPreMuteVolume(){\n\t\treturn config.volume.pre_mute_level;\n\t}\n\n\tstatic setPreMuteVolume( level = null ){\n\t\tif( !level ){\n\t\t\tlevel = config.volume.current;\n\t\t}\n\n\t\tconfig.volume.pre_mute_level = level;\n\t}\n\n\tstatic getPlaybackSpeed(){\n\t\treturn config.playback_speed;\n\t}\n\n\tstatic isCollectionShuffled( collection ){\n\t\tif( config.collections[ collection ] && config.collections[ collection ].shuffled ){\n\t\t\treturn true;\n\t\t}else{ \n\t\t\treturn false;\n\t\t}\n\t}\n\n\tstatic setCollectionShuffled( collection, shuffled, audio ){\n\t\tconfig.collections[ collection ].shuffled = shuffled;\n\t\tconfig.collections[ collection ].audio = audio;\n\t}\n\n\tstatic getCollectionAudio( collection ){\n\t\treturn config.collections[ collection ].audio;\n\t}\n\n\tstatic getActiveCollection(){\n\t\treturn config.active_collection;\n\t}\n\n\tstatic getActiveAudioIndex(){\n\t\treturn config.active_index;\n\t}\n\n\tstatic getContinueNext(){\n\t\treturn config.continue_next;\n\t}\n\n\tstatic updateBufferedTime(){\n\t\t// Help from: http://jsbin.com/badimipi/1/edit?html,js,output\n if( config.audio_element.buffered.length - 1 >= 0 ){\n let bufferedEnd = config.audio_element.buffered.end(\n config.audio_element.buffered.length - 1\n );\n\n let duration = config.audio_element.duration;\n\n config.buffered = ( bufferedEnd / duration ) * 100;\n }\n\t}\n\n\tstatic getBufferedPercentage(){\n\t\treturn parseFloat( config.buffered ) / 100;\n\t}\n\n\tstatic isLive(){\n\t\treturn config.active_metadata.live;\n\t}\n\n\tstatic getTimeFormat(){\n\t\treturn config.time_format;\n\t}\n\n\tstatic getCallback( name ){\n\t\tlet callbackObject = false;\n\n\t\tconfig.callbacks.forEach( function( callback ){\n\t\t\tif( callback.event == name ){\n\t\t\t\tcallbackObject = callback\n\t\t\t}\n\t\t});\n\n\t\treturn callbackObject;\n\t}\n\n\tresetConfig(){\n\t\tconfig.audio_element = new Audio();\n\t\tconfig.active_metadata = {};\n\t\tconfig.active_album = \"\";\n\t\tconfig.active_index = 0;\n\t\tconfig.active_playlist = null;\n\t\tconfig.playback_speed = 1.0;\n\t\tconfig.audio = [];\n\t\tconfig.playlists = {};\n\t\tconfig.start_audio = \"\";\n\t\tconfig.starting_playlist = \"\";\n\t\tconfig.starting_playlist_song = \"\";\n\t\tconfig.repeat = false;\n\t\tconfig.shuffle_list = {};\n\t\tconfig.shuffle_on = false;\n\t\tconfig.default_artwork = \"\";\n\t\tconfig.default_playlist_art = \"\";\n\t\tconfig.debug = true;\n\t\tconfig.callbacks = [];\n\n\t\tconfig.volume = {\n\t\t\tcurrent: 50,\n\t\t\tincrement: 5,\n\t\t\tdecrement: 5,\n\t\t\tpre_mute_level: 50\n\t\t},\n\n\t\tconfig.soundcloud = {\n\t\t\tclient: '',\n\t\t\tuse_art: false,\n\t\t\taudio_count: 0,\n\t\t\tready_count: 0\n\t\t},\n\n\t\t/**\n\t\t * @todo BREAKING CHANGE\n\t\t */\n\t\t// config.soundcloud_client = \"\";\n\t\t// config.soundcloud_use_art = false;\n\t\t// config.soundcloud_song_count = 0;\n\t\t// config.soundcloud_songs_ready = 0;\n\t\tconfig.continue_next = true;\n\n\t\t/**\n\t\t * @todo rebind event handlers\n\t\t */\n\t\t\n\t}\n\n\n\tstatic setPlayerState(){\n\t\t// If paused and the current time is 0 the player is stopped.\n\t\tif (config.audio_element.paused && config.audio_element.currentTime == 0) {\n\t\t\tconfig.player_state = \"stopped\";\n\t\t}\n \n\t\t// If paused and the current time is greater than 0 the player is paused.\n\t\tif (config.audio_element.paused && config.audio_element.currentTime > 0) {\n\t\t\tconfig.player_state = \"paused\";\n\t\t}\n \n\t\t// If playing, the current state is playing.\n\t\tif (!config.audio_element.paused) {\n\t\t\tconfig.player_state = \"playing\";\n\t\t}\n\t}\n}","import { config } from \"../config\";\nimport { ConfigState } from \"./ConfigState\";\nimport { Debug } from \"./Debug\";\n\nexport class Callbacks{\n #events = [\n 'abort',\n 'error',\n 'loadeddata',\n 'loadedmetadata',\n 'loadstart',\n 'pause',\n 'playing',\n 'play',\n 'progress',\n 'ratechange',\n 'seeked',\n 'seeking',\n 'stalled',\n 'suspend',\n 'timeupdate',\n 'volumechange',\n 'waiting',\n 'canplay',\n 'canplaythrough',\n 'durationchange',\n 'ended'\n ];\n\n handleNativeAudioElementEvents(){\n this.#events.forEach( function( event ){\n config.audio_element.addEventListener( event, function( ){\n Callbacks.run( event );\n } );\n });\n }\n\n static run( event ){\n let callback = ConfigState.getCallback( event );\n\n if( callback ){\n Debug.writeMessage( \"Running Callback for event '\" + callback.event + \"' with method '\" + callback.handler + \"'\");\n\n try {\n window[callback.handler]();\n } catch ( error ){\n if (error.message == \"CANCEL EVENT\") {\n throw error;\n }else{\n Debug.writeMessage( error.message );\n }\n }\n }\n }\n}","import { Callbacks } from \"@/services/Callbacks.js\";\nimport { config } from \"@/config.js\";\nimport { ConfigState } from '@/services/ConfigState.js'\nimport { Debug } from \"@/services/Debug.js\";\n\nexport class Audio{\n play(){\n this.#startVisualizations();\n this.#reconnectStream();\n this.#playAudio();\n ConfigState.setPlayerState();\n }\n\n pause(){\n this.#stopVisualizations();\n this.#pauseAudio();\n this.#disconnectStream();\n ConfigState.setPlayerState();\n }\n\n stop(){\n this.#stopVisualizations();\n this.setCurrentTime(0);\n this.#pauseAudio();\n this.#disconnectStream();\n ConfigState.setPlayerState();\n Callbacks.run('stop');\n }\n\n skipToLocation(seconds){\n // Cannot skip live streams\n if( !config.active_metadata.live ){\n // We only skip to the location when the audio is loaded enough to play through\n // and skip to a location. This event is unbound after it's fired once.\n config.audio_element.addEventListener(\"canplaythrough\", function(){\n if( config.audio_element.duration >= seconds && seconds > 0 ){\n config.audio_element.currentTime = seconds;\n } else {\n Debug.writeMessage( \"Amplitude can't skip to a location greater than the duration of the audio or less than 0.\")\n }\n }, { once: true } );\n }\n }\n\n /**\n * \n * @param {number} volumeLevel - A number between 1 - 100 as percentage of volume.\n */\n setVolume( volumeLevel ){\n this.#setMuted( volumeLevel );\n this.#setAudioVolume( volumeLevel );\n }\n\n setAudioLocation( percentage ){\n if( !config.active_metadata.live ){\n config.audio_element.currentTime = config.audio_element.duration * ( percentage / 100 );\n }\n }\n\n setPlaybackSpeed( playbackSpeed ){\n config.playback_speed = playbackSpeed;\n config.audio_element.playbackRate = config.playback_speed;\n }\n\n #startVisualizations(){\n // Visualizations.stop();\n // Visualizations.run();\n }\n\n #stopVisualizations(){\n // Visualizations.stop();\n }\n\n #reconnectStream(){\n /*\n Mobile remote sources need to be reconnected on play. I think this is\n because mobile browsers are optimized not to load all resources\n for speed reasons. We only do this if mobile and the paused button\n is not clicked. If the pause button was clicked then we don't reconnect\n or the user will lose their place in the stream.\n */ \n if( config.active_metadata.live \n || ( ConfigState.isMobile() && !config.paused ) ){\n config.audio_element.src = config.active_metadata.url;\n config.audio_element.load();\n }\n }\n\n #disconnectStream(){\n if( config.active_metadata.live ){\n config.audio_element.src = \"\";\n config.audio_element.load();\n }\n }\n\n #playAudio(){\n let playPromise = config.audio_element.play();\n\n if( playPromise !== undefined ){\n playPromise.then(_ => {}).catch(error => {});\n }\n\n config.audio_element.playbackRate = config.playback_speed;\n }\n\n #pauseAudio(){\n config.audio_element.pause();\n config.paused = true;\n }\n\n setCurrentTime( seconds ){\n if ( isFinite( seconds ) ) {\n config.audio_element.currentTime = seconds;\n }\n }\n\n #setMuted( volumeLevel ){\n if( volumeLevel == 0 ){\n config.audio_element.muted = true;\n }else{\n config.audio_element.muted = false;\n }\n }\n\n #setAudioVolume( volumeLevel ){\n config.volume.current = volumeLevel;\n config.audio_element.volume = ( volumeLevel / 100 );\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class GlobalPlayPauseElement{\n static globalPlayPauseQuery = '.amplitude-play-pause:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n \n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements()\n this.#bindInteractions()\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalPlayPauseElement.globalPlayPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction );\n }\n } );\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n\n if( config.audio_element.paused ){\n audio.play();\n }else{\n audio.pause();\n }\n\n PlayPauseElement.syncAll();\n }\n }\n\n static syncUI(){\n let state = ConfigState.getAudioState();\n let elements = document.querySelectorAll( GlobalPlayPauseElement.globalPlayPauseQuery );\n\n elements.forEach( ( element ) => {\n if( state == 'playing' ){\n PlayPauseElement.setElementPlay( element );\n }else{\n PlayPauseElement.setElementPause( element );\n }\n })\n }\n\n static syncToPause(){\n let elements = document.querySelectorAll( GlobalPlayPauseElement.globalPlayPauseQuery );\n\n elements.forEach( (element) => {\n PlayPauseElement.setElementPause( element );\n });\n }\n}","import { config } from \"@/config\";\n\nexport class Checks {\n static collectionExists( key ){\n\t\tif( config.collections[ key ] ){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tstatic collectionChanged( collection ){\n\t\tif (config.active_collection != collection) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tstatic isCollectionShuffled( collection ){\n if( config.collections[ collection ].shuffle ){\n return true;\n }else{\n return false;\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { Checks as CollectionChecks } from \"@/services/Collections/Checks\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation\";\nimport { Debug } from \"@/services/Debug\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\n/**\n * A Collection Play Pause element is defined by the following:\n * \n * Element: class=\"amplitude-play-pause\" data-amplitude-collection-key=\"{collection_key}\"\n */\nexport class CollectionPlayPauseElement {\n static collectionPlayPauseQuery = '.amplitude-play-pause[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements()\n this.#bindInteractions()\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionPlayPauseElement.collectionPlayPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {;\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n } );\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){\n let collection = element.getAttribute('data-amplitude-collection-key');\n\n if( !CollectionChecks.collectionExists( collection ) ){\n Debug.writeMessage('Collection with key \"'+collection+'\" does not exist! Please define this collection in your configuration.');\n return false;\n }\n\n this.#handleCollectionChanges( collection );\n this.#toggleAudio();\n\n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( collection ){\n if( CollectionChecks.collectionChanged( collection ) ){\n \n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.setActiveCollection( collection );\n\n // If the collection is shuffled and the collection is changed,\n // we change the audio to be the first audio in the array. Since,\n // we are changing the collection, we are starting at the top.\n if( CollectionChecks.isCollectionShuffled( collection ) ){\n collectionNavigation.changeAudioCollection(\n collection,\n config.collections[ collection ].shuffle_list[0],\n 0,\n true\n );\n }else{\n collectionNavigation.changeAudioCollection(\n collection,\n config.collections[ collection ].audio[0],\n 0\n );\n }\n }\n }\n\n #toggleAudio(){\n let audio = new Audio();\n\n if( config.audio_element.paused ){\n audio.play();\n }else{\n audio.pause();\n }\n }\n\n static syncUI(){\n let state = ConfigState.getAudioState();\n let elements = document.querySelectorAll( CollectionPlayPauseElement.collectionPlayPauseQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n\n if( state == 'playing' && ( activeCollectionKey == elementCollectionKey ) ){\n PlayPauseElement.setElementPlay( element );\n }else{\n PlayPauseElement.setElementPause( element );\n }\n })\n }\n\n static syncToPause(){\n let elements = document.querySelectorAll( CollectionPlayPauseElement.collectionPlayPauseQuery );\n\n elements.forEach( (element) => {\n PlayPauseElement.setElementPause( element );\n });\n }\n}","import { config } from \"@/config\";\n\nexport class Checks {\n static audioExists( index ){\n if( config.audio[ index ] ){\n return true;\n }else{\n return false;\n }\n }\n\n static audioChanged( audioIndex, collectionKey = null ){\n\t\tif( config.active_collection != collectionKey ){\n\t\t\treturn true;\n\t\t}else{\n\t\t\tif( config.active_collection == null && collectionKey == null ){\n\t\t\t\tif( config.active_index != audioIndex ){\n\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif( config.active_collection == collection && \n\t\t\t\t\tconfig.collections[ collectionKey ].active_index != audioIndex ){\n\t\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}","import { config } from \"@/config\";\n\nexport class MetaDataElement {\n static globalMetaDataElementsQuery = '[data-amplitude-audio-info]:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n static collectionMetaDataElementsQuery = '[data-amplitude-audio-info][data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n static audioMetaDataElementsQuery = '[data-amplitude-audio-info][data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n static collectionAudioMetaDataElementsQuery = '[data-amplitude-audio-info][data-amplitude-audio-index][data-amplitude-collection-key]';\n static collectionInfoElementsQuery = '[data-amplitude-collection-info]';\n\n #imageMetaDataKeys = [\n \"cover_art_url\",\n \"station_art_url\",\n \"podcast_episode_cover_art_url\",\n \"album_art_url\"\n ]\n\n /**\n * Gets called after audio has been changed. Updates all of the global\n * elements and collection elements, not the individual audio elements.\n * Individual audio elements should only be dynamically set once and not again\n * since they never change.\n * \n * Examples:\n * Update - Global cover art for a song.\n * Update - Playlist now playing cover art.\n * Update - Podcast now playing cover art.\n * Do Not Update - Individual audio element. These will be set with syncMetaData()\n * and won't need to be updated again.\n */\n displayMetaData(){\n this.#displayGlobalMetaElements();\n this.#displayCollectionMetaElements();\n }\n\n #displayGlobalMetaElements(){\n let globalAudioInfoElements = document.querySelectorAll( MetaDataElement.globalMetaDataElementsQuery );\n\n globalAudioInfoElements.forEach( ( element ) => {\n let key = element.getAttribute('data-amplitude-audio-info');\n let value = ( config.active_metadata[ key ] != undefined ) ? config.active_metadata[ key ] : null;\n\n this.#setMetaValue( key, value, element );\n });\n }\n\n #displayCollectionMetaElements(){\n let collectionInfoElements = document.querySelectorAll( MetaDataElement.collectionMetaDataElementsQuery );\n\n collectionInfoElements.forEach( ( element ) => {\n let key = element.getAttribute('data-amplitude-audio-info');\n let value = ( config.active_metadata[ key ] != undefined ) ? config.active_metadata[ key ] : null;\n\n this.#setMetaValue( key, value, element );\n });\n }\n \n #displayAudioMetaElements(){\n let audioInfoElements = document.querySelectorAll( MetaDataElement.audioMetaDataElementsQuery );\n\n audioInfoElements.forEach( ( element ) => {\n let key = element.getAttribute('data-amplitude-audio-info');\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n let value = config.audio[ audioIndex ][ key ] != undefined ? config.audio[ audioIndex ][ key ] : null;\n\n this.#setMetaValue( key, value, element );\n });\n }\n\n #displayCollectionAudioMetaElements(){\n let collectionAudioInfoElements = document.querySelectorAll( MetaDataElement.collectionAudioMetaDataElementsQuery );\n\n collectionAudioInfoElements.forEach( ( element ) => {\n let key = element.getAttribute('data-amplitude-audio-info');\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n let collectionKey = element.getAttribute('data-amplitude-collection-key');\n let value = config.collections[ collectionKey ].audio[ audioIndex ][ info ] != undefined\n ? config.collections[ collectionKey ].audio[ audioIndex ][ info ]\n : null;\n\n this.#setMetaValue( key, value, element );\n });\n }\n\n #setMetaValue( key, value, element ){\n if( this.#imageMetaDataKeys.indexOf( key ) >= 0 ){\n value = value || config.default_art;\n element.setAttribute('src', value);\n }else{\n value = value || \"\";\n element.innerHTML = value;\n }\n }\n\n displayCollectionMetaData(){\n\n }\n\n syncMetaData(){\n this.#displayAudioMetaElements();\n this.#displayCollectionAudioMetaElements();\n this.displayCollectionMetaData();\n }\n}","import { config } from \"@/config\";\nimport { ConfigState } from \"@/services/ConfigState\";\n\nexport class AudioContainerElement {\n static audioContainerElementQuery = '.amplitude-audio-container[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n \n #elements;\n #activeIndex;\n\n setActive(){\n if( ConfigState.getScope() == 'audio' ){\n this.#findElements();\n this.#resetElements();\n this.#getActiveIndex();\n this.#setActiveContainerElements();\n }\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioContainerElement.audioContainerElementQuery );\n }\n\n #resetElements(){\n this.#elements.forEach( function( element ){\n element.classList.remove('amplitude-active-audio-container');\n });\n }\n\n #getActiveIndex(){\n this.#activeIndex = config.active_index;\n }\n\n #setActiveContainerElements(){\n let activeContainerElements = document.querySelectorAll('.amplitude-audio-container[data-amplitude-audio-index=\"'+this.#activeIndex+'\"]:not([data-amplitude-collection-key])');\n \n activeContainerElements.forEach( function( element ){\n element.classList.add(\"amplitude-active-audio-container\");\n });\n }\n}","import { config } from \"@/config\";\nimport { ConfigState } from \"@/services/ConfigState\";\n\nexport class CollectionAudioContainerElement {\n static collectionAudioContainerElementQuery = '.amplitude-audio-container[data-amplitude-audio-index][data-amplitude-collection-key]';\n\n #direct;\n #elements;\n #activeIndex;\n #activeCollection;\n\n constructor( direct ){\n this.#direct = direct;\n }\n\n setActive(){\n if( ConfigState.getScope() == 'collection' ){\n this.#findElements();\n this.#resetElements();\n this.#getActiveIndex();\n this.#setActiveContainerElements();\n }\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioContainerElement.collectionAudioContainerElementQuery );\n }\n\n #resetElements(){\n this.#elements.forEach( function( element ){\n element.classList.remove('amplitude-active-audio-container');\n });\n }\n\n #getActiveIndex(){\n this.#activeCollection = ConfigState.getActiveCollection();\n\n if( this.#direct ){\n this.#activeIndex = config.collections[ this.#activeCollection ].active_index;\n }else{\n if( ConfigState.isCollectionShuffled( this.#activeCollection ) ){\n this.#activeIndex = config.collections[ this.#activeCollection ].shuffle_list[\n config.collections[ this.#activeCollection ].active_index\n ].index;\n }else{\n this.#activeIndex = config.collections[ this.#activeCollection ].active_index;\n }\n }\n }\n\n #setActiveContainerElements(){\n let activeContainerElements = document.querySelectorAll('.amplitude-audio-container[data-amplitude-audio-index=\"'+this.#activeIndex+'\"][data-amplitude-collection-key=\"'+this.#activeCollection+'\"]');\n activeContainerElements.forEach( function( element ){\n element.classList.add(\"amplitude-active-audio-container\");\n });\n }\n}","import { AudioContainerElement } from \"./ContainerElements/AudioContainerElement\";\nimport { CollectionAudioContainerElement } from \"./ContainerElements/CollectionAudioContainerElement\";\n\nexport class ContainerElement{\n \n setActiveContainers( direct ){\n this.#setActiveAudioContainers();\n this.#setActiveCollectionAudioContainers( direct );\n }\n\n #setActiveAudioContainers(){\n let audioContainerElements = new AudioContainerElement();\n audioContainerElements.setActive();\n }\n\n #setActiveCollectionAudioContainers( direct ){\n let collectionAudioContainerElements = new CollectionAudioContainerElement( direct );\n collectionAudioContainerElements.setActive();\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { config } from \"@/config\";\nimport { Callbacks } from \"@/services/Callbacks\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { MetaDataElement } from \"@/elements/MetaDataElement\";\nimport { ContainerElement } from \"@/elements/ContainerElement\";\n\nexport class Navigation {\n /**\n * Change audio in the audio array\n *\n * @prop {object} audio - The audio we are changing to.\n * @prop {number} index - The index we are changing to.\n * @prop {boolean} direct - Determines if it was a direct click on the song.\n * We then don't care if shuffle is on or not.\n */\n changeAudio( audio, index, direct = false ){\n this.#prepareAudioChange( audio );\n\n this.#switchAudio(audio, index);\n\n this.#afterAudioChange( direct );\n }\n\n #prepareAudioChange( audio ){\n let coreAudio = new Audio();\n coreAudio.stop();\n\n // Sync elements\n PlayPauseElement.syncAllToPause();\n /**\n * @todo Song Slider Elements -> reset\n * @todo Song Played Progress Elements -> reset\n * @todo Time Elements -> reset \n * ( See src/utilities/audioNavigation.js Line #528)\n */\n /**\n * @todo we don't have album change callback, make note.\n */\n }\n\n #switchAudio( audio, index ){\n config.active_collection = null;\n config.audio_element.src = audio.url;\n config.active_metadata = audio;\n /** \n * @todo We don't have active_album. make note.\n */\n config.active_index = parseInt( index );\n }\n\n #afterAudioChange( direct ){\n this.#updateMetaData();\n\n let containerElements = new ContainerElement();\n containerElements.setActiveContainers( direct );\n\n /**\n * @todo time elements -> reset duration times\n * ( see src/utilities/audioNavigation.js Line #558 )\n */\n Callbacks.run('audio_change');\n }\n\n #updateMetaData(){\n let metaData = new MetaDataElement();\n metaData.displayMetaData();\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { Checks as AudioChecks } from '@/services/Audio/Checks.js';\nimport { Navigation as AudioNavigation } from '@/services/Audio/Navigation.js';\nimport { Checks as CollectionChecks } from '@/services/Collections/Checks.js';\nimport { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js';\nimport { Debug } from \"@/services/Debug\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class AudioPlayPauseElement {\n static audioPlayPauseQuery = '.amplitude-play-pause[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioPlayPauseElement.audioPlayPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n } );\n }\n\n /**\n * There can be multiple collections on the page. There can also be multiple\n * individual audio players and audio players in collections.\n * \n * We first check to see if the audio index exists. This can be a game changer\n * if the user messes up a key.\n * \n * Next, we check to see if the collection has changed. Even though, this class\n * responds to audio that is not a part of a collection, technically the collection\n * changes if the state of the player is in collection mode and we switch out of collection\n * mode.\n * \n * Finally, we check to see if the audio has changed. This means there is more than\n * one audio player on the page and the user has switched to a different player. If the\n * player was in collection mode, this check won't do anything since we change the audio\n * out of collection mode. This only fires if the player is not in collection mode and\n * switches to another audio player not in collection mode.\n * \n * @returns {boolean|null}\n */\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){\n let index = element.getAttribute('data-amplitude-audio-index');\n \n if( !AudioChecks.audioExists( index ) ){\n Debug.writeMessage('Audio with index \"'+index+'\" does not exist! Please add an audio object at this index in your configuration.');\n return false;\n }\n\n this.#handleCollectionChanges( index );\n this.#handleAudioChanges( index );\n this.#toggleAudio();\n \n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( index ){\n if( CollectionChecks.collectionChanged( null ) ){\n let collectionNavigation = new CollectionNavigation();\n let audioNavigation = new AudioNavigation();\n\n collectionNavigation.setActiveCollection( null );\n audioNavigation.changeAudio(\n config.audio[index], index, true\n );\n }\n }\n\n #handleAudioChanges( index ){\n if( AudioChecks.audioChanged( index ) ){\n let audioNavigation = new AudioNavigation();\n\n audioNavigation.changeAudio(\n config.audio[index], index, true\n );\n }\n }\n\n #toggleAudio(){\n let audio = new Audio();\n\n if( config.audio_element.paused ){\n audio.play();\n }else{\n audio.pause();\n }\n }\n\n static syncUI(){\n let state = ConfigState.getAudioState();\n let elements = document.querySelectorAll( AudioPlayPauseElement.audioPlayPauseQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( state == 'playing' && ( activeAudioIndex == elementAudioIndex ) ){\n PlayPauseElement.setElementPlay( element );\n }else{\n PlayPauseElement.setElementPause( element );\n }\n })\n }\n\n static syncToPause(){\n let elements = document.querySelectorAll( AudioPlayPauseElement.audioPlayPauseQuery );\n\n elements.forEach( ( element ) => {\n PlayPauseElement.setElementPause( element );\n });\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { Checks as AudioChecks } from '@/services/Audio/Checks.js';\nimport { Checks as CollectionChecks } from '@/services/Collections/Checks.js';\nimport { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js';\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class CollectionAudioPlayPauseElement {\n static collectionAudioPlayPauseQuery = '.amplitude-play-pause[data-amplitude-audio-index][data-amplitude-collection-key]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioPlayPauseElement.collectionAudioPlayPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n } );\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){\n let collectionKey = element.getAttribute('data-amplitude-collection-key');\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n \n this.#handleCollectionChanges( collectionKey, audioIndex );\n this.#handleAudioChanges( collectionKey, audioIndex );\n this.#toggleAudio();\n\n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( collectionKey, audioIndex ){\n if( CollectionChecks.collectionChanged( collectionKey ) ){\n let collectionNavigation = new CollectionNavigation();\n\n collectionNavigation.setActiveCollection( collectionKey );\n collectionNavigation.changeAudioCollection(\n collectionKey,\n config.collections[ collectionKey ].audio[audioIndex],\n audioIndex,\n true\n );\n }\n }\n\n #handleAudioChanges( collectionKey, audioIndex ){\n if( AudioChecks.audioChanged( audioIndex, collectionKey ) ){\n let collectionNavigation = new CollectionNavigation();\n\n collectionNavigation.changeAudioCollection(\n collectionKey,\n config.collections[ collectionKey ].audio[audioIndex],\n audioIndex,\n true\n );\n }\n }\n\n #toggleAudio(){\n let audio = new Audio();\n\n if( config.audio_element.paused ){\n audio.play();\n }else{\n audio.pause();\n }\n }\n\n static syncUI(){\n let state = ConfigState.getAudioState();\n let elements = document.querySelectorAll( CollectionAudioPlayPauseElement.collectionAudioPlayPauseQuery );\n \n elements.forEach( ( element ) => {\n if( state == 'playing' ){\n PlayPauseElement.setElementPlay( element );\n }else{\n PlayPauseElement.setElementPause( element );\n }\n })\n }\n\n static syncToPause(){\n let elements = document.querySelectorAll( CollectionAudioPlayPauseElement.collectionAudioPlayPauseQuery );\n\n elements.forEach( ( element ) => {\n PlayPauseElement.setElementPause( element );\n });\n }\n}","import { GlobalPlayPauseElement } from \"./PlayPauseElements/GlobalPlayPauseElement\";\nimport { CollectionPlayPauseElement } from \"./PlayPauseElements/CollectionPlayPauseElement\";\nimport { AudioPlayPauseElement } from \"./PlayPauseElements/AudioPlayPauseElement\";\nimport { CollectionAudioPlayPauseElement } from \"./PlayPauseElements/CollectionAudioPlayPauseElement\";\n\n/**\n * Handles the configuration and managing of Play/Pause elements.\n * \n * A Play Pause element is defined as the following:\n * \n * Element: class=\"amplitude-play-pause\"\n * \n * GLOBAL: class=\"amplitude-play-pause\" \n * Controls the entire state of the audio player. Will play or pause whatever is active.\n * \n * COLLECTION: class=\"amplitude-play-pause\" data-amplitude-collection-key=\"{collection_key}\"\n * Scoped to an individual collection. Will only play or pause within the scope of a collection.\n * \n * AUDIO: class=\"amplitude-play-pause\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element. Will only play or pause a specific piece of audio.\n * \n * AUDIO IN COLLECTION: class=\"amplitude-play-pause\" data-amplitude-collection-key=\"{collection_key}\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element within a collection. Will only play or pause a specific piece of audio in a collection.\n */\nexport class PlayPauseElement{\n constructor(){\n\n }\n\n setUp(){\n this.#configureGlobalPlayPauseElement();\n this.#configureCollectionPlayPauseElement();\n this.#configureAudioPlayPauseElement();\n this.#configureCollectionAudioPlayPauseElement();\n }\n\n #configureGlobalPlayPauseElement(){\n let globalPlayPauseElement = new GlobalPlayPauseElement();\n globalPlayPauseElement.initialize();\n }\n\n #configureCollectionPlayPauseElement(){\n let collectionPlayPauseElement = new CollectionPlayPauseElement();\n collectionPlayPauseElement.initialize();\n }\n\n #configureAudioPlayPauseElement(){\n let audioPlayPauseElement = new AudioPlayPauseElement();\n audioPlayPauseElement.initialize();\n }\n\n #configureCollectionAudioPlayPauseElement(){\n let collectionAudioPlayPauseElement = new CollectionAudioPlayPauseElement();\n collectionAudioPlayPauseElement.initialize();\n }\n\n static syncAll(){\n GlobalPlayPauseElement.syncUI();\n CollectionPlayPauseElement.syncUI();\n AudioPlayPauseElement.syncUI();\n CollectionAudioPlayPauseElement.syncUI();\n }\n\n static syncAllToPause(){\n GlobalPlayPauseElement.syncToPause();\n CollectionPlayPauseElement.syncToPause();\n AudioPlayPauseElement.syncToPause();\n CollectionAudioPlayPauseElement.syncToPause();\n }\n\n /**\n * Sets an element to be playing by removing the 'amplitude-paused' class\n * and adding the 'amplitude-playing' class\n *\n * @access public\n * @static\n * @param {element} element - The element getting the playing class added.\n */\n static setElementPlay( element ){\n element.classList.add(\"amplitude-playing\");\n element.classList.remove(\"amplitude-paused\");\n }\n\n /**\n * Sets an element to be paused by adding the 'amplitude-paused' class\n * and removing the 'amplitude-playing' class\n *\n * @access public\n * @static\n * @param {element} element - The element getting the paused class added.\n */\n static setElementPause( element ){\n element.classList.remove(\"amplitude-playing\");\n element.classList.add(\"amplitude-paused\");\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { config } from \"@/config\";\nimport { Callbacks } from \"@/services/Callbacks\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { MetaDataElement } from \"@/elements/MetaDataElement\";\nimport { ContainerElement } from \"@/elements/ContainerElement\";\n\nexport class Navigation {\n /**\n * Sets the next song in a collection.\n * \n * @param {string} collectionKey - The collection to navigate. Defaults to the active collection.\n * @param {boolean} audioEnded - If the audio ended, this is true to take in effect the repeat setting.\n */\n next( collectionKey = null, audioEnded = false ){\n if( !collectionKey ){\n collectionKey = config.active_collection;\n }\n\n let nextAudio = this.#findNextAudio( collectionKey );\n \n this.setActiveCollection( collectionKey );\n this.changeCollectionAudio( collectionKey, nextAudio.audio, nextAudio.index );\n this.#playNextAudio( nextAudio.end, audioEnded )\n \n PlayPauseElement.syncAll();\n Callbacks.run(\"next\");\n\n if( config.repeat_audio ){\n Callbacks.run(\"audio_repeated\");\n }\n }\n\n #findNextAudio( collectionKey ){\n if( config.repeat_audio ){\n return this.#repeatedAudio( collectionKey );\n }else{\n if( config.collections[ collectionKey ].shuffle ){\n return this.#nextShuffledAudio( collectionKey );\n }else{\n return this.#nextCollectionAudio( collectionKey );\n }\n }\n }\n\n #repeatedAudio( collectionKey ){\n let index = config.collections[ collectionKey ].active_index;\n\n return {\n 'index': nextIndex,\n 'audio': config.collections[ collectionKey ].shuffle ?\n config.collections[ collectionKey ].shuffle_list[ index ] :\n config.collections[ collectionKey ].audio[ index ],\n 'end': false\n }\n }\n\n #nextShuffledAudio( collectionKey ){\n let nextIndex = null;\n let endOfList = false;\n\n let activeIndex = config.collections[ collectionKey ].active_index;\n let shuffleCollectionLength = config.collections[ collectionKey ].shuffle_list.length;\n \n if( parseInt( activeIndex + 1 ) < shuffleCollectionLength ){\n nextIndex = parseInt( activeIndex + 1 ); \n }else{\n nextIndex = 0;\n endOfList = true;\n }\n\n return {\n 'index': nextIndex,\n 'audio': config.collections[ collectionKey ].shuffleList[ nextIndex ],\n 'end': endOfList\n }\n }\n\n #nextCollectionAudio( collectionKey ){\n let nextIndex = null;\n let endOfList = false;\n \n let activeIndex = config.collections[ collectionKey ].active_index;\n let collectionLength = config.collections[ collectionKey ].audio.length;\n\n if( parseInt( activeIndex + 1 ) < collectionLength ){\n nextIndex = parseInt( activeIndex + 1 );\n }else{\n nextIndex = 0;\n endOfList = true;\n }\n\n return {\n 'index': nextIndex,\n 'audio': config.collections[ collectionKey ].audio[ nextIndex ],\n 'end': endOfList\n }\n }\n\n #playNextAudio( endOfList, audioEnded ){\n // If it's the end of the collection and we aren't repeating, do nothing.\n if( endOfList && !config.repeat_audio ){\n }else{\n if( !( audioEnded && !config.repeat_audio && endOfList ) ){\n let audio = new Audio();\n audio.play();\n }\n }\n }\n\n previous( collectionKey = null ){\n if( !collectionKey ){\n collectionKey = config.active_collection;\n }\n\n let previousAudio = this.#findPreviousAudio( collectionKey );\n \n this.setActiveCollection( collectionKey );\n this.changeCollectionAudio( collectionKey, previousAudio.audio, previousAudio.index );\n \n let audio = new Audio();\n audio.play();\n \n PlayPauseElement.syncAll();\n Callbacks.run(\"previous\");\n\n if( config.repeat_audio ){\n Callbacks.run(\"audio_repeated\");\n }\n }\n\n #findPreviousAudio(){\n if( config.repeat_audio ){\n return this.#repeatedAudio( collectionKey );\n }else{\n if( config.collections[ collectionKey ].shuffle ){\n return this.#previousShuffledAudio( collectionKey );\n }else{\n return this.#previousCollectionAudio( collectionKey );\n }\n }\n }\n\n #previousShuffledAudio( collectionKey ){\n let previousIndex = null;\n\n let activeIndex = config.collections[ collectionKey ].active_index;\n let shuffleCollectionLength = config.collections[ collectionKey ].shuffle_list.length;\n \n if( parseInt( activeIndex - 1 ) >= 0 ){\n previousIndex = parseInt( activeIndex - 1 );\n }else{\n previousIndex = parseInt( shuffleCollectionLength - 1 );\n }\n\n return {\n 'index': previousIndex,\n 'audio': config.collections[ collectionKey ].shuffleList[ previousIndex ]\n }\n }\n\n #previousCollectionAudio( collectionKey ){\n let previousIndex = null;\n\n let activeIndex = config.collections[ collectionKey ].active_index;\n let collectionLength = config.collections[ collectionKey ].audio.length;\n \n if( parseInt( activeIndex - 1 ) >= 0 ){\n previousIndex = parseInt( activeIndex - 1 );\n }else{\n previousIndex = parseInt( collectionLength - 1 );\n }\n\n return {\n 'index': previousIndex,\n 'audio': config.collections[ collectionKey ].audio[ previousIndex ]\n }\n }\n\n setActiveCollection( collection ){\n if( config.active_collection != collection ){\n Callbacks.run(\"collection_changed\");\n\n config.active_collection = collection;\n\n if( collection != null ){\n config.collections[ collection ].active_index = 0;\n }\n }\n }\n\n /**\n * Handles audio change in a collection\n *\n * @prop {string} collection - The collection we are changing the song on.\n * @prop {object} audio - The audio object we are changing to in the collection.\n * @prop {number} index - The index of the song we are changing to in the collection.\n * @prop {boolean} direct - Determines if it was a direct click on the song. We\n * then don't care if shuffle is on or not\n */\n changeAudioCollection( collection, audio, index, direct ){\n this.#prepareAudioChange( audio );\n\n this.#switchAudio( collection, audio, index );\n\n this.#afterAudioChange( direct );\n }\n\n #prepareAudioChange( audio ){\n Audio.stop();\n\n // Sync elements\n PlayPauseElement.syncAllToPause();\n /**\n * @todo Song Slider Elements -> reset\n * @todo Song Played Progress Elements -> reset\n * @todo Time Elements -> reset \n * ( See src/utilities/audioNavigation.js Line #528)\n */\n /**\n * @todo we don't have album change callback, make note.\n */\n }\n\n #switchAudio( collection, audio, index ){\n config.audio_element = audio.url;\n config.active_metadata = audio;\n /** \n * @todo We don't have active_album. make note.\n */\n config.active_index = null;\n config.collections[collection].active_index = parseInt(index);\n }\n\n #afterAudioChange( direct ){\n this.#updateMetaData();\n\n let containerElements = new ContainerElement();\n containerElements.setActiveContainers( direct );\n \n /**\n\n * @todo time elements -> reset duration times\n * ( see src/utilities/audioNavigation.js Line #558 )\n */\n Callbacks.run('audio_change');\n }\n\n #updateMetaData(){\n let metaData = new MetaDataElement();\n metaData.displayMetaData();\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { config } from '@/config.js';\nimport { ConfigState } from '@/services/ConfigState';\nimport { Navigation } from '@/services/Collections/Navigation';\nimport { PlayPauseElement } from '@/elements/PlayPauseElement';\n\nexport class AudioEndedEvent{\n bind(){\n config.audio_element.removeEventListener( \"ended\", this.#handle );\n config.audio_element.addEventListener( \"ended\", this.#handle.bind(this) );\n }\n\n #handle(){\n setTimeout( function(){\n if( ConfigState.getScope() == 'collection' && ConfigState.getContinueNext() ){\n let navigation = new Navigation();\n navigation.next( ConfigState.getActiveCollection(), true );\n }else{\n let audio = new Audio();\n audio.stop();\n\n PlayPauseElement.syncAll();\n }\n }, config.delay );\n }\n}","export class KeyBindingEvents{\n bind(){\n this.#bindKeyPress();\n }\n\n #bindKeyPress(){\n document.removeEventListener( \"keydown\", this.#handle.bind(this) );\n document.addEventListener( \"keydown\", this.#handle.bind(this) );\n }\n\n #handle( event ){\n if( !this.#isFormFocused() ){\n let key = event.key;\n \n }\n }\n\n #isFormFocused(){\n let activeElement = document.activeElement.tagName.toLowerCase();\n\n let ignoredElements = [\n 'input',\n 'textarea',\n 'select',\n 'checkbox',\n ];\n\n return ignoredElements.indexOf( activeElement ) > -1;\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { config } from '@/config.js';\n\nexport class GlobalBufferedProgressElement{\n static globalBufferedProgressQuery = 'progress.amplitude-buffered-progress:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n\n static syncUI(){\n let elements = document.querySelectorAll( GlobalBufferedProgressElement.globalBufferedProgressQuery );\n\n elements.forEach( function( element ){\n if( !isNaN( config.buffered ) ){\n element.value = parseFloat(\n ConfigState.getBufferedPercentage()\n );\n }\n } );\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { config } from '@/config.js';\n\nexport class CollectionBufferedProgressElement{\n static syncUI(){\n let activeCollection = ConfigState.getActiveCollection();\n let elements = document.querySelectorAll('progress.amplitude-buffered-progress[data-amplitude-collection-key=\"'+activeCollection+'\"]:not([data-amplitude-audio-index])');\n\n elements.forEach( function( element ){\n if( !isNaN( config.buffered ) ){\n element.value = parseFloat(\n ConfigState.getBufferedPercentage()\n );\n }\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { config } from '@/config.js';\n\nexport class AudioBufferedProgressElement{\n static audioBufferedProgressQuery = 'progress.amplitude-buffered-progress[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n static syncUI(){\n let activeIndex = ConfigState.getActiveAudioIndex();\n let elements = document.querySelectorAll('progress.amplitude-buffered-progress[data-amplitude-audio-index=\"'+activeIndex+'\"]:not([data-amplitude-collection-key])');\n\n elements.forEach( function( element ){\n if( !isNaN( config.buffered ) ){\n element.value = parseFloat(\n ConfigState.getBufferedPercentage()\n );\n }\n });\n }\n}","import { GlobalBufferedProgressElement } from \"./BufferedProgressElements/GlobalBufferedProgressElement\";\nimport { CollectionBufferedProgressElement } from \"./BufferedProgressElements/CollectionBufferedProgressElement\";\nimport { CollectionAudioBufferedProgressElement } from './BufferedProgressElements/CollectionAudioBufferedProgressElement';\nimport { AudioBufferedProgressElement } from \"./BufferedProgressElements/AudioBufferedProgressElement\";\n\nexport class BufferedProgressElement{\n static syncAll(){\n GlobalBufferedProgressElement.syncUI();\n CollectionBufferedProgressElement.syncUI();\n AudioBufferedProgressElement.syncUI();\n CollectionAudioBufferedProgressElement.syncUI();\n }\n}","export class GlobalProgressElement{\n static globalProgressQuery = 'progress.amplitude-audio-played-progress:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n\n static syncUI( completionPercentage ){\n if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){\n let elements = document.querySelectorAll( GlobalProgressElement.globalProgressQuery );\n\n elements.forEach( ( element ) => {\n let max = element.max;\n\n element.value = ( completionPercentage / 100 ) * max;\n });\n }\n }\n}","import { ConfigState } from '@/services/ConfigState';\n\nexport class CollectionProgressElement{\n static collectionProgressQuery = 'progress.amplitude-audio-played-progress[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n static syncUI( completionPercentage ){\n if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){\n let elements = document.querySelectorAll( CollectionProgressElement.collectionProgressQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let max = element.max;\n\n if( activeCollectionKey == elementCollectionKey ){\n element.value = ( completionPercentage / 100 ) * max;\n }else{\n element.value = 0;\n }\n });\n }\n }\n}","import { ConfigState } from '@/services/ConfigState';\n\nexport class AudioProgressElement{\n static audioProgressQuery = 'progress.amplitude-audio-played-progress[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n static syncUI( completionPercentage ){\n if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){\n let elements = document.querySelectorAll( AudioProgressElement.audioProgressQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n let max = element.max;\n\n if( activeAudioIndex == elementAudioIndex ){\n element.value = ( completionPercentage / 100 ) * max;\n }else{\n element.value = 0;\n }\n });\n }\n }\n}","import { ConfigState } from '@/services/ConfigState';\n\nexport class CollectionAudioProgressElement{\n static collectionAudioProgressQuery = 'progress.amplitude-audio-played-progress[data-amplitude-collection-key][data-amplitude-audio-index]';\n\n static syncUI( completionPercentage ){\n if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){\n let elements = document.querySelectorAll( CollectionAudioProgressElement.collectionAudioProgressQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n let max = element.max;\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.value = ( completionPercentage / 100 ) * max;\n }else{\n element.value = 0;\n }\n });\n }\n }\n}","import { GlobalProgressElement } from \"./ProgressElements/GlobalProgressElement\";\nimport { CollectionProgressElement } from \"./ProgressElements/CollectionProgressElement\";\nimport { AudioProgressElement } from \"./ProgressElements/AudioProgressElement\";\nimport { CollectionAudioProgressElement } from \"./ProgressElements/CollectionAudioProgressElement\";\n\nexport class ProgressElement{\n constructor(){\n\n }\n\n static syncCurrentTime( percentage ){\n GlobalProgressElement.syncUI( percentage );\n CollectionProgressElement.syncUI( percentage );\n AudioProgressElement.syncUI( percentage );\n CollectionAudioProgressElement.syncUI( percentage );\n }\n}","import { config } from \"@/config\";\n\nexport class Time {\n static percentageInSeconds( percentage ){\n return config.audio_element.duration * (percentage / 100);\n }\n\n computeCurrentTimes(){\n let currentTime = {};\n\n currentTime.seconds = this.#findCurrentSeconds();\n currentTime.minutes = this.#findCurrentMinutes();\n currentTime.hours = this.#findCurrentHours();\n\n return currentTime;\n }\n\n #findCurrentSeconds(){\n let seconds = ( Math.floor( config.audio_element.currentTime % 60 ) < 10 ? \"0\" : \"\" ) +\n Math.floor( config.audio_element.currentTime % 60 );\n\n return seconds;\n }\n\n #findCurrentMinutes(){\n let minutes = Math.floor( config.audio_element.currentTime / 60 );\n\n if( minutes < 10 ){\n minutes = \"0\"+minutes;\n }\n\n return minutes;\n }\n\n #findCurrentHours(){\n let hours = Math.floor( config.audio_element.currentTime / 3600 );\n\n if( hours < 10 ){\n hours = \"0\"+hours;\n }\n\n return hours;\n }\n\n computeAudioCompletionPercentage(){\n return ( config.audio_element.currentTime / config.audio_element.duration ) * 100;\n }\n\n computeAudioDuration(){\n let audioDuration = {};\n\n audioDuration.seconds = this.#findAudioDurationSeconds();\n audioDuration.minutes = this.#findAudioDurationMinutes();\n audioDuration.hours = this.#findAudioDurationHours();\n\n return audioDuration;\n }\n\n #findAudioDurationSeconds(){\n let seconds = ( Math.floor( config.audio_element.duration % 60 ) < 10 ? \"0\" : \"\" ) +\n Math.floor( config.audio_element.duration % 60 );\n\n return seconds;\n }\n\n #findAudioDurationMinutes(){\n let minutes = Math.floor( config.audio_element.duration / 60 );\n\n if( minutes < 10 ){\n minutes = \"0\"+minutes;\n }\n\n return minutes;\n }\n\n #findAudioDurationHours(){\n let hours = Math.floor( config.audio_element.duration / 3600 );\n\n if( hours < 10 ){\n hours = \"0\"+hours;\n }\n\n return hours;\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\n\nexport class GlobalCurrentTimeElement {\n static globalFormattedTimeElementQuery = '.amplitude-current-time:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n static globalHoursTimeElementQuery = '.amplitude-current-hours:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n static globalMinutesTimeElementQuery = '.amplitude-current-minutes:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n static globalSecondsTimeElementQuery = '.amplitude-current-seconds:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n \n #currentTime;\n\n constructor( currentTime ){\n this.#currentTime = currentTime\n }\n \n sync(){\n this.#syncFormattedTimeElement();\n this.#syncHourTimeElement();\n this.#syncMinuteTimeElement();\n this.#syncSecondTimeElement();\n }\n\n #syncFormattedTimeElement(){\n let timeFormat = ConfigState.getTimeFormat();\n\n let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalFormattedTimeElementQuery );\n let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours )\n .replace( 'MM', this.#currentTime.minutes )\n .replace( 'SS', this.#currentTime.seconds );\n\n elements.forEach( ( element ) => {\n element.innerHTML = formattedTime;\n });\n }\n\n #syncHourTimeElement(){\n let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalHoursTimeElementQuery );\n\n elements.forEach( ( element ) => {\n element.innerHTML = this.#currentTime.hours;\n });\n }\n\n #syncMinuteTimeElement(){\n let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalMinutesTimeElementQuery );\n\n elements.forEach( ( element ) => {\n element.innerHTML = this.#currentTime.minutes;\n });\n }\n\n #syncSecondTimeElement(){\n let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalSecondsTimeElementQuery );\n\n elements.forEach( ( element ) => {\n element.innerHTML = this.#currentTime.seconds;\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\n\nexport class CollectionCurrentTimeElement {\n static collectionFormattedTimeElementQuery = '.amplitude-current-time[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n static collectionHoursTimeElementQuery = '.amplitude-current-hours[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n static collectionMinutesTimeElementQuery = '.amplitude-current-minutes[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n static collectionSecondsTimeElementQuery = '.amplitude-current-seconds[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n #currentTime;\n\n constructor( currentTime ){\n this.#currentTime = currentTime;\n }\n\n sync(){\n this.#syncFormattedTimeElement();\n this.#syncHourTimeElement();\n this.#syncMinuteTimeElement();\n this.#syncSecondTimeElement();\n }\n\n #syncFormattedTimeElement(){\n let timeFormat = ConfigState.getTimeFormat();\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionFormattedTimeElementQuery );\n let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours )\n .replace( 'MM', this.#currentTime.minutes )\n .replace( 'SS', this.#currentTime.seconds );\n \n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n\n if( activeCollectionKey == elementCollectionKey ){\n element.innerHTML = formattedTime;\n }else{\n element.innerHTML = '00:00';\n }\n })\n }\n\n #syncHourTimeElement(){\n let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionHoursTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n\n if( activeCollectionKey == elementCollectionKey ){\n element.innerHTML = this.#currentTime.hours;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncMinuteTimeElement(){\n let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionMinutesTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n\n if( activeCollectionKey == elementCollectionKey ){\n element.innerHTML = this.#currentTime.minutes;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncSecondTimeElement(){\n let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionSecondsTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n\n if( activeCollectionKey == elementCollectionKey ){\n element.innerHTML = this.#currentTime.seconds;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\n\nexport class AudioCurrentTimeElement {\n static audioFormattedTimeElementQuery = '.amplitude-current-time[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n static audioHoursTimeElementQuery = '.amplitude-current-hours[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n static audioMinutesTimeElementQuery = '.amplitude-current-minutes[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n static audioSecondsTimeElementQuery = '.amplitude-current-seconds[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n #currentTime;\n\n constructor( currentTime ){\n this.#currentTime = currentTime;\n }\n\n sync(){\n this.#syncFormattedTimeElement();\n this.#syncHourTimeElement();\n this.#syncMinuteTimeElement();\n this.#syncSecondTimeElement();\n }\n\n #syncFormattedTimeElement(){\n let timeFormat = ConfigState.getTimeFormat();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n let elements = document.querySelectorAll( AudioCurrentTimeElement.audioFormattedTimeElementQuery );\n let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours )\n .replace( 'MM', this.#currentTime.minutes )\n .replace( 'SS', this.#currentTime.seconds );\n \n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( activeAudioIndex == elementAudioIndex ){\n element.innerHTML = formattedTime;\n }else{\n element.innerHTML = '00:00';\n }\n })\n }\n\n #syncHourTimeElement(){\n let elements = document.querySelectorAll( AudioCurrentTimeElement.audioHoursTimeElementQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( activeAudioIndex == elementAudioIndex ){\n element.innerHTML = this.#currentTime.hours;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncMinuteTimeElement(){\n let elements = document.querySelectorAll( AudioCurrentTimeElement.audioMinutesTimeElementQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( activeAudioIndex == elementAudioIndex ){\n element.innerHTML = this.#currentTime.minutes;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncSecondTimeElement(){\n let elements = document.querySelectorAll( AudioCurrentTimeElement.audioSecondsTimeElementQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( activeAudioIndex == elementAudioIndex ){\n element.innerHTML = this.#currentTime.seconds;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\n\nexport class CollectionAudioCurrentTimeElement {\n static collectionAudioFormattedTimeElementQuery = '.amplitude-current-time[data-amplitude-collection-key][data-amplitude-audio-index]';\n static collectionAudioHoursTimeElementQuery = '.amplitude-current-hours[data-amplitude-collection-key][data-amplitude-audio-index]';\n static collectionAudioMinutesTimeElementQuery = '.amplitude-current-minutes[data-amplitude-collection-key][data-amplitude-audio-index]';\n static collectionAudioSecondsTimeElementQuery = '.amplitude-current-seconds[data-amplitude-collection-key][data-amplitude-audio-index]';\n\n #currentTime;\n\n constructor( currentTime ){\n this.#currentTime = currentTime;\n }\n\n sync(){\n this.#syncFormattedTimeElement();\n this.#syncHourTimeElement();\n this.#syncMinuteTimeElement();\n this.#syncSecondTimeElement();\n }\n\n #syncFormattedTimeElement(){\n let timeFormat = ConfigState.getTimeFormat();\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioFormattedTimeElementQuery );\n let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours )\n .replace( 'MM', this.#currentTime.minutes )\n .replace( 'SS', this.#currentTime.seconds );\n \n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.innerHTML = formattedTime;\n }else{\n element.innerHTML = '00:00';\n }\n })\n }\n\n #syncHourTimeElement(){\n let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioHoursTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.innerHTML = this.#currentTime.hours;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncMinuteTimeElement(){\n let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioMinutesTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.innerHTML = this.#currentTime.minutes;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncSecondTimeElement(){\n let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioSecondsTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.innerHTML = this.#currentTime.seconds;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n}","import { GlobalCurrentTimeElement } from \"./TimeElements/CurrentTime/GlobalCurrentTimeElement\";\nimport { CollectionCurrentTimeElement } from \"./TimeElements/CurrentTime/CollectionCurrentTimeElement\";\nimport { AudioCurrentTimeElement } from \"./TimeElements/CurrentTime/AudioCurrentTimeElement\";\nimport { CollectionAudioCurrentTimeElement } from \"./TimeElements/CurrentTime/CollectionAudioCurrentTimeElement\";\n\nimport { GlobalDurationElement } from \"./TimeElements/Duration/GlobalDurationElement\";\nimport { CollectionDurationElement } from \"./TimeElements/Duration/CollectionDurationElement\";\nimport { AudioDurationElement } from \"./TimeElements/Duration/AudioDurationElement\";\nimport { CollectionAudioDurationElement } from \"./TimeElements/Duration/CollectionAudioDurationElement\";\n\nexport class TimeElement {\n syncCurrentTime( currentTime ){\n let globalCurrentTimeElement = new GlobalCurrentTimeElement( currentTime );\n globalCurrentTimeElement.sync();\n\n let collectionCurrentTimeElement = new CollectionCurrentTimeElement( currentTime );\n collectionCurrentTimeElement.sync();\n\n let audioCurrentTimeElement = new AudioCurrentTimeElement( currentTime );\n audioCurrentTimeElement.sync();\n\n let collectionAudioCurrentTimeElement = new CollectionAudioCurrentTimeElement( currentTime );\n collectionAudioCurrentTimeElement.sync();\n }\n\n syncDurationTime(){\n\n }\n\n resetDurationTime(){\n\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from '@/services/ConfigState';\nimport { Time } from '@/services/Time';\n\nexport class GlobalTrackerElement{\n static globalTrackerQuery = 'input[type=\"range\"].amplitude-audio-tracker:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n\n #elements;\n #isIE;\n\n constructor(){\n this.#isIE = ConfigState.isIE();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalTrackerElement.globalTrackerQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#isIE ){\n element.removeEventListener(\"change\", this.#handleInteraction );\n element.addEventListener(\"change\", this.#handleInteraction.bind( this, element ) );\n }else{\n element.removeEventListener(\"input\", this.#handleInteraction);\n element.addEventListener(\"input\", this.#handleInteraction.bind( this, element ) );\n }\n } );\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isLive() ){\n let locationPercentage = element.value;\n let trackedLocation = Time.percentageInSeconds( locationPercentage );\n \n let audio = new Audio();\n audio.setCurrentTime( trackedLocation )\n }\n }\n\n static syncUI( completionPercentage ){\n let elements = document.querySelectorAll( GlobalTrackerElement.globalTrackerQuery );\n\n elements.forEach( ( element ) => {\n element.value = completionPercentage;\n });\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from '@/services/ConfigState';\nimport { Time } from '@/services/Time';\n\nexport class CollectionTrackerElement{\n static collectionTrackerQuery = 'input[type=\"range\"].amplitude-audio-tracker[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n #elements;\n #isIE;\n\n constructor(){\n this.#isIE = ConfigState.isIE();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionTrackerElement.collectionTrackerQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#isIE ){\n element.removeEventListener(\"change\", this.#handleInteraction );\n element.addEventListener(\"change\", this.#handleInteraction.bind( this, element ) );\n }else{\n element.removeEventListener(\"input\", this.#handleInteraction);\n element.addEventListener(\"input\", this.#handleInteraction.bind( this, element ) );\n }\n });\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isLive() ){\n let activeCollectionKey = ConfigState.getActiveCollection();\n let elementCollectionKey = element.getAttribute( 'data-amplitude-collection-key' );\n\n if( activeCollectionKey == elementCollectionKey ){\n let locationPercentage = element.value;\n let trackedLocation = Time.percentageInSeconds( locationPercentage );\n \n let audio = new Audio();\n audio.setCurrentTime( trackedLocation )\n }\n }\n }\n\n static syncUI( completionPercentage ){\n let elements = document.querySelectorAll( CollectionTrackerElement.collectionTrackerQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n \n if( activeCollectionKey == elementCollectionKey ){\n element.value = completionPercentage;\n }else{\n element.value = 0;\n }\n });\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from '@/services/ConfigState';\nimport { Time } from '@/services/Time';\n\nexport class AudioTrackerElement{\n static audioTrackerQuery = 'input[type=\"range\"].amplitude-audio-tracker[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n #elements;\n #isIE;\n\n constructor(){\n this.#isIE = ConfigState.isIE();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioTrackerElement.audioTrackerQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#isIE ){\n element.removeEventListener(\"change\", this.#handleInteraction );\n element.addEventListener(\"change\", this.#handleInteraction.bind( this, element ) );\n }else{\n element.removeEventListener(\"input\", this.#handleInteraction);\n element.addEventListener(\"input\", this.#handleInteraction.bind( this, element ) );\n }\n });\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isLive() ){\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n let elementAudioIndex = element.getAttribute( 'data-amplitude-audio-index' );\n\n if( activeAudioIndex == elementAudioIndex ){\n let locationPercentage = element.value;\n let trackedLocation = Time.percentageInSeconds( locationPercentage );\n \n let audio = new Audio();\n audio.setCurrentTime( trackedLocation )\n }\n }\n }\n\n static syncUI( completionPercentage ){\n let elements = document.querySelectorAll( AudioTrackerElement.audioTrackerQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n \n if( activeAudioIndex == elementAudioIndex ){\n element.value = completionPercentage;\n }else{\n element.value = 0;\n }\n });\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from '@/services/ConfigState';\nimport { Time } from '@/services/Time';\n\nexport class CollectionAudioTrackerElement{\n static collectionAudioTrackerQuery = 'input[type=\"range\"].amplitude-audio-tracker[data-amplitude-collection-key][data-amplitude-audio-index]';\n\n #elements;\n #isIE;\n\n constructor(){\n this.#isIE = ConfigState.isIE();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioTrackerElement.collectionAudioTrackerQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#isIE ){\n element.removeEventListener(\"change\", this.#handleInteraction );\n element.addEventListener(\"change\", this.#handleInteraction.bind( this, element ) );\n }else{\n element.removeEventListener(\"input\", this.#handleInteraction);\n element.addEventListener(\"input\", this.#handleInteraction.bind( this, element ) );\n }\n });\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isLive() ){\n let activeCollectionKey = ConfigState.getActiveCollection();\n let elementCollectionKey = element.getAttribute( 'data-amplitude-collection-key' );\n\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n let elementAudioIndex = element.getAttribute( 'data-amplitude-audio-index' );\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n let locationPercentage = element.value;\n let trackedLocation = Time.percentageInSeconds( locationPercentage );\n \n let audio = new Audio();\n audio.setCurrentTime( trackedLocation )\n }\n }\n }\n\n static syncUI( completionPercentage ){\n let elements = document.querySelectorAll( CollectionAudioTrackerElement.collectionAudioTrackerQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n \n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.value = completionPercentage;\n }else{\n element.value = 0;\n }\n });\n }\n}","import { GlobalTrackerElement } from \"./TrackerElements/GlobalTrackerElement\";\nimport { CollectionTrackerElement } from \"./TrackerElements/CollectionTrackerElement\";\nimport { AudioTrackerElement } from \"./TrackerElements/AudioTrackerElement\";\nimport { CollectionAudioTrackerElement } from \"./TrackerElements/CollectionAudioTrackerElement\";\n\nexport class TrackerElement{\n constructor(){\n\n }\n\n setUp(){\n this.#configureGlobalTrackerElement();\n this.#configureCollectionTrackerElement();\n this.#configureAudioTrackerElement();\n this.#configureCollectionAudioTrackerElement();\n }\n\n #configureGlobalTrackerElement(){\n let globalTrackerElement = new GlobalTrackerElement();\n globalTrackerElement.initialize();\n }\n\n #configureCollectionTrackerElement(){\n let collectionTrackerElement = new CollectionTrackerElement();\n collectionTrackerElement.initialize();\n }\n\n #configureAudioTrackerElement(){\n let audioTrackerElement = new AudioTrackerElement();\n audioTrackerElement.initialize();\n }\n\n #configureCollectionAudioTrackerElement(){\n let collectionAudioTrackerElement = new CollectionAudioTrackerElement();\n collectionAudioTrackerElement.initialize();\n }\n\n static syncCurrentTime( currentTime ){\n GlobalTrackerElement.syncUI( currentTime );\n CollectionTrackerElement.syncUI( currentTime );\n AudioTrackerElement.syncUI( currentTime );\n CollectionAudioTrackerElement.syncUI( currentTime );\n }\n}","import { BufferedProgressElement } from '@/elements/BufferedProgressElement';\nimport { ConfigState } from '@/services/ConfigState';\nimport { config } from '@/config.js';\nimport { ProgressElement } from '@/elements/ProgressElement';\nimport { Time } from '@/services/Time';\nimport { TimeElement } from '@/elements/TimeElement';\nimport { TrackerElement } from '@/elements/TrackerElement';\n\nexport class TimeUpdateEvent{\n bind(){\n this.#bindTimeUpdate();\n this.#bindDurationChange();\n }\n\n #bindTimeUpdate(){\n config.audio_element.removeEventListener( \"timeupdate\", this.#handle.bind(this) );\n config.audio_element.addEventListener( \"timeupdate\", this.#handle.bind(this) );\n }\n\n #bindDurationChange(){\n config.audio_element.removeEventListener( \"durationchange\", this.#handle.bind(this) );\n config.audio_element.addEventListener( \"durationchange\", this.#handle.bind(this) );\n }\n\n #handle(){\n ConfigState.updateBufferedTime();\n BufferedProgressElement.syncAll();\n this.#updateTimeInformation();\n this.#runTimeCallbacks();\n }\n\n #updateTimeInformation(){\n if( !ConfigState.isLive() ){\n let time = new Time();\n\n let currentTime = time.computeCurrentTimes();\n let completionPercentage = time.computeAudioCompletionPercentage();\n let duration = time.computeAudioDuration();\n\n let timeElement = new TimeElement();\n timeElement.syncCurrentTime( currentTime );\n timeElement.syncDurationTime( currentTime, duration );\n\n TrackerElement.syncCurrentTime( completionPercentage );\n ProgressElement.syncCurrentTime( completionPercentage );\n }\n }\n\n #runTimeCallbacks(){\n\n }\n}","// import { ProgressEvent } from \"@/events/ProgressEvent\";\nimport { AudioEndedEvent } from \"@/events/AudioEndedEvent\";\nimport { KeyBindingEvents } from \"@/events/KeyBindingEvents\";\nimport { TimeUpdateEvent } from \"@/events/TimeUpdateEvent\";\nimport { Debug } from \"@/services/Debug\";\nimport { config } from \"@/config.js\";\n\nexport class EventManager{\n initializeAllEvents(){\n Debug.writeMessage(\"Starting initialization of event handlers...\");\n\n this.#bindTouchEvents();\n this.#bindTimeUpdateEvents();\n this.#bindKeyBindingEvents();\n this.#bindAudioEndedEvent();\n // this.#bindProgressEvent();\n this.#bindAudioElementEventCallbacks();\n }\n\n #bindTouchEvents(){\n document.addEventListener(\"touchmove\", () => {\n config.is_touch_moving = true;\n });\n\n document.addEventListener(\"touchend\", () => {\n if( !config.is_touch_moving ){\n config.is_touch_moving = false;\n }\n })\n }\n\n #bindTimeUpdateEvents(){\n let timeUpdateEvent = new TimeUpdateEvent();\n timeUpdateEvent.bind();\n }\n\n #bindKeyBindingEvents(){\n let keyBindingEvents = new KeyBindingEvents();\n keyBindingEvents.bind();\n }\n\n #bindAudioEndedEvent(){\n let audioEndedEvent = new AudioEndedEvent();\n audioEndedEvent.bind();\n }\n\n #bindProgressEvent(){\n let progressEvent = new ProgressEvent();\n progressEvent.bind();\n }\n\n #bindAudioElementEventCallbacks(){\n\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation.js\";\nimport { config } from \"@/config\";\nimport { Debug } from \"@/services/Debug\";\n\nexport class CollectionNextElement {\n static collectionNextQuery = '.amplitude-next[data-amplitude-collection-key]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionNextElement.collectionNextQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n let collectionKey = this.getAttribute('data-amplitude-collection-key');\n\n if( collectionKey == config.active_collection ){\n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.next( collectionKey );\n }else{\n Debug.writeMessage(\"You can not go to the next audio on a playlist that is not being played!\");\n }\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Debug } from \"@/services/Debug\";\nimport { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js';\n\nexport class GlobalNextElement {\n static globalNextQuery = '.amplitude-next:not([data-amplitude-collection-key])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalNextElement.globalNextQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( ConfigState.getScope() == 'collection' ){\n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.next();\n }else{\n Debug.writeMessage(\"You can only navigate next when you are playing a collection.\");\n }\n }\n}","import { CollectionNextElement } from \"./NextElements/CollectionNextElement\";\nimport { GlobalNextElement } from \"./NextElements/GlobalNextElement\";\n\n/**\n * Handles the configuration and managing of Next elements\n * \n * A Next element is defined as the following:\n * \n * Element: class=\"amplitude-next\"\n * \n * GLOBAL: class=\"amplitude-next\"\n * Handles next for whatever scope the player is in.\n * \n * COLLECTION: class=\"amplitude-next\" data-amplitude-collection=\"{collection_key}\"\n * Handles the next audio within a specific collection.\n */\nexport class NextElement {\n setUp(){\n this.#configureGlobalNextElement();\n this.#configureCollectionNextElement();\n }\n\n #configureGlobalNextElement(){\n let globalNextElement = new GlobalNextElement();\n globalNextElement.initialize();\n }\n\n #configureCollectionNextElement(){\n let collectionNextElement = new CollectionNextElement();\n collectionNextElement.initialize();\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { MuteElement } from \"./MuteElement\";\nimport { Audio } from \"@/core/Audio\";\n\n/**\n * Handles the configuration and managing of Volume Slider elements\n * \n * A Volume Slider element is defined as the following:\n * \n * Element: class=\"amplitude-volume-slider\"\n * Type: input[type=\"range\"]\n * \n * Whenever this element is interacted with, the audio volume is adjusted no matter where.\n */\nexport class VolumeSliderElement {\n static volumeSliderElementQuery = 'input[type=\"range\"].amplitude-volume-slider';\n\n #elements;\n #ie;\n\n constructor(){\n this.#ie = ConfigState.isIE();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( VolumeSliderElement.volumeSliderElementQuery );\n }\n\n #bindInteractions(){\n if( ConfigState.isIos() ){\n Debug.writeMessage(\n \"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\"\n );\n }else{\n this.#elements.forEach( ( element ) => {\n if( this.#ie ){\n element.removeEventListener( \"change\", this.#handleInteraction );\n element.addEventListener( \"change\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"input\", this.#handleInteraction );\n element.addEventListener( \"input\", this.#handleInteraction );\n }\n });\n }\n }\n\n #handleInteraction(){\n let audio = new Audio();\n audio.setVolume( this.value );\n\n MuteElement.syncElements();\n VolumeSliderElement.syncElements();\n }\n \n\n static syncElements(){\n let elements = document.querySelectorAll( VolumeSliderElement.volumeSliderElementQuery );\n\n elements.forEach( function( element ){\n element.value = ConfigState.getVolume();\n });\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { VolumeSliderElement } from \"./VolumeSliderElement\";\nimport { Debug } from \"@/services/Debug\";\n/**\n * Handles the configuration and managing of Mute elements\n * \n * A Mute element is defined as the following:\n * \n * Element: class=\"amplitude-mute\"\n * \n * Whenever this element is interacted with, the audio is muted no matter where.\n */\nexport class MuteElement {\n static muteElementQuery = '.amplitude-mute';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( MuteElement.muteElementQuery );\n }\n\n #bindInteractions(){\n if( ConfigState.isIos() ){\n Debug.writeMessage(\n \"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\"\n );\n }else{\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n\n if( ConfigState.getVolume() == 0 ){\n audio.setVolume( ConfigState.getPreMuteVolume() );\n }else{\n ConfigState.setPreMuteVolume();\n audio.setVolume( 0 );\n }\n\n MuteElement.syncElements();\n VolumeSliderElement.syncElements();\n }\n }\n\n static syncElements(){\n let elements = document.querySelectorAll( MuteElement.muteElementQuery );\n\n elements.forEach( function( element ){\n if( ConfigState.getVolume() == 0 ){\n element.classList.remove(\"amplitude-not-muted\");\n element.classList.add(\"amplitude-muted\");\n }else{\n element.classList.add(\"amplitude-not-muted\");\n element.classList.remove(\"amplitude-muted\");\n }\n });\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class GlobalPauseElement {\n static globalPauseQuery = '.amplitude-pause:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n \n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalPauseElement.globalPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n audio.pause();\n\n PlayPauseElement.syncAll();\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class CollectionPauseElement{\n static collectionPauseQuery = '.amplitude-pause[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionPauseElement.collectionPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let collectionKey = this.getAttribute('data-amplitude-collection-key');\n \n // Ensure we pause the audio if the active collection is\n // what is controlled by this pause element.\n if( config.active_collection == collectionKey ){\n let audio = new Audio();\n audio.pause();\n\n PlayPauseElement.syncAll();\n }\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { config } from \"../../config\";\n\nexport class AudioPauseElement{\n static audioPauseQuery = \".amplitude-pause[data-amplitude-audio-index]:not([data-amplitude-collection-key])\";\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioPauseElement.audioPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audioIndex = this.getAttribute('data-amplitude-audio-index');\n\n // If the scope is audio and the index of the element matches the active audio\n // index, then we pause the player.\n if( ConfigState.getScope() == 'audio' && ( config.active_index == audioIndex ) ){\n let audio = new Audio();\n audio.pause();\n\n PlayPauseElement.syncAll();\n }\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { config } from \"@/config\";\n\nexport class CollectionAudioPauseElement{\n static collectionAudioPauseQuery = '.amplitude-pause[data-amplitude-collection-key][data-amplitude-audio-index]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioPauseElement.collectionAudioPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let collectionKey = element.getAttribute('data-amplitude-collection-key');\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( config.active_collection == collectionKey &&\n config.collections[ collectionKey ].active_index == audioIndex ){\n let audio = new Audio();\n audio.pause();\n\n PlayPauseElement.syncAll();\n }\n }\n }\n}","import { GlobalPauseElement } from \"./PauseElements/GlobalPauseElement\";\nimport { CollectionPauseElement } from \"./PauseElements/CollectionPauseElement\";\nimport { AudioPauseElement } from \"./PauseElements/AudioPauseElement\";\nimport { CollectionAudioPauseElement } from \"./PauseElements/CollectionAudioPauseElement\";\n\n/**\n * Handles the configuration and managing of Pause elements.\n * \n * A Pause element is defined as the following:\n * \n * Element: class=\"amplitude-pause\"\n * \n * GLOBAL: class=\"amplitude-pause\"\n * Controls the entire state of the audio player.\n * \n * COLLECTION: class=\"amplitude-pause\" data-amplitude-collection=\"{collection_key}\"\n * Scoped to an individual collection. Will only pause what's within the scope of the collection.\n * \n * AUDIO: class=\"amplitude-pause\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element.\n * \n * AUDIO IN COLLECTION: class=\"amplitude-pause\" data-amplitude-collection-key=\"{collection_key}\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element within a collection.\n */\nexport class PauseElement {\n setUp(){\n this.#configureGlobalPauseElement();\n this.#configureCollectionPauseElement();\n this.#configureAudioPauseElement();\n this.#configureCollectionAudioPauseElement();\n }\n\n #configureGlobalPauseElement(){\n let globalPauseElement = new GlobalPauseElement();\n globalPauseElement.initialize();\n }\n\n #configureCollectionPauseElement(){\n let collectionPauseElement = new CollectionPauseElement();\n collectionPauseElement.initialize();\n }\n\n #configureAudioPauseElement(){\n let audioPauseElement = new AudioPauseElement();\n audioPauseElement.initialize();\n }\n\n #configureCollectionAudioPauseElement(){\n let collectionAudioPauseElement = new CollectionAudioPauseElement();\n collectionAudioPauseElement.initialize();\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class GlobalPlayElement {\n static globalPlayQuery = '.amplitude-play:not([data-amplitude-audio-index]):not([data-amplitude-collection-index])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalPlayElement.globalPlayQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n let audio = new Audio();\n audio.play();\n\n PlayPauseElement.syncAll();\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { Checks as CollectionChecks } from \"@/services/Collections/Checks\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation\";\nimport { Debug } from \"@/services/Debug\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class CollectionPlayElement{\n static collectionPlayQuery = '.amplitude-play[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionPlayElement.collectionPlayQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let collection = this.getAttribute('data-amplitude-collection-key');\n\n if( !CollectionChecks.collectionExists( collection ) ){\n Debug.writeMessage('Collection with key \"'+collection+'\" does not exist! Please define this collection in your configuration.');\n return false;\n }\n\n this.#handleCollectionChanges( collection );\n this.#playAudio();\n\n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( collection ){\n if( CollectionChecks.collectionChanged( collection ) ){\n \n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.setActiveCollection( collection );\n\n // If the collection is shuffled and the collection is changed,\n // we change the audio to be the first audio in the array. Since,\n // we are changing the collection, we are starting at the top.\n if( CollectionChecks.isCollectionShuffled( collection ) ){\n collectionNavigation.changeAudioCollection(\n collection,\n config.collections[ collection ].shuffle_list[0],\n 0,\n true\n );\n }else{\n collectionNavigation.changeAudioCollection(\n collection,\n config.collections[ collection ].audio[0],\n 0\n );\n }\n }\n }\n\n #playAudio(){\n let audio = new Audio();\n audio.play();\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { Checks as AudioChecks } from '@/services/Audio/Checks.js';\nimport { Navigation as AudioNavigation } from '@/services/Audio/Navigation.js';\nimport { Checks as CollectionChecks } from '@/services/Collections/Checks.js';\nimport { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js';\nimport { Debug } from \"@/services/Debug\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class AudioPlayElement {\n static audioPlayQuery = '.amplitude-play[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioPlayElement.audioPlayQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n } );\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){ \n let index = element.getAttribute('data-amplitude-audio-index');\n\n if( !AudioChecks.audioExists( index ) ){\n Debug.writeMessage('Audio with index \"'+index+'\" does not exist! Please add an audio object at this index in your configuration.');\n return false;\n }\n\n this.#handleCollectionChanges( index );\n this.#handleAudioChanges( index );\n this.#playAudio();\n \n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( index ){\n if( CollectionChecks.collectionChanged( null ) ){\n let collectionNavigation = new CollectionNavigation();\n let audioNavigation = new AudioNavigation();\n\n collectionNavigation.setActiveCollection( null );\n audioNavigation.changeAudio(\n config.audio[index], index, true\n );\n }\n }\n\n #handleAudioChanges( index ){\n if( AudioChecks.audioChanged( index ) ){\n let audioNavigation = new AudioNavigation();\n\n audioNavigation.changeAudio(\n config.audio[index], index, true\n );\n }\n }\n\n #playAudio(){\n let audio = new Audio();\n audio.play();\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { Checks as AudioChecks } from '@/services/Audio/Checks.js';\nimport { Checks as CollectionChecks } from '@/services/Collections/Checks.js';\nimport { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js';\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class CollectionAudioPlayElement {\n static collectionAudioPlayQuery = '.amplitude-play[data-amplitude-audio-index][data-amplitude-collection-key]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioPlayElement.collectionAudioPlayQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction );\n }\n } );\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let collectionKey = this.getAttribute('data-amplitude-collection-key');\n let audioIndex = this.getAttribute('data-amplitude-audio-index');\n \n this.#handleCollectionChanges( collectionKey, audioIndex );\n this.#handleAudioChanges( collectionKey, audioIndex );\n this.#playAudio();\n\n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( collectionKey, audioIndex ){\n if( CollectionChecks.collectionChanged( collectionKey ) ){\n let collectionNavigation = new CollectionNavigation();\n\n collectionNavigation.setActiveCollection( collectionKey );\n collectionNavigation.changeAudioCollection(\n collectionKey,\n config.collections[ collectionKey ].audio[audioIndex],\n audioIndex,\n true\n );\n }\n }\n\n #handleAudioChanges( collectionKey, audioIndex ){\n if( AudioChecks.audioChanged( audioIndex, collectionKey ) ){\n let collectionNavigation = new CollectionNavigation();\n\n collectionNavigation.changeAudioCollection(\n collectionKey,\n config.collections[ collectionKey ].audio[audioIndex],\n audioIndex,\n true\n );\n }\n }\n\n #playAudio(){\n let audio = new Audio();\n audio.play();\n }\n}","import { GlobalPlayElement } from \"./PlayElements/GlobalPlayElement\";\nimport { CollectionPlayElement } from \"./PlayElements/CollectionPlayElement\";\nimport { AudioPlayElement } from \"./PlayElements/AudioPlayElement\";\nimport { CollectionAudioPlayElement } from \"./PlayElements/CollectionAudioPlayElement\";\n/**\n * Handles the configuration and managing of the play elements.\n * \n * A Play element is defined as the following:\n * \n * Element: class=\"amplitude-play\"\n * \n * GLOBAL: class=\"amplitude-play\"\n * Controls the entire state of the audio player. Will play whatever is active.\n * \n * COLLECTION: class=\"amplitude-play\" data-amplitude-collection-key=\"{collection_key}\"\n * Scoped to an individual collection. Will only play within the collection.\n * \n * AUDIO: class=\"amplitude-play\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element. Will only play a specific piece of audio.\n * \n * AUDIO IN COLLECTION: class=\"amplitude-play\" data-amplitude-collection-key=\"{collection_key}\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element within a collection. Will only play a specific piece of audio in a collection.\n */\nexport class PlayElement{\n setUp(){\n this.#configureGlobalPlayElement();\n this.#configureCollectionPlayElement();\n this.#configureAudioPlayElement();\n this.#configureCollectionAudioPlayElement();\n }\n\n #configureGlobalPlayElement(){\n let globalPlayElement = new GlobalPlayElement();\n globalPlayElement.initialize();\n }\n\n #configureCollectionPlayElement(){\n let collectionPlayElement = new CollectionPlayElement();\n collectionPlayElement.initialize();\n }\n\n #configureAudioPlayElement(){\n let audioPlayElement = new AudioPlayElement();\n audioPlayElement.initialize();\n }\n\n #configureCollectionAudioPlayElement(){\n let collectionAudioPlayElement = new CollectionAudioPlayElement();\n collectionAudioPlayElement.initialize();\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\n\nexport class PlaybackSpeedElement {\n static playbackSpeedElementQuery = '.amplitude-playback-speed';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( PlaybackSpeedElement.playbackSpeedElementQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n\n switch( ConfigState.getPlaybackSpeed() ){\n case 1:\n audio.setPlaybackSpeed( 1.5 );\n break;\n case 1.5:\n audio.setPlaybackSpeed( 2 );\n break;\n case 2:\n audio.setPlaybackSpeed( 1 );\n break;\n }\n\n PlaybackSpeedElement.syncElements();\n }\n }\n\n static syncElements(){\n let elements = document.querySelectorAll( PlaybackSpeedElement.playbackSpeedElementQuery );\n\n elements.forEach( function( element ){\n element.classList.remove(\"amplitude-playback-speed-10\");\n element.classList.remove(\"amplitude-playback-speed-15\");\n element.classList.remove(\"amplitude-playback-speed-20\");\n\n switch( ConfigState.getPlaybackSpeed() ){\n case 1:\n element.classList.add(\"amplitude-playback-speed-10\");\n break;\n case 1.5:\n element.classList.add(\"amplitude-playback-speed-15\");\n break;\n case 2:\n element.classList.add(\"amplitude-playback-speed-20\");\n break;\n }\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Debug } from \"@/services/Debug\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation.js\"\n\nexport class CollectionPreviousElement {\n static collectionPreviousQuery = '.amplitude-previous[data-amplitude-collection-key]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionPreviousElement.collectionPreviousQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let collectionKey = this.getAttribute('data-amplitude-collection-key');\n\n if( collectionKey == config.active_collection ){\n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.previous();\n }else{\n Debug.writeMessage(\"You can not go to the previous audio on a playlist that is not being played!\");\n }\n }\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Debug } from \"@/services/Debug\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation.js\"\n\nexport class GlobalPreviousElement {\n static globalPreviousQuery = '.amplitude-previous:not([data-amplitude-collection-key])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalPreviousElement.globalPreviousQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n if( ConfigState.getScope() == 'collection' ){\n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.previous();\n }else{\n Debug.writeMessage(\"You can only navigate previous when you are playing a collection.\");\n }\n }\n }\n}","import { CollectionPreviousElement } from \"./PreviousElements/CollectionPreviousElement\";\nimport { GlobalPreviousElement } from \"./PreviousElements/GlobalPreviousElement\";\n\n/**\n * Handles the configuration and managing of Previous elements\n * \n * A Previous element is defined as the following:\n * \n * Element: class=\"amplitude-previous\"\n * \n * GLOBAL: class=\"amplitude-previous\"\n * Handles previous for whatever scope the player is in.\n * \n * COLLECTION: class=\"amplitude-previous\" data-amplitude-collection=\"{collection_key}\"\n * Handles the previous audio within a specific collection.\n */\nexport class PreviousElement {\n setUp(){\n this.#configureGlobalPreviousElement();\n this.#configureCollectionPreviousElement();\n }\n\n #configureGlobalPreviousElement(){\n let globalPreviousElement = new GlobalPreviousElement();\n globalPreviousElement.initialize();\n }\n\n #configureCollectionPreviousElement(){\n let collectionPreviousElement = new CollectionPreviousElement();\n collectionPreviousElement.initialize(); \n }\n}","import { ConfigState } from '@/services/ConfigState';\n\nexport class Shuffle {\n #collection\n\n constructor( collection ){\n this.#collection = collection;\n }\n\n toggleShuffle( collection ){\n let isShuffled = ConfigState.isCollectionShuffled( collection );\n\n if( isShuffled ){\n ConfigState.setCollectionShuffled( collection, false, [] );\n }else{\n let shuffledAudio = this.#shuffleAudio( collection );\n ConfigState.setCollectionShuffled( collection, true, shuffledAudio );\n }\n }\n\n #shuffleAudio( collection ){\n let audio = ConfigState.getCollectionAudio( collection );\n let shuffleTemp = new Array( audio.length );\n\n audio.forEach( ( audio, index ) => {\n shuffleTemp[ index ] = audio[ index ]\n });\n\n for( let i = audio.length - 1; i > 0; i-- ){\n let randomNumber = Math.floor(\n Math.random() * audio.length + 1\n );\n\n this.#shuffleSwap( shuffleTemp, i, randomNumber - 1);\n }\n\n return shuffleTemp;\n }\n\n #shuffleSwap( list, original, random ){\n let temp = list[ original ];\n list[ original ] = list[ random ];\n list[ random ] = temp;\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Shuffle } from \"@/services/Collections/Shuffle\";\n\nexport class CollectionShuffleElement {\n static collectionShuffleQuery = '.amplitude-shuffle[data-amplitude-collection-key]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionShuffleElement.collectionShuffleQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n let collectionKey = this.getAttribute('data-amplitude-collection-key');\n\n let shuffle = new Shuffle( collectionKey );\n shuffle.toggleShuffle();\n\n CollectionShuffleElement.syncUI( collectionKey )\n }\n\n static syncUI( collection ){\n let elements = document.querySelectorAll( '.amplitude-shuffle[data-amplitude-collection=\"'+collection+'\"]');\n \n elements.forEach( ( element ) => {\n if( ConfigState.isCollectionShuffled( collection ) ){\n element.classList.add( \"amplitude-shuffle-on\" );\n element.classList.remove( \"amplitude-shuffle-off\" );\n }else{\n element.classList.add( \"amplitude-shuffle-off\" );\n element.classList.remove( \"amplitude-shuffle-on\" );\n }\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Shuffle } from \"@/services/Collections/Shuffle\";\nimport { Debug } from \"@/services/Debug\";\nimport { CollectionShuffleElement } from \"./CollectionShuffleElement\";\n\nexport class GlobalShuffleElement {\n static globalShuffleQuery = '.amplitude-shuffle:not([data-amplitude-collection-key])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalShuffleElement.globalShuffleQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( ConfigState.getScope() == 'collection' ){\n let collection = ConfigState.getActiveCollection();\n\n let shuffle = new Shuffle( collectionKey );\n shuffle.toggleShuffle();\n\n GlobalShuffleElement.syncUI();\n CollectionShuffleElement.syncUI( collection );\n }else{\n Debug.writeMessage(\"You can only shuffle a collection if you are playing a collection.\");\n }\n }\n\n static syncUI(){\n let elements = document.querySelectorAll( GlobalShuffleElement.globalShuffleQuery );\n let collection = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n if( ConfigState.isCollectionShuffled( collection ) ){\n element.classList.add( \"amplitude-shuffle-on\" );\n element.classList.remove( \"amplitude-shuffle-off\" );\n }else{\n element.classList.add( \"amplitude-shuffle-off\" );\n element.classList.remove( \"amplitude-shuffle-on\" );\n }\n });\n }\n}","import { CollectionShuffleElement } from \"./ShuffleElements/CollectionShuffleElement\";\nimport { GlobalShuffleElement } from \"./ShuffleElements/GlobalShuffleElement\";\n\n/**\n * Handles the configuration and managing of Shuffle elements\n * \n * A Shuffle element is defined as the following:\n * \n * Element: class=\"amplitude-shuffle\"\n * \n * GLOBAL: class=\"amplitude-shuffles\"\n * Shuffles the active collection\n * \n * COLLECTION: class=\"amplitude-shuffle\" data-amplitude-collection=\"{collection_key}\"\n * Shuffles the collection identified\n */\nexport class ShuffleElement {\n setUp(){\n this.#configureGlobalShuffleElement();\n this.#configureCollectionShuffleElement();\n }\n\n #configureGlobalShuffleElement(){\n let globalShuffleElement = new GlobalShuffleElement();\n globalShuffleElement.initialize();\n }\n\n #configureCollectionShuffleElement(){\n let collectionShuffleElement = new CollectionShuffleElement();\n collectionShuffleElement.initialize();\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { config } from '@/config';\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { Debug } from \"@/services/Debug\";\nimport { Navigation as AudioNavigation } from '@/services/Audio/Navigation.js';\nimport { PlayPauseElement } from '@/elements/PlayPauseElement';\n\nexport class AudioSkipToElement {\n static audioSkipToElementQuery = \".amplitude-skip-to[data-amplitude-audio-index]:not([data-amplitude-collection-key])\";\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioSkipToElement.audioSkipToElementQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n });\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n let location = element.getAttribute('data-amplitude-location');\n\n if( this.#validElement( audioIndex, location ) ){\n this.#handleAudioChange( audioIndex );\n this.#playAudio();\n PlayPauseElement.syncAll();\n this.#skipToLocation( location );\n }\n }\n }\n\n #validElement( audioIndex, location ){\n if( audioIndex == null ){\n Debug.writeMessage( \"You must add a `data-amplitude-audio-index` attribute to your `amplitude-skip-to` element.\");\n return false;\n }\n\n if( location == null ){\n Debug.writeMessage( \"You must add a `data-amplitude-location` attribute in seconds to your `amplitude-skip-to` element.\");\n return false;\n }\n\n return true;\n }\n\n #handleAudioChange( audioIndex ){\n let audioNavigation = new AudioNavigation();\n audioNavigation.changeAudio(\n config.audio[ parseInt( audioIndex ) ], parseInt( audioIndex ), true\n );\n }\n\n #playAudio(){\n let audio = new Audio();\n audio.play();\n }\n\n #skipToLocation( location ){\n let audio = new Audio();\n audio.skipToLocation( parseInt( location ) );\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { Checks as CollectionChecks } from \"@/services/Collections/Checks\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation\";\nimport { PlayPauseElement } from '@/elements/PlayPauseElement';\n\nexport class CollectionAudioSkipToElement {\n static collectionAudioSkipToElementQuery = \".amplitude-skip-to[data-amplitude-audio-index][data-amplitude-collection-key]\";\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioSkipToElement.collectionAudioSkipToElementQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n });\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n let collectionKey = element.getAttribute('data-amplitude-collection-key');\n let location = element.getAttribute('data-amplitude-location');\n\n if( this.#validElement( audioIndex, collectionKey, location ) ){\n this.#handleCollectionChange( collectionKey );\n this.#handleAudioChange( audioIndex, collectionKey );\n this.#playAudio();\n PlayPauseElement.syncAll();\n this.#skipToLocation( location );\n }\n }\n }\n\n #validElement( audioIndex, collectionKey, location ){\n if( audioIndex == null ){\n Debug.writeMessage( \"You must add a `data-amplitude-audio-index` attribute to your `amplitude-skip-to` element.\");\n return false;\n }\n\n if( collectionKey == null ){\n Debug.writeMessage( \"You must add a valid `data-amplitude-collection-key` attribute to your `amplitude-skip-to` element.\");\n return false;\n }\n\n if( location == null ){\n Debug.writeMessage( \"You must add a `data-amplitude-location` attribute in seconds to your `amplitude-skip-to` element.\");\n return false;\n }\n\n return true;\n }\n\n #handleCollectionChange( collection ){\n if( CollectionChecks.collectionChanged( collection ) ){ \n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.setActiveCollection( collection );\n }\n }\n\n #handleAudioChange( audioIndex, collectionKey ){\n let collectionNavigation = new CollectionNavigation();\n\n collectionNavigation.changeAudioCollection(\n collectionKey,\n config.collections[ collectionKey ].audio[ parseInt( audioIndex ) ],\n parseInt( audioIndex ),\n true\n );\n }\n\n #playAudio(){\n let audio = new Audio();\n audio.play();\n }\n\n #skipToLocation( location ){\n let audio = new Audio();\n audio.skipToLocation( parseInt( location ) );\n }\n}","import { AudioSkipToElement } from \"./SkipToElements/AudioSkipToElement\";\nimport { CollectionAudioSkipToElement } from \"./SkipToElements/CollectionAudioSkipToElement\";\n\nexport class SkipToElement {\n setUp(){\n this.#configureAudioSkipToElement();\n this.#configureCollectionAudioSkipToElement();\n }\n\n #configureAudioSkipToElement(){\n let audioSkipToElement = new AudioSkipToElement();\n audioSkipToElement.initialize();\n }\n\n #configureCollectionAudioSkipToElement(){\n let collectionAudioSkipToElement = new CollectionAudioSkipToElement();\n collectionAudioSkipToElement.initialize();\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { ConfigState } from \"@/services/ConfigState\";\n\n/**\n * Handles the configuration and managing of Stop elements\n * \n * A Stop element is defined as the following:\n * \n * Element: class=\"amplitude-stop\"\n * \n * Whenever this element is interacted with, the audio is stopped no matter where.\n */\nexport class StopElement {\n static stopElementQuery = '.amplitude-stop';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( StopElement.stopElementQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n audio.stop();\n\n PlayPauseElement.syncAll();\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { MuteElement } from \"./MuteElement\";\nimport { VolumeSliderElement } from \"./VolumeSliderElement\";\nimport { Debug } from \"@/services/Debug\";\n\n/**\n * Handles the configuration and managing of Volume Down elements\n * \n * A Volume Down element is defined as the following:\n * \n * Element: class=\"amplitude-volume-down\"\n * \n * Whenever this element is interacted with, the audio is muted no matter where.\n */\nexport class VolumeDownElement {\n static volumeDownElementQuery = '.amplitude-volume-down';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( VolumeDownElement.volumeDownElementQuery );\n }\n\n #bindInteractions(){\n if( this.#elements.length > 0 && ConfigState.isIos() ){\n Debug.writeMessage(\n \"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\"\n );\n }else{\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n let currentVolume = ConfigState.getVolume();\n let volumeDecrement = ConfigState.getVolumeDecrement();\n\n if( currentVolume - volumeDecrement > 0 ){\n audio.setVolume( currentVolume - volumeDecrement );\n }else{\n audio.setVolume( 0 );\n }\n\n MuteElement.syncElements();\n VolumeSliderElement.syncElements();\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { MuteElement } from \"./MuteElement\";\nimport { VolumeSliderElement } from \"./VolumeSliderElement\";\nimport { Debug } from \"@/services/Debug\";\n\n/**\n * Handles the configuration and managing of Volume Up elements\n * \n * A Volume Up element is defined as the following:\n * \n * Element: class=\"amplitude-volume-up\"\n * \n * Whenever this element is interacted with, the audio is muted no matter where.\n */\nexport class VolumeUpElement {\n static volumeUpElementQuery = '.amplitude-volume-up';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( VolumeUpElement.volumeUpElementQuery );\n }\n\n #bindInteractions(){\n if( this.#elements.length > 0 && ConfigState.isIos() ){\n Debug.writeMessage(\n \"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\"\n );\n }else{\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n let currentVolume = ConfigState.getVolume();\n let volumeIncrement = ConfigState.getVolumeIncrement();\n\n if( currentVolume + volumeIncrement <= 100 ){\n audio.setVolume( currentVolume + volumeIncrement );\n }else{\n audio.setVolume( 100 );\n }\n\n MuteElement.syncElements();\n VolumeSliderElement.syncElements();\n }\n }\n}","import { NextElement } from \"@/elements/NextElement\";\nimport { MetaDataElement } from \"@/elements/MetaDataElement\";\nimport { MuteElement } from \"@/elements/MuteElement\";\nimport { PauseElement } from \"@/elements/PauseElement\";\nimport { PlayElement } from \"@/elements/PlayElement\";\nimport { PlaybackSpeedElement } from \"@/elements/PlaybackSpeedElement\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { PreviousElement } from \"@/elements/PreviousElement\";\nimport { ShuffleElement } from \"@/elements/ShuffleElement\";\nimport { SkipToElement } from \"@/elements/SkipToElement\";\nimport { StopElement } from \"@/elements/StopElement\";\nimport { TrackerElement } from \"@/elements/TrackerElement\";\nimport { VolumeDownElement } from \"@/elements/VolumeDownElement\";\nimport { VolumeSliderElement } from \"@/elements/VolumeSliderElement\";\nimport { VolumeUpElement } from \"@/elements/VolumeUpElement\";\n\nexport class ElementsManager{\n setVisualElementsDefaults(){\n\n }\n\n initializeElements(){\n this.#initializeMetaData();\n this.#initializePlayElement();\n this.#initializePauseElement();\n this.#initializePlayPauseElement();\n this.#initializeNextElement();\n this.#initializePreviousElement();\n this.#initializeMuteElement();\n this.#initializeVolumeSliderElement();\n this.#initializePlaybackSpeedElement();\n this.#initializeStopElement();\n this.#initializeVolumeDownElement();\n this.#initializeVolumeUpElement();\n this.#initializeShuffleElement();\n this.#initializeSkipToElement();\n this.#initializeTrackerElement();\n }\n\n #initializeMetaData(){\n let metaDataElement = new MetaDataElement();\n metaDataElement.syncMetaData();\n }\n\n #initializePlayElement(){\n let playElement = new PlayElement();\n playElement.setUp();\n }\n\n #initializePauseElement(){\n let pauseElement = new PauseElement();\n pauseElement.setUp();\n }\n\n #initializePlayPauseElement(){\n let playPauseElement = new PlayPauseElement();\n playPauseElement.setUp();\n }\n\n #initializeNextElement(){\n let nextElement = new NextElement();\n nextElement.setUp();\n }\n\n #initializePreviousElement(){\n let previousElement = new PreviousElement();\n previousElement.setUp();\n }\n\n #initializeMuteElement(){\n let muteElement = new MuteElement();\n muteElement.setUp();\n }\n\n #initializeVolumeSliderElement(){\n let volumeSliderElement = new VolumeSliderElement();\n volumeSliderElement.setUp();\n }\n\n #initializePlaybackSpeedElement(){\n let playbackSpeedElement = new PlaybackSpeedElement();\n playbackSpeedElement.setUp();\n }\n\n #initializeStopElement(){\n let stopElement = new StopElement();\n stopElement.setUp();\n }\n\n #initializeVolumeDownElement(){\n let volumeDownElement = new VolumeDownElement();\n volumeDownElement.setUp();\n }\n\n #initializeVolumeUpElement(){\n let volumeUpElement = new VolumeUpElement();\n volumeUpElement.setUp();\n }\n\n #initializeShuffleElement(){\n let shuffleElement = new ShuffleElement();\n shuffleElement.setUp();\n }\n\n #initializeSkipToElement(){\n let skipToElement = new SkipToElement();\n skipToElement.setUp();\n }\n\n #initializeTrackerElement(){\n let trackerElement = new TrackerElement();\n trackerElement.setUp();\n }\n}","import { config } from '@/config.js';\n\nexport class Collections{\n constructor(){\n\n }\n\n initializeCollections(){\n if( config.collections.length > 0 ){\n this.#syncSoundCloudData();\n this.#setActiveIndexes();\n this.#initializeShuffle();\n this.#initializeRepeat();\n }\n }\n\n /**\n * @todo Implement Sound Cloud\n */\n #syncSoundCloudData(){\n // /*\n // Iterate over all of the config's playlists\n // */\n // for (let key in config.playlists) {\n // /*\n // Checks if the playlist key is accurate.\n // */\n // if (config.playlists.hasOwnProperty(key)) {\n // /*\n // Checks if the playlist has songs.\n // */\n // if (config.playlists[key].songs) {\n // /*\n // Iterate over all of the songs in the playlist\n // */\n // for (let i = 0; i < config.playlists[key].songs.length; i++) {\n // if (Checks.isInt(config.playlists[key].songs[i])) {\n // config.playlists[key].songs[i] =\n // config.songs[config.playlists[key].songs[i]];\n \n // config.playlists[key].songs[i].index = i;\n // }\n // /*\n // Check to see if the index for the song in the playlist\n // exists in the songs config.\n // */\n // if (\n // Checks.isInt(config.playlists[key].songs[i]) &&\n // !config.songs[config.playlists[key].songs[i]]\n // ) {\n // Debug.writeMessage(\n // \"The song index: \" +\n // config.playlists[key].songs[i] +\n // \" in playlist with key: \" +\n // key +\n // \" is not defined in your songs array!\"\n // );\n // }\n \n // /*\n // If not an int, then is a dedicated song, just set the index.\n // */\n // if (!Checks.isInt(config.playlists[key].songs[i]) ){\n // config.playlists[key].songs[i].index = i;\n // }\n // }\n // }\n // }\n // }\n }\n\n #setActiveIndexes(){\n config.collections.forEach( ( collection ) => {\n collection.active_index = null;\n } );\n }\n\n #initializeShuffle(){\n config.collections.forEach( ( collection ) => {\n collection.shuffle = false;\n collection.shuffle_list = [];\n } );\n }\n\n #initializeRepeat(){\n config.collections.forEach( ( collection ) => {\n collection.repeat = false;\n } );\n\n console.log( config );\n }\n}","import { Collections } from \"@/init/Collections\";\nimport { config } from '@/config.js';\nimport { MuteElement } from '@/elements/MuteElement';\nimport { PlaybackSpeedElement } from '@/elements/PlaybackSpeedElement';\n\nexport class UserConfig {\n copyUserSettings( userConfig ){\n this.setAudio( userConfig.audio );\n\t\tthis.setCollections( userConfig.collections );\n\t\tthis.setVolume( userConfig.volume );\n\t\tthis.setDebug( userConfig.debug );\n\t\tthis.setDefaultArtwork( userConfig.default_artwork );\n\t\tthis.setPlaybackSpeed( userConfig.playback_speed );\n\t\tthis.setCallbacks( userConfig.callbacks );\n }\n\n setAudio( value ){\n\t\tconfig.audio = value != undefined ? value : [];\n\n\t\tthis.#setDefaultLiveSettings();\n\t\tthis.#setDefaultAudioIndices();\n\t}\n\n #setDefaultLiveSettings(){\n\t\tconfig.audio.forEach( ( audio, index ) => {\n\t\t\tif( audio.live == undefined ){\n\t\t\t\taudio.live = false;\n\t\t\t}\n\t\t});\n\t}\n\n\t#setDefaultAudioIndices(){\n\t\tconfig.audio.forEach( ( audio, index ) => {\n\t\t\taudio.index = index;\n\t\t});\n\t}\n\n setCollections( userCollections ){\n\t\tconfig.collections = userCollections;\n\n let collections = new Collections();\n collections.initializeCollections();\n\t}\n\n setVolume( volume ){\n\t\tconfig.volume.current = volume && volume.initial ? volume.initial : 50;\n\t\tconfig.volume.increment = volume && volume.increment ? volume.increment : 5;\n\t\tconfig.volume.decrement = volume && volume.decrement ? volume.decrement : 5;\n\n\t\tMuteElement.syncElements();\n\t}\n\n setDebug( value ){\n\t\tconfig.debug = value != undefined ? value : false;\n\t}\n\n\tsetDefaultArtwork( value ){\n\t\tconfig.default_artwork = value != undefined ? value : false;\n\t}\n\n setPlaybackSpeed( speed ){\n\t\tconfig.playback_speed = speed != undefined ? speed : 1.0;\n\n\t\tPlaybackSpeedElement.syncElements();\n\t}\n\n\tsetCallbacks( callbacks ){\n\t\tconfig.callbacks = callbacks != undefined ? callbacks : [];\n\t}\n}","import { Debug } from \"@/services/Debug\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { EventManager } from \"@/services/EventManager\";\nimport { ElementsManager } from \"@/services/ElementsManager\";\nimport { UserConfig } from \"@/init/UserConfig\";\nimport { config } from \"../config\";\nimport { Navigation as AudioNavigation } from \"@/services/Audio/Navigation\";\nimport { Callbacks } from \"@/services/Callbacks\";\n\nexport class Initializer{\n #element;\n #userConfig;\n #configState;\n #ready = false;\n\n constructor( userConfig, element ){\n this.#configState = new ConfigState();\n this.#configState.setIsMobile();\n this.#userConfig = userConfig;\n this.#element = element;\n }\n\n setup(){\n if( this.#isValidUrl( this.#userConfig ) ){\n this.#loadUserConfig();\n }else{\n this.#prepareAmplitude();\n }\n }\n\n #isValidUrl(url){\n try {\n new URL(url);\n } catch (e) {\n Debug.writeMessage('AmplitudeJS must be initialized with a JSON object or a valid URL.')\n return false;\n }\n\n return true;\n }\n\n #loadUserConfig(){\n fetch( this.#userConfig )\n .then( ( response ) => {\n if( response.status != 200 ){\n throw response.status;\n }else{\n return response.json();\n }\n })\n .then( ( data ) => {\n this.#userConfig = data;\n this.#prepareAmplitude();\n })\n .catch( ( error ) => {\n Debug.writeMessage( error );\n })\n }\n\n #prepareAmplitude(){\n this.#resetConfig();\n this.#copyUserConfig();\n this.#initializeAudio();\n this.#initializeEvents();\n this.#initializeElements();\n this.#initializeCallbacks();\n }\n\n // Ensure we have a blank slate on initialization.\n #resetConfig(){\n this.#configState.resetConfig();\n }\n\n #copyUserConfig(){\n let userConfigInit = new UserConfig();\n userConfigInit.copyUserSettings( this.#userConfig );\n }\n\n #initializeEvents(){\n let eventManager = new EventManager();\n eventManager.initializeAllEvents();\n }\n\n #initializeAudio(){\n let audioNavigator = new AudioNavigation();\n\n if( config.start_audio ){\n \n }else{\n audioNavigator.changeAudio( config.audio[0], 0 );\n }\n }\n\n #initializeElements(){\n let elementsManager = new ElementsManager();\n elementsManager.initializeElements();\n }\n\n #initializeCallbacks(){\n let callbacks = new Callbacks();\n callbacks.handleNativeAudioElementEvents();\n }\n}","import { Initializer } from \"@/init/Initializer\";\n\n/**\n * The main init function. The user will call this through\n * Amplitude.init() and pass in their settings.\n *\n * Public Accessor: Amplitude.init( user_config_json )\n * @access public\n * @param {object|url} userConfig - A URL or JSON object of user defined values that help configure and initialize AmplitudeJS.\n * @param {string|element} element - A unique identifier or DOM Element to bind Amplitude methods to.\n */\nexport function init( userConfig = {}, element = null ){\n let initializer = new Initializer( userConfig, element );\n initializer.setup();\n}","import { config } from \"@/config.js\";\n\n/**\n * Returns the current config for AmplitudeJS\n * \n * Public Method: Amplitude.getConfig()\n * \n * @access public\n * @returns {object} \n */\nexport function getConfig(){\n return config;\n}","import { config } from \"@/config.js\";\n\n/**\n * Returns the key of the active playlist\n * \n * Public Method: Amplitude.getActivePlaylist()\n * \n * @access public\n * @returns {string} \n */\n export function getActivePlaylist(){\n return config.active_playlist;\n}","import { config } from \"@/config.js\";\nimport { Debug } from \"@/services/Debug\";\n\nconst validEventListeners = [\n 'abort',\n 'error',\n 'loadeddata',\n 'loadedmetadata',\n 'loadstart',\n 'pause',\n 'playing',\n 'play',\n 'progress',\n 'ratechange',\n 'seeked',\n 'seeking',\n 'stalled',\n 'suspend',\n 'timeupdate',\n 'volumechange',\n 'waiting',\n 'canplay',\n 'canplaythrough',\n 'durationchange',\n 'ended'\n];\n\n/**\n * Binds an event listener to a native HTML 5 event\n * emitted from the audio element.\n * \n * Public Accessor: Amplitude.addAudioEventListener( event, method )\n * @access public\n * @param string event - The event name you want to bind a listener to.\n * @param string method - The method you are binding to the event.\n */\nexport function addAudioEventListener( event, method ){\n if( validEventListeners.indexOf( event ) > -1 ){\n config.audio_element.addEventListener( event, method );\n }else{\n Debug.writeMessage( \"Invalid event listener. Please see all valid events here: https://www.w3schools.com/tags/ref_av_dom.asp\")\n }\n}","/**\n * @name AmplitudeJS\n * @author Dan Pastori (Server Side Up) \n */\nimport * as initMethods from \"@/methods/init.js\";\nimport * as configMethods from \"@/methods/config.js\";\nimport * as playlistMethods from \"@/methods/playlists.js\";\nimport * as eventListeners from \"@/methods/eventListeners.js\";\n\n/**\n * Amplitude is an interface to the public methods.\n * All public methods are in the /methods directory.\n * These methods use clases to perform functionality.\n * The state is stored in /config.js\n *\n * @module Amplitude\n */\nconst Amplitude = (function(){\n return {\n ...initMethods,\n ...configMethods,\n ...playlistMethods,\n ...eventListeners\n }\n})();\n\nexport default Amplitude;"],"names":["config","version","Debug","Audio","Checks","CollectionChecks","CollectionNavigation","Navigation","AudioChecks","AudioNavigation"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,GAAoB,QAAS,CAAO,EAAG,GACvCA,EAAO,cAAc,iBAAkB,EAAO,CAAM,EAEpDE,EAAM,aAAc,yGAAyG,CAErI,8HCzBM,GAAa,UAAU,CACzB,MAAO,CACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,EACN,CACL,EAAC"} \ No newline at end of file diff --git a/dist/amplitude.min.js b/dist/amplitude.min.js deleted file mode 100644 index 353ece0b..00000000 --- a/dist/amplitude.min.js +++ /dev/null @@ -1 +0,0 @@ -!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;a0&&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)+11&&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=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=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=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=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=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;t0;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;a0;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;a0&&e.length>0)for(var i=0;i0?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;e0)for(var t=0;t3&&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;t0))for(var u=0;u0&&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;e0)for(var t=0;tp&&(p=y),yn[2*o])&&(n[2*o]=p),(0===i||c0}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;t0||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;l0||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=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;t0&&(a=e.hours+":"+a);for(var l=0;l0&&(a=e.hours+":"+a);for(var l=0;l0&&(a=e.hours+":"+a);for(var l=0;l0&&(l=e.hours+":"+l);for(var n=0;n0&&(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;a0&&(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"}}])}); \ No newline at end of file diff --git a/dist/amplitude.mjs b/dist/amplitude.mjs new file mode 100644 index 00000000..f6e3e369 --- /dev/null +++ b/dist/amplitude.mjs @@ -0,0 +1,2398 @@ +var Hr = Object.defineProperty; +var Vr = (h, e, l) => e in h ? Hr(h, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : h[e] = l; +var r = (h, e, l) => (Vr(h, typeof e != "symbol" ? e + "" : e, l), l), us = (h, e, l) => { + if (!e.has(h)) + throw TypeError("Cannot " + l); +}; +var c = (h, e, l) => (us(h, e, "read from private field"), l ? l.call(h) : e.get(h)), i = (h, e, l) => { + if (e.has(h)) + throw TypeError("Cannot add the same private member more than once"); + e instanceof WeakSet ? e.add(h) : e.set(h, l); +}, u = (h, e, l, a) => (us(h, e, "write to private field"), a ? a.call(h, l) : e.set(h, l), l); +var t = (h, e, l) => (us(h, e, "access private method"), l); +const Fr = "amplitudejs", jr = "6.0.0", Or = "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://serversideup.net/open-source/amplitudejs", Br = "dist/amplitude.js", Kr = { + vite: "^3.0.0" +}, Yr = { + doc: "docs" +}, Rr = [ + "dist" +], $r = { + type: "opencollective", + url: "https://opencollective.com/amplitudejs" +}, Wr = { + dev: "vite", + build: "vite build", + 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" +}, Jr = { + type: "git", + url: "git+https://github.com/521dimensions/amplitudejs.git" +}, Xr = [ + "webaudio", + "html5", + "javascript", + "audio-player" +], Zr = "521 Dimensions (https://521dimensions.com)", Gr = "MIT", eh = { + url: "https://github.com/521dimensions/amplitudejs/issues" +}, th = "https://github.com/521dimensions/amplitudejs#readme", ih = { + name: Fr, + version: jr, + description: Or, + main: Br, + devDependencies: Kr, + directories: Yr, + files: Rr, + funding: $r, + scripts: Wr, + repository: Jr, + keywords: Xr, + author: Zr, + license: Gr, + bugs: eh, + homepage: th +}, n = { + audio_element: new Audio(), + mobile: !1, + version: ih, + active_metadata: {}, + active_album: "", + active_index: 0, + active_podcast: null, + active_playlist: null, + active_collection: null, + playback_speed: 1, + repeat: !1, + shuffle_list: {}, + repeat_audio: !1, + shuffle_on: !1, + callbacks: [], + audio: [], + collections: [], + debug: !0, + default_artwork: "", + default_playlist_art: "", + start_audio: "", + starting_playlist: "", + starting_playlist_song: "", + starting_podcast: "", + starting_podcast_episode: "", + volume: { + current: 50, + increment: 5, + decrement: 5, + pre_mute_level: 50 + }, + soundcloud: { + client: "", + use_art: !1, + audio_count: 0, + ready_count: 0 + }, + is_touch_moving: !1, + buffered: 0, + bindings: {}, + continue_next: !0, + delay: 0, + player_state: "stopped", + time_format: "MM:SS", + web_audio_api: { + availabile: !1, + context: null, + source: null, + analyser: null + }, + visualizations: { + available: [], + active: [], + backup: "" + }, + waveforms: { + sample_rate: 100, + built: [] + } +}; +class y { + static writeMessage(e) { + n.debug && console.log(e); + } +} +class o { + setIsMobile() { + /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? n.mobile = !0 : n.mobile = !1; + } + static isIos() { + return /iPhone|iPad|iPod/i.test(navigator.userAgent); + } + static isIE() { + return window.navigator.userAgent.indexOf("MSIE ") > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./); + } + static isMobile() { + return n.mobile; + } + static isTouchMoving() { + return n.is_touch_moving; + } + static getAudioState() { + return n.audio_element.paused ? "paused" : "playing"; + } + static getScope() { + return n.active_collection == "" || n.active_collection == null ? "audio" : "collection"; + } + static getVolume() { + return n.volume.current; + } + static getVolumeIncrement() { + return n.volume.increment; + } + static getVolumeDecrement() { + return n.volume.decrement; + } + static getPreMuteVolume() { + return n.volume.pre_mute_level; + } + static setPreMuteVolume(e = null) { + e || (e = n.volume.current), n.volume.pre_mute_level = e; + } + static getPlaybackSpeed() { + return n.playback_speed; + } + static isCollectionShuffled(e) { + return !!(n.collections[e] && n.collections[e].shuffled); + } + static setCollectionShuffled(e, l, a) { + n.collections[e].shuffled = l, n.collections[e].audio = a; + } + static getCollectionAudio(e) { + return n.collections[e].audio; + } + static getActiveCollection() { + return n.active_collection; + } + static getActiveAudioIndex() { + return n.active_index; + } + static getContinueNext() { + return n.continue_next; + } + static updateBufferedTime() { + if (n.audio_element.buffered.length - 1 >= 0) { + let e = n.audio_element.buffered.end(n.audio_element.buffered.length - 1), l = n.audio_element.duration; + n.buffered = e / l * 100; + } + } + static getBufferedPercentage() { + return parseFloat(n.buffered) / 100; + } + static isLive() { + return n.active_metadata.live; + } + static getTimeFormat() { + return n.time_format; + } + static getCallback(e) { + let l = !1; + return n.callbacks.forEach(function(a) { + a.event == e && (l = a); + }), l; + } + resetConfig() { + n.audio_element = new Audio(), n.active_metadata = {}, n.active_album = "", n.active_index = 0, n.active_playlist = null, n.playback_speed = 1, n.audio = [], n.playlists = {}, n.start_audio = "", n.starting_playlist = "", n.starting_playlist_song = "", n.repeat = !1, n.shuffle_list = {}, n.shuffle_on = !1, n.default_artwork = "", n.default_playlist_art = "", n.debug = !0, n.callbacks = [], n.volume = { + current: 50, + increment: 5, + decrement: 5, + pre_mute_level: 50 + }, n.soundcloud = { + client: "", + use_art: !1, + audio_count: 0, + ready_count: 0 + }, n.continue_next = !0; + } + static setPlayerState() { + n.audio_element.paused && n.audio_element.currentTime == 0 && (n.player_state = "stopped"), n.audio_element.paused && n.audio_element.currentTime > 0 && (n.player_state = "paused"), n.audio_element.paused || (n.player_state = "playing"); + } +} +var sl; +const Es = class { + constructor() { + i(this, sl, [ + "abort", + "error", + "loadeddata", + "loadedmetadata", + "loadstart", + "pause", + "playing", + "play", + "progress", + "ratechange", + "seeked", + "seeking", + "stalled", + "suspend", + "timeupdate", + "volumechange", + "waiting", + "canplay", + "canplaythrough", + "durationchange", + "ended" + ]); + } + handleNativeAudioElementEvents() { + c(this, sl).forEach(function(e) { + n.audio_element.addEventListener(e, function() { + Es.run(e); + }); + }); + } + static run(e) { + let l = o.getCallback(e); + if (l) { + y.writeMessage("Running Callback for event '" + l.event + "' with method '" + l.handler + "'"); + try { + window[l.handler](); + } catch (a) { + if (a.message == "CANCEL EVENT") + throw a; + y.writeMessage(a.message); + } + } + } +}; +let g = Es; +sl = new WeakMap(); +var cl, Bs, Et, ds, ul, Ks, At, rs, dl, Ys, bt, hs, rl, Rs, hl, $s; +class p { + constructor() { + i(this, cl); + i(this, Et); + i(this, ul); + i(this, At); + i(this, dl); + i(this, bt); + i(this, rl); + i(this, hl); + } + play() { + t(this, cl, Bs).call(this), t(this, ul, Ks).call(this), t(this, dl, Ys).call(this), o.setPlayerState(); + } + pause() { + t(this, Et, ds).call(this), t(this, bt, hs).call(this), t(this, At, rs).call(this), o.setPlayerState(); + } + stop() { + t(this, Et, ds).call(this), this.setCurrentTime(0), t(this, bt, hs).call(this), t(this, At, rs).call(this), o.setPlayerState(), g.run("stop"); + } + skipToLocation(e) { + n.active_metadata.live || n.audio_element.addEventListener("canplaythrough", function() { + n.audio_element.duration >= e && e > 0 ? n.audio_element.currentTime = e : y.writeMessage("Amplitude can't skip to a location greater than the duration of the audio or less than 0."); + }, { once: !0 }); + } + setVolume(e) { + t(this, rl, Rs).call(this, e), t(this, hl, $s).call(this, e); + } + setAudioLocation(e) { + n.active_metadata.live || (n.audio_element.currentTime = n.audio_element.duration * (e / 100)); + } + setPlaybackSpeed(e) { + n.playback_speed = e, n.audio_element.playbackRate = n.playback_speed; + } + setCurrentTime(e) { + isFinite(e) && (n.audio_element.currentTime = e); + } +} +cl = new WeakSet(), Bs = function() { +}, Et = new WeakSet(), ds = function() { +}, ul = new WeakSet(), Ks = function() { + (n.active_metadata.live || o.isMobile() && !n.paused) && (n.audio_element.src = n.active_metadata.url, n.audio_element.load()); +}, At = new WeakSet(), rs = function() { + n.active_metadata.live && (n.audio_element.src = "", n.audio_element.load()); +}, dl = new WeakSet(), Ys = function() { + let e = n.audio_element.play(); + e !== void 0 && e.then((l) => { + }).catch((l) => { + }), n.audio_element.playbackRate = n.playback_speed; +}, bt = new WeakSet(), hs = function() { + n.audio_element.pause(), n.paused = !0; +}, rl = new WeakSet(), Rs = function(e) { + e == 0 ? n.audio_element.muted = !0 : n.audio_element.muted = !1; +}, hl = new WeakSet(), $s = function(e) { + n.volume.current = e, n.audio_element.volume = e / 100; +}; +var kt, xt, ml, Ws, pl, Js, Q, Te; +const rt = class { + constructor() { + i(this, ml); + i(this, pl); + i(this, Q); + i(this, kt, void 0); + i(this, xt, void 0); + u(this, xt, o.isMobile()); + } + initialize() { + t(this, ml, Ws).call(this), t(this, pl, Js).call(this); + } + static syncUI() { + let e = o.getAudioState(); + document.querySelectorAll(rt.globalPlayPauseQuery).forEach((a) => { + e == "playing" ? m.setElementPlay(a) : m.setElementPause(a); + }); + } + static syncToPause() { + document.querySelectorAll(rt.globalPlayPauseQuery).forEach((l) => { + m.setElementPause(l); + }); + } +}; +let ge = rt; +kt = new WeakMap(), xt = new WeakMap(), ml = new WeakSet(), Ws = function() { + u(this, kt, document.querySelectorAll(rt.globalPlayPauseQuery)); +}, pl = new WeakSet(), Js = function() { + c(this, kt).forEach((e) => { + c(this, xt) ? (e.removeEventListener("touchend", t(this, Q, Te)), e.addEventListener("touchend", t(this, Q, Te))) : (e.removeEventListener("click", t(this, Q, Te)), e.addEventListener("click", t(this, Q, Te))); + }); +}, Q = new WeakSet(), Te = function() { + if (!o.isTouchMoving()) { + let e = new p(); + n.audio_element.paused ? e.play() : e.pause(), m.syncAll(); + } +}, r(ge, "globalPlayPauseQuery", ".amplitude-play-pause:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"); +class E { + static collectionExists(e) { + return !!n.collections[e]; + } + static collectionChanged(e) { + return n.active_collection != e; + } + static isCollectionShuffled(e) { + return !!n.collections[e].shuffle; + } +} +var Lt, It, fl, Xs, yl, Zs, z, we, vl, Gs, gl, ec; +const ht = class { + constructor() { + i(this, fl); + i(this, yl); + i(this, z); + i(this, vl); + i(this, gl); + i(this, Lt, void 0); + i(this, It, void 0); + u(this, It, o.isMobile()); + } + initialize() { + t(this, fl, Xs).call(this), t(this, yl, Zs).call(this); + } + static syncUI() { + let e = o.getAudioState(), l = document.querySelectorAll(ht.collectionPlayPauseQuery), a = o.getActiveCollection(); + l.forEach((s) => { + let d = s.getAttribute("data-amplitude-collection-key"); + e == "playing" && a == d ? m.setElementPlay(s) : m.setElementPause(s); + }); + } + static syncToPause() { + document.querySelectorAll(ht.collectionPlayPauseQuery).forEach((l) => { + m.setElementPause(l); + }); + } +}; +let Ee = ht; +Lt = new WeakMap(), It = new WeakMap(), fl = new WeakSet(), Xs = function() { + u(this, Lt, document.querySelectorAll(ht.collectionPlayPauseQuery)); +}, yl = new WeakSet(), Zs = function() { + c(this, Lt).forEach((e) => { + c(this, It) ? (e.removeEventListener("touchend", t(this, z, we)), e.addEventListener("touchend", t(this, z, we).bind(this, e))) : (e.removeEventListener("click", t(this, z, we)), e.addEventListener("click", t(this, z, we).bind(this, e))); + }); +}, z = new WeakSet(), we = function(e) { + if (!o.isTouchMoving()) { + let l = e.getAttribute("data-amplitude-collection-key"); + if (!E.collectionExists(l)) + return y.writeMessage('Collection with key "' + l + '" does not exist! Please define this collection in your configuration.'), !1; + t(this, vl, Gs).call(this, l), t(this, gl, ec).call(this), m.syncAll(); + } +}, vl = new WeakSet(), Gs = function(e) { + if (E.collectionChanged(e)) { + let l = new v(); + l.setActiveCollection(e), E.isCollectionShuffled(e) ? l.changeAudioCollection(e, n.collections[e].shuffle_list[0], 0, !0) : l.changeAudioCollection(e, n.collections[e].audio[0], 0); + } +}, gl = new WeakSet(), ec = function() { + let e = new p(); + n.audio_element.paused ? e.play() : e.pause(); +}, r(Ee, "collectionPlayPauseQuery", ".amplitude-play-pause[data-amplitude-collection-key]:not([data-amplitude-audio-index])"); +class Ie { + static audioExists(e) { + return !!n.audio[e]; + } + static audioChanged(e, l = null) { + return n.active_collection != l ? !0 : n.active_collection == null && l == null ? n.active_index != e : n.active_collection == collection && n.collections[l].active_index != e; + } +} +var El, Al, tc, bl, ic, kl, lc, xl, nc, U, Me; +const me = class { + constructor() { + i(this, Al); + i(this, bl); + i(this, kl); + i(this, xl); + i(this, U); + i(this, El, [ + "cover_art_url", + "station_art_url", + "podcast_episode_cover_art_url", + "album_art_url" + ]); + } + displayMetaData() { + t(this, Al, tc).call(this), t(this, bl, ic).call(this); + } + displayCollectionMetaData() { + } + syncMetaData() { + t(this, kl, lc).call(this), t(this, xl, nc).call(this), this.displayCollectionMetaData(); + } +}; +let A = me; +El = new WeakMap(), Al = new WeakSet(), tc = function() { + document.querySelectorAll(me.globalMetaDataElementsQuery).forEach((l) => { + let a = l.getAttribute("data-amplitude-audio-info"), s = n.active_metadata[a] != null ? n.active_metadata[a] : null; + t(this, U, Me).call(this, a, s, l); + }); +}, bl = new WeakSet(), ic = function() { + document.querySelectorAll(me.collectionMetaDataElementsQuery).forEach((l) => { + let a = l.getAttribute("data-amplitude-audio-info"), s = n.active_metadata[a] != null ? n.active_metadata[a] : null; + t(this, U, Me).call(this, a, s, l); + }); +}, kl = new WeakSet(), lc = function() { + document.querySelectorAll(me.audioMetaDataElementsQuery).forEach((l) => { + let a = l.getAttribute("data-amplitude-audio-info"), s = l.getAttribute("data-amplitude-audio-index"), d = n.audio[s][a] != null ? n.audio[s][a] : null; + t(this, U, Me).call(this, a, d, l); + }); +}, xl = new WeakSet(), nc = function() { + document.querySelectorAll(me.collectionAudioMetaDataElementsQuery).forEach((l) => { + let a = l.getAttribute("data-amplitude-audio-info"), s = l.getAttribute("data-amplitude-audio-index"), d = l.getAttribute("data-amplitude-collection-key"), f = n.collections[d].audio[s][info] != null ? n.collections[d].audio[s][info] : null; + t(this, U, Me).call(this, a, f, l); + }); +}, U = new WeakSet(), Me = function(e, l, a) { + c(this, El).indexOf(e) >= 0 ? (l = l || n.default_art, a.setAttribute("src", l)) : (l = l || "", a.innerHTML = l); +}, r(A, "globalMetaDataElementsQuery", "[data-amplitude-audio-info]:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"), r(A, "collectionMetaDataElementsQuery", "[data-amplitude-audio-info][data-amplitude-collection-key]:not([data-amplitude-audio-index])"), r(A, "audioMetaDataElementsQuery", "[data-amplitude-audio-info][data-amplitude-audio-index]:not([data-amplitude-collection-key])"), r(A, "collectionAudioMetaDataElementsQuery", "[data-amplitude-audio-info][data-amplitude-audio-index][data-amplitude-collection-key]"), r(A, "collectionInfoElementsQuery", "[data-amplitude-collection-info]"); +var St, Tt, Ll, ac, Il, oc, Sl, sc, Tl, cc; +const As = class { + constructor() { + i(this, Ll); + i(this, Il); + i(this, Sl); + i(this, Tl); + i(this, St, void 0); + i(this, Tt, void 0); + } + setActive() { + o.getScope() == "audio" && (t(this, Ll, ac).call(this), t(this, Il, oc).call(this), t(this, Sl, sc).call(this), t(this, Tl, cc).call(this)); + } +}; +let qi = As; +St = new WeakMap(), Tt = new WeakMap(), Ll = new WeakSet(), ac = function() { + u(this, St, document.querySelectorAll(As.audioContainerElementQuery)); +}, Il = new WeakSet(), oc = function() { + c(this, St).forEach(function(e) { + e.classList.remove("amplitude-active-audio-container"); + }); +}, Sl = new WeakSet(), sc = function() { + u(this, Tt, n.active_index); +}, Tl = new WeakSet(), cc = function() { + document.querySelectorAll('.amplitude-audio-container[data-amplitude-audio-index="' + c(this, Tt) + '"]:not([data-amplitude-collection-key])').forEach(function(l) { + l.classList.add("amplitude-active-audio-container"); + }); +}, r(qi, "audioContainerElementQuery", ".amplitude-audio-container[data-amplitude-audio-index]:not([data-amplitude-collection-key])"); +var wt, Mt, q, b, wl, uc, Ml, dc, Cl, rc, _l, hc; +const bs = class { + constructor(e) { + i(this, wl); + i(this, Ml); + i(this, Cl); + i(this, _l); + i(this, wt, void 0); + i(this, Mt, void 0); + i(this, q, void 0); + i(this, b, void 0); + u(this, wt, e); + } + setActive() { + o.getScope() == "collection" && (t(this, wl, uc).call(this), t(this, Ml, dc).call(this), t(this, Cl, rc).call(this), t(this, _l, hc).call(this)); + } +}; +let Ni = bs; +wt = new WeakMap(), Mt = new WeakMap(), q = new WeakMap(), b = new WeakMap(), wl = new WeakSet(), uc = function() { + u(this, Mt, document.querySelectorAll(bs.collectionAudioContainerElementQuery)); +}, Ml = new WeakSet(), dc = function() { + c(this, Mt).forEach(function(e) { + e.classList.remove("amplitude-active-audio-container"); + }); +}, Cl = new WeakSet(), rc = function() { + u(this, b, o.getActiveCollection()), c(this, wt) ? u(this, q, n.collections[c(this, b)].active_index) : o.isCollectionShuffled(c(this, b)) ? u(this, q, n.collections[c(this, b)].shuffle_list[n.collections[c(this, b)].active_index].index) : u(this, q, n.collections[c(this, b)].active_index); +}, _l = new WeakSet(), hc = function() { + document.querySelectorAll('.amplitude-audio-container[data-amplitude-audio-index="' + c(this, q) + '"][data-amplitude-collection-key="' + c(this, b) + '"]').forEach(function(l) { + l.classList.add("amplitude-active-audio-container"); + }); +}, r(Ni, "collectionAudioContainerElementQuery", ".amplitude-audio-container[data-amplitude-audio-index][data-amplitude-collection-key]"); +var Pl, pc, Ql, fc; +class mc { + constructor() { + i(this, Pl); + i(this, Ql); + } + setActiveContainers(e) { + t(this, Pl, pc).call(this), t(this, Ql, fc).call(this, e); + } +} +Pl = new WeakSet(), pc = function() { + new qi().setActive(); +}, Ql = new WeakSet(), fc = function(e) { + new Ni(e).setActive(); +}; +var zl, yc, Ul, vc, ql, gc, Nl, Ec; +class Se { + constructor() { + i(this, zl); + i(this, Ul); + i(this, ql); + i(this, Nl); + } + changeAudio(e, l, a = !1) { + t(this, zl, yc).call(this, e), t(this, Ul, vc).call(this, e, l), t(this, ql, gc).call(this, a); + } +} +zl = new WeakSet(), yc = function(e) { + new p().stop(), m.syncAllToPause(); +}, Ul = new WeakSet(), vc = function(e, l) { + n.active_collection = null, n.audio_element.src = e.url, n.active_metadata = e, n.active_index = parseInt(l); +}, ql = new WeakSet(), gc = function(e) { + t(this, Nl, Ec).call(this), new mc().setActiveContainers(e), g.run("audio_change"); +}, Nl = new WeakSet(), Ec = function() { + new A().displayMetaData(); +}; +var Ct, _t, Dl, Ac, Hl, bc, N, Ce, Vl, kc, Fl, xc, jl, Lc; +const mt = class { + constructor() { + i(this, Dl); + i(this, Hl); + i(this, N); + i(this, Vl); + i(this, Fl); + i(this, jl); + i(this, Ct, void 0); + i(this, _t, void 0); + u(this, _t, o.isMobile()); + } + initialize() { + t(this, Dl, Ac).call(this), t(this, Hl, bc).call(this); + } + static syncUI() { + let e = o.getAudioState(), l = document.querySelectorAll(mt.audioPlayPauseQuery), a = o.getActiveAudioIndex(); + l.forEach((s) => { + let d = s.getAttribute("data-amplitude-audio-index"); + e == "playing" && a == d ? m.setElementPlay(s) : m.setElementPause(s); + }); + } + static syncToPause() { + document.querySelectorAll(mt.audioPlayPauseQuery).forEach((l) => { + m.setElementPause(l); + }); + } +}; +let Ae = mt; +Ct = new WeakMap(), _t = new WeakMap(), Dl = new WeakSet(), Ac = function() { + u(this, Ct, document.querySelectorAll(mt.audioPlayPauseQuery)); +}, Hl = new WeakSet(), bc = function() { + c(this, Ct).forEach((e) => { + c(this, _t) ? (e.removeEventListener("touchend", t(this, N, Ce)), e.addEventListener("touchend", t(this, N, Ce).bind(this, e))) : (e.removeEventListener("click", t(this, N, Ce)), e.addEventListener("click", t(this, N, Ce).bind(this, e))); + }); +}, N = new WeakSet(), Ce = function(e) { + if (!o.isTouchMoving()) { + let l = e.getAttribute("data-amplitude-audio-index"); + if (!Ie.audioExists(l)) + return y.writeMessage('Audio with index "' + l + '" does not exist! Please add an audio object at this index in your configuration.'), !1; + t(this, Vl, kc).call(this, l), t(this, Fl, xc).call(this, l), t(this, jl, Lc).call(this), m.syncAll(); + } +}, Vl = new WeakSet(), kc = function(e) { + if (E.collectionChanged(null)) { + let l = new v(), a = new Se(); + l.setActiveCollection(null), a.changeAudio(n.audio[e], e, !0); + } +}, Fl = new WeakSet(), xc = function(e) { + Ie.audioChanged(e) && new Se().changeAudio(n.audio[e], e, !0); +}, jl = new WeakSet(), Lc = function() { + let e = new p(); + n.audio_element.paused ? e.play() : e.pause(); +}, r(Ae, "audioPlayPauseQuery", ".amplitude-play-pause[data-amplitude-audio-index]:not([data-amplitude-collection-key])"); +var Pt, Qt, Ol, Ic, Bl, Sc, D, _e, Kl, Tc, Yl, wc, Rl, Mc; +const pt = class { + constructor() { + i(this, Ol); + i(this, Bl); + i(this, D); + i(this, Kl); + i(this, Yl); + i(this, Rl); + i(this, Pt, void 0); + i(this, Qt, void 0); + u(this, Qt, o.isMobile()); + } + initialize() { + t(this, Ol, Ic).call(this), t(this, Bl, Sc).call(this); + } + static syncUI() { + let e = o.getAudioState(); + document.querySelectorAll(pt.collectionAudioPlayPauseQuery).forEach((a) => { + e == "playing" ? m.setElementPlay(a) : m.setElementPause(a); + }); + } + static syncToPause() { + document.querySelectorAll(pt.collectionAudioPlayPauseQuery).forEach((l) => { + m.setElementPause(l); + }); + } +}; +let be = pt; +Pt = new WeakMap(), Qt = new WeakMap(), Ol = new WeakSet(), Ic = function() { + u(this, Pt, document.querySelectorAll(pt.collectionAudioPlayPauseQuery)); +}, Bl = new WeakSet(), Sc = function() { + c(this, Pt).forEach((e) => { + c(this, Qt) ? (e.removeEventListener("touchend", t(this, D, _e)), e.addEventListener("touchend", t(this, D, _e).bind(this, e))) : (e.removeEventListener("click", t(this, D, _e)), e.addEventListener("click", t(this, D, _e).bind(this, e))); + }); +}, D = new WeakSet(), _e = function(e) { + if (!o.isTouchMoving()) { + let l = e.getAttribute("data-amplitude-collection-key"), a = e.getAttribute("data-amplitude-audio-index"); + t(this, Kl, Tc).call(this, l, a), t(this, Yl, wc).call(this, l, a), t(this, Rl, Mc).call(this), m.syncAll(); + } +}, Kl = new WeakSet(), Tc = function(e, l) { + if (E.collectionChanged(e)) { + let a = new v(); + a.setActiveCollection(e), a.changeAudioCollection(e, n.collections[e].audio[l], l, !0); + } +}, Yl = new WeakSet(), wc = function(e, l) { + Ie.audioChanged(l, e) && new v().changeAudioCollection(e, n.collections[e].audio[l], l, !0); +}, Rl = new WeakSet(), Mc = function() { + let e = new p(); + n.audio_element.paused ? e.play() : e.pause(); +}, r(be, "collectionAudioPlayPauseQuery", ".amplitude-play-pause[data-amplitude-audio-index][data-amplitude-collection-key]"); +var $l, Cc, Wl, _c, Jl, Pc, Xl, Qc; +class m { + constructor() { + i(this, $l); + i(this, Wl); + i(this, Jl); + i(this, Xl); + } + setUp() { + t(this, $l, Cc).call(this), t(this, Wl, _c).call(this), t(this, Jl, Pc).call(this), t(this, Xl, Qc).call(this); + } + static syncAll() { + ge.syncUI(), Ee.syncUI(), Ae.syncUI(), be.syncUI(); + } + static syncAllToPause() { + ge.syncToPause(), Ee.syncToPause(), Ae.syncToPause(), be.syncToPause(); + } + static setElementPlay(e) { + e.classList.add("amplitude-playing"), e.classList.remove("amplitude-paused"); + } + static setElementPause(e) { + e.classList.remove("amplitude-playing"), e.classList.add("amplitude-paused"); + } +} +$l = new WeakSet(), Cc = function() { + new ge().initialize(); +}, Wl = new WeakSet(), _c = function() { + new Ee().initialize(); +}, Jl = new WeakSet(), Pc = function() { + new Ae().initialize(); +}, Xl = new WeakSet(), Qc = function() { + new be().initialize(); +}; +var Zl, zc, zt, ms, Gl, Uc, en, qc, tn, Nc, ln, Dc, nn, Hc, an, Vc, on, Fc, sn, jc, cn, Oc, un, Bc; +class v { + constructor() { + i(this, Zl); + i(this, zt); + i(this, Gl); + i(this, en); + i(this, tn); + i(this, ln); + i(this, nn); + i(this, an); + i(this, on); + i(this, sn); + i(this, cn); + i(this, un); + } + next(e = null, l = !1) { + e || (e = n.active_collection); + let a = t(this, Zl, zc).call(this, e); + this.setActiveCollection(e), this.changeCollectionAudio(e, a.audio, a.index), t(this, tn, Nc).call(this, a.end, l), m.syncAll(), g.run("next"), n.repeat_audio && g.run("audio_repeated"); + } + previous(e = null) { + e || (e = n.active_collection); + let l = t(this, ln, Dc).call(this, e); + this.setActiveCollection(e), this.changeCollectionAudio(e, l.audio, l.index), new p().play(), m.syncAll(), g.run("previous"), n.repeat_audio && g.run("audio_repeated"); + } + setActiveCollection(e) { + n.active_collection != e && (g.run("collection_changed"), n.active_collection = e, e != null && (n.collections[e].active_index = 0)); + } + changeAudioCollection(e, l, a, s) { + t(this, on, Fc).call(this, l), t(this, sn, jc).call(this, e, l, a), t(this, cn, Oc).call(this, s); + } +} +Zl = new WeakSet(), zc = function(e) { + return n.repeat_audio ? t(this, zt, ms).call(this, e) : n.collections[e].shuffle ? t(this, Gl, Uc).call(this, e) : t(this, en, qc).call(this, e); +}, zt = new WeakSet(), ms = function(e) { + let l = n.collections[e].active_index; + return { + index: nextIndex, + audio: n.collections[e].shuffle ? n.collections[e].shuffle_list[l] : n.collections[e].audio[l], + end: !1 + }; +}, Gl = new WeakSet(), Uc = function(e) { + let l = null, a = !1, s = n.collections[e].active_index, d = n.collections[e].shuffle_list.length; + return parseInt(s + 1) < d ? l = parseInt(s + 1) : (l = 0, a = !0), { + index: l, + audio: n.collections[e].shuffleList[l], + end: a + }; +}, en = new WeakSet(), qc = function(e) { + let l = null, a = !1, s = n.collections[e].active_index, d = n.collections[e].audio.length; + return parseInt(s + 1) < d ? l = parseInt(s + 1) : (l = 0, a = !0), { + index: l, + audio: n.collections[e].audio[l], + end: a + }; +}, tn = new WeakSet(), Nc = function(e, l) { + e && !n.repeat_audio || l && !n.repeat_audio && e || new p().play(); +}, ln = new WeakSet(), Dc = function() { + return n.repeat_audio ? t(this, zt, ms).call(this, collectionKey) : n.collections[collectionKey].shuffle ? t(this, nn, Hc).call(this, collectionKey) : t(this, an, Vc).call(this, collectionKey); +}, nn = new WeakSet(), Hc = function(e) { + let l = null, a = n.collections[e].active_index, s = n.collections[e].shuffle_list.length; + return parseInt(a - 1) >= 0 ? l = parseInt(a - 1) : l = parseInt(s - 1), { + index: l, + audio: n.collections[e].shuffleList[l] + }; +}, an = new WeakSet(), Vc = function(e) { + let l = null, a = n.collections[e].active_index, s = n.collections[e].audio.length; + return parseInt(a - 1) >= 0 ? l = parseInt(a - 1) : l = parseInt(s - 1), { + index: l, + audio: n.collections[e].audio[l] + }; +}, on = new WeakSet(), Fc = function(e) { + p.stop(), m.syncAllToPause(); +}, sn = new WeakSet(), jc = function(e, l, a) { + n.audio_element = l.url, n.active_metadata = l, n.active_index = null, n.collections[e].active_index = parseInt(a); +}, cn = new WeakSet(), Oc = function(e) { + t(this, un, Bc).call(this), new mc().setActiveContainers(e), g.run("audio_change"); +}, un = new WeakSet(), Bc = function() { + new A().displayMetaData(); +}; +var Ut, ps; +class lh { + constructor() { + i(this, Ut); + } + bind() { + n.audio_element.removeEventListener("ended", t(this, Ut, ps)), n.audio_element.addEventListener("ended", t(this, Ut, ps).bind(this)); + } +} +Ut = new WeakSet(), ps = function() { + setTimeout(function() { + o.getScope() == "collection" && o.getContinueNext() ? new v().next(o.getActiveCollection(), !0) : (new p().stop(), m.syncAll()); + }, n.delay); +}; +var dn, Kc, qt, fs, rn, Yc; +class nh { + constructor() { + i(this, dn); + i(this, qt); + i(this, rn); + } + bind() { + t(this, dn, Kc).call(this); + } +} +dn = new WeakSet(), Kc = function() { + document.removeEventListener("keydown", t(this, qt, fs).bind(this)), document.addEventListener("keydown", t(this, qt, fs).bind(this)); +}, qt = new WeakSet(), fs = function(e) { + t(this, rn, Yc).call(this) || e.key; +}, rn = new WeakSet(), Yc = function() { + let e = document.activeElement.tagName.toLowerCase(); + return [ + "input", + "textarea", + "select", + "checkbox" + ].indexOf(e) > -1; +}; +const ks = class { + static syncUI() { + document.querySelectorAll(ks.globalBufferedProgressQuery).forEach(function(l) { + isNaN(n.buffered) || (l.value = parseFloat(o.getBufferedPercentage())); + }); + } +}; +let Di = ks; +r(Di, "globalBufferedProgressQuery", "progress.amplitude-buffered-progress:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"); +class ah { + static syncUI() { + let e = o.getActiveCollection(); + document.querySelectorAll('progress.amplitude-buffered-progress[data-amplitude-collection-key="' + e + '"]:not([data-amplitude-audio-index])').forEach(function(a) { + isNaN(n.buffered) || (a.value = parseFloat(o.getBufferedPercentage())); + }); + } +} +class Rc { + static syncUI() { + let e = o.getActiveAudioIndex(); + document.querySelectorAll('progress.amplitude-buffered-progress[data-amplitude-audio-index="' + e + '"]:not([data-amplitude-collection-key])').forEach(function(a) { + isNaN(n.buffered) || (a.value = parseFloat(o.getBufferedPercentage())); + }); + } +} +r(Rc, "audioBufferedProgressQuery", "progress.amplitude-buffered-progress[data-amplitude-audio-index]:not([data-amplitude-collection-key])"); +class oh { + static syncAll() { + Di.syncUI(), ah.syncUI(), Rc.syncUI(); + } +} +const xs = class { + static syncUI(e) { + !isNaN(e) && isFinite(e) && document.querySelectorAll(xs.globalProgressQuery).forEach((a) => { + let s = a.max; + a.value = e / 100 * s; + }); + } +}; +let Hi = xs; +r(Hi, "globalProgressQuery", "progress.amplitude-audio-played-progress:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"); +const Ls = class { + static syncUI(e) { + if (!isNaN(e) && isFinite(e)) { + let l = document.querySelectorAll(Ls.collectionProgressQuery), a = o.getActiveCollection(); + l.forEach((s) => { + let d = s.getAttribute("data-amplitude-collection-key"), f = s.max; + a == d ? s.value = e / 100 * f : s.value = 0; + }); + } + } +}; +let Vi = Ls; +r(Vi, "collectionProgressQuery", "progress.amplitude-audio-played-progress[data-amplitude-collection-key]:not([data-amplitude-audio-index])"); +const Is = class { + static syncUI(e) { + if (!isNaN(e) && isFinite(e)) { + let l = document.querySelectorAll(Is.audioProgressQuery), a = o.getActiveAudioIndex(); + l.forEach((s) => { + let d = s.getAttribute("data-amplitude-audio-index"), f = s.max; + a == d ? s.value = e / 100 * f : s.value = 0; + }); + } + } +}; +let Fi = Is; +r(Fi, "audioProgressQuery", "progress.amplitude-audio-played-progress[data-amplitude-audio-index]:not([data-amplitude-collection-key])"); +const Ss = class { + static syncUI(e) { + if (!isNaN(e) && isFinite(e)) { + let l = document.querySelectorAll(Ss.collectionAudioProgressQuery), a = o.getActiveCollection(), s = o.getActiveAudioIndex(); + l.forEach((d) => { + let f = d.getAttribute("data-amplitude-collection-key"), w = d.getAttribute("data-amplitude-audio-index"), Ui = d.max; + a == f && s == w ? d.value = e / 100 * Ui : d.value = 0; + }); + } + } +}; +let ji = Ss; +r(ji, "collectionAudioProgressQuery", "progress.amplitude-audio-played-progress[data-amplitude-collection-key][data-amplitude-audio-index]"); +class sh { + constructor() { + } + static syncCurrentTime(e) { + Hi.syncUI(e), Vi.syncUI(e), Fi.syncUI(e), ji.syncUI(e); + } +} +var hn, $c, mn, Wc, pn, Jc, fn, Xc, yn, Zc, vn, Gc; +class zi { + constructor() { + i(this, hn); + i(this, mn); + i(this, pn); + i(this, fn); + i(this, yn); + i(this, vn); + } + static percentageInSeconds(e) { + return n.audio_element.duration * (e / 100); + } + computeCurrentTimes() { + let e = {}; + return e.seconds = t(this, hn, $c).call(this), e.minutes = t(this, mn, Wc).call(this), e.hours = t(this, pn, Jc).call(this), e; + } + computeAudioCompletionPercentage() { + return n.audio_element.currentTime / n.audio_element.duration * 100; + } + computeAudioDuration() { + let e = {}; + return e.seconds = t(this, fn, Xc).call(this), e.minutes = t(this, yn, Zc).call(this), e.hours = t(this, vn, Gc).call(this), e; + } +} +hn = new WeakSet(), $c = function() { + return (Math.floor(n.audio_element.currentTime % 60) < 10 ? "0" : "") + Math.floor(n.audio_element.currentTime % 60); +}, mn = new WeakSet(), Wc = function() { + let e = Math.floor(n.audio_element.currentTime / 60); + return e < 10 && (e = "0" + e), e; +}, pn = new WeakSet(), Jc = function() { + let e = Math.floor(n.audio_element.currentTime / 3600); + return e < 10 && (e = "0" + e), e; +}, fn = new WeakSet(), Xc = function() { + return (Math.floor(n.audio_element.duration % 60) < 10 ? "0" : "") + Math.floor(n.audio_element.duration % 60); +}, yn = new WeakSet(), Zc = function() { + let e = Math.floor(n.audio_element.duration / 60); + return e < 10 && (e = "0" + e), e; +}, vn = new WeakSet(), Gc = function() { + let e = Math.floor(n.audio_element.duration / 3600); + return e < 10 && (e = "0" + e), e; +}; +var k, gn, eu, En, tu, An, iu, bn, lu; +const pe = class { + constructor(e) { + i(this, gn); + i(this, En); + i(this, An); + i(this, bn); + i(this, k, void 0); + u(this, k, e); + } + sync() { + t(this, gn, eu).call(this), t(this, En, tu).call(this), t(this, An, iu).call(this), t(this, bn, lu).call(this); + } +}; +let M = pe; +k = new WeakMap(), gn = new WeakSet(), eu = function() { + let e = o.getTimeFormat(), l = document.querySelectorAll(pe.globalFormattedTimeElementQuery), a = e.replace("HH", c(this, k).hours).replace("MM", c(this, k).minutes).replace("SS", c(this, k).seconds); + l.forEach((s) => { + s.innerHTML = a; + }); +}, En = new WeakSet(), tu = function() { + document.querySelectorAll(pe.globalHoursTimeElementQuery).forEach((l) => { + l.innerHTML = c(this, k).hours; + }); +}, An = new WeakSet(), iu = function() { + document.querySelectorAll(pe.globalMinutesTimeElementQuery).forEach((l) => { + l.innerHTML = c(this, k).minutes; + }); +}, bn = new WeakSet(), lu = function() { + document.querySelectorAll(pe.globalSecondsTimeElementQuery).forEach((l) => { + l.innerHTML = c(this, k).seconds; + }); +}, r(M, "globalFormattedTimeElementQuery", ".amplitude-current-time:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"), r(M, "globalHoursTimeElementQuery", ".amplitude-current-hours:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"), r(M, "globalMinutesTimeElementQuery", ".amplitude-current-minutes:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"), r(M, "globalSecondsTimeElementQuery", ".amplitude-current-seconds:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"); +var x, kn, nu, xn, au, Ln, ou, In, su; +const fe = class { + constructor(e) { + i(this, kn); + i(this, xn); + i(this, Ln); + i(this, In); + i(this, x, void 0); + u(this, x, e); + } + sync() { + t(this, kn, nu).call(this), t(this, xn, au).call(this), t(this, Ln, ou).call(this), t(this, In, su).call(this); + } +}; +let C = fe; +x = new WeakMap(), kn = new WeakSet(), nu = function() { + let e = o.getTimeFormat(), l = o.getActiveCollection(), a = document.querySelectorAll(fe.collectionFormattedTimeElementQuery), s = e.replace("HH", c(this, x).hours).replace("MM", c(this, x).minutes).replace("SS", c(this, x).seconds); + a.forEach((d) => { + let f = d.getAttribute("data-amplitude-collection-key"); + l == f ? d.innerHTML = s : d.innerHTML = "00:00"; + }); +}, xn = new WeakSet(), au = function() { + let e = document.querySelectorAll(fe.collectionHoursTimeElementQuery), l = o.getActiveCollection(); + e.forEach((a) => { + let s = a.getAttribute("data-amplitude-collection-key"); + l == s ? a.innerHTML = c(this, x).hours : a.innerHTML = "00"; + }); +}, Ln = new WeakSet(), ou = function() { + let e = document.querySelectorAll(fe.collectionMinutesTimeElementQuery), l = o.getActiveCollection(); + e.forEach((a) => { + let s = a.getAttribute("data-amplitude-collection-key"); + l == s ? a.innerHTML = c(this, x).minutes : a.innerHTML = "00"; + }); +}, In = new WeakSet(), su = function() { + let e = document.querySelectorAll(fe.collectionSecondsTimeElementQuery), l = o.getActiveCollection(); + e.forEach((a) => { + let s = a.getAttribute("data-amplitude-collection-key"); + l == s ? a.innerHTML = c(this, x).seconds : a.innerHTML = "00"; + }); +}, r(C, "collectionFormattedTimeElementQuery", ".amplitude-current-time[data-amplitude-collection-key]:not([data-amplitude-audio-index])"), r(C, "collectionHoursTimeElementQuery", ".amplitude-current-hours[data-amplitude-collection-key]:not([data-amplitude-audio-index])"), r(C, "collectionMinutesTimeElementQuery", ".amplitude-current-minutes[data-amplitude-collection-key]:not([data-amplitude-audio-index])"), r(C, "collectionSecondsTimeElementQuery", ".amplitude-current-seconds[data-amplitude-collection-key]:not([data-amplitude-audio-index])"); +var L, Sn, cu, Tn, uu, wn, du, Mn, ru; +const ye = class { + constructor(e) { + i(this, Sn); + i(this, Tn); + i(this, wn); + i(this, Mn); + i(this, L, void 0); + u(this, L, e); + } + sync() { + t(this, Sn, cu).call(this), t(this, Tn, uu).call(this), t(this, wn, du).call(this), t(this, Mn, ru).call(this); + } +}; +let _ = ye; +L = new WeakMap(), Sn = new WeakSet(), cu = function() { + let e = o.getTimeFormat(), l = o.getActiveAudioIndex(), a = document.querySelectorAll(ye.audioFormattedTimeElementQuery), s = e.replace("HH", c(this, L).hours).replace("MM", c(this, L).minutes).replace("SS", c(this, L).seconds); + a.forEach((d) => { + let f = d.getAttribute("data-amplitude-audio-index"); + l == f ? d.innerHTML = s : d.innerHTML = "00:00"; + }); +}, Tn = new WeakSet(), uu = function() { + let e = document.querySelectorAll(ye.audioHoursTimeElementQuery), l = o.getActiveAudioIndex(); + e.forEach((a) => { + let s = a.getAttribute("data-amplitude-audio-index"); + l == s ? a.innerHTML = c(this, L).hours : a.innerHTML = "00"; + }); +}, wn = new WeakSet(), du = function() { + let e = document.querySelectorAll(ye.audioMinutesTimeElementQuery), l = o.getActiveAudioIndex(); + e.forEach((a) => { + let s = a.getAttribute("data-amplitude-audio-index"); + l == s ? a.innerHTML = c(this, L).minutes : a.innerHTML = "00"; + }); +}, Mn = new WeakSet(), ru = function() { + let e = document.querySelectorAll(ye.audioSecondsTimeElementQuery), l = o.getActiveAudioIndex(); + e.forEach((a) => { + let s = a.getAttribute("data-amplitude-audio-index"); + l == s ? a.innerHTML = c(this, L).seconds : a.innerHTML = "00"; + }); +}, r(_, "audioFormattedTimeElementQuery", ".amplitude-current-time[data-amplitude-audio-index]:not([data-amplitude-collection-key])"), r(_, "audioHoursTimeElementQuery", ".amplitude-current-hours[data-amplitude-audio-index]:not([data-amplitude-collection-key])"), r(_, "audioMinutesTimeElementQuery", ".amplitude-current-minutes[data-amplitude-audio-index]:not([data-amplitude-collection-key])"), r(_, "audioSecondsTimeElementQuery", ".amplitude-current-seconds[data-amplitude-audio-index]:not([data-amplitude-collection-key])"); +var I, Cn, hu, _n, mu, Pn, pu, Qn, fu; +const ve = class { + constructor(e) { + i(this, Cn); + i(this, _n); + i(this, Pn); + i(this, Qn); + i(this, I, void 0); + u(this, I, e); + } + sync() { + t(this, Cn, hu).call(this), t(this, _n, mu).call(this), t(this, Pn, pu).call(this), t(this, Qn, fu).call(this); + } +}; +let P = ve; +I = new WeakMap(), Cn = new WeakSet(), hu = function() { + let e = o.getTimeFormat(), l = o.getActiveCollection(), a = o.getActiveAudioIndex(), s = document.querySelectorAll(ve.collectionAudioFormattedTimeElementQuery), d = e.replace("HH", c(this, I).hours).replace("MM", c(this, I).minutes).replace("SS", c(this, I).seconds); + s.forEach((f) => { + let w = f.getAttribute("data-amplitude-collection-key"), Ui = f.getAttribute("data-amplitude-audio-index"); + l == w && a == Ui ? f.innerHTML = d : f.innerHTML = "00:00"; + }); +}, _n = new WeakSet(), mu = function() { + let e = document.querySelectorAll(ve.collectionAudioHoursTimeElementQuery), l = o.getActiveCollection(), a = o.getActiveAudioIndex(); + e.forEach((s) => { + let d = s.getAttribute("data-amplitude-collection-key"), f = s.getAttribute("data-amplitude-audio-index"); + l == d && a == f ? s.innerHTML = c(this, I).hours : s.innerHTML = "00"; + }); +}, Pn = new WeakSet(), pu = function() { + let e = document.querySelectorAll(ve.collectionAudioMinutesTimeElementQuery), l = o.getActiveCollection(), a = o.getActiveAudioIndex(); + e.forEach((s) => { + let d = s.getAttribute("data-amplitude-collection-key"), f = s.getAttribute("data-amplitude-audio-index"); + l == d && a == f ? s.innerHTML = c(this, I).minutes : s.innerHTML = "00"; + }); +}, Qn = new WeakSet(), fu = function() { + let e = document.querySelectorAll(ve.collectionAudioSecondsTimeElementQuery), l = o.getActiveCollection(), a = o.getActiveAudioIndex(); + e.forEach((s) => { + let d = s.getAttribute("data-amplitude-collection-key"), f = s.getAttribute("data-amplitude-audio-index"); + l == d && a == f ? s.innerHTML = c(this, I).seconds : s.innerHTML = "00"; + }); +}, r(P, "collectionAudioFormattedTimeElementQuery", ".amplitude-current-time[data-amplitude-collection-key][data-amplitude-audio-index]"), r(P, "collectionAudioHoursTimeElementQuery", ".amplitude-current-hours[data-amplitude-collection-key][data-amplitude-audio-index]"), r(P, "collectionAudioMinutesTimeElementQuery", ".amplitude-current-minutes[data-amplitude-collection-key][data-amplitude-audio-index]"), r(P, "collectionAudioSecondsTimeElementQuery", ".amplitude-current-seconds[data-amplitude-collection-key][data-amplitude-audio-index]"); +class ch { + syncCurrentTime(e) { + new M(e).sync(), new C(e).sync(), new _(e).sync(), new P(e).sync(); + } + syncDurationTime() { + } + resetDurationTime() { + } +} +var Nt, Dt, zn, yu, Un, vu, H, Pe; +const qn = class { + constructor() { + i(this, zn); + i(this, Un); + i(this, H); + i(this, Nt, void 0); + i(this, Dt, void 0); + u(this, Dt, o.isIE()); + } + initialize() { + t(this, zn, yu).call(this), t(this, Un, vu).call(this); + } + static syncUI(e) { + document.querySelectorAll(qn.globalTrackerQuery).forEach((a) => { + a.value = e; + }); + } +}; +let at = qn; +Nt = new WeakMap(), Dt = new WeakMap(), zn = new WeakSet(), yu = function() { + u(this, Nt, document.querySelectorAll(qn.globalTrackerQuery)); +}, Un = new WeakSet(), vu = function() { + c(this, Nt).forEach((e) => { + c(this, Dt) ? (e.removeEventListener("change", t(this, H, Pe)), e.addEventListener("change", t(this, H, Pe).bind(this, e))) : (e.removeEventListener("input", t(this, H, Pe)), e.addEventListener("input", t(this, H, Pe).bind(this, e))); + }); +}, H = new WeakSet(), Pe = function(e) { + if (!o.isLive()) { + let l = e.value, a = zi.percentageInSeconds(l); + new p().setCurrentTime(a); + } +}, r(at, "globalTrackerQuery", 'input[type="range"].amplitude-audio-tracker:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'); +var Ht, Vt, Nn, gu, Dn, Eu, V, Qe; +const Hn = class { + constructor() { + i(this, Nn); + i(this, Dn); + i(this, V); + i(this, Ht, void 0); + i(this, Vt, void 0); + u(this, Vt, o.isIE()); + } + initialize() { + t(this, Nn, gu).call(this), t(this, Dn, Eu).call(this); + } + static syncUI(e) { + let l = document.querySelectorAll(Hn.collectionTrackerQuery), a = o.getActiveCollection(); + l.forEach((s) => { + let d = s.getAttribute("data-amplitude-collection-key"); + a == d ? s.value = e : s.value = 0; + }); + } +}; +let ot = Hn; +Ht = new WeakMap(), Vt = new WeakMap(), Nn = new WeakSet(), gu = function() { + u(this, Ht, document.querySelectorAll(Hn.collectionTrackerQuery)); +}, Dn = new WeakSet(), Eu = function() { + c(this, Ht).forEach((e) => { + c(this, Vt) ? (e.removeEventListener("change", t(this, V, Qe)), e.addEventListener("change", t(this, V, Qe).bind(this, e))) : (e.removeEventListener("input", t(this, V, Qe)), e.addEventListener("input", t(this, V, Qe).bind(this, e))); + }); +}, V = new WeakSet(), Qe = function(e) { + if (!o.isLive()) { + let l = o.getActiveCollection(), a = e.getAttribute("data-amplitude-collection-key"); + if (l == a) { + let s = e.value, d = zi.percentageInSeconds(s); + new p().setCurrentTime(d); + } + } +}, r(ot, "collectionTrackerQuery", 'input[type="range"].amplitude-audio-tracker[data-amplitude-collection-key]:not([data-amplitude-audio-index])'); +var Ft, jt, Vn, Au, Fn, bu, F, ze; +const jn = class { + constructor() { + i(this, Vn); + i(this, Fn); + i(this, F); + i(this, Ft, void 0); + i(this, jt, void 0); + u(this, jt, o.isIE()); + } + initialize() { + t(this, Vn, Au).call(this), t(this, Fn, bu).call(this); + } + static syncUI(e) { + let l = document.querySelectorAll(jn.audioTrackerQuery), a = o.getActiveAudioIndex(); + l.forEach((s) => { + let d = s.getAttribute("data-amplitude-audio-index"); + a == d ? s.value = e : s.value = 0; + }); + } +}; +let st = jn; +Ft = new WeakMap(), jt = new WeakMap(), Vn = new WeakSet(), Au = function() { + u(this, Ft, document.querySelectorAll(jn.audioTrackerQuery)); +}, Fn = new WeakSet(), bu = function() { + c(this, Ft).forEach((e) => { + c(this, jt) ? (e.removeEventListener("change", t(this, F, ze)), e.addEventListener("change", t(this, F, ze).bind(this, e))) : (e.removeEventListener("input", t(this, F, ze)), e.addEventListener("input", t(this, F, ze).bind(this, e))); + }); +}, F = new WeakSet(), ze = function(e) { + if (!o.isLive()) { + let l = o.getActiveAudioIndex(), a = e.getAttribute("data-amplitude-audio-index"); + if (l == a) { + let s = e.value, d = zi.percentageInSeconds(s); + new p().setCurrentTime(d); + } + } +}, r(st, "audioTrackerQuery", 'input[type="range"].amplitude-audio-tracker[data-amplitude-audio-index]:not([data-amplitude-collection-key])'); +var Ot, Bt, On, ku, Bn, xu, j, Ue; +const Kn = class { + constructor() { + i(this, On); + i(this, Bn); + i(this, j); + i(this, Ot, void 0); + i(this, Bt, void 0); + u(this, Bt, o.isIE()); + } + initialize() { + t(this, On, ku).call(this), t(this, Bn, xu).call(this); + } + static syncUI(e) { + let l = document.querySelectorAll(Kn.collectionAudioTrackerQuery), a = o.getActiveCollection(), s = o.getActiveAudioIndex(); + l.forEach((d) => { + let f = d.getAttribute("data-amplitude-collection-key"), w = d.getAttribute("data-amplitude-audio-index"); + a == f && s == w ? d.value = e : d.value = 0; + }); + } +}; +let ct = Kn; +Ot = new WeakMap(), Bt = new WeakMap(), On = new WeakSet(), ku = function() { + u(this, Ot, document.querySelectorAll(Kn.collectionAudioTrackerQuery)); +}, Bn = new WeakSet(), xu = function() { + c(this, Ot).forEach((e) => { + c(this, Bt) ? (e.removeEventListener("change", t(this, j, Ue)), e.addEventListener("change", t(this, j, Ue).bind(this, e))) : (e.removeEventListener("input", t(this, j, Ue)), e.addEventListener("input", t(this, j, Ue).bind(this, e))); + }); +}, j = new WeakSet(), Ue = function(e) { + if (!o.isLive()) { + let l = o.getActiveCollection(), a = e.getAttribute("data-amplitude-collection-key"), s = o.getActiveAudioIndex(), d = e.getAttribute("data-amplitude-audio-index"); + if (l == a && s == d) { + let f = e.value, w = zi.percentageInSeconds(f); + new p().setCurrentTime(w); + } + } +}, r(ct, "collectionAudioTrackerQuery", 'input[type="range"].amplitude-audio-tracker[data-amplitude-collection-key][data-amplitude-audio-index]'); +var Yn, Iu, Rn, Su, $n, Tu, Wn, wu; +class Lu { + constructor() { + i(this, Yn); + i(this, Rn); + i(this, $n); + i(this, Wn); + } + setUp() { + t(this, Yn, Iu).call(this), t(this, Rn, Su).call(this), t(this, $n, Tu).call(this), t(this, Wn, wu).call(this); + } + static syncCurrentTime(e) { + at.syncUI(e), ot.syncUI(e), st.syncUI(e), ct.syncUI(e); + } +} +Yn = new WeakSet(), Iu = function() { + new at().initialize(); +}, Rn = new WeakSet(), Su = function() { + new ot().initialize(); +}, $n = new WeakSet(), Tu = function() { + new st().initialize(); +}, Wn = new WeakSet(), wu = function() { + new ct().initialize(); +}; +var Jn, Mu, Xn, Cu, O, qe, Zn, _u, Gn, Pu; +class uh { + constructor() { + i(this, Jn); + i(this, Xn); + i(this, O); + i(this, Zn); + i(this, Gn); + } + bind() { + t(this, Jn, Mu).call(this), t(this, Xn, Cu).call(this); + } +} +Jn = new WeakSet(), Mu = function() { + n.audio_element.removeEventListener("timeupdate", t(this, O, qe).bind(this)), n.audio_element.addEventListener("timeupdate", t(this, O, qe).bind(this)); +}, Xn = new WeakSet(), Cu = function() { + n.audio_element.removeEventListener("durationchange", t(this, O, qe).bind(this)), n.audio_element.addEventListener("durationchange", t(this, O, qe).bind(this)); +}, O = new WeakSet(), qe = function() { + o.updateBufferedTime(), oh.syncAll(), t(this, Zn, _u).call(this), t(this, Gn, Pu).call(this); +}, Zn = new WeakSet(), _u = function() { + if (!o.isLive()) { + let e = new zi(), l = e.computeCurrentTimes(), a = e.computeAudioCompletionPercentage(), s = e.computeAudioDuration(), d = new ch(); + d.syncCurrentTime(l), d.syncDurationTime(l, s), Lu.syncCurrentTime(a), sh.syncCurrentTime(a); + } +}, Gn = new WeakSet(), Pu = function() { +}; +var ea, Qu, ta, zu, ia, Uu, la, qu, vs, rh, na, Nu; +class dh { + constructor() { + i(this, ea); + i(this, ta); + i(this, ia); + i(this, la); + i(this, vs); + i(this, na); + } + initializeAllEvents() { + y.writeMessage("Starting initialization of event handlers..."), t(this, ea, Qu).call(this), t(this, ta, zu).call(this), t(this, ia, Uu).call(this), t(this, la, qu).call(this), t(this, na, Nu).call(this); + } +} +ea = new WeakSet(), Qu = function() { + document.addEventListener("touchmove", () => { + n.is_touch_moving = !0; + }), document.addEventListener("touchend", () => { + n.is_touch_moving || (n.is_touch_moving = !1); + }); +}, ta = new WeakSet(), zu = function() { + new uh().bind(); +}, ia = new WeakSet(), Uu = function() { + new nh().bind(); +}, la = new WeakSet(), qu = function() { + new lh().bind(); +}, vs = new WeakSet(), rh = function() { + new ProgressEvent().bind(); +}, na = new WeakSet(), Nu = function() { +}; +var Kt, Yt, aa, Du, oa, Hu, B, Ne; +const Ts = class { + constructor() { + i(this, aa); + i(this, oa); + i(this, B); + i(this, Kt, void 0); + i(this, Yt, void 0); + u(this, Yt, o.isMobile()); + } + initialize() { + t(this, aa, Du).call(this), t(this, oa, Hu).call(this); + } +}; +let Oi = Ts; +Kt = new WeakMap(), Yt = new WeakMap(), aa = new WeakSet(), Du = function() { + u(this, Kt, document.querySelectorAll(Ts.collectionNextQuery)); +}, oa = new WeakSet(), Hu = function() { + c(this, Kt).forEach((e) => { + c(this, Yt) ? (e.removeEventListener("touchend", t(this, B, Ne)), e.addEventListener("touchend", t(this, B, Ne))) : (e.removeEventListener("click", t(this, B, Ne)), e.addEventListener("click", t(this, B, Ne))); + }); +}, B = new WeakSet(), Ne = function() { + let e = this.getAttribute("data-amplitude-collection-key"); + e == n.active_collection ? new v().next(e) : y.writeMessage("You can not go to the next audio on a playlist that is not being played!"); +}, r(Oi, "collectionNextQuery", ".amplitude-next[data-amplitude-collection-key]"); +var Rt, $t, sa, Vu, ca, Fu, K, De; +const ws = class { + constructor() { + i(this, sa); + i(this, ca); + i(this, K); + i(this, Rt, void 0); + i(this, $t, void 0); + u(this, $t, o.isMobile()); + } + initialize() { + t(this, sa, Vu).call(this), t(this, ca, Fu).call(this); + } +}; +let Bi = ws; +Rt = new WeakMap(), $t = new WeakMap(), sa = new WeakSet(), Vu = function() { + u(this, Rt, document.querySelectorAll(ws.globalNextQuery)); +}, ca = new WeakSet(), Fu = function() { + c(this, Rt).forEach((e) => { + c(this, $t) ? (e.removeEventListener("touchend", t(this, K, De)), e.addEventListener("touchend", t(this, K, De))) : (e.removeEventListener("click", t(this, K, De)), e.addEventListener("click", t(this, K, De))); + }); +}, K = new WeakSet(), De = function() { + o.getScope() == "collection" ? new v().next() : y.writeMessage("You can only navigate next when you are playing a collection."); +}, r(Bi, "globalNextQuery", ".amplitude-next:not([data-amplitude-collection-key])"); +var ua, ju, da, Ou; +class hh { + constructor() { + i(this, ua); + i(this, da); + } + setUp() { + t(this, ua, ju).call(this), t(this, da, Ou).call(this); + } +} +ua = new WeakSet(), ju = function() { + new Bi().initialize(); +}, da = new WeakSet(), Ou = function() { + new Oi().initialize(); +}; +var Wt, Jt, ra, Bu, ha, Ku, Y, He; +const ft = class { + constructor() { + i(this, ra); + i(this, ha); + i(this, Y); + i(this, Wt, void 0); + i(this, Jt, void 0); + u(this, Jt, o.isIE()); + } + setUp() { + t(this, ra, Bu).call(this), t(this, ha, Ku).call(this); + } + static syncElements() { + document.querySelectorAll(ft.volumeSliderElementQuery).forEach(function(l) { + l.value = o.getVolume(); + }); + } +}; +let he = ft; +Wt = new WeakMap(), Jt = new WeakMap(), ra = new WeakSet(), Bu = function() { + u(this, Wt, document.querySelectorAll(ft.volumeSliderElementQuery)); +}, ha = new WeakSet(), Ku = function() { + o.isIos() ? Debug.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") : c(this, Wt).forEach((e) => { + c(this, Jt) ? (e.removeEventListener("change", t(this, Y, He)), e.addEventListener("change", t(this, Y, He))) : (e.removeEventListener("input", t(this, Y, He)), e.addEventListener("input", t(this, Y, He))); + }); +}, Y = new WeakSet(), He = function() { + new p().setVolume(this.value), T.syncElements(), ft.syncElements(); +}, r(he, "volumeSliderElementQuery", 'input[type="range"].amplitude-volume-slider'); +var Xt, Zt, ma, Yu, pa, Ru, R, Ve; +const yt = class { + constructor() { + i(this, ma); + i(this, pa); + i(this, R); + i(this, Xt, void 0); + i(this, Zt, void 0); + u(this, Zt, o.isMobile()); + } + setUp() { + t(this, ma, Yu).call(this), t(this, pa, Ru).call(this); + } + static syncElements() { + document.querySelectorAll(yt.muteElementQuery).forEach(function(l) { + o.getVolume() == 0 ? (l.classList.remove("amplitude-not-muted"), l.classList.add("amplitude-muted")) : (l.classList.add("amplitude-not-muted"), l.classList.remove("amplitude-muted")); + }); + } +}; +let T = yt; +Xt = new WeakMap(), Zt = new WeakMap(), ma = new WeakSet(), Yu = function() { + u(this, Xt, document.querySelectorAll(yt.muteElementQuery)); +}, pa = new WeakSet(), Ru = function() { + o.isIos() ? y.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") : c(this, Xt).forEach((e) => { + c(this, Zt) ? (e.removeEventListener("touchend", t(this, R, Ve)), e.addEventListener("touchend", t(this, R, Ve))) : (e.removeEventListener("click", t(this, R, Ve)), e.addEventListener("click", t(this, R, Ve))); + }); +}, R = new WeakSet(), Ve = function() { + if (!o.isTouchMoving()) { + let e = new p(); + o.getVolume() == 0 ? e.setVolume(o.getPreMuteVolume()) : (o.setPreMuteVolume(), e.setVolume(0)), yt.syncElements(), he.syncElements(); + } +}, r(T, "muteElementQuery", ".amplitude-mute"); +var Gt, ei, fa, $u, ya, Wu, $, Fe; +const Ms = class { + constructor() { + i(this, fa); + i(this, ya); + i(this, $); + i(this, Gt, void 0); + i(this, ei, void 0); + u(this, ei, o.isMobile()); + } + initialize() { + t(this, fa, $u).call(this), t(this, ya, Wu).call(this); + } +}; +let Ki = Ms; +Gt = new WeakMap(), ei = new WeakMap(), fa = new WeakSet(), $u = function() { + u(this, Gt, document.querySelectorAll(Ms.globalPauseQuery)); +}, ya = new WeakSet(), Wu = function() { + c(this, Gt).forEach((e) => { + c(this, ei) ? (e.removeEventListener("touchend", t(this, $, Fe)), e.addEventListener("touchend", t(this, $, Fe))) : (e.removeEventListener("click", t(this, $, Fe)), e.addEventListener("click", t(this, $, Fe))); + }); +}, $ = new WeakSet(), Fe = function() { + o.isTouchMoving() || (new p().pause(), m.syncAll()); +}, r(Ki, "globalPauseQuery", ".amplitude-pause:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"); +var ti, ii, va, Ju, ga, Xu, W, je; +const Cs = class { + constructor() { + i(this, va); + i(this, ga); + i(this, W); + i(this, ti, void 0); + i(this, ii, void 0); + u(this, ii, o.isMobile()); + } + initialize() { + t(this, va, Ju).call(this), t(this, ga, Xu).call(this); + } +}; +let Yi = Cs; +ti = new WeakMap(), ii = new WeakMap(), va = new WeakSet(), Ju = function() { + u(this, ti, document.querySelectorAll(Cs.collectionPauseQuery)); +}, ga = new WeakSet(), Xu = function() { + c(this, ti).forEach((e) => { + c(this, ii) ? (e.removeEventListener("touchend", t(this, W, je)), e.addEventListener("touchend", t(this, W, je))) : (e.removeEventListener("click", t(this, W, je)), e.addEventListener("click", t(this, W, je))); + }); +}, W = new WeakSet(), je = function() { + if (!o.isTouchMoving()) { + let e = this.getAttribute("data-amplitude-collection-key"); + config.active_collection == e && (new p().pause(), m.syncAll()); + } +}, r(Yi, "collectionPauseQuery", ".amplitude-pause[data-amplitude-collection-key]:not([data-amplitude-audio-index])"); +var li, ni, Ea, Zu, Aa, Gu, J, Oe; +const _s = class { + constructor() { + i(this, Ea); + i(this, Aa); + i(this, J); + i(this, li, void 0); + i(this, ni, void 0); + u(this, ni, o.isMobile()); + } + initialize() { + t(this, Ea, Zu).call(this), t(this, Aa, Gu).call(this); + } +}; +let Ri = _s; +li = new WeakMap(), ni = new WeakMap(), Ea = new WeakSet(), Zu = function() { + u(this, li, document.querySelectorAll(_s.audioPauseQuery)); +}, Aa = new WeakSet(), Gu = function() { + c(this, li).forEach((e) => { + c(this, ni) ? (e.removeEventListener("touchend", t(this, J, Oe)), e.addEventListener("touchend", t(this, J, Oe))) : (e.removeEventListener("click", t(this, J, Oe)), e.addEventListener("click", t(this, J, Oe))); + }); +}, J = new WeakSet(), Oe = function() { + if (!o.isTouchMoving()) { + let e = this.getAttribute("data-amplitude-audio-index"); + o.getScope() == "audio" && n.active_index == e && (new p().pause(), m.syncAll()); + } +}, r(Ri, "audioPauseQuery", ".amplitude-pause[data-amplitude-audio-index]:not([data-amplitude-collection-key])"); +var ai, oi, ba, ed, ka, td, X, Be; +const Ps = class { + constructor() { + i(this, ba); + i(this, ka); + i(this, X); + i(this, ai, void 0); + i(this, oi, void 0); + u(this, oi, o.isMobile()); + } + initialize() { + t(this, ba, ed).call(this), t(this, ka, td).call(this); + } +}; +let $i = Ps; +ai = new WeakMap(), oi = new WeakMap(), ba = new WeakSet(), ed = function() { + u(this, ai, document.querySelectorAll(Ps.collectionAudioPauseQuery)); +}, ka = new WeakSet(), td = function() { + c(this, ai).forEach((e) => { + c(this, oi) ? (e.removeEventListener("touchend", t(this, X, Be)), e.addEventListener("touchend", t(this, X, Be).bind(this, e))) : (e.removeEventListener("click", t(this, X, Be)), e.addEventListener("click", t(this, X, Be).bind(this, e))); + }); +}, X = new WeakSet(), Be = function() { + if (!o.isTouchMoving()) { + let e = element.getAttribute("data-amplitude-collection-key"), l = element.getAttribute("data-amplitude-audio-index"); + n.active_collection == e && n.collections[e].active_index == l && (new p().pause(), m.syncAll()); + } +}, r($i, "collectionAudioPauseQuery", ".amplitude-pause[data-amplitude-collection-key][data-amplitude-audio-index]"); +var xa, id, La, ld, Ia, nd, Sa, ad; +class mh { + constructor() { + i(this, xa); + i(this, La); + i(this, Ia); + i(this, Sa); + } + setUp() { + t(this, xa, id).call(this), t(this, La, ld).call(this), t(this, Ia, nd).call(this), t(this, Sa, ad).call(this); + } +} +xa = new WeakSet(), id = function() { + new Ki().initialize(); +}, La = new WeakSet(), ld = function() { + new Yi().initialize(); +}, Ia = new WeakSet(), nd = function() { + new Ri().initialize(); +}, Sa = new WeakSet(), ad = function() { + new $i().initialize(); +}; +var si, ci, Ta, od, wa, sd, Z, Ke; +const Qs = class { + constructor() { + i(this, Ta); + i(this, wa); + i(this, Z); + i(this, si, void 0); + i(this, ci, void 0); + u(this, ci, o.isMobile()); + } + initialize() { + t(this, Ta, od).call(this), t(this, wa, sd).call(this); + } +}; +let Wi = Qs; +si = new WeakMap(), ci = new WeakMap(), Ta = new WeakSet(), od = function() { + u(this, si, document.querySelectorAll(Qs.globalPlayQuery)); +}, wa = new WeakSet(), sd = function() { + c(this, si).forEach((e) => { + c(this, ci) ? (e.removeEventListener("touchend", t(this, Z, Ke)), e.addEventListener("touchend", t(this, Z, Ke))) : (e.removeEventListener("click", t(this, Z, Ke)), e.addEventListener("click", t(this, Z, Ke))); + }); +}, Z = new WeakSet(), Ke = function() { + new p().play(), m.syncAll(); +}, r(Wi, "globalPlayQuery", ".amplitude-play:not([data-amplitude-audio-index]):not([data-amplitude-collection-index])"); +var ui, di, Ma, cd, Ca, ud, G, Ye, _a, dd, Pa, rd; +const zs = class { + constructor() { + i(this, Ma); + i(this, Ca); + i(this, G); + i(this, _a); + i(this, Pa); + i(this, ui, void 0); + i(this, di, void 0); + u(this, di, o.isMobile()); + } + initialize() { + t(this, Ma, cd).call(this), t(this, Ca, ud).call(this); + } +}; +let Ji = zs; +ui = new WeakMap(), di = new WeakMap(), Ma = new WeakSet(), cd = function() { + u(this, ui, document.querySelectorAll(zs.collectionPlayQuery)); +}, Ca = new WeakSet(), ud = function() { + c(this, ui).forEach((e) => { + c(this, di) ? (e.removeEventListener("touchend", t(this, G, Ye)), e.addEventListener("touchend", t(this, G, Ye))) : (e.removeEventListener("click", t(this, G, Ye)), e.addEventListener("click", t(this, G, Ye))); + }); +}, G = new WeakSet(), Ye = function() { + if (!o.isTouchMoving()) { + let e = this.getAttribute("data-amplitude-collection-key"); + if (!E.collectionExists(e)) + return y.writeMessage('Collection with key "' + e + '" does not exist! Please define this collection in your configuration.'), !1; + t(this, _a, dd).call(this, e), t(this, Pa, rd).call(this), m.syncAll(); + } +}, _a = new WeakSet(), dd = function(e) { + if (E.collectionChanged(e)) { + let l = new v(); + l.setActiveCollection(e), E.isCollectionShuffled(e) ? l.changeAudioCollection(e, n.collections[e].shuffle_list[0], 0, !0) : l.changeAudioCollection(e, n.collections[e].audio[0], 0); + } +}, Pa = new WeakSet(), rd = function() { + new p().play(); +}, r(Ji, "collectionPlayQuery", ".amplitude-play[data-amplitude-collection-key]:not([data-amplitude-audio-index])"); +var ri, hi, Qa, hd, za, md, ee, Re, Ua, pd, qa, fd, Na, yd; +const Us = class { + constructor() { + i(this, Qa); + i(this, za); + i(this, ee); + i(this, Ua); + i(this, qa); + i(this, Na); + i(this, ri, void 0); + i(this, hi, void 0); + u(this, hi, o.isMobile()); + } + initialize() { + t(this, Qa, hd).call(this), t(this, za, md).call(this); + } +}; +let Xi = Us; +ri = new WeakMap(), hi = new WeakMap(), Qa = new WeakSet(), hd = function() { + u(this, ri, document.querySelectorAll(Us.audioPlayQuery)); +}, za = new WeakSet(), md = function() { + c(this, ri).forEach((e) => { + c(this, hi) ? (e.removeEventListener("touchend", t(this, ee, Re)), e.addEventListener("touchend", t(this, ee, Re).bind(this, e))) : (e.removeEventListener("click", t(this, ee, Re)), e.addEventListener("click", t(this, ee, Re).bind(this, e))); + }); +}, ee = new WeakSet(), Re = function(e) { + if (!o.isTouchMoving()) { + let l = e.getAttribute("data-amplitude-audio-index"); + if (!Ie.audioExists(l)) + return y.writeMessage('Audio with index "' + l + '" does not exist! Please add an audio object at this index in your configuration.'), !1; + t(this, Ua, pd).call(this, l), t(this, qa, fd).call(this, l), t(this, Na, yd).call(this), m.syncAll(); + } +}, Ua = new WeakSet(), pd = function(e) { + if (E.collectionChanged(null)) { + let l = new v(), a = new Se(); + l.setActiveCollection(null), a.changeAudio(n.audio[e], e, !0); + } +}, qa = new WeakSet(), fd = function(e) { + Ie.audioChanged(e) && new Se().changeAudio(n.audio[e], e, !0); +}, Na = new WeakSet(), yd = function() { + new p().play(); +}, r(Xi, "audioPlayQuery", ".amplitude-play[data-amplitude-audio-index]:not([data-amplitude-collection-key])"); +var mi, pi, Da, vd, Ha, gd, te, $e, Va, Ed, Fa, Ad, ja, bd; +const qs = class { + constructor() { + i(this, Da); + i(this, Ha); + i(this, te); + i(this, Va); + i(this, Fa); + i(this, ja); + i(this, mi, void 0); + i(this, pi, void 0); + u(this, pi, o.isMobile()); + } + initialize() { + t(this, Da, vd).call(this), t(this, Ha, gd).call(this); + } +}; +let Zi = qs; +mi = new WeakMap(), pi = new WeakMap(), Da = new WeakSet(), vd = function() { + u(this, mi, document.querySelectorAll(qs.collectionAudioPlayQuery)); +}, Ha = new WeakSet(), gd = function() { + c(this, mi).forEach((e) => { + c(this, pi) ? (e.removeEventListener("touchend", t(this, te, $e)), e.addEventListener("touchend", t(this, te, $e))) : (e.removeEventListener("click", t(this, te, $e)), e.addEventListener("click", t(this, te, $e))); + }); +}, te = new WeakSet(), $e = function() { + if (!o.isTouchMoving()) { + let e = this.getAttribute("data-amplitude-collection-key"), l = this.getAttribute("data-amplitude-audio-index"); + t(this, Va, Ed).call(this, e, l), t(this, Fa, Ad).call(this, e, l), t(this, ja, bd).call(this), m.syncAll(); + } +}, Va = new WeakSet(), Ed = function(e, l) { + if (E.collectionChanged(e)) { + let a = new v(); + a.setActiveCollection(e), a.changeAudioCollection(e, n.collections[e].audio[l], l, !0); + } +}, Fa = new WeakSet(), Ad = function(e, l) { + Ie.audioChanged(l, e) && new v().changeAudioCollection(e, n.collections[e].audio[l], l, !0); +}, ja = new WeakSet(), bd = function() { + new p().play(); +}, r(Zi, "collectionAudioPlayQuery", ".amplitude-play[data-amplitude-audio-index][data-amplitude-collection-key]"); +var Oa, kd, Ba, xd, Ka, Ld, Ya, Id; +class ph { + constructor() { + i(this, Oa); + i(this, Ba); + i(this, Ka); + i(this, Ya); + } + setUp() { + t(this, Oa, kd).call(this), t(this, Ba, xd).call(this), t(this, Ka, Ld).call(this), t(this, Ya, Id).call(this); + } +} +Oa = new WeakSet(), kd = function() { + new Wi().initialize(); +}, Ba = new WeakSet(), xd = function() { + new Ji().initialize(); +}, Ka = new WeakSet(), Ld = function() { + new Xi().initialize(); +}, Ya = new WeakSet(), Id = function() { + new Zi().initialize(); +}; +var fi, yi, Ra, Sd, $a, Td, ie, We; +const vt = class { + constructor() { + i(this, Ra); + i(this, $a); + i(this, ie); + i(this, fi, void 0); + i(this, yi, void 0); + u(this, yi, o.isMobile()); + } + setUp() { + t(this, Ra, Sd).call(this), t(this, $a, Td).call(this); + } + static syncElements() { + document.querySelectorAll(vt.playbackSpeedElementQuery).forEach(function(l) { + switch (l.classList.remove("amplitude-playback-speed-10"), l.classList.remove("amplitude-playback-speed-15"), l.classList.remove("amplitude-playback-speed-20"), o.getPlaybackSpeed()) { + case 1: + l.classList.add("amplitude-playback-speed-10"); + break; + case 1.5: + l.classList.add("amplitude-playback-speed-15"); + break; + case 2: + l.classList.add("amplitude-playback-speed-20"); + break; + } + }); + } +}; +let ut = vt; +fi = new WeakMap(), yi = new WeakMap(), Ra = new WeakSet(), Sd = function() { + u(this, fi, document.querySelectorAll(vt.playbackSpeedElementQuery)); +}, $a = new WeakSet(), Td = function() { + c(this, fi).forEach((e) => { + c(this, yi) ? (e.removeEventListener("touchend", t(this, ie, We)), e.addEventListener("touchend", t(this, ie, We))) : (e.removeEventListener("click", t(this, ie, We)), e.addEventListener("click", t(this, ie, We))); + }); +}, ie = new WeakSet(), We = function() { + if (!o.isTouchMoving()) { + let e = new p(); + switch (o.getPlaybackSpeed()) { + case 1: + e.setPlaybackSpeed(1.5); + break; + case 1.5: + e.setPlaybackSpeed(2); + break; + case 2: + e.setPlaybackSpeed(1); + break; + } + vt.syncElements(); + } +}, r(ut, "playbackSpeedElementQuery", ".amplitude-playback-speed"); +var vi, gi, Wa, wd, Ja, Md, le, Je; +const Ns = class { + constructor() { + i(this, Wa); + i(this, Ja); + i(this, le); + i(this, vi, void 0); + i(this, gi, void 0); + u(this, gi, o.isMobile()); + } + initialize() { + t(this, Wa, wd).call(this), t(this, Ja, Md).call(this); + } +}; +let Gi = Ns; +vi = new WeakMap(), gi = new WeakMap(), Wa = new WeakSet(), wd = function() { + u(this, vi, document.querySelectorAll(Ns.collectionPreviousQuery)); +}, Ja = new WeakSet(), Md = function() { + c(this, vi).forEach((e) => { + c(this, gi) ? (e.removeEventListener("touchend", t(this, le, Je)), e.addEventListener("touchend", t(this, le, Je))) : (e.removeEventListener("click", t(this, le, Je)), e.addEventListener("click", t(this, le, Je))); + }); +}, le = new WeakSet(), Je = function() { + o.isTouchMoving() || (this.getAttribute("data-amplitude-collection-key") == config.active_collection ? new v().previous() : y.writeMessage("You can not go to the previous audio on a playlist that is not being played!")); +}, r(Gi, "collectionPreviousQuery", ".amplitude-previous[data-amplitude-collection-key]"); +var Ei, Ai, Xa, Cd, Za, _d, ne, Xe; +const Ds = class { + constructor() { + i(this, Xa); + i(this, Za); + i(this, ne); + i(this, Ei, void 0); + i(this, Ai, void 0); + u(this, Ai, o.isMobile()); + } + initialize() { + t(this, Xa, Cd).call(this), t(this, Za, _d).call(this); + } +}; +let el = Ds; +Ei = new WeakMap(), Ai = new WeakMap(), Xa = new WeakSet(), Cd = function() { + u(this, Ei, document.querySelectorAll(Ds.globalPreviousQuery)); +}, Za = new WeakSet(), _d = function() { + c(this, Ei).forEach((e) => { + c(this, Ai) ? (e.removeEventListener("touchend", t(this, ne, Xe)), e.addEventListener("touchend", t(this, ne, Xe))) : (e.removeEventListener("click", t(this, ne, Xe)), e.addEventListener("click", t(this, ne, Xe))); + }); +}, ne = new WeakSet(), Xe = function() { + o.isTouchMoving() || (o.getScope() == "collection" ? new v().previous() : y.writeMessage("You can only navigate previous when you are playing a collection.")); +}, r(el, "globalPreviousQuery", ".amplitude-previous:not([data-amplitude-collection-key])"); +var Ga, Pd, eo, Qd; +class fh { + constructor() { + i(this, Ga); + i(this, eo); + } + setUp() { + t(this, Ga, Pd).call(this), t(this, eo, Qd).call(this); + } +} +Ga = new WeakSet(), Pd = function() { + new el().initialize(); +}, eo = new WeakSet(), Qd = function() { + new Gi().initialize(); +}; +var to, io, Ud, lo, qd; +class zd { + constructor(e) { + i(this, io); + i(this, lo); + i(this, to, void 0); + u(this, to, e); + } + toggleShuffle(e) { + if (o.isCollectionShuffled(e)) + o.setCollectionShuffled(e, !1, []); + else { + let a = t(this, io, Ud).call(this, e); + o.setCollectionShuffled(e, !0, a); + } + } +} +to = new WeakMap(), io = new WeakSet(), Ud = function(e) { + let l = o.getCollectionAudio(e), a = new Array(l.length); + l.forEach((s, d) => { + a[d] = s[d]; + }); + for (let s = l.length - 1; s > 0; s--) { + let d = Math.floor(Math.random() * l.length + 1); + t(this, lo, qd).call(this, a, s, d - 1); + } + return a; +}, lo = new WeakSet(), qd = function(e, l, a) { + let s = e[l]; + e[l] = e[a], e[a] = s; +}; +var bi, ki, no, Nd, ao, Dd, ae, Ze; +const oo = class { + constructor() { + i(this, no); + i(this, ao); + i(this, ae); + i(this, bi, void 0); + i(this, ki, void 0); + u(this, ki, o.isMobile()); + } + initialize() { + t(this, no, Nd).call(this), t(this, ao, Dd).call(this); + } + static syncUI(e) { + document.querySelectorAll('.amplitude-shuffle[data-amplitude-collection="' + e + '"]').forEach((a) => { + o.isCollectionShuffled(e) ? (a.classList.add("amplitude-shuffle-on"), a.classList.remove("amplitude-shuffle-off")) : (a.classList.add("amplitude-shuffle-off"), a.classList.remove("amplitude-shuffle-on")); + }); + } +}; +let dt = oo; +bi = new WeakMap(), ki = new WeakMap(), no = new WeakSet(), Nd = function() { + u(this, bi, document.querySelectorAll(oo.collectionShuffleQuery)); +}, ao = new WeakSet(), Dd = function() { + c(this, bi).forEach((e) => { + c(this, ki) ? (e.removeEventListener("touchend", t(this, ae, Ze)), e.addEventListener("touchend", t(this, ae, Ze))) : (e.removeEventListener("click", t(this, ae, Ze)), e.addEventListener("click", t(this, ae, Ze))); + }); +}, ae = new WeakSet(), Ze = function() { + let e = this.getAttribute("data-amplitude-collection-key"); + new zd(e).toggleShuffle(), oo.syncUI(e); +}, r(dt, "collectionShuffleQuery", ".amplitude-shuffle[data-amplitude-collection-key]"); +var xi, Li, so, Hd, co, Vd, oe, Ge; +const gt = class { + constructor() { + i(this, so); + i(this, co); + i(this, oe); + i(this, xi, void 0); + i(this, Li, void 0); + u(this, Li, o.isMobile()); + } + initialize() { + t(this, so, Hd).call(this), t(this, co, Vd).call(this); + } + static syncUI() { + let e = document.querySelectorAll(gt.globalShuffleQuery), l = o.getActiveCollection(); + e.forEach((a) => { + o.isCollectionShuffled(l) ? (a.classList.add("amplitude-shuffle-on"), a.classList.remove("amplitude-shuffle-off")) : (a.classList.add("amplitude-shuffle-off"), a.classList.remove("amplitude-shuffle-on")); + }); + } +}; +let tl = gt; +xi = new WeakMap(), Li = new WeakMap(), so = new WeakSet(), Hd = function() { + u(this, xi, document.querySelectorAll(gt.globalShuffleQuery)); +}, co = new WeakSet(), Vd = function() { + c(this, xi).forEach((e) => { + c(this, Li) ? (e.removeEventListener("touchend", t(this, oe, Ge)), e.addEventListener("touchend", t(this, oe, Ge))) : (e.removeEventListener("click", t(this, oe, Ge)), e.addEventListener("click", t(this, oe, Ge))); + }); +}, oe = new WeakSet(), Ge = function() { + if (o.getScope() == "collection") { + let e = o.getActiveCollection(); + new zd(collectionKey).toggleShuffle(), gt.syncUI(), dt.syncUI(e); + } else + y.writeMessage("You can only shuffle a collection if you are playing a collection."); +}, r(tl, "globalShuffleQuery", ".amplitude-shuffle:not([data-amplitude-collection-key])"); +var uo, Fd, ro, jd; +class yh { + constructor() { + i(this, uo); + i(this, ro); + } + setUp() { + t(this, uo, Fd).call(this), t(this, ro, jd).call(this); + } +} +uo = new WeakSet(), Fd = function() { + new tl().initialize(); +}, ro = new WeakSet(), jd = function() { + new dt().initialize(); +}; +var Ii, Si, ho, Od, mo, Bd, se, et, po, Kd, fo, Yd, yo, Rd, vo, $d; +const Hs = class { + constructor() { + i(this, ho); + i(this, mo); + i(this, se); + i(this, po); + i(this, fo); + i(this, yo); + i(this, vo); + i(this, Ii, void 0); + i(this, Si, void 0); + u(this, Si, o.isMobile()); + } + initialize() { + t(this, ho, Od).call(this), t(this, mo, Bd).call(this); + } +}; +let il = Hs; +Ii = new WeakMap(), Si = new WeakMap(), ho = new WeakSet(), Od = function() { + u(this, Ii, document.querySelectorAll(Hs.audioSkipToElementQuery)); +}, mo = new WeakSet(), Bd = function() { + c(this, Ii).forEach((e) => { + c(this, Si) ? (e.removeEventListener("touchend", t(this, se, et)), e.addEventListener("touchend", t(this, se, et).bind(this, e))) : (e.removeEventListener("click", t(this, se, et)), e.addEventListener("click", t(this, se, et).bind(this, e))); + }); +}, se = new WeakSet(), et = function(e) { + if (!o.isTouchMoving()) { + let l = e.getAttribute("data-amplitude-audio-index"), a = e.getAttribute("data-amplitude-location"); + t(this, po, Kd).call(this, l, a) && (t(this, fo, Yd).call(this, l), t(this, yo, Rd).call(this), m.syncAll(), t(this, vo, $d).call(this, a)); + } +}, po = new WeakSet(), Kd = function(e, l) { + return e == null ? (y.writeMessage("You must add a `data-amplitude-audio-index` attribute to your `amplitude-skip-to` element."), !1) : l == null ? (y.writeMessage("You must add a `data-amplitude-location` attribute in seconds to your `amplitude-skip-to` element."), !1) : !0; +}, fo = new WeakSet(), Yd = function(e) { + new Se().changeAudio(n.audio[parseInt(e)], parseInt(e), !0); +}, yo = new WeakSet(), Rd = function() { + new p().play(); +}, vo = new WeakSet(), $d = function(e) { + new p().skipToLocation(parseInt(e)); +}, r(il, "audioSkipToElementQuery", ".amplitude-skip-to[data-amplitude-audio-index]:not([data-amplitude-collection-key])"); +var Ti, wi, go, Wd, Eo, Jd, ce, tt, Ao, Xd, bo, Zd, ko, Gd, xo, er, Lo, tr; +const Vs = class { + constructor() { + i(this, go); + i(this, Eo); + i(this, ce); + i(this, Ao); + i(this, bo); + i(this, ko); + i(this, xo); + i(this, Lo); + i(this, Ti, void 0); + i(this, wi, void 0); + u(this, wi, o.isMobile()); + } + initialize() { + t(this, go, Wd).call(this), t(this, Eo, Jd).call(this); + } +}; +let ll = Vs; +Ti = new WeakMap(), wi = new WeakMap(), go = new WeakSet(), Wd = function() { + u(this, Ti, document.querySelectorAll(Vs.collectionAudioSkipToElementQuery)); +}, Eo = new WeakSet(), Jd = function() { + c(this, Ti).forEach((e) => { + c(this, wi) ? (e.removeEventListener("touchend", t(this, ce, tt)), e.addEventListener("touchend", t(this, ce, tt).bind(this, e))) : (e.removeEventListener("click", t(this, ce, tt)), e.addEventListener("click", t(this, ce, tt).bind(this, e))); + }); +}, ce = new WeakSet(), tt = function(e) { + if (!o.isTouchMoving()) { + let l = e.getAttribute("data-amplitude-audio-index"), a = e.getAttribute("data-amplitude-collection-key"), s = e.getAttribute("data-amplitude-location"); + t(this, Ao, Xd).call(this, l, a, s) && (t(this, bo, Zd).call(this, a), t(this, ko, Gd).call(this, l, a), t(this, xo, er).call(this), m.syncAll(), t(this, Lo, tr).call(this, s)); + } +}, Ao = new WeakSet(), Xd = function(e, l, a) { + return e == null ? (Debug.writeMessage("You must add a `data-amplitude-audio-index` attribute to your `amplitude-skip-to` element."), !1) : l == null ? (Debug.writeMessage("You must add a valid `data-amplitude-collection-key` attribute to your `amplitude-skip-to` element."), !1) : a == null ? (Debug.writeMessage("You must add a `data-amplitude-location` attribute in seconds to your `amplitude-skip-to` element."), !1) : !0; +}, bo = new WeakSet(), Zd = function(e) { + E.collectionChanged(e) && new v().setActiveCollection(e); +}, ko = new WeakSet(), Gd = function(e, l) { + new v().changeAudioCollection(l, config.collections[l].audio[parseInt(e)], parseInt(e), !0); +}, xo = new WeakSet(), er = function() { + new p().play(); +}, Lo = new WeakSet(), tr = function(e) { + new p().skipToLocation(parseInt(e)); +}, r(ll, "collectionAudioSkipToElementQuery", ".amplitude-skip-to[data-amplitude-audio-index][data-amplitude-collection-key]"); +var Io, ir, So, lr; +class vh { + constructor() { + i(this, Io); + i(this, So); + } + setUp() { + t(this, Io, ir).call(this), t(this, So, lr).call(this); + } +} +Io = new WeakSet(), ir = function() { + new il().initialize(); +}, So = new WeakSet(), lr = function() { + new ll().initialize(); +}; +var Mi, Ci, To, nr, wo, ar, ue, it; +const Fs = class { + constructor() { + i(this, To); + i(this, wo); + i(this, ue); + i(this, Mi, void 0); + i(this, Ci, void 0); + u(this, Ci, o.isMobile()); + } + setUp() { + t(this, To, nr).call(this), t(this, wo, ar).call(this); + } +}; +let nl = Fs; +Mi = new WeakMap(), Ci = new WeakMap(), To = new WeakSet(), nr = function() { + u(this, Mi, document.querySelectorAll(Fs.stopElementQuery)); +}, wo = new WeakSet(), ar = function() { + c(this, Mi).forEach((e) => { + c(this, Ci) ? (e.removeEventListener("touchend", t(this, ue, it)), e.addEventListener("touchend", t(this, ue, it))) : (e.removeEventListener("click", t(this, ue, it)), e.addEventListener("click", t(this, ue, it))); + }); +}, ue = new WeakSet(), it = function() { + o.isTouchMoving() || (new p().stop(), m.syncAll()); +}, r(nl, "stopElementQuery", ".amplitude-stop"); +var ke, _i, Mo, or, Co, sr, de, lt; +const js = class { + constructor() { + i(this, Mo); + i(this, Co); + i(this, de); + i(this, ke, void 0); + i(this, _i, void 0); + u(this, _i, o.isMobile()); + } + setUp() { + t(this, Mo, or).call(this), t(this, Co, sr).call(this); + } +}; +let al = js; +ke = new WeakMap(), _i = new WeakMap(), Mo = new WeakSet(), or = function() { + u(this, ke, document.querySelectorAll(js.volumeDownElementQuery)); +}, Co = new WeakSet(), sr = function() { + c(this, ke).length > 0 && o.isIos() ? y.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") : c(this, ke).forEach((e) => { + c(this, _i) ? (e.removeEventListener("touchend", t(this, de, lt)), e.addEventListener("touchend", t(this, de, lt))) : (e.removeEventListener("click", t(this, de, lt)), e.addEventListener("click", t(this, de, lt))); + }); +}, de = new WeakSet(), lt = function() { + if (!o.isTouchMoving()) { + let e = new p(), l = o.getVolume(), a = o.getVolumeDecrement(); + l - a > 0 ? e.setVolume(l - a) : e.setVolume(0), T.syncElements(), he.syncElements(); + } +}, r(al, "volumeDownElementQuery", ".amplitude-volume-down"); +var xe, Pi, _o, cr, Po, ur, re, nt; +const Os = class { + constructor() { + i(this, _o); + i(this, Po); + i(this, re); + i(this, xe, void 0); + i(this, Pi, void 0); + u(this, Pi, o.isMobile()); + } + setUp() { + t(this, _o, cr).call(this), t(this, Po, ur).call(this); + } +}; +let ol = Os; +xe = new WeakMap(), Pi = new WeakMap(), _o = new WeakSet(), cr = function() { + u(this, xe, document.querySelectorAll(Os.volumeUpElementQuery)); +}, Po = new WeakSet(), ur = function() { + c(this, xe).length > 0 && o.isIos() ? y.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") : c(this, xe).forEach((e) => { + c(this, Pi) ? (e.removeEventListener("touchend", t(this, re, nt)), e.addEventListener("touchend", t(this, re, nt))) : (e.removeEventListener("click", t(this, re, nt)), e.addEventListener("click", t(this, re, nt))); + }); +}, re = new WeakSet(), nt = function() { + if (!o.isTouchMoving()) { + let e = new p(), l = o.getVolume(), a = o.getVolumeIncrement(); + l + a <= 100 ? e.setVolume(l + a) : e.setVolume(100), T.syncElements(), he.syncElements(); + } +}, r(ol, "volumeUpElementQuery", ".amplitude-volume-up"); +var Qo, dr, zo, rr, Uo, hr, qo, mr, No, pr, Do, fr, Ho, yr, Vo, vr, Fo, gr, jo, Er, Oo, Ar, Bo, br, Ko, kr, Yo, xr, Ro, Lr; +class gh { + constructor() { + i(this, Qo); + i(this, zo); + i(this, Uo); + i(this, qo); + i(this, No); + i(this, Do); + i(this, Ho); + i(this, Vo); + i(this, Fo); + i(this, jo); + i(this, Oo); + i(this, Bo); + i(this, Ko); + i(this, Yo); + i(this, Ro); + } + setVisualElementsDefaults() { + } + initializeElements() { + t(this, Qo, dr).call(this), t(this, zo, rr).call(this), t(this, Uo, hr).call(this), t(this, qo, mr).call(this), t(this, No, pr).call(this), t(this, Do, fr).call(this), t(this, Ho, yr).call(this), t(this, Vo, vr).call(this), t(this, Fo, gr).call(this), t(this, jo, Er).call(this), t(this, Oo, Ar).call(this), t(this, Bo, br).call(this), t(this, Ko, kr).call(this), t(this, Yo, xr).call(this), t(this, Ro, Lr).call(this); + } +} +Qo = new WeakSet(), dr = function() { + new A().syncMetaData(); +}, zo = new WeakSet(), rr = function() { + new ph().setUp(); +}, Uo = new WeakSet(), hr = function() { + new mh().setUp(); +}, qo = new WeakSet(), mr = function() { + new m().setUp(); +}, No = new WeakSet(), pr = function() { + new hh().setUp(); +}, Do = new WeakSet(), fr = function() { + new fh().setUp(); +}, Ho = new WeakSet(), yr = function() { + new T().setUp(); +}, Vo = new WeakSet(), vr = function() { + new he().setUp(); +}, Fo = new WeakSet(), gr = function() { + new ut().setUp(); +}, jo = new WeakSet(), Er = function() { + new nl().setUp(); +}, Oo = new WeakSet(), Ar = function() { + new al().setUp(); +}, Bo = new WeakSet(), br = function() { + new ol().setUp(); +}, Ko = new WeakSet(), kr = function() { + new yh().setUp(); +}, Yo = new WeakSet(), xr = function() { + new vh().setUp(); +}, Ro = new WeakSet(), Lr = function() { + new Lu().setUp(); +}; +var $o, Ir, Wo, Sr, Jo, Tr, Xo, wr; +class Eh { + constructor() { + i(this, $o); + i(this, Wo); + i(this, Jo); + i(this, Xo); + } + initializeCollections() { + n.collections.length > 0 && (t(this, $o, Ir).call(this), t(this, Wo, Sr).call(this), t(this, Jo, Tr).call(this), t(this, Xo, wr).call(this)); + } +} +$o = new WeakSet(), Ir = function() { +}, Wo = new WeakSet(), Sr = function() { + n.collections.forEach((e) => { + e.active_index = null; + }); +}, Jo = new WeakSet(), Tr = function() { + n.collections.forEach((e) => { + e.shuffle = !1, e.shuffle_list = []; + }); +}, Xo = new WeakSet(), wr = function() { + n.collections.forEach((e) => { + e.repeat = !1; + }), console.log(n); +}; +var Zo, Mr, Go, Cr; +class Ah { + constructor() { + i(this, Zo); + i(this, Go); + } + copyUserSettings(e) { + this.setAudio(e.audio), this.setCollections(e.collections), this.setVolume(e.volume), this.setDebug(e.debug), this.setDefaultArtwork(e.default_artwork), this.setPlaybackSpeed(e.playback_speed), this.setCallbacks(e.callbacks); + } + setAudio(e) { + n.audio = e != null ? e : [], t(this, Zo, Mr).call(this), t(this, Go, Cr).call(this); + } + setCollections(e) { + n.collections = e, new Eh().initializeCollections(); + } + setVolume(e) { + n.volume.current = e && e.initial ? e.initial : 50, n.volume.increment = e && e.increment ? e.increment : 5, n.volume.decrement = e && e.decrement ? e.decrement : 5, T.syncElements(); + } + setDebug(e) { + n.debug = e != null ? e : !1; + } + setDefaultArtwork(e) { + n.default_artwork = e != null ? e : !1; + } + setPlaybackSpeed(e) { + n.playback_speed = e != null ? e : 1, ut.syncElements(); + } + setCallbacks(e) { + n.callbacks = e != null ? e : []; + } +} +Zo = new WeakSet(), Mr = function() { + n.audio.forEach((e, l) => { + e.live == null && (e.live = !1); + }); +}, Go = new WeakSet(), Cr = function() { + n.audio.forEach((e, l) => { + e.index = l; + }); +}; +var es, S, Le, gs, ts, _r, is, Pr, Qi, ys, ls, Qr, ns, zr, as, Ur, os, qr, ss, Nr, cs, Dr; +class bh { + constructor(e, l) { + i(this, ts); + i(this, is); + i(this, Qi); + i(this, ls); + i(this, ns); + i(this, as); + i(this, os); + i(this, ss); + i(this, cs); + i(this, es, void 0); + i(this, S, void 0); + i(this, Le, void 0); + i(this, gs, !1); + u(this, Le, new o()), c(this, Le).setIsMobile(), u(this, S, e), u(this, es, l); + } + setup() { + t(this, ts, _r).call(this, c(this, S)) ? t(this, is, Pr).call(this) : t(this, Qi, ys).call(this); + } +} +es = new WeakMap(), S = new WeakMap(), Le = new WeakMap(), gs = new WeakMap(), ts = new WeakSet(), _r = function(e) { + try { + new URL(e); + } catch { + return y.writeMessage("AmplitudeJS must be initialized with a JSON object or a valid URL."), !1; + } + return !0; +}, is = new WeakSet(), Pr = function() { + fetch(c(this, S)).then((e) => { + if (e.status != 200) + throw e.status; + return e.json(); + }).then((e) => { + u(this, S, e), t(this, Qi, ys).call(this); + }).catch((e) => { + y.writeMessage(e); + }); +}, Qi = new WeakSet(), ys = function() { + t(this, ls, Qr).call(this), t(this, ns, zr).call(this), t(this, os, qr).call(this), t(this, as, Ur).call(this), t(this, ss, Nr).call(this), t(this, cs, Dr).call(this); +}, ls = new WeakSet(), Qr = function() { + c(this, Le).resetConfig(); +}, ns = new WeakSet(), zr = function() { + new Ah().copyUserSettings(c(this, S)); +}, as = new WeakSet(), Ur = function() { + new dh().initializeAllEvents(); +}, os = new WeakSet(), qr = function() { + let e = new Se(); + n.start_audio || e.changeAudio(n.audio[0], 0); +}, ss = new WeakSet(), Nr = function() { + new gh().initializeElements(); +}, cs = new WeakSet(), Dr = function() { + new g().handleNativeAudioElementEvents(); +}; +function kh(h = {}, e = null) { + new bh(h, e).setup(); +} +const xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + init: kh +}, Symbol.toStringTag, { value: "Module" })); +function Lh() { + return n; +} +const Ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + getConfig: Lh +}, Symbol.toStringTag, { value: "Module" })); +function Sh() { + return n.active_playlist; +} +const Th = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + getActivePlaylist: Sh +}, Symbol.toStringTag, { value: "Module" })), wh = [ + "abort", + "error", + "loadeddata", + "loadedmetadata", + "loadstart", + "pause", + "playing", + "play", + "progress", + "ratechange", + "seeked", + "seeking", + "stalled", + "suspend", + "timeupdate", + "volumechange", + "waiting", + "canplay", + "canplaythrough", + "durationchange", + "ended" +]; +function Mh(h, e) { + wh.indexOf(h) > -1 ? n.audio_element.addEventListener(h, e) : y.writeMessage("Invalid event listener. Please see all valid events here: https://www.w3schools.com/tags/ref_av_dom.asp"); +} +const Ch = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + addAudioEventListener: Mh +}, Symbol.toStringTag, { value: "Module" })), Ph = function() { + return { + ...xh, + ...Ih, + ...Th, + ...Ch + }; +}(); +export { + Ph as default +}; +//# sourceMappingURL=amplitude.mjs.map diff --git a/dist/amplitude.mjs.map b/dist/amplitude.mjs.map new file mode 100644 index 00000000..6eb12906 --- /dev/null +++ b/dist/amplitude.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"amplitude.mjs","sources":["../src/config.js","../src/services/Debug.js","../src/services/ConfigState.js","../src/services/Callbacks.js","../src/core/Audio.js","../src/elements/PlayPauseElements/GlobalPlayPauseElement.js","../src/services/Collections/Checks.js","../src/elements/PlayPauseElements/CollectionPlayPauseElement.js","../src/services/Audio/Checks.js","../src/elements/MetaDataElement.js","../src/elements/ContainerElements/AudioContainerElement.js","../src/elements/ContainerElements/CollectionAudioContainerElement.js","../src/elements/ContainerElement.js","../src/services/Audio/Navigation.js","../src/elements/PlayPauseElements/AudioPlayPauseElement.js","../src/elements/PlayPauseElements/CollectionAudioPlayPauseElement.js","../src/elements/PlayPauseElement.js","../src/services/Collections/Navigation.js","../src/events/AudioEndedEvent.js","../src/events/KeyBindingEvents.js","../src/elements/BufferedProgressElements/GlobalBufferedProgressElement.js","../src/elements/BufferedProgressElements/CollectionBufferedProgressElement.js","../src/elements/BufferedProgressElements/AudioBufferedProgressElement.js","../src/elements/BufferedProgressElement.js","../src/elements/ProgressElements/GlobalProgressElement.js","../src/elements/ProgressElements/CollectionProgressElement.js","../src/elements/ProgressElements/AudioProgressElement.js","../src/elements/ProgressElements/CollectionAudioProgressElement.js","../src/elements/ProgressElement.js","../src/services/Time.js","../src/elements/TimeElements/CurrentTime/GlobalCurrentTimeElement.js","../src/elements/TimeElements/CurrentTime/CollectionCurrentTimeElement.js","../src/elements/TimeElements/CurrentTime/AudioCurrentTimeElement.js","../src/elements/TimeElements/CurrentTime/CollectionAudioCurrentTimeElement.js","../src/elements/TimeElement.js","../src/elements/TrackerElements/GlobalTrackerElement.js","../src/elements/TrackerElements/CollectionTrackerElement.js","../src/elements/TrackerElements/AudioTrackerElement.js","../src/elements/TrackerElements/CollectionAudioTrackerElement.js","../src/elements/TrackerElement.js","../src/events/TimeUpdateEvent.js","../src/services/EventManager.js","../src/elements/NextElements/CollectionNextElement.js","../src/elements/NextElements/GlobalNextElement.js","../src/elements/NextElement.js","../src/elements/VolumeSliderElement.js","../src/elements/MuteElement.js","../src/elements/PauseElements/GlobalPauseElement.js","../src/elements/PauseElements/CollectionPauseElement.js","../src/elements/PauseElements/AudioPauseElement.js","../src/elements/PauseElements/CollectionAudioPauseElement.js","../src/elements/PauseElement.js","../src/elements/PlayElements/GlobalPlayElement.js","../src/elements/PlayElements/CollectionPlayElement.js","../src/elements/PlayElements/AudioPlayElement.js","../src/elements/PlayElements/CollectionAudioPlayElement.js","../src/elements/PlayElement.js","../src/elements/PlaybackSpeedElement.js","../src/elements/PreviousElements/CollectionPreviousElement.js","../src/elements/PreviousElements/GlobalPreviousElement.js","../src/elements/PreviousElement.js","../src/services/Collections/Shuffle.js","../src/elements/ShuffleElements/CollectionShuffleElement.js","../src/elements/ShuffleElements/GlobalShuffleElement.js","../src/elements/ShuffleElement.js","../src/elements/SkipToElements/AudioSkipToElement.js","../src/elements/SkipToElements/CollectionAudioSkipToElement.js","../src/elements/SkipToElement.js","../src/elements/StopElement.js","../src/elements/VolumeDownElement.js","../src/elements/VolumeUpElement.js","../src/services/ElementsManager.js","../src/init/Collections.js","../src/init/UserConfig.js","../src/init/Initializer.js","../src/methods/init.js","../src/methods/config.js","../src/methods/playlists.js","../src/methods/eventListeners.js","../src/index.js"],"sourcesContent":["/**\n * These variables make Amplitude run. The config is the most important\n * containing active settings and parameters.\n *\n * The config JSON is the global settings for ALL of Amplitude functions.\n * This is global and contains all of the user preferences. The default\n * settings are set, and the user overwrites them when they initialize\n * Amplitude.\n */\nimport version from \"../package.json\";\n\nexport const config = {\n\t// Amplitude State Variables\n\taudio_element: new Audio(),\n\tmobile: false,\n\tversion: version,\n\n\t// Amplitude Dynamic Variables\n\tactive_metadata: {},\n\tactive_album: \"\",\n\tactive_index: 0,\n\n\tactive_podcast: null,\n\tactive_playlist: null,\n\tactive_collection: null,\n\n\tplayback_speed: 1.0,\n\trepeat: false,\n\tshuffle_list: {},\n\t/**\n\t * @todo BREAKING should be repeat_audio\n\t */\n\t// repeat_song: false,\n\trepeat_audio: false,\n\tshuffle_on: false,\n\n\t// User Definable Variables\n\tcallbacks: [],\n\t\n\taudio: [],\n\n\tcollections: [],\n\n\tdebug: true,\n\tdefault_artwork: \"\",\n\tdefault_playlist_art: \"\",\n\n\tstart_audio: \"\",\n\n\tstarting_playlist: \"\",\n\tstarting_playlist_song: \"\",\n\n\tstarting_podcast: \"\",\n\tstarting_podcast_episode: \"\",\n\n\t/**\n\t * @todo BREAKING CHANGE\n\t */\n\tvolume: {\n\t\tcurrent: 50,\n\t\tincrement: 5,\n\t\tdecrement: 5,\n\t\tpre_mute_level: 50\n\t},\n\t// volume: 0.5,\n\n\t// pre_mute_volume: 0.5,\n\n\t// volume_increment: 5,\n\n\t// volume_decrement: 5,\n\n\t/**\n\t * @todo BREAKING CHANGE\n\t */\n\tsoundcloud: {\n\t\tclient: '',\n\t\tuse_art: false,\n\t\taudio_count: 0,\n\t\tready_count: 0\n\t},\n\t// soundcloud_client: \"\",\n\n\t// soundcloud_use_art: false,\n\n\t// soundcloud_song_count: 0,\n\n\t// soundcloud_songs_ready: 0,\n\n\tis_touch_moving: false,\n\n\tbuffered: 0,\n\n\tbindings: {},\n\n\tcontinue_next: true,\n\n\tdelay: 0,\n\n\tplayer_state: \"stopped\",\n\n\ttime_format: 'MM:SS',\n\n\t/**\n\t * @todo BREAKING\n\t */\n\tweb_audio_api:{\n\t\tavailabile: false,\n\t\tcontext: null,\n\t\tsource: null,\n\t\tanalyser: null\n\t},\n\t// web_audio_api_available: false,\n\n\t// context: null,\n\n\t// source: null,\n\n\t// analyser: null,\n\n\tvisualizations: {\n\t\tavailable: [],\n\n\t\tactive: [],\n\n\t\tbackup: \"\"\n\t},\n\t\n\twaveforms: {\n\tsample_rate: 100,\n\n\tbuilt: [],\n\n\t}\n};\n","import { config } from \"@/config.js\";\n\nexport class Debug{\n\tstatic writeMessage( message ){\n\t\tif( config.debug ){\n\t\t\tconsole.log( message );\n\t\t}\n\t}\n}","import { config } from '@/config.js';\n\n\n\nexport class ConfigState{\n\tsetIsMobile(){\n\t\tif ( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ) ) {\n\t\t\tconfig.mobile = true;\n\t\t}else{\n\t\t\tconfig.mobile = false;\n\t\t}\n\t}\n\n\tstatic isIos(){\n\t\treturn /iPhone|iPad|iPod/i.test( navigator.userAgent );\n\t}\n\n\tstatic isIE(){\n\t\tlet ua = window.navigator.userAgent;\n\t\tlet msie = ua.indexOf(\"MSIE \");\n\n\t\treturn ( msie > 0 || !!navigator.userAgent.match(/Trident.*rv\\:11\\./) );\n\t}\n\n\tstatic isMobile(){\n\t\treturn config.mobile;\n\t}\n\n\tstatic isTouchMoving(){\n\t\treturn config.is_touch_moving;\n\t}\n\n\tstatic getAudioState(){\n\t\treturn config.audio_element.paused ? \"paused\" : \"playing\";\n\t}\n\n\tstatic getScope(){\n\t\tif( config.active_collection == '' || config.active_collection == null ){\n\t\t\treturn 'audio';\n\t\t}else{\n\t\t\treturn 'collection';\n\t\t}\n\t}\n\n\tstatic getVolume(){\n\t\treturn config.volume.current;\n\t}\n\n\tstatic getVolumeIncrement(){\n\t\treturn config.volume.increment;\n\t}\n\n\tstatic getVolumeDecrement(){\n\t\treturn config.volume.decrement;\n\t}\n\n\tstatic getPreMuteVolume(){\n\t\treturn config.volume.pre_mute_level;\n\t}\n\n\tstatic setPreMuteVolume( level = null ){\n\t\tif( !level ){\n\t\t\tlevel = config.volume.current;\n\t\t}\n\n\t\tconfig.volume.pre_mute_level = level;\n\t}\n\n\tstatic getPlaybackSpeed(){\n\t\treturn config.playback_speed;\n\t}\n\n\tstatic isCollectionShuffled( collection ){\n\t\tif( config.collections[ collection ] && config.collections[ collection ].shuffled ){\n\t\t\treturn true;\n\t\t}else{ \n\t\t\treturn false;\n\t\t}\n\t}\n\n\tstatic setCollectionShuffled( collection, shuffled, audio ){\n\t\tconfig.collections[ collection ].shuffled = shuffled;\n\t\tconfig.collections[ collection ].audio = audio;\n\t}\n\n\tstatic getCollectionAudio( collection ){\n\t\treturn config.collections[ collection ].audio;\n\t}\n\n\tstatic getActiveCollection(){\n\t\treturn config.active_collection;\n\t}\n\n\tstatic getActiveAudioIndex(){\n\t\treturn config.active_index;\n\t}\n\n\tstatic getContinueNext(){\n\t\treturn config.continue_next;\n\t}\n\n\tstatic updateBufferedTime(){\n\t\t// Help from: http://jsbin.com/badimipi/1/edit?html,js,output\n if( config.audio_element.buffered.length - 1 >= 0 ){\n let bufferedEnd = config.audio_element.buffered.end(\n config.audio_element.buffered.length - 1\n );\n\n let duration = config.audio_element.duration;\n\n config.buffered = ( bufferedEnd / duration ) * 100;\n }\n\t}\n\n\tstatic getBufferedPercentage(){\n\t\treturn parseFloat( config.buffered ) / 100;\n\t}\n\n\tstatic isLive(){\n\t\treturn config.active_metadata.live;\n\t}\n\n\tstatic getTimeFormat(){\n\t\treturn config.time_format;\n\t}\n\n\tstatic getCallback( name ){\n\t\tlet callbackObject = false;\n\n\t\tconfig.callbacks.forEach( function( callback ){\n\t\t\tif( callback.event == name ){\n\t\t\t\tcallbackObject = callback\n\t\t\t}\n\t\t});\n\n\t\treturn callbackObject;\n\t}\n\n\tresetConfig(){\n\t\tconfig.audio_element = new Audio();\n\t\tconfig.active_metadata = {};\n\t\tconfig.active_album = \"\";\n\t\tconfig.active_index = 0;\n\t\tconfig.active_playlist = null;\n\t\tconfig.playback_speed = 1.0;\n\t\tconfig.audio = [];\n\t\tconfig.playlists = {};\n\t\tconfig.start_audio = \"\";\n\t\tconfig.starting_playlist = \"\";\n\t\tconfig.starting_playlist_song = \"\";\n\t\tconfig.repeat = false;\n\t\tconfig.shuffle_list = {};\n\t\tconfig.shuffle_on = false;\n\t\tconfig.default_artwork = \"\";\n\t\tconfig.default_playlist_art = \"\";\n\t\tconfig.debug = true;\n\t\tconfig.callbacks = [];\n\n\t\tconfig.volume = {\n\t\t\tcurrent: 50,\n\t\t\tincrement: 5,\n\t\t\tdecrement: 5,\n\t\t\tpre_mute_level: 50\n\t\t},\n\n\t\tconfig.soundcloud = {\n\t\t\tclient: '',\n\t\t\tuse_art: false,\n\t\t\taudio_count: 0,\n\t\t\tready_count: 0\n\t\t},\n\n\t\t/**\n\t\t * @todo BREAKING CHANGE\n\t\t */\n\t\t// config.soundcloud_client = \"\";\n\t\t// config.soundcloud_use_art = false;\n\t\t// config.soundcloud_song_count = 0;\n\t\t// config.soundcloud_songs_ready = 0;\n\t\tconfig.continue_next = true;\n\n\t\t/**\n\t\t * @todo rebind event handlers\n\t\t */\n\t\t\n\t}\n\n\n\tstatic setPlayerState(){\n\t\t// If paused and the current time is 0 the player is stopped.\n\t\tif (config.audio_element.paused && config.audio_element.currentTime == 0) {\n\t\t\tconfig.player_state = \"stopped\";\n\t\t}\n \n\t\t// If paused and the current time is greater than 0 the player is paused.\n\t\tif (config.audio_element.paused && config.audio_element.currentTime > 0) {\n\t\t\tconfig.player_state = \"paused\";\n\t\t}\n \n\t\t// If playing, the current state is playing.\n\t\tif (!config.audio_element.paused) {\n\t\t\tconfig.player_state = \"playing\";\n\t\t}\n\t}\n}","import { config } from \"../config\";\nimport { ConfigState } from \"./ConfigState\";\nimport { Debug } from \"./Debug\";\n\nexport class Callbacks{\n #events = [\n 'abort',\n 'error',\n 'loadeddata',\n 'loadedmetadata',\n 'loadstart',\n 'pause',\n 'playing',\n 'play',\n 'progress',\n 'ratechange',\n 'seeked',\n 'seeking',\n 'stalled',\n 'suspend',\n 'timeupdate',\n 'volumechange',\n 'waiting',\n 'canplay',\n 'canplaythrough',\n 'durationchange',\n 'ended'\n ];\n\n handleNativeAudioElementEvents(){\n this.#events.forEach( function( event ){\n config.audio_element.addEventListener( event, function( ){\n Callbacks.run( event );\n } );\n });\n }\n\n static run( event ){\n let callback = ConfigState.getCallback( event );\n\n if( callback ){\n Debug.writeMessage( \"Running Callback for event '\" + callback.event + \"' with method '\" + callback.handler + \"'\");\n\n try {\n window[callback.handler]();\n } catch ( error ){\n if (error.message == \"CANCEL EVENT\") {\n throw error;\n }else{\n Debug.writeMessage( error.message );\n }\n }\n }\n }\n}","import { Callbacks } from \"@/services/Callbacks.js\";\nimport { config } from \"@/config.js\";\nimport { ConfigState } from '@/services/ConfigState.js'\nimport { Debug } from \"@/services/Debug.js\";\n\nexport class Audio{\n play(){\n this.#startVisualizations();\n this.#reconnectStream();\n this.#playAudio();\n ConfigState.setPlayerState();\n }\n\n pause(){\n this.#stopVisualizations();\n this.#pauseAudio();\n this.#disconnectStream();\n ConfigState.setPlayerState();\n }\n\n stop(){\n this.#stopVisualizations();\n this.setCurrentTime(0);\n this.#pauseAudio();\n this.#disconnectStream();\n ConfigState.setPlayerState();\n Callbacks.run('stop');\n }\n\n skipToLocation(seconds){\n // Cannot skip live streams\n if( !config.active_metadata.live ){\n // We only skip to the location when the audio is loaded enough to play through\n // and skip to a location. This event is unbound after it's fired once.\n config.audio_element.addEventListener(\"canplaythrough\", function(){\n if( config.audio_element.duration >= seconds && seconds > 0 ){\n config.audio_element.currentTime = seconds;\n } else {\n Debug.writeMessage( \"Amplitude can't skip to a location greater than the duration of the audio or less than 0.\")\n }\n }, { once: true } );\n }\n }\n\n /**\n * \n * @param {number} volumeLevel - A number between 1 - 100 as percentage of volume.\n */\n setVolume( volumeLevel ){\n this.#setMuted( volumeLevel );\n this.#setAudioVolume( volumeLevel );\n }\n\n setAudioLocation( percentage ){\n if( !config.active_metadata.live ){\n config.audio_element.currentTime = config.audio_element.duration * ( percentage / 100 );\n }\n }\n\n setPlaybackSpeed( playbackSpeed ){\n config.playback_speed = playbackSpeed;\n config.audio_element.playbackRate = config.playback_speed;\n }\n\n #startVisualizations(){\n // Visualizations.stop();\n // Visualizations.run();\n }\n\n #stopVisualizations(){\n // Visualizations.stop();\n }\n\n #reconnectStream(){\n /*\n Mobile remote sources need to be reconnected on play. I think this is\n because mobile browsers are optimized not to load all resources\n for speed reasons. We only do this if mobile and the paused button\n is not clicked. If the pause button was clicked then we don't reconnect\n or the user will lose their place in the stream.\n */ \n if( config.active_metadata.live \n || ( ConfigState.isMobile() && !config.paused ) ){\n config.audio_element.src = config.active_metadata.url;\n config.audio_element.load();\n }\n }\n\n #disconnectStream(){\n if( config.active_metadata.live ){\n config.audio_element.src = \"\";\n config.audio_element.load();\n }\n }\n\n #playAudio(){\n let playPromise = config.audio_element.play();\n\n if( playPromise !== undefined ){\n playPromise.then(_ => {}).catch(error => {});\n }\n\n config.audio_element.playbackRate = config.playback_speed;\n }\n\n #pauseAudio(){\n config.audio_element.pause();\n config.paused = true;\n }\n\n setCurrentTime( seconds ){\n if ( isFinite( seconds ) ) {\n config.audio_element.currentTime = seconds;\n }\n }\n\n #setMuted( volumeLevel ){\n if( volumeLevel == 0 ){\n config.audio_element.muted = true;\n }else{\n config.audio_element.muted = false;\n }\n }\n\n #setAudioVolume( volumeLevel ){\n config.volume.current = volumeLevel;\n config.audio_element.volume = ( volumeLevel / 100 );\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class GlobalPlayPauseElement{\n static globalPlayPauseQuery = '.amplitude-play-pause:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n \n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements()\n this.#bindInteractions()\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalPlayPauseElement.globalPlayPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction );\n }\n } );\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n\n if( config.audio_element.paused ){\n audio.play();\n }else{\n audio.pause();\n }\n\n PlayPauseElement.syncAll();\n }\n }\n\n static syncUI(){\n let state = ConfigState.getAudioState();\n let elements = document.querySelectorAll( GlobalPlayPauseElement.globalPlayPauseQuery );\n\n elements.forEach( ( element ) => {\n if( state == 'playing' ){\n PlayPauseElement.setElementPlay( element );\n }else{\n PlayPauseElement.setElementPause( element );\n }\n })\n }\n\n static syncToPause(){\n let elements = document.querySelectorAll( GlobalPlayPauseElement.globalPlayPauseQuery );\n\n elements.forEach( (element) => {\n PlayPauseElement.setElementPause( element );\n });\n }\n}","import { config } from \"@/config\";\n\nexport class Checks {\n static collectionExists( key ){\n\t\tif( config.collections[ key ] ){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tstatic collectionChanged( collection ){\n\t\tif (config.active_collection != collection) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tstatic isCollectionShuffled( collection ){\n if( config.collections[ collection ].shuffle ){\n return true;\n }else{\n return false;\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { Checks as CollectionChecks } from \"@/services/Collections/Checks\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation\";\nimport { Debug } from \"@/services/Debug\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\n/**\n * A Collection Play Pause element is defined by the following:\n * \n * Element: class=\"amplitude-play-pause\" data-amplitude-collection-key=\"{collection_key}\"\n */\nexport class CollectionPlayPauseElement {\n static collectionPlayPauseQuery = '.amplitude-play-pause[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements()\n this.#bindInteractions()\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionPlayPauseElement.collectionPlayPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {;\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n } );\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){\n let collection = element.getAttribute('data-amplitude-collection-key');\n\n if( !CollectionChecks.collectionExists( collection ) ){\n Debug.writeMessage('Collection with key \"'+collection+'\" does not exist! Please define this collection in your configuration.');\n return false;\n }\n\n this.#handleCollectionChanges( collection );\n this.#toggleAudio();\n\n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( collection ){\n if( CollectionChecks.collectionChanged( collection ) ){\n \n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.setActiveCollection( collection );\n\n // If the collection is shuffled and the collection is changed,\n // we change the audio to be the first audio in the array. Since,\n // we are changing the collection, we are starting at the top.\n if( CollectionChecks.isCollectionShuffled( collection ) ){\n collectionNavigation.changeAudioCollection(\n collection,\n config.collections[ collection ].shuffle_list[0],\n 0,\n true\n );\n }else{\n collectionNavigation.changeAudioCollection(\n collection,\n config.collections[ collection ].audio[0],\n 0\n );\n }\n }\n }\n\n #toggleAudio(){\n let audio = new Audio();\n\n if( config.audio_element.paused ){\n audio.play();\n }else{\n audio.pause();\n }\n }\n\n static syncUI(){\n let state = ConfigState.getAudioState();\n let elements = document.querySelectorAll( CollectionPlayPauseElement.collectionPlayPauseQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n\n if( state == 'playing' && ( activeCollectionKey == elementCollectionKey ) ){\n PlayPauseElement.setElementPlay( element );\n }else{\n PlayPauseElement.setElementPause( element );\n }\n })\n }\n\n static syncToPause(){\n let elements = document.querySelectorAll( CollectionPlayPauseElement.collectionPlayPauseQuery );\n\n elements.forEach( (element) => {\n PlayPauseElement.setElementPause( element );\n });\n }\n}","import { config } from \"@/config\";\n\nexport class Checks {\n static audioExists( index ){\n if( config.audio[ index ] ){\n return true;\n }else{\n return false;\n }\n }\n\n static audioChanged( audioIndex, collectionKey = null ){\n\t\tif( config.active_collection != collectionKey ){\n\t\t\treturn true;\n\t\t}else{\n\t\t\tif( config.active_collection == null && collectionKey == null ){\n\t\t\t\tif( config.active_index != audioIndex ){\n\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif( config.active_collection == collection && \n\t\t\t\t\tconfig.collections[ collectionKey ].active_index != audioIndex ){\n\t\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}","import { config } from \"@/config\";\n\nexport class MetaDataElement {\n static globalMetaDataElementsQuery = '[data-amplitude-audio-info]:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n static collectionMetaDataElementsQuery = '[data-amplitude-audio-info][data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n static audioMetaDataElementsQuery = '[data-amplitude-audio-info][data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n static collectionAudioMetaDataElementsQuery = '[data-amplitude-audio-info][data-amplitude-audio-index][data-amplitude-collection-key]';\n static collectionInfoElementsQuery = '[data-amplitude-collection-info]';\n\n #imageMetaDataKeys = [\n \"cover_art_url\",\n \"station_art_url\",\n \"podcast_episode_cover_art_url\",\n \"album_art_url\"\n ]\n\n /**\n * Gets called after audio has been changed. Updates all of the global\n * elements and collection elements, not the individual audio elements.\n * Individual audio elements should only be dynamically set once and not again\n * since they never change.\n * \n * Examples:\n * Update - Global cover art for a song.\n * Update - Playlist now playing cover art.\n * Update - Podcast now playing cover art.\n * Do Not Update - Individual audio element. These will be set with syncMetaData()\n * and won't need to be updated again.\n */\n displayMetaData(){\n this.#displayGlobalMetaElements();\n this.#displayCollectionMetaElements();\n }\n\n #displayGlobalMetaElements(){\n let globalAudioInfoElements = document.querySelectorAll( MetaDataElement.globalMetaDataElementsQuery );\n\n globalAudioInfoElements.forEach( ( element ) => {\n let key = element.getAttribute('data-amplitude-audio-info');\n let value = ( config.active_metadata[ key ] != undefined ) ? config.active_metadata[ key ] : null;\n\n this.#setMetaValue( key, value, element );\n });\n }\n\n #displayCollectionMetaElements(){\n let collectionInfoElements = document.querySelectorAll( MetaDataElement.collectionMetaDataElementsQuery );\n\n collectionInfoElements.forEach( ( element ) => {\n let key = element.getAttribute('data-amplitude-audio-info');\n let value = ( config.active_metadata[ key ] != undefined ) ? config.active_metadata[ key ] : null;\n\n this.#setMetaValue( key, value, element );\n });\n }\n \n #displayAudioMetaElements(){\n let audioInfoElements = document.querySelectorAll( MetaDataElement.audioMetaDataElementsQuery );\n\n audioInfoElements.forEach( ( element ) => {\n let key = element.getAttribute('data-amplitude-audio-info');\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n let value = config.audio[ audioIndex ][ key ] != undefined ? config.audio[ audioIndex ][ key ] : null;\n\n this.#setMetaValue( key, value, element );\n });\n }\n\n #displayCollectionAudioMetaElements(){\n let collectionAudioInfoElements = document.querySelectorAll( MetaDataElement.collectionAudioMetaDataElementsQuery );\n\n collectionAudioInfoElements.forEach( ( element ) => {\n let key = element.getAttribute('data-amplitude-audio-info');\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n let collectionKey = element.getAttribute('data-amplitude-collection-key');\n let value = config.collections[ collectionKey ].audio[ audioIndex ][ info ] != undefined\n ? config.collections[ collectionKey ].audio[ audioIndex ][ info ]\n : null;\n\n this.#setMetaValue( key, value, element );\n });\n }\n\n #setMetaValue( key, value, element ){\n if( this.#imageMetaDataKeys.indexOf( key ) >= 0 ){\n value = value || config.default_art;\n element.setAttribute('src', value);\n }else{\n value = value || \"\";\n element.innerHTML = value;\n }\n }\n\n displayCollectionMetaData(){\n\n }\n\n syncMetaData(){\n this.#displayAudioMetaElements();\n this.#displayCollectionAudioMetaElements();\n this.displayCollectionMetaData();\n }\n}","import { config } from \"@/config\";\nimport { ConfigState } from \"@/services/ConfigState\";\n\nexport class AudioContainerElement {\n static audioContainerElementQuery = '.amplitude-audio-container[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n \n #elements;\n #activeIndex;\n\n setActive(){\n if( ConfigState.getScope() == 'audio' ){\n this.#findElements();\n this.#resetElements();\n this.#getActiveIndex();\n this.#setActiveContainerElements();\n }\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioContainerElement.audioContainerElementQuery );\n }\n\n #resetElements(){\n this.#elements.forEach( function( element ){\n element.classList.remove('amplitude-active-audio-container');\n });\n }\n\n #getActiveIndex(){\n this.#activeIndex = config.active_index;\n }\n\n #setActiveContainerElements(){\n let activeContainerElements = document.querySelectorAll('.amplitude-audio-container[data-amplitude-audio-index=\"'+this.#activeIndex+'\"]:not([data-amplitude-collection-key])');\n \n activeContainerElements.forEach( function( element ){\n element.classList.add(\"amplitude-active-audio-container\");\n });\n }\n}","import { config } from \"@/config\";\nimport { ConfigState } from \"@/services/ConfigState\";\n\nexport class CollectionAudioContainerElement {\n static collectionAudioContainerElementQuery = '.amplitude-audio-container[data-amplitude-audio-index][data-amplitude-collection-key]';\n\n #direct;\n #elements;\n #activeIndex;\n #activeCollection;\n\n constructor( direct ){\n this.#direct = direct;\n }\n\n setActive(){\n if( ConfigState.getScope() == 'collection' ){\n this.#findElements();\n this.#resetElements();\n this.#getActiveIndex();\n this.#setActiveContainerElements();\n }\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioContainerElement.collectionAudioContainerElementQuery );\n }\n\n #resetElements(){\n this.#elements.forEach( function( element ){\n element.classList.remove('amplitude-active-audio-container');\n });\n }\n\n #getActiveIndex(){\n this.#activeCollection = ConfigState.getActiveCollection();\n\n if( this.#direct ){\n this.#activeIndex = config.collections[ this.#activeCollection ].active_index;\n }else{\n if( ConfigState.isCollectionShuffled( this.#activeCollection ) ){\n this.#activeIndex = config.collections[ this.#activeCollection ].shuffle_list[\n config.collections[ this.#activeCollection ].active_index\n ].index;\n }else{\n this.#activeIndex = config.collections[ this.#activeCollection ].active_index;\n }\n }\n }\n\n #setActiveContainerElements(){\n let activeContainerElements = document.querySelectorAll('.amplitude-audio-container[data-amplitude-audio-index=\"'+this.#activeIndex+'\"][data-amplitude-collection-key=\"'+this.#activeCollection+'\"]');\n activeContainerElements.forEach( function( element ){\n element.classList.add(\"amplitude-active-audio-container\");\n });\n }\n}","import { AudioContainerElement } from \"./ContainerElements/AudioContainerElement\";\nimport { CollectionAudioContainerElement } from \"./ContainerElements/CollectionAudioContainerElement\";\n\nexport class ContainerElement{\n \n setActiveContainers( direct ){\n this.#setActiveAudioContainers();\n this.#setActiveCollectionAudioContainers( direct );\n }\n\n #setActiveAudioContainers(){\n let audioContainerElements = new AudioContainerElement();\n audioContainerElements.setActive();\n }\n\n #setActiveCollectionAudioContainers( direct ){\n let collectionAudioContainerElements = new CollectionAudioContainerElement( direct );\n collectionAudioContainerElements.setActive();\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { config } from \"@/config\";\nimport { Callbacks } from \"@/services/Callbacks\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { MetaDataElement } from \"@/elements/MetaDataElement\";\nimport { ContainerElement } from \"@/elements/ContainerElement\";\n\nexport class Navigation {\n /**\n * Change audio in the audio array\n *\n * @prop {object} audio - The audio we are changing to.\n * @prop {number} index - The index we are changing to.\n * @prop {boolean} direct - Determines if it was a direct click on the song.\n * We then don't care if shuffle is on or not.\n */\n changeAudio( audio, index, direct = false ){\n this.#prepareAudioChange( audio );\n\n this.#switchAudio(audio, index);\n\n this.#afterAudioChange( direct );\n }\n\n #prepareAudioChange( audio ){\n let coreAudio = new Audio();\n coreAudio.stop();\n\n // Sync elements\n PlayPauseElement.syncAllToPause();\n /**\n * @todo Song Slider Elements -> reset\n * @todo Song Played Progress Elements -> reset\n * @todo Time Elements -> reset \n * ( See src/utilities/audioNavigation.js Line #528)\n */\n /**\n * @todo we don't have album change callback, make note.\n */\n }\n\n #switchAudio( audio, index ){\n config.active_collection = null;\n config.audio_element.src = audio.url;\n config.active_metadata = audio;\n /** \n * @todo We don't have active_album. make note.\n */\n config.active_index = parseInt( index );\n }\n\n #afterAudioChange( direct ){\n this.#updateMetaData();\n\n let containerElements = new ContainerElement();\n containerElements.setActiveContainers( direct );\n\n /**\n * @todo time elements -> reset duration times\n * ( see src/utilities/audioNavigation.js Line #558 )\n */\n Callbacks.run('audio_change');\n }\n\n #updateMetaData(){\n let metaData = new MetaDataElement();\n metaData.displayMetaData();\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { Checks as AudioChecks } from '@/services/Audio/Checks.js';\nimport { Navigation as AudioNavigation } from '@/services/Audio/Navigation.js';\nimport { Checks as CollectionChecks } from '@/services/Collections/Checks.js';\nimport { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js';\nimport { Debug } from \"@/services/Debug\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class AudioPlayPauseElement {\n static audioPlayPauseQuery = '.amplitude-play-pause[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioPlayPauseElement.audioPlayPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n } );\n }\n\n /**\n * There can be multiple collections on the page. There can also be multiple\n * individual audio players and audio players in collections.\n * \n * We first check to see if the audio index exists. This can be a game changer\n * if the user messes up a key.\n * \n * Next, we check to see if the collection has changed. Even though, this class\n * responds to audio that is not a part of a collection, technically the collection\n * changes if the state of the player is in collection mode and we switch out of collection\n * mode.\n * \n * Finally, we check to see if the audio has changed. This means there is more than\n * one audio player on the page and the user has switched to a different player. If the\n * player was in collection mode, this check won't do anything since we change the audio\n * out of collection mode. This only fires if the player is not in collection mode and\n * switches to another audio player not in collection mode.\n * \n * @returns {boolean|null}\n */\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){\n let index = element.getAttribute('data-amplitude-audio-index');\n \n if( !AudioChecks.audioExists( index ) ){\n Debug.writeMessage('Audio with index \"'+index+'\" does not exist! Please add an audio object at this index in your configuration.');\n return false;\n }\n\n this.#handleCollectionChanges( index );\n this.#handleAudioChanges( index );\n this.#toggleAudio();\n \n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( index ){\n if( CollectionChecks.collectionChanged( null ) ){\n let collectionNavigation = new CollectionNavigation();\n let audioNavigation = new AudioNavigation();\n\n collectionNavigation.setActiveCollection( null );\n audioNavigation.changeAudio(\n config.audio[index], index, true\n );\n }\n }\n\n #handleAudioChanges( index ){\n if( AudioChecks.audioChanged( index ) ){\n let audioNavigation = new AudioNavigation();\n\n audioNavigation.changeAudio(\n config.audio[index], index, true\n );\n }\n }\n\n #toggleAudio(){\n let audio = new Audio();\n\n if( config.audio_element.paused ){\n audio.play();\n }else{\n audio.pause();\n }\n }\n\n static syncUI(){\n let state = ConfigState.getAudioState();\n let elements = document.querySelectorAll( AudioPlayPauseElement.audioPlayPauseQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( state == 'playing' && ( activeAudioIndex == elementAudioIndex ) ){\n PlayPauseElement.setElementPlay( element );\n }else{\n PlayPauseElement.setElementPause( element );\n }\n })\n }\n\n static syncToPause(){\n let elements = document.querySelectorAll( AudioPlayPauseElement.audioPlayPauseQuery );\n\n elements.forEach( ( element ) => {\n PlayPauseElement.setElementPause( element );\n });\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { Checks as AudioChecks } from '@/services/Audio/Checks.js';\nimport { Checks as CollectionChecks } from '@/services/Collections/Checks.js';\nimport { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js';\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class CollectionAudioPlayPauseElement {\n static collectionAudioPlayPauseQuery = '.amplitude-play-pause[data-amplitude-audio-index][data-amplitude-collection-key]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioPlayPauseElement.collectionAudioPlayPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n } );\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){\n let collectionKey = element.getAttribute('data-amplitude-collection-key');\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n \n this.#handleCollectionChanges( collectionKey, audioIndex );\n this.#handleAudioChanges( collectionKey, audioIndex );\n this.#toggleAudio();\n\n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( collectionKey, audioIndex ){\n if( CollectionChecks.collectionChanged( collectionKey ) ){\n let collectionNavigation = new CollectionNavigation();\n\n collectionNavigation.setActiveCollection( collectionKey );\n collectionNavigation.changeAudioCollection(\n collectionKey,\n config.collections[ collectionKey ].audio[audioIndex],\n audioIndex,\n true\n );\n }\n }\n\n #handleAudioChanges( collectionKey, audioIndex ){\n if( AudioChecks.audioChanged( audioIndex, collectionKey ) ){\n let collectionNavigation = new CollectionNavigation();\n\n collectionNavigation.changeAudioCollection(\n collectionKey,\n config.collections[ collectionKey ].audio[audioIndex],\n audioIndex,\n true\n );\n }\n }\n\n #toggleAudio(){\n let audio = new Audio();\n\n if( config.audio_element.paused ){\n audio.play();\n }else{\n audio.pause();\n }\n }\n\n static syncUI(){\n let state = ConfigState.getAudioState();\n let elements = document.querySelectorAll( CollectionAudioPlayPauseElement.collectionAudioPlayPauseQuery );\n \n elements.forEach( ( element ) => {\n if( state == 'playing' ){\n PlayPauseElement.setElementPlay( element );\n }else{\n PlayPauseElement.setElementPause( element );\n }\n })\n }\n\n static syncToPause(){\n let elements = document.querySelectorAll( CollectionAudioPlayPauseElement.collectionAudioPlayPauseQuery );\n\n elements.forEach( ( element ) => {\n PlayPauseElement.setElementPause( element );\n });\n }\n}","import { GlobalPlayPauseElement } from \"./PlayPauseElements/GlobalPlayPauseElement\";\nimport { CollectionPlayPauseElement } from \"./PlayPauseElements/CollectionPlayPauseElement\";\nimport { AudioPlayPauseElement } from \"./PlayPauseElements/AudioPlayPauseElement\";\nimport { CollectionAudioPlayPauseElement } from \"./PlayPauseElements/CollectionAudioPlayPauseElement\";\n\n/**\n * Handles the configuration and managing of Play/Pause elements.\n * \n * A Play Pause element is defined as the following:\n * \n * Element: class=\"amplitude-play-pause\"\n * \n * GLOBAL: class=\"amplitude-play-pause\" \n * Controls the entire state of the audio player. Will play or pause whatever is active.\n * \n * COLLECTION: class=\"amplitude-play-pause\" data-amplitude-collection-key=\"{collection_key}\"\n * Scoped to an individual collection. Will only play or pause within the scope of a collection.\n * \n * AUDIO: class=\"amplitude-play-pause\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element. Will only play or pause a specific piece of audio.\n * \n * AUDIO IN COLLECTION: class=\"amplitude-play-pause\" data-amplitude-collection-key=\"{collection_key}\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element within a collection. Will only play or pause a specific piece of audio in a collection.\n */\nexport class PlayPauseElement{\n constructor(){\n\n }\n\n setUp(){\n this.#configureGlobalPlayPauseElement();\n this.#configureCollectionPlayPauseElement();\n this.#configureAudioPlayPauseElement();\n this.#configureCollectionAudioPlayPauseElement();\n }\n\n #configureGlobalPlayPauseElement(){\n let globalPlayPauseElement = new GlobalPlayPauseElement();\n globalPlayPauseElement.initialize();\n }\n\n #configureCollectionPlayPauseElement(){\n let collectionPlayPauseElement = new CollectionPlayPauseElement();\n collectionPlayPauseElement.initialize();\n }\n\n #configureAudioPlayPauseElement(){\n let audioPlayPauseElement = new AudioPlayPauseElement();\n audioPlayPauseElement.initialize();\n }\n\n #configureCollectionAudioPlayPauseElement(){\n let collectionAudioPlayPauseElement = new CollectionAudioPlayPauseElement();\n collectionAudioPlayPauseElement.initialize();\n }\n\n static syncAll(){\n GlobalPlayPauseElement.syncUI();\n CollectionPlayPauseElement.syncUI();\n AudioPlayPauseElement.syncUI();\n CollectionAudioPlayPauseElement.syncUI();\n }\n\n static syncAllToPause(){\n GlobalPlayPauseElement.syncToPause();\n CollectionPlayPauseElement.syncToPause();\n AudioPlayPauseElement.syncToPause();\n CollectionAudioPlayPauseElement.syncToPause();\n }\n\n /**\n * Sets an element to be playing by removing the 'amplitude-paused' class\n * and adding the 'amplitude-playing' class\n *\n * @access public\n * @static\n * @param {element} element - The element getting the playing class added.\n */\n static setElementPlay( element ){\n element.classList.add(\"amplitude-playing\");\n element.classList.remove(\"amplitude-paused\");\n }\n\n /**\n * Sets an element to be paused by adding the 'amplitude-paused' class\n * and removing the 'amplitude-playing' class\n *\n * @access public\n * @static\n * @param {element} element - The element getting the paused class added.\n */\n static setElementPause( element ){\n element.classList.remove(\"amplitude-playing\");\n element.classList.add(\"amplitude-paused\");\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { config } from \"@/config\";\nimport { Callbacks } from \"@/services/Callbacks\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { MetaDataElement } from \"@/elements/MetaDataElement\";\nimport { ContainerElement } from \"@/elements/ContainerElement\";\n\nexport class Navigation {\n /**\n * Sets the next song in a collection.\n * \n * @param {string} collectionKey - The collection to navigate. Defaults to the active collection.\n * @param {boolean} audioEnded - If the audio ended, this is true to take in effect the repeat setting.\n */\n next( collectionKey = null, audioEnded = false ){\n if( !collectionKey ){\n collectionKey = config.active_collection;\n }\n\n let nextAudio = this.#findNextAudio( collectionKey );\n \n this.setActiveCollection( collectionKey );\n this.changeCollectionAudio( collectionKey, nextAudio.audio, nextAudio.index );\n this.#playNextAudio( nextAudio.end, audioEnded )\n \n PlayPauseElement.syncAll();\n Callbacks.run(\"next\");\n\n if( config.repeat_audio ){\n Callbacks.run(\"audio_repeated\");\n }\n }\n\n #findNextAudio( collectionKey ){\n if( config.repeat_audio ){\n return this.#repeatedAudio( collectionKey );\n }else{\n if( config.collections[ collectionKey ].shuffle ){\n return this.#nextShuffledAudio( collectionKey );\n }else{\n return this.#nextCollectionAudio( collectionKey );\n }\n }\n }\n\n #repeatedAudio( collectionKey ){\n let index = config.collections[ collectionKey ].active_index;\n\n return {\n 'index': nextIndex,\n 'audio': config.collections[ collectionKey ].shuffle ?\n config.collections[ collectionKey ].shuffle_list[ index ] :\n config.collections[ collectionKey ].audio[ index ],\n 'end': false\n }\n }\n\n #nextShuffledAudio( collectionKey ){\n let nextIndex = null;\n let endOfList = false;\n\n let activeIndex = config.collections[ collectionKey ].active_index;\n let shuffleCollectionLength = config.collections[ collectionKey ].shuffle_list.length;\n \n if( parseInt( activeIndex + 1 ) < shuffleCollectionLength ){\n nextIndex = parseInt( activeIndex + 1 ); \n }else{\n nextIndex = 0;\n endOfList = true;\n }\n\n return {\n 'index': nextIndex,\n 'audio': config.collections[ collectionKey ].shuffleList[ nextIndex ],\n 'end': endOfList\n }\n }\n\n #nextCollectionAudio( collectionKey ){\n let nextIndex = null;\n let endOfList = false;\n \n let activeIndex = config.collections[ collectionKey ].active_index;\n let collectionLength = config.collections[ collectionKey ].audio.length;\n\n if( parseInt( activeIndex + 1 ) < collectionLength ){\n nextIndex = parseInt( activeIndex + 1 );\n }else{\n nextIndex = 0;\n endOfList = true;\n }\n\n return {\n 'index': nextIndex,\n 'audio': config.collections[ collectionKey ].audio[ nextIndex ],\n 'end': endOfList\n }\n }\n\n #playNextAudio( endOfList, audioEnded ){\n // If it's the end of the collection and we aren't repeating, do nothing.\n if( endOfList && !config.repeat_audio ){\n }else{\n if( !( audioEnded && !config.repeat_audio && endOfList ) ){\n let audio = new Audio();\n audio.play();\n }\n }\n }\n\n previous( collectionKey = null ){\n if( !collectionKey ){\n collectionKey = config.active_collection;\n }\n\n let previousAudio = this.#findPreviousAudio( collectionKey );\n \n this.setActiveCollection( collectionKey );\n this.changeCollectionAudio( collectionKey, previousAudio.audio, previousAudio.index );\n \n let audio = new Audio();\n audio.play();\n \n PlayPauseElement.syncAll();\n Callbacks.run(\"previous\");\n\n if( config.repeat_audio ){\n Callbacks.run(\"audio_repeated\");\n }\n }\n\n #findPreviousAudio(){\n if( config.repeat_audio ){\n return this.#repeatedAudio( collectionKey );\n }else{\n if( config.collections[ collectionKey ].shuffle ){\n return this.#previousShuffledAudio( collectionKey );\n }else{\n return this.#previousCollectionAudio( collectionKey );\n }\n }\n }\n\n #previousShuffledAudio( collectionKey ){\n let previousIndex = null;\n\n let activeIndex = config.collections[ collectionKey ].active_index;\n let shuffleCollectionLength = config.collections[ collectionKey ].shuffle_list.length;\n \n if( parseInt( activeIndex - 1 ) >= 0 ){\n previousIndex = parseInt( activeIndex - 1 );\n }else{\n previousIndex = parseInt( shuffleCollectionLength - 1 );\n }\n\n return {\n 'index': previousIndex,\n 'audio': config.collections[ collectionKey ].shuffleList[ previousIndex ]\n }\n }\n\n #previousCollectionAudio( collectionKey ){\n let previousIndex = null;\n\n let activeIndex = config.collections[ collectionKey ].active_index;\n let collectionLength = config.collections[ collectionKey ].audio.length;\n \n if( parseInt( activeIndex - 1 ) >= 0 ){\n previousIndex = parseInt( activeIndex - 1 );\n }else{\n previousIndex = parseInt( collectionLength - 1 );\n }\n\n return {\n 'index': previousIndex,\n 'audio': config.collections[ collectionKey ].audio[ previousIndex ]\n }\n }\n\n setActiveCollection( collection ){\n if( config.active_collection != collection ){\n Callbacks.run(\"collection_changed\");\n\n config.active_collection = collection;\n\n if( collection != null ){\n config.collections[ collection ].active_index = 0;\n }\n }\n }\n\n /**\n * Handles audio change in a collection\n *\n * @prop {string} collection - The collection we are changing the song on.\n * @prop {object} audio - The audio object we are changing to in the collection.\n * @prop {number} index - The index of the song we are changing to in the collection.\n * @prop {boolean} direct - Determines if it was a direct click on the song. We\n * then don't care if shuffle is on or not\n */\n changeAudioCollection( collection, audio, index, direct ){\n this.#prepareAudioChange( audio );\n\n this.#switchAudio( collection, audio, index );\n\n this.#afterAudioChange( direct );\n }\n\n #prepareAudioChange( audio ){\n Audio.stop();\n\n // Sync elements\n PlayPauseElement.syncAllToPause();\n /**\n * @todo Song Slider Elements -> reset\n * @todo Song Played Progress Elements -> reset\n * @todo Time Elements -> reset \n * ( See src/utilities/audioNavigation.js Line #528)\n */\n /**\n * @todo we don't have album change callback, make note.\n */\n }\n\n #switchAudio( collection, audio, index ){\n config.audio_element = audio.url;\n config.active_metadata = audio;\n /** \n * @todo We don't have active_album. make note.\n */\n config.active_index = null;\n config.collections[collection].active_index = parseInt(index);\n }\n\n #afterAudioChange( direct ){\n this.#updateMetaData();\n\n let containerElements = new ContainerElement();\n containerElements.setActiveContainers( direct );\n \n /**\n\n * @todo time elements -> reset duration times\n * ( see src/utilities/audioNavigation.js Line #558 )\n */\n Callbacks.run('audio_change');\n }\n\n #updateMetaData(){\n let metaData = new MetaDataElement();\n metaData.displayMetaData();\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { config } from '@/config.js';\nimport { ConfigState } from '@/services/ConfigState';\nimport { Navigation } from '@/services/Collections/Navigation';\nimport { PlayPauseElement } from '@/elements/PlayPauseElement';\n\nexport class AudioEndedEvent{\n bind(){\n config.audio_element.removeEventListener( \"ended\", this.#handle );\n config.audio_element.addEventListener( \"ended\", this.#handle.bind(this) );\n }\n\n #handle(){\n setTimeout( function(){\n if( ConfigState.getScope() == 'collection' && ConfigState.getContinueNext() ){\n let navigation = new Navigation();\n navigation.next( ConfigState.getActiveCollection(), true );\n }else{\n let audio = new Audio();\n audio.stop();\n\n PlayPauseElement.syncAll();\n }\n }, config.delay );\n }\n}","export class KeyBindingEvents{\n bind(){\n this.#bindKeyPress();\n }\n\n #bindKeyPress(){\n document.removeEventListener( \"keydown\", this.#handle.bind(this) );\n document.addEventListener( \"keydown\", this.#handle.bind(this) );\n }\n\n #handle( event ){\n if( !this.#isFormFocused() ){\n let key = event.key;\n \n }\n }\n\n #isFormFocused(){\n let activeElement = document.activeElement.tagName.toLowerCase();\n\n let ignoredElements = [\n 'input',\n 'textarea',\n 'select',\n 'checkbox',\n ];\n\n return ignoredElements.indexOf( activeElement ) > -1;\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { config } from '@/config.js';\n\nexport class GlobalBufferedProgressElement{\n static globalBufferedProgressQuery = 'progress.amplitude-buffered-progress:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n\n static syncUI(){\n let elements = document.querySelectorAll( GlobalBufferedProgressElement.globalBufferedProgressQuery );\n\n elements.forEach( function( element ){\n if( !isNaN( config.buffered ) ){\n element.value = parseFloat(\n ConfigState.getBufferedPercentage()\n );\n }\n } );\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { config } from '@/config.js';\n\nexport class CollectionBufferedProgressElement{\n static syncUI(){\n let activeCollection = ConfigState.getActiveCollection();\n let elements = document.querySelectorAll('progress.amplitude-buffered-progress[data-amplitude-collection-key=\"'+activeCollection+'\"]:not([data-amplitude-audio-index])');\n\n elements.forEach( function( element ){\n if( !isNaN( config.buffered ) ){\n element.value = parseFloat(\n ConfigState.getBufferedPercentage()\n );\n }\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { config } from '@/config.js';\n\nexport class AudioBufferedProgressElement{\n static audioBufferedProgressQuery = 'progress.amplitude-buffered-progress[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n static syncUI(){\n let activeIndex = ConfigState.getActiveAudioIndex();\n let elements = document.querySelectorAll('progress.amplitude-buffered-progress[data-amplitude-audio-index=\"'+activeIndex+'\"]:not([data-amplitude-collection-key])');\n\n elements.forEach( function( element ){\n if( !isNaN( config.buffered ) ){\n element.value = parseFloat(\n ConfigState.getBufferedPercentage()\n );\n }\n });\n }\n}","import { GlobalBufferedProgressElement } from \"./BufferedProgressElements/GlobalBufferedProgressElement\";\nimport { CollectionBufferedProgressElement } from \"./BufferedProgressElements/CollectionBufferedProgressElement\";\nimport { CollectionAudioBufferedProgressElement } from './BufferedProgressElements/CollectionAudioBufferedProgressElement';\nimport { AudioBufferedProgressElement } from \"./BufferedProgressElements/AudioBufferedProgressElement\";\n\nexport class BufferedProgressElement{\n static syncAll(){\n GlobalBufferedProgressElement.syncUI();\n CollectionBufferedProgressElement.syncUI();\n AudioBufferedProgressElement.syncUI();\n CollectionAudioBufferedProgressElement.syncUI();\n }\n}","export class GlobalProgressElement{\n static globalProgressQuery = 'progress.amplitude-audio-played-progress:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n\n static syncUI( completionPercentage ){\n if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){\n let elements = document.querySelectorAll( GlobalProgressElement.globalProgressQuery );\n\n elements.forEach( ( element ) => {\n let max = element.max;\n\n element.value = ( completionPercentage / 100 ) * max;\n });\n }\n }\n}","import { ConfigState } from '@/services/ConfigState';\n\nexport class CollectionProgressElement{\n static collectionProgressQuery = 'progress.amplitude-audio-played-progress[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n static syncUI( completionPercentage ){\n if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){\n let elements = document.querySelectorAll( CollectionProgressElement.collectionProgressQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let max = element.max;\n\n if( activeCollectionKey == elementCollectionKey ){\n element.value = ( completionPercentage / 100 ) * max;\n }else{\n element.value = 0;\n }\n });\n }\n }\n}","import { ConfigState } from '@/services/ConfigState';\n\nexport class AudioProgressElement{\n static audioProgressQuery = 'progress.amplitude-audio-played-progress[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n static syncUI( completionPercentage ){\n if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){\n let elements = document.querySelectorAll( AudioProgressElement.audioProgressQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n let max = element.max;\n\n if( activeAudioIndex == elementAudioIndex ){\n element.value = ( completionPercentage / 100 ) * max;\n }else{\n element.value = 0;\n }\n });\n }\n }\n}","import { ConfigState } from '@/services/ConfigState';\n\nexport class CollectionAudioProgressElement{\n static collectionAudioProgressQuery = 'progress.amplitude-audio-played-progress[data-amplitude-collection-key][data-amplitude-audio-index]';\n\n static syncUI( completionPercentage ){\n if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){\n let elements = document.querySelectorAll( CollectionAudioProgressElement.collectionAudioProgressQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n let max = element.max;\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.value = ( completionPercentage / 100 ) * max;\n }else{\n element.value = 0;\n }\n });\n }\n }\n}","import { GlobalProgressElement } from \"./ProgressElements/GlobalProgressElement\";\nimport { CollectionProgressElement } from \"./ProgressElements/CollectionProgressElement\";\nimport { AudioProgressElement } from \"./ProgressElements/AudioProgressElement\";\nimport { CollectionAudioProgressElement } from \"./ProgressElements/CollectionAudioProgressElement\";\n\nexport class ProgressElement{\n constructor(){\n\n }\n\n static syncCurrentTime( percentage ){\n GlobalProgressElement.syncUI( percentage );\n CollectionProgressElement.syncUI( percentage );\n AudioProgressElement.syncUI( percentage );\n CollectionAudioProgressElement.syncUI( percentage );\n }\n}","import { config } from \"@/config\";\n\nexport class Time {\n static percentageInSeconds( percentage ){\n return config.audio_element.duration * (percentage / 100);\n }\n\n computeCurrentTimes(){\n let currentTime = {};\n\n currentTime.seconds = this.#findCurrentSeconds();\n currentTime.minutes = this.#findCurrentMinutes();\n currentTime.hours = this.#findCurrentHours();\n\n return currentTime;\n }\n\n #findCurrentSeconds(){\n let seconds = ( Math.floor( config.audio_element.currentTime % 60 ) < 10 ? \"0\" : \"\" ) +\n Math.floor( config.audio_element.currentTime % 60 );\n\n return seconds;\n }\n\n #findCurrentMinutes(){\n let minutes = Math.floor( config.audio_element.currentTime / 60 );\n\n if( minutes < 10 ){\n minutes = \"0\"+minutes;\n }\n\n return minutes;\n }\n\n #findCurrentHours(){\n let hours = Math.floor( config.audio_element.currentTime / 3600 );\n\n if( hours < 10 ){\n hours = \"0\"+hours;\n }\n\n return hours;\n }\n\n computeAudioCompletionPercentage(){\n return ( config.audio_element.currentTime / config.audio_element.duration ) * 100;\n }\n\n computeAudioDuration(){\n let audioDuration = {};\n\n audioDuration.seconds = this.#findAudioDurationSeconds();\n audioDuration.minutes = this.#findAudioDurationMinutes();\n audioDuration.hours = this.#findAudioDurationHours();\n\n return audioDuration;\n }\n\n #findAudioDurationSeconds(){\n let seconds = ( Math.floor( config.audio_element.duration % 60 ) < 10 ? \"0\" : \"\" ) +\n Math.floor( config.audio_element.duration % 60 );\n\n return seconds;\n }\n\n #findAudioDurationMinutes(){\n let minutes = Math.floor( config.audio_element.duration / 60 );\n\n if( minutes < 10 ){\n minutes = \"0\"+minutes;\n }\n\n return minutes;\n }\n\n #findAudioDurationHours(){\n let hours = Math.floor( config.audio_element.duration / 3600 );\n\n if( hours < 10 ){\n hours = \"0\"+hours;\n }\n\n return hours;\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\n\nexport class GlobalCurrentTimeElement {\n static globalFormattedTimeElementQuery = '.amplitude-current-time:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n static globalHoursTimeElementQuery = '.amplitude-current-hours:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n static globalMinutesTimeElementQuery = '.amplitude-current-minutes:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n static globalSecondsTimeElementQuery = '.amplitude-current-seconds:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n \n #currentTime;\n\n constructor( currentTime ){\n this.#currentTime = currentTime\n }\n \n sync(){\n this.#syncFormattedTimeElement();\n this.#syncHourTimeElement();\n this.#syncMinuteTimeElement();\n this.#syncSecondTimeElement();\n }\n\n #syncFormattedTimeElement(){\n let timeFormat = ConfigState.getTimeFormat();\n\n let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalFormattedTimeElementQuery );\n let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours )\n .replace( 'MM', this.#currentTime.minutes )\n .replace( 'SS', this.#currentTime.seconds );\n\n elements.forEach( ( element ) => {\n element.innerHTML = formattedTime;\n });\n }\n\n #syncHourTimeElement(){\n let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalHoursTimeElementQuery );\n\n elements.forEach( ( element ) => {\n element.innerHTML = this.#currentTime.hours;\n });\n }\n\n #syncMinuteTimeElement(){\n let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalMinutesTimeElementQuery );\n\n elements.forEach( ( element ) => {\n element.innerHTML = this.#currentTime.minutes;\n });\n }\n\n #syncSecondTimeElement(){\n let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalSecondsTimeElementQuery );\n\n elements.forEach( ( element ) => {\n element.innerHTML = this.#currentTime.seconds;\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\n\nexport class CollectionCurrentTimeElement {\n static collectionFormattedTimeElementQuery = '.amplitude-current-time[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n static collectionHoursTimeElementQuery = '.amplitude-current-hours[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n static collectionMinutesTimeElementQuery = '.amplitude-current-minutes[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n static collectionSecondsTimeElementQuery = '.amplitude-current-seconds[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n #currentTime;\n\n constructor( currentTime ){\n this.#currentTime = currentTime;\n }\n\n sync(){\n this.#syncFormattedTimeElement();\n this.#syncHourTimeElement();\n this.#syncMinuteTimeElement();\n this.#syncSecondTimeElement();\n }\n\n #syncFormattedTimeElement(){\n let timeFormat = ConfigState.getTimeFormat();\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionFormattedTimeElementQuery );\n let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours )\n .replace( 'MM', this.#currentTime.minutes )\n .replace( 'SS', this.#currentTime.seconds );\n \n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n\n if( activeCollectionKey == elementCollectionKey ){\n element.innerHTML = formattedTime;\n }else{\n element.innerHTML = '00:00';\n }\n })\n }\n\n #syncHourTimeElement(){\n let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionHoursTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n\n if( activeCollectionKey == elementCollectionKey ){\n element.innerHTML = this.#currentTime.hours;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncMinuteTimeElement(){\n let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionMinutesTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n\n if( activeCollectionKey == elementCollectionKey ){\n element.innerHTML = this.#currentTime.minutes;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncSecondTimeElement(){\n let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionSecondsTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n\n if( activeCollectionKey == elementCollectionKey ){\n element.innerHTML = this.#currentTime.seconds;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\n\nexport class AudioCurrentTimeElement {\n static audioFormattedTimeElementQuery = '.amplitude-current-time[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n static audioHoursTimeElementQuery = '.amplitude-current-hours[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n static audioMinutesTimeElementQuery = '.amplitude-current-minutes[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n static audioSecondsTimeElementQuery = '.amplitude-current-seconds[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n #currentTime;\n\n constructor( currentTime ){\n this.#currentTime = currentTime;\n }\n\n sync(){\n this.#syncFormattedTimeElement();\n this.#syncHourTimeElement();\n this.#syncMinuteTimeElement();\n this.#syncSecondTimeElement();\n }\n\n #syncFormattedTimeElement(){\n let timeFormat = ConfigState.getTimeFormat();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n let elements = document.querySelectorAll( AudioCurrentTimeElement.audioFormattedTimeElementQuery );\n let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours )\n .replace( 'MM', this.#currentTime.minutes )\n .replace( 'SS', this.#currentTime.seconds );\n \n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( activeAudioIndex == elementAudioIndex ){\n element.innerHTML = formattedTime;\n }else{\n element.innerHTML = '00:00';\n }\n })\n }\n\n #syncHourTimeElement(){\n let elements = document.querySelectorAll( AudioCurrentTimeElement.audioHoursTimeElementQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( activeAudioIndex == elementAudioIndex ){\n element.innerHTML = this.#currentTime.hours;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncMinuteTimeElement(){\n let elements = document.querySelectorAll( AudioCurrentTimeElement.audioMinutesTimeElementQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( activeAudioIndex == elementAudioIndex ){\n element.innerHTML = this.#currentTime.minutes;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncSecondTimeElement(){\n let elements = document.querySelectorAll( AudioCurrentTimeElement.audioSecondsTimeElementQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( activeAudioIndex == elementAudioIndex ){\n element.innerHTML = this.#currentTime.seconds;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\n\nexport class CollectionAudioCurrentTimeElement {\n static collectionAudioFormattedTimeElementQuery = '.amplitude-current-time[data-amplitude-collection-key][data-amplitude-audio-index]';\n static collectionAudioHoursTimeElementQuery = '.amplitude-current-hours[data-amplitude-collection-key][data-amplitude-audio-index]';\n static collectionAudioMinutesTimeElementQuery = '.amplitude-current-minutes[data-amplitude-collection-key][data-amplitude-audio-index]';\n static collectionAudioSecondsTimeElementQuery = '.amplitude-current-seconds[data-amplitude-collection-key][data-amplitude-audio-index]';\n\n #currentTime;\n\n constructor( currentTime ){\n this.#currentTime = currentTime;\n }\n\n sync(){\n this.#syncFormattedTimeElement();\n this.#syncHourTimeElement();\n this.#syncMinuteTimeElement();\n this.#syncSecondTimeElement();\n }\n\n #syncFormattedTimeElement(){\n let timeFormat = ConfigState.getTimeFormat();\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioFormattedTimeElementQuery );\n let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours )\n .replace( 'MM', this.#currentTime.minutes )\n .replace( 'SS', this.#currentTime.seconds );\n \n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.innerHTML = formattedTime;\n }else{\n element.innerHTML = '00:00';\n }\n })\n }\n\n #syncHourTimeElement(){\n let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioHoursTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.innerHTML = this.#currentTime.hours;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncMinuteTimeElement(){\n let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioMinutesTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.innerHTML = this.#currentTime.minutes;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncSecondTimeElement(){\n let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioSecondsTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.innerHTML = this.#currentTime.seconds;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n}","import { GlobalCurrentTimeElement } from \"./TimeElements/CurrentTime/GlobalCurrentTimeElement\";\nimport { CollectionCurrentTimeElement } from \"./TimeElements/CurrentTime/CollectionCurrentTimeElement\";\nimport { AudioCurrentTimeElement } from \"./TimeElements/CurrentTime/AudioCurrentTimeElement\";\nimport { CollectionAudioCurrentTimeElement } from \"./TimeElements/CurrentTime/CollectionAudioCurrentTimeElement\";\n\nimport { GlobalDurationElement } from \"./TimeElements/Duration/GlobalDurationElement\";\nimport { CollectionDurationElement } from \"./TimeElements/Duration/CollectionDurationElement\";\nimport { AudioDurationElement } from \"./TimeElements/Duration/AudioDurationElement\";\nimport { CollectionAudioDurationElement } from \"./TimeElements/Duration/CollectionAudioDurationElement\";\n\nexport class TimeElement {\n syncCurrentTime( currentTime ){\n let globalCurrentTimeElement = new GlobalCurrentTimeElement( currentTime );\n globalCurrentTimeElement.sync();\n\n let collectionCurrentTimeElement = new CollectionCurrentTimeElement( currentTime );\n collectionCurrentTimeElement.sync();\n\n let audioCurrentTimeElement = new AudioCurrentTimeElement( currentTime );\n audioCurrentTimeElement.sync();\n\n let collectionAudioCurrentTimeElement = new CollectionAudioCurrentTimeElement( currentTime );\n collectionAudioCurrentTimeElement.sync();\n }\n\n syncDurationTime(){\n\n }\n\n resetDurationTime(){\n\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from '@/services/ConfigState';\nimport { Time } from '@/services/Time';\n\nexport class GlobalTrackerElement{\n static globalTrackerQuery = 'input[type=\"range\"].amplitude-audio-tracker:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n\n #elements;\n #isIE;\n\n constructor(){\n this.#isIE = ConfigState.isIE();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalTrackerElement.globalTrackerQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#isIE ){\n element.removeEventListener(\"change\", this.#handleInteraction );\n element.addEventListener(\"change\", this.#handleInteraction.bind( this, element ) );\n }else{\n element.removeEventListener(\"input\", this.#handleInteraction);\n element.addEventListener(\"input\", this.#handleInteraction.bind( this, element ) );\n }\n } );\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isLive() ){\n let locationPercentage = element.value;\n let trackedLocation = Time.percentageInSeconds( locationPercentage );\n \n let audio = new Audio();\n audio.setCurrentTime( trackedLocation )\n }\n }\n\n static syncUI( completionPercentage ){\n let elements = document.querySelectorAll( GlobalTrackerElement.globalTrackerQuery );\n\n elements.forEach( ( element ) => {\n element.value = completionPercentage;\n });\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from '@/services/ConfigState';\nimport { Time } from '@/services/Time';\n\nexport class CollectionTrackerElement{\n static collectionTrackerQuery = 'input[type=\"range\"].amplitude-audio-tracker[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n #elements;\n #isIE;\n\n constructor(){\n this.#isIE = ConfigState.isIE();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionTrackerElement.collectionTrackerQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#isIE ){\n element.removeEventListener(\"change\", this.#handleInteraction );\n element.addEventListener(\"change\", this.#handleInteraction.bind( this, element ) );\n }else{\n element.removeEventListener(\"input\", this.#handleInteraction);\n element.addEventListener(\"input\", this.#handleInteraction.bind( this, element ) );\n }\n });\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isLive() ){\n let activeCollectionKey = ConfigState.getActiveCollection();\n let elementCollectionKey = element.getAttribute( 'data-amplitude-collection-key' );\n\n if( activeCollectionKey == elementCollectionKey ){\n let locationPercentage = element.value;\n let trackedLocation = Time.percentageInSeconds( locationPercentage );\n \n let audio = new Audio();\n audio.setCurrentTime( trackedLocation )\n }\n }\n }\n\n static syncUI( completionPercentage ){\n let elements = document.querySelectorAll( CollectionTrackerElement.collectionTrackerQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n \n if( activeCollectionKey == elementCollectionKey ){\n element.value = completionPercentage;\n }else{\n element.value = 0;\n }\n });\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from '@/services/ConfigState';\nimport { Time } from '@/services/Time';\n\nexport class AudioTrackerElement{\n static audioTrackerQuery = 'input[type=\"range\"].amplitude-audio-tracker[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n #elements;\n #isIE;\n\n constructor(){\n this.#isIE = ConfigState.isIE();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioTrackerElement.audioTrackerQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#isIE ){\n element.removeEventListener(\"change\", this.#handleInteraction );\n element.addEventListener(\"change\", this.#handleInteraction.bind( this, element ) );\n }else{\n element.removeEventListener(\"input\", this.#handleInteraction);\n element.addEventListener(\"input\", this.#handleInteraction.bind( this, element ) );\n }\n });\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isLive() ){\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n let elementAudioIndex = element.getAttribute( 'data-amplitude-audio-index' );\n\n if( activeAudioIndex == elementAudioIndex ){\n let locationPercentage = element.value;\n let trackedLocation = Time.percentageInSeconds( locationPercentage );\n \n let audio = new Audio();\n audio.setCurrentTime( trackedLocation )\n }\n }\n }\n\n static syncUI( completionPercentage ){\n let elements = document.querySelectorAll( AudioTrackerElement.audioTrackerQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n \n if( activeAudioIndex == elementAudioIndex ){\n element.value = completionPercentage;\n }else{\n element.value = 0;\n }\n });\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from '@/services/ConfigState';\nimport { Time } from '@/services/Time';\n\nexport class CollectionAudioTrackerElement{\n static collectionAudioTrackerQuery = 'input[type=\"range\"].amplitude-audio-tracker[data-amplitude-collection-key][data-amplitude-audio-index]';\n\n #elements;\n #isIE;\n\n constructor(){\n this.#isIE = ConfigState.isIE();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioTrackerElement.collectionAudioTrackerQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#isIE ){\n element.removeEventListener(\"change\", this.#handleInteraction );\n element.addEventListener(\"change\", this.#handleInteraction.bind( this, element ) );\n }else{\n element.removeEventListener(\"input\", this.#handleInteraction);\n element.addEventListener(\"input\", this.#handleInteraction.bind( this, element ) );\n }\n });\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isLive() ){\n let activeCollectionKey = ConfigState.getActiveCollection();\n let elementCollectionKey = element.getAttribute( 'data-amplitude-collection-key' );\n\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n let elementAudioIndex = element.getAttribute( 'data-amplitude-audio-index' );\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n let locationPercentage = element.value;\n let trackedLocation = Time.percentageInSeconds( locationPercentage );\n \n let audio = new Audio();\n audio.setCurrentTime( trackedLocation )\n }\n }\n }\n\n static syncUI( completionPercentage ){\n let elements = document.querySelectorAll( CollectionAudioTrackerElement.collectionAudioTrackerQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n \n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.value = completionPercentage;\n }else{\n element.value = 0;\n }\n });\n }\n}","import { GlobalTrackerElement } from \"./TrackerElements/GlobalTrackerElement\";\nimport { CollectionTrackerElement } from \"./TrackerElements/CollectionTrackerElement\";\nimport { AudioTrackerElement } from \"./TrackerElements/AudioTrackerElement\";\nimport { CollectionAudioTrackerElement } from \"./TrackerElements/CollectionAudioTrackerElement\";\n\nexport class TrackerElement{\n constructor(){\n\n }\n\n setUp(){\n this.#configureGlobalTrackerElement();\n this.#configureCollectionTrackerElement();\n this.#configureAudioTrackerElement();\n this.#configureCollectionAudioTrackerElement();\n }\n\n #configureGlobalTrackerElement(){\n let globalTrackerElement = new GlobalTrackerElement();\n globalTrackerElement.initialize();\n }\n\n #configureCollectionTrackerElement(){\n let collectionTrackerElement = new CollectionTrackerElement();\n collectionTrackerElement.initialize();\n }\n\n #configureAudioTrackerElement(){\n let audioTrackerElement = new AudioTrackerElement();\n audioTrackerElement.initialize();\n }\n\n #configureCollectionAudioTrackerElement(){\n let collectionAudioTrackerElement = new CollectionAudioTrackerElement();\n collectionAudioTrackerElement.initialize();\n }\n\n static syncCurrentTime( currentTime ){\n GlobalTrackerElement.syncUI( currentTime );\n CollectionTrackerElement.syncUI( currentTime );\n AudioTrackerElement.syncUI( currentTime );\n CollectionAudioTrackerElement.syncUI( currentTime );\n }\n}","import { BufferedProgressElement } from '@/elements/BufferedProgressElement';\nimport { ConfigState } from '@/services/ConfigState';\nimport { config } from '@/config.js';\nimport { ProgressElement } from '@/elements/ProgressElement';\nimport { Time } from '@/services/Time';\nimport { TimeElement } from '@/elements/TimeElement';\nimport { TrackerElement } from '@/elements/TrackerElement';\n\nexport class TimeUpdateEvent{\n bind(){\n this.#bindTimeUpdate();\n this.#bindDurationChange();\n }\n\n #bindTimeUpdate(){\n config.audio_element.removeEventListener( \"timeupdate\", this.#handle.bind(this) );\n config.audio_element.addEventListener( \"timeupdate\", this.#handle.bind(this) );\n }\n\n #bindDurationChange(){\n config.audio_element.removeEventListener( \"durationchange\", this.#handle.bind(this) );\n config.audio_element.addEventListener( \"durationchange\", this.#handle.bind(this) );\n }\n\n #handle(){\n ConfigState.updateBufferedTime();\n BufferedProgressElement.syncAll();\n this.#updateTimeInformation();\n this.#runTimeCallbacks();\n }\n\n #updateTimeInformation(){\n if( !ConfigState.isLive() ){\n let time = new Time();\n\n let currentTime = time.computeCurrentTimes();\n let completionPercentage = time.computeAudioCompletionPercentage();\n let duration = time.computeAudioDuration();\n\n let timeElement = new TimeElement();\n timeElement.syncCurrentTime( currentTime );\n timeElement.syncDurationTime( currentTime, duration );\n\n TrackerElement.syncCurrentTime( completionPercentage );\n ProgressElement.syncCurrentTime( completionPercentage );\n }\n }\n\n #runTimeCallbacks(){\n\n }\n}","// import { ProgressEvent } from \"@/events/ProgressEvent\";\nimport { AudioEndedEvent } from \"@/events/AudioEndedEvent\";\nimport { KeyBindingEvents } from \"@/events/KeyBindingEvents\";\nimport { TimeUpdateEvent } from \"@/events/TimeUpdateEvent\";\nimport { Debug } from \"@/services/Debug\";\nimport { config } from \"@/config.js\";\n\nexport class EventManager{\n initializeAllEvents(){\n Debug.writeMessage(\"Starting initialization of event handlers...\");\n\n this.#bindTouchEvents();\n this.#bindTimeUpdateEvents();\n this.#bindKeyBindingEvents();\n this.#bindAudioEndedEvent();\n // this.#bindProgressEvent();\n this.#bindAudioElementEventCallbacks();\n }\n\n #bindTouchEvents(){\n document.addEventListener(\"touchmove\", () => {\n config.is_touch_moving = true;\n });\n\n document.addEventListener(\"touchend\", () => {\n if( !config.is_touch_moving ){\n config.is_touch_moving = false;\n }\n })\n }\n\n #bindTimeUpdateEvents(){\n let timeUpdateEvent = new TimeUpdateEvent();\n timeUpdateEvent.bind();\n }\n\n #bindKeyBindingEvents(){\n let keyBindingEvents = new KeyBindingEvents();\n keyBindingEvents.bind();\n }\n\n #bindAudioEndedEvent(){\n let audioEndedEvent = new AudioEndedEvent();\n audioEndedEvent.bind();\n }\n\n #bindProgressEvent(){\n let progressEvent = new ProgressEvent();\n progressEvent.bind();\n }\n\n #bindAudioElementEventCallbacks(){\n\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation.js\";\nimport { config } from \"@/config\";\nimport { Debug } from \"@/services/Debug\";\n\nexport class CollectionNextElement {\n static collectionNextQuery = '.amplitude-next[data-amplitude-collection-key]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionNextElement.collectionNextQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n let collectionKey = this.getAttribute('data-amplitude-collection-key');\n\n if( collectionKey == config.active_collection ){\n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.next( collectionKey );\n }else{\n Debug.writeMessage(\"You can not go to the next audio on a playlist that is not being played!\");\n }\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Debug } from \"@/services/Debug\";\nimport { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js';\n\nexport class GlobalNextElement {\n static globalNextQuery = '.amplitude-next:not([data-amplitude-collection-key])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalNextElement.globalNextQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( ConfigState.getScope() == 'collection' ){\n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.next();\n }else{\n Debug.writeMessage(\"You can only navigate next when you are playing a collection.\");\n }\n }\n}","import { CollectionNextElement } from \"./NextElements/CollectionNextElement\";\nimport { GlobalNextElement } from \"./NextElements/GlobalNextElement\";\n\n/**\n * Handles the configuration and managing of Next elements\n * \n * A Next element is defined as the following:\n * \n * Element: class=\"amplitude-next\"\n * \n * GLOBAL: class=\"amplitude-next\"\n * Handles next for whatever scope the player is in.\n * \n * COLLECTION: class=\"amplitude-next\" data-amplitude-collection=\"{collection_key}\"\n * Handles the next audio within a specific collection.\n */\nexport class NextElement {\n setUp(){\n this.#configureGlobalNextElement();\n this.#configureCollectionNextElement();\n }\n\n #configureGlobalNextElement(){\n let globalNextElement = new GlobalNextElement();\n globalNextElement.initialize();\n }\n\n #configureCollectionNextElement(){\n let collectionNextElement = new CollectionNextElement();\n collectionNextElement.initialize();\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { MuteElement } from \"./MuteElement\";\nimport { Audio } from \"@/core/Audio\";\n\n/**\n * Handles the configuration and managing of Volume Slider elements\n * \n * A Volume Slider element is defined as the following:\n * \n * Element: class=\"amplitude-volume-slider\"\n * Type: input[type=\"range\"]\n * \n * Whenever this element is interacted with, the audio volume is adjusted no matter where.\n */\nexport class VolumeSliderElement {\n static volumeSliderElementQuery = 'input[type=\"range\"].amplitude-volume-slider';\n\n #elements;\n #ie;\n\n constructor(){\n this.#ie = ConfigState.isIE();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( VolumeSliderElement.volumeSliderElementQuery );\n }\n\n #bindInteractions(){\n if( ConfigState.isIos() ){\n Debug.writeMessage(\n \"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\"\n );\n }else{\n this.#elements.forEach( ( element ) => {\n if( this.#ie ){\n element.removeEventListener( \"change\", this.#handleInteraction );\n element.addEventListener( \"change\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"input\", this.#handleInteraction );\n element.addEventListener( \"input\", this.#handleInteraction );\n }\n });\n }\n }\n\n #handleInteraction(){\n let audio = new Audio();\n audio.setVolume( this.value );\n\n MuteElement.syncElements();\n VolumeSliderElement.syncElements();\n }\n \n\n static syncElements(){\n let elements = document.querySelectorAll( VolumeSliderElement.volumeSliderElementQuery );\n\n elements.forEach( function( element ){\n element.value = ConfigState.getVolume();\n });\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { VolumeSliderElement } from \"./VolumeSliderElement\";\nimport { Debug } from \"@/services/Debug\";\n/**\n * Handles the configuration and managing of Mute elements\n * \n * A Mute element is defined as the following:\n * \n * Element: class=\"amplitude-mute\"\n * \n * Whenever this element is interacted with, the audio is muted no matter where.\n */\nexport class MuteElement {\n static muteElementQuery = '.amplitude-mute';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( MuteElement.muteElementQuery );\n }\n\n #bindInteractions(){\n if( ConfigState.isIos() ){\n Debug.writeMessage(\n \"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\"\n );\n }else{\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n\n if( ConfigState.getVolume() == 0 ){\n audio.setVolume( ConfigState.getPreMuteVolume() );\n }else{\n ConfigState.setPreMuteVolume();\n audio.setVolume( 0 );\n }\n\n MuteElement.syncElements();\n VolumeSliderElement.syncElements();\n }\n }\n\n static syncElements(){\n let elements = document.querySelectorAll( MuteElement.muteElementQuery );\n\n elements.forEach( function( element ){\n if( ConfigState.getVolume() == 0 ){\n element.classList.remove(\"amplitude-not-muted\");\n element.classList.add(\"amplitude-muted\");\n }else{\n element.classList.add(\"amplitude-not-muted\");\n element.classList.remove(\"amplitude-muted\");\n }\n });\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class GlobalPauseElement {\n static globalPauseQuery = '.amplitude-pause:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n \n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalPauseElement.globalPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n audio.pause();\n\n PlayPauseElement.syncAll();\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class CollectionPauseElement{\n static collectionPauseQuery = '.amplitude-pause[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionPauseElement.collectionPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let collectionKey = this.getAttribute('data-amplitude-collection-key');\n \n // Ensure we pause the audio if the active collection is\n // what is controlled by this pause element.\n if( config.active_collection == collectionKey ){\n let audio = new Audio();\n audio.pause();\n\n PlayPauseElement.syncAll();\n }\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { config } from \"../../config\";\n\nexport class AudioPauseElement{\n static audioPauseQuery = \".amplitude-pause[data-amplitude-audio-index]:not([data-amplitude-collection-key])\";\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioPauseElement.audioPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audioIndex = this.getAttribute('data-amplitude-audio-index');\n\n // If the scope is audio and the index of the element matches the active audio\n // index, then we pause the player.\n if( ConfigState.getScope() == 'audio' && ( config.active_index == audioIndex ) ){\n let audio = new Audio();\n audio.pause();\n\n PlayPauseElement.syncAll();\n }\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { config } from \"@/config\";\n\nexport class CollectionAudioPauseElement{\n static collectionAudioPauseQuery = '.amplitude-pause[data-amplitude-collection-key][data-amplitude-audio-index]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioPauseElement.collectionAudioPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let collectionKey = element.getAttribute('data-amplitude-collection-key');\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( config.active_collection == collectionKey &&\n config.collections[ collectionKey ].active_index == audioIndex ){\n let audio = new Audio();\n audio.pause();\n\n PlayPauseElement.syncAll();\n }\n }\n }\n}","import { GlobalPauseElement } from \"./PauseElements/GlobalPauseElement\";\nimport { CollectionPauseElement } from \"./PauseElements/CollectionPauseElement\";\nimport { AudioPauseElement } from \"./PauseElements/AudioPauseElement\";\nimport { CollectionAudioPauseElement } from \"./PauseElements/CollectionAudioPauseElement\";\n\n/**\n * Handles the configuration and managing of Pause elements.\n * \n * A Pause element is defined as the following:\n * \n * Element: class=\"amplitude-pause\"\n * \n * GLOBAL: class=\"amplitude-pause\"\n * Controls the entire state of the audio player.\n * \n * COLLECTION: class=\"amplitude-pause\" data-amplitude-collection=\"{collection_key}\"\n * Scoped to an individual collection. Will only pause what's within the scope of the collection.\n * \n * AUDIO: class=\"amplitude-pause\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element.\n * \n * AUDIO IN COLLECTION: class=\"amplitude-pause\" data-amplitude-collection-key=\"{collection_key}\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element within a collection.\n */\nexport class PauseElement {\n setUp(){\n this.#configureGlobalPauseElement();\n this.#configureCollectionPauseElement();\n this.#configureAudioPauseElement();\n this.#configureCollectionAudioPauseElement();\n }\n\n #configureGlobalPauseElement(){\n let globalPauseElement = new GlobalPauseElement();\n globalPauseElement.initialize();\n }\n\n #configureCollectionPauseElement(){\n let collectionPauseElement = new CollectionPauseElement();\n collectionPauseElement.initialize();\n }\n\n #configureAudioPauseElement(){\n let audioPauseElement = new AudioPauseElement();\n audioPauseElement.initialize();\n }\n\n #configureCollectionAudioPauseElement(){\n let collectionAudioPauseElement = new CollectionAudioPauseElement();\n collectionAudioPauseElement.initialize();\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class GlobalPlayElement {\n static globalPlayQuery = '.amplitude-play:not([data-amplitude-audio-index]):not([data-amplitude-collection-index])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalPlayElement.globalPlayQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n let audio = new Audio();\n audio.play();\n\n PlayPauseElement.syncAll();\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { Checks as CollectionChecks } from \"@/services/Collections/Checks\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation\";\nimport { Debug } from \"@/services/Debug\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class CollectionPlayElement{\n static collectionPlayQuery = '.amplitude-play[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionPlayElement.collectionPlayQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let collection = this.getAttribute('data-amplitude-collection-key');\n\n if( !CollectionChecks.collectionExists( collection ) ){\n Debug.writeMessage('Collection with key \"'+collection+'\" does not exist! Please define this collection in your configuration.');\n return false;\n }\n\n this.#handleCollectionChanges( collection );\n this.#playAudio();\n\n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( collection ){\n if( CollectionChecks.collectionChanged( collection ) ){\n \n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.setActiveCollection( collection );\n\n // If the collection is shuffled and the collection is changed,\n // we change the audio to be the first audio in the array. Since,\n // we are changing the collection, we are starting at the top.\n if( CollectionChecks.isCollectionShuffled( collection ) ){\n collectionNavigation.changeAudioCollection(\n collection,\n config.collections[ collection ].shuffle_list[0],\n 0,\n true\n );\n }else{\n collectionNavigation.changeAudioCollection(\n collection,\n config.collections[ collection ].audio[0],\n 0\n );\n }\n }\n }\n\n #playAudio(){\n let audio = new Audio();\n audio.play();\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { Checks as AudioChecks } from '@/services/Audio/Checks.js';\nimport { Navigation as AudioNavigation } from '@/services/Audio/Navigation.js';\nimport { Checks as CollectionChecks } from '@/services/Collections/Checks.js';\nimport { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js';\nimport { Debug } from \"@/services/Debug\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class AudioPlayElement {\n static audioPlayQuery = '.amplitude-play[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioPlayElement.audioPlayQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n } );\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){ \n let index = element.getAttribute('data-amplitude-audio-index');\n\n if( !AudioChecks.audioExists( index ) ){\n Debug.writeMessage('Audio with index \"'+index+'\" does not exist! Please add an audio object at this index in your configuration.');\n return false;\n }\n\n this.#handleCollectionChanges( index );\n this.#handleAudioChanges( index );\n this.#playAudio();\n \n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( index ){\n if( CollectionChecks.collectionChanged( null ) ){\n let collectionNavigation = new CollectionNavigation();\n let audioNavigation = new AudioNavigation();\n\n collectionNavigation.setActiveCollection( null );\n audioNavigation.changeAudio(\n config.audio[index], index, true\n );\n }\n }\n\n #handleAudioChanges( index ){\n if( AudioChecks.audioChanged( index ) ){\n let audioNavigation = new AudioNavigation();\n\n audioNavigation.changeAudio(\n config.audio[index], index, true\n );\n }\n }\n\n #playAudio(){\n let audio = new Audio();\n audio.play();\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { Checks as AudioChecks } from '@/services/Audio/Checks.js';\nimport { Checks as CollectionChecks } from '@/services/Collections/Checks.js';\nimport { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js';\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class CollectionAudioPlayElement {\n static collectionAudioPlayQuery = '.amplitude-play[data-amplitude-audio-index][data-amplitude-collection-key]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioPlayElement.collectionAudioPlayQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction );\n }\n } );\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let collectionKey = this.getAttribute('data-amplitude-collection-key');\n let audioIndex = this.getAttribute('data-amplitude-audio-index');\n \n this.#handleCollectionChanges( collectionKey, audioIndex );\n this.#handleAudioChanges( collectionKey, audioIndex );\n this.#playAudio();\n\n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( collectionKey, audioIndex ){\n if( CollectionChecks.collectionChanged( collectionKey ) ){\n let collectionNavigation = new CollectionNavigation();\n\n collectionNavigation.setActiveCollection( collectionKey );\n collectionNavigation.changeAudioCollection(\n collectionKey,\n config.collections[ collectionKey ].audio[audioIndex],\n audioIndex,\n true\n );\n }\n }\n\n #handleAudioChanges( collectionKey, audioIndex ){\n if( AudioChecks.audioChanged( audioIndex, collectionKey ) ){\n let collectionNavigation = new CollectionNavigation();\n\n collectionNavigation.changeAudioCollection(\n collectionKey,\n config.collections[ collectionKey ].audio[audioIndex],\n audioIndex,\n true\n );\n }\n }\n\n #playAudio(){\n let audio = new Audio();\n audio.play();\n }\n}","import { GlobalPlayElement } from \"./PlayElements/GlobalPlayElement\";\nimport { CollectionPlayElement } from \"./PlayElements/CollectionPlayElement\";\nimport { AudioPlayElement } from \"./PlayElements/AudioPlayElement\";\nimport { CollectionAudioPlayElement } from \"./PlayElements/CollectionAudioPlayElement\";\n/**\n * Handles the configuration and managing of the play elements.\n * \n * A Play element is defined as the following:\n * \n * Element: class=\"amplitude-play\"\n * \n * GLOBAL: class=\"amplitude-play\"\n * Controls the entire state of the audio player. Will play whatever is active.\n * \n * COLLECTION: class=\"amplitude-play\" data-amplitude-collection-key=\"{collection_key}\"\n * Scoped to an individual collection. Will only play within the collection.\n * \n * AUDIO: class=\"amplitude-play\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element. Will only play a specific piece of audio.\n * \n * AUDIO IN COLLECTION: class=\"amplitude-play\" data-amplitude-collection-key=\"{collection_key}\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element within a collection. Will only play a specific piece of audio in a collection.\n */\nexport class PlayElement{\n setUp(){\n this.#configureGlobalPlayElement();\n this.#configureCollectionPlayElement();\n this.#configureAudioPlayElement();\n this.#configureCollectionAudioPlayElement();\n }\n\n #configureGlobalPlayElement(){\n let globalPlayElement = new GlobalPlayElement();\n globalPlayElement.initialize();\n }\n\n #configureCollectionPlayElement(){\n let collectionPlayElement = new CollectionPlayElement();\n collectionPlayElement.initialize();\n }\n\n #configureAudioPlayElement(){\n let audioPlayElement = new AudioPlayElement();\n audioPlayElement.initialize();\n }\n\n #configureCollectionAudioPlayElement(){\n let collectionAudioPlayElement = new CollectionAudioPlayElement();\n collectionAudioPlayElement.initialize();\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\n\nexport class PlaybackSpeedElement {\n static playbackSpeedElementQuery = '.amplitude-playback-speed';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( PlaybackSpeedElement.playbackSpeedElementQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n\n switch( ConfigState.getPlaybackSpeed() ){\n case 1:\n audio.setPlaybackSpeed( 1.5 );\n break;\n case 1.5:\n audio.setPlaybackSpeed( 2 );\n break;\n case 2:\n audio.setPlaybackSpeed( 1 );\n break;\n }\n\n PlaybackSpeedElement.syncElements();\n }\n }\n\n static syncElements(){\n let elements = document.querySelectorAll( PlaybackSpeedElement.playbackSpeedElementQuery );\n\n elements.forEach( function( element ){\n element.classList.remove(\"amplitude-playback-speed-10\");\n element.classList.remove(\"amplitude-playback-speed-15\");\n element.classList.remove(\"amplitude-playback-speed-20\");\n\n switch( ConfigState.getPlaybackSpeed() ){\n case 1:\n element.classList.add(\"amplitude-playback-speed-10\");\n break;\n case 1.5:\n element.classList.add(\"amplitude-playback-speed-15\");\n break;\n case 2:\n element.classList.add(\"amplitude-playback-speed-20\");\n break;\n }\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Debug } from \"@/services/Debug\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation.js\"\n\nexport class CollectionPreviousElement {\n static collectionPreviousQuery = '.amplitude-previous[data-amplitude-collection-key]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionPreviousElement.collectionPreviousQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let collectionKey = this.getAttribute('data-amplitude-collection-key');\n\n if( collectionKey == config.active_collection ){\n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.previous();\n }else{\n Debug.writeMessage(\"You can not go to the previous audio on a playlist that is not being played!\");\n }\n }\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Debug } from \"@/services/Debug\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation.js\"\n\nexport class GlobalPreviousElement {\n static globalPreviousQuery = '.amplitude-previous:not([data-amplitude-collection-key])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalPreviousElement.globalPreviousQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n if( ConfigState.getScope() == 'collection' ){\n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.previous();\n }else{\n Debug.writeMessage(\"You can only navigate previous when you are playing a collection.\");\n }\n }\n }\n}","import { CollectionPreviousElement } from \"./PreviousElements/CollectionPreviousElement\";\nimport { GlobalPreviousElement } from \"./PreviousElements/GlobalPreviousElement\";\n\n/**\n * Handles the configuration and managing of Previous elements\n * \n * A Previous element is defined as the following:\n * \n * Element: class=\"amplitude-previous\"\n * \n * GLOBAL: class=\"amplitude-previous\"\n * Handles previous for whatever scope the player is in.\n * \n * COLLECTION: class=\"amplitude-previous\" data-amplitude-collection=\"{collection_key}\"\n * Handles the previous audio within a specific collection.\n */\nexport class PreviousElement {\n setUp(){\n this.#configureGlobalPreviousElement();\n this.#configureCollectionPreviousElement();\n }\n\n #configureGlobalPreviousElement(){\n let globalPreviousElement = new GlobalPreviousElement();\n globalPreviousElement.initialize();\n }\n\n #configureCollectionPreviousElement(){\n let collectionPreviousElement = new CollectionPreviousElement();\n collectionPreviousElement.initialize(); \n }\n}","import { ConfigState } from '@/services/ConfigState';\n\nexport class Shuffle {\n #collection\n\n constructor( collection ){\n this.#collection = collection;\n }\n\n toggleShuffle( collection ){\n let isShuffled = ConfigState.isCollectionShuffled( collection );\n\n if( isShuffled ){\n ConfigState.setCollectionShuffled( collection, false, [] );\n }else{\n let shuffledAudio = this.#shuffleAudio( collection );\n ConfigState.setCollectionShuffled( collection, true, shuffledAudio );\n }\n }\n\n #shuffleAudio( collection ){\n let audio = ConfigState.getCollectionAudio( collection );\n let shuffleTemp = new Array( audio.length );\n\n audio.forEach( ( audio, index ) => {\n shuffleTemp[ index ] = audio[ index ]\n });\n\n for( let i = audio.length - 1; i > 0; i-- ){\n let randomNumber = Math.floor(\n Math.random() * audio.length + 1\n );\n\n this.#shuffleSwap( shuffleTemp, i, randomNumber - 1);\n }\n\n return shuffleTemp;\n }\n\n #shuffleSwap( list, original, random ){\n let temp = list[ original ];\n list[ original ] = list[ random ];\n list[ random ] = temp;\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Shuffle } from \"@/services/Collections/Shuffle\";\n\nexport class CollectionShuffleElement {\n static collectionShuffleQuery = '.amplitude-shuffle[data-amplitude-collection-key]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionShuffleElement.collectionShuffleQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n let collectionKey = this.getAttribute('data-amplitude-collection-key');\n\n let shuffle = new Shuffle( collectionKey );\n shuffle.toggleShuffle();\n\n CollectionShuffleElement.syncUI( collectionKey )\n }\n\n static syncUI( collection ){\n let elements = document.querySelectorAll( '.amplitude-shuffle[data-amplitude-collection=\"'+collection+'\"]');\n \n elements.forEach( ( element ) => {\n if( ConfigState.isCollectionShuffled( collection ) ){\n element.classList.add( \"amplitude-shuffle-on\" );\n element.classList.remove( \"amplitude-shuffle-off\" );\n }else{\n element.classList.add( \"amplitude-shuffle-off\" );\n element.classList.remove( \"amplitude-shuffle-on\" );\n }\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Shuffle } from \"@/services/Collections/Shuffle\";\nimport { Debug } from \"@/services/Debug\";\nimport { CollectionShuffleElement } from \"./CollectionShuffleElement\";\n\nexport class GlobalShuffleElement {\n static globalShuffleQuery = '.amplitude-shuffle:not([data-amplitude-collection-key])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalShuffleElement.globalShuffleQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( ConfigState.getScope() == 'collection' ){\n let collection = ConfigState.getActiveCollection();\n\n let shuffle = new Shuffle( collectionKey );\n shuffle.toggleShuffle();\n\n GlobalShuffleElement.syncUI();\n CollectionShuffleElement.syncUI( collection );\n }else{\n Debug.writeMessage(\"You can only shuffle a collection if you are playing a collection.\");\n }\n }\n\n static syncUI(){\n let elements = document.querySelectorAll( GlobalShuffleElement.globalShuffleQuery );\n let collection = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n if( ConfigState.isCollectionShuffled( collection ) ){\n element.classList.add( \"amplitude-shuffle-on\" );\n element.classList.remove( \"amplitude-shuffle-off\" );\n }else{\n element.classList.add( \"amplitude-shuffle-off\" );\n element.classList.remove( \"amplitude-shuffle-on\" );\n }\n });\n }\n}","import { CollectionShuffleElement } from \"./ShuffleElements/CollectionShuffleElement\";\nimport { GlobalShuffleElement } from \"./ShuffleElements/GlobalShuffleElement\";\n\n/**\n * Handles the configuration and managing of Shuffle elements\n * \n * A Shuffle element is defined as the following:\n * \n * Element: class=\"amplitude-shuffle\"\n * \n * GLOBAL: class=\"amplitude-shuffles\"\n * Shuffles the active collection\n * \n * COLLECTION: class=\"amplitude-shuffle\" data-amplitude-collection=\"{collection_key}\"\n * Shuffles the collection identified\n */\nexport class ShuffleElement {\n setUp(){\n this.#configureGlobalShuffleElement();\n this.#configureCollectionShuffleElement();\n }\n\n #configureGlobalShuffleElement(){\n let globalShuffleElement = new GlobalShuffleElement();\n globalShuffleElement.initialize();\n }\n\n #configureCollectionShuffleElement(){\n let collectionShuffleElement = new CollectionShuffleElement();\n collectionShuffleElement.initialize();\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { config } from '@/config';\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { Debug } from \"@/services/Debug\";\nimport { Navigation as AudioNavigation } from '@/services/Audio/Navigation.js';\nimport { PlayPauseElement } from '@/elements/PlayPauseElement';\n\nexport class AudioSkipToElement {\n static audioSkipToElementQuery = \".amplitude-skip-to[data-amplitude-audio-index]:not([data-amplitude-collection-key])\";\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioSkipToElement.audioSkipToElementQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n });\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n let location = element.getAttribute('data-amplitude-location');\n\n if( this.#validElement( audioIndex, location ) ){\n this.#handleAudioChange( audioIndex );\n this.#playAudio();\n PlayPauseElement.syncAll();\n this.#skipToLocation( location );\n }\n }\n }\n\n #validElement( audioIndex, location ){\n if( audioIndex == null ){\n Debug.writeMessage( \"You must add a `data-amplitude-audio-index` attribute to your `amplitude-skip-to` element.\");\n return false;\n }\n\n if( location == null ){\n Debug.writeMessage( \"You must add a `data-amplitude-location` attribute in seconds to your `amplitude-skip-to` element.\");\n return false;\n }\n\n return true;\n }\n\n #handleAudioChange( audioIndex ){\n let audioNavigation = new AudioNavigation();\n audioNavigation.changeAudio(\n config.audio[ parseInt( audioIndex ) ], parseInt( audioIndex ), true\n );\n }\n\n #playAudio(){\n let audio = new Audio();\n audio.play();\n }\n\n #skipToLocation( location ){\n let audio = new Audio();\n audio.skipToLocation( parseInt( location ) );\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { Checks as CollectionChecks } from \"@/services/Collections/Checks\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation\";\nimport { PlayPauseElement } from '@/elements/PlayPauseElement';\n\nexport class CollectionAudioSkipToElement {\n static collectionAudioSkipToElementQuery = \".amplitude-skip-to[data-amplitude-audio-index][data-amplitude-collection-key]\";\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioSkipToElement.collectionAudioSkipToElementQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n });\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n let collectionKey = element.getAttribute('data-amplitude-collection-key');\n let location = element.getAttribute('data-amplitude-location');\n\n if( this.#validElement( audioIndex, collectionKey, location ) ){\n this.#handleCollectionChange( collectionKey );\n this.#handleAudioChange( audioIndex, collectionKey );\n this.#playAudio();\n PlayPauseElement.syncAll();\n this.#skipToLocation( location );\n }\n }\n }\n\n #validElement( audioIndex, collectionKey, location ){\n if( audioIndex == null ){\n Debug.writeMessage( \"You must add a `data-amplitude-audio-index` attribute to your `amplitude-skip-to` element.\");\n return false;\n }\n\n if( collectionKey == null ){\n Debug.writeMessage( \"You must add a valid `data-amplitude-collection-key` attribute to your `amplitude-skip-to` element.\");\n return false;\n }\n\n if( location == null ){\n Debug.writeMessage( \"You must add a `data-amplitude-location` attribute in seconds to your `amplitude-skip-to` element.\");\n return false;\n }\n\n return true;\n }\n\n #handleCollectionChange( collection ){\n if( CollectionChecks.collectionChanged( collection ) ){ \n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.setActiveCollection( collection );\n }\n }\n\n #handleAudioChange( audioIndex, collectionKey ){\n let collectionNavigation = new CollectionNavigation();\n\n collectionNavigation.changeAudioCollection(\n collectionKey,\n config.collections[ collectionKey ].audio[ parseInt( audioIndex ) ],\n parseInt( audioIndex ),\n true\n );\n }\n\n #playAudio(){\n let audio = new Audio();\n audio.play();\n }\n\n #skipToLocation( location ){\n let audio = new Audio();\n audio.skipToLocation( parseInt( location ) );\n }\n}","import { AudioSkipToElement } from \"./SkipToElements/AudioSkipToElement\";\nimport { CollectionAudioSkipToElement } from \"./SkipToElements/CollectionAudioSkipToElement\";\n\nexport class SkipToElement {\n setUp(){\n this.#configureAudioSkipToElement();\n this.#configureCollectionAudioSkipToElement();\n }\n\n #configureAudioSkipToElement(){\n let audioSkipToElement = new AudioSkipToElement();\n audioSkipToElement.initialize();\n }\n\n #configureCollectionAudioSkipToElement(){\n let collectionAudioSkipToElement = new CollectionAudioSkipToElement();\n collectionAudioSkipToElement.initialize();\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { ConfigState } from \"@/services/ConfigState\";\n\n/**\n * Handles the configuration and managing of Stop elements\n * \n * A Stop element is defined as the following:\n * \n * Element: class=\"amplitude-stop\"\n * \n * Whenever this element is interacted with, the audio is stopped no matter where.\n */\nexport class StopElement {\n static stopElementQuery = '.amplitude-stop';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( StopElement.stopElementQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n audio.stop();\n\n PlayPauseElement.syncAll();\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { MuteElement } from \"./MuteElement\";\nimport { VolumeSliderElement } from \"./VolumeSliderElement\";\nimport { Debug } from \"@/services/Debug\";\n\n/**\n * Handles the configuration and managing of Volume Down elements\n * \n * A Volume Down element is defined as the following:\n * \n * Element: class=\"amplitude-volume-down\"\n * \n * Whenever this element is interacted with, the audio is muted no matter where.\n */\nexport class VolumeDownElement {\n static volumeDownElementQuery = '.amplitude-volume-down';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( VolumeDownElement.volumeDownElementQuery );\n }\n\n #bindInteractions(){\n if( this.#elements.length > 0 && ConfigState.isIos() ){\n Debug.writeMessage(\n \"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\"\n );\n }else{\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n let currentVolume = ConfigState.getVolume();\n let volumeDecrement = ConfigState.getVolumeDecrement();\n\n if( currentVolume - volumeDecrement > 0 ){\n audio.setVolume( currentVolume - volumeDecrement );\n }else{\n audio.setVolume( 0 );\n }\n\n MuteElement.syncElements();\n VolumeSliderElement.syncElements();\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { MuteElement } from \"./MuteElement\";\nimport { VolumeSliderElement } from \"./VolumeSliderElement\";\nimport { Debug } from \"@/services/Debug\";\n\n/**\n * Handles the configuration and managing of Volume Up elements\n * \n * A Volume Up element is defined as the following:\n * \n * Element: class=\"amplitude-volume-up\"\n * \n * Whenever this element is interacted with, the audio is muted no matter where.\n */\nexport class VolumeUpElement {\n static volumeUpElementQuery = '.amplitude-volume-up';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( VolumeUpElement.volumeUpElementQuery );\n }\n\n #bindInteractions(){\n if( this.#elements.length > 0 && ConfigState.isIos() ){\n Debug.writeMessage(\n \"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\"\n );\n }else{\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n let currentVolume = ConfigState.getVolume();\n let volumeIncrement = ConfigState.getVolumeIncrement();\n\n if( currentVolume + volumeIncrement <= 100 ){\n audio.setVolume( currentVolume + volumeIncrement );\n }else{\n audio.setVolume( 100 );\n }\n\n MuteElement.syncElements();\n VolumeSliderElement.syncElements();\n }\n }\n}","import { NextElement } from \"@/elements/NextElement\";\nimport { MetaDataElement } from \"@/elements/MetaDataElement\";\nimport { MuteElement } from \"@/elements/MuteElement\";\nimport { PauseElement } from \"@/elements/PauseElement\";\nimport { PlayElement } from \"@/elements/PlayElement\";\nimport { PlaybackSpeedElement } from \"@/elements/PlaybackSpeedElement\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { PreviousElement } from \"@/elements/PreviousElement\";\nimport { ShuffleElement } from \"@/elements/ShuffleElement\";\nimport { SkipToElement } from \"@/elements/SkipToElement\";\nimport { StopElement } from \"@/elements/StopElement\";\nimport { TrackerElement } from \"@/elements/TrackerElement\";\nimport { VolumeDownElement } from \"@/elements/VolumeDownElement\";\nimport { VolumeSliderElement } from \"@/elements/VolumeSliderElement\";\nimport { VolumeUpElement } from \"@/elements/VolumeUpElement\";\n\nexport class ElementsManager{\n setVisualElementsDefaults(){\n\n }\n\n initializeElements(){\n this.#initializeMetaData();\n this.#initializePlayElement();\n this.#initializePauseElement();\n this.#initializePlayPauseElement();\n this.#initializeNextElement();\n this.#initializePreviousElement();\n this.#initializeMuteElement();\n this.#initializeVolumeSliderElement();\n this.#initializePlaybackSpeedElement();\n this.#initializeStopElement();\n this.#initializeVolumeDownElement();\n this.#initializeVolumeUpElement();\n this.#initializeShuffleElement();\n this.#initializeSkipToElement();\n this.#initializeTrackerElement();\n }\n\n #initializeMetaData(){\n let metaDataElement = new MetaDataElement();\n metaDataElement.syncMetaData();\n }\n\n #initializePlayElement(){\n let playElement = new PlayElement();\n playElement.setUp();\n }\n\n #initializePauseElement(){\n let pauseElement = new PauseElement();\n pauseElement.setUp();\n }\n\n #initializePlayPauseElement(){\n let playPauseElement = new PlayPauseElement();\n playPauseElement.setUp();\n }\n\n #initializeNextElement(){\n let nextElement = new NextElement();\n nextElement.setUp();\n }\n\n #initializePreviousElement(){\n let previousElement = new PreviousElement();\n previousElement.setUp();\n }\n\n #initializeMuteElement(){\n let muteElement = new MuteElement();\n muteElement.setUp();\n }\n\n #initializeVolumeSliderElement(){\n let volumeSliderElement = new VolumeSliderElement();\n volumeSliderElement.setUp();\n }\n\n #initializePlaybackSpeedElement(){\n let playbackSpeedElement = new PlaybackSpeedElement();\n playbackSpeedElement.setUp();\n }\n\n #initializeStopElement(){\n let stopElement = new StopElement();\n stopElement.setUp();\n }\n\n #initializeVolumeDownElement(){\n let volumeDownElement = new VolumeDownElement();\n volumeDownElement.setUp();\n }\n\n #initializeVolumeUpElement(){\n let volumeUpElement = new VolumeUpElement();\n volumeUpElement.setUp();\n }\n\n #initializeShuffleElement(){\n let shuffleElement = new ShuffleElement();\n shuffleElement.setUp();\n }\n\n #initializeSkipToElement(){\n let skipToElement = new SkipToElement();\n skipToElement.setUp();\n }\n\n #initializeTrackerElement(){\n let trackerElement = new TrackerElement();\n trackerElement.setUp();\n }\n}","import { config } from '@/config.js';\n\nexport class Collections{\n constructor(){\n\n }\n\n initializeCollections(){\n if( config.collections.length > 0 ){\n this.#syncSoundCloudData();\n this.#setActiveIndexes();\n this.#initializeShuffle();\n this.#initializeRepeat();\n }\n }\n\n /**\n * @todo Implement Sound Cloud\n */\n #syncSoundCloudData(){\n // /*\n // Iterate over all of the config's playlists\n // */\n // for (let key in config.playlists) {\n // /*\n // Checks if the playlist key is accurate.\n // */\n // if (config.playlists.hasOwnProperty(key)) {\n // /*\n // Checks if the playlist has songs.\n // */\n // if (config.playlists[key].songs) {\n // /*\n // Iterate over all of the songs in the playlist\n // */\n // for (let i = 0; i < config.playlists[key].songs.length; i++) {\n // if (Checks.isInt(config.playlists[key].songs[i])) {\n // config.playlists[key].songs[i] =\n // config.songs[config.playlists[key].songs[i]];\n \n // config.playlists[key].songs[i].index = i;\n // }\n // /*\n // Check to see if the index for the song in the playlist\n // exists in the songs config.\n // */\n // if (\n // Checks.isInt(config.playlists[key].songs[i]) &&\n // !config.songs[config.playlists[key].songs[i]]\n // ) {\n // Debug.writeMessage(\n // \"The song index: \" +\n // config.playlists[key].songs[i] +\n // \" in playlist with key: \" +\n // key +\n // \" is not defined in your songs array!\"\n // );\n // }\n \n // /*\n // If not an int, then is a dedicated song, just set the index.\n // */\n // if (!Checks.isInt(config.playlists[key].songs[i]) ){\n // config.playlists[key].songs[i].index = i;\n // }\n // }\n // }\n // }\n // }\n }\n\n #setActiveIndexes(){\n config.collections.forEach( ( collection ) => {\n collection.active_index = null;\n } );\n }\n\n #initializeShuffle(){\n config.collections.forEach( ( collection ) => {\n collection.shuffle = false;\n collection.shuffle_list = [];\n } );\n }\n\n #initializeRepeat(){\n config.collections.forEach( ( collection ) => {\n collection.repeat = false;\n } );\n\n console.log( config );\n }\n}","import { Collections } from \"@/init/Collections\";\nimport { config } from '@/config.js';\nimport { MuteElement } from '@/elements/MuteElement';\nimport { PlaybackSpeedElement } from '@/elements/PlaybackSpeedElement';\n\nexport class UserConfig {\n copyUserSettings( userConfig ){\n this.setAudio( userConfig.audio );\n\t\tthis.setCollections( userConfig.collections );\n\t\tthis.setVolume( userConfig.volume );\n\t\tthis.setDebug( userConfig.debug );\n\t\tthis.setDefaultArtwork( userConfig.default_artwork );\n\t\tthis.setPlaybackSpeed( userConfig.playback_speed );\n\t\tthis.setCallbacks( userConfig.callbacks );\n }\n\n setAudio( value ){\n\t\tconfig.audio = value != undefined ? value : [];\n\n\t\tthis.#setDefaultLiveSettings();\n\t\tthis.#setDefaultAudioIndices();\n\t}\n\n #setDefaultLiveSettings(){\n\t\tconfig.audio.forEach( ( audio, index ) => {\n\t\t\tif( audio.live == undefined ){\n\t\t\t\taudio.live = false;\n\t\t\t}\n\t\t});\n\t}\n\n\t#setDefaultAudioIndices(){\n\t\tconfig.audio.forEach( ( audio, index ) => {\n\t\t\taudio.index = index;\n\t\t});\n\t}\n\n setCollections( userCollections ){\n\t\tconfig.collections = userCollections;\n\n let collections = new Collections();\n collections.initializeCollections();\n\t}\n\n setVolume( volume ){\n\t\tconfig.volume.current = volume && volume.initial ? volume.initial : 50;\n\t\tconfig.volume.increment = volume && volume.increment ? volume.increment : 5;\n\t\tconfig.volume.decrement = volume && volume.decrement ? volume.decrement : 5;\n\n\t\tMuteElement.syncElements();\n\t}\n\n setDebug( value ){\n\t\tconfig.debug = value != undefined ? value : false;\n\t}\n\n\tsetDefaultArtwork( value ){\n\t\tconfig.default_artwork = value != undefined ? value : false;\n\t}\n\n setPlaybackSpeed( speed ){\n\t\tconfig.playback_speed = speed != undefined ? speed : 1.0;\n\n\t\tPlaybackSpeedElement.syncElements();\n\t}\n\n\tsetCallbacks( callbacks ){\n\t\tconfig.callbacks = callbacks != undefined ? callbacks : [];\n\t}\n}","import { Debug } from \"@/services/Debug\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { EventManager } from \"@/services/EventManager\";\nimport { ElementsManager } from \"@/services/ElementsManager\";\nimport { UserConfig } from \"@/init/UserConfig\";\nimport { config } from \"../config\";\nimport { Navigation as AudioNavigation } from \"@/services/Audio/Navigation\";\nimport { Callbacks } from \"@/services/Callbacks\";\n\nexport class Initializer{\n #element;\n #userConfig;\n #configState;\n #ready = false;\n\n constructor( userConfig, element ){\n this.#configState = new ConfigState();\n this.#configState.setIsMobile();\n this.#userConfig = userConfig;\n this.#element = element;\n }\n\n setup(){\n if( this.#isValidUrl( this.#userConfig ) ){\n this.#loadUserConfig();\n }else{\n this.#prepareAmplitude();\n }\n }\n\n #isValidUrl(url){\n try {\n new URL(url);\n } catch (e) {\n Debug.writeMessage('AmplitudeJS must be initialized with a JSON object or a valid URL.')\n return false;\n }\n\n return true;\n }\n\n #loadUserConfig(){\n fetch( this.#userConfig )\n .then( ( response ) => {\n if( response.status != 200 ){\n throw response.status;\n }else{\n return response.json();\n }\n })\n .then( ( data ) => {\n this.#userConfig = data;\n this.#prepareAmplitude();\n })\n .catch( ( error ) => {\n Debug.writeMessage( error );\n })\n }\n\n #prepareAmplitude(){\n this.#resetConfig();\n this.#copyUserConfig();\n this.#initializeAudio();\n this.#initializeEvents();\n this.#initializeElements();\n this.#initializeCallbacks();\n }\n\n // Ensure we have a blank slate on initialization.\n #resetConfig(){\n this.#configState.resetConfig();\n }\n\n #copyUserConfig(){\n let userConfigInit = new UserConfig();\n userConfigInit.copyUserSettings( this.#userConfig );\n }\n\n #initializeEvents(){\n let eventManager = new EventManager();\n eventManager.initializeAllEvents();\n }\n\n #initializeAudio(){\n let audioNavigator = new AudioNavigation();\n\n if( config.start_audio ){\n \n }else{\n audioNavigator.changeAudio( config.audio[0], 0 );\n }\n }\n\n #initializeElements(){\n let elementsManager = new ElementsManager();\n elementsManager.initializeElements();\n }\n\n #initializeCallbacks(){\n let callbacks = new Callbacks();\n callbacks.handleNativeAudioElementEvents();\n }\n}","import { Initializer } from \"@/init/Initializer\";\n\n/**\n * The main init function. The user will call this through\n * Amplitude.init() and pass in their settings.\n *\n * Public Accessor: Amplitude.init( user_config_json )\n * @access public\n * @param {object|url} userConfig - A URL or JSON object of user defined values that help configure and initialize AmplitudeJS.\n * @param {string|element} element - A unique identifier or DOM Element to bind Amplitude methods to.\n */\nexport function init( userConfig = {}, element = null ){\n let initializer = new Initializer( userConfig, element );\n initializer.setup();\n}","import { config } from \"@/config.js\";\n\n/**\n * Returns the current config for AmplitudeJS\n * \n * Public Method: Amplitude.getConfig()\n * \n * @access public\n * @returns {object} \n */\nexport function getConfig(){\n return config;\n}","import { config } from \"@/config.js\";\n\n/**\n * Returns the key of the active playlist\n * \n * Public Method: Amplitude.getActivePlaylist()\n * \n * @access public\n * @returns {string} \n */\n export function getActivePlaylist(){\n return config.active_playlist;\n}","import { config } from \"@/config.js\";\nimport { Debug } from \"@/services/Debug\";\n\nconst validEventListeners = [\n 'abort',\n 'error',\n 'loadeddata',\n 'loadedmetadata',\n 'loadstart',\n 'pause',\n 'playing',\n 'play',\n 'progress',\n 'ratechange',\n 'seeked',\n 'seeking',\n 'stalled',\n 'suspend',\n 'timeupdate',\n 'volumechange',\n 'waiting',\n 'canplay',\n 'canplaythrough',\n 'durationchange',\n 'ended'\n];\n\n/**\n * Binds an event listener to a native HTML 5 event\n * emitted from the audio element.\n * \n * Public Accessor: Amplitude.addAudioEventListener( event, method )\n * @access public\n * @param string event - The event name you want to bind a listener to.\n * @param string method - The method you are binding to the event.\n */\nexport function addAudioEventListener( event, method ){\n if( validEventListeners.indexOf( event ) > -1 ){\n config.audio_element.addEventListener( event, method );\n }else{\n Debug.writeMessage( \"Invalid event listener. Please see all valid events here: https://www.w3schools.com/tags/ref_av_dom.asp\")\n }\n}","/**\n * @name AmplitudeJS\n * @author Dan Pastori (Server Side Up) \n */\nimport * as initMethods from \"@/methods/init.js\";\nimport * as configMethods from \"@/methods/config.js\";\nimport * as playlistMethods from \"@/methods/playlists.js\";\nimport * as eventListeners from \"@/methods/eventListeners.js\";\n\n/**\n * Amplitude is an interface to the public methods.\n * All public methods are in the /methods directory.\n * These methods use clases to perform functionality.\n * The state is stored in /config.js\n *\n * @module Amplitude\n */\nconst Amplitude = (function(){\n return {\n ...initMethods,\n ...configMethods,\n ...playlistMethods,\n ...eventListeners\n }\n})();\n\nexport default Amplitude;"],"names":["config","version","Debug","Audio","Checks","CollectionChecks","CollectionNavigation","Navigation","AudioChecks","AudioNavigation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAWaA,IAAS;AAAA,EAErB,eAAe,IAAI,MAAO;AAAA,EAC1B,QAAQ;AAAA,EACR,SAASC;AAAAA,EAGT,iBAAiB,CAAE;AAAA,EACnB,cAAc;AAAA,EACd,cAAc;AAAA,EAEd,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,mBAAmB;AAAA,EAEnB,gBAAgB;AAAA,EAChB,QAAQ;AAAA,EACR,cAAc,CAAE;AAAA,EAKhB,cAAc;AAAA,EACd,YAAY;AAAA,EAGZ,WAAW,CAAE;AAAA,EAEb,OAAO,CAAE;AAAA,EAET,aAAa,CAAE;AAAA,EAEf,OAAO;AAAA,EACP,iBAAiB;AAAA,EACjB,sBAAsB;AAAA,EAEtB,aAAa;AAAA,EAEb,mBAAmB;AAAA,EACnB,wBAAwB;AAAA,EAExB,kBAAkB;AAAA,EAClB,0BAA0B;AAAA,EAK1B,QAAQ;AAAA,IACP,SAAS;AAAA,IACT,WAAW;AAAA,IACX,WAAW;AAAA,IACX,gBAAgB;AAAA,EAChB;AAAA,EAYD,YAAY;AAAA,IACX,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,IACb,aAAa;AAAA,EACb;AAAA,EASD,iBAAiB;AAAA,EAEjB,UAAU;AAAA,EAEV,UAAU,CAAE;AAAA,EAEZ,eAAe;AAAA,EAEf,OAAO;AAAA,EAEP,cAAc;AAAA,EAEd,aAAa;AAAA,EAKb,eAAc;AAAA,IACb,YAAY;AAAA,IACZ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AA8B;AAC3C;AC1FE,YAAe,IAAa,IAAI,IAAU,MAAM;AAEnD,EADkB,IAAI,GAAa,GAAY,CAAO,EAC1C,MAAK;AACrB;;;;;ACJO,cAAoB;AACvB,SAAOA;AACX;;;;;ACFQ,cAA4B;AAChC,SAAOA,EAAO;AAClB;;;;8CCTM,KAAsB;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;AAWO,YAAgC,GAAO,GAAQ;AAClD,EAAI,GAAoB,QAAS,CAAO,IAAG,KACvCA,EAAO,cAAc,iBAAkB,GAAO,CAAM,IAEpDE,EAAM,aAAc,yGAAyG;AAErI;;;;8CCzBM,KAAa,WAAU;AACzB,SAAO;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EACN;AACL,EAAC;"} \ No newline at end of file diff --git a/dist/amplitude.umd.js b/dist/amplitude.umd.js new file mode 100644 index 00000000..2156c449 --- /dev/null +++ b/dist/amplitude.umd.js @@ -0,0 +1,2 @@ +var vh=Object.defineProperty;var gh=(v,y,E)=>y in v?vh(v,y,{enumerable:!0,configurable:!0,writable:!0,value:E}):v[y]=E;var r=(v,y,E)=>(gh(v,typeof y!="symbol"?y+"":y,E),E),Vs=(v,y,E)=>{if(!y.has(v))throw TypeError("Cannot "+E)};var c=(v,y,E)=>(Vs(v,y,"read from private field"),E?E.call(v):y.get(v)),i=(v,y,E)=>{if(y.has(v))throw TypeError("Cannot add the same private member more than once");y instanceof WeakSet?y.add(v):y.set(v,E)},u=(v,y,E,hs)=>(Vs(v,y,"write to private field"),hs?hs.call(v,E):y.set(v,E),E);var t=(v,y,E)=>(Vs(v,y,"access private method"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fa,Xu,ya,Zu,J,Ei,xt,Lt,va,Gu,ga,ed,X,Ai,It,St,Ea,td,Aa,id,Z,bi,Tt,wt,ba,ld,ka,nd,G,ki,Mt,Ct,xa,ad,La,od,ee,xi,Ia,sd,Sa,cd,Ta,ud,wa,dd,_t,Pt,Ma,rd,Ca,hd,te,Li,Qt,zt,_a,md,Pa,pd,ie,Ii,Qa,fd,za,yd,Ut,qt,Ua,vd,qa,gd,le,Si,Na,Ed,Da,Ad,Ha,bd,Nt,Dt,Va,kd,Fa,xd,ne,Ti,ja,Ld,Oa,Id,Ba,Sd,Ka,Td,Ya,wd,Ra,Md,$a,Cd,Ht,Vt,Wa,_d,Ja,Pd,ae,wi,jt,Ot,Xa,Qd,Za,zd,oe,Mi,Bt,Kt,Ga,Ud,eo,qd,se,Ci,to,Nd,io,Dd,lo,no,Hd,ao,Vd,Yt,Rt,oo,Fd,so,jd,ce,_i,$t,Wt,uo,Od,ro,Bd,ue,Pi,ho,Kd,mo,Yd,Xt,Zt,po,Rd,fo,$d,de,Qi,yo,Wd,vo,Jd,go,Xd,Eo,Zd,Gt,ei,Ao,Gd,bo,er,re,zi,ko,tr,xo,ir,Lo,lr,Io,nr,So,ar,To,or,wo,sr,ti,ii,Mo,cr,Co,ur,he,Ui,Te,li,_o,dr,Po,rr,me,qi,we,ni,Qo,hr,zo,mr,pe,Ni,Uo,pr,qo,fr,No,yr,Do,vr,Ho,gr,Vo,Er,Fo,Ar,jo,br,Oo,kr,Bo,xr,Ko,Lr,Yo,Ir,Ro,Sr,$o,Tr,Wo,wr,Jo,Mr,Xo,Cr,Zo,_r,Go,Pr,es,Qr,ts,zr,is,C,Me,Hs,ls,Ur,ns,qr,ai,Rs,as,Nr,os,Dr,ss,Hr,cs,Vr,us,Fr,ds,jr;"use strict";const Or={name:"amplitudejs",version:"6.0.0",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://serversideup.net/open-source/amplitudejs",main:"dist/amplitude.js",devDependencies:{vite:"^3.0.0"},directories:{doc:"docs"},files:["dist"],funding:{type:"opencollective",url:"https://opencollective.com/amplitudejs"},scripts:{dev:"vite",build:"vite build",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"},n={audio_element:new Audio,mobile:!1,version:Or,active_metadata:{},active_album:"",active_index:0,active_podcast:null,active_playlist:null,active_collection:null,playback_speed:1,repeat:!1,shuffle_list:{},repeat_audio:!1,shuffle_on:!1,callbacks:[],audio:[],collections:[],debug:!0,default_artwork:"",default_playlist_art:"",start_audio:"",starting_playlist:"",starting_playlist_song:"",starting_podcast:"",starting_podcast_episode:"",volume:{current:50,increment:5,decrement:5,pre_mute_level:50},soundcloud:{client:"",use_art:!1,audio_count:0,ready_count:0},is_touch_moving:!1,buffered:0,bindings:{},continue_next:!0,delay:0,player_state:"stopped",time_format:"MM:SS",web_audio_api:{availabile:!1,context:null,source:null,analyser:null},visualizations:{available:[],active:[],backup:""},waveforms:{sample_rate:100,built:[]}};class g{static writeMessage(e){n.debug&&console.log(e)}}class o{setIsMobile(){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?n.mobile=!0:n.mobile=!1}static isIos(){return/iPhone|iPad|iPod/i.test(navigator.userAgent)}static isIE(){return window.navigator.userAgent.indexOf("MSIE ")>0||!!navigator.userAgent.match(/Trident.*rv\:11\./)}static isMobile(){return n.mobile}static isTouchMoving(){return n.is_touch_moving}static getAudioState(){return n.audio_element.paused?"paused":"playing"}static getScope(){return n.active_collection==""||n.active_collection==null?"audio":"collection"}static getVolume(){return n.volume.current}static getVolumeIncrement(){return n.volume.increment}static getVolumeDecrement(){return n.volume.decrement}static getPreMuteVolume(){return n.volume.pre_mute_level}static setPreMuteVolume(e=null){e||(e=n.volume.current),n.volume.pre_mute_level=e}static getPlaybackSpeed(){return n.playback_speed}static isCollectionShuffled(e){return!!(n.collections[e]&&n.collections[e].shuffled)}static setCollectionShuffled(e,l,a){n.collections[e].shuffled=l,n.collections[e].audio=a}static getCollectionAudio(e){return n.collections[e].audio}static getActiveCollection(){return n.active_collection}static getActiveAudioIndex(){return n.active_index}static getContinueNext(){return n.continue_next}static updateBufferedTime(){if(n.audio_element.buffered.length-1>=0){let e=n.audio_element.buffered.end(n.audio_element.buffered.length-1),l=n.audio_element.duration;n.buffered=e/l*100}}static getBufferedPercentage(){return parseFloat(n.buffered)/100}static isLive(){return n.active_metadata.live}static getTimeFormat(){return n.time_format}static getCallback(e){let l=!1;return n.callbacks.forEach(function(a){a.event==e&&(l=a)}),l}resetConfig(){n.audio_element=new Audio,n.active_metadata={},n.active_album="",n.active_index=0,n.active_playlist=null,n.playback_speed=1,n.audio=[],n.playlists={},n.start_audio="",n.starting_playlist="",n.starting_playlist_song="",n.repeat=!1,n.shuffle_list={},n.shuffle_on=!1,n.default_artwork="",n.default_playlist_art="",n.debug=!0,n.callbacks=[],n.volume={current:50,increment:5,decrement:5,pre_mute_level:50},n.soundcloud={client:"",use_art:!1,audio_count:0,ready_count:0},n.continue_next=!0}static setPlayerState(){n.audio_element.paused&&n.audio_element.currentTime==0&&(n.player_state="stopped"),n.audio_element.paused&&n.audio_element.currentTime>0&&(n.player_state="paused"),n.audio_element.paused||(n.player_state="playing")}}const ms=class{constructor(){i(this,ul,["abort","error","loadeddata","loadedmetadata","loadstart","pause","playing","play","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","canplay","canplaythrough","durationchange","ended"])}handleNativeAudioElementEvents(){c(this,ul).forEach(function(e){n.audio_element.addEventListener(e,function(){ms.run(e)})})}static run(e){let l=o.getCallback(e);if(l){g.writeMessage("Running Callback for event '"+l.event+"' with method '"+l.handler+"'");try{window[l.handler]()}catch(a){if(a.message=="CANCEL EVENT")throw a;g.writeMessage(a.message)}}}};let b=ms;ul=new WeakMap;class p{constructor(){i(this,dl);i(this,Ne);i(this,rl);i(this,De);i(this,hl);i(this,He);i(this,ml);i(this,pl)}play(){t(this,dl,Zs).call(this),t(this,rl,Gs).call(this),t(this,hl,ec).call(this),o.setPlayerState()}pause(){t(this,Ne,Fs).call(this),t(this,He,Os).call(this),t(this,De,js).call(this),o.setPlayerState()}stop(){t(this,Ne,Fs).call(this),this.setCurrentTime(0),t(this,He,Os).call(this),t(this,De,js).call(this),o.setPlayerState(),b.run("stop")}skipToLocation(e){n.active_metadata.live||n.audio_element.addEventListener("canplaythrough",function(){n.audio_element.duration>=e&&e>0?n.audio_element.currentTime=e:g.writeMessage("Amplitude can't skip to a location greater than the duration of the audio or less than 0.")},{once:!0})}setVolume(e){t(this,ml,tc).call(this,e),t(this,pl,ic).call(this,e)}setAudioLocation(e){n.active_metadata.live||(n.audio_element.currentTime=n.audio_element.duration*(e/100))}setPlaybackSpeed(e){n.playback_speed=e,n.audio_element.playbackRate=n.playback_speed}setCurrentTime(e){isFinite(e)&&(n.audio_element.currentTime=e)}}dl=new WeakSet,Zs=function(){},Ne=new WeakSet,Fs=function(){},rl=new WeakSet,Gs=function(){(n.active_metadata.live||o.isMobile()&&!n.paused)&&(n.audio_element.src=n.active_metadata.url,n.audio_element.load())},De=new WeakSet,js=function(){n.active_metadata.live&&(n.audio_element.src="",n.audio_element.load())},hl=new WeakSet,ec=function(){let e=n.audio_element.play();e!==void 0&&e.then(l=>{}).catch(l=>{}),n.audio_element.playbackRate=n.playback_speed},He=new WeakSet,Os=function(){n.audio_element.pause(),n.paused=!0},ml=new WeakSet,tc=function(e){e==0?n.audio_element.muted=!0:n.audio_element.muted=!1},pl=new WeakSet,ic=function(e){n.volume.current=e,n.audio_element.volume=e/100};const je=class{constructor(){i(this,fl);i(this,yl);i(this,q);i(this,Ve,void 0);i(this,Fe,void 0);u(this,Fe,o.isMobile())}initialize(){t(this,fl,lc).call(this),t(this,yl,nc).call(this)}static syncUI(){let e=o.getAudioState();document.querySelectorAll(je.globalPlayPauseQuery).forEach(a=>{e=="playing"?m.setElementPlay(a):m.setElementPause(a)})}static syncToPause(){document.querySelectorAll(je.globalPlayPauseQuery).forEach(l=>{m.setElementPause(l)})}};let ye=je;Ve=new WeakMap,Fe=new WeakMap,fl=new WeakSet,lc=function(){u(this,Ve,document.querySelectorAll(je.globalPlayPauseQuery))},yl=new WeakSet,nc=function(){c(this,Ve).forEach(e=>{c(this,Fe)?(e.removeEventListener("touchend",t(this,q,oi)),e.addEventListener("touchend",t(this,q,oi))):(e.removeEventListener("click",t(this,q,oi)),e.addEventListener("click",t(this,q,oi)))})},q=new WeakSet,oi=function(){if(!o.isTouchMoving()){let e=new p;n.audio_element.paused?e.play():e.pause(),m.syncAll()}},r(ye,"globalPlayPauseQuery",".amplitude-play-pause:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])");class k{static collectionExists(e){return!!n.collections[e]}static collectionChanged(e){return n.active_collection!=e}static isCollectionShuffled(e){return!!n.collections[e].shuffle}}const Ke=class{constructor(){i(this,vl);i(this,gl);i(this,N);i(this,El);i(this,Al);i(this,Oe,void 0);i(this,Be,void 0);u(this,Be,o.isMobile())}initialize(){t(this,vl,ac).call(this),t(this,gl,oc).call(this)}static syncUI(){let e=o.getAudioState(),l=document.querySelectorAll(Ke.collectionPlayPauseQuery),a=o.getActiveCollection();l.forEach(s=>{let d=s.getAttribute("data-amplitude-collection-key");e=="playing"&&a==d?m.setElementPlay(s):m.setElementPause(s)})}static syncToPause(){document.querySelectorAll(Ke.collectionPlayPauseQuery).forEach(l=>{m.setElementPause(l)})}};let ve=Ke;Oe=new WeakMap,Be=new WeakMap,vl=new WeakSet,ac=function(){u(this,Oe,document.querySelectorAll(Ke.collectionPlayPauseQuery))},gl=new WeakSet,oc=function(){c(this,Oe).forEach(e=>{c(this,Be)?(e.removeEventListener("touchend",t(this,N,si)),e.addEventListener("touchend",t(this,N,si).bind(this,e))):(e.removeEventListener("click",t(this,N,si)),e.addEventListener("click",t(this,N,si).bind(this,e)))})},N=new WeakSet,si=function(e){if(!o.isTouchMoving()){let l=e.getAttribute("data-amplitude-collection-key");if(!k.collectionExists(l))return g.writeMessage('Collection with key "'+l+'" does not exist! Please define this collection in your configuration.'),!1;t(this,El,sc).call(this,l),t(this,Al,cc).call(this),m.syncAll()}},El=new WeakSet,sc=function(e){if(k.collectionChanged(e)){let l=new A;l.setActiveCollection(e),k.isCollectionShuffled(e)?l.changeAudioCollection(e,n.collections[e].shuffle_list[0],0,!0):l.changeAudioCollection(e,n.collections[e].audio[0],0)}},Al=new WeakSet,cc=function(){let e=new p;n.audio_element.paused?e.play():e.pause()},r(ve,"collectionPlayPauseQuery",".amplitude-play-pause[data-amplitude-collection-key]:not([data-amplitude-audio-index])");class ge{static audioExists(e){return!!n.audio[e]}static audioChanged(e,l=null){return n.active_collection!=l?!0:n.active_collection==null&&l==null?n.active_index!=e:n.active_collection==collection&&n.collections[l].active_index!=e}}const ke=class{constructor(){i(this,kl);i(this,xl);i(this,Ll);i(this,Il);i(this,D);i(this,bl,["cover_art_url","station_art_url","podcast_episode_cover_art_url","album_art_url"])}displayMetaData(){t(this,kl,uc).call(this),t(this,xl,dc).call(this)}displayCollectionMetaData(){}syncMetaData(){t(this,Ll,rc).call(this),t(this,Il,hc).call(this),this.displayCollectionMetaData()}};let x=ke;bl=new WeakMap,kl=new WeakSet,uc=function(){document.querySelectorAll(ke.globalMetaDataElementsQuery).forEach(l=>{let a=l.getAttribute("data-amplitude-audio-info"),s=n.active_metadata[a]!=null?n.active_metadata[a]:null;t(this,D,ci).call(this,a,s,l)})},xl=new WeakSet,dc=function(){document.querySelectorAll(ke.collectionMetaDataElementsQuery).forEach(l=>{let a=l.getAttribute("data-amplitude-audio-info"),s=n.active_metadata[a]!=null?n.active_metadata[a]:null;t(this,D,ci).call(this,a,s,l)})},Ll=new WeakSet,rc=function(){document.querySelectorAll(ke.audioMetaDataElementsQuery).forEach(l=>{let a=l.getAttribute("data-amplitude-audio-info"),s=l.getAttribute("data-amplitude-audio-index"),d=n.audio[s][a]!=null?n.audio[s][a]:null;t(this,D,ci).call(this,a,d,l)})},Il=new WeakSet,hc=function(){document.querySelectorAll(ke.collectionAudioMetaDataElementsQuery).forEach(l=>{let a=l.getAttribute("data-amplitude-audio-info"),s=l.getAttribute("data-amplitude-audio-index"),d=l.getAttribute("data-amplitude-collection-key"),f=n.collections[d].audio[s][info]!=null?n.collections[d].audio[s][info]:null;t(this,D,ci).call(this,a,f,l)})},D=new WeakSet,ci=function(e,l,a){c(this,bl).indexOf(e)>=0?(l=l||n.default_art,a.setAttribute("src",l)):(l=l||"",a.innerHTML=l)},r(x,"globalMetaDataElementsQuery","[data-amplitude-audio-info]:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"),r(x,"collectionMetaDataElementsQuery","[data-amplitude-audio-info][data-amplitude-collection-key]:not([data-amplitude-audio-index])"),r(x,"audioMetaDataElementsQuery","[data-amplitude-audio-info][data-amplitude-audio-index]:not([data-amplitude-collection-key])"),r(x,"collectionAudioMetaDataElementsQuery","[data-amplitude-audio-info][data-amplitude-audio-index][data-amplitude-collection-key]"),r(x,"collectionInfoElementsQuery","[data-amplitude-collection-info]");const ps=class{constructor(){i(this,Sl);i(this,Tl);i(this,wl);i(this,Ml);i(this,Ye,void 0);i(this,Re,void 0)}setActive(){o.getScope()=="audio"&&(t(this,Sl,mc).call(this),t(this,Tl,pc).call(this),t(this,wl,fc).call(this),t(this,Ml,yc).call(this))}};let Di=ps;Ye=new WeakMap,Re=new WeakMap,Sl=new WeakSet,mc=function(){u(this,Ye,document.querySelectorAll(ps.audioContainerElementQuery))},Tl=new WeakSet,pc=function(){c(this,Ye).forEach(function(e){e.classList.remove("amplitude-active-audio-container")})},wl=new WeakSet,fc=function(){u(this,Re,n.active_index)},Ml=new WeakSet,yc=function(){document.querySelectorAll('.amplitude-audio-container[data-amplitude-audio-index="'+c(this,Re)+'"]:not([data-amplitude-collection-key])').forEach(function(l){l.classList.add("amplitude-active-audio-container")})},r(Di,"audioContainerElementQuery",".amplitude-audio-container[data-amplitude-audio-index]:not([data-amplitude-collection-key])");const fs=class{constructor(e){i(this,Cl);i(this,_l);i(this,Pl);i(this,Ql);i(this,$e,void 0);i(this,We,void 0);i(this,H,void 0);i(this,L,void 0);u(this,$e,e)}setActive(){o.getScope()=="collection"&&(t(this,Cl,vc).call(this),t(this,_l,gc).call(this),t(this,Pl,Ec).call(this),t(this,Ql,Ac).call(this))}};let Hi=fs;$e=new WeakMap,We=new WeakMap,H=new WeakMap,L=new WeakMap,Cl=new WeakSet,vc=function(){u(this,We,document.querySelectorAll(fs.collectionAudioContainerElementQuery))},_l=new WeakSet,gc=function(){c(this,We).forEach(function(e){e.classList.remove("amplitude-active-audio-container")})},Pl=new WeakSet,Ec=function(){u(this,L,o.getActiveCollection()),c(this,$e)?u(this,H,n.collections[c(this,L)].active_index):o.isCollectionShuffled(c(this,L))?u(this,H,n.collections[c(this,L)].shuffle_list[n.collections[c(this,L)].active_index].index):u(this,H,n.collections[c(this,L)].active_index)},Ql=new WeakSet,Ac=function(){document.querySelectorAll('.amplitude-audio-container[data-amplitude-audio-index="'+c(this,H)+'"][data-amplitude-collection-key="'+c(this,L)+'"]').forEach(function(l){l.classList.add("amplitude-active-audio-container")})},r(Hi,"collectionAudioContainerElementQuery",".amplitude-audio-container[data-amplitude-audio-index][data-amplitude-collection-key]");class $s{constructor(){i(this,zl);i(this,Ul)}setActiveContainers(e){t(this,zl,bc).call(this),t(this,Ul,kc).call(this,e)}}zl=new WeakSet,bc=function(){new Di().setActive()},Ul=new WeakSet,kc=function(e){new Hi(e).setActive()};class Ee{constructor(){i(this,ql);i(this,Nl);i(this,Dl);i(this,Hl)}changeAudio(e,l,a=!1){t(this,ql,xc).call(this,e),t(this,Nl,Lc).call(this,e,l),t(this,Dl,Ic).call(this,a)}}ql=new WeakSet,xc=function(e){new p().stop(),m.syncAllToPause()},Nl=new WeakSet,Lc=function(e,l){n.active_collection=null,n.audio_element.src=e.url,n.active_metadata=e,n.active_index=parseInt(l)},Dl=new WeakSet,Ic=function(e){t(this,Hl,Sc).call(this),new $s().setActiveContainers(e),b.run("audio_change")},Hl=new WeakSet,Sc=function(){new x().displayMetaData()};const Ze=class{constructor(){i(this,Vl);i(this,Fl);i(this,V);i(this,jl);i(this,Ol);i(this,Bl);i(this,Je,void 0);i(this,Xe,void 0);u(this,Xe,o.isMobile())}initialize(){t(this,Vl,Tc).call(this),t(this,Fl,wc).call(this)}static syncUI(){let e=o.getAudioState(),l=document.querySelectorAll(Ze.audioPlayPauseQuery),a=o.getActiveAudioIndex();l.forEach(s=>{let d=s.getAttribute("data-amplitude-audio-index");e=="playing"&&a==d?m.setElementPlay(s):m.setElementPause(s)})}static syncToPause(){document.querySelectorAll(Ze.audioPlayPauseQuery).forEach(l=>{m.setElementPause(l)})}};let Ae=Ze;Je=new WeakMap,Xe=new WeakMap,Vl=new WeakSet,Tc=function(){u(this,Je,document.querySelectorAll(Ze.audioPlayPauseQuery))},Fl=new WeakSet,wc=function(){c(this,Je).forEach(e=>{c(this,Xe)?(e.removeEventListener("touchend",t(this,V,ui)),e.addEventListener("touchend",t(this,V,ui).bind(this,e))):(e.removeEventListener("click",t(this,V,ui)),e.addEventListener("click",t(this,V,ui).bind(this,e)))})},V=new WeakSet,ui=function(e){if(!o.isTouchMoving()){let l=e.getAttribute("data-amplitude-audio-index");if(!ge.audioExists(l))return g.writeMessage('Audio with index "'+l+'" does not exist! Please add an audio object at this index in your configuration.'),!1;t(this,jl,Mc).call(this,l),t(this,Ol,Cc).call(this,l),t(this,Bl,_c).call(this),m.syncAll()}},jl=new WeakSet,Mc=function(e){if(k.collectionChanged(null)){let l=new A,a=new Ee;l.setActiveCollection(null),a.changeAudio(n.audio[e],e,!0)}},Ol=new WeakSet,Cc=function(e){ge.audioChanged(e)&&new Ee().changeAudio(n.audio[e],e,!0)},Bl=new WeakSet,_c=function(){let e=new p;n.audio_element.paused?e.play():e.pause()},r(Ae,"audioPlayPauseQuery",".amplitude-play-pause[data-amplitude-audio-index]:not([data-amplitude-collection-key])");const tt=class{constructor(){i(this,Kl);i(this,Yl);i(this,F);i(this,Rl);i(this,$l);i(this,Wl);i(this,Ge,void 0);i(this,et,void 0);u(this,et,o.isMobile())}initialize(){t(this,Kl,Pc).call(this),t(this,Yl,Qc).call(this)}static syncUI(){let e=o.getAudioState();document.querySelectorAll(tt.collectionAudioPlayPauseQuery).forEach(a=>{e=="playing"?m.setElementPlay(a):m.setElementPause(a)})}static syncToPause(){document.querySelectorAll(tt.collectionAudioPlayPauseQuery).forEach(l=>{m.setElementPause(l)})}};let be=tt;Ge=new WeakMap,et=new WeakMap,Kl=new WeakSet,Pc=function(){u(this,Ge,document.querySelectorAll(tt.collectionAudioPlayPauseQuery))},Yl=new WeakSet,Qc=function(){c(this,Ge).forEach(e=>{c(this,et)?(e.removeEventListener("touchend",t(this,F,di)),e.addEventListener("touchend",t(this,F,di).bind(this,e))):(e.removeEventListener("click",t(this,F,di)),e.addEventListener("click",t(this,F,di).bind(this,e)))})},F=new WeakSet,di=function(e){if(!o.isTouchMoving()){let l=e.getAttribute("data-amplitude-collection-key"),a=e.getAttribute("data-amplitude-audio-index");t(this,Rl,zc).call(this,l,a),t(this,$l,Uc).call(this,l,a),t(this,Wl,qc).call(this),m.syncAll()}},Rl=new WeakSet,zc=function(e,l){if(k.collectionChanged(e)){let a=new A;a.setActiveCollection(e),a.changeAudioCollection(e,n.collections[e].audio[l],l,!0)}},$l=new WeakSet,Uc=function(e,l){ge.audioChanged(l,e)&&new A().changeAudioCollection(e,n.collections[e].audio[l],l,!0)},Wl=new WeakSet,qc=function(){let e=new p;n.audio_element.paused?e.play():e.pause()},r(be,"collectionAudioPlayPauseQuery",".amplitude-play-pause[data-amplitude-audio-index][data-amplitude-collection-key]");class m{constructor(){i(this,Jl);i(this,Xl);i(this,Zl);i(this,Gl)}setUp(){t(this,Jl,Nc).call(this),t(this,Xl,Dc).call(this),t(this,Zl,Hc).call(this),t(this,Gl,Vc).call(this)}static syncAll(){ye.syncUI(),ve.syncUI(),Ae.syncUI(),be.syncUI()}static syncAllToPause(){ye.syncToPause(),ve.syncToPause(),Ae.syncToPause(),be.syncToPause()}static setElementPlay(e){e.classList.add("amplitude-playing"),e.classList.remove("amplitude-paused")}static setElementPause(e){e.classList.remove("amplitude-playing"),e.classList.add("amplitude-paused")}}Jl=new WeakSet,Nc=function(){new ye().initialize()},Xl=new WeakSet,Dc=function(){new ve().initialize()},Zl=new WeakSet,Hc=function(){new Ae().initialize()},Gl=new WeakSet,Vc=function(){new be().initialize()};class A{constructor(){i(this,en);i(this,it);i(this,tn);i(this,ln);i(this,nn);i(this,an);i(this,on);i(this,sn);i(this,cn);i(this,un);i(this,dn);i(this,rn)}next(e=null,l=!1){e||(e=n.active_collection);let a=t(this,en,Fc).call(this,e);this.setActiveCollection(e),this.changeCollectionAudio(e,a.audio,a.index),t(this,nn,Bc).call(this,a.end,l),m.syncAll(),b.run("next"),n.repeat_audio&&b.run("audio_repeated")}previous(e=null){e||(e=n.active_collection);let l=t(this,an,Kc).call(this,e);this.setActiveCollection(e),this.changeCollectionAudio(e,l.audio,l.index),new p().play(),m.syncAll(),b.run("previous"),n.repeat_audio&&b.run("audio_repeated")}setActiveCollection(e){n.active_collection!=e&&(b.run("collection_changed"),n.active_collection=e,e!=null&&(n.collections[e].active_index=0))}changeAudioCollection(e,l,a,s){t(this,cn,$c).call(this,l),t(this,un,Wc).call(this,e,l,a),t(this,dn,Jc).call(this,s)}}en=new WeakSet,Fc=function(e){return n.repeat_audio?t(this,it,Bs).call(this,e):n.collections[e].shuffle?t(this,tn,jc).call(this,e):t(this,ln,Oc).call(this,e)},it=new WeakSet,Bs=function(e){let l=n.collections[e].active_index;return{index:nextIndex,audio:n.collections[e].shuffle?n.collections[e].shuffle_list[l]:n.collections[e].audio[l],end:!1}},tn=new WeakSet,jc=function(e){let l=null,a=!1,s=n.collections[e].active_index,d=n.collections[e].shuffle_list.length;return parseInt(s+1)=0?l=parseInt(a-1):l=parseInt(s-1),{index:l,audio:n.collections[e].shuffleList[l]}},sn=new WeakSet,Rc=function(e){let l=null,a=n.collections[e].active_index,s=n.collections[e].audio.length;return parseInt(a-1)>=0?l=parseInt(a-1):l=parseInt(s-1),{index:l,audio:n.collections[e].audio[l]}},cn=new WeakSet,$c=function(e){p.stop(),m.syncAllToPause()},un=new WeakSet,Wc=function(e,l,a){n.audio_element=l.url,n.active_metadata=l,n.active_index=null,n.collections[e].active_index=parseInt(a)},dn=new WeakSet,Jc=function(e){t(this,rn,Xc).call(this),new $s().setActiveContainers(e),b.run("audio_change")},rn=new WeakSet,Xc=function(){new x().displayMetaData()};class Br{constructor(){i(this,lt)}bind(){n.audio_element.removeEventListener("ended",t(this,lt,Ks)),n.audio_element.addEventListener("ended",t(this,lt,Ks).bind(this))}}lt=new WeakSet,Ks=function(){setTimeout(function(){o.getScope()=="collection"&&o.getContinueNext()?new A().next(o.getActiveCollection(),!0):(new p().stop(),m.syncAll())},n.delay)};class Kr{constructor(){i(this,hn);i(this,nt);i(this,mn)}bind(){t(this,hn,Zc).call(this)}}hn=new WeakSet,Zc=function(){document.removeEventListener("keydown",t(this,nt,Ys).bind(this)),document.addEventListener("keydown",t(this,nt,Ys).bind(this))},nt=new WeakSet,Ys=function(e){t(this,mn,Gc).call(this)||e.key},mn=new WeakSet,Gc=function(){let e=document.activeElement.tagName.toLowerCase();return["input","textarea","select","checkbox"].indexOf(e)>-1};const ys=class{static syncUI(){document.querySelectorAll(ys.globalBufferedProgressQuery).forEach(function(l){isNaN(n.buffered)||(l.value=parseFloat(o.getBufferedPercentage()))})}};let Vi=ys;r(Vi,"globalBufferedProgressQuery","progress.amplitude-buffered-progress:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])");class Yr{static syncUI(){let e=o.getActiveCollection();document.querySelectorAll('progress.amplitude-buffered-progress[data-amplitude-collection-key="'+e+'"]:not([data-amplitude-audio-index])').forEach(function(a){isNaN(n.buffered)||(a.value=parseFloat(o.getBufferedPercentage()))})}}class Ws{static syncUI(){let e=o.getActiveAudioIndex();document.querySelectorAll('progress.amplitude-buffered-progress[data-amplitude-audio-index="'+e+'"]:not([data-amplitude-collection-key])').forEach(function(a){isNaN(n.buffered)||(a.value=parseFloat(o.getBufferedPercentage()))})}}r(Ws,"audioBufferedProgressQuery","progress.amplitude-buffered-progress[data-amplitude-audio-index]:not([data-amplitude-collection-key])");class Rr{static syncAll(){Vi.syncUI(),Yr.syncUI(),Ws.syncUI()}}const vs=class{static syncUI(e){!isNaN(e)&&isFinite(e)&&document.querySelectorAll(vs.globalProgressQuery).forEach(a=>{let s=a.max;a.value=e/100*s})}};let Fi=vs;r(Fi,"globalProgressQuery","progress.amplitude-audio-played-progress:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])");const gs=class{static syncUI(e){if(!isNaN(e)&&isFinite(e)){let l=document.querySelectorAll(gs.collectionProgressQuery),a=o.getActiveCollection();l.forEach(s=>{let d=s.getAttribute("data-amplitude-collection-key"),f=s.max;a==d?s.value=e/100*f:s.value=0})}}};let ji=gs;r(ji,"collectionProgressQuery","progress.amplitude-audio-played-progress[data-amplitude-collection-key]:not([data-amplitude-audio-index])");const Es=class{static syncUI(e){if(!isNaN(e)&&isFinite(e)){let l=document.querySelectorAll(Es.audioProgressQuery),a=o.getActiveAudioIndex();l.forEach(s=>{let d=s.getAttribute("data-amplitude-audio-index"),f=s.max;a==d?s.value=e/100*f:s.value=0})}}};let Oi=Es;r(Oi,"audioProgressQuery","progress.amplitude-audio-played-progress[data-amplitude-audio-index]:not([data-amplitude-collection-key])");const As=class{static syncUI(e){if(!isNaN(e)&&isFinite(e)){let l=document.querySelectorAll(As.collectionAudioProgressQuery),a=o.getActiveCollection(),s=o.getActiveAudioIndex();l.forEach(d=>{let f=d.getAttribute("data-amplitude-collection-key"),fe=d.getAttribute("data-amplitude-audio-index"),rs=d.max;a==f&&s==fe?d.value=e/100*rs:d.value=0})}}};let Bi=As;r(Bi,"collectionAudioProgressQuery","progress.amplitude-audio-played-progress[data-amplitude-collection-key][data-amplitude-audio-index]");class $r{constructor(){}static syncCurrentTime(e){Fi.syncUI(e),ji.syncUI(e),Oi.syncUI(e),Bi.syncUI(e)}}class Ce{constructor(){i(this,pn);i(this,fn);i(this,yn);i(this,vn);i(this,gn);i(this,En)}static percentageInSeconds(e){return n.audio_element.duration*(e/100)}computeCurrentTimes(){let e={};return e.seconds=t(this,pn,eu).call(this),e.minutes=t(this,fn,tu).call(this),e.hours=t(this,yn,iu).call(this),e}computeAudioCompletionPercentage(){return n.audio_element.currentTime/n.audio_element.duration*100}computeAudioDuration(){let e={};return e.seconds=t(this,vn,lu).call(this),e.minutes=t(this,gn,nu).call(this),e.hours=t(this,En,au).call(this),e}}pn=new WeakSet,eu=function(){return(Math.floor(n.audio_element.currentTime%60)<10?"0":"")+Math.floor(n.audio_element.currentTime%60)},fn=new WeakSet,tu=function(){let e=Math.floor(n.audio_element.currentTime/60);return e<10&&(e="0"+e),e},yn=new WeakSet,iu=function(){let e=Math.floor(n.audio_element.currentTime/3600);return e<10&&(e="0"+e),e},vn=new WeakSet,lu=function(){return(Math.floor(n.audio_element.duration%60)<10?"0":"")+Math.floor(n.audio_element.duration%60)},gn=new WeakSet,nu=function(){let e=Math.floor(n.audio_element.duration/60);return e<10&&(e="0"+e),e},En=new WeakSet,au=function(){let e=Math.floor(n.audio_element.duration/3600);return e<10&&(e="0"+e),e};const xe=class{constructor(e){i(this,An);i(this,bn);i(this,kn);i(this,xn);i(this,I,void 0);u(this,I,e)}sync(){t(this,An,ou).call(this),t(this,bn,su).call(this),t(this,kn,cu).call(this),t(this,xn,uu).call(this)}};let _=xe;I=new WeakMap,An=new WeakSet,ou=function(){let e=o.getTimeFormat(),l=document.querySelectorAll(xe.globalFormattedTimeElementQuery),a=e.replace("HH",c(this,I).hours).replace("MM",c(this,I).minutes).replace("SS",c(this,I).seconds);l.forEach(s=>{s.innerHTML=a})},bn=new WeakSet,su=function(){document.querySelectorAll(xe.globalHoursTimeElementQuery).forEach(l=>{l.innerHTML=c(this,I).hours})},kn=new WeakSet,cu=function(){document.querySelectorAll(xe.globalMinutesTimeElementQuery).forEach(l=>{l.innerHTML=c(this,I).minutes})},xn=new WeakSet,uu=function(){document.querySelectorAll(xe.globalSecondsTimeElementQuery).forEach(l=>{l.innerHTML=c(this,I).seconds})},r(_,"globalFormattedTimeElementQuery",".amplitude-current-time:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"),r(_,"globalHoursTimeElementQuery",".amplitude-current-hours:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"),r(_,"globalMinutesTimeElementQuery",".amplitude-current-minutes:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])"),r(_,"globalSecondsTimeElementQuery",".amplitude-current-seconds:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])");const Le=class{constructor(e){i(this,Ln);i(this,In);i(this,Sn);i(this,Tn);i(this,S,void 0);u(this,S,e)}sync(){t(this,Ln,du).call(this),t(this,In,ru).call(this),t(this,Sn,hu).call(this),t(this,Tn,mu).call(this)}};let P=Le;S=new WeakMap,Ln=new WeakSet,du=function(){let e=o.getTimeFormat(),l=o.getActiveCollection(),a=document.querySelectorAll(Le.collectionFormattedTimeElementQuery),s=e.replace("HH",c(this,S).hours).replace("MM",c(this,S).minutes).replace("SS",c(this,S).seconds);a.forEach(d=>{let f=d.getAttribute("data-amplitude-collection-key");l==f?d.innerHTML=s:d.innerHTML="00:00"})},In=new WeakSet,ru=function(){let e=document.querySelectorAll(Le.collectionHoursTimeElementQuery),l=o.getActiveCollection();e.forEach(a=>{let s=a.getAttribute("data-amplitude-collection-key");l==s?a.innerHTML=c(this,S).hours:a.innerHTML="00"})},Sn=new WeakSet,hu=function(){let e=document.querySelectorAll(Le.collectionMinutesTimeElementQuery),l=o.getActiveCollection();e.forEach(a=>{let s=a.getAttribute("data-amplitude-collection-key");l==s?a.innerHTML=c(this,S).minutes:a.innerHTML="00"})},Tn=new WeakSet,mu=function(){let e=document.querySelectorAll(Le.collectionSecondsTimeElementQuery),l=o.getActiveCollection();e.forEach(a=>{let s=a.getAttribute("data-amplitude-collection-key");l==s?a.innerHTML=c(this,S).seconds:a.innerHTML="00"})},r(P,"collectionFormattedTimeElementQuery",".amplitude-current-time[data-amplitude-collection-key]:not([data-amplitude-audio-index])"),r(P,"collectionHoursTimeElementQuery",".amplitude-current-hours[data-amplitude-collection-key]:not([data-amplitude-audio-index])"),r(P,"collectionMinutesTimeElementQuery",".amplitude-current-minutes[data-amplitude-collection-key]:not([data-amplitude-audio-index])"),r(P,"collectionSecondsTimeElementQuery",".amplitude-current-seconds[data-amplitude-collection-key]:not([data-amplitude-audio-index])");const Ie=class{constructor(e){i(this,wn);i(this,Mn);i(this,Cn);i(this,_n);i(this,T,void 0);u(this,T,e)}sync(){t(this,wn,pu).call(this),t(this,Mn,fu).call(this),t(this,Cn,yu).call(this),t(this,_n,vu).call(this)}};let Q=Ie;T=new WeakMap,wn=new WeakSet,pu=function(){let e=o.getTimeFormat(),l=o.getActiveAudioIndex(),a=document.querySelectorAll(Ie.audioFormattedTimeElementQuery),s=e.replace("HH",c(this,T).hours).replace("MM",c(this,T).minutes).replace("SS",c(this,T).seconds);a.forEach(d=>{let f=d.getAttribute("data-amplitude-audio-index");l==f?d.innerHTML=s:d.innerHTML="00:00"})},Mn=new WeakSet,fu=function(){let e=document.querySelectorAll(Ie.audioHoursTimeElementQuery),l=o.getActiveAudioIndex();e.forEach(a=>{let s=a.getAttribute("data-amplitude-audio-index");l==s?a.innerHTML=c(this,T).hours:a.innerHTML="00"})},Cn=new WeakSet,yu=function(){let e=document.querySelectorAll(Ie.audioMinutesTimeElementQuery),l=o.getActiveAudioIndex();e.forEach(a=>{let s=a.getAttribute("data-amplitude-audio-index");l==s?a.innerHTML=c(this,T).minutes:a.innerHTML="00"})},_n=new WeakSet,vu=function(){let e=document.querySelectorAll(Ie.audioSecondsTimeElementQuery),l=o.getActiveAudioIndex();e.forEach(a=>{let s=a.getAttribute("data-amplitude-audio-index");l==s?a.innerHTML=c(this,T).seconds:a.innerHTML="00"})},r(Q,"audioFormattedTimeElementQuery",".amplitude-current-time[data-amplitude-audio-index]:not([data-amplitude-collection-key])"),r(Q,"audioHoursTimeElementQuery",".amplitude-current-hours[data-amplitude-audio-index]:not([data-amplitude-collection-key])"),r(Q,"audioMinutesTimeElementQuery",".amplitude-current-minutes[data-amplitude-audio-index]:not([data-amplitude-collection-key])"),r(Q,"audioSecondsTimeElementQuery",".amplitude-current-seconds[data-amplitude-audio-index]:not([data-amplitude-collection-key])");const Se=class{constructor(e){i(this,Pn);i(this,Qn);i(this,zn);i(this,Un);i(this,w,void 0);u(this,w,e)}sync(){t(this,Pn,gu).call(this),t(this,Qn,Eu).call(this),t(this,zn,Au).call(this),t(this,Un,bu).call(this)}};let z=Se;w=new WeakMap,Pn=new WeakSet,gu=function(){let e=o.getTimeFormat(),l=o.getActiveCollection(),a=o.getActiveAudioIndex(),s=document.querySelectorAll(Se.collectionAudioFormattedTimeElementQuery),d=e.replace("HH",c(this,w).hours).replace("MM",c(this,w).minutes).replace("SS",c(this,w).seconds);s.forEach(f=>{let fe=f.getAttribute("data-amplitude-collection-key"),rs=f.getAttribute("data-amplitude-audio-index");l==fe&&a==rs?f.innerHTML=d:f.innerHTML="00:00"})},Qn=new WeakSet,Eu=function(){let e=document.querySelectorAll(Se.collectionAudioHoursTimeElementQuery),l=o.getActiveCollection(),a=o.getActiveAudioIndex();e.forEach(s=>{let d=s.getAttribute("data-amplitude-collection-key"),f=s.getAttribute("data-amplitude-audio-index");l==d&&a==f?s.innerHTML=c(this,w).hours:s.innerHTML="00"})},zn=new WeakSet,Au=function(){let e=document.querySelectorAll(Se.collectionAudioMinutesTimeElementQuery),l=o.getActiveCollection(),a=o.getActiveAudioIndex();e.forEach(s=>{let d=s.getAttribute("data-amplitude-collection-key"),f=s.getAttribute("data-amplitude-audio-index");l==d&&a==f?s.innerHTML=c(this,w).minutes:s.innerHTML="00"})},Un=new WeakSet,bu=function(){let e=document.querySelectorAll(Se.collectionAudioSecondsTimeElementQuery),l=o.getActiveCollection(),a=o.getActiveAudioIndex();e.forEach(s=>{let d=s.getAttribute("data-amplitude-collection-key"),f=s.getAttribute("data-amplitude-audio-index");l==d&&a==f?s.innerHTML=c(this,w).seconds:s.innerHTML="00"})},r(z,"collectionAudioFormattedTimeElementQuery",".amplitude-current-time[data-amplitude-collection-key][data-amplitude-audio-index]"),r(z,"collectionAudioHoursTimeElementQuery",".amplitude-current-hours[data-amplitude-collection-key][data-amplitude-audio-index]"),r(z,"collectionAudioMinutesTimeElementQuery",".amplitude-current-minutes[data-amplitude-collection-key][data-amplitude-audio-index]"),r(z,"collectionAudioSecondsTimeElementQuery",".amplitude-current-seconds[data-amplitude-collection-key][data-amplitude-audio-index]");class Wr{syncCurrentTime(e){new _(e).sync(),new P(e).sync(),new Q(e).sync(),new z(e).sync()}syncDurationTime(){}resetDurationTime(){}}const Dn=class{constructor(){i(this,qn);i(this,Nn);i(this,j);i(this,at,void 0);i(this,ot,void 0);u(this,ot,o.isIE())}initialize(){t(this,qn,ku).call(this),t(this,Nn,xu).call(this)}static syncUI(e){document.querySelectorAll(Dn.globalTrackerQuery).forEach(a=>{a.value=e})}};let _e=Dn;at=new WeakMap,ot=new WeakMap,qn=new WeakSet,ku=function(){u(this,at,document.querySelectorAll(Dn.globalTrackerQuery))},Nn=new WeakSet,xu=function(){c(this,at).forEach(e=>{c(this,ot)?(e.removeEventListener("change",t(this,j,ri)),e.addEventListener("change",t(this,j,ri).bind(this,e))):(e.removeEventListener("input",t(this,j,ri)),e.addEventListener("input",t(this,j,ri).bind(this,e)))})},j=new WeakSet,ri=function(e){if(!o.isLive()){let l=e.value,a=Ce.percentageInSeconds(l);new p().setCurrentTime(a)}},r(_e,"globalTrackerQuery",'input[type="range"].amplitude-audio-tracker:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])');const Fn=class{constructor(){i(this,Hn);i(this,Vn);i(this,O);i(this,st,void 0);i(this,ct,void 0);u(this,ct,o.isIE())}initialize(){t(this,Hn,Lu).call(this),t(this,Vn,Iu).call(this)}static syncUI(e){let l=document.querySelectorAll(Fn.collectionTrackerQuery),a=o.getActiveCollection();l.forEach(s=>{let d=s.getAttribute("data-amplitude-collection-key");a==d?s.value=e:s.value=0})}};let Pe=Fn;st=new WeakMap,ct=new WeakMap,Hn=new WeakSet,Lu=function(){u(this,st,document.querySelectorAll(Fn.collectionTrackerQuery))},Vn=new WeakSet,Iu=function(){c(this,st).forEach(e=>{c(this,ct)?(e.removeEventListener("change",t(this,O,hi)),e.addEventListener("change",t(this,O,hi).bind(this,e))):(e.removeEventListener("input",t(this,O,hi)),e.addEventListener("input",t(this,O,hi).bind(this,e)))})},O=new WeakSet,hi=function(e){if(!o.isLive()){let l=o.getActiveCollection(),a=e.getAttribute("data-amplitude-collection-key");if(l==a){let s=e.value,d=Ce.percentageInSeconds(s);new p().setCurrentTime(d)}}},r(Pe,"collectionTrackerQuery",'input[type="range"].amplitude-audio-tracker[data-amplitude-collection-key]:not([data-amplitude-audio-index])');const Bn=class{constructor(){i(this,jn);i(this,On);i(this,B);i(this,ut,void 0);i(this,dt,void 0);u(this,dt,o.isIE())}initialize(){t(this,jn,Su).call(this),t(this,On,Tu).call(this)}static syncUI(e){let l=document.querySelectorAll(Bn.audioTrackerQuery),a=o.getActiveAudioIndex();l.forEach(s=>{let d=s.getAttribute("data-amplitude-audio-index");a==d?s.value=e:s.value=0})}};let Qe=Bn;ut=new WeakMap,dt=new WeakMap,jn=new WeakSet,Su=function(){u(this,ut,document.querySelectorAll(Bn.audioTrackerQuery))},On=new WeakSet,Tu=function(){c(this,ut).forEach(e=>{c(this,dt)?(e.removeEventListener("change",t(this,B,mi)),e.addEventListener("change",t(this,B,mi).bind(this,e))):(e.removeEventListener("input",t(this,B,mi)),e.addEventListener("input",t(this,B,mi).bind(this,e)))})},B=new WeakSet,mi=function(e){if(!o.isLive()){let l=o.getActiveAudioIndex(),a=e.getAttribute("data-amplitude-audio-index");if(l==a){let s=e.value,d=Ce.percentageInSeconds(s);new p().setCurrentTime(d)}}},r(Qe,"audioTrackerQuery",'input[type="range"].amplitude-audio-tracker[data-amplitude-audio-index]:not([data-amplitude-collection-key])');const Rn=class{constructor(){i(this,Kn);i(this,Yn);i(this,K);i(this,rt,void 0);i(this,ht,void 0);u(this,ht,o.isIE())}initialize(){t(this,Kn,wu).call(this),t(this,Yn,Mu).call(this)}static syncUI(e){let l=document.querySelectorAll(Rn.collectionAudioTrackerQuery),a=o.getActiveCollection(),s=o.getActiveAudioIndex();l.forEach(d=>{let f=d.getAttribute("data-amplitude-collection-key"),fe=d.getAttribute("data-amplitude-audio-index");a==f&&s==fe?d.value=e:d.value=0})}};let ze=Rn;rt=new WeakMap,ht=new WeakMap,Kn=new WeakSet,wu=function(){u(this,rt,document.querySelectorAll(Rn.collectionAudioTrackerQuery))},Yn=new WeakSet,Mu=function(){c(this,rt).forEach(e=>{c(this,ht)?(e.removeEventListener("change",t(this,K,pi)),e.addEventListener("change",t(this,K,pi).bind(this,e))):(e.removeEventListener("input",t(this,K,pi)),e.addEventListener("input",t(this,K,pi).bind(this,e)))})},K=new WeakSet,pi=function(e){if(!o.isLive()){let l=o.getActiveCollection(),a=e.getAttribute("data-amplitude-collection-key"),s=o.getActiveAudioIndex(),d=e.getAttribute("data-amplitude-audio-index");if(l==a&&s==d){let f=e.value,fe=Ce.percentageInSeconds(f);new p().setCurrentTime(fe)}}},r(ze,"collectionAudioTrackerQuery",'input[type="range"].amplitude-audio-tracker[data-amplitude-collection-key][data-amplitude-audio-index]');class Js{constructor(){i(this,$n);i(this,Wn);i(this,Jn);i(this,Xn)}setUp(){t(this,$n,Cu).call(this),t(this,Wn,_u).call(this),t(this,Jn,Pu).call(this),t(this,Xn,Qu).call(this)}static syncCurrentTime(e){_e.syncUI(e),Pe.syncUI(e),Qe.syncUI(e),ze.syncUI(e)}}$n=new WeakSet,Cu=function(){new _e().initialize()},Wn=new WeakSet,_u=function(){new Pe().initialize()},Jn=new WeakSet,Pu=function(){new Qe().initialize()},Xn=new WeakSet,Qu=function(){new ze().initialize()};class Jr{constructor(){i(this,Zn);i(this,Gn);i(this,Y);i(this,ea);i(this,ta)}bind(){t(this,Zn,zu).call(this),t(this,Gn,Uu).call(this)}}Zn=new WeakSet,zu=function(){n.audio_element.removeEventListener("timeupdate",t(this,Y,fi).bind(this)),n.audio_element.addEventListener("timeupdate",t(this,Y,fi).bind(this))},Gn=new WeakSet,Uu=function(){n.audio_element.removeEventListener("durationchange",t(this,Y,fi).bind(this)),n.audio_element.addEventListener("durationchange",t(this,Y,fi).bind(this))},Y=new WeakSet,fi=function(){o.updateBufferedTime(),Rr.syncAll(),t(this,ea,qu).call(this),t(this,ta,Nu).call(this)},ea=new WeakSet,qu=function(){if(!o.isLive()){let e=new Ce,l=e.computeCurrentTimes(),a=e.computeAudioCompletionPercentage(),s=e.computeAudioDuration(),d=new Wr;d.syncCurrentTime(l),d.syncDurationTime(l,s),Js.syncCurrentTime(a),$r.syncCurrentTime(a)}},ta=new WeakSet,Nu=function(){};class Xr{constructor(){i(this,ia);i(this,la);i(this,na);i(this,aa);i(this,bs);i(this,oa)}initializeAllEvents(){g.writeMessage("Starting initialization of event handlers..."),t(this,ia,Du).call(this),t(this,la,Hu).call(this),t(this,na,Vu).call(this),t(this,aa,Fu).call(this),t(this,oa,ju).call(this)}}ia=new WeakSet,Du=function(){document.addEventListener("touchmove",()=>{n.is_touch_moving=!0}),document.addEventListener("touchend",()=>{n.is_touch_moving||(n.is_touch_moving=!1)})},la=new WeakSet,Hu=function(){new Jr().bind()},na=new WeakSet,Vu=function(){new Kr().bind()},aa=new WeakSet,Fu=function(){new Br().bind()},bs=new WeakSet,Eh=function(){new ProgressEvent().bind()},oa=new WeakSet,ju=function(){};const ks=class{constructor(){i(this,sa);i(this,ca);i(this,R);i(this,mt,void 0);i(this,pt,void 0);u(this,pt,o.isMobile())}initialize(){t(this,sa,Ou).call(this),t(this,ca,Bu).call(this)}};let Ki=ks;mt=new WeakMap,pt=new WeakMap,sa=new WeakSet,Ou=function(){u(this,mt,document.querySelectorAll(ks.collectionNextQuery))},ca=new WeakSet,Bu=function(){c(this,mt).forEach(e=>{c(this,pt)?(e.removeEventListener("touchend",t(this,R,yi)),e.addEventListener("touchend",t(this,R,yi))):(e.removeEventListener("click",t(this,R,yi)),e.addEventListener("click",t(this,R,yi)))})},R=new WeakSet,yi=function(){let e=this.getAttribute("data-amplitude-collection-key");e==n.active_collection?new A().next(e):g.writeMessage("You can not go to the next audio on a playlist that is not being played!")},r(Ki,"collectionNextQuery",".amplitude-next[data-amplitude-collection-key]");const xs=class{constructor(){i(this,ua);i(this,da);i(this,$);i(this,ft,void 0);i(this,yt,void 0);u(this,yt,o.isMobile())}initialize(){t(this,ua,Ku).call(this),t(this,da,Yu).call(this)}};let Yi=xs;ft=new WeakMap,yt=new WeakMap,ua=new WeakSet,Ku=function(){u(this,ft,document.querySelectorAll(xs.globalNextQuery))},da=new WeakSet,Yu=function(){c(this,ft).forEach(e=>{c(this,yt)?(e.removeEventListener("touchend",t(this,$,vi)),e.addEventListener("touchend",t(this,$,vi))):(e.removeEventListener("click",t(this,$,vi)),e.addEventListener("click",t(this,$,vi)))})},$=new WeakSet,vi=function(){o.getScope()=="collection"?new A().next():g.writeMessage("You can only navigate next when you are playing a collection.")},r(Yi,"globalNextQuery",".amplitude-next:not([data-amplitude-collection-key])");class Zr{constructor(){i(this,ra);i(this,ha)}setUp(){t(this,ra,Ru).call(this),t(this,ha,$u).call(this)}}ra=new WeakSet,Ru=function(){new Yi().initialize()},ha=new WeakSet,$u=function(){new Ki().initialize()};const Et=class{constructor(){i(this,ma);i(this,pa);i(this,W);i(this,vt,void 0);i(this,gt,void 0);u(this,gt,o.isIE())}setUp(){t(this,ma,Wu).call(this),t(this,pa,Ju).call(this)}static syncElements(){document.querySelectorAll(Et.volumeSliderElementQuery).forEach(function(l){l.value=o.getVolume()})}};let U=Et;vt=new WeakMap,gt=new WeakMap,ma=new WeakSet,Wu=function(){u(this,vt,document.querySelectorAll(Et.volumeSliderElementQuery))},pa=new WeakSet,Ju=function(){o.isIos()?Debug.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"):c(this,vt).forEach(e=>{c(this,gt)?(e.removeEventListener("change",t(this,W,gi)),e.addEventListener("change",t(this,W,gi))):(e.removeEventListener("input",t(this,W,gi)),e.addEventListener("input",t(this,W,gi)))})},W=new WeakSet,gi=function(){new p().setVolume(this.value),M.syncElements(),Et.syncElements()},r(U,"volumeSliderElementQuery",'input[type="range"].amplitude-volume-slider');const kt=class{constructor(){i(this,fa);i(this,ya);i(this,J);i(this,At,void 0);i(this,bt,void 0);u(this,bt,o.isMobile())}setUp(){t(this,fa,Xu).call(this),t(this,ya,Zu).call(this)}static syncElements(){document.querySelectorAll(kt.muteElementQuery).forEach(function(l){o.getVolume()==0?(l.classList.remove("amplitude-not-muted"),l.classList.add("amplitude-muted")):(l.classList.add("amplitude-not-muted"),l.classList.remove("amplitude-muted"))})}};let M=kt;At=new WeakMap,bt=new WeakMap,fa=new WeakSet,Xu=function(){u(this,At,document.querySelectorAll(kt.muteElementQuery))},ya=new WeakSet,Zu=function(){o.isIos()?g.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"):c(this,At).forEach(e=>{c(this,bt)?(e.removeEventListener("touchend",t(this,J,Ei)),e.addEventListener("touchend",t(this,J,Ei))):(e.removeEventListener("click",t(this,J,Ei)),e.addEventListener("click",t(this,J,Ei)))})},J=new WeakSet,Ei=function(){if(!o.isTouchMoving()){let e=new p;o.getVolume()==0?e.setVolume(o.getPreMuteVolume()):(o.setPreMuteVolume(),e.setVolume(0)),kt.syncElements(),U.syncElements()}},r(M,"muteElementQuery",".amplitude-mute");const Ls=class{constructor(){i(this,va);i(this,ga);i(this,X);i(this,xt,void 0);i(this,Lt,void 0);u(this,Lt,o.isMobile())}initialize(){t(this,va,Gu).call(this),t(this,ga,ed).call(this)}};let Ri=Ls;xt=new WeakMap,Lt=new WeakMap,va=new WeakSet,Gu=function(){u(this,xt,document.querySelectorAll(Ls.globalPauseQuery))},ga=new WeakSet,ed=function(){c(this,xt).forEach(e=>{c(this,Lt)?(e.removeEventListener("touchend",t(this,X,Ai)),e.addEventListener("touchend",t(this,X,Ai))):(e.removeEventListener("click",t(this,X,Ai)),e.addEventListener("click",t(this,X,Ai)))})},X=new WeakSet,Ai=function(){o.isTouchMoving()||(new p().pause(),m.syncAll())},r(Ri,"globalPauseQuery",".amplitude-pause:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])");const Is=class{constructor(){i(this,Ea);i(this,Aa);i(this,Z);i(this,It,void 0);i(this,St,void 0);u(this,St,o.isMobile())}initialize(){t(this,Ea,td).call(this),t(this,Aa,id).call(this)}};let $i=Is;It=new WeakMap,St=new WeakMap,Ea=new WeakSet,td=function(){u(this,It,document.querySelectorAll(Is.collectionPauseQuery))},Aa=new WeakSet,id=function(){c(this,It).forEach(e=>{c(this,St)?(e.removeEventListener("touchend",t(this,Z,bi)),e.addEventListener("touchend",t(this,Z,bi))):(e.removeEventListener("click",t(this,Z,bi)),e.addEventListener("click",t(this,Z,bi)))})},Z=new WeakSet,bi=function(){if(!o.isTouchMoving()){let e=this.getAttribute("data-amplitude-collection-key");config.active_collection==e&&(new p().pause(),m.syncAll())}},r($i,"collectionPauseQuery",".amplitude-pause[data-amplitude-collection-key]:not([data-amplitude-audio-index])");const Ss=class{constructor(){i(this,ba);i(this,ka);i(this,G);i(this,Tt,void 0);i(this,wt,void 0);u(this,wt,o.isMobile())}initialize(){t(this,ba,ld).call(this),t(this,ka,nd).call(this)}};let Wi=Ss;Tt=new WeakMap,wt=new WeakMap,ba=new WeakSet,ld=function(){u(this,Tt,document.querySelectorAll(Ss.audioPauseQuery))},ka=new WeakSet,nd=function(){c(this,Tt).forEach(e=>{c(this,wt)?(e.removeEventListener("touchend",t(this,G,ki)),e.addEventListener("touchend",t(this,G,ki))):(e.removeEventListener("click",t(this,G,ki)),e.addEventListener("click",t(this,G,ki)))})},G=new WeakSet,ki=function(){if(!o.isTouchMoving()){let e=this.getAttribute("data-amplitude-audio-index");o.getScope()=="audio"&&n.active_index==e&&(new p().pause(),m.syncAll())}},r(Wi,"audioPauseQuery",".amplitude-pause[data-amplitude-audio-index]:not([data-amplitude-collection-key])");const Ts=class{constructor(){i(this,xa);i(this,La);i(this,ee);i(this,Mt,void 0);i(this,Ct,void 0);u(this,Ct,o.isMobile())}initialize(){t(this,xa,ad).call(this),t(this,La,od).call(this)}};let Ji=Ts;Mt=new WeakMap,Ct=new WeakMap,xa=new WeakSet,ad=function(){u(this,Mt,document.querySelectorAll(Ts.collectionAudioPauseQuery))},La=new WeakSet,od=function(){c(this,Mt).forEach(e=>{c(this,Ct)?(e.removeEventListener("touchend",t(this,ee,xi)),e.addEventListener("touchend",t(this,ee,xi).bind(this,e))):(e.removeEventListener("click",t(this,ee,xi)),e.addEventListener("click",t(this,ee,xi).bind(this,e)))})},ee=new WeakSet,xi=function(){if(!o.isTouchMoving()){let e=element.getAttribute("data-amplitude-collection-key"),l=element.getAttribute("data-amplitude-audio-index");n.active_collection==e&&n.collections[e].active_index==l&&(new p().pause(),m.syncAll())}},r(Ji,"collectionAudioPauseQuery",".amplitude-pause[data-amplitude-collection-key][data-amplitude-audio-index]");class Gr{constructor(){i(this,Ia);i(this,Sa);i(this,Ta);i(this,wa)}setUp(){t(this,Ia,sd).call(this),t(this,Sa,cd).call(this),t(this,Ta,ud).call(this),t(this,wa,dd).call(this)}}Ia=new WeakSet,sd=function(){new Ri().initialize()},Sa=new WeakSet,cd=function(){new $i().initialize()},Ta=new WeakSet,ud=function(){new Wi().initialize()},wa=new WeakSet,dd=function(){new Ji().initialize()};const ws=class{constructor(){i(this,Ma);i(this,Ca);i(this,te);i(this,_t,void 0);i(this,Pt,void 0);u(this,Pt,o.isMobile())}initialize(){t(this,Ma,rd).call(this),t(this,Ca,hd).call(this)}};let Xi=ws;_t=new WeakMap,Pt=new WeakMap,Ma=new WeakSet,rd=function(){u(this,_t,document.querySelectorAll(ws.globalPlayQuery))},Ca=new WeakSet,hd=function(){c(this,_t).forEach(e=>{c(this,Pt)?(e.removeEventListener("touchend",t(this,te,Li)),e.addEventListener("touchend",t(this,te,Li))):(e.removeEventListener("click",t(this,te,Li)),e.addEventListener("click",t(this,te,Li)))})},te=new WeakSet,Li=function(){new p().play(),m.syncAll()},r(Xi,"globalPlayQuery",".amplitude-play:not([data-amplitude-audio-index]):not([data-amplitude-collection-index])");const Ms=class{constructor(){i(this,_a);i(this,Pa);i(this,ie);i(this,Qa);i(this,za);i(this,Qt,void 0);i(this,zt,void 0);u(this,zt,o.isMobile())}initialize(){t(this,_a,md).call(this),t(this,Pa,pd).call(this)}};let Zi=Ms;Qt=new WeakMap,zt=new WeakMap,_a=new WeakSet,md=function(){u(this,Qt,document.querySelectorAll(Ms.collectionPlayQuery))},Pa=new WeakSet,pd=function(){c(this,Qt).forEach(e=>{c(this,zt)?(e.removeEventListener("touchend",t(this,ie,Ii)),e.addEventListener("touchend",t(this,ie,Ii))):(e.removeEventListener("click",t(this,ie,Ii)),e.addEventListener("click",t(this,ie,Ii)))})},ie=new WeakSet,Ii=function(){if(!o.isTouchMoving()){let e=this.getAttribute("data-amplitude-collection-key");if(!k.collectionExists(e))return g.writeMessage('Collection with key "'+e+'" does not exist! Please define this collection in your configuration.'),!1;t(this,Qa,fd).call(this,e),t(this,za,yd).call(this),m.syncAll()}},Qa=new WeakSet,fd=function(e){if(k.collectionChanged(e)){let l=new A;l.setActiveCollection(e),k.isCollectionShuffled(e)?l.changeAudioCollection(e,n.collections[e].shuffle_list[0],0,!0):l.changeAudioCollection(e,n.collections[e].audio[0],0)}},za=new WeakSet,yd=function(){new p().play()},r(Zi,"collectionPlayQuery",".amplitude-play[data-amplitude-collection-key]:not([data-amplitude-audio-index])");const Cs=class{constructor(){i(this,Ua);i(this,qa);i(this,le);i(this,Na);i(this,Da);i(this,Ha);i(this,Ut,void 0);i(this,qt,void 0);u(this,qt,o.isMobile())}initialize(){t(this,Ua,vd).call(this),t(this,qa,gd).call(this)}};let Gi=Cs;Ut=new WeakMap,qt=new WeakMap,Ua=new WeakSet,vd=function(){u(this,Ut,document.querySelectorAll(Cs.audioPlayQuery))},qa=new WeakSet,gd=function(){c(this,Ut).forEach(e=>{c(this,qt)?(e.removeEventListener("touchend",t(this,le,Si)),e.addEventListener("touchend",t(this,le,Si).bind(this,e))):(e.removeEventListener("click",t(this,le,Si)),e.addEventListener("click",t(this,le,Si).bind(this,e)))})},le=new WeakSet,Si=function(e){if(!o.isTouchMoving()){let l=e.getAttribute("data-amplitude-audio-index");if(!ge.audioExists(l))return g.writeMessage('Audio with index "'+l+'" does not exist! Please add an audio object at this index in your configuration.'),!1;t(this,Na,Ed).call(this,l),t(this,Da,Ad).call(this,l),t(this,Ha,bd).call(this),m.syncAll()}},Na=new WeakSet,Ed=function(e){if(k.collectionChanged(null)){let l=new A,a=new Ee;l.setActiveCollection(null),a.changeAudio(n.audio[e],e,!0)}},Da=new WeakSet,Ad=function(e){ge.audioChanged(e)&&new Ee().changeAudio(n.audio[e],e,!0)},Ha=new WeakSet,bd=function(){new p().play()},r(Gi,"audioPlayQuery",".amplitude-play[data-amplitude-audio-index]:not([data-amplitude-collection-key])");const _s=class{constructor(){i(this,Va);i(this,Fa);i(this,ne);i(this,ja);i(this,Oa);i(this,Ba);i(this,Nt,void 0);i(this,Dt,void 0);u(this,Dt,o.isMobile())}initialize(){t(this,Va,kd).call(this),t(this,Fa,xd).call(this)}};let el=_s;Nt=new WeakMap,Dt=new WeakMap,Va=new WeakSet,kd=function(){u(this,Nt,document.querySelectorAll(_s.collectionAudioPlayQuery))},Fa=new WeakSet,xd=function(){c(this,Nt).forEach(e=>{c(this,Dt)?(e.removeEventListener("touchend",t(this,ne,Ti)),e.addEventListener("touchend",t(this,ne,Ti))):(e.removeEventListener("click",t(this,ne,Ti)),e.addEventListener("click",t(this,ne,Ti)))})},ne=new WeakSet,Ti=function(){if(!o.isTouchMoving()){let e=this.getAttribute("data-amplitude-collection-key"),l=this.getAttribute("data-amplitude-audio-index");t(this,ja,Ld).call(this,e,l),t(this,Oa,Id).call(this,e,l),t(this,Ba,Sd).call(this),m.syncAll()}},ja=new WeakSet,Ld=function(e,l){if(k.collectionChanged(e)){let a=new A;a.setActiveCollection(e),a.changeAudioCollection(e,n.collections[e].audio[l],l,!0)}},Oa=new WeakSet,Id=function(e,l){ge.audioChanged(l,e)&&new A().changeAudioCollection(e,n.collections[e].audio[l],l,!0)},Ba=new WeakSet,Sd=function(){new p().play()},r(el,"collectionAudioPlayQuery",".amplitude-play[data-amplitude-audio-index][data-amplitude-collection-key]");class eh{constructor(){i(this,Ka);i(this,Ya);i(this,Ra);i(this,$a)}setUp(){t(this,Ka,Td).call(this),t(this,Ya,wd).call(this),t(this,Ra,Md).call(this),t(this,$a,Cd).call(this)}}Ka=new WeakSet,Td=function(){new Xi().initialize()},Ya=new WeakSet,wd=function(){new Zi().initialize()},Ra=new WeakSet,Md=function(){new Gi().initialize()},$a=new WeakSet,Cd=function(){new el().initialize()};const Ft=class{constructor(){i(this,Wa);i(this,Ja);i(this,ae);i(this,Ht,void 0);i(this,Vt,void 0);u(this,Vt,o.isMobile())}setUp(){t(this,Wa,_d).call(this),t(this,Ja,Pd).call(this)}static syncElements(){document.querySelectorAll(Ft.playbackSpeedElementQuery).forEach(function(l){switch(l.classList.remove("amplitude-playback-speed-10"),l.classList.remove("amplitude-playback-speed-15"),l.classList.remove("amplitude-playback-speed-20"),o.getPlaybackSpeed()){case 1:l.classList.add("amplitude-playback-speed-10");break;case 1.5:l.classList.add("amplitude-playback-speed-15");break;case 2:l.classList.add("amplitude-playback-speed-20");break}})}};let Ue=Ft;Ht=new WeakMap,Vt=new WeakMap,Wa=new WeakSet,_d=function(){u(this,Ht,document.querySelectorAll(Ft.playbackSpeedElementQuery))},Ja=new WeakSet,Pd=function(){c(this,Ht).forEach(e=>{c(this,Vt)?(e.removeEventListener("touchend",t(this,ae,wi)),e.addEventListener("touchend",t(this,ae,wi))):(e.removeEventListener("click",t(this,ae,wi)),e.addEventListener("click",t(this,ae,wi)))})},ae=new WeakSet,wi=function(){if(!o.isTouchMoving()){let e=new p;switch(o.getPlaybackSpeed()){case 1:e.setPlaybackSpeed(1.5);break;case 1.5:e.setPlaybackSpeed(2);break;case 2:e.setPlaybackSpeed(1);break}Ft.syncElements()}},r(Ue,"playbackSpeedElementQuery",".amplitude-playback-speed");const Ps=class{constructor(){i(this,Xa);i(this,Za);i(this,oe);i(this,jt,void 0);i(this,Ot,void 0);u(this,Ot,o.isMobile())}initialize(){t(this,Xa,Qd).call(this),t(this,Za,zd).call(this)}};let tl=Ps;jt=new WeakMap,Ot=new WeakMap,Xa=new WeakSet,Qd=function(){u(this,jt,document.querySelectorAll(Ps.collectionPreviousQuery))},Za=new WeakSet,zd=function(){c(this,jt).forEach(e=>{c(this,Ot)?(e.removeEventListener("touchend",t(this,oe,Mi)),e.addEventListener("touchend",t(this,oe,Mi))):(e.removeEventListener("click",t(this,oe,Mi)),e.addEventListener("click",t(this,oe,Mi)))})},oe=new WeakSet,Mi=function(){o.isTouchMoving()||(this.getAttribute("data-amplitude-collection-key")==config.active_collection?new A().previous():g.writeMessage("You can not go to the previous audio on a playlist that is not being played!"))},r(tl,"collectionPreviousQuery",".amplitude-previous[data-amplitude-collection-key]");const Qs=class{constructor(){i(this,Ga);i(this,eo);i(this,se);i(this,Bt,void 0);i(this,Kt,void 0);u(this,Kt,o.isMobile())}initialize(){t(this,Ga,Ud).call(this),t(this,eo,qd).call(this)}};let il=Qs;Bt=new WeakMap,Kt=new WeakMap,Ga=new WeakSet,Ud=function(){u(this,Bt,document.querySelectorAll(Qs.globalPreviousQuery))},eo=new WeakSet,qd=function(){c(this,Bt).forEach(e=>{c(this,Kt)?(e.removeEventListener("touchend",t(this,se,Ci)),e.addEventListener("touchend",t(this,se,Ci))):(e.removeEventListener("click",t(this,se,Ci)),e.addEventListener("click",t(this,se,Ci)))})},se=new WeakSet,Ci=function(){o.isTouchMoving()||(o.getScope()=="collection"?new A().previous():g.writeMessage("You can only navigate previous when you are playing a collection."))},r(il,"globalPreviousQuery",".amplitude-previous:not([data-amplitude-collection-key])");class th{constructor(){i(this,to);i(this,io)}setUp(){t(this,to,Nd).call(this),t(this,io,Dd).call(this)}}to=new WeakSet,Nd=function(){new il().initialize()},io=new WeakSet,Dd=function(){new tl().initialize()};class Xs{constructor(e){i(this,no);i(this,ao);i(this,lo,void 0);u(this,lo,e)}toggleShuffle(e){if(o.isCollectionShuffled(e))o.setCollectionShuffled(e,!1,[]);else{let a=t(this,no,Hd).call(this,e);o.setCollectionShuffled(e,!0,a)}}}lo=new WeakMap,no=new WeakSet,Hd=function(e){let l=o.getCollectionAudio(e),a=new Array(l.length);l.forEach((s,d)=>{a[d]=s[d]});for(let s=l.length-1;s>0;s--){let d=Math.floor(Math.random()*l.length+1);t(this,ao,Vd).call(this,a,s,d-1)}return a},ao=new WeakSet,Vd=function(e,l,a){let s=e[l];e[l]=e[a],e[a]=s};const co=class{constructor(){i(this,oo);i(this,so);i(this,ce);i(this,Yt,void 0);i(this,Rt,void 0);u(this,Rt,o.isMobile())}initialize(){t(this,oo,Fd).call(this),t(this,so,jd).call(this)}static syncUI(e){document.querySelectorAll('.amplitude-shuffle[data-amplitude-collection="'+e+'"]').forEach(a=>{o.isCollectionShuffled(e)?(a.classList.add("amplitude-shuffle-on"),a.classList.remove("amplitude-shuffle-off")):(a.classList.add("amplitude-shuffle-off"),a.classList.remove("amplitude-shuffle-on"))})}};let qe=co;Yt=new WeakMap,Rt=new WeakMap,oo=new WeakSet,Fd=function(){u(this,Yt,document.querySelectorAll(co.collectionShuffleQuery))},so=new WeakSet,jd=function(){c(this,Yt).forEach(e=>{c(this,Rt)?(e.removeEventListener("touchend",t(this,ce,_i)),e.addEventListener("touchend",t(this,ce,_i))):(e.removeEventListener("click",t(this,ce,_i)),e.addEventListener("click",t(this,ce,_i)))})},ce=new WeakSet,_i=function(){let e=this.getAttribute("data-amplitude-collection-key");new Xs(e).toggleShuffle(),co.syncUI(e)},r(qe,"collectionShuffleQuery",".amplitude-shuffle[data-amplitude-collection-key]");const Jt=class{constructor(){i(this,uo);i(this,ro);i(this,ue);i(this,$t,void 0);i(this,Wt,void 0);u(this,Wt,o.isMobile())}initialize(){t(this,uo,Od).call(this),t(this,ro,Bd).call(this)}static syncUI(){let e=document.querySelectorAll(Jt.globalShuffleQuery),l=o.getActiveCollection();e.forEach(a=>{o.isCollectionShuffled(l)?(a.classList.add("amplitude-shuffle-on"),a.classList.remove("amplitude-shuffle-off")):(a.classList.add("amplitude-shuffle-off"),a.classList.remove("amplitude-shuffle-on"))})}};let ll=Jt;$t=new WeakMap,Wt=new WeakMap,uo=new WeakSet,Od=function(){u(this,$t,document.querySelectorAll(Jt.globalShuffleQuery))},ro=new WeakSet,Bd=function(){c(this,$t).forEach(e=>{c(this,Wt)?(e.removeEventListener("touchend",t(this,ue,Pi)),e.addEventListener("touchend",t(this,ue,Pi))):(e.removeEventListener("click",t(this,ue,Pi)),e.addEventListener("click",t(this,ue,Pi)))})},ue=new WeakSet,Pi=function(){if(o.getScope()=="collection"){let e=o.getActiveCollection();new Xs(collectionKey).toggleShuffle(),Jt.syncUI(),qe.syncUI(e)}else g.writeMessage("You can only shuffle a collection if you are playing a collection.")},r(ll,"globalShuffleQuery",".amplitude-shuffle:not([data-amplitude-collection-key])");class ih{constructor(){i(this,ho);i(this,mo)}setUp(){t(this,ho,Kd).call(this),t(this,mo,Yd).call(this)}}ho=new WeakSet,Kd=function(){new ll().initialize()},mo=new WeakSet,Yd=function(){new qe().initialize()};const zs=class{constructor(){i(this,po);i(this,fo);i(this,de);i(this,yo);i(this,vo);i(this,go);i(this,Eo);i(this,Xt,void 0);i(this,Zt,void 0);u(this,Zt,o.isMobile())}initialize(){t(this,po,Rd).call(this),t(this,fo,$d).call(this)}};let nl=zs;Xt=new WeakMap,Zt=new WeakMap,po=new WeakSet,Rd=function(){u(this,Xt,document.querySelectorAll(zs.audioSkipToElementQuery))},fo=new WeakSet,$d=function(){c(this,Xt).forEach(e=>{c(this,Zt)?(e.removeEventListener("touchend",t(this,de,Qi)),e.addEventListener("touchend",t(this,de,Qi).bind(this,e))):(e.removeEventListener("click",t(this,de,Qi)),e.addEventListener("click",t(this,de,Qi).bind(this,e)))})},de=new WeakSet,Qi=function(e){if(!o.isTouchMoving()){let l=e.getAttribute("data-amplitude-audio-index"),a=e.getAttribute("data-amplitude-location");t(this,yo,Wd).call(this,l,a)&&(t(this,vo,Jd).call(this,l),t(this,go,Xd).call(this),m.syncAll(),t(this,Eo,Zd).call(this,a))}},yo=new WeakSet,Wd=function(e,l){return e==null?(g.writeMessage("You must add a `data-amplitude-audio-index` attribute to your `amplitude-skip-to` element."),!1):l==null?(g.writeMessage("You must add a `data-amplitude-location` attribute in seconds to your `amplitude-skip-to` element."),!1):!0},vo=new WeakSet,Jd=function(e){new Ee().changeAudio(n.audio[parseInt(e)],parseInt(e),!0)},go=new WeakSet,Xd=function(){new p().play()},Eo=new WeakSet,Zd=function(e){new p().skipToLocation(parseInt(e))},r(nl,"audioSkipToElementQuery",".amplitude-skip-to[data-amplitude-audio-index]:not([data-amplitude-collection-key])");const Us=class{constructor(){i(this,Ao);i(this,bo);i(this,re);i(this,ko);i(this,xo);i(this,Lo);i(this,Io);i(this,So);i(this,Gt,void 0);i(this,ei,void 0);u(this,ei,o.isMobile())}initialize(){t(this,Ao,Gd).call(this),t(this,bo,er).call(this)}};let al=Us;Gt=new WeakMap,ei=new WeakMap,Ao=new WeakSet,Gd=function(){u(this,Gt,document.querySelectorAll(Us.collectionAudioSkipToElementQuery))},bo=new WeakSet,er=function(){c(this,Gt).forEach(e=>{c(this,ei)?(e.removeEventListener("touchend",t(this,re,zi)),e.addEventListener("touchend",t(this,re,zi).bind(this,e))):(e.removeEventListener("click",t(this,re,zi)),e.addEventListener("click",t(this,re,zi).bind(this,e)))})},re=new WeakSet,zi=function(e){if(!o.isTouchMoving()){let l=e.getAttribute("data-amplitude-audio-index"),a=e.getAttribute("data-amplitude-collection-key"),s=e.getAttribute("data-amplitude-location");t(this,ko,tr).call(this,l,a,s)&&(t(this,xo,ir).call(this,a),t(this,Lo,lr).call(this,l,a),t(this,Io,nr).call(this),m.syncAll(),t(this,So,ar).call(this,s))}},ko=new WeakSet,tr=function(e,l,a){return e==null?(Debug.writeMessage("You must add a `data-amplitude-audio-index` attribute to your `amplitude-skip-to` element."),!1):l==null?(Debug.writeMessage("You must add a valid `data-amplitude-collection-key` attribute to your `amplitude-skip-to` element."),!1):a==null?(Debug.writeMessage("You must add a `data-amplitude-location` attribute in seconds to your `amplitude-skip-to` element."),!1):!0},xo=new WeakSet,ir=function(e){k.collectionChanged(e)&&new A().setActiveCollection(e)},Lo=new WeakSet,lr=function(e,l){new A().changeAudioCollection(l,config.collections[l].audio[parseInt(e)],parseInt(e),!0)},Io=new WeakSet,nr=function(){new p().play()},So=new WeakSet,ar=function(e){new p().skipToLocation(parseInt(e))},r(al,"collectionAudioSkipToElementQuery",".amplitude-skip-to[data-amplitude-audio-index][data-amplitude-collection-key]");class lh{constructor(){i(this,To);i(this,wo)}setUp(){t(this,To,or).call(this),t(this,wo,sr).call(this)}}To=new WeakSet,or=function(){new nl().initialize()},wo=new WeakSet,sr=function(){new al().initialize()};const qs=class{constructor(){i(this,Mo);i(this,Co);i(this,he);i(this,ti,void 0);i(this,ii,void 0);u(this,ii,o.isMobile())}setUp(){t(this,Mo,cr).call(this),t(this,Co,ur).call(this)}};let ol=qs;ti=new WeakMap,ii=new WeakMap,Mo=new WeakSet,cr=function(){u(this,ti,document.querySelectorAll(qs.stopElementQuery))},Co=new WeakSet,ur=function(){c(this,ti).forEach(e=>{c(this,ii)?(e.removeEventListener("touchend",t(this,he,Ui)),e.addEventListener("touchend",t(this,he,Ui))):(e.removeEventListener("click",t(this,he,Ui)),e.addEventListener("click",t(this,he,Ui)))})},he=new WeakSet,Ui=function(){o.isTouchMoving()||(new p().stop(),m.syncAll())},r(ol,"stopElementQuery",".amplitude-stop");const Ns=class{constructor(){i(this,_o);i(this,Po);i(this,me);i(this,Te,void 0);i(this,li,void 0);u(this,li,o.isMobile())}setUp(){t(this,_o,dr).call(this),t(this,Po,rr).call(this)}};let sl=Ns;Te=new WeakMap,li=new WeakMap,_o=new WeakSet,dr=function(){u(this,Te,document.querySelectorAll(Ns.volumeDownElementQuery))},Po=new WeakSet,rr=function(){c(this,Te).length>0&&o.isIos()?g.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"):c(this,Te).forEach(e=>{c(this,li)?(e.removeEventListener("touchend",t(this,me,qi)),e.addEventListener("touchend",t(this,me,qi))):(e.removeEventListener("click",t(this,me,qi)),e.addEventListener("click",t(this,me,qi)))})},me=new WeakSet,qi=function(){if(!o.isTouchMoving()){let e=new p,l=o.getVolume(),a=o.getVolumeDecrement();l-a>0?e.setVolume(l-a):e.setVolume(0),M.syncElements(),U.syncElements()}},r(sl,"volumeDownElementQuery",".amplitude-volume-down");const Ds=class{constructor(){i(this,Qo);i(this,zo);i(this,pe);i(this,we,void 0);i(this,ni,void 0);u(this,ni,o.isMobile())}setUp(){t(this,Qo,hr).call(this),t(this,zo,mr).call(this)}};let cl=Ds;we=new WeakMap,ni=new WeakMap,Qo=new WeakSet,hr=function(){u(this,we,document.querySelectorAll(Ds.volumeUpElementQuery))},zo=new WeakSet,mr=function(){c(this,we).length>0&&o.isIos()?g.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"):c(this,we).forEach(e=>{c(this,ni)?(e.removeEventListener("touchend",t(this,pe,Ni)),e.addEventListener("touchend",t(this,pe,Ni))):(e.removeEventListener("click",t(this,pe,Ni)),e.addEventListener("click",t(this,pe,Ni)))})},pe=new WeakSet,Ni=function(){if(!o.isTouchMoving()){let e=new p,l=o.getVolume(),a=o.getVolumeIncrement();l+a<=100?e.setVolume(l+a):e.setVolume(100),M.syncElements(),U.syncElements()}},r(cl,"volumeUpElementQuery",".amplitude-volume-up");class nh{constructor(){i(this,Uo);i(this,qo);i(this,No);i(this,Do);i(this,Ho);i(this,Vo);i(this,Fo);i(this,jo);i(this,Oo);i(this,Bo);i(this,Ko);i(this,Yo);i(this,Ro);i(this,$o);i(this,Wo)}setVisualElementsDefaults(){}initializeElements(){t(this,Uo,pr).call(this),t(this,qo,fr).call(this),t(this,No,yr).call(this),t(this,Do,vr).call(this),t(this,Ho,gr).call(this),t(this,Vo,Er).call(this),t(this,Fo,Ar).call(this),t(this,jo,br).call(this),t(this,Oo,kr).call(this),t(this,Bo,xr).call(this),t(this,Ko,Lr).call(this),t(this,Yo,Ir).call(this),t(this,Ro,Sr).call(this),t(this,$o,Tr).call(this),t(this,Wo,wr).call(this)}}Uo=new WeakSet,pr=function(){new x().syncMetaData()},qo=new WeakSet,fr=function(){new eh().setUp()},No=new WeakSet,yr=function(){new Gr().setUp()},Do=new WeakSet,vr=function(){new m().setUp()},Ho=new WeakSet,gr=function(){new Zr().setUp()},Vo=new WeakSet,Er=function(){new th().setUp()},Fo=new WeakSet,Ar=function(){new M().setUp()},jo=new WeakSet,br=function(){new U().setUp()},Oo=new WeakSet,kr=function(){new Ue().setUp()},Bo=new WeakSet,xr=function(){new ol().setUp()},Ko=new WeakSet,Lr=function(){new sl().setUp()},Yo=new WeakSet,Ir=function(){new cl().setUp()},Ro=new WeakSet,Sr=function(){new ih().setUp()},$o=new WeakSet,Tr=function(){new lh().setUp()},Wo=new WeakSet,wr=function(){new Js().setUp()};class ah{constructor(){i(this,Jo);i(this,Xo);i(this,Zo);i(this,Go)}initializeCollections(){n.collections.length>0&&(t(this,Jo,Mr).call(this),t(this,Xo,Cr).call(this),t(this,Zo,_r).call(this),t(this,Go,Pr).call(this))}}Jo=new WeakSet,Mr=function(){},Xo=new WeakSet,Cr=function(){n.collections.forEach(e=>{e.active_index=null})},Zo=new WeakSet,_r=function(){n.collections.forEach(e=>{e.shuffle=!1,e.shuffle_list=[]})},Go=new WeakSet,Pr=function(){n.collections.forEach(e=>{e.repeat=!1}),console.log(n)};class oh{constructor(){i(this,es);i(this,ts)}copyUserSettings(e){this.setAudio(e.audio),this.setCollections(e.collections),this.setVolume(e.volume),this.setDebug(e.debug),this.setDefaultArtwork(e.default_artwork),this.setPlaybackSpeed(e.playback_speed),this.setCallbacks(e.callbacks)}setAudio(e){n.audio=e!=null?e:[],t(this,es,Qr).call(this),t(this,ts,zr).call(this)}setCollections(e){n.collections=e,new ah().initializeCollections()}setVolume(e){n.volume.current=e&&e.initial?e.initial:50,n.volume.increment=e&&e.increment?e.increment:5,n.volume.decrement=e&&e.decrement?e.decrement:5,M.syncElements()}setDebug(e){n.debug=e!=null?e:!1}setDefaultArtwork(e){n.default_artwork=e!=null?e:!1}setPlaybackSpeed(e){n.playback_speed=e!=null?e:1,Ue.syncElements()}setCallbacks(e){n.callbacks=e!=null?e:[]}}es=new WeakSet,Qr=function(){n.audio.forEach((e,l)=>{e.live==null&&(e.live=!1)})},ts=new WeakSet,zr=function(){n.audio.forEach((e,l)=>{e.index=l})};class sh{constructor(e,l){i(this,ls);i(this,ns);i(this,ai);i(this,as);i(this,os);i(this,ss);i(this,cs);i(this,us);i(this,ds);i(this,is,void 0);i(this,C,void 0);i(this,Me,void 0);i(this,Hs,!1);u(this,Me,new o),c(this,Me).setIsMobile(),u(this,C,e),u(this,is,l)}setup(){t(this,ls,Ur).call(this,c(this,C))?t(this,ns,qr).call(this):t(this,ai,Rs).call(this)}}is=new WeakMap,C=new WeakMap,Me=new WeakMap,Hs=new WeakMap,ls=new WeakSet,Ur=function(e){try{new URL(e)}catch{return g.writeMessage("AmplitudeJS must be initialized with a JSON object or a valid URL."),!1}return!0},ns=new WeakSet,qr=function(){fetch(c(this,C)).then(e=>{if(e.status!=200)throw e.status;return e.json()}).then(e=>{u(this,C,e),t(this,ai,Rs).call(this)}).catch(e=>{g.writeMessage(e)})},ai=new WeakSet,Rs=function(){t(this,as,Nr).call(this),t(this,os,Dr).call(this),t(this,cs,Vr).call(this),t(this,ss,Hr).call(this),t(this,us,Fr).call(this),t(this,ds,jr).call(this)},as=new WeakSet,Nr=function(){c(this,Me).resetConfig()},os=new WeakSet,Dr=function(){new oh().copyUserSettings(c(this,C))},ss=new WeakSet,Hr=function(){new Xr().initializeAllEvents()},cs=new WeakSet,Vr=function(){let e=new Ee;n.start_audio||e.changeAudio(n.audio[0],0)},us=new WeakSet,Fr=function(){new nh().initializeElements()},ds=new WeakSet,jr=function(){new b().handleNativeAudioElementEvents()};function ch(h={},e=null){new sh(h,e).setup()}const uh=Object.freeze(Object.defineProperty({__proto__:null,init:ch},Symbol.toStringTag,{value:"Module"}));function dh(){return n}const rh=Object.freeze(Object.defineProperty({__proto__:null,getConfig:dh},Symbol.toStringTag,{value:"Module"}));function hh(){return n.active_playlist}const mh=Object.freeze(Object.defineProperty({__proto__:null,getActivePlaylist:hh},Symbol.toStringTag,{value:"Module"})),ph=["abort","error","loadeddata","loadedmetadata","loadstart","pause","playing","play","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","canplay","canplaythrough","durationchange","ended"];function fh(h,e){ph.indexOf(h)>-1?n.audio_element.addEventListener(h,e):g.writeMessage("Invalid event listener. Please see all valid events here: https://www.w3schools.com/tags/ref_av_dom.asp")}const yh=Object.freeze(Object.defineProperty({__proto__:null,addAudioEventListener:fh},Symbol.toStringTag,{value:"Module"}));return function(){return{...uh,...rh,...mh,...yh}}()}); +//# sourceMappingURL=amplitude.umd.js.map diff --git a/dist/amplitude.umd.js.map b/dist/amplitude.umd.js.map new file mode 100644 index 00000000..b593adc6 --- /dev/null +++ b/dist/amplitude.umd.js.map @@ -0,0 +1 @@ +{"version":3,"file":"amplitude.umd.js","sources":["../src/config.js","../src/services/Debug.js","../src/services/ConfigState.js","../src/services/Callbacks.js","../src/core/Audio.js","../src/elements/PlayPauseElements/GlobalPlayPauseElement.js","../src/services/Collections/Checks.js","../src/elements/PlayPauseElements/CollectionPlayPauseElement.js","../src/services/Audio/Checks.js","../src/elements/MetaDataElement.js","../src/elements/ContainerElements/AudioContainerElement.js","../src/elements/ContainerElements/CollectionAudioContainerElement.js","../src/elements/ContainerElement.js","../src/services/Audio/Navigation.js","../src/elements/PlayPauseElements/AudioPlayPauseElement.js","../src/elements/PlayPauseElements/CollectionAudioPlayPauseElement.js","../src/elements/PlayPauseElement.js","../src/services/Collections/Navigation.js","../src/events/AudioEndedEvent.js","../src/events/KeyBindingEvents.js","../src/elements/BufferedProgressElements/GlobalBufferedProgressElement.js","../src/elements/BufferedProgressElements/CollectionBufferedProgressElement.js","../src/elements/BufferedProgressElements/AudioBufferedProgressElement.js","../src/elements/BufferedProgressElement.js","../src/elements/ProgressElements/GlobalProgressElement.js","../src/elements/ProgressElements/CollectionProgressElement.js","../src/elements/ProgressElements/AudioProgressElement.js","../src/elements/ProgressElements/CollectionAudioProgressElement.js","../src/elements/ProgressElement.js","../src/services/Time.js","../src/elements/TimeElements/CurrentTime/GlobalCurrentTimeElement.js","../src/elements/TimeElements/CurrentTime/CollectionCurrentTimeElement.js","../src/elements/TimeElements/CurrentTime/AudioCurrentTimeElement.js","../src/elements/TimeElements/CurrentTime/CollectionAudioCurrentTimeElement.js","../src/elements/TimeElement.js","../src/elements/TrackerElements/GlobalTrackerElement.js","../src/elements/TrackerElements/CollectionTrackerElement.js","../src/elements/TrackerElements/AudioTrackerElement.js","../src/elements/TrackerElements/CollectionAudioTrackerElement.js","../src/elements/TrackerElement.js","../src/events/TimeUpdateEvent.js","../src/services/EventManager.js","../src/elements/NextElements/CollectionNextElement.js","../src/elements/NextElements/GlobalNextElement.js","../src/elements/NextElement.js","../src/elements/VolumeSliderElement.js","../src/elements/MuteElement.js","../src/elements/PauseElements/GlobalPauseElement.js","../src/elements/PauseElements/CollectionPauseElement.js","../src/elements/PauseElements/AudioPauseElement.js","../src/elements/PauseElements/CollectionAudioPauseElement.js","../src/elements/PauseElement.js","../src/elements/PlayElements/GlobalPlayElement.js","../src/elements/PlayElements/CollectionPlayElement.js","../src/elements/PlayElements/AudioPlayElement.js","../src/elements/PlayElements/CollectionAudioPlayElement.js","../src/elements/PlayElement.js","../src/elements/PlaybackSpeedElement.js","../src/elements/PreviousElements/CollectionPreviousElement.js","../src/elements/PreviousElements/GlobalPreviousElement.js","../src/elements/PreviousElement.js","../src/services/Collections/Shuffle.js","../src/elements/ShuffleElements/CollectionShuffleElement.js","../src/elements/ShuffleElements/GlobalShuffleElement.js","../src/elements/ShuffleElement.js","../src/elements/SkipToElements/AudioSkipToElement.js","../src/elements/SkipToElements/CollectionAudioSkipToElement.js","../src/elements/SkipToElement.js","../src/elements/StopElement.js","../src/elements/VolumeDownElement.js","../src/elements/VolumeUpElement.js","../src/services/ElementsManager.js","../src/init/Collections.js","../src/init/UserConfig.js","../src/init/Initializer.js","../src/methods/init.js","../src/methods/config.js","../src/methods/playlists.js","../src/methods/eventListeners.js","../src/index.js"],"sourcesContent":["/**\n * These variables make Amplitude run. The config is the most important\n * containing active settings and parameters.\n *\n * The config JSON is the global settings for ALL of Amplitude functions.\n * This is global and contains all of the user preferences. The default\n * settings are set, and the user overwrites them when they initialize\n * Amplitude.\n */\nimport version from \"../package.json\";\n\nexport const config = {\n\t// Amplitude State Variables\n\taudio_element: new Audio(),\n\tmobile: false,\n\tversion: version,\n\n\t// Amplitude Dynamic Variables\n\tactive_metadata: {},\n\tactive_album: \"\",\n\tactive_index: 0,\n\n\tactive_podcast: null,\n\tactive_playlist: null,\n\tactive_collection: null,\n\n\tplayback_speed: 1.0,\n\trepeat: false,\n\tshuffle_list: {},\n\t/**\n\t * @todo BREAKING should be repeat_audio\n\t */\n\t// repeat_song: false,\n\trepeat_audio: false,\n\tshuffle_on: false,\n\n\t// User Definable Variables\n\tcallbacks: [],\n\t\n\taudio: [],\n\n\tcollections: [],\n\n\tdebug: true,\n\tdefault_artwork: \"\",\n\tdefault_playlist_art: \"\",\n\n\tstart_audio: \"\",\n\n\tstarting_playlist: \"\",\n\tstarting_playlist_song: \"\",\n\n\tstarting_podcast: \"\",\n\tstarting_podcast_episode: \"\",\n\n\t/**\n\t * @todo BREAKING CHANGE\n\t */\n\tvolume: {\n\t\tcurrent: 50,\n\t\tincrement: 5,\n\t\tdecrement: 5,\n\t\tpre_mute_level: 50\n\t},\n\t// volume: 0.5,\n\n\t// pre_mute_volume: 0.5,\n\n\t// volume_increment: 5,\n\n\t// volume_decrement: 5,\n\n\t/**\n\t * @todo BREAKING CHANGE\n\t */\n\tsoundcloud: {\n\t\tclient: '',\n\t\tuse_art: false,\n\t\taudio_count: 0,\n\t\tready_count: 0\n\t},\n\t// soundcloud_client: \"\",\n\n\t// soundcloud_use_art: false,\n\n\t// soundcloud_song_count: 0,\n\n\t// soundcloud_songs_ready: 0,\n\n\tis_touch_moving: false,\n\n\tbuffered: 0,\n\n\tbindings: {},\n\n\tcontinue_next: true,\n\n\tdelay: 0,\n\n\tplayer_state: \"stopped\",\n\n\ttime_format: 'MM:SS',\n\n\t/**\n\t * @todo BREAKING\n\t */\n\tweb_audio_api:{\n\t\tavailabile: false,\n\t\tcontext: null,\n\t\tsource: null,\n\t\tanalyser: null\n\t},\n\t// web_audio_api_available: false,\n\n\t// context: null,\n\n\t// source: null,\n\n\t// analyser: null,\n\n\tvisualizations: {\n\t\tavailable: [],\n\n\t\tactive: [],\n\n\t\tbackup: \"\"\n\t},\n\t\n\twaveforms: {\n\tsample_rate: 100,\n\n\tbuilt: [],\n\n\t}\n};\n","import { config } from \"@/config.js\";\n\nexport class Debug{\n\tstatic writeMessage( message ){\n\t\tif( config.debug ){\n\t\t\tconsole.log( message );\n\t\t}\n\t}\n}","import { config } from '@/config.js';\n\n\n\nexport class ConfigState{\n\tsetIsMobile(){\n\t\tif ( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ) ) {\n\t\t\tconfig.mobile = true;\n\t\t}else{\n\t\t\tconfig.mobile = false;\n\t\t}\n\t}\n\n\tstatic isIos(){\n\t\treturn /iPhone|iPad|iPod/i.test( navigator.userAgent );\n\t}\n\n\tstatic isIE(){\n\t\tlet ua = window.navigator.userAgent;\n\t\tlet msie = ua.indexOf(\"MSIE \");\n\n\t\treturn ( msie > 0 || !!navigator.userAgent.match(/Trident.*rv\\:11\\./) );\n\t}\n\n\tstatic isMobile(){\n\t\treturn config.mobile;\n\t}\n\n\tstatic isTouchMoving(){\n\t\treturn config.is_touch_moving;\n\t}\n\n\tstatic getAudioState(){\n\t\treturn config.audio_element.paused ? \"paused\" : \"playing\";\n\t}\n\n\tstatic getScope(){\n\t\tif( config.active_collection == '' || config.active_collection == null ){\n\t\t\treturn 'audio';\n\t\t}else{\n\t\t\treturn 'collection';\n\t\t}\n\t}\n\n\tstatic getVolume(){\n\t\treturn config.volume.current;\n\t}\n\n\tstatic getVolumeIncrement(){\n\t\treturn config.volume.increment;\n\t}\n\n\tstatic getVolumeDecrement(){\n\t\treturn config.volume.decrement;\n\t}\n\n\tstatic getPreMuteVolume(){\n\t\treturn config.volume.pre_mute_level;\n\t}\n\n\tstatic setPreMuteVolume( level = null ){\n\t\tif( !level ){\n\t\t\tlevel = config.volume.current;\n\t\t}\n\n\t\tconfig.volume.pre_mute_level = level;\n\t}\n\n\tstatic getPlaybackSpeed(){\n\t\treturn config.playback_speed;\n\t}\n\n\tstatic isCollectionShuffled( collection ){\n\t\tif( config.collections[ collection ] && config.collections[ collection ].shuffled ){\n\t\t\treturn true;\n\t\t}else{ \n\t\t\treturn false;\n\t\t}\n\t}\n\n\tstatic setCollectionShuffled( collection, shuffled, audio ){\n\t\tconfig.collections[ collection ].shuffled = shuffled;\n\t\tconfig.collections[ collection ].audio = audio;\n\t}\n\n\tstatic getCollectionAudio( collection ){\n\t\treturn config.collections[ collection ].audio;\n\t}\n\n\tstatic getActiveCollection(){\n\t\treturn config.active_collection;\n\t}\n\n\tstatic getActiveAudioIndex(){\n\t\treturn config.active_index;\n\t}\n\n\tstatic getContinueNext(){\n\t\treturn config.continue_next;\n\t}\n\n\tstatic updateBufferedTime(){\n\t\t// Help from: http://jsbin.com/badimipi/1/edit?html,js,output\n if( config.audio_element.buffered.length - 1 >= 0 ){\n let bufferedEnd = config.audio_element.buffered.end(\n config.audio_element.buffered.length - 1\n );\n\n let duration = config.audio_element.duration;\n\n config.buffered = ( bufferedEnd / duration ) * 100;\n }\n\t}\n\n\tstatic getBufferedPercentage(){\n\t\treturn parseFloat( config.buffered ) / 100;\n\t}\n\n\tstatic isLive(){\n\t\treturn config.active_metadata.live;\n\t}\n\n\tstatic getTimeFormat(){\n\t\treturn config.time_format;\n\t}\n\n\tstatic getCallback( name ){\n\t\tlet callbackObject = false;\n\n\t\tconfig.callbacks.forEach( function( callback ){\n\t\t\tif( callback.event == name ){\n\t\t\t\tcallbackObject = callback\n\t\t\t}\n\t\t});\n\n\t\treturn callbackObject;\n\t}\n\n\tresetConfig(){\n\t\tconfig.audio_element = new Audio();\n\t\tconfig.active_metadata = {};\n\t\tconfig.active_album = \"\";\n\t\tconfig.active_index = 0;\n\t\tconfig.active_playlist = null;\n\t\tconfig.playback_speed = 1.0;\n\t\tconfig.audio = [];\n\t\tconfig.playlists = {};\n\t\tconfig.start_audio = \"\";\n\t\tconfig.starting_playlist = \"\";\n\t\tconfig.starting_playlist_song = \"\";\n\t\tconfig.repeat = false;\n\t\tconfig.shuffle_list = {};\n\t\tconfig.shuffle_on = false;\n\t\tconfig.default_artwork = \"\";\n\t\tconfig.default_playlist_art = \"\";\n\t\tconfig.debug = true;\n\t\tconfig.callbacks = [];\n\n\t\tconfig.volume = {\n\t\t\tcurrent: 50,\n\t\t\tincrement: 5,\n\t\t\tdecrement: 5,\n\t\t\tpre_mute_level: 50\n\t\t},\n\n\t\tconfig.soundcloud = {\n\t\t\tclient: '',\n\t\t\tuse_art: false,\n\t\t\taudio_count: 0,\n\t\t\tready_count: 0\n\t\t},\n\n\t\t/**\n\t\t * @todo BREAKING CHANGE\n\t\t */\n\t\t// config.soundcloud_client = \"\";\n\t\t// config.soundcloud_use_art = false;\n\t\t// config.soundcloud_song_count = 0;\n\t\t// config.soundcloud_songs_ready = 0;\n\t\tconfig.continue_next = true;\n\n\t\t/**\n\t\t * @todo rebind event handlers\n\t\t */\n\t\t\n\t}\n\n\n\tstatic setPlayerState(){\n\t\t// If paused and the current time is 0 the player is stopped.\n\t\tif (config.audio_element.paused && config.audio_element.currentTime == 0) {\n\t\t\tconfig.player_state = \"stopped\";\n\t\t}\n \n\t\t// If paused and the current time is greater than 0 the player is paused.\n\t\tif (config.audio_element.paused && config.audio_element.currentTime > 0) {\n\t\t\tconfig.player_state = \"paused\";\n\t\t}\n \n\t\t// If playing, the current state is playing.\n\t\tif (!config.audio_element.paused) {\n\t\t\tconfig.player_state = \"playing\";\n\t\t}\n\t}\n}","import { config } from \"../config\";\nimport { ConfigState } from \"./ConfigState\";\nimport { Debug } from \"./Debug\";\n\nexport class Callbacks{\n #events = [\n 'abort',\n 'error',\n 'loadeddata',\n 'loadedmetadata',\n 'loadstart',\n 'pause',\n 'playing',\n 'play',\n 'progress',\n 'ratechange',\n 'seeked',\n 'seeking',\n 'stalled',\n 'suspend',\n 'timeupdate',\n 'volumechange',\n 'waiting',\n 'canplay',\n 'canplaythrough',\n 'durationchange',\n 'ended'\n ];\n\n handleNativeAudioElementEvents(){\n this.#events.forEach( function( event ){\n config.audio_element.addEventListener( event, function( ){\n Callbacks.run( event );\n } );\n });\n }\n\n static run( event ){\n let callback = ConfigState.getCallback( event );\n\n if( callback ){\n Debug.writeMessage( \"Running Callback for event '\" + callback.event + \"' with method '\" + callback.handler + \"'\");\n\n try {\n window[callback.handler]();\n } catch ( error ){\n if (error.message == \"CANCEL EVENT\") {\n throw error;\n }else{\n Debug.writeMessage( error.message );\n }\n }\n }\n }\n}","import { Callbacks } from \"@/services/Callbacks.js\";\nimport { config } from \"@/config.js\";\nimport { ConfigState } from '@/services/ConfigState.js'\nimport { Debug } from \"@/services/Debug.js\";\n\nexport class Audio{\n play(){\n this.#startVisualizations();\n this.#reconnectStream();\n this.#playAudio();\n ConfigState.setPlayerState();\n }\n\n pause(){\n this.#stopVisualizations();\n this.#pauseAudio();\n this.#disconnectStream();\n ConfigState.setPlayerState();\n }\n\n stop(){\n this.#stopVisualizations();\n this.setCurrentTime(0);\n this.#pauseAudio();\n this.#disconnectStream();\n ConfigState.setPlayerState();\n Callbacks.run('stop');\n }\n\n skipToLocation(seconds){\n // Cannot skip live streams\n if( !config.active_metadata.live ){\n // We only skip to the location when the audio is loaded enough to play through\n // and skip to a location. This event is unbound after it's fired once.\n config.audio_element.addEventListener(\"canplaythrough\", function(){\n if( config.audio_element.duration >= seconds && seconds > 0 ){\n config.audio_element.currentTime = seconds;\n } else {\n Debug.writeMessage( \"Amplitude can't skip to a location greater than the duration of the audio or less than 0.\")\n }\n }, { once: true } );\n }\n }\n\n /**\n * \n * @param {number} volumeLevel - A number between 1 - 100 as percentage of volume.\n */\n setVolume( volumeLevel ){\n this.#setMuted( volumeLevel );\n this.#setAudioVolume( volumeLevel );\n }\n\n setAudioLocation( percentage ){\n if( !config.active_metadata.live ){\n config.audio_element.currentTime = config.audio_element.duration * ( percentage / 100 );\n }\n }\n\n setPlaybackSpeed( playbackSpeed ){\n config.playback_speed = playbackSpeed;\n config.audio_element.playbackRate = config.playback_speed;\n }\n\n #startVisualizations(){\n // Visualizations.stop();\n // Visualizations.run();\n }\n\n #stopVisualizations(){\n // Visualizations.stop();\n }\n\n #reconnectStream(){\n /*\n Mobile remote sources need to be reconnected on play. I think this is\n because mobile browsers are optimized not to load all resources\n for speed reasons. We only do this if mobile and the paused button\n is not clicked. If the pause button was clicked then we don't reconnect\n or the user will lose their place in the stream.\n */ \n if( config.active_metadata.live \n || ( ConfigState.isMobile() && !config.paused ) ){\n config.audio_element.src = config.active_metadata.url;\n config.audio_element.load();\n }\n }\n\n #disconnectStream(){\n if( config.active_metadata.live ){\n config.audio_element.src = \"\";\n config.audio_element.load();\n }\n }\n\n #playAudio(){\n let playPromise = config.audio_element.play();\n\n if( playPromise !== undefined ){\n playPromise.then(_ => {}).catch(error => {});\n }\n\n config.audio_element.playbackRate = config.playback_speed;\n }\n\n #pauseAudio(){\n config.audio_element.pause();\n config.paused = true;\n }\n\n setCurrentTime( seconds ){\n if ( isFinite( seconds ) ) {\n config.audio_element.currentTime = seconds;\n }\n }\n\n #setMuted( volumeLevel ){\n if( volumeLevel == 0 ){\n config.audio_element.muted = true;\n }else{\n config.audio_element.muted = false;\n }\n }\n\n #setAudioVolume( volumeLevel ){\n config.volume.current = volumeLevel;\n config.audio_element.volume = ( volumeLevel / 100 );\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class GlobalPlayPauseElement{\n static globalPlayPauseQuery = '.amplitude-play-pause:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n \n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements()\n this.#bindInteractions()\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalPlayPauseElement.globalPlayPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction );\n }\n } );\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n\n if( config.audio_element.paused ){\n audio.play();\n }else{\n audio.pause();\n }\n\n PlayPauseElement.syncAll();\n }\n }\n\n static syncUI(){\n let state = ConfigState.getAudioState();\n let elements = document.querySelectorAll( GlobalPlayPauseElement.globalPlayPauseQuery );\n\n elements.forEach( ( element ) => {\n if( state == 'playing' ){\n PlayPauseElement.setElementPlay( element );\n }else{\n PlayPauseElement.setElementPause( element );\n }\n })\n }\n\n static syncToPause(){\n let elements = document.querySelectorAll( GlobalPlayPauseElement.globalPlayPauseQuery );\n\n elements.forEach( (element) => {\n PlayPauseElement.setElementPause( element );\n });\n }\n}","import { config } from \"@/config\";\n\nexport class Checks {\n static collectionExists( key ){\n\t\tif( config.collections[ key ] ){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tstatic collectionChanged( collection ){\n\t\tif (config.active_collection != collection) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tstatic isCollectionShuffled( collection ){\n if( config.collections[ collection ].shuffle ){\n return true;\n }else{\n return false;\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { Checks as CollectionChecks } from \"@/services/Collections/Checks\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation\";\nimport { Debug } from \"@/services/Debug\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\n/**\n * A Collection Play Pause element is defined by the following:\n * \n * Element: class=\"amplitude-play-pause\" data-amplitude-collection-key=\"{collection_key}\"\n */\nexport class CollectionPlayPauseElement {\n static collectionPlayPauseQuery = '.amplitude-play-pause[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements()\n this.#bindInteractions()\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionPlayPauseElement.collectionPlayPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {;\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n } );\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){\n let collection = element.getAttribute('data-amplitude-collection-key');\n\n if( !CollectionChecks.collectionExists( collection ) ){\n Debug.writeMessage('Collection with key \"'+collection+'\" does not exist! Please define this collection in your configuration.');\n return false;\n }\n\n this.#handleCollectionChanges( collection );\n this.#toggleAudio();\n\n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( collection ){\n if( CollectionChecks.collectionChanged( collection ) ){\n \n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.setActiveCollection( collection );\n\n // If the collection is shuffled and the collection is changed,\n // we change the audio to be the first audio in the array. Since,\n // we are changing the collection, we are starting at the top.\n if( CollectionChecks.isCollectionShuffled( collection ) ){\n collectionNavigation.changeAudioCollection(\n collection,\n config.collections[ collection ].shuffle_list[0],\n 0,\n true\n );\n }else{\n collectionNavigation.changeAudioCollection(\n collection,\n config.collections[ collection ].audio[0],\n 0\n );\n }\n }\n }\n\n #toggleAudio(){\n let audio = new Audio();\n\n if( config.audio_element.paused ){\n audio.play();\n }else{\n audio.pause();\n }\n }\n\n static syncUI(){\n let state = ConfigState.getAudioState();\n let elements = document.querySelectorAll( CollectionPlayPauseElement.collectionPlayPauseQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n\n if( state == 'playing' && ( activeCollectionKey == elementCollectionKey ) ){\n PlayPauseElement.setElementPlay( element );\n }else{\n PlayPauseElement.setElementPause( element );\n }\n })\n }\n\n static syncToPause(){\n let elements = document.querySelectorAll( CollectionPlayPauseElement.collectionPlayPauseQuery );\n\n elements.forEach( (element) => {\n PlayPauseElement.setElementPause( element );\n });\n }\n}","import { config } from \"@/config\";\n\nexport class Checks {\n static audioExists( index ){\n if( config.audio[ index ] ){\n return true;\n }else{\n return false;\n }\n }\n\n static audioChanged( audioIndex, collectionKey = null ){\n\t\tif( config.active_collection != collectionKey ){\n\t\t\treturn true;\n\t\t}else{\n\t\t\tif( config.active_collection == null && collectionKey == null ){\n\t\t\t\tif( config.active_index != audioIndex ){\n\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif( config.active_collection == collection && \n\t\t\t\t\tconfig.collections[ collectionKey ].active_index != audioIndex ){\n\t\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}","import { config } from \"@/config\";\n\nexport class MetaDataElement {\n static globalMetaDataElementsQuery = '[data-amplitude-audio-info]:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n static collectionMetaDataElementsQuery = '[data-amplitude-audio-info][data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n static audioMetaDataElementsQuery = '[data-amplitude-audio-info][data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n static collectionAudioMetaDataElementsQuery = '[data-amplitude-audio-info][data-amplitude-audio-index][data-amplitude-collection-key]';\n static collectionInfoElementsQuery = '[data-amplitude-collection-info]';\n\n #imageMetaDataKeys = [\n \"cover_art_url\",\n \"station_art_url\",\n \"podcast_episode_cover_art_url\",\n \"album_art_url\"\n ]\n\n /**\n * Gets called after audio has been changed. Updates all of the global\n * elements and collection elements, not the individual audio elements.\n * Individual audio elements should only be dynamically set once and not again\n * since they never change.\n * \n * Examples:\n * Update - Global cover art for a song.\n * Update - Playlist now playing cover art.\n * Update - Podcast now playing cover art.\n * Do Not Update - Individual audio element. These will be set with syncMetaData()\n * and won't need to be updated again.\n */\n displayMetaData(){\n this.#displayGlobalMetaElements();\n this.#displayCollectionMetaElements();\n }\n\n #displayGlobalMetaElements(){\n let globalAudioInfoElements = document.querySelectorAll( MetaDataElement.globalMetaDataElementsQuery );\n\n globalAudioInfoElements.forEach( ( element ) => {\n let key = element.getAttribute('data-amplitude-audio-info');\n let value = ( config.active_metadata[ key ] != undefined ) ? config.active_metadata[ key ] : null;\n\n this.#setMetaValue( key, value, element );\n });\n }\n\n #displayCollectionMetaElements(){\n let collectionInfoElements = document.querySelectorAll( MetaDataElement.collectionMetaDataElementsQuery );\n\n collectionInfoElements.forEach( ( element ) => {\n let key = element.getAttribute('data-amplitude-audio-info');\n let value = ( config.active_metadata[ key ] != undefined ) ? config.active_metadata[ key ] : null;\n\n this.#setMetaValue( key, value, element );\n });\n }\n \n #displayAudioMetaElements(){\n let audioInfoElements = document.querySelectorAll( MetaDataElement.audioMetaDataElementsQuery );\n\n audioInfoElements.forEach( ( element ) => {\n let key = element.getAttribute('data-amplitude-audio-info');\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n let value = config.audio[ audioIndex ][ key ] != undefined ? config.audio[ audioIndex ][ key ] : null;\n\n this.#setMetaValue( key, value, element );\n });\n }\n\n #displayCollectionAudioMetaElements(){\n let collectionAudioInfoElements = document.querySelectorAll( MetaDataElement.collectionAudioMetaDataElementsQuery );\n\n collectionAudioInfoElements.forEach( ( element ) => {\n let key = element.getAttribute('data-amplitude-audio-info');\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n let collectionKey = element.getAttribute('data-amplitude-collection-key');\n let value = config.collections[ collectionKey ].audio[ audioIndex ][ info ] != undefined\n ? config.collections[ collectionKey ].audio[ audioIndex ][ info ]\n : null;\n\n this.#setMetaValue( key, value, element );\n });\n }\n\n #setMetaValue( key, value, element ){\n if( this.#imageMetaDataKeys.indexOf( key ) >= 0 ){\n value = value || config.default_art;\n element.setAttribute('src', value);\n }else{\n value = value || \"\";\n element.innerHTML = value;\n }\n }\n\n displayCollectionMetaData(){\n\n }\n\n syncMetaData(){\n this.#displayAudioMetaElements();\n this.#displayCollectionAudioMetaElements();\n this.displayCollectionMetaData();\n }\n}","import { config } from \"@/config\";\nimport { ConfigState } from \"@/services/ConfigState\";\n\nexport class AudioContainerElement {\n static audioContainerElementQuery = '.amplitude-audio-container[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n \n #elements;\n #activeIndex;\n\n setActive(){\n if( ConfigState.getScope() == 'audio' ){\n this.#findElements();\n this.#resetElements();\n this.#getActiveIndex();\n this.#setActiveContainerElements();\n }\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioContainerElement.audioContainerElementQuery );\n }\n\n #resetElements(){\n this.#elements.forEach( function( element ){\n element.classList.remove('amplitude-active-audio-container');\n });\n }\n\n #getActiveIndex(){\n this.#activeIndex = config.active_index;\n }\n\n #setActiveContainerElements(){\n let activeContainerElements = document.querySelectorAll('.amplitude-audio-container[data-amplitude-audio-index=\"'+this.#activeIndex+'\"]:not([data-amplitude-collection-key])');\n \n activeContainerElements.forEach( function( element ){\n element.classList.add(\"amplitude-active-audio-container\");\n });\n }\n}","import { config } from \"@/config\";\nimport { ConfigState } from \"@/services/ConfigState\";\n\nexport class CollectionAudioContainerElement {\n static collectionAudioContainerElementQuery = '.amplitude-audio-container[data-amplitude-audio-index][data-amplitude-collection-key]';\n\n #direct;\n #elements;\n #activeIndex;\n #activeCollection;\n\n constructor( direct ){\n this.#direct = direct;\n }\n\n setActive(){\n if( ConfigState.getScope() == 'collection' ){\n this.#findElements();\n this.#resetElements();\n this.#getActiveIndex();\n this.#setActiveContainerElements();\n }\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioContainerElement.collectionAudioContainerElementQuery );\n }\n\n #resetElements(){\n this.#elements.forEach( function( element ){\n element.classList.remove('amplitude-active-audio-container');\n });\n }\n\n #getActiveIndex(){\n this.#activeCollection = ConfigState.getActiveCollection();\n\n if( this.#direct ){\n this.#activeIndex = config.collections[ this.#activeCollection ].active_index;\n }else{\n if( ConfigState.isCollectionShuffled( this.#activeCollection ) ){\n this.#activeIndex = config.collections[ this.#activeCollection ].shuffle_list[\n config.collections[ this.#activeCollection ].active_index\n ].index;\n }else{\n this.#activeIndex = config.collections[ this.#activeCollection ].active_index;\n }\n }\n }\n\n #setActiveContainerElements(){\n let activeContainerElements = document.querySelectorAll('.amplitude-audio-container[data-amplitude-audio-index=\"'+this.#activeIndex+'\"][data-amplitude-collection-key=\"'+this.#activeCollection+'\"]');\n activeContainerElements.forEach( function( element ){\n element.classList.add(\"amplitude-active-audio-container\");\n });\n }\n}","import { AudioContainerElement } from \"./ContainerElements/AudioContainerElement\";\nimport { CollectionAudioContainerElement } from \"./ContainerElements/CollectionAudioContainerElement\";\n\nexport class ContainerElement{\n \n setActiveContainers( direct ){\n this.#setActiveAudioContainers();\n this.#setActiveCollectionAudioContainers( direct );\n }\n\n #setActiveAudioContainers(){\n let audioContainerElements = new AudioContainerElement();\n audioContainerElements.setActive();\n }\n\n #setActiveCollectionAudioContainers( direct ){\n let collectionAudioContainerElements = new CollectionAudioContainerElement( direct );\n collectionAudioContainerElements.setActive();\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { config } from \"@/config\";\nimport { Callbacks } from \"@/services/Callbacks\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { MetaDataElement } from \"@/elements/MetaDataElement\";\nimport { ContainerElement } from \"@/elements/ContainerElement\";\n\nexport class Navigation {\n /**\n * Change audio in the audio array\n *\n * @prop {object} audio - The audio we are changing to.\n * @prop {number} index - The index we are changing to.\n * @prop {boolean} direct - Determines if it was a direct click on the song.\n * We then don't care if shuffle is on or not.\n */\n changeAudio( audio, index, direct = false ){\n this.#prepareAudioChange( audio );\n\n this.#switchAudio(audio, index);\n\n this.#afterAudioChange( direct );\n }\n\n #prepareAudioChange( audio ){\n let coreAudio = new Audio();\n coreAudio.stop();\n\n // Sync elements\n PlayPauseElement.syncAllToPause();\n /**\n * @todo Song Slider Elements -> reset\n * @todo Song Played Progress Elements -> reset\n * @todo Time Elements -> reset \n * ( See src/utilities/audioNavigation.js Line #528)\n */\n /**\n * @todo we don't have album change callback, make note.\n */\n }\n\n #switchAudio( audio, index ){\n config.active_collection = null;\n config.audio_element.src = audio.url;\n config.active_metadata = audio;\n /** \n * @todo We don't have active_album. make note.\n */\n config.active_index = parseInt( index );\n }\n\n #afterAudioChange( direct ){\n this.#updateMetaData();\n\n let containerElements = new ContainerElement();\n containerElements.setActiveContainers( direct );\n\n /**\n * @todo time elements -> reset duration times\n * ( see src/utilities/audioNavigation.js Line #558 )\n */\n Callbacks.run('audio_change');\n }\n\n #updateMetaData(){\n let metaData = new MetaDataElement();\n metaData.displayMetaData();\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { Checks as AudioChecks } from '@/services/Audio/Checks.js';\nimport { Navigation as AudioNavigation } from '@/services/Audio/Navigation.js';\nimport { Checks as CollectionChecks } from '@/services/Collections/Checks.js';\nimport { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js';\nimport { Debug } from \"@/services/Debug\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class AudioPlayPauseElement {\n static audioPlayPauseQuery = '.amplitude-play-pause[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioPlayPauseElement.audioPlayPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n } );\n }\n\n /**\n * There can be multiple collections on the page. There can also be multiple\n * individual audio players and audio players in collections.\n * \n * We first check to see if the audio index exists. This can be a game changer\n * if the user messes up a key.\n * \n * Next, we check to see if the collection has changed. Even though, this class\n * responds to audio that is not a part of a collection, technically the collection\n * changes if the state of the player is in collection mode and we switch out of collection\n * mode.\n * \n * Finally, we check to see if the audio has changed. This means there is more than\n * one audio player on the page and the user has switched to a different player. If the\n * player was in collection mode, this check won't do anything since we change the audio\n * out of collection mode. This only fires if the player is not in collection mode and\n * switches to another audio player not in collection mode.\n * \n * @returns {boolean|null}\n */\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){\n let index = element.getAttribute('data-amplitude-audio-index');\n \n if( !AudioChecks.audioExists( index ) ){\n Debug.writeMessage('Audio with index \"'+index+'\" does not exist! Please add an audio object at this index in your configuration.');\n return false;\n }\n\n this.#handleCollectionChanges( index );\n this.#handleAudioChanges( index );\n this.#toggleAudio();\n \n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( index ){\n if( CollectionChecks.collectionChanged( null ) ){\n let collectionNavigation = new CollectionNavigation();\n let audioNavigation = new AudioNavigation();\n\n collectionNavigation.setActiveCollection( null );\n audioNavigation.changeAudio(\n config.audio[index], index, true\n );\n }\n }\n\n #handleAudioChanges( index ){\n if( AudioChecks.audioChanged( index ) ){\n let audioNavigation = new AudioNavigation();\n\n audioNavigation.changeAudio(\n config.audio[index], index, true\n );\n }\n }\n\n #toggleAudio(){\n let audio = new Audio();\n\n if( config.audio_element.paused ){\n audio.play();\n }else{\n audio.pause();\n }\n }\n\n static syncUI(){\n let state = ConfigState.getAudioState();\n let elements = document.querySelectorAll( AudioPlayPauseElement.audioPlayPauseQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( state == 'playing' && ( activeAudioIndex == elementAudioIndex ) ){\n PlayPauseElement.setElementPlay( element );\n }else{\n PlayPauseElement.setElementPause( element );\n }\n })\n }\n\n static syncToPause(){\n let elements = document.querySelectorAll( AudioPlayPauseElement.audioPlayPauseQuery );\n\n elements.forEach( ( element ) => {\n PlayPauseElement.setElementPause( element );\n });\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { Checks as AudioChecks } from '@/services/Audio/Checks.js';\nimport { Checks as CollectionChecks } from '@/services/Collections/Checks.js';\nimport { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js';\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class CollectionAudioPlayPauseElement {\n static collectionAudioPlayPauseQuery = '.amplitude-play-pause[data-amplitude-audio-index][data-amplitude-collection-key]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioPlayPauseElement.collectionAudioPlayPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n } );\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){\n let collectionKey = element.getAttribute('data-amplitude-collection-key');\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n \n this.#handleCollectionChanges( collectionKey, audioIndex );\n this.#handleAudioChanges( collectionKey, audioIndex );\n this.#toggleAudio();\n\n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( collectionKey, audioIndex ){\n if( CollectionChecks.collectionChanged( collectionKey ) ){\n let collectionNavigation = new CollectionNavigation();\n\n collectionNavigation.setActiveCollection( collectionKey );\n collectionNavigation.changeAudioCollection(\n collectionKey,\n config.collections[ collectionKey ].audio[audioIndex],\n audioIndex,\n true\n );\n }\n }\n\n #handleAudioChanges( collectionKey, audioIndex ){\n if( AudioChecks.audioChanged( audioIndex, collectionKey ) ){\n let collectionNavigation = new CollectionNavigation();\n\n collectionNavigation.changeAudioCollection(\n collectionKey,\n config.collections[ collectionKey ].audio[audioIndex],\n audioIndex,\n true\n );\n }\n }\n\n #toggleAudio(){\n let audio = new Audio();\n\n if( config.audio_element.paused ){\n audio.play();\n }else{\n audio.pause();\n }\n }\n\n static syncUI(){\n let state = ConfigState.getAudioState();\n let elements = document.querySelectorAll( CollectionAudioPlayPauseElement.collectionAudioPlayPauseQuery );\n \n elements.forEach( ( element ) => {\n if( state == 'playing' ){\n PlayPauseElement.setElementPlay( element );\n }else{\n PlayPauseElement.setElementPause( element );\n }\n })\n }\n\n static syncToPause(){\n let elements = document.querySelectorAll( CollectionAudioPlayPauseElement.collectionAudioPlayPauseQuery );\n\n elements.forEach( ( element ) => {\n PlayPauseElement.setElementPause( element );\n });\n }\n}","import { GlobalPlayPauseElement } from \"./PlayPauseElements/GlobalPlayPauseElement\";\nimport { CollectionPlayPauseElement } from \"./PlayPauseElements/CollectionPlayPauseElement\";\nimport { AudioPlayPauseElement } from \"./PlayPauseElements/AudioPlayPauseElement\";\nimport { CollectionAudioPlayPauseElement } from \"./PlayPauseElements/CollectionAudioPlayPauseElement\";\n\n/**\n * Handles the configuration and managing of Play/Pause elements.\n * \n * A Play Pause element is defined as the following:\n * \n * Element: class=\"amplitude-play-pause\"\n * \n * GLOBAL: class=\"amplitude-play-pause\" \n * Controls the entire state of the audio player. Will play or pause whatever is active.\n * \n * COLLECTION: class=\"amplitude-play-pause\" data-amplitude-collection-key=\"{collection_key}\"\n * Scoped to an individual collection. Will only play or pause within the scope of a collection.\n * \n * AUDIO: class=\"amplitude-play-pause\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element. Will only play or pause a specific piece of audio.\n * \n * AUDIO IN COLLECTION: class=\"amplitude-play-pause\" data-amplitude-collection-key=\"{collection_key}\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element within a collection. Will only play or pause a specific piece of audio in a collection.\n */\nexport class PlayPauseElement{\n constructor(){\n\n }\n\n setUp(){\n this.#configureGlobalPlayPauseElement();\n this.#configureCollectionPlayPauseElement();\n this.#configureAudioPlayPauseElement();\n this.#configureCollectionAudioPlayPauseElement();\n }\n\n #configureGlobalPlayPauseElement(){\n let globalPlayPauseElement = new GlobalPlayPauseElement();\n globalPlayPauseElement.initialize();\n }\n\n #configureCollectionPlayPauseElement(){\n let collectionPlayPauseElement = new CollectionPlayPauseElement();\n collectionPlayPauseElement.initialize();\n }\n\n #configureAudioPlayPauseElement(){\n let audioPlayPauseElement = new AudioPlayPauseElement();\n audioPlayPauseElement.initialize();\n }\n\n #configureCollectionAudioPlayPauseElement(){\n let collectionAudioPlayPauseElement = new CollectionAudioPlayPauseElement();\n collectionAudioPlayPauseElement.initialize();\n }\n\n static syncAll(){\n GlobalPlayPauseElement.syncUI();\n CollectionPlayPauseElement.syncUI();\n AudioPlayPauseElement.syncUI();\n CollectionAudioPlayPauseElement.syncUI();\n }\n\n static syncAllToPause(){\n GlobalPlayPauseElement.syncToPause();\n CollectionPlayPauseElement.syncToPause();\n AudioPlayPauseElement.syncToPause();\n CollectionAudioPlayPauseElement.syncToPause();\n }\n\n /**\n * Sets an element to be playing by removing the 'amplitude-paused' class\n * and adding the 'amplitude-playing' class\n *\n * @access public\n * @static\n * @param {element} element - The element getting the playing class added.\n */\n static setElementPlay( element ){\n element.classList.add(\"amplitude-playing\");\n element.classList.remove(\"amplitude-paused\");\n }\n\n /**\n * Sets an element to be paused by adding the 'amplitude-paused' class\n * and removing the 'amplitude-playing' class\n *\n * @access public\n * @static\n * @param {element} element - The element getting the paused class added.\n */\n static setElementPause( element ){\n element.classList.remove(\"amplitude-playing\");\n element.classList.add(\"amplitude-paused\");\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { config } from \"@/config\";\nimport { Callbacks } from \"@/services/Callbacks\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { MetaDataElement } from \"@/elements/MetaDataElement\";\nimport { ContainerElement } from \"@/elements/ContainerElement\";\n\nexport class Navigation {\n /**\n * Sets the next song in a collection.\n * \n * @param {string} collectionKey - The collection to navigate. Defaults to the active collection.\n * @param {boolean} audioEnded - If the audio ended, this is true to take in effect the repeat setting.\n */\n next( collectionKey = null, audioEnded = false ){\n if( !collectionKey ){\n collectionKey = config.active_collection;\n }\n\n let nextAudio = this.#findNextAudio( collectionKey );\n \n this.setActiveCollection( collectionKey );\n this.changeCollectionAudio( collectionKey, nextAudio.audio, nextAudio.index );\n this.#playNextAudio( nextAudio.end, audioEnded )\n \n PlayPauseElement.syncAll();\n Callbacks.run(\"next\");\n\n if( config.repeat_audio ){\n Callbacks.run(\"audio_repeated\");\n }\n }\n\n #findNextAudio( collectionKey ){\n if( config.repeat_audio ){\n return this.#repeatedAudio( collectionKey );\n }else{\n if( config.collections[ collectionKey ].shuffle ){\n return this.#nextShuffledAudio( collectionKey );\n }else{\n return this.#nextCollectionAudio( collectionKey );\n }\n }\n }\n\n #repeatedAudio( collectionKey ){\n let index = config.collections[ collectionKey ].active_index;\n\n return {\n 'index': nextIndex,\n 'audio': config.collections[ collectionKey ].shuffle ?\n config.collections[ collectionKey ].shuffle_list[ index ] :\n config.collections[ collectionKey ].audio[ index ],\n 'end': false\n }\n }\n\n #nextShuffledAudio( collectionKey ){\n let nextIndex = null;\n let endOfList = false;\n\n let activeIndex = config.collections[ collectionKey ].active_index;\n let shuffleCollectionLength = config.collections[ collectionKey ].shuffle_list.length;\n \n if( parseInt( activeIndex + 1 ) < shuffleCollectionLength ){\n nextIndex = parseInt( activeIndex + 1 ); \n }else{\n nextIndex = 0;\n endOfList = true;\n }\n\n return {\n 'index': nextIndex,\n 'audio': config.collections[ collectionKey ].shuffleList[ nextIndex ],\n 'end': endOfList\n }\n }\n\n #nextCollectionAudio( collectionKey ){\n let nextIndex = null;\n let endOfList = false;\n \n let activeIndex = config.collections[ collectionKey ].active_index;\n let collectionLength = config.collections[ collectionKey ].audio.length;\n\n if( parseInt( activeIndex + 1 ) < collectionLength ){\n nextIndex = parseInt( activeIndex + 1 );\n }else{\n nextIndex = 0;\n endOfList = true;\n }\n\n return {\n 'index': nextIndex,\n 'audio': config.collections[ collectionKey ].audio[ nextIndex ],\n 'end': endOfList\n }\n }\n\n #playNextAudio( endOfList, audioEnded ){\n // If it's the end of the collection and we aren't repeating, do nothing.\n if( endOfList && !config.repeat_audio ){\n }else{\n if( !( audioEnded && !config.repeat_audio && endOfList ) ){\n let audio = new Audio();\n audio.play();\n }\n }\n }\n\n previous( collectionKey = null ){\n if( !collectionKey ){\n collectionKey = config.active_collection;\n }\n\n let previousAudio = this.#findPreviousAudio( collectionKey );\n \n this.setActiveCollection( collectionKey );\n this.changeCollectionAudio( collectionKey, previousAudio.audio, previousAudio.index );\n \n let audio = new Audio();\n audio.play();\n \n PlayPauseElement.syncAll();\n Callbacks.run(\"previous\");\n\n if( config.repeat_audio ){\n Callbacks.run(\"audio_repeated\");\n }\n }\n\n #findPreviousAudio(){\n if( config.repeat_audio ){\n return this.#repeatedAudio( collectionKey );\n }else{\n if( config.collections[ collectionKey ].shuffle ){\n return this.#previousShuffledAudio( collectionKey );\n }else{\n return this.#previousCollectionAudio( collectionKey );\n }\n }\n }\n\n #previousShuffledAudio( collectionKey ){\n let previousIndex = null;\n\n let activeIndex = config.collections[ collectionKey ].active_index;\n let shuffleCollectionLength = config.collections[ collectionKey ].shuffle_list.length;\n \n if( parseInt( activeIndex - 1 ) >= 0 ){\n previousIndex = parseInt( activeIndex - 1 );\n }else{\n previousIndex = parseInt( shuffleCollectionLength - 1 );\n }\n\n return {\n 'index': previousIndex,\n 'audio': config.collections[ collectionKey ].shuffleList[ previousIndex ]\n }\n }\n\n #previousCollectionAudio( collectionKey ){\n let previousIndex = null;\n\n let activeIndex = config.collections[ collectionKey ].active_index;\n let collectionLength = config.collections[ collectionKey ].audio.length;\n \n if( parseInt( activeIndex - 1 ) >= 0 ){\n previousIndex = parseInt( activeIndex - 1 );\n }else{\n previousIndex = parseInt( collectionLength - 1 );\n }\n\n return {\n 'index': previousIndex,\n 'audio': config.collections[ collectionKey ].audio[ previousIndex ]\n }\n }\n\n setActiveCollection( collection ){\n if( config.active_collection != collection ){\n Callbacks.run(\"collection_changed\");\n\n config.active_collection = collection;\n\n if( collection != null ){\n config.collections[ collection ].active_index = 0;\n }\n }\n }\n\n /**\n * Handles audio change in a collection\n *\n * @prop {string} collection - The collection we are changing the song on.\n * @prop {object} audio - The audio object we are changing to in the collection.\n * @prop {number} index - The index of the song we are changing to in the collection.\n * @prop {boolean} direct - Determines if it was a direct click on the song. We\n * then don't care if shuffle is on or not\n */\n changeAudioCollection( collection, audio, index, direct ){\n this.#prepareAudioChange( audio );\n\n this.#switchAudio( collection, audio, index );\n\n this.#afterAudioChange( direct );\n }\n\n #prepareAudioChange( audio ){\n Audio.stop();\n\n // Sync elements\n PlayPauseElement.syncAllToPause();\n /**\n * @todo Song Slider Elements -> reset\n * @todo Song Played Progress Elements -> reset\n * @todo Time Elements -> reset \n * ( See src/utilities/audioNavigation.js Line #528)\n */\n /**\n * @todo we don't have album change callback, make note.\n */\n }\n\n #switchAudio( collection, audio, index ){\n config.audio_element = audio.url;\n config.active_metadata = audio;\n /** \n * @todo We don't have active_album. make note.\n */\n config.active_index = null;\n config.collections[collection].active_index = parseInt(index);\n }\n\n #afterAudioChange( direct ){\n this.#updateMetaData();\n\n let containerElements = new ContainerElement();\n containerElements.setActiveContainers( direct );\n \n /**\n\n * @todo time elements -> reset duration times\n * ( see src/utilities/audioNavigation.js Line #558 )\n */\n Callbacks.run('audio_change');\n }\n\n #updateMetaData(){\n let metaData = new MetaDataElement();\n metaData.displayMetaData();\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { config } from '@/config.js';\nimport { ConfigState } from '@/services/ConfigState';\nimport { Navigation } from '@/services/Collections/Navigation';\nimport { PlayPauseElement } from '@/elements/PlayPauseElement';\n\nexport class AudioEndedEvent{\n bind(){\n config.audio_element.removeEventListener( \"ended\", this.#handle );\n config.audio_element.addEventListener( \"ended\", this.#handle.bind(this) );\n }\n\n #handle(){\n setTimeout( function(){\n if( ConfigState.getScope() == 'collection' && ConfigState.getContinueNext() ){\n let navigation = new Navigation();\n navigation.next( ConfigState.getActiveCollection(), true );\n }else{\n let audio = new Audio();\n audio.stop();\n\n PlayPauseElement.syncAll();\n }\n }, config.delay );\n }\n}","export class KeyBindingEvents{\n bind(){\n this.#bindKeyPress();\n }\n\n #bindKeyPress(){\n document.removeEventListener( \"keydown\", this.#handle.bind(this) );\n document.addEventListener( \"keydown\", this.#handle.bind(this) );\n }\n\n #handle( event ){\n if( !this.#isFormFocused() ){\n let key = event.key;\n \n }\n }\n\n #isFormFocused(){\n let activeElement = document.activeElement.tagName.toLowerCase();\n\n let ignoredElements = [\n 'input',\n 'textarea',\n 'select',\n 'checkbox',\n ];\n\n return ignoredElements.indexOf( activeElement ) > -1;\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { config } from '@/config.js';\n\nexport class GlobalBufferedProgressElement{\n static globalBufferedProgressQuery = 'progress.amplitude-buffered-progress:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n\n static syncUI(){\n let elements = document.querySelectorAll( GlobalBufferedProgressElement.globalBufferedProgressQuery );\n\n elements.forEach( function( element ){\n if( !isNaN( config.buffered ) ){\n element.value = parseFloat(\n ConfigState.getBufferedPercentage()\n );\n }\n } );\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { config } from '@/config.js';\n\nexport class CollectionBufferedProgressElement{\n static syncUI(){\n let activeCollection = ConfigState.getActiveCollection();\n let elements = document.querySelectorAll('progress.amplitude-buffered-progress[data-amplitude-collection-key=\"'+activeCollection+'\"]:not([data-amplitude-audio-index])');\n\n elements.forEach( function( element ){\n if( !isNaN( config.buffered ) ){\n element.value = parseFloat(\n ConfigState.getBufferedPercentage()\n );\n }\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { config } from '@/config.js';\n\nexport class AudioBufferedProgressElement{\n static audioBufferedProgressQuery = 'progress.amplitude-buffered-progress[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n static syncUI(){\n let activeIndex = ConfigState.getActiveAudioIndex();\n let elements = document.querySelectorAll('progress.amplitude-buffered-progress[data-amplitude-audio-index=\"'+activeIndex+'\"]:not([data-amplitude-collection-key])');\n\n elements.forEach( function( element ){\n if( !isNaN( config.buffered ) ){\n element.value = parseFloat(\n ConfigState.getBufferedPercentage()\n );\n }\n });\n }\n}","import { GlobalBufferedProgressElement } from \"./BufferedProgressElements/GlobalBufferedProgressElement\";\nimport { CollectionBufferedProgressElement } from \"./BufferedProgressElements/CollectionBufferedProgressElement\";\nimport { CollectionAudioBufferedProgressElement } from './BufferedProgressElements/CollectionAudioBufferedProgressElement';\nimport { AudioBufferedProgressElement } from \"./BufferedProgressElements/AudioBufferedProgressElement\";\n\nexport class BufferedProgressElement{\n static syncAll(){\n GlobalBufferedProgressElement.syncUI();\n CollectionBufferedProgressElement.syncUI();\n AudioBufferedProgressElement.syncUI();\n CollectionAudioBufferedProgressElement.syncUI();\n }\n}","export class GlobalProgressElement{\n static globalProgressQuery = 'progress.amplitude-audio-played-progress:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n\n static syncUI( completionPercentage ){\n if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){\n let elements = document.querySelectorAll( GlobalProgressElement.globalProgressQuery );\n\n elements.forEach( ( element ) => {\n let max = element.max;\n\n element.value = ( completionPercentage / 100 ) * max;\n });\n }\n }\n}","import { ConfigState } from '@/services/ConfigState';\n\nexport class CollectionProgressElement{\n static collectionProgressQuery = 'progress.amplitude-audio-played-progress[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n static syncUI( completionPercentage ){\n if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){\n let elements = document.querySelectorAll( CollectionProgressElement.collectionProgressQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let max = element.max;\n\n if( activeCollectionKey == elementCollectionKey ){\n element.value = ( completionPercentage / 100 ) * max;\n }else{\n element.value = 0;\n }\n });\n }\n }\n}","import { ConfigState } from '@/services/ConfigState';\n\nexport class AudioProgressElement{\n static audioProgressQuery = 'progress.amplitude-audio-played-progress[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n static syncUI( completionPercentage ){\n if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){\n let elements = document.querySelectorAll( AudioProgressElement.audioProgressQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n let max = element.max;\n\n if( activeAudioIndex == elementAudioIndex ){\n element.value = ( completionPercentage / 100 ) * max;\n }else{\n element.value = 0;\n }\n });\n }\n }\n}","import { ConfigState } from '@/services/ConfigState';\n\nexport class CollectionAudioProgressElement{\n static collectionAudioProgressQuery = 'progress.amplitude-audio-played-progress[data-amplitude-collection-key][data-amplitude-audio-index]';\n\n static syncUI( completionPercentage ){\n if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){\n let elements = document.querySelectorAll( CollectionAudioProgressElement.collectionAudioProgressQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n let max = element.max;\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.value = ( completionPercentage / 100 ) * max;\n }else{\n element.value = 0;\n }\n });\n }\n }\n}","import { GlobalProgressElement } from \"./ProgressElements/GlobalProgressElement\";\nimport { CollectionProgressElement } from \"./ProgressElements/CollectionProgressElement\";\nimport { AudioProgressElement } from \"./ProgressElements/AudioProgressElement\";\nimport { CollectionAudioProgressElement } from \"./ProgressElements/CollectionAudioProgressElement\";\n\nexport class ProgressElement{\n constructor(){\n\n }\n\n static syncCurrentTime( percentage ){\n GlobalProgressElement.syncUI( percentage );\n CollectionProgressElement.syncUI( percentage );\n AudioProgressElement.syncUI( percentage );\n CollectionAudioProgressElement.syncUI( percentage );\n }\n}","import { config } from \"@/config\";\n\nexport class Time {\n static percentageInSeconds( percentage ){\n return config.audio_element.duration * (percentage / 100);\n }\n\n computeCurrentTimes(){\n let currentTime = {};\n\n currentTime.seconds = this.#findCurrentSeconds();\n currentTime.minutes = this.#findCurrentMinutes();\n currentTime.hours = this.#findCurrentHours();\n\n return currentTime;\n }\n\n #findCurrentSeconds(){\n let seconds = ( Math.floor( config.audio_element.currentTime % 60 ) < 10 ? \"0\" : \"\" ) +\n Math.floor( config.audio_element.currentTime % 60 );\n\n return seconds;\n }\n\n #findCurrentMinutes(){\n let minutes = Math.floor( config.audio_element.currentTime / 60 );\n\n if( minutes < 10 ){\n minutes = \"0\"+minutes;\n }\n\n return minutes;\n }\n\n #findCurrentHours(){\n let hours = Math.floor( config.audio_element.currentTime / 3600 );\n\n if( hours < 10 ){\n hours = \"0\"+hours;\n }\n\n return hours;\n }\n\n computeAudioCompletionPercentage(){\n return ( config.audio_element.currentTime / config.audio_element.duration ) * 100;\n }\n\n computeAudioDuration(){\n let audioDuration = {};\n\n audioDuration.seconds = this.#findAudioDurationSeconds();\n audioDuration.minutes = this.#findAudioDurationMinutes();\n audioDuration.hours = this.#findAudioDurationHours();\n\n return audioDuration;\n }\n\n #findAudioDurationSeconds(){\n let seconds = ( Math.floor( config.audio_element.duration % 60 ) < 10 ? \"0\" : \"\" ) +\n Math.floor( config.audio_element.duration % 60 );\n\n return seconds;\n }\n\n #findAudioDurationMinutes(){\n let minutes = Math.floor( config.audio_element.duration / 60 );\n\n if( minutes < 10 ){\n minutes = \"0\"+minutes;\n }\n\n return minutes;\n }\n\n #findAudioDurationHours(){\n let hours = Math.floor( config.audio_element.duration / 3600 );\n\n if( hours < 10 ){\n hours = \"0\"+hours;\n }\n\n return hours;\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\n\nexport class GlobalCurrentTimeElement {\n static globalFormattedTimeElementQuery = '.amplitude-current-time:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n static globalHoursTimeElementQuery = '.amplitude-current-hours:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n static globalMinutesTimeElementQuery = '.amplitude-current-minutes:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n static globalSecondsTimeElementQuery = '.amplitude-current-seconds:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n \n #currentTime;\n\n constructor( currentTime ){\n this.#currentTime = currentTime\n }\n \n sync(){\n this.#syncFormattedTimeElement();\n this.#syncHourTimeElement();\n this.#syncMinuteTimeElement();\n this.#syncSecondTimeElement();\n }\n\n #syncFormattedTimeElement(){\n let timeFormat = ConfigState.getTimeFormat();\n\n let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalFormattedTimeElementQuery );\n let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours )\n .replace( 'MM', this.#currentTime.minutes )\n .replace( 'SS', this.#currentTime.seconds );\n\n elements.forEach( ( element ) => {\n element.innerHTML = formattedTime;\n });\n }\n\n #syncHourTimeElement(){\n let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalHoursTimeElementQuery );\n\n elements.forEach( ( element ) => {\n element.innerHTML = this.#currentTime.hours;\n });\n }\n\n #syncMinuteTimeElement(){\n let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalMinutesTimeElementQuery );\n\n elements.forEach( ( element ) => {\n element.innerHTML = this.#currentTime.minutes;\n });\n }\n\n #syncSecondTimeElement(){\n let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalSecondsTimeElementQuery );\n\n elements.forEach( ( element ) => {\n element.innerHTML = this.#currentTime.seconds;\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\n\nexport class CollectionCurrentTimeElement {\n static collectionFormattedTimeElementQuery = '.amplitude-current-time[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n static collectionHoursTimeElementQuery = '.amplitude-current-hours[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n static collectionMinutesTimeElementQuery = '.amplitude-current-minutes[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n static collectionSecondsTimeElementQuery = '.amplitude-current-seconds[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n #currentTime;\n\n constructor( currentTime ){\n this.#currentTime = currentTime;\n }\n\n sync(){\n this.#syncFormattedTimeElement();\n this.#syncHourTimeElement();\n this.#syncMinuteTimeElement();\n this.#syncSecondTimeElement();\n }\n\n #syncFormattedTimeElement(){\n let timeFormat = ConfigState.getTimeFormat();\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionFormattedTimeElementQuery );\n let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours )\n .replace( 'MM', this.#currentTime.minutes )\n .replace( 'SS', this.#currentTime.seconds );\n \n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n\n if( activeCollectionKey == elementCollectionKey ){\n element.innerHTML = formattedTime;\n }else{\n element.innerHTML = '00:00';\n }\n })\n }\n\n #syncHourTimeElement(){\n let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionHoursTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n\n if( activeCollectionKey == elementCollectionKey ){\n element.innerHTML = this.#currentTime.hours;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncMinuteTimeElement(){\n let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionMinutesTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n\n if( activeCollectionKey == elementCollectionKey ){\n element.innerHTML = this.#currentTime.minutes;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncSecondTimeElement(){\n let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionSecondsTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n\n if( activeCollectionKey == elementCollectionKey ){\n element.innerHTML = this.#currentTime.seconds;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\n\nexport class AudioCurrentTimeElement {\n static audioFormattedTimeElementQuery = '.amplitude-current-time[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n static audioHoursTimeElementQuery = '.amplitude-current-hours[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n static audioMinutesTimeElementQuery = '.amplitude-current-minutes[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n static audioSecondsTimeElementQuery = '.amplitude-current-seconds[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n #currentTime;\n\n constructor( currentTime ){\n this.#currentTime = currentTime;\n }\n\n sync(){\n this.#syncFormattedTimeElement();\n this.#syncHourTimeElement();\n this.#syncMinuteTimeElement();\n this.#syncSecondTimeElement();\n }\n\n #syncFormattedTimeElement(){\n let timeFormat = ConfigState.getTimeFormat();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n let elements = document.querySelectorAll( AudioCurrentTimeElement.audioFormattedTimeElementQuery );\n let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours )\n .replace( 'MM', this.#currentTime.minutes )\n .replace( 'SS', this.#currentTime.seconds );\n \n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( activeAudioIndex == elementAudioIndex ){\n element.innerHTML = formattedTime;\n }else{\n element.innerHTML = '00:00';\n }\n })\n }\n\n #syncHourTimeElement(){\n let elements = document.querySelectorAll( AudioCurrentTimeElement.audioHoursTimeElementQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( activeAudioIndex == elementAudioIndex ){\n element.innerHTML = this.#currentTime.hours;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncMinuteTimeElement(){\n let elements = document.querySelectorAll( AudioCurrentTimeElement.audioMinutesTimeElementQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( activeAudioIndex == elementAudioIndex ){\n element.innerHTML = this.#currentTime.minutes;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncSecondTimeElement(){\n let elements = document.querySelectorAll( AudioCurrentTimeElement.audioSecondsTimeElementQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( activeAudioIndex == elementAudioIndex ){\n element.innerHTML = this.#currentTime.seconds;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\n\nexport class CollectionAudioCurrentTimeElement {\n static collectionAudioFormattedTimeElementQuery = '.amplitude-current-time[data-amplitude-collection-key][data-amplitude-audio-index]';\n static collectionAudioHoursTimeElementQuery = '.amplitude-current-hours[data-amplitude-collection-key][data-amplitude-audio-index]';\n static collectionAudioMinutesTimeElementQuery = '.amplitude-current-minutes[data-amplitude-collection-key][data-amplitude-audio-index]';\n static collectionAudioSecondsTimeElementQuery = '.amplitude-current-seconds[data-amplitude-collection-key][data-amplitude-audio-index]';\n\n #currentTime;\n\n constructor( currentTime ){\n this.#currentTime = currentTime;\n }\n\n sync(){\n this.#syncFormattedTimeElement();\n this.#syncHourTimeElement();\n this.#syncMinuteTimeElement();\n this.#syncSecondTimeElement();\n }\n\n #syncFormattedTimeElement(){\n let timeFormat = ConfigState.getTimeFormat();\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioFormattedTimeElementQuery );\n let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours )\n .replace( 'MM', this.#currentTime.minutes )\n .replace( 'SS', this.#currentTime.seconds );\n \n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.innerHTML = formattedTime;\n }else{\n element.innerHTML = '00:00';\n }\n })\n }\n\n #syncHourTimeElement(){\n let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioHoursTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.innerHTML = this.#currentTime.hours;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncMinuteTimeElement(){\n let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioMinutesTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.innerHTML = this.#currentTime.minutes;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n\n #syncSecondTimeElement(){\n let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioSecondsTimeElementQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.innerHTML = this.#currentTime.seconds;\n }else{\n element.innerHTML = '00';\n }\n });\n }\n}","import { GlobalCurrentTimeElement } from \"./TimeElements/CurrentTime/GlobalCurrentTimeElement\";\nimport { CollectionCurrentTimeElement } from \"./TimeElements/CurrentTime/CollectionCurrentTimeElement\";\nimport { AudioCurrentTimeElement } from \"./TimeElements/CurrentTime/AudioCurrentTimeElement\";\nimport { CollectionAudioCurrentTimeElement } from \"./TimeElements/CurrentTime/CollectionAudioCurrentTimeElement\";\n\nimport { GlobalDurationElement } from \"./TimeElements/Duration/GlobalDurationElement\";\nimport { CollectionDurationElement } from \"./TimeElements/Duration/CollectionDurationElement\";\nimport { AudioDurationElement } from \"./TimeElements/Duration/AudioDurationElement\";\nimport { CollectionAudioDurationElement } from \"./TimeElements/Duration/CollectionAudioDurationElement\";\n\nexport class TimeElement {\n syncCurrentTime( currentTime ){\n let globalCurrentTimeElement = new GlobalCurrentTimeElement( currentTime );\n globalCurrentTimeElement.sync();\n\n let collectionCurrentTimeElement = new CollectionCurrentTimeElement( currentTime );\n collectionCurrentTimeElement.sync();\n\n let audioCurrentTimeElement = new AudioCurrentTimeElement( currentTime );\n audioCurrentTimeElement.sync();\n\n let collectionAudioCurrentTimeElement = new CollectionAudioCurrentTimeElement( currentTime );\n collectionAudioCurrentTimeElement.sync();\n }\n\n syncDurationTime(){\n\n }\n\n resetDurationTime(){\n\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from '@/services/ConfigState';\nimport { Time } from '@/services/Time';\n\nexport class GlobalTrackerElement{\n static globalTrackerQuery = 'input[type=\"range\"].amplitude-audio-tracker:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n\n #elements;\n #isIE;\n\n constructor(){\n this.#isIE = ConfigState.isIE();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalTrackerElement.globalTrackerQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#isIE ){\n element.removeEventListener(\"change\", this.#handleInteraction );\n element.addEventListener(\"change\", this.#handleInteraction.bind( this, element ) );\n }else{\n element.removeEventListener(\"input\", this.#handleInteraction);\n element.addEventListener(\"input\", this.#handleInteraction.bind( this, element ) );\n }\n } );\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isLive() ){\n let locationPercentage = element.value;\n let trackedLocation = Time.percentageInSeconds( locationPercentage );\n \n let audio = new Audio();\n audio.setCurrentTime( trackedLocation )\n }\n }\n\n static syncUI( completionPercentage ){\n let elements = document.querySelectorAll( GlobalTrackerElement.globalTrackerQuery );\n\n elements.forEach( ( element ) => {\n element.value = completionPercentage;\n });\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from '@/services/ConfigState';\nimport { Time } from '@/services/Time';\n\nexport class CollectionTrackerElement{\n static collectionTrackerQuery = 'input[type=\"range\"].amplitude-audio-tracker[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n #elements;\n #isIE;\n\n constructor(){\n this.#isIE = ConfigState.isIE();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionTrackerElement.collectionTrackerQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#isIE ){\n element.removeEventListener(\"change\", this.#handleInteraction );\n element.addEventListener(\"change\", this.#handleInteraction.bind( this, element ) );\n }else{\n element.removeEventListener(\"input\", this.#handleInteraction);\n element.addEventListener(\"input\", this.#handleInteraction.bind( this, element ) );\n }\n });\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isLive() ){\n let activeCollectionKey = ConfigState.getActiveCollection();\n let elementCollectionKey = element.getAttribute( 'data-amplitude-collection-key' );\n\n if( activeCollectionKey == elementCollectionKey ){\n let locationPercentage = element.value;\n let trackedLocation = Time.percentageInSeconds( locationPercentage );\n \n let audio = new Audio();\n audio.setCurrentTime( trackedLocation )\n }\n }\n }\n\n static syncUI( completionPercentage ){\n let elements = document.querySelectorAll( CollectionTrackerElement.collectionTrackerQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n \n if( activeCollectionKey == elementCollectionKey ){\n element.value = completionPercentage;\n }else{\n element.value = 0;\n }\n });\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from '@/services/ConfigState';\nimport { Time } from '@/services/Time';\n\nexport class AudioTrackerElement{\n static audioTrackerQuery = 'input[type=\"range\"].amplitude-audio-tracker[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n #elements;\n #isIE;\n\n constructor(){\n this.#isIE = ConfigState.isIE();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioTrackerElement.audioTrackerQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#isIE ){\n element.removeEventListener(\"change\", this.#handleInteraction );\n element.addEventListener(\"change\", this.#handleInteraction.bind( this, element ) );\n }else{\n element.removeEventListener(\"input\", this.#handleInteraction);\n element.addEventListener(\"input\", this.#handleInteraction.bind( this, element ) );\n }\n });\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isLive() ){\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n let elementAudioIndex = element.getAttribute( 'data-amplitude-audio-index' );\n\n if( activeAudioIndex == elementAudioIndex ){\n let locationPercentage = element.value;\n let trackedLocation = Time.percentageInSeconds( locationPercentage );\n \n let audio = new Audio();\n audio.setCurrentTime( trackedLocation )\n }\n }\n }\n\n static syncUI( completionPercentage ){\n let elements = document.querySelectorAll( AudioTrackerElement.audioTrackerQuery );\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n \n if( activeAudioIndex == elementAudioIndex ){\n element.value = completionPercentage;\n }else{\n element.value = 0;\n }\n });\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from '@/services/ConfigState';\nimport { Time } from '@/services/Time';\n\nexport class CollectionAudioTrackerElement{\n static collectionAudioTrackerQuery = 'input[type=\"range\"].amplitude-audio-tracker[data-amplitude-collection-key][data-amplitude-audio-index]';\n\n #elements;\n #isIE;\n\n constructor(){\n this.#isIE = ConfigState.isIE();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioTrackerElement.collectionAudioTrackerQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#isIE ){\n element.removeEventListener(\"change\", this.#handleInteraction );\n element.addEventListener(\"change\", this.#handleInteraction.bind( this, element ) );\n }else{\n element.removeEventListener(\"input\", this.#handleInteraction);\n element.addEventListener(\"input\", this.#handleInteraction.bind( this, element ) );\n }\n });\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isLive() ){\n let activeCollectionKey = ConfigState.getActiveCollection();\n let elementCollectionKey = element.getAttribute( 'data-amplitude-collection-key' );\n\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n let elementAudioIndex = element.getAttribute( 'data-amplitude-audio-index' );\n\n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n let locationPercentage = element.value;\n let trackedLocation = Time.percentageInSeconds( locationPercentage );\n \n let audio = new Audio();\n audio.setCurrentTime( trackedLocation )\n }\n }\n }\n\n static syncUI( completionPercentage ){\n let elements = document.querySelectorAll( CollectionAudioTrackerElement.collectionAudioTrackerQuery );\n let activeCollectionKey = ConfigState.getActiveCollection();\n let activeAudioIndex = ConfigState.getActiveAudioIndex();\n\n elements.forEach( ( element ) => {\n let elementCollectionKey = element.getAttribute('data-amplitude-collection-key');\n let elementAudioIndex = element.getAttribute('data-amplitude-audio-index');\n \n if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){\n element.value = completionPercentage;\n }else{\n element.value = 0;\n }\n });\n }\n}","import { GlobalTrackerElement } from \"./TrackerElements/GlobalTrackerElement\";\nimport { CollectionTrackerElement } from \"./TrackerElements/CollectionTrackerElement\";\nimport { AudioTrackerElement } from \"./TrackerElements/AudioTrackerElement\";\nimport { CollectionAudioTrackerElement } from \"./TrackerElements/CollectionAudioTrackerElement\";\n\nexport class TrackerElement{\n constructor(){\n\n }\n\n setUp(){\n this.#configureGlobalTrackerElement();\n this.#configureCollectionTrackerElement();\n this.#configureAudioTrackerElement();\n this.#configureCollectionAudioTrackerElement();\n }\n\n #configureGlobalTrackerElement(){\n let globalTrackerElement = new GlobalTrackerElement();\n globalTrackerElement.initialize();\n }\n\n #configureCollectionTrackerElement(){\n let collectionTrackerElement = new CollectionTrackerElement();\n collectionTrackerElement.initialize();\n }\n\n #configureAudioTrackerElement(){\n let audioTrackerElement = new AudioTrackerElement();\n audioTrackerElement.initialize();\n }\n\n #configureCollectionAudioTrackerElement(){\n let collectionAudioTrackerElement = new CollectionAudioTrackerElement();\n collectionAudioTrackerElement.initialize();\n }\n\n static syncCurrentTime( currentTime ){\n GlobalTrackerElement.syncUI( currentTime );\n CollectionTrackerElement.syncUI( currentTime );\n AudioTrackerElement.syncUI( currentTime );\n CollectionAudioTrackerElement.syncUI( currentTime );\n }\n}","import { BufferedProgressElement } from '@/elements/BufferedProgressElement';\nimport { ConfigState } from '@/services/ConfigState';\nimport { config } from '@/config.js';\nimport { ProgressElement } from '@/elements/ProgressElement';\nimport { Time } from '@/services/Time';\nimport { TimeElement } from '@/elements/TimeElement';\nimport { TrackerElement } from '@/elements/TrackerElement';\n\nexport class TimeUpdateEvent{\n bind(){\n this.#bindTimeUpdate();\n this.#bindDurationChange();\n }\n\n #bindTimeUpdate(){\n config.audio_element.removeEventListener( \"timeupdate\", this.#handle.bind(this) );\n config.audio_element.addEventListener( \"timeupdate\", this.#handle.bind(this) );\n }\n\n #bindDurationChange(){\n config.audio_element.removeEventListener( \"durationchange\", this.#handle.bind(this) );\n config.audio_element.addEventListener( \"durationchange\", this.#handle.bind(this) );\n }\n\n #handle(){\n ConfigState.updateBufferedTime();\n BufferedProgressElement.syncAll();\n this.#updateTimeInformation();\n this.#runTimeCallbacks();\n }\n\n #updateTimeInformation(){\n if( !ConfigState.isLive() ){\n let time = new Time();\n\n let currentTime = time.computeCurrentTimes();\n let completionPercentage = time.computeAudioCompletionPercentage();\n let duration = time.computeAudioDuration();\n\n let timeElement = new TimeElement();\n timeElement.syncCurrentTime( currentTime );\n timeElement.syncDurationTime( currentTime, duration );\n\n TrackerElement.syncCurrentTime( completionPercentage );\n ProgressElement.syncCurrentTime( completionPercentage );\n }\n }\n\n #runTimeCallbacks(){\n\n }\n}","// import { ProgressEvent } from \"@/events/ProgressEvent\";\nimport { AudioEndedEvent } from \"@/events/AudioEndedEvent\";\nimport { KeyBindingEvents } from \"@/events/KeyBindingEvents\";\nimport { TimeUpdateEvent } from \"@/events/TimeUpdateEvent\";\nimport { Debug } from \"@/services/Debug\";\nimport { config } from \"@/config.js\";\n\nexport class EventManager{\n initializeAllEvents(){\n Debug.writeMessage(\"Starting initialization of event handlers...\");\n\n this.#bindTouchEvents();\n this.#bindTimeUpdateEvents();\n this.#bindKeyBindingEvents();\n this.#bindAudioEndedEvent();\n // this.#bindProgressEvent();\n this.#bindAudioElementEventCallbacks();\n }\n\n #bindTouchEvents(){\n document.addEventListener(\"touchmove\", () => {\n config.is_touch_moving = true;\n });\n\n document.addEventListener(\"touchend\", () => {\n if( !config.is_touch_moving ){\n config.is_touch_moving = false;\n }\n })\n }\n\n #bindTimeUpdateEvents(){\n let timeUpdateEvent = new TimeUpdateEvent();\n timeUpdateEvent.bind();\n }\n\n #bindKeyBindingEvents(){\n let keyBindingEvents = new KeyBindingEvents();\n keyBindingEvents.bind();\n }\n\n #bindAudioEndedEvent(){\n let audioEndedEvent = new AudioEndedEvent();\n audioEndedEvent.bind();\n }\n\n #bindProgressEvent(){\n let progressEvent = new ProgressEvent();\n progressEvent.bind();\n }\n\n #bindAudioElementEventCallbacks(){\n\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation.js\";\nimport { config } from \"@/config\";\nimport { Debug } from \"@/services/Debug\";\n\nexport class CollectionNextElement {\n static collectionNextQuery = '.amplitude-next[data-amplitude-collection-key]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionNextElement.collectionNextQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n let collectionKey = this.getAttribute('data-amplitude-collection-key');\n\n if( collectionKey == config.active_collection ){\n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.next( collectionKey );\n }else{\n Debug.writeMessage(\"You can not go to the next audio on a playlist that is not being played!\");\n }\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Debug } from \"@/services/Debug\";\nimport { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js';\n\nexport class GlobalNextElement {\n static globalNextQuery = '.amplitude-next:not([data-amplitude-collection-key])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalNextElement.globalNextQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( ConfigState.getScope() == 'collection' ){\n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.next();\n }else{\n Debug.writeMessage(\"You can only navigate next when you are playing a collection.\");\n }\n }\n}","import { CollectionNextElement } from \"./NextElements/CollectionNextElement\";\nimport { GlobalNextElement } from \"./NextElements/GlobalNextElement\";\n\n/**\n * Handles the configuration and managing of Next elements\n * \n * A Next element is defined as the following:\n * \n * Element: class=\"amplitude-next\"\n * \n * GLOBAL: class=\"amplitude-next\"\n * Handles next for whatever scope the player is in.\n * \n * COLLECTION: class=\"amplitude-next\" data-amplitude-collection=\"{collection_key}\"\n * Handles the next audio within a specific collection.\n */\nexport class NextElement {\n setUp(){\n this.#configureGlobalNextElement();\n this.#configureCollectionNextElement();\n }\n\n #configureGlobalNextElement(){\n let globalNextElement = new GlobalNextElement();\n globalNextElement.initialize();\n }\n\n #configureCollectionNextElement(){\n let collectionNextElement = new CollectionNextElement();\n collectionNextElement.initialize();\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { MuteElement } from \"./MuteElement\";\nimport { Audio } from \"@/core/Audio\";\n\n/**\n * Handles the configuration and managing of Volume Slider elements\n * \n * A Volume Slider element is defined as the following:\n * \n * Element: class=\"amplitude-volume-slider\"\n * Type: input[type=\"range\"]\n * \n * Whenever this element is interacted with, the audio volume is adjusted no matter where.\n */\nexport class VolumeSliderElement {\n static volumeSliderElementQuery = 'input[type=\"range\"].amplitude-volume-slider';\n\n #elements;\n #ie;\n\n constructor(){\n this.#ie = ConfigState.isIE();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( VolumeSliderElement.volumeSliderElementQuery );\n }\n\n #bindInteractions(){\n if( ConfigState.isIos() ){\n Debug.writeMessage(\n \"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\"\n );\n }else{\n this.#elements.forEach( ( element ) => {\n if( this.#ie ){\n element.removeEventListener( \"change\", this.#handleInteraction );\n element.addEventListener( \"change\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"input\", this.#handleInteraction );\n element.addEventListener( \"input\", this.#handleInteraction );\n }\n });\n }\n }\n\n #handleInteraction(){\n let audio = new Audio();\n audio.setVolume( this.value );\n\n MuteElement.syncElements();\n VolumeSliderElement.syncElements();\n }\n \n\n static syncElements(){\n let elements = document.querySelectorAll( VolumeSliderElement.volumeSliderElementQuery );\n\n elements.forEach( function( element ){\n element.value = ConfigState.getVolume();\n });\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { VolumeSliderElement } from \"./VolumeSliderElement\";\nimport { Debug } from \"@/services/Debug\";\n/**\n * Handles the configuration and managing of Mute elements\n * \n * A Mute element is defined as the following:\n * \n * Element: class=\"amplitude-mute\"\n * \n * Whenever this element is interacted with, the audio is muted no matter where.\n */\nexport class MuteElement {\n static muteElementQuery = '.amplitude-mute';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( MuteElement.muteElementQuery );\n }\n\n #bindInteractions(){\n if( ConfigState.isIos() ){\n Debug.writeMessage(\n \"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\"\n );\n }else{\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n\n if( ConfigState.getVolume() == 0 ){\n audio.setVolume( ConfigState.getPreMuteVolume() );\n }else{\n ConfigState.setPreMuteVolume();\n audio.setVolume( 0 );\n }\n\n MuteElement.syncElements();\n VolumeSliderElement.syncElements();\n }\n }\n\n static syncElements(){\n let elements = document.querySelectorAll( MuteElement.muteElementQuery );\n\n elements.forEach( function( element ){\n if( ConfigState.getVolume() == 0 ){\n element.classList.remove(\"amplitude-not-muted\");\n element.classList.add(\"amplitude-muted\");\n }else{\n element.classList.add(\"amplitude-not-muted\");\n element.classList.remove(\"amplitude-muted\");\n }\n });\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class GlobalPauseElement {\n static globalPauseQuery = '.amplitude-pause:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])';\n \n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalPauseElement.globalPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n audio.pause();\n\n PlayPauseElement.syncAll();\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class CollectionPauseElement{\n static collectionPauseQuery = '.amplitude-pause[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionPauseElement.collectionPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let collectionKey = this.getAttribute('data-amplitude-collection-key');\n \n // Ensure we pause the audio if the active collection is\n // what is controlled by this pause element.\n if( config.active_collection == collectionKey ){\n let audio = new Audio();\n audio.pause();\n\n PlayPauseElement.syncAll();\n }\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { config } from \"../../config\";\n\nexport class AudioPauseElement{\n static audioPauseQuery = \".amplitude-pause[data-amplitude-audio-index]:not([data-amplitude-collection-key])\";\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioPauseElement.audioPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audioIndex = this.getAttribute('data-amplitude-audio-index');\n\n // If the scope is audio and the index of the element matches the active audio\n // index, then we pause the player.\n if( ConfigState.getScope() == 'audio' && ( config.active_index == audioIndex ) ){\n let audio = new Audio();\n audio.pause();\n\n PlayPauseElement.syncAll();\n }\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { config } from \"@/config\";\n\nexport class CollectionAudioPauseElement{\n static collectionAudioPauseQuery = '.amplitude-pause[data-amplitude-collection-key][data-amplitude-audio-index]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioPauseElement.collectionAudioPauseQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let collectionKey = element.getAttribute('data-amplitude-collection-key');\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n\n if( config.active_collection == collectionKey &&\n config.collections[ collectionKey ].active_index == audioIndex ){\n let audio = new Audio();\n audio.pause();\n\n PlayPauseElement.syncAll();\n }\n }\n }\n}","import { GlobalPauseElement } from \"./PauseElements/GlobalPauseElement\";\nimport { CollectionPauseElement } from \"./PauseElements/CollectionPauseElement\";\nimport { AudioPauseElement } from \"./PauseElements/AudioPauseElement\";\nimport { CollectionAudioPauseElement } from \"./PauseElements/CollectionAudioPauseElement\";\n\n/**\n * Handles the configuration and managing of Pause elements.\n * \n * A Pause element is defined as the following:\n * \n * Element: class=\"amplitude-pause\"\n * \n * GLOBAL: class=\"amplitude-pause\"\n * Controls the entire state of the audio player.\n * \n * COLLECTION: class=\"amplitude-pause\" data-amplitude-collection=\"{collection_key}\"\n * Scoped to an individual collection. Will only pause what's within the scope of the collection.\n * \n * AUDIO: class=\"amplitude-pause\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element.\n * \n * AUDIO IN COLLECTION: class=\"amplitude-pause\" data-amplitude-collection-key=\"{collection_key}\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element within a collection.\n */\nexport class PauseElement {\n setUp(){\n this.#configureGlobalPauseElement();\n this.#configureCollectionPauseElement();\n this.#configureAudioPauseElement();\n this.#configureCollectionAudioPauseElement();\n }\n\n #configureGlobalPauseElement(){\n let globalPauseElement = new GlobalPauseElement();\n globalPauseElement.initialize();\n }\n\n #configureCollectionPauseElement(){\n let collectionPauseElement = new CollectionPauseElement();\n collectionPauseElement.initialize();\n }\n\n #configureAudioPauseElement(){\n let audioPauseElement = new AudioPauseElement();\n audioPauseElement.initialize();\n }\n\n #configureCollectionAudioPauseElement(){\n let collectionAudioPauseElement = new CollectionAudioPauseElement();\n collectionAudioPauseElement.initialize();\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class GlobalPlayElement {\n static globalPlayQuery = '.amplitude-play:not([data-amplitude-audio-index]):not([data-amplitude-collection-index])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalPlayElement.globalPlayQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n let audio = new Audio();\n audio.play();\n\n PlayPauseElement.syncAll();\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { Checks as CollectionChecks } from \"@/services/Collections/Checks\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation\";\nimport { Debug } from \"@/services/Debug\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class CollectionPlayElement{\n static collectionPlayQuery = '.amplitude-play[data-amplitude-collection-key]:not([data-amplitude-audio-index])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionPlayElement.collectionPlayQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let collection = this.getAttribute('data-amplitude-collection-key');\n\n if( !CollectionChecks.collectionExists( collection ) ){\n Debug.writeMessage('Collection with key \"'+collection+'\" does not exist! Please define this collection in your configuration.');\n return false;\n }\n\n this.#handleCollectionChanges( collection );\n this.#playAudio();\n\n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( collection ){\n if( CollectionChecks.collectionChanged( collection ) ){\n \n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.setActiveCollection( collection );\n\n // If the collection is shuffled and the collection is changed,\n // we change the audio to be the first audio in the array. Since,\n // we are changing the collection, we are starting at the top.\n if( CollectionChecks.isCollectionShuffled( collection ) ){\n collectionNavigation.changeAudioCollection(\n collection,\n config.collections[ collection ].shuffle_list[0],\n 0,\n true\n );\n }else{\n collectionNavigation.changeAudioCollection(\n collection,\n config.collections[ collection ].audio[0],\n 0\n );\n }\n }\n }\n\n #playAudio(){\n let audio = new Audio();\n audio.play();\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { Checks as AudioChecks } from '@/services/Audio/Checks.js';\nimport { Navigation as AudioNavigation } from '@/services/Audio/Navigation.js';\nimport { Checks as CollectionChecks } from '@/services/Collections/Checks.js';\nimport { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js';\nimport { Debug } from \"@/services/Debug\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class AudioPlayElement {\n static audioPlayQuery = '.amplitude-play[data-amplitude-audio-index]:not([data-amplitude-collection-key])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioPlayElement.audioPlayQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n } );\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){ \n let index = element.getAttribute('data-amplitude-audio-index');\n\n if( !AudioChecks.audioExists( index ) ){\n Debug.writeMessage('Audio with index \"'+index+'\" does not exist! Please add an audio object at this index in your configuration.');\n return false;\n }\n\n this.#handleCollectionChanges( index );\n this.#handleAudioChanges( index );\n this.#playAudio();\n \n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( index ){\n if( CollectionChecks.collectionChanged( null ) ){\n let collectionNavigation = new CollectionNavigation();\n let audioNavigation = new AudioNavigation();\n\n collectionNavigation.setActiveCollection( null );\n audioNavigation.changeAudio(\n config.audio[index], index, true\n );\n }\n }\n\n #handleAudioChanges( index ){\n if( AudioChecks.audioChanged( index ) ){\n let audioNavigation = new AudioNavigation();\n\n audioNavigation.changeAudio(\n config.audio[index], index, true\n );\n }\n }\n\n #playAudio(){\n let audio = new Audio();\n audio.play();\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { Checks as AudioChecks } from '@/services/Audio/Checks.js';\nimport { Checks as CollectionChecks } from '@/services/Collections/Checks.js';\nimport { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js';\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { config } from \"@/config\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\n\nexport class CollectionAudioPlayElement {\n static collectionAudioPlayQuery = '.amplitude-play[data-amplitude-audio-index][data-amplitude-collection-key]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioPlayElement.collectionAudioPlayQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction );\n }\n } );\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let collectionKey = this.getAttribute('data-amplitude-collection-key');\n let audioIndex = this.getAttribute('data-amplitude-audio-index');\n \n this.#handleCollectionChanges( collectionKey, audioIndex );\n this.#handleAudioChanges( collectionKey, audioIndex );\n this.#playAudio();\n\n PlayPauseElement.syncAll();\n }\n }\n\n #handleCollectionChanges( collectionKey, audioIndex ){\n if( CollectionChecks.collectionChanged( collectionKey ) ){\n let collectionNavigation = new CollectionNavigation();\n\n collectionNavigation.setActiveCollection( collectionKey );\n collectionNavigation.changeAudioCollection(\n collectionKey,\n config.collections[ collectionKey ].audio[audioIndex],\n audioIndex,\n true\n );\n }\n }\n\n #handleAudioChanges( collectionKey, audioIndex ){\n if( AudioChecks.audioChanged( audioIndex, collectionKey ) ){\n let collectionNavigation = new CollectionNavigation();\n\n collectionNavigation.changeAudioCollection(\n collectionKey,\n config.collections[ collectionKey ].audio[audioIndex],\n audioIndex,\n true\n );\n }\n }\n\n #playAudio(){\n let audio = new Audio();\n audio.play();\n }\n}","import { GlobalPlayElement } from \"./PlayElements/GlobalPlayElement\";\nimport { CollectionPlayElement } from \"./PlayElements/CollectionPlayElement\";\nimport { AudioPlayElement } from \"./PlayElements/AudioPlayElement\";\nimport { CollectionAudioPlayElement } from \"./PlayElements/CollectionAudioPlayElement\";\n/**\n * Handles the configuration and managing of the play elements.\n * \n * A Play element is defined as the following:\n * \n * Element: class=\"amplitude-play\"\n * \n * GLOBAL: class=\"amplitude-play\"\n * Controls the entire state of the audio player. Will play whatever is active.\n * \n * COLLECTION: class=\"amplitude-play\" data-amplitude-collection-key=\"{collection_key}\"\n * Scoped to an individual collection. Will only play within the collection.\n * \n * AUDIO: class=\"amplitude-play\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element. Will only play a specific piece of audio.\n * \n * AUDIO IN COLLECTION: class=\"amplitude-play\" data-amplitude-collection-key=\"{collection_key}\" data-amplitude-audio-index=\"{audio_index}\"\n * Scoped to an individual audio element within a collection. Will only play a specific piece of audio in a collection.\n */\nexport class PlayElement{\n setUp(){\n this.#configureGlobalPlayElement();\n this.#configureCollectionPlayElement();\n this.#configureAudioPlayElement();\n this.#configureCollectionAudioPlayElement();\n }\n\n #configureGlobalPlayElement(){\n let globalPlayElement = new GlobalPlayElement();\n globalPlayElement.initialize();\n }\n\n #configureCollectionPlayElement(){\n let collectionPlayElement = new CollectionPlayElement();\n collectionPlayElement.initialize();\n }\n\n #configureAudioPlayElement(){\n let audioPlayElement = new AudioPlayElement();\n audioPlayElement.initialize();\n }\n\n #configureCollectionAudioPlayElement(){\n let collectionAudioPlayElement = new CollectionAudioPlayElement();\n collectionAudioPlayElement.initialize();\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\n\nexport class PlaybackSpeedElement {\n static playbackSpeedElementQuery = '.amplitude-playback-speed';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( PlaybackSpeedElement.playbackSpeedElementQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n\n switch( ConfigState.getPlaybackSpeed() ){\n case 1:\n audio.setPlaybackSpeed( 1.5 );\n break;\n case 1.5:\n audio.setPlaybackSpeed( 2 );\n break;\n case 2:\n audio.setPlaybackSpeed( 1 );\n break;\n }\n\n PlaybackSpeedElement.syncElements();\n }\n }\n\n static syncElements(){\n let elements = document.querySelectorAll( PlaybackSpeedElement.playbackSpeedElementQuery );\n\n elements.forEach( function( element ){\n element.classList.remove(\"amplitude-playback-speed-10\");\n element.classList.remove(\"amplitude-playback-speed-15\");\n element.classList.remove(\"amplitude-playback-speed-20\");\n\n switch( ConfigState.getPlaybackSpeed() ){\n case 1:\n element.classList.add(\"amplitude-playback-speed-10\");\n break;\n case 1.5:\n element.classList.add(\"amplitude-playback-speed-15\");\n break;\n case 2:\n element.classList.add(\"amplitude-playback-speed-20\");\n break;\n }\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Debug } from \"@/services/Debug\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation.js\"\n\nexport class CollectionPreviousElement {\n static collectionPreviousQuery = '.amplitude-previous[data-amplitude-collection-key]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionPreviousElement.collectionPreviousQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let collectionKey = this.getAttribute('data-amplitude-collection-key');\n\n if( collectionKey == config.active_collection ){\n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.previous();\n }else{\n Debug.writeMessage(\"You can not go to the previous audio on a playlist that is not being played!\");\n }\n }\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Debug } from \"@/services/Debug\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation.js\"\n\nexport class GlobalPreviousElement {\n static globalPreviousQuery = '.amplitude-previous:not([data-amplitude-collection-key])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalPreviousElement.globalPreviousQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n if( ConfigState.getScope() == 'collection' ){\n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.previous();\n }else{\n Debug.writeMessage(\"You can only navigate previous when you are playing a collection.\");\n }\n }\n }\n}","import { CollectionPreviousElement } from \"./PreviousElements/CollectionPreviousElement\";\nimport { GlobalPreviousElement } from \"./PreviousElements/GlobalPreviousElement\";\n\n/**\n * Handles the configuration and managing of Previous elements\n * \n * A Previous element is defined as the following:\n * \n * Element: class=\"amplitude-previous\"\n * \n * GLOBAL: class=\"amplitude-previous\"\n * Handles previous for whatever scope the player is in.\n * \n * COLLECTION: class=\"amplitude-previous\" data-amplitude-collection=\"{collection_key}\"\n * Handles the previous audio within a specific collection.\n */\nexport class PreviousElement {\n setUp(){\n this.#configureGlobalPreviousElement();\n this.#configureCollectionPreviousElement();\n }\n\n #configureGlobalPreviousElement(){\n let globalPreviousElement = new GlobalPreviousElement();\n globalPreviousElement.initialize();\n }\n\n #configureCollectionPreviousElement(){\n let collectionPreviousElement = new CollectionPreviousElement();\n collectionPreviousElement.initialize(); \n }\n}","import { ConfigState } from '@/services/ConfigState';\n\nexport class Shuffle {\n #collection\n\n constructor( collection ){\n this.#collection = collection;\n }\n\n toggleShuffle( collection ){\n let isShuffled = ConfigState.isCollectionShuffled( collection );\n\n if( isShuffled ){\n ConfigState.setCollectionShuffled( collection, false, [] );\n }else{\n let shuffledAudio = this.#shuffleAudio( collection );\n ConfigState.setCollectionShuffled( collection, true, shuffledAudio );\n }\n }\n\n #shuffleAudio( collection ){\n let audio = ConfigState.getCollectionAudio( collection );\n let shuffleTemp = new Array( audio.length );\n\n audio.forEach( ( audio, index ) => {\n shuffleTemp[ index ] = audio[ index ]\n });\n\n for( let i = audio.length - 1; i > 0; i-- ){\n let randomNumber = Math.floor(\n Math.random() * audio.length + 1\n );\n\n this.#shuffleSwap( shuffleTemp, i, randomNumber - 1);\n }\n\n return shuffleTemp;\n }\n\n #shuffleSwap( list, original, random ){\n let temp = list[ original ];\n list[ original ] = list[ random ];\n list[ random ] = temp;\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Shuffle } from \"@/services/Collections/Shuffle\";\n\nexport class CollectionShuffleElement {\n static collectionShuffleQuery = '.amplitude-shuffle[data-amplitude-collection-key]';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionShuffleElement.collectionShuffleQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n let collectionKey = this.getAttribute('data-amplitude-collection-key');\n\n let shuffle = new Shuffle( collectionKey );\n shuffle.toggleShuffle();\n\n CollectionShuffleElement.syncUI( collectionKey )\n }\n\n static syncUI( collection ){\n let elements = document.querySelectorAll( '.amplitude-shuffle[data-amplitude-collection=\"'+collection+'\"]');\n \n elements.forEach( ( element ) => {\n if( ConfigState.isCollectionShuffled( collection ) ){\n element.classList.add( \"amplitude-shuffle-on\" );\n element.classList.remove( \"amplitude-shuffle-off\" );\n }else{\n element.classList.add( \"amplitude-shuffle-off\" );\n element.classList.remove( \"amplitude-shuffle-on\" );\n }\n });\n }\n}","import { ConfigState } from \"@/services/ConfigState\";\nimport { Shuffle } from \"@/services/Collections/Shuffle\";\nimport { Debug } from \"@/services/Debug\";\nimport { CollectionShuffleElement } from \"./CollectionShuffleElement\";\n\nexport class GlobalShuffleElement {\n static globalShuffleQuery = '.amplitude-shuffle:not([data-amplitude-collection-key])';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( GlobalShuffleElement.globalShuffleQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( ConfigState.getScope() == 'collection' ){\n let collection = ConfigState.getActiveCollection();\n\n let shuffle = new Shuffle( collectionKey );\n shuffle.toggleShuffle();\n\n GlobalShuffleElement.syncUI();\n CollectionShuffleElement.syncUI( collection );\n }else{\n Debug.writeMessage(\"You can only shuffle a collection if you are playing a collection.\");\n }\n }\n\n static syncUI(){\n let elements = document.querySelectorAll( GlobalShuffleElement.globalShuffleQuery );\n let collection = ConfigState.getActiveCollection();\n\n elements.forEach( ( element ) => {\n if( ConfigState.isCollectionShuffled( collection ) ){\n element.classList.add( \"amplitude-shuffle-on\" );\n element.classList.remove( \"amplitude-shuffle-off\" );\n }else{\n element.classList.add( \"amplitude-shuffle-off\" );\n element.classList.remove( \"amplitude-shuffle-on\" );\n }\n });\n }\n}","import { CollectionShuffleElement } from \"./ShuffleElements/CollectionShuffleElement\";\nimport { GlobalShuffleElement } from \"./ShuffleElements/GlobalShuffleElement\";\n\n/**\n * Handles the configuration and managing of Shuffle elements\n * \n * A Shuffle element is defined as the following:\n * \n * Element: class=\"amplitude-shuffle\"\n * \n * GLOBAL: class=\"amplitude-shuffles\"\n * Shuffles the active collection\n * \n * COLLECTION: class=\"amplitude-shuffle\" data-amplitude-collection=\"{collection_key}\"\n * Shuffles the collection identified\n */\nexport class ShuffleElement {\n setUp(){\n this.#configureGlobalShuffleElement();\n this.#configureCollectionShuffleElement();\n }\n\n #configureGlobalShuffleElement(){\n let globalShuffleElement = new GlobalShuffleElement();\n globalShuffleElement.initialize();\n }\n\n #configureCollectionShuffleElement(){\n let collectionShuffleElement = new CollectionShuffleElement();\n collectionShuffleElement.initialize();\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { config } from '@/config';\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { Debug } from \"@/services/Debug\";\nimport { Navigation as AudioNavigation } from '@/services/Audio/Navigation.js';\nimport { PlayPauseElement } from '@/elements/PlayPauseElement';\n\nexport class AudioSkipToElement {\n static audioSkipToElementQuery = \".amplitude-skip-to[data-amplitude-audio-index]:not([data-amplitude-collection-key])\";\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( AudioSkipToElement.audioSkipToElementQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n });\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n let location = element.getAttribute('data-amplitude-location');\n\n if( this.#validElement( audioIndex, location ) ){\n this.#handleAudioChange( audioIndex );\n this.#playAudio();\n PlayPauseElement.syncAll();\n this.#skipToLocation( location );\n }\n }\n }\n\n #validElement( audioIndex, location ){\n if( audioIndex == null ){\n Debug.writeMessage( \"You must add a `data-amplitude-audio-index` attribute to your `amplitude-skip-to` element.\");\n return false;\n }\n\n if( location == null ){\n Debug.writeMessage( \"You must add a `data-amplitude-location` attribute in seconds to your `amplitude-skip-to` element.\");\n return false;\n }\n\n return true;\n }\n\n #handleAudioChange( audioIndex ){\n let audioNavigation = new AudioNavigation();\n audioNavigation.changeAudio(\n config.audio[ parseInt( audioIndex ) ], parseInt( audioIndex ), true\n );\n }\n\n #playAudio(){\n let audio = new Audio();\n audio.play();\n }\n\n #skipToLocation( location ){\n let audio = new Audio();\n audio.skipToLocation( parseInt( location ) );\n }\n}","import { Audio } from '@/core/Audio.js';\nimport { Checks as CollectionChecks } from \"@/services/Collections/Checks\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { Navigation as CollectionNavigation } from \"@/services/Collections/Navigation\";\nimport { PlayPauseElement } from '@/elements/PlayPauseElement';\n\nexport class CollectionAudioSkipToElement {\n static collectionAudioSkipToElementQuery = \".amplitude-skip-to[data-amplitude-audio-index][data-amplitude-collection-key]\";\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n initialize(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( CollectionAudioSkipToElement.collectionAudioSkipToElementQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( (element) => {\n if( this.#mobile ){\n element.removeEventListener(\"touchend\", this.#handleInteraction );\n element.addEventListener(\"touchend\", this.#handleInteraction.bind(this, element) );\n }else{\n element.removeEventListener(\"click\", this.#handleInteraction );\n element.addEventListener(\"click\", this.#handleInteraction.bind(this, element) );\n }\n });\n }\n\n #handleInteraction( element ){\n if( !ConfigState.isTouchMoving() ){\n let audioIndex = element.getAttribute('data-amplitude-audio-index');\n let collectionKey = element.getAttribute('data-amplitude-collection-key');\n let location = element.getAttribute('data-amplitude-location');\n\n if( this.#validElement( audioIndex, collectionKey, location ) ){\n this.#handleCollectionChange( collectionKey );\n this.#handleAudioChange( audioIndex, collectionKey );\n this.#playAudio();\n PlayPauseElement.syncAll();\n this.#skipToLocation( location );\n }\n }\n }\n\n #validElement( audioIndex, collectionKey, location ){\n if( audioIndex == null ){\n Debug.writeMessage( \"You must add a `data-amplitude-audio-index` attribute to your `amplitude-skip-to` element.\");\n return false;\n }\n\n if( collectionKey == null ){\n Debug.writeMessage( \"You must add a valid `data-amplitude-collection-key` attribute to your `amplitude-skip-to` element.\");\n return false;\n }\n\n if( location == null ){\n Debug.writeMessage( \"You must add a `data-amplitude-location` attribute in seconds to your `amplitude-skip-to` element.\");\n return false;\n }\n\n return true;\n }\n\n #handleCollectionChange( collection ){\n if( CollectionChecks.collectionChanged( collection ) ){ \n let collectionNavigation = new CollectionNavigation();\n collectionNavigation.setActiveCollection( collection );\n }\n }\n\n #handleAudioChange( audioIndex, collectionKey ){\n let collectionNavigation = new CollectionNavigation();\n\n collectionNavigation.changeAudioCollection(\n collectionKey,\n config.collections[ collectionKey ].audio[ parseInt( audioIndex ) ],\n parseInt( audioIndex ),\n true\n );\n }\n\n #playAudio(){\n let audio = new Audio();\n audio.play();\n }\n\n #skipToLocation( location ){\n let audio = new Audio();\n audio.skipToLocation( parseInt( location ) );\n }\n}","import { AudioSkipToElement } from \"./SkipToElements/AudioSkipToElement\";\nimport { CollectionAudioSkipToElement } from \"./SkipToElements/CollectionAudioSkipToElement\";\n\nexport class SkipToElement {\n setUp(){\n this.#configureAudioSkipToElement();\n this.#configureCollectionAudioSkipToElement();\n }\n\n #configureAudioSkipToElement(){\n let audioSkipToElement = new AudioSkipToElement();\n audioSkipToElement.initialize();\n }\n\n #configureCollectionAudioSkipToElement(){\n let collectionAudioSkipToElement = new CollectionAudioSkipToElement();\n collectionAudioSkipToElement.initialize();\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { ConfigState } from \"@/services/ConfigState\";\n\n/**\n * Handles the configuration and managing of Stop elements\n * \n * A Stop element is defined as the following:\n * \n * Element: class=\"amplitude-stop\"\n * \n * Whenever this element is interacted with, the audio is stopped no matter where.\n */\nexport class StopElement {\n static stopElementQuery = '.amplitude-stop';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( StopElement.stopElementQuery );\n }\n\n #bindInteractions(){\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n audio.stop();\n\n PlayPauseElement.syncAll();\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { MuteElement } from \"./MuteElement\";\nimport { VolumeSliderElement } from \"./VolumeSliderElement\";\nimport { Debug } from \"@/services/Debug\";\n\n/**\n * Handles the configuration and managing of Volume Down elements\n * \n * A Volume Down element is defined as the following:\n * \n * Element: class=\"amplitude-volume-down\"\n * \n * Whenever this element is interacted with, the audio is muted no matter where.\n */\nexport class VolumeDownElement {\n static volumeDownElementQuery = '.amplitude-volume-down';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( VolumeDownElement.volumeDownElementQuery );\n }\n\n #bindInteractions(){\n if( this.#elements.length > 0 && ConfigState.isIos() ){\n Debug.writeMessage(\n \"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\"\n );\n }else{\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n let currentVolume = ConfigState.getVolume();\n let volumeDecrement = ConfigState.getVolumeDecrement();\n\n if( currentVolume - volumeDecrement > 0 ){\n audio.setVolume( currentVolume - volumeDecrement );\n }else{\n audio.setVolume( 0 );\n }\n\n MuteElement.syncElements();\n VolumeSliderElement.syncElements();\n }\n }\n}","import { Audio } from \"@/core/Audio\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { MuteElement } from \"./MuteElement\";\nimport { VolumeSliderElement } from \"./VolumeSliderElement\";\nimport { Debug } from \"@/services/Debug\";\n\n/**\n * Handles the configuration and managing of Volume Up elements\n * \n * A Volume Up element is defined as the following:\n * \n * Element: class=\"amplitude-volume-up\"\n * \n * Whenever this element is interacted with, the audio is muted no matter where.\n */\nexport class VolumeUpElement {\n static volumeUpElementQuery = '.amplitude-volume-up';\n\n #elements;\n #mobile;\n\n constructor(){\n this.#mobile = ConfigState.isMobile();\n }\n\n setUp(){\n this.#findElements();\n this.#bindInteractions();\n }\n\n #findElements(){\n this.#elements = document.querySelectorAll( VolumeUpElement.volumeUpElementQuery );\n }\n\n #bindInteractions(){\n if( this.#elements.length > 0 && ConfigState.isIos() ){\n Debug.writeMessage(\n \"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\"\n );\n }else{\n this.#elements.forEach( ( element ) => {\n if( this.#mobile ){\n element.removeEventListener( \"touchend\", this.#handleInteraction );\n element.addEventListener( \"touchend\", this.#handleInteraction );\n }else{\n element.removeEventListener( \"click\", this.#handleInteraction );\n element.addEventListener( \"click\", this.#handleInteraction );\n }\n });\n }\n }\n\n #handleInteraction(){\n if( !ConfigState.isTouchMoving() ){\n let audio = new Audio();\n let currentVolume = ConfigState.getVolume();\n let volumeIncrement = ConfigState.getVolumeIncrement();\n\n if( currentVolume + volumeIncrement <= 100 ){\n audio.setVolume( currentVolume + volumeIncrement );\n }else{\n audio.setVolume( 100 );\n }\n\n MuteElement.syncElements();\n VolumeSliderElement.syncElements();\n }\n }\n}","import { NextElement } from \"@/elements/NextElement\";\nimport { MetaDataElement } from \"@/elements/MetaDataElement\";\nimport { MuteElement } from \"@/elements/MuteElement\";\nimport { PauseElement } from \"@/elements/PauseElement\";\nimport { PlayElement } from \"@/elements/PlayElement\";\nimport { PlaybackSpeedElement } from \"@/elements/PlaybackSpeedElement\";\nimport { PlayPauseElement } from \"@/elements/PlayPauseElement\";\nimport { PreviousElement } from \"@/elements/PreviousElement\";\nimport { ShuffleElement } from \"@/elements/ShuffleElement\";\nimport { SkipToElement } from \"@/elements/SkipToElement\";\nimport { StopElement } from \"@/elements/StopElement\";\nimport { TrackerElement } from \"@/elements/TrackerElement\";\nimport { VolumeDownElement } from \"@/elements/VolumeDownElement\";\nimport { VolumeSliderElement } from \"@/elements/VolumeSliderElement\";\nimport { VolumeUpElement } from \"@/elements/VolumeUpElement\";\n\nexport class ElementsManager{\n setVisualElementsDefaults(){\n\n }\n\n initializeElements(){\n this.#initializeMetaData();\n this.#initializePlayElement();\n this.#initializePauseElement();\n this.#initializePlayPauseElement();\n this.#initializeNextElement();\n this.#initializePreviousElement();\n this.#initializeMuteElement();\n this.#initializeVolumeSliderElement();\n this.#initializePlaybackSpeedElement();\n this.#initializeStopElement();\n this.#initializeVolumeDownElement();\n this.#initializeVolumeUpElement();\n this.#initializeShuffleElement();\n this.#initializeSkipToElement();\n this.#initializeTrackerElement();\n }\n\n #initializeMetaData(){\n let metaDataElement = new MetaDataElement();\n metaDataElement.syncMetaData();\n }\n\n #initializePlayElement(){\n let playElement = new PlayElement();\n playElement.setUp();\n }\n\n #initializePauseElement(){\n let pauseElement = new PauseElement();\n pauseElement.setUp();\n }\n\n #initializePlayPauseElement(){\n let playPauseElement = new PlayPauseElement();\n playPauseElement.setUp();\n }\n\n #initializeNextElement(){\n let nextElement = new NextElement();\n nextElement.setUp();\n }\n\n #initializePreviousElement(){\n let previousElement = new PreviousElement();\n previousElement.setUp();\n }\n\n #initializeMuteElement(){\n let muteElement = new MuteElement();\n muteElement.setUp();\n }\n\n #initializeVolumeSliderElement(){\n let volumeSliderElement = new VolumeSliderElement();\n volumeSliderElement.setUp();\n }\n\n #initializePlaybackSpeedElement(){\n let playbackSpeedElement = new PlaybackSpeedElement();\n playbackSpeedElement.setUp();\n }\n\n #initializeStopElement(){\n let stopElement = new StopElement();\n stopElement.setUp();\n }\n\n #initializeVolumeDownElement(){\n let volumeDownElement = new VolumeDownElement();\n volumeDownElement.setUp();\n }\n\n #initializeVolumeUpElement(){\n let volumeUpElement = new VolumeUpElement();\n volumeUpElement.setUp();\n }\n\n #initializeShuffleElement(){\n let shuffleElement = new ShuffleElement();\n shuffleElement.setUp();\n }\n\n #initializeSkipToElement(){\n let skipToElement = new SkipToElement();\n skipToElement.setUp();\n }\n\n #initializeTrackerElement(){\n let trackerElement = new TrackerElement();\n trackerElement.setUp();\n }\n}","import { config } from '@/config.js';\n\nexport class Collections{\n constructor(){\n\n }\n\n initializeCollections(){\n if( config.collections.length > 0 ){\n this.#syncSoundCloudData();\n this.#setActiveIndexes();\n this.#initializeShuffle();\n this.#initializeRepeat();\n }\n }\n\n /**\n * @todo Implement Sound Cloud\n */\n #syncSoundCloudData(){\n // /*\n // Iterate over all of the config's playlists\n // */\n // for (let key in config.playlists) {\n // /*\n // Checks if the playlist key is accurate.\n // */\n // if (config.playlists.hasOwnProperty(key)) {\n // /*\n // Checks if the playlist has songs.\n // */\n // if (config.playlists[key].songs) {\n // /*\n // Iterate over all of the songs in the playlist\n // */\n // for (let i = 0; i < config.playlists[key].songs.length; i++) {\n // if (Checks.isInt(config.playlists[key].songs[i])) {\n // config.playlists[key].songs[i] =\n // config.songs[config.playlists[key].songs[i]];\n \n // config.playlists[key].songs[i].index = i;\n // }\n // /*\n // Check to see if the index for the song in the playlist\n // exists in the songs config.\n // */\n // if (\n // Checks.isInt(config.playlists[key].songs[i]) &&\n // !config.songs[config.playlists[key].songs[i]]\n // ) {\n // Debug.writeMessage(\n // \"The song index: \" +\n // config.playlists[key].songs[i] +\n // \" in playlist with key: \" +\n // key +\n // \" is not defined in your songs array!\"\n // );\n // }\n \n // /*\n // If not an int, then is a dedicated song, just set the index.\n // */\n // if (!Checks.isInt(config.playlists[key].songs[i]) ){\n // config.playlists[key].songs[i].index = i;\n // }\n // }\n // }\n // }\n // }\n }\n\n #setActiveIndexes(){\n config.collections.forEach( ( collection ) => {\n collection.active_index = null;\n } );\n }\n\n #initializeShuffle(){\n config.collections.forEach( ( collection ) => {\n collection.shuffle = false;\n collection.shuffle_list = [];\n } );\n }\n\n #initializeRepeat(){\n config.collections.forEach( ( collection ) => {\n collection.repeat = false;\n } );\n\n console.log( config );\n }\n}","import { Collections } from \"@/init/Collections\";\nimport { config } from '@/config.js';\nimport { MuteElement } from '@/elements/MuteElement';\nimport { PlaybackSpeedElement } from '@/elements/PlaybackSpeedElement';\n\nexport class UserConfig {\n copyUserSettings( userConfig ){\n this.setAudio( userConfig.audio );\n\t\tthis.setCollections( userConfig.collections );\n\t\tthis.setVolume( userConfig.volume );\n\t\tthis.setDebug( userConfig.debug );\n\t\tthis.setDefaultArtwork( userConfig.default_artwork );\n\t\tthis.setPlaybackSpeed( userConfig.playback_speed );\n\t\tthis.setCallbacks( userConfig.callbacks );\n }\n\n setAudio( value ){\n\t\tconfig.audio = value != undefined ? value : [];\n\n\t\tthis.#setDefaultLiveSettings();\n\t\tthis.#setDefaultAudioIndices();\n\t}\n\n #setDefaultLiveSettings(){\n\t\tconfig.audio.forEach( ( audio, index ) => {\n\t\t\tif( audio.live == undefined ){\n\t\t\t\taudio.live = false;\n\t\t\t}\n\t\t});\n\t}\n\n\t#setDefaultAudioIndices(){\n\t\tconfig.audio.forEach( ( audio, index ) => {\n\t\t\taudio.index = index;\n\t\t});\n\t}\n\n setCollections( userCollections ){\n\t\tconfig.collections = userCollections;\n\n let collections = new Collections();\n collections.initializeCollections();\n\t}\n\n setVolume( volume ){\n\t\tconfig.volume.current = volume && volume.initial ? volume.initial : 50;\n\t\tconfig.volume.increment = volume && volume.increment ? volume.increment : 5;\n\t\tconfig.volume.decrement = volume && volume.decrement ? volume.decrement : 5;\n\n\t\tMuteElement.syncElements();\n\t}\n\n setDebug( value ){\n\t\tconfig.debug = value != undefined ? value : false;\n\t}\n\n\tsetDefaultArtwork( value ){\n\t\tconfig.default_artwork = value != undefined ? value : false;\n\t}\n\n setPlaybackSpeed( speed ){\n\t\tconfig.playback_speed = speed != undefined ? speed : 1.0;\n\n\t\tPlaybackSpeedElement.syncElements();\n\t}\n\n\tsetCallbacks( callbacks ){\n\t\tconfig.callbacks = callbacks != undefined ? callbacks : [];\n\t}\n}","import { Debug } from \"@/services/Debug\";\nimport { ConfigState } from \"@/services/ConfigState\";\nimport { EventManager } from \"@/services/EventManager\";\nimport { ElementsManager } from \"@/services/ElementsManager\";\nimport { UserConfig } from \"@/init/UserConfig\";\nimport { config } from \"../config\";\nimport { Navigation as AudioNavigation } from \"@/services/Audio/Navigation\";\nimport { Callbacks } from \"@/services/Callbacks\";\n\nexport class Initializer{\n #element;\n #userConfig;\n #configState;\n #ready = false;\n\n constructor( userConfig, element ){\n this.#configState = new ConfigState();\n this.#configState.setIsMobile();\n this.#userConfig = userConfig;\n this.#element = element;\n }\n\n setup(){\n if( this.#isValidUrl( this.#userConfig ) ){\n this.#loadUserConfig();\n }else{\n this.#prepareAmplitude();\n }\n }\n\n #isValidUrl(url){\n try {\n new URL(url);\n } catch (e) {\n Debug.writeMessage('AmplitudeJS must be initialized with a JSON object or a valid URL.')\n return false;\n }\n\n return true;\n }\n\n #loadUserConfig(){\n fetch( this.#userConfig )\n .then( ( response ) => {\n if( response.status != 200 ){\n throw response.status;\n }else{\n return response.json();\n }\n })\n .then( ( data ) => {\n this.#userConfig = data;\n this.#prepareAmplitude();\n })\n .catch( ( error ) => {\n Debug.writeMessage( error );\n })\n }\n\n #prepareAmplitude(){\n this.#resetConfig();\n this.#copyUserConfig();\n this.#initializeAudio();\n this.#initializeEvents();\n this.#initializeElements();\n this.#initializeCallbacks();\n }\n\n // Ensure we have a blank slate on initialization.\n #resetConfig(){\n this.#configState.resetConfig();\n }\n\n #copyUserConfig(){\n let userConfigInit = new UserConfig();\n userConfigInit.copyUserSettings( this.#userConfig );\n }\n\n #initializeEvents(){\n let eventManager = new EventManager();\n eventManager.initializeAllEvents();\n }\n\n #initializeAudio(){\n let audioNavigator = new AudioNavigation();\n\n if( config.start_audio ){\n \n }else{\n audioNavigator.changeAudio( config.audio[0], 0 );\n }\n }\n\n #initializeElements(){\n let elementsManager = new ElementsManager();\n elementsManager.initializeElements();\n }\n\n #initializeCallbacks(){\n let callbacks = new Callbacks();\n callbacks.handleNativeAudioElementEvents();\n }\n}","import { Initializer } from \"@/init/Initializer\";\n\n/**\n * The main init function. The user will call this through\n * Amplitude.init() and pass in their settings.\n *\n * Public Accessor: Amplitude.init( user_config_json )\n * @access public\n * @param {object|url} userConfig - A URL or JSON object of user defined values that help configure and initialize AmplitudeJS.\n * @param {string|element} element - A unique identifier or DOM Element to bind Amplitude methods to.\n */\nexport function init( userConfig = {}, element = null ){\n let initializer = new Initializer( userConfig, element );\n initializer.setup();\n}","import { config } from \"@/config.js\";\n\n/**\n * Returns the current config for AmplitudeJS\n * \n * Public Method: Amplitude.getConfig()\n * \n * @access public\n * @returns {object} \n */\nexport function getConfig(){\n return config;\n}","import { config } from \"@/config.js\";\n\n/**\n * Returns the key of the active playlist\n * \n * Public Method: Amplitude.getActivePlaylist()\n * \n * @access public\n * @returns {string} \n */\n export function getActivePlaylist(){\n return config.active_playlist;\n}","import { config } from \"@/config.js\";\nimport { Debug } from \"@/services/Debug\";\n\nconst validEventListeners = [\n 'abort',\n 'error',\n 'loadeddata',\n 'loadedmetadata',\n 'loadstart',\n 'pause',\n 'playing',\n 'play',\n 'progress',\n 'ratechange',\n 'seeked',\n 'seeking',\n 'stalled',\n 'suspend',\n 'timeupdate',\n 'volumechange',\n 'waiting',\n 'canplay',\n 'canplaythrough',\n 'durationchange',\n 'ended'\n];\n\n/**\n * Binds an event listener to a native HTML 5 event\n * emitted from the audio element.\n * \n * Public Accessor: Amplitude.addAudioEventListener( event, method )\n * @access public\n * @param string event - The event name you want to bind a listener to.\n * @param string method - The method you are binding to the event.\n */\nexport function addAudioEventListener( event, method ){\n if( validEventListeners.indexOf( event ) > -1 ){\n config.audio_element.addEventListener( event, method );\n }else{\n Debug.writeMessage( \"Invalid event listener. Please see all valid events here: https://www.w3schools.com/tags/ref_av_dom.asp\")\n }\n}","/**\n * @name AmplitudeJS\n * @author Dan Pastori (Server Side Up) \n */\nimport * as initMethods from \"@/methods/init.js\";\nimport * as configMethods from \"@/methods/config.js\";\nimport * as playlistMethods from \"@/methods/playlists.js\";\nimport * as eventListeners from \"@/methods/eventListeners.js\";\n\n/**\n * Amplitude is an interface to the public methods.\n * All public methods are in the /methods directory.\n * These methods use clases to perform functionality.\n * The state is stored in /config.js\n *\n * @module Amplitude\n */\nconst Amplitude = (function(){\n return {\n ...initMethods,\n ...configMethods,\n ...playlistMethods,\n ...eventListeners\n }\n})();\n\nexport default Amplitude;"],"names":["config","version","Debug","Audio","Checks","CollectionChecks","CollectionNavigation","Navigation","AudioChecks","AudioNavigation"],"mappings":"o4GAWaA,EAAS,CAErB,cAAe,GAAI,OACnB,OAAQ,GACR,QAASC,GAGT,gBAAiB,CAAE,EACnB,aAAc,GACd,aAAc,EAEd,eAAgB,KAChB,gBAAiB,KACjB,kBAAmB,KAEnB,eAAgB,EAChB,OAAQ,GACR,aAAc,CAAE,EAKhB,aAAc,GACd,WAAY,GAGZ,UAAW,CAAE,EAEb,MAAO,CAAE,EAET,YAAa,CAAE,EAEf,MAAO,GACP,gBAAiB,GACjB,qBAAsB,GAEtB,YAAa,GAEb,kBAAmB,GACnB,uBAAwB,GAExB,iBAAkB,GAClB,yBAA0B,GAK1B,OAAQ,CACP,QAAS,GACT,UAAW,EACX,UAAW,EACX,eAAgB,EAChB,EAYD,WAAY,CACX,OAAQ,GACR,QAAS,GACT,YAAa,EACb,YAAa,CACb,EASD,gBAAiB,GAEjB,SAAU,EAEV,SAAU,CAAE,EAEZ,cAAe,GAEf,MAAO,EAEP,aAAc,UAEd,YAAa,QAKb,cAAc,CACb,WAAY,GACZ,QAAS,KACT,OAAQ,KACR,SAAU,IACV,EASD,eAAgB,CACf,UAAW,CAAE,EAEb,OAAQ,CAAE,EAEV,OAAQ,EACR,EAED,UAAW,CACX,YAAa,IAEb,MAAO,CAAE,CAER,CACF,ECpIO,MAAMC,CAAK,CACjB,MAAO,cAAc,EAAS,CAC7B,AAAIF,EAAO,OACV,QAAQ,IAAK,EAEd,CACF,CCJO,MAAM,CAAW,CACvB,aAAa,CACZ,AAAK,iEAAiE,KAAM,UAAU,SAAS,EAC9FA,EAAO,OAAS,GAEhBA,EAAO,OAAS,EAEjB,CAED,MAAO,QAAO,CACb,MAAO,oBAAoB,KAAM,UAAU,SAAS,CACpD,CA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TM,GAAsB,CACxB,QACA,QACA,aACA,iBACA,YACA,QACA,UACA,OACA,WACA,aACA,SACA,UACA,UACA,UACA,aACA,eACA,UACA,UACA,iBACA,iBACA,OACJ,EAWO,YAAgC,EAAO,EAAQ,CAClD,AAAI,GAAoB,QAAS,CAAO,EAAG,GACvCA,EAAO,cAAc,iBAAkB,EAAO,CAAM,EAEpDE,EAAM,aAAc,yGAAyG,CAErI,oICzBmB,WAAU,CACzB,MAAO,CACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,EACN,CACL,EAAC"} \ No newline at end of file diff --git a/docs-old/README.md b/docs-old/README.md new file mode 100644 index 00000000..22278698 --- /dev/null +++ b/docs-old/README.md @@ -0,0 +1,50 @@ +--- +title: Overview - AmplitudeJS Documentation +meta: + - name: description + content: Amplitude.js is the HTML5 audio player for the modern era. Using no dependencies, take control of the browser and design a web audio player the way you want it to look. + - name: og:locale + content: en_US + - name: og:type + content: website + - name: og:title + content: Amplitude.js The Open Source HTML5 Audio Player for the Modern Era + - name: og:description + content: Amplitude.js is the open source HTML5 audio player for the modern era. Using no dependencies, take control of the browser and design an audio player the way you want it to look. + - name: og:url + content: https://521dimensions.com/open-source/amplitudejs/docs/ + - name: og:site_name + content: Amplitude.js + - name: og:image + content: https://521dimensions.com/img/open-source/amplitudejs/og-image-amplitudejs.png + - name: og:image:width + content: 1200 + - name: og:image:height + content: 630 + - name: twitter:card + content: summary_large_image + - name: twitter:description + content: Amplitude.js is the open source HTML5 audio player for the modern era. Using no dependencies, take control of the browser and design an audio player the way you want it to look. Available for free on Github. + - name: twitter:title + content: Amplitude.js The HTML Audio Player for the Modern Era + - name: twitter:site + content: "@521dimensions" + - name: twitter:image + content: https://521dimensions.com/img/open-source/amplitudejs/og-image-amplitudejs.png + - name: creator + content: "@521dimensions" +--- + +# Overview + +The concept of Amplitude.js is simple, allow designers to fully control the look +and feel of their audio player through the web without having to understand +advanced scripting. In HTML5, the audio tag allows users to add common audio +formats to their web page. The problem is that the audio playback interface is +controlled by the browser. Amplitude.js puts you in control of the design by +simply applying a class and/or attributes to page elements. You can then style these +elements through CSS and control your audio. Amplitude.js goes above and +beyond by adding playlist capabilities (next, previous, shuffle), song meta +data and visualizations. Amplitude.js is now mobile friendly as well. If it +detects a request coming from a mobile device it will apply a touchstart event +listener instead of a click to the appropriate elements. diff --git a/docs/configuration/README.md b/docs-old/configuration/README.md similarity index 100% rename from docs/configuration/README.md rename to docs-old/configuration/README.md diff --git a/docs/configuration/binding-key-events.md b/docs-old/configuration/binding-key-events.md similarity index 100% rename from docs/configuration/binding-key-events.md rename to docs-old/configuration/binding-key-events.md diff --git a/docs/configuration/callbacks.md b/docs-old/configuration/callbacks.md similarity index 100% rename from docs/configuration/callbacks.md rename to docs-old/configuration/callbacks.md diff --git a/docs/configuration/continue-next.md b/docs-old/configuration/continue-next.md similarity index 100% rename from docs/configuration/continue-next.md rename to docs-old/configuration/continue-next.md diff --git a/docs/configuration/debug.md b/docs-old/configuration/debug.md similarity index 100% rename from docs/configuration/debug.md rename to docs-old/configuration/debug.md diff --git a/docs/configuration/default-art.md b/docs-old/configuration/default-art.md similarity index 100% rename from docs/configuration/default-art.md rename to docs-old/configuration/default-art.md diff --git a/docs/configuration/delay.md b/docs-old/configuration/delay.md similarity index 100% rename from docs/configuration/delay.md rename to docs-old/configuration/delay.md diff --git a/docs/configuration/installation.md b/docs-old/configuration/installation.md similarity index 100% rename from docs/configuration/installation.md rename to docs-old/configuration/installation.md diff --git a/docs/configuration/playback-speed.md b/docs-old/configuration/playback-speed.md similarity index 100% rename from docs/configuration/playback-speed.md rename to docs-old/configuration/playback-speed.md diff --git a/docs/configuration/playlists.md b/docs-old/configuration/playlists.md similarity index 100% rename from docs/configuration/playlists.md rename to docs-old/configuration/playlists.md diff --git a/docs/configuration/shuffle.md b/docs-old/configuration/shuffle.md similarity index 100% rename from docs/configuration/shuffle.md rename to docs-old/configuration/shuffle.md diff --git a/docs/configuration/song-objects.md b/docs-old/configuration/song-objects.md similarity index 100% rename from docs/configuration/song-objects.md rename to docs-old/configuration/song-objects.md diff --git a/docs/configuration/soundcloud-configuration.md b/docs-old/configuration/soundcloud-configuration.md similarity index 100% rename from docs/configuration/soundcloud-configuration.md rename to docs-old/configuration/soundcloud-configuration.md diff --git a/docs/configuration/start-song-start-playlist.md b/docs-old/configuration/start-song-start-playlist.md similarity index 100% rename from docs/configuration/start-song-start-playlist.md rename to docs-old/configuration/start-song-start-playlist.md diff --git a/docs/configuration/volume.md b/docs-old/configuration/volume.md similarity index 100% rename from docs/configuration/volume.md rename to docs-old/configuration/volume.md diff --git a/docs/contributing/README.md b/docs-old/contributing/README.md similarity index 100% rename from docs/contributing/README.md rename to docs-old/contributing/README.md diff --git a/docs/elements/README.md b/docs-old/elements/README.md similarity index 100% rename from docs/elements/README.md rename to docs-old/elements/README.md diff --git a/docs/elements/interactive-elements.md b/docs-old/elements/interactive-elements.md similarity index 100% rename from docs/elements/interactive-elements.md rename to docs-old/elements/interactive-elements.md diff --git a/docs/elements/metadata-elements.md b/docs-old/elements/metadata-elements.md similarity index 100% rename from docs/elements/metadata-elements.md rename to docs-old/elements/metadata-elements.md diff --git a/docs-old/elements/play-button.md b/docs-old/elements/play-button.md new file mode 100644 index 00000000..21dd4164 --- /dev/null +++ b/docs-old/elements/play-button.md @@ -0,0 +1,13 @@ +## Play Button + +There are 4 different levels for a play button. To scope a play button to the type of audio you wish to play, you can apply special attributes to the element. + +The play button element responds to a `click` event on desktop browsers or a `touchstart` event on mobile browsers. + +### Global Play Button + +### Collection Play Button + +### Audio Play Button + +### Audio in Collection Play Button \ No newline at end of file diff --git a/docs-old/elements/volume-down.md b/docs-old/elements/volume-down.md new file mode 100644 index 00000000..e69de29b diff --git a/docs-old/elements/volume-up.md b/docs-old/elements/volume-up.md new file mode 100644 index 00000000..98eb095b --- /dev/null +++ b/docs-old/elements/volume-up.md @@ -0,0 +1,21 @@ +## Volume Up Element + +### Overview +The volume up element increases the global volume level of AmplitudeJS by the amount defined. This amount is an integer value between `0` and `100` with `0` being muted, and `100` as maximum. As a safe default, the increment value is set to `5` which means that on click/touch the volume will increment 5%. + +### Creating a Volume Up Element + +### Related Configuration Variables +Default `5` + +`config.volume.increment` + +On init: +Amplitude.init({ + volume: { + increment: 5 + } +}) + +### Notes +Does not work on iOS diff --git a/docs/functions/README.md b/docs-old/functions/README.md similarity index 100% rename from docs/functions/README.md rename to docs-old/functions/README.md diff --git a/docs/fx/README.md b/docs-old/fx/README.md similarity index 100% rename from docs/fx/README.md rename to docs-old/fx/README.md diff --git a/docs/fx/visualizations.md b/docs-old/fx/visualizations.md similarity index 100% rename from docs/fx/visualizations.md rename to docs-old/fx/visualizations.md diff --git a/docs/fx/waveforms.md b/docs-old/fx/waveforms.md similarity index 100% rename from docs/fx/waveforms.md rename to docs-old/fx/waveforms.md diff --git a/docs/help-and-support/BrowserInfo.png b/docs-old/help-and-support/BrowserInfo.png similarity index 100% rename from docs/help-and-support/BrowserInfo.png rename to docs-old/help-and-support/BrowserInfo.png diff --git a/docs/help-and-support/GetVersion.png b/docs-old/help-and-support/GetVersion.png similarity index 100% rename from docs/help-and-support/GetVersion.png rename to docs-old/help-and-support/GetVersion.png diff --git a/docs/help-and-support/README.md b/docs-old/help-and-support/README.md similarity index 100% rename from docs/help-and-support/README.md rename to docs-old/help-and-support/README.md diff --git a/docs/installation/README.md b/docs-old/installation/README.md similarity index 100% rename from docs/installation/README.md rename to docs-old/installation/README.md diff --git a/docs/installation/initialization.md b/docs-old/installation/initialization.md similarity index 100% rename from docs/installation/initialization.md rename to docs-old/installation/initialization.md diff --git a/docs-old/migrations/5-x-to-6-0.md b/docs-old/migrations/5-x-to-6-0.md new file mode 100644 index 00000000..cbcbd629 --- /dev/null +++ b/docs-old/migrations/5-x-to-6-0.md @@ -0,0 +1,3 @@ +# Upgrading from 5.x to 6.0 + +There are a variety of breaking changes as we move AmplitudeJS into a more professional audio library. The features added aim to improve developer experience while minimizing breaking changes. I'll try to cover all scenarios in this document. If there is anything I've missed, please let me know. \ No newline at end of file diff --git a/docs/migrations/README.md b/docs-old/migrations/README.md similarity index 100% rename from docs/migrations/README.md rename to docs-old/migrations/README.md diff --git a/docs/.gitignore b/docs/.gitignore new file mode 100644 index 00000000..438cb086 --- /dev/null +++ b/docs/.gitignore @@ -0,0 +1,8 @@ +node_modules +*.log* +.nuxt +.nitro +.cache +.output +.env +dist diff --git a/docs/README.md b/docs/README.md index 22278698..d90610e0 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,50 +1,42 @@ ---- -title: Overview - AmplitudeJS Documentation -meta: - - name: description - content: Amplitude.js is the HTML5 audio player for the modern era. Using no dependencies, take control of the browser and design a web audio player the way you want it to look. - - name: og:locale - content: en_US - - name: og:type - content: website - - name: og:title - content: Amplitude.js The Open Source HTML5 Audio Player for the Modern Era - - name: og:description - content: Amplitude.js is the open source HTML5 audio player for the modern era. Using no dependencies, take control of the browser and design an audio player the way you want it to look. - - name: og:url - content: https://521dimensions.com/open-source/amplitudejs/docs/ - - name: og:site_name - content: Amplitude.js - - name: og:image - content: https://521dimensions.com/img/open-source/amplitudejs/og-image-amplitudejs.png - - name: og:image:width - content: 1200 - - name: og:image:height - content: 630 - - name: twitter:card - content: summary_large_image - - name: twitter:description - content: Amplitude.js is the open source HTML5 audio player for the modern era. Using no dependencies, take control of the browser and design an audio player the way you want it to look. Available for free on Github. - - name: twitter:title - content: Amplitude.js The HTML Audio Player for the Modern Era - - name: twitter:site - content: "@521dimensions" - - name: twitter:image - content: https://521dimensions.com/img/open-source/amplitudejs/og-image-amplitudejs.png - - name: creator - content: "@521dimensions" ---- - -# Overview - -The concept of Amplitude.js is simple, allow designers to fully control the look -and feel of their audio player through the web without having to understand -advanced scripting. In HTML5, the audio tag allows users to add common audio -formats to their web page. The problem is that the audio playback interface is -controlled by the browser. Amplitude.js puts you in control of the design by -simply applying a class and/or attributes to page elements. You can then style these -elements through CSS and control your audio. Amplitude.js goes above and -beyond by adding playlist capabilities (next, previous, shuffle), song meta -data and visualizations. Amplitude.js is now mobile friendly as well. If it -detects a request coming from a mobile device it will apply a touchstart event -listener instead of a click to the appropriate elements. +# Nuxt 3 Minimal Starter + +Look at the [nuxt 3 documentation](https://v3.nuxtjs.org) to learn more. + +## Setup + +Make sure to install the dependencies: + +```bash +# yarn +yarn install + +# npm +npm install + +# pnpm +pnpm install --shamefully-hoist +``` + +## Development Server + +Start the development server on http://localhost:3000 + +```bash +npm run dev +``` + +## Production + +Build the application for production: + +```bash +npm run build +``` + +Locally preview production build: + +```bash +npm run preview +``` + +Checkout the [deployment documentation](https://v3.nuxtjs.org/guide/deploy/presets) for more information. diff --git a/docs/components/DocsNavigation.vue b/docs/components/DocsNavigation.vue new file mode 100644 index 00000000..24cfe193 --- /dev/null +++ b/docs/components/DocsNavigation.vue @@ -0,0 +1,33 @@ + + + \ No newline at end of file diff --git a/docs/components/Header.vue b/docs/components/Header.vue new file mode 100644 index 00000000..8e90bd2d --- /dev/null +++ b/docs/components/Header.vue @@ -0,0 +1,53 @@ + + + \ No newline at end of file diff --git a/docs/components/NextPrev.vue b/docs/components/NextPrev.vue new file mode 100644 index 00000000..5b2f49fc --- /dev/null +++ b/docs/components/NextPrev.vue @@ -0,0 +1,34 @@ + + + diff --git a/docs/components/TableOfContents.vue b/docs/components/TableOfContents.vue new file mode 100644 index 00000000..9c7276e9 --- /dev/null +++ b/docs/components/TableOfContents.vue @@ -0,0 +1,38 @@ + + + \ No newline at end of file diff --git a/docs/content/1.getting-started/concepts.md b/docs/content/1.getting-started/concepts.md new file mode 100644 index 00000000..f92015db --- /dev/null +++ b/docs/content/1.getting-started/concepts.md @@ -0,0 +1,10 @@ +--- +layout: docs +--- +## First Page + +### Heading 1 +This is the sub heading under heading 1 + +### Heading 2 +This is the sub heading under heading 2 \ No newline at end of file diff --git a/docs/content/4.interactive-elements/1.buffered-progress.md b/docs/content/4.interactive-elements/1.buffered-progress.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/10.previous.md b/docs/content/4.interactive-elements/10.previous.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/11.progress.md b/docs/content/4.interactive-elements/11.progress.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/12.repeat-audio.md b/docs/content/4.interactive-elements/12.repeat-audio.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/13.repeat.md b/docs/content/4.interactive-elements/13.repeat.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/14.shuffle.md b/docs/content/4.interactive-elements/14.shuffle.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/15.skip-to.md b/docs/content/4.interactive-elements/15.skip-to.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/16.stop.md b/docs/content/4.interactive-elements/16.stop.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/17.time.md b/docs/content/4.interactive-elements/17.time.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/18.tracking-slider.md b/docs/content/4.interactive-elements/18.tracking-slider.md new file mode 100644 index 00000000..22d7b4ef --- /dev/null +++ b/docs/content/4.interactive-elements/18.tracking-slider.md @@ -0,0 +1,28 @@ +--- +layout: docs +--- + +# Tracking Slider +The tracking slider allows the user to track (seek) the currently playing audio. When the user adjusts the slider, the current location in the audio will change. + +There are 4 different scopes to the tracking slider: +1. Global - Tracks in the current audio that is active, no matter scope. +2. Collection - Tracks the audio currently playing within the scope of a collection. +3. Individual Audio - Tracks an individual audio file. +4. Individual Audio in Collection - Tracks the individual audio within the scope of a collection. + +Audio tracking elements *must* be the HTML 5 range element. This will ensure proper functionality when using and is semantically correct. The HTML 5 range element can be a pain to style, but the functionality will be worth it. You could also implement a custom audio tracker using some of the callbacks and publicly facing AmplitudeJS Methods. + +> Note: Features like the tracking element and progress bar depend on the browser being able to request the audio file in arbitrary chunks. Firefox can work around lack of support from the server, but for these features to work properly, your server must support [Content-Range HTTP headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range). + +## Global Tracking Slider +This is the global tracking slider + +## Collection Tracking Slider +Collection Tracking +```html + +``` + +### Collection Tracking Gotcha +This is a tip \ No newline at end of file diff --git a/docs/content/4.interactive-elements/19.volume-down.md b/docs/content/4.interactive-elements/19.volume-down.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/2.container.md b/docs/content/4.interactive-elements/2.container.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/20.volume-slider.md b/docs/content/4.interactive-elements/20.volume-slider.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/21.volume-up.md b/docs/content/4.interactive-elements/21.volume-up.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/3.mute.md b/docs/content/4.interactive-elements/3.mute.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/4.next.md b/docs/content/4.interactive-elements/4.next.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/5.pause.md b/docs/content/4.interactive-elements/5.pause.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/6.playback-speed.md b/docs/content/4.interactive-elements/6.playback-speed.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/7.pause.md b/docs/content/4.interactive-elements/7.pause.md new file mode 100644 index 00000000..758a184a --- /dev/null +++ b/docs/content/4.interactive-elements/7.pause.md @@ -0,0 +1,4 @@ +--- +layout: docs +--- +## Pause \ No newline at end of file diff --git a/docs/content/4.interactive-elements/8.play.md b/docs/content/4.interactive-elements/8.play.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/4.interactive-elements/9.play-pause.md b/docs/content/4.interactive-elements/9.play-pause.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/8.contributing/1.guidelines.md b/docs/content/8.contributing/1.guidelines.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/8.contributing/2.local-development.md b/docs/content/8.contributing/2.local-development.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/8.contributing/3.docs.md b/docs/content/8.contributing/3.docs.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/content/index.md b/docs/content/index.md new file mode 100644 index 00000000..d993f719 --- /dev/null +++ b/docs/content/index.md @@ -0,0 +1,8 @@ +--- +navigation: false +--- + +## Supports + +We offer two ways to support amplitude +blah diff --git a/docs/layouts/docs.vue b/docs/layouts/docs.vue new file mode 100644 index 00000000..44bca6cf --- /dev/null +++ b/docs/layouts/docs.vue @@ -0,0 +1,50 @@ + + + \ No newline at end of file diff --git a/docs/nuxt.config.ts b/docs/nuxt.config.ts new file mode 100644 index 00000000..8bb3bbd2 --- /dev/null +++ b/docs/nuxt.config.ts @@ -0,0 +1,17 @@ +import { defineNuxtConfig } from 'nuxt' +import tailwindTypography from '@tailwindcss/typography' +// https://v3.nuxtjs.org/api/configuration/nuxt.config +export default defineNuxtConfig({ + modules: [ + '@nuxt/content', + '@nuxtjs/tailwindcss' + ], + content: { + documentDriven: true + }, + tailwindcss: { + config: { + plugins: [tailwindTypography] + } + } +}) diff --git a/docs/package.json b/docs/package.json new file mode 100644 index 00000000..c4f9593b --- /dev/null +++ b/docs/package.json @@ -0,0 +1,15 @@ +{ + "private": true, + "scripts": { + "build": "nuxt build", + "dev": "nuxt dev", + "generate": "nuxt generate", + "preview": "nuxt preview" + }, + "devDependencies": { + "@nuxt/content": "npm:@nuxt/content-edge@latest", + "@nuxtjs/tailwindcss": "^5.3.1", + "@tailwindcss/typography": "^0.5.4", + "nuxt": "3.0.0-rc.6" + } +} diff --git a/docs/public/amplitude-logo.svg b/docs/public/amplitude-logo.svg new file mode 100644 index 00000000..cc9a355b --- /dev/null +++ b/docs/public/amplitude-logo.svg @@ -0,0 +1,25 @@ + + + Combined Shape + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/tailwind.config.js b/docs/tailwind.config.js new file mode 100644 index 00000000..b410d5ab --- /dev/null +++ b/docs/tailwind.config.js @@ -0,0 +1,25 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: [], + darkMode: 'class', + theme: { + fontSize: { + xs: ['0.75rem', { lineHeight: '1rem' }], + sm: ['0.875rem', { lineHeight: '1.5rem' }], + base: ['1rem', { lineHeight: '2rem' }], + lg: ['1.125rem', { lineHeight: '1.75rem' }], + xl: ['1.25rem', { lineHeight: '2rem' }], + '2xl': ['1.5rem', { lineHeight: '2.5rem' }], + '3xl': ['2rem', { lineHeight: '2.5rem' }], + '4xl': ['2.5rem', { lineHeight: '3rem' }], + '5xl': ['3rem', { lineHeight: '3.5rem' }], + '6xl': ['3.75rem', { lineHeight: '1' }], + '7xl': ['4.5rem', { lineHeight: '1' }], + '8xl': ['6rem', { lineHeight: '1' }], + '9xl': ['8rem', { lineHeight: '1' }], + }, + plugins: [ + + ], + } +} diff --git a/docs/tsconfig.json b/docs/tsconfig.json new file mode 100644 index 00000000..a7bfa186 --- /dev/null +++ b/docs/tsconfig.json @@ -0,0 +1,4 @@ +{ + // https://v3.nuxtjs.org/concepts/typescript + "extends": "./.nuxt/tsconfig.json" +} diff --git a/docs/yarn.lock b/docs/yarn.lock new file mode 100644 index 00000000..934a232d --- /dev/null +++ b/docs/yarn.lock @@ -0,0 +1,6122 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@ampproject/remapping@^2.1.0": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" + integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w== + dependencies: + "@jridgewell/gen-mapping" "^0.1.0" + "@jridgewell/trace-mapping" "^0.3.9" + +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" + integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== + dependencies: + "@babel/highlight" "^7.18.6" + +"@babel/compat-data@^7.18.8": + version "7.18.8" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.18.8.tgz#2483f565faca607b8535590e84e7de323f27764d" + integrity sha512-HSmX4WZPPK3FUxYp7g2T6EyO8j96HlZJlxmKPSh6KAcqwyDrfx7hKjXpAW/0FhFfTJsR0Yt4lAjLI2coMptIHQ== + +"@babel/core@^7.17.9", "@babel/core@^7.18.10": + version "7.18.10" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.18.10.tgz#39ad504991d77f1f3da91be0b8b949a5bc466fb8" + integrity sha512-JQM6k6ENcBFKVtWvLavlvi/mPcpYZ3+R+2EySDEMSMbp7Mn4FexlbbJVrx2R7Ijhr01T8gyqrOaABWIOgxeUyw== + dependencies: + "@ampproject/remapping" "^2.1.0" + "@babel/code-frame" "^7.18.6" + "@babel/generator" "^7.18.10" + "@babel/helper-compilation-targets" "^7.18.9" + "@babel/helper-module-transforms" "^7.18.9" + "@babel/helpers" "^7.18.9" + "@babel/parser" "^7.18.10" + "@babel/template" "^7.18.10" + "@babel/traverse" "^7.18.10" + "@babel/types" "^7.18.10" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.1" + semver "^6.3.0" + +"@babel/generator@^7.18.10": + version "7.18.12" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.18.12.tgz#fa58daa303757bd6f5e4bbca91b342040463d9f4" + integrity sha512-dfQ8ebCN98SvyL7IxNMCUtZQSq5R7kxgN+r8qYTGDmmSion1hX2C0zq2yo1bsCDhXixokv1SAWTZUMYbO/V5zg== + dependencies: + "@babel/types" "^7.18.10" + "@jridgewell/gen-mapping" "^0.3.2" + jsesc "^2.5.1" + +"@babel/helper-annotate-as-pure@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz#eaa49f6f80d5a33f9a5dd2276e6d6e451be0a6bb" + integrity sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-compilation-targets@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.9.tgz#69e64f57b524cde3e5ff6cc5a9f4a387ee5563bf" + integrity sha512-tzLCyVmqUiFlcFoAPLA/gL9TeYrF61VLNtb+hvkuVaB5SUjW7jcfrglBIX1vUIoT7CLP3bBlIMeyEsIl2eFQNg== + dependencies: + "@babel/compat-data" "^7.18.8" + "@babel/helper-validator-option" "^7.18.6" + browserslist "^4.20.2" + semver "^6.3.0" + +"@babel/helper-create-class-features-plugin@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.18.9.tgz#d802ee16a64a9e824fcbf0a2ffc92f19d58550ce" + integrity sha512-WvypNAYaVh23QcjpMR24CwZY2Nz6hqdOcFdPbNpV56hL5H6KiFheO7Xm1aPdlLQ7d5emYZX7VZwPp9x3z+2opw== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-function-name" "^7.18.9" + "@babel/helper-member-expression-to-functions" "^7.18.9" + "@babel/helper-optimise-call-expression" "^7.18.6" + "@babel/helper-replace-supers" "^7.18.9" + "@babel/helper-split-export-declaration" "^7.18.6" + +"@babel/helper-environment-visitor@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be" + integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg== + +"@babel/helper-function-name@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.18.9.tgz#940e6084a55dee867d33b4e487da2676365e86b0" + integrity sha512-fJgWlZt7nxGksJS9a0XdSaI4XvpExnNIgRP+rVefWh5U7BL8pPuir6SJUmFKRfjWQ51OtWSzwOxhaH/EBWWc0A== + dependencies: + "@babel/template" "^7.18.6" + "@babel/types" "^7.18.9" + +"@babel/helper-hoist-variables@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" + integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-member-expression-to-functions@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz#1531661e8375af843ad37ac692c132841e2fd815" + integrity sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg== + dependencies: + "@babel/types" "^7.18.9" + +"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e" + integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-module-transforms@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.18.9.tgz#5a1079c005135ed627442df31a42887e80fcb712" + integrity sha512-KYNqY0ICwfv19b31XzvmI/mfcylOzbLtowkw+mfvGPAQ3kfCnMLYbED3YecL5tPd8nAYFQFAd6JHp2LxZk/J1g== + dependencies: + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-module-imports" "^7.18.6" + "@babel/helper-simple-access" "^7.18.6" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/helper-validator-identifier" "^7.18.6" + "@babel/template" "^7.18.6" + "@babel/traverse" "^7.18.9" + "@babel/types" "^7.18.9" + +"@babel/helper-optimise-call-expression@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz#9369aa943ee7da47edab2cb4e838acf09d290ffe" + integrity sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.18.9.tgz#4b8aea3b069d8cb8a72cdfe28ddf5ceca695ef2f" + integrity sha512-aBXPT3bmtLryXaoJLyYPXPlSD4p1ld9aYeR+sJNOZjJJGiOpb+fKfh3NkcCu7J54nUJwCERPBExCCpyCOHnu/w== + +"@babel/helper-replace-supers@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.18.9.tgz#1092e002feca980fbbb0bd4d51b74a65c6a500e6" + integrity sha512-dNsWibVI4lNT6HiuOIBr1oyxo40HvIVmbwPUm3XZ7wMh4k2WxrxTqZwSqw/eEmXDS9np0ey5M2bz9tBmO9c+YQ== + dependencies: + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-member-expression-to-functions" "^7.18.9" + "@babel/helper-optimise-call-expression" "^7.18.6" + "@babel/traverse" "^7.18.9" + "@babel/types" "^7.18.9" + +"@babel/helper-simple-access@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz#d6d8f51f4ac2978068df934b569f08f29788c7ea" + integrity sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-split-export-declaration@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" + integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-string-parser@^7.18.10": + version "7.18.10" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.18.10.tgz#181f22d28ebe1b3857fa575f5c290b1aaf659b56" + integrity sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw== + +"@babel/helper-validator-identifier@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.18.6.tgz#9c97e30d31b2b8c72a1d08984f2ca9b574d7a076" + integrity sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g== + +"@babel/helper-validator-option@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8" + integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw== + +"@babel/helpers@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.18.9.tgz#4bef3b893f253a1eced04516824ede94dcfe7ff9" + integrity sha512-Jf5a+rbrLoR4eNdUmnFu8cN5eNJT6qdTdOg5IHIzq87WwyRw9PwguLFOWYgktN/60IP4fgDUawJvs7PjQIzELQ== + dependencies: + "@babel/template" "^7.18.6" + "@babel/traverse" "^7.18.9" + "@babel/types" "^7.18.9" + +"@babel/highlight@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" + integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== + dependencies: + "@babel/helper-validator-identifier" "^7.18.6" + chalk "^2.0.0" + js-tokens "^4.0.0" + +"@babel/parser@^7.16.4", "@babel/parser@^7.18.10", "@babel/parser@^7.18.11": + version "7.18.11" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.11.tgz#68bb07ab3d380affa9a3f96728df07969645d2d9" + integrity sha512-9JKn5vN+hDt0Hdqn1PiJ2guflwP+B6Ga8qbDuoF0PzzVhrzsKIJo8yGqVk6CmMHiMei9w1C1Bp9IMJSIK+HPIQ== + +"@babel/plugin-syntax-import-meta@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" + integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-jsx@^7.0.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0" + integrity sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-syntax-typescript@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.18.6.tgz#1c09cd25795c7c2b8a4ba9ae49394576d4133285" + integrity sha512-mAWAuq4rvOepWCBid55JuRNvpTNf2UGVgoz4JV0fXEKolsVZDzsa4NqCef758WZJj/GDu0gVGItjKFiClTAmZA== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-transform-typescript@^7.16.8": + version "7.18.12" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.18.12.tgz#712e9a71b9e00fde9f8c0238e0cceee86ab2f8fd" + integrity sha512-2vjjam0cum0miPkenUbQswKowuxs/NjMwIKEq0zwegRxXk12C9YOF9STXnaUptITOtOJHKHpzvvWYOjbm6tc0w== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.18.9" + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-syntax-typescript" "^7.18.6" + +"@babel/standalone@^7.18.11": + version "7.18.12" + resolved "https://registry.yarnpkg.com/@babel/standalone/-/standalone-7.18.12.tgz#4c0abdf1b5213394e73a0ba5500dcc287194a20d" + integrity sha512-wDh3K5IUJiSMAY0MLYBFoCaj2RCZwvDz5BHn2uHat9KOsGWEVDFgFQFIOO+81Js2phFKNppLC45iOCsZVfJniw== + +"@babel/template@^7.0.0", "@babel/template@^7.18.10", "@babel/template@^7.18.6": + version "7.18.10" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71" + integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA== + dependencies: + "@babel/code-frame" "^7.18.6" + "@babel/parser" "^7.18.10" + "@babel/types" "^7.18.10" + +"@babel/traverse@^7.0.0", "@babel/traverse@^7.18.10", "@babel/traverse@^7.18.9": + version "7.18.11" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.18.11.tgz#3d51f2afbd83ecf9912bcbb5c4d94e3d2ddaa16f" + integrity sha512-TG9PiM2R/cWCAy6BPJKeHzNbu4lPzOSZpeMfeNErskGpTJx6trEvFaVCbDvpcxwy49BKWmEPwiW8mrysNiDvIQ== + dependencies: + "@babel/code-frame" "^7.18.6" + "@babel/generator" "^7.18.10" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-function-name" "^7.18.9" + "@babel/helper-hoist-variables" "^7.18.6" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/parser" "^7.18.11" + "@babel/types" "^7.18.10" + debug "^4.1.0" + globals "^11.1.0" + +"@babel/types@^7.0.0", "@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9": + version "7.18.10" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.10.tgz#4908e81b6b339ca7c6b7a555a5fc29446f26dde6" + integrity sha512-MJvnbEiiNkpjo+LknnmRrqbY1GPUUggjv+wQVjetM/AONoupqRALB7I6jGqNUAZsKcRIEu2J6FRFvsczljjsaQ== + dependencies: + "@babel/helper-string-parser" "^7.18.10" + "@babel/helper-validator-identifier" "^7.18.6" + to-fast-properties "^2.0.0" + +"@cloudflare/kv-asset-handler@^0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.2.0.tgz#c9959bbd7a1c40bd7c674adae98aa8c8d0e5ca68" + integrity sha512-MVbXLbTcAotOPUj0pAMhVtJ+3/kFkwJqc5qNOleOZTv6QkZZABDMS21dSrSlVswEHwrpWC03e4fWytjqKvuE2A== + dependencies: + mime "^3.0.0" + +"@csstools/selector-specificity@^2.0.0": + version "2.0.2" + resolved "https://registry.yarnpkg.com/@csstools/selector-specificity/-/selector-specificity-2.0.2.tgz#1bfafe4b7ed0f3e4105837e056e0a89b108ebe36" + integrity sha512-IkpVW/ehM1hWKln4fCA3NzJU8KwD+kIOvPZA4cqxoJHtE21CCzjyp+Kxbu0i5I4tBNOlXPL9mjwnWlL0VEG4Fg== + +"@esbuild/linux-loong64@0.14.53": + version "0.14.53" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.14.53.tgz#251b4cd6760fadb4d68a05815e6dc5e432d69cd6" + integrity sha512-W2dAL6Bnyn4xa/QRSU3ilIK4EzD5wgYXKXJiS1HDF5vU3675qc2bvFyLwbUcdmssDveyndy7FbitrCoiV/eMLg== + +"@ioredis/commands@^1.1.1": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@ioredis/commands/-/commands-1.2.0.tgz#6d61b3097470af1fdbbe622795b8921d42018e11" + integrity sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg== + +"@jridgewell/gen-mapping@^0.1.0": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996" + integrity sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w== + dependencies: + "@jridgewell/set-array" "^1.0.0" + "@jridgewell/sourcemap-codec" "^1.4.10" + +"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9" + integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A== + dependencies: + "@jridgewell/set-array" "^1.0.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.9" + +"@jridgewell/resolve-uri@^3.0.3": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" + integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== + +"@jridgewell/set-array@^1.0.0", "@jridgewell/set-array@^1.0.1": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" + integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== + +"@jridgewell/source-map@^0.3.2": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.2.tgz#f45351aaed4527a298512ec72f81040c998580fb" + integrity sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw== + dependencies: + "@jridgewell/gen-mapping" "^0.3.0" + "@jridgewell/trace-mapping" "^0.3.9" + +"@jridgewell/sourcemap-codec@^1.4.10": + version "1.4.14" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" + integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== + +"@jridgewell/trace-mapping@^0.3.9": + version "0.3.14" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz#b231a081d8f66796e475ad588a1ef473112701ed" + integrity sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ== + dependencies: + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" + +"@koa/router@^9.0.1": + version "9.4.0" + resolved "https://registry.yarnpkg.com/@koa/router/-/router-9.4.0.tgz#734b64c0ae566eb5af752df71e4143edc4748e48" + integrity sha512-dOOXgzqaDoHu5qqMEPLKEgLz5CeIA7q8+1W62mCvFVCOqeC71UoTGJ4u1xUSOpIl2J1x2pqrNULkFteUeZW3/A== + dependencies: + debug "^4.1.1" + http-errors "^1.7.3" + koa-compose "^4.1.0" + methods "^1.1.2" + path-to-regexp "^6.1.0" + +"@mapbox/node-pre-gyp@^1.0.5": + version "1.0.9" + resolved "https://registry.yarnpkg.com/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.9.tgz#09a8781a3a036151cdebbe8719d6f8b25d4058bc" + integrity sha512-aDF3S3rK9Q2gey/WAttUlISduDItz5BU3306M9Eyv6/oS40aMprnopshtlKTykxRNIBEZuRMaZAnbrQ4QtKGyw== + dependencies: + detect-libc "^2.0.0" + https-proxy-agent "^5.0.0" + make-dir "^3.1.0" + node-fetch "^2.6.7" + nopt "^5.0.0" + npmlog "^5.0.1" + rimraf "^3.0.2" + semver "^7.3.5" + tar "^6.1.11" + +"@netlify/functions@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@netlify/functions/-/functions-1.0.0.tgz#5b6c02fafc567033c93b15a080cc021e5f10f254" + integrity sha512-7fnJv3vr8uyyyOYPChwoec6MjzsCw1CoRUO2DhQ1BD6bOyJRlD4DUaOOGlMILB2LCT8P24p5LexEGx8AJb7xdA== + dependencies: + is-promise "^4.0.0" + +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + +"@nodelib/fs.walk@^1.2.3": + version "1.2.8" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + +"@nuxt/content@npm:@nuxt/content-edge@latest": + version "2.1.0-27661776.91d257e" + resolved "https://registry.yarnpkg.com/@nuxt/content-edge/-/content-edge-2.1.0-27661776.91d257e.tgz#c2b8a089870a14a56fc889e55fc100d043d0c04c" + integrity sha512-4He/82ZK2T0GGtcAxYhWUwgTi8vRl9thsBZvBZD6cCs7aufjVGz9CJV1mZmhuDhr2Pp0b+eXlKzripvgACr6cg== + dependencies: + "@nuxt/kit" "^3.0.0-rc.6" + consola "^2.15.3" + csvtojson "^2.0.10" + defu "^6.0.0" + destr "^1.1.1" + detab "^3.0.1" + html-tags "^3.2.0" + json5 "^2.2.1" + listhen "^0.2.13" + mdast-util-to-hast "^12.2.0" + mdurl "^1.0.1" + ohash "^0.1.5" + pathe "^0.3.3" + property-information "^6.1.1" + rehype-external-links "^2.0.0" + rehype-raw "^6.1.1" + rehype-slug "^5.0.1" + rehype-sort-attribute-values "^4.0.0" + rehype-sort-attributes "^4.0.0" + remark-emoji "^3.0.2" + remark-gfm "^3.0.1" + remark-mdc "^1.0.4" + remark-parse "^10.0.1" + remark-rehype "^10.1.0" + remark-squeeze-paragraphs "^5.0.1" + scule "^0.3.2" + shiki-es "^0.1.2" + slugify "^1.6.5" + ufo "^0.8.5" + unified "^10.1.2" + unist-builder "^3.0.0" + unist-util-position "^4.0.3" + unist-util-visit "^4.1.0" + unstorage "^0.5.6" + ws "^8.8.1" + +"@nuxt/devalue@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@nuxt/devalue/-/devalue-2.0.0.tgz#c7bd7e9a516514e612d5d2e511ffc399e0eac322" + integrity sha512-YBI/6o2EBz02tdEJRBK8xkt3zvOFOWlLBf7WKYGBsSYSRtjjgrqPe2skp6VLLmKx5WbHHDNcW+6oACaurxGzeA== + +"@nuxt/kit@3.0.0-rc.6", "@nuxt/kit@^3.0.0-rc.5", "@nuxt/kit@^3.0.0-rc.6": + version "3.0.0-rc.6" + resolved "https://registry.yarnpkg.com/@nuxt/kit/-/kit-3.0.0-rc.6.tgz#b59c10639cb591bdc5a63164fb352b344230a065" + integrity sha512-+lxSd6dSWlAzMXfGOPcY4856xnMF1Ck1rycFUZ+K2QYiDXphq/fiW2eMaWLVvqgPyL2Box2WzVDZJ6C5ceptcw== + dependencies: + "@nuxt/schema" "^3.0.0-rc.6" + c12 "^0.2.8" + consola "^2.15.3" + defu "^6.0.0" + globby "^13.1.2" + hash-sum "^2.0.0" + ignore "^5.2.0" + jiti "^1.14.0" + knitwork "^0.1.2" + lodash.template "^4.5.0" + mlly "^0.5.4" + pathe "^0.3.2" + pkg-types "^0.3.3" + scule "^0.2.1" + semver "^7.3.7" + unctx "^1.1.4" + unimport "^0.4.5" + untyped "^0.4.4" + +"@nuxt/postcss8@^1.1.3": + version "1.1.3" + resolved "https://registry.yarnpkg.com/@nuxt/postcss8/-/postcss8-1.1.3.tgz#a7f8f6f2a664430bbdd3b175498eb693e0b1b351" + integrity sha512-CdHtErhvQwueNZPBOmlAAKrNCK7aIpZDYhtS7TzXlSgPHHox1g3cSlf+Ke9oB/8t4mNNjdB+prclme2ibuCOEA== + dependencies: + autoprefixer "^10.2.5" + css-loader "^5.0.0" + defu "^3.2.2" + postcss "^8.1.10" + postcss-import "^13.0.0" + postcss-loader "^4.1.0" + postcss-url "^10.1.1" + semver "^7.3.4" + +"@nuxt/schema@^3.0.0-rc.6": + version "3.0.0-rc.6" + resolved "https://registry.yarnpkg.com/@nuxt/schema/-/schema-3.0.0-rc.6.tgz#47baab10792057c799cd60ab2570d4fa20d65e1d" + integrity sha512-BcD5YtWRhn+jU2DlzuI1TeITFeOt5x6qm2KeaU/d5jzJ0oZDzmZwKsAimLtRbHwyU6/kKa+zFbK6pp5obm1XLg== + dependencies: + c12 "^0.2.8" + create-require "^1.1.1" + defu "^6.0.0" + jiti "^1.14.0" + pathe "^0.3.2" + postcss-import-resolver "^2.0.0" + scule "^0.2.1" + std-env "^3.1.1" + ufo "^0.8.5" + unimport "^0.4.5" + +"@nuxt/telemetry@^2.1.3": + version "2.1.4" + resolved "https://registry.yarnpkg.com/@nuxt/telemetry/-/telemetry-2.1.4.tgz#3a72fd9ff9ec6381a471dcf58252858d38166464" + integrity sha512-Yq/WJiuRbQOWWZe9aCsGts2hAjr0r6io3LT23ULzcUod4U6pBQWk3XhSLMWrjRpkvPqSe6oqDVv0WhdSKaFI8g== + dependencies: + "@nuxt/kit" "3.0.0-rc.6" + chalk "^5.0.1" + ci-info "^3.3.2" + consola "^2.15.3" + create-require "^1.1.1" + defu "^6.0.0" + destr "^1.1.1" + dotenv "^16.0.1" + fs-extra "^10.1.0" + git-url-parse "^12.0.0" + inquirer "^9.1.0" + is-docker "^3.0.0" + jiti "^1.14.0" + mri "^1.2.0" + nanoid "^4.0.0" + node-fetch "^3.2.10" + ohmyfetch "^0.4.18" + parse-git-config "^3.0.0" + rc9 "^1.2.2" + std-env "^3.1.1" + +"@nuxt/ui-templates@^0.2.1": + version "0.2.2" + resolved "https://registry.yarnpkg.com/@nuxt/ui-templates/-/ui-templates-0.2.2.tgz#bf6bb59c644c3981aa30449763ac05eefd566576" + integrity sha512-M6/x5Rvz/+YiYdEQISEXuVstu2S71lu2Q9rlQv/SQG3gm+u0O7ZNxvQDx8RFMCYitf99MhOYUArXz36UtjwyHw== + +"@nuxt/vite-builder@^3.0.0-rc.6": + version "3.0.0-rc.6" + resolved "https://registry.yarnpkg.com/@nuxt/vite-builder/-/vite-builder-3.0.0-rc.6.tgz#f5d43c1c6e249094a47751df84306a6e627ba260" + integrity sha512-nQ1J3A1IdDAKLwBOCNLKyk6wlefIpIrx8JZn5RQ7+IRujYRX9ed+eE+T+FMa1Mb4/3l1eDJkZ410gpffM+w0ew== + dependencies: + "@nuxt/kit" "^3.0.0-rc.6" + "@rollup/plugin-replace" "^4.0.0" + "@vitejs/plugin-vue" "^2.3.3" + "@vitejs/plugin-vue-jsx" "^1.3.10" + autoprefixer "^10.4.7" + chokidar "^3.5.3" + cssnano "^5.1.12" + defu "^6.0.0" + esbuild "^0.14.49" + escape-string-regexp "^5.0.0" + estree-walker "^3.0.1" + externality "^0.2.2" + fs-extra "^10.1.0" + get-port-please "^2.5.0" + h3 "^0.7.10" + knitwork "^0.1.2" + magic-string "^0.26.2" + mlly "^0.5.4" + ohash "^0.1.4" + pathe "^0.3.2" + perfect-debounce "^0.1.3" + postcss "^8.4.14" + postcss-import "^14.1.0" + postcss-url "^10.1.3" + rollup "^2.77.0" + rollup-plugin-visualizer "^5.7.1" + ufo "^0.8.5" + unplugin "^0.7.2" + vite "^2.9.14" + vite-node "^0.18.1" + vite-plugin-checker "^0.4.9" + +"@nuxtjs/tailwindcss@^5.3.1": + version "5.3.1" + resolved "https://registry.yarnpkg.com/@nuxtjs/tailwindcss/-/tailwindcss-5.3.1.tgz#5c90ba3df4782653f0c625ea7eb7e898fa2844c1" + integrity sha512-NrnYUA65DWG9cB6wLdK7NMhaDIIAbqxmMueGIvqy8xuTfHGNvtjFZQY2ywu60N70cjIYqYnbyJURj+PQoNN9Ew== + dependencies: + "@nuxt/kit" "^3.0.0-rc.5" + "@nuxt/postcss8" "^1.1.3" + "@types/tailwindcss" "^3.0.11" + autoprefixer "^10.4.7" + chalk "^5.0.1" + clear-module "^4.1.2" + consola "^2.15.3" + defu "^6.0.0" + postcss "^8.4.14" + postcss-custom-properties "^12.1.8" + postcss-nesting "^10.1.10" + tailwind-config-viewer "^1.7.1" + tailwindcss "^3.1.6" + ufo "^0.8.5" + +"@rollup/plugin-alias@^3.1.9": + version "3.1.9" + resolved "https://registry.yarnpkg.com/@rollup/plugin-alias/-/plugin-alias-3.1.9.tgz#a5d267548fe48441f34be8323fb64d1d4a1b3fdf" + integrity sha512-QI5fsEvm9bDzt32k39wpOwZhVzRcL5ydcffUHMyLVaVaLeC70I8TJZ17F1z1eMoLu4E/UOcH9BWVkKpIKdrfiw== + dependencies: + slash "^3.0.0" + +"@rollup/plugin-commonjs@^22.0.1": + version "22.0.2" + resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-22.0.2.tgz#ee8ca8415cda30d383b4096aad5222435b4b69b6" + integrity sha512-//NdP6iIwPbMTcazYsiBMbJW7gfmpHom33u1beiIoHDEM0Q9clvtQB1T0efvMqHeKsGohiHo97BCPCkBXdscwg== + dependencies: + "@rollup/pluginutils" "^3.1.0" + commondir "^1.0.1" + estree-walker "^2.0.1" + glob "^7.1.6" + is-reference "^1.2.1" + magic-string "^0.25.7" + resolve "^1.17.0" + +"@rollup/plugin-inject@^4.0.4": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@rollup/plugin-inject/-/plugin-inject-4.0.4.tgz#fbeee66e9a700782c4f65c8b0edbafe58678fbc2" + integrity sha512-4pbcU4J/nS+zuHk+c+OL3WtmEQhqxlZ9uqfjQMQDOHOPld7PsCd8k5LWs8h5wjwJN7MgnAn768F2sDxEP4eNFQ== + dependencies: + "@rollup/pluginutils" "^3.1.0" + estree-walker "^2.0.1" + magic-string "^0.25.7" + +"@rollup/plugin-json@^4.1.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-4.1.0.tgz#54e09867ae6963c593844d8bd7a9c718294496f3" + integrity sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw== + dependencies: + "@rollup/pluginutils" "^3.0.8" + +"@rollup/plugin-node-resolve@^13.3.0": + version "13.3.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.3.0.tgz#da1c5c5ce8316cef96a2f823d111c1e4e498801c" + integrity sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw== + dependencies: + "@rollup/pluginutils" "^3.1.0" + "@types/resolve" "1.17.1" + deepmerge "^4.2.2" + is-builtin-module "^3.1.0" + is-module "^1.0.0" + resolve "^1.19.0" + +"@rollup/plugin-replace@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-4.0.0.tgz#e34c457d6a285f0213359740b43f39d969b38a67" + integrity sha512-+rumQFiaNac9y64OHtkHGmdjm7us9bo1PlbgQfdihQtuNxzjpaB064HbRnewUOggLQxVCCyINfStkgmBeQpv1g== + dependencies: + "@rollup/pluginutils" "^3.1.0" + magic-string "^0.25.7" + +"@rollup/plugin-wasm@^5.2.0": + version "5.2.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-wasm/-/plugin-wasm-5.2.0.tgz#2bcd2de23c67b6067b1477566b680d677814a145" + integrity sha512-PR3ff67ls2Kr9H04pZ24wJYPZq0YV+UHySpk7OuAJxyc7o5Q8NHFdwi4pfMtJkJkqfN1/QY/nq46SoRDoDvK2w== + +"@rollup/pluginutils@^3.0.8", "@rollup/pluginutils@^3.1.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b" + integrity sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg== + dependencies: + "@types/estree" "0.0.39" + estree-walker "^1.0.1" + picomatch "^2.2.2" + +"@rollup/pluginutils@^4.2.0", "@rollup/pluginutils@^4.2.1": + version "4.2.1" + resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-4.2.1.tgz#e6c6c3aba0744edce3fb2074922d3776c0af2a6d" + integrity sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ== + dependencies: + estree-walker "^2.0.1" + picomatch "^2.2.2" + +"@tailwindcss/typography@^0.5.4": + version "0.5.4" + resolved "https://registry.yarnpkg.com/@tailwindcss/typography/-/typography-0.5.4.tgz#ad8c9e6808bae297bb7826742e4789f2a9f09a48" + integrity sha512-QEdg40EmGvE7kKoDei8zr5sf4D1pIayHj4R31bH3lX8x2BtTiR+jNejYPOkhbmy3DXgkMF9jC8xqNiGFAuL9Sg== + dependencies: + lodash.castarray "^4.4.0" + lodash.isplainobject "^4.0.6" + lodash.merge "^4.6.2" + +"@trysound/sax@0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@trysound/sax/-/sax-0.2.0.tgz#cccaab758af56761eb7bf37af6f03f326dd798ad" + integrity sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA== + +"@types/debug@^4.0.0": + version "4.1.7" + resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.7.tgz#7cc0ea761509124709b8b2d1090d8f6c17aadb82" + integrity sha512-9AonUzyTjXXhEOa0DnqpzZi6VHlqKMswga9EXjpXnnqxwLtdvPPtlO8evrI5D9S6asFRCQ6v+wpiUKbw+vKqyg== + dependencies: + "@types/ms" "*" + +"@types/estree@*": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.0.tgz#5fb2e536c1ae9bf35366eed879e827fa59ca41c2" + integrity sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ== + +"@types/estree@0.0.39": + version "0.0.39" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" + integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== + +"@types/hast@^2.0.0": + version "2.3.4" + resolved "https://registry.yarnpkg.com/@types/hast/-/hast-2.3.4.tgz#8aa5ef92c117d20d974a82bdfb6a648b08c0bafc" + integrity sha512-wLEm0QvaoawEDoTRwzTXp4b4jpwiJDvR5KMnFnVodm3scufTlBOWRD6N1OBf9TZMhjlNsSfcO5V+7AF4+Vy+9g== + dependencies: + "@types/unist" "*" + +"@types/jsdom@^16.2.14": + version "16.2.15" + resolved "https://registry.yarnpkg.com/@types/jsdom/-/jsdom-16.2.15.tgz#6c09990ec43b054e49636cba4d11d54367fc90d6" + integrity sha512-nwF87yjBKuX/roqGYerZZM0Nv1pZDMAT5YhOHYeM/72Fic+VEqJh4nyoqoapzJnW3pUlfxPY5FhgsJtM+dRnQQ== + dependencies: + "@types/node" "*" + "@types/parse5" "^6.0.3" + "@types/tough-cookie" "*" + +"@types/json-schema@^7.0.8": + version "7.0.11" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" + integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== + +"@types/mdast@^3.0.0": + version "3.0.10" + resolved "https://registry.yarnpkg.com/@types/mdast/-/mdast-3.0.10.tgz#4724244a82a4598884cbbe9bcfd73dff927ee8af" + integrity sha512-W864tg/Osz1+9f4lrGTZpCSO5/z4608eUp19tbozkq2HJK6i3z1kT0H9tlADXuYIb1YYOBByU4Jsqkk75q48qA== + dependencies: + "@types/unist" "*" + +"@types/mdurl@^1.0.0": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@types/mdurl/-/mdurl-1.0.2.tgz#e2ce9d83a613bacf284c7be7d491945e39e1f8e9" + integrity sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA== + +"@types/ms@*": + version "0.7.31" + resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.31.tgz#31b7ca6407128a3d2bbc27fe2d21b345397f6197" + integrity sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA== + +"@types/node@*": + version "18.6.4" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.6.4.tgz#fd26723a8a3f8f46729812a7f9b4fc2d1608ed39" + integrity sha512-I4BD3L+6AWiUobfxZ49DlU43gtI+FTHSv9pE2Zekg6KjMpre4ByusaljW3vYSLJrvQ1ck1hUaeVu8HVlY3vzHg== + +"@types/parse-json@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" + integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== + +"@types/parse5@^6.0.0", "@types/parse5@^6.0.3": + version "6.0.3" + resolved "https://registry.yarnpkg.com/@types/parse5/-/parse5-6.0.3.tgz#705bb349e789efa06f43f128cef51240753424cb" + integrity sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g== + +"@types/resolve@1.17.1": + version "1.17.1" + resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.17.1.tgz#3afd6ad8967c77e4376c598a82ddd58f46ec45d6" + integrity sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw== + dependencies: + "@types/node" "*" + +"@types/tailwindcss@^3.0.11": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@types/tailwindcss/-/tailwindcss-3.1.0.tgz#1185e4b3437c6e0f19d6cc8cd42738a94fd7b64f" + integrity sha512-JxPzrm609hzvF4nmOI3StLjbBEP3WWQxDDJESqR1nh94h7gyyy3XSl0hn5RBMJ9mPudlLjtaXs5YEBtLw7CnPA== + dependencies: + tailwindcss "*" + +"@types/tough-cookie@*": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@types/tough-cookie/-/tough-cookie-4.0.2.tgz#6286b4c7228d58ab7866d19716f3696e03a09397" + integrity sha512-Q5vtl1W5ue16D+nIaW8JWebSSraJVlK+EthKn7e7UcD4KWsaSJ8BqGPXNaPghgtcn/fhvrN17Tv8ksUsQpiplw== + +"@types/unist@*", "@types/unist@^2.0.0": + version "2.0.6" + resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.6.tgz#250a7b16c3b91f672a24552ec64678eeb1d3a08d" + integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ== + +"@vercel/nft@^0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@vercel/nft/-/nft-0.20.1.tgz#41e559af189405c526ac1f6709773bc99995b95b" + integrity sha512-hSLcr64KHOkcNiTAlv154K4p4faEFBwYIi2eIgu1QCDhB1qyQYvFuEhtw3eaapNjA4/7x/2jcclfCAjILua/ag== + dependencies: + "@mapbox/node-pre-gyp" "^1.0.5" + acorn "^8.6.0" + bindings "^1.4.0" + estree-walker "2.0.2" + glob "^7.1.3" + graceful-fs "^4.2.9" + micromatch "^4.0.2" + node-gyp-build "^4.2.2" + resolve-from "^5.0.0" + rollup-pluginutils "^2.8.2" + +"@vitejs/plugin-vue-jsx@^1.3.10": + version "1.3.10" + resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-1.3.10.tgz#5b61294ed4334fbc5f5679243fd3ccc448b26044" + integrity sha512-Cf5zznh4yNMiEMBfTOztaDVDmK1XXfgxClzOSUVUc8WAmHzogrCUeM8B05ABzuGtg0D1amfng+mUmSIOFGP3Pw== + dependencies: + "@babel/core" "^7.17.9" + "@babel/plugin-syntax-import-meta" "^7.10.4" + "@babel/plugin-transform-typescript" "^7.16.8" + "@rollup/pluginutils" "^4.2.0" + "@vue/babel-plugin-jsx" "^1.1.1" + hash-sum "^2.0.0" + +"@vitejs/plugin-vue@^2.3.3": + version "2.3.3" + resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-2.3.3.tgz#fbf80cc039b82ac21a1acb0f0478de8f61fbf600" + integrity sha512-SmQLDyhz+6lGJhPELsBdzXGc+AcaT8stgkbiTFGpXPe8Tl1tJaBw1A6pxDqDuRsVkD8uscrkx3hA7QDOoKYtyw== + +"@vue/babel-helper-vue-transform-on@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@vue/babel-helper-vue-transform-on/-/babel-helper-vue-transform-on-1.0.2.tgz#9b9c691cd06fc855221a2475c3cc831d774bc7dc" + integrity sha512-hz4R8tS5jMn8lDq6iD+yWL6XNB699pGIVLk7WSJnn1dbpjaazsjZQkieJoRX6gW5zpYSCFqQ7jUquPNY65tQYA== + +"@vue/babel-plugin-jsx@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@vue/babel-plugin-jsx/-/babel-plugin-jsx-1.1.1.tgz#0c5bac27880d23f89894cd036a37b55ef61ddfc1" + integrity sha512-j2uVfZjnB5+zkcbc/zsOc0fSNGCMMjaEXP52wdwdIfn0qjFfEYpYZBFKFg+HHnQeJCVrjOeO0YxgaL7DMrym9w== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + "@babel/plugin-syntax-jsx" "^7.0.0" + "@babel/template" "^7.0.0" + "@babel/traverse" "^7.0.0" + "@babel/types" "^7.0.0" + "@vue/babel-helper-vue-transform-on" "^1.0.2" + camelcase "^6.0.0" + html-tags "^3.1.0" + svg-tags "^1.0.0" + +"@vue/compiler-core@3.2.37": + version "3.2.37" + resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.2.37.tgz#b3c42e04c0e0f2c496ff1784e543fbefe91e215a" + integrity sha512-81KhEjo7YAOh0vQJoSmAD68wLfYqJvoiD4ulyedzF+OEk/bk6/hx3fTNVfuzugIIaTrOx4PGx6pAiBRe5e9Zmg== + dependencies: + "@babel/parser" "^7.16.4" + "@vue/shared" "3.2.37" + estree-walker "^2.0.2" + source-map "^0.6.1" + +"@vue/compiler-dom@3.2.37": + version "3.2.37" + resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.2.37.tgz#10d2427a789e7c707c872da9d678c82a0c6582b5" + integrity sha512-yxJLH167fucHKxaqXpYk7x8z7mMEnXOw3G2q62FTkmsvNxu4FQSu5+3UMb+L7fjKa26DEzhrmCxAgFLLIzVfqQ== + dependencies: + "@vue/compiler-core" "3.2.37" + "@vue/shared" "3.2.37" + +"@vue/compiler-sfc@3.2.37": + version "3.2.37" + resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.2.37.tgz#3103af3da2f40286edcd85ea495dcb35bc7f5ff4" + integrity sha512-+7i/2+9LYlpqDv+KTtWhOZH+pa8/HnX/905MdVmAcI/mPQOBwkHHIzrsEsucyOIZQYMkXUiTkmZq5am/NyXKkg== + dependencies: + "@babel/parser" "^7.16.4" + "@vue/compiler-core" "3.2.37" + "@vue/compiler-dom" "3.2.37" + "@vue/compiler-ssr" "3.2.37" + "@vue/reactivity-transform" "3.2.37" + "@vue/shared" "3.2.37" + estree-walker "^2.0.2" + magic-string "^0.25.7" + postcss "^8.1.10" + source-map "^0.6.1" + +"@vue/compiler-ssr@3.2.37": + version "3.2.37" + resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.2.37.tgz#4899d19f3a5fafd61524a9d1aee8eb0505313cff" + integrity sha512-7mQJD7HdXxQjktmsWp/J67lThEIcxLemz1Vb5I6rYJHR5vI+lON3nPGOH3ubmbvYGt8xEUaAr1j7/tIFWiEOqw== + dependencies: + "@vue/compiler-dom" "3.2.37" + "@vue/shared" "3.2.37" + +"@vue/devtools-api@^6.1.4": + version "6.2.1" + resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.2.1.tgz#6f2948ff002ec46df01420dfeff91de16c5b4092" + integrity sha512-OEgAMeQXvCoJ+1x8WyQuVZzFo0wcyCmUR3baRVLmKBo1LmYZWMlRiXlux5jd0fqVJu6PfDbOrZItVqUEzLobeQ== + +"@vue/reactivity-transform@3.2.37": + version "3.2.37" + resolved "https://registry.yarnpkg.com/@vue/reactivity-transform/-/reactivity-transform-3.2.37.tgz#0caa47c4344df4ae59f5a05dde2a8758829f8eca" + integrity sha512-IWopkKEb+8qpu/1eMKVeXrK0NLw9HicGviJzhJDEyfxTR9e1WtpnnbYkJWurX6WwoFP0sz10xQg8yL8lgskAZg== + dependencies: + "@babel/parser" "^7.16.4" + "@vue/compiler-core" "3.2.37" + "@vue/shared" "3.2.37" + estree-walker "^2.0.2" + magic-string "^0.25.7" + +"@vue/reactivity@3.2.37", "@vue/reactivity@^3.2.37": + version "3.2.37" + resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.2.37.tgz#5bc3847ac58828e2b78526e08219e0a1089f8848" + integrity sha512-/7WRafBOshOc6m3F7plwzPeCu/RCVv9uMpOwa/5PiY1Zz+WLVRWiy0MYKwmg19KBdGtFWsmZ4cD+LOdVPcs52A== + dependencies: + "@vue/shared" "3.2.37" + +"@vue/runtime-core@3.2.37": + version "3.2.37" + resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.2.37.tgz#7ba7c54bb56e5d70edfc2f05766e1ca8519966e3" + integrity sha512-JPcd9kFyEdXLl/i0ClS7lwgcs0QpUAWj+SKX2ZC3ANKi1U4DOtiEr6cRqFXsPwY5u1L9fAjkinIdB8Rz3FoYNQ== + dependencies: + "@vue/reactivity" "3.2.37" + "@vue/shared" "3.2.37" + +"@vue/runtime-dom@3.2.37": + version "3.2.37" + resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.2.37.tgz#002bdc8228fa63949317756fb1e92cdd3f9f4bbd" + integrity sha512-HimKdh9BepShW6YozwRKAYjYQWg9mQn63RGEiSswMbW+ssIht1MILYlVGkAGGQbkhSh31PCdoUcfiu4apXJoPw== + dependencies: + "@vue/runtime-core" "3.2.37" + "@vue/shared" "3.2.37" + csstype "^2.6.8" + +"@vue/server-renderer@3.2.37": + version "3.2.37" + resolved "https://registry.yarnpkg.com/@vue/server-renderer/-/server-renderer-3.2.37.tgz#840a29c8dcc29bddd9b5f5ffa22b95c0e72afdfc" + integrity sha512-kLITEJvaYgZQ2h47hIzPh2K3jG8c1zCVbp/o/bzQOyvzaKiCquKS7AaioPI28GNxIsE/zSx+EwWYsNxDCX95MA== + dependencies: + "@vue/compiler-ssr" "3.2.37" + "@vue/shared" "3.2.37" + +"@vue/shared@3.2.37", "@vue/shared@^3.2.37": + version "3.2.37" + resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.2.37.tgz#8e6adc3f2759af52f0e85863dfb0b711ecc5c702" + integrity sha512-4rSJemR2NQIo9Klm1vabqWjD8rs/ZaJSzMxkMNeJS6lHiUjjUeYFbooN19NgFjztubEKh3WlZUeOLVdbbUWHsw== + +"@vueuse/head@^0.7.6": + version "0.7.9" + resolved "https://registry.yarnpkg.com/@vueuse/head/-/head-0.7.9.tgz#888ab87667ab6dbe6edba10d176fa91c1b0ec021" + integrity sha512-5wnRiH2XIUSLLXJDLDDTcpvAg5QXgTIVZl46AU7to/T91KHsdBLHSE4WhRO7kP0jbkAhlxnx64E29cQtwBrMjg== + +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + +accepts@^1.3.5: + version "1.3.8" + resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" + integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== + dependencies: + mime-types "~2.1.34" + negotiator "0.6.3" + +acorn-node@^1.8.2: + version "1.8.2" + resolved "https://registry.yarnpkg.com/acorn-node/-/acorn-node-1.8.2.tgz#114c95d64539e53dede23de8b9d96df7c7ae2af8" + integrity sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A== + dependencies: + acorn "^7.0.0" + acorn-walk "^7.0.0" + xtend "^4.0.2" + +acorn-walk@^7.0.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" + integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== + +acorn@^7.0.0: + version "7.4.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" + integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== + +acorn@^8.5.0, acorn@^8.6.0, acorn@^8.7.0, acorn@^8.7.1, acorn@^8.8.0: + version "8.8.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.0.tgz#88c0187620435c7f6015803f5539dae05a9dbea8" + integrity sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w== + +agent-base@6: + version "6.0.2" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== + dependencies: + debug "4" + +ajv-keywords@^3.5.2: + version "3.5.2" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" + integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== + +ajv@^6.12.5: + version "6.12.6" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +ajv@^8.0.1: + version "8.11.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.11.0.tgz#977e91dd96ca669f54a11e23e378e33b884a565f" + integrity sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg== + dependencies: + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" + +ansi-escapes@^4.3.0: + version "4.3.2" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" + integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== + dependencies: + type-fest "^0.21.3" + +ansi-escapes@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-5.0.0.tgz#b6a0caf0eef0c41af190e9a749e0c00ec04bb2a6" + integrity sha512-5GFMVX8HqE/TB+FuBJGuO5XG0WrsA6ptUqoODaT/n9mmUaZFkqnBueB4leqGBCmrUHnCnC4PCZTCd0E7QQ83bA== + dependencies: + type-fest "^1.0.2" + +ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + +ansi-regex@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.0.1.tgz#3183e38fae9a65d7cb5e53945cd5897d0260a06a" + integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== + +ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + +ansi-styles@^4.0.0, ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + +ansi-styles@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.1.0.tgz#87313c102b8118abd57371afab34618bf7350ed3" + integrity sha512-VbqNsoz55SYGczauuup0MFUyXNQviSpFTj1RQtFzmQLk18qbVSpTFFGMT293rmDaQuKCT6InmbuEyUne4mTuxQ== + +anymatch@^3.1.2, anymatch@~3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" + integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + +"aproba@^1.0.3 || ^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-2.0.0.tgz#52520b8ae5b569215b354efc0caa3fe1e45a8adc" + integrity sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ== + +arch@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/arch/-/arch-2.2.0.tgz#1bc47818f305764f23ab3306b0bfc086c5a29d11" + integrity sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ== + +archiver-utils@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/archiver-utils/-/archiver-utils-2.1.0.tgz#e8a460e94b693c3e3da182a098ca6285ba9249e2" + integrity sha512-bEL/yUb/fNNiNTuUz979Z0Yg5L+LzLxGJz8x79lYmR54fmTIb6ob/hNQgkQnIUDWIFjZVQwl9Xs356I6BAMHfw== + dependencies: + glob "^7.1.4" + graceful-fs "^4.2.0" + lazystream "^1.0.0" + lodash.defaults "^4.2.0" + lodash.difference "^4.5.0" + lodash.flatten "^4.4.0" + lodash.isplainobject "^4.0.6" + lodash.union "^4.6.0" + normalize-path "^3.0.0" + readable-stream "^2.0.0" + +archiver@^5.3.1: + version "5.3.1" + resolved "https://registry.yarnpkg.com/archiver/-/archiver-5.3.1.tgz#21e92811d6f09ecfce649fbefefe8c79e57cbbb6" + integrity sha512-8KyabkmbYrH+9ibcTScQ1xCJC/CGcugdVIwB+53f5sZziXgwUh3iXlAlANMxcZyDEfTHMe6+Z5FofV8nopXP7w== + dependencies: + archiver-utils "^2.1.0" + async "^3.2.3" + buffer-crc32 "^0.2.1" + readable-stream "^3.6.0" + readdir-glob "^1.0.0" + tar-stream "^2.2.0" + zip-stream "^4.1.0" + +are-we-there-yet@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz#372e0e7bd279d8e94c653aaa1f67200884bf3e1c" + integrity sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw== + dependencies: + delegates "^1.0.0" + readable-stream "^3.6.0" + +arg@^5.0.2: + version "5.0.2" + resolved "https://registry.yarnpkg.com/arg/-/arg-5.0.2.tgz#c81433cc427c92c4dcf4865142dbca6f15acd59c" + integrity sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg== + +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + +astral-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" + integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== + +async@^2.6.4: + version "2.6.4" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221" + integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA== + dependencies: + lodash "^4.17.14" + +async@^3.2.3: + version "3.2.4" + resolved "https://registry.yarnpkg.com/async/-/async-3.2.4.tgz#2d22e00f8cddeb5fde5dd33522b56d1cf569a81c" + integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== + +at-least-node@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" + integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== + +autoprefixer@^10.2.5, autoprefixer@^10.4.7: + version "10.4.8" + resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.8.tgz#92c7a0199e1cfb2ad5d9427bd585a3d75895b9e5" + integrity sha512-75Jr6Q/XpTqEf6D2ltS5uMewJIx5irCU1oBYJrWjFenq/m12WRRrz6g15L1EIoYvPLXTbEry7rDOwrcYNj77xw== + dependencies: + browserslist "^4.21.3" + caniuse-lite "^1.0.30001373" + fraction.js "^4.2.0" + normalize-range "^0.1.2" + picocolors "^1.0.0" + postcss-value-parser "^4.2.0" + +bail@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/bail/-/bail-2.0.2.tgz#d26f5cd8fe5d6f832a31517b9f7c356040ba6d5d" + integrity sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw== + +balanced-match@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" + integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== + +base64-js@^1.3.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== + +big.js@^5.2.2: + version "5.2.2" + resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" + integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== + +binary-extensions@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" + integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== + +bindings@^1.4.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" + integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== + dependencies: + file-uri-to-path "1.0.0" + +bl@^4.0.3: + version "4.1.0" + resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" + integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== + dependencies: + buffer "^5.5.0" + inherits "^2.0.4" + readable-stream "^3.4.0" + +bl@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/bl/-/bl-5.0.0.tgz#6928804a41e9da9034868e1c50ca88f21f57aea2" + integrity sha512-8vxFNZ0pflFfi0WXA3WQXlj6CaMEwsmh63I1CNp0q+wWv8sD0ARx1KovSQd0l2GkwrMIOyedq0EF1FxI+RCZLQ== + dependencies: + buffer "^6.0.3" + inherits "^2.0.4" + readable-stream "^3.4.0" + +bluebird@^3.5.1: + version "3.7.2" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" + integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== + +boolbase@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" + integrity sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww== + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +brace-expansion@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" + integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== + dependencies: + balanced-match "^1.0.0" + +braces@^3.0.2, braces@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" + integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== + dependencies: + fill-range "^7.0.1" + +browserslist@^4.0.0, browserslist@^4.16.6, browserslist@^4.20.2, browserslist@^4.20.3, browserslist@^4.21.3: + version "4.21.3" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.3.tgz#5df277694eb3c48bc5c4b05af3e8b7e09c5a6d1a" + integrity sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ== + dependencies: + caniuse-lite "^1.0.30001370" + electron-to-chromium "^1.4.202" + node-releases "^2.0.6" + update-browserslist-db "^1.0.5" + +buffer-crc32@^0.2.1, buffer-crc32@^0.2.13: + version "0.2.13" + resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" + integrity sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ== + +buffer-from@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" + integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== + +buffer@^5.5.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" + integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== + dependencies: + base64-js "^1.3.1" + ieee754 "^1.1.13" + +buffer@^6.0.3: + version "6.0.3" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6" + integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA== + dependencies: + base64-js "^1.3.1" + ieee754 "^1.2.1" + +builtin-modules@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6" + integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw== + +bundle-runner@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/bundle-runner/-/bundle-runner-0.0.1.tgz#d05ff2e3921e2ea3ec810d6b327eeb466ff4483b" + integrity sha512-xevhXw77nJ7wjCRTyo1JYumUNUiZmD0CJEummyLUJbdhub4bZWuplS+Y7nlMq5V9sKJQW+dV/LZR/SlxS5f4LQ== + dependencies: + source-map "^0.7.3" + +c12@^0.2.8: + version "0.2.9" + resolved "https://registry.yarnpkg.com/c12/-/c12-0.2.9.tgz#697328714b04e0b54cec299b48c55eb5a69bf9ef" + integrity sha512-6jYdexgAKr+3kYoTmvC5eDtDHUg7GmFQSdeQqZzAKiPlFAN1heGUoXDbAYYwUCfefZy+WgVJbmAej5TTQpp3jA== + dependencies: + defu "^6.0.0" + dotenv "^16.0.1" + gittar "^0.1.1" + jiti "^1.14.0" + mlly "^0.5.7" + pathe "^0.3.3" + rc9 "^1.2.2" + +cache-content-type@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cache-content-type/-/cache-content-type-1.0.1.tgz#035cde2b08ee2129f4a8315ea8f00a00dba1453c" + integrity sha512-IKufZ1o4Ut42YUrZSo8+qnMTrFuKkvyoLXUywKz9GJ5BrhOFGhLdkx9sG4KAnVvbY6kEcSFjLQul+DVmBm2bgA== + dependencies: + mime-types "^2.1.18" + ylru "^1.2.0" + +callsites@^3.0.0, callsites@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + +camelcase-css@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/camelcase-css/-/camelcase-css-2.0.1.tgz#ee978f6947914cc30c6b44741b6ed1df7f043fd5" + integrity sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA== + +camelcase@^6.0.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" + integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== + +caniuse-api@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/caniuse-api/-/caniuse-api-3.0.0.tgz#5e4d90e2274961d46291997df599e3ed008ee4c0" + integrity sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw== + dependencies: + browserslist "^4.0.0" + caniuse-lite "^1.0.0" + lodash.memoize "^4.1.2" + lodash.uniq "^4.5.0" + +caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001370, caniuse-lite@^1.0.30001373: + version "1.0.30001374" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001374.tgz#3dab138e3f5485ba2e74bd13eca7fe1037ce6f57" + integrity sha512-mWvzatRx3w+j5wx/mpFN5v5twlPrabG8NqX2c6e45LCpymdoGqNvRkRutFUqpRTXKFQFNQJasvK0YT7suW6/Hw== + +ccount@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/ccount/-/ccount-2.0.1.tgz#17a3bf82302e0870d6da43a01311a8bc02a3ecf5" + integrity sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg== + +chalk@^2.0.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +chalk@^4.1.1, chalk@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +chalk@^5.0.0, chalk@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.0.1.tgz#ca57d71e82bb534a296df63bbacc4a1c22b2a4b6" + integrity sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w== + +character-entities-html4@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/character-entities-html4/-/character-entities-html4-2.1.0.tgz#1f1adb940c971a4b22ba39ddca6b618dc6e56b2b" + integrity sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA== + +character-entities-legacy@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz#76bc83a90738901d7bc223a9e93759fdd560125b" + integrity sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ== + +character-entities@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/character-entities/-/character-entities-2.0.2.tgz#2d09c2e72cd9523076ccb21157dff66ad43fcc22" + integrity sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ== + +character-reference-invalid@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz#85c66b041e43b47210faf401278abf808ac45cb9" + integrity sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw== + +chardet@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" + integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== + +chokidar@^3.5.1, chokidar@^3.5.3: + version "3.5.3" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" + integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== + dependencies: + anymatch "~3.1.2" + braces "~3.0.2" + glob-parent "~5.1.2" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.6.0" + optionalDependencies: + fsevents "~2.3.2" + +chownr@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b" + integrity sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg== + +chownr@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece" + integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ== + +ci-info@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.3.2.tgz#6d2967ffa407466481c6c90b6e16b3098f080128" + integrity sha512-xmDt/QIAdeZ9+nfdPsaBCpMvHNLFiLdjj59qjqn+6iPe6YmHGQ35sBnQ8uslRBXFmXkiZQOJRjvQeoGppoTjjg== + +clear-module@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/clear-module/-/clear-module-4.1.2.tgz#5a58a5c9f8dccf363545ad7284cad3c887352a80" + integrity sha512-LWAxzHqdHsAZlPlEyJ2Poz6AIs384mPeqLVCru2p0BrP9G/kVGuhNyZYClLO6cXlnuJjzC8xtsJIuMjKqLXoAw== + dependencies: + parent-module "^2.0.0" + resolve-from "^5.0.0" + +cli-cursor@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-4.0.0.tgz#3cecfe3734bf4fe02a8361cbdc0f6fe28c6a57ea" + integrity sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg== + dependencies: + restore-cursor "^4.0.0" + +cli-spinners@^2.6.1: + version "2.7.0" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.7.0.tgz#f815fd30b5f9eaac02db604c7a231ed7cb2f797a" + integrity sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw== + +cli-width@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-4.0.0.tgz#a5622f6a3b0a9e3e711a25f099bf2399f608caf6" + integrity sha512-ZksGS2xpa/bYkNzN3BAw1wEjsLV/ZKOf/CCrJ/QOBsxx6fOARIkwTutxp1XIOIohi6HKmOFjMoK/XaqDVUpEEw== + +clipboardy@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/clipboardy/-/clipboardy-3.0.0.tgz#f3876247404d334c9ed01b6f269c11d09a5e3092" + integrity sha512-Su+uU5sr1jkUy1sGRpLKjKrvEOVXgSgiSInwa/qeID6aJ07yh+5NWc3h2QfjHjBnfX4LhtFcuAWKUsJ3r+fjbg== + dependencies: + arch "^2.2.0" + execa "^5.1.1" + is-wsl "^2.2.0" + +cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" + integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" + +clone@^1.0.2: + version "1.0.4" + resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" + integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== + +cluster-key-slot@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/cluster-key-slot/-/cluster-key-slot-1.1.0.tgz#30474b2a981fb12172695833052bc0d01336d10d" + integrity sha512-2Nii8p3RwAPiFwsnZvukotvow2rIHM+yQ6ZcBXGHdniadkYGZYiGmkHJIbZPIV9nfv7m/U1IPMVVcAhoWFeklw== + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== + +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== + +color-name@^1.1.4, color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +color-support@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2" + integrity sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg== + +colord@^2.9.1: + version "2.9.2" + resolved "https://registry.yarnpkg.com/colord/-/colord-2.9.2.tgz#25e2bacbbaa65991422c07ea209e2089428effb1" + integrity sha512-Uqbg+J445nc1TKn4FoDPS6ZZqAvEDnwrH42yo8B40JSOgSLxMZ/gt3h4nmCtPLQeXhjJJkqBx7SCY35WnIixaQ== + +colorette@^2.0.16: + version "2.0.19" + resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.19.tgz#cdf044f47ad41a0f4b56b3a0d5b4e6e1a2d5a798" + integrity sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ== + +comma-separated-tokens@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/comma-separated-tokens/-/comma-separated-tokens-2.0.2.tgz#d4c25abb679b7751c880be623c1179780fe1dd98" + integrity sha512-G5yTt3KQN4Yn7Yk4ed73hlZ1evrFKXeUW3086p3PRFNp7m2vIjI6Pg+Kgb+oyzhd9F2qdcoj67+y3SdxL5XWsg== + +commander@^2.20.0: + version "2.20.3" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" + integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== + +commander@^6.0.0: + version "6.2.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-6.2.1.tgz#0792eb682dfbc325999bb2b84fddddba110ac73c" + integrity sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA== + +commander@^7.2.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" + integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== + +commander@^8.0.0: + version "8.3.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" + integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== + +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" + integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== + +compress-commons@^4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/compress-commons/-/compress-commons-4.1.1.tgz#df2a09a7ed17447642bad10a85cc9a19e5c42a7d" + integrity sha512-QLdDLCKNV2dtoTorqgxngQCMA+gWXkM/Nwu7FpeBhk/RdkzimqC3jueb/FDmaZeXh+uby1jkBqE3xArsLBE5wQ== + dependencies: + buffer-crc32 "^0.2.13" + crc32-stream "^4.0.2" + normalize-path "^3.0.0" + readable-stream "^3.6.0" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== + +consola@^2.15.3: + version "2.15.3" + resolved "https://registry.yarnpkg.com/consola/-/consola-2.15.3.tgz#2e11f98d6a4be71ff72e0bdf07bd23e12cb61550" + integrity sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw== + +console-control-strings@^1.0.0, console-control-strings@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + integrity sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ== + +content-disposition@~0.5.2: + version "0.5.4" + resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe" + integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== + dependencies: + safe-buffer "5.2.1" + +content-type@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" + integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== + +convert-source-map@^1.7.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.8.0.tgz#f3373c32d21b4d780dd8004514684fb791ca4369" + integrity sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA== + dependencies: + safe-buffer "~5.1.1" + +cookie-es@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/cookie-es/-/cookie-es-0.5.0.tgz#a6ad89923e68c542fc9e760b07aefa5ab020d719" + integrity sha512-RyZrFi6PNpBFbIaQjXDlFIhFVqV42QeKSZX1yQIl6ihImq6vcHNGMtqQ/QzY3RMPuYSkvsRwtnt5M9NeYxKt0g== + +cookies@~0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/cookies/-/cookies-0.8.0.tgz#1293ce4b391740a8406e3c9870e828c4b54f3f90" + integrity sha512-8aPsApQfebXnuI+537McwYsDtjVxGm8gTIzQI3FDW6t5t/DAhERxtnbEPN/8RX+uZthoz4eCOgloXaE5cYyNow== + dependencies: + depd "~2.0.0" + keygrip "~1.1.0" + +core-util-is@~1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" + integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== + +cosmiconfig@^7.0.0: + version "7.0.1" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.1.tgz#714d756522cace867867ccb4474c5d01bbae5d6d" + integrity sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ== + dependencies: + "@types/parse-json" "^4.0.0" + import-fresh "^3.2.1" + parse-json "^5.0.0" + path-type "^4.0.0" + yaml "^1.10.0" + +crc-32@^1.2.0: + version "1.2.2" + resolved "https://registry.yarnpkg.com/crc-32/-/crc-32-1.2.2.tgz#3cad35a934b8bf71f25ca524b6da51fb7eace2ff" + integrity sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ== + +crc32-stream@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/crc32-stream/-/crc32-stream-4.0.2.tgz#c922ad22b38395abe9d3870f02fa8134ed709007" + integrity sha512-DxFZ/Hk473b/muq1VJ///PMNLj0ZMnzye9thBpmjpJKCc5eMgB95aK8zCGrGfQ90cWo561Te6HK9D+j4KPdM6w== + dependencies: + crc-32 "^1.2.0" + readable-stream "^3.4.0" + +create-require@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" + integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== + +cross-spawn@^7.0.3: + version "7.0.3" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +css-declaration-sorter@^6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/css-declaration-sorter/-/css-declaration-sorter-6.3.0.tgz#72ebd995c8f4532ff0036631f7365cce9759df14" + integrity sha512-OGT677UGHJTAVMRhPO+HJ4oKln3wkBTwtDFH0ojbqm+MJm6xuDMHp2nkhh/ThaBqq20IbraBQSWKfSLNHQO9Og== + +css-loader@^5.0.0: + version "5.2.7" + resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-5.2.7.tgz#9b9f111edf6fb2be5dc62525644cbc9c232064ae" + integrity sha512-Q7mOvpBNBG7YrVGMxRxcBJZFL75o+cH2abNASdibkj/fffYD8qWbInZrD0S9ccI6vZclF3DsHE7njGlLtaHbhg== + dependencies: + icss-utils "^5.1.0" + loader-utils "^2.0.0" + postcss "^8.2.15" + postcss-modules-extract-imports "^3.0.0" + postcss-modules-local-by-default "^4.0.0" + postcss-modules-scope "^3.0.0" + postcss-modules-values "^4.0.0" + postcss-value-parser "^4.1.0" + schema-utils "^3.0.0" + semver "^7.3.5" + +css-select@^4.1.3: + version "4.3.0" + resolved "https://registry.yarnpkg.com/css-select/-/css-select-4.3.0.tgz#db7129b2846662fd8628cfc496abb2b59e41529b" + integrity sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ== + dependencies: + boolbase "^1.0.0" + css-what "^6.0.1" + domhandler "^4.3.1" + domutils "^2.8.0" + nth-check "^2.0.1" + +css-tree@^1.1.2, css-tree@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.1.3.tgz#eb4870fb6fd7707327ec95c2ff2ab09b5e8db91d" + integrity sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q== + dependencies: + mdn-data "2.0.14" + source-map "^0.6.1" + +css-what@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4" + integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw== + +cssesc@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" + integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== + +cssnano-preset-default@^5.2.12: + version "5.2.12" + resolved "https://registry.yarnpkg.com/cssnano-preset-default/-/cssnano-preset-default-5.2.12.tgz#ebe6596ec7030e62c3eb2b3c09f533c0644a9a97" + integrity sha512-OyCBTZi+PXgylz9HAA5kHyoYhfGcYdwFmyaJzWnzxuGRtnMw/kR6ilW9XzlzlRAtB6PLT/r+prYgkef7hngFew== + dependencies: + css-declaration-sorter "^6.3.0" + cssnano-utils "^3.1.0" + postcss-calc "^8.2.3" + postcss-colormin "^5.3.0" + postcss-convert-values "^5.1.2" + postcss-discard-comments "^5.1.2" + postcss-discard-duplicates "^5.1.0" + postcss-discard-empty "^5.1.1" + postcss-discard-overridden "^5.1.0" + postcss-merge-longhand "^5.1.6" + postcss-merge-rules "^5.1.2" + postcss-minify-font-values "^5.1.0" + postcss-minify-gradients "^5.1.1" + postcss-minify-params "^5.1.3" + postcss-minify-selectors "^5.2.1" + postcss-normalize-charset "^5.1.0" + postcss-normalize-display-values "^5.1.0" + postcss-normalize-positions "^5.1.1" + postcss-normalize-repeat-style "^5.1.1" + postcss-normalize-string "^5.1.0" + postcss-normalize-timing-functions "^5.1.0" + postcss-normalize-unicode "^5.1.0" + postcss-normalize-url "^5.1.0" + postcss-normalize-whitespace "^5.1.1" + postcss-ordered-values "^5.1.3" + postcss-reduce-initial "^5.1.0" + postcss-reduce-transforms "^5.1.0" + postcss-svgo "^5.1.0" + postcss-unique-selectors "^5.1.1" + +cssnano-utils@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/cssnano-utils/-/cssnano-utils-3.1.0.tgz#95684d08c91511edfc70d2636338ca37ef3a6861" + integrity sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA== + +cssnano@^5.1.12: + version "5.1.12" + resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-5.1.12.tgz#bcd0b64d6be8692de79332c501daa7ece969816c" + integrity sha512-TgvArbEZu0lk/dvg2ja+B7kYoD7BBCmn3+k58xD0qjrGHsFzXY/wKTo9M5egcUCabPol05e/PVoIu79s2JN4WQ== + dependencies: + cssnano-preset-default "^5.2.12" + lilconfig "^2.0.3" + yaml "^1.10.2" + +csso@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/csso/-/csso-4.2.0.tgz#ea3a561346e8dc9f546d6febedd50187cf389529" + integrity sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA== + dependencies: + css-tree "^1.1.2" + +csstype@^2.6.8: + version "2.6.20" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.20.tgz#9229c65ea0b260cf4d3d997cb06288e36a8d6dda" + integrity sha512-/WwNkdXfckNgw6S5R125rrW8ez139lBHWouiBvX8dfMFtcn6V81REDqnH7+CRpRipfYlyU1CmOnOxrmGcFOjeA== + +csvtojson@^2.0.10: + version "2.0.10" + resolved "https://registry.yarnpkg.com/csvtojson/-/csvtojson-2.0.10.tgz#11e7242cc630da54efce7958a45f443210357574" + integrity sha512-lUWFxGKyhraKCW8Qghz6Z0f2l/PqB1W3AO0HKJzGIQ5JRSlR651ekJDiGJbBT4sRNNv5ddnSGVEnsxP9XRCVpQ== + dependencies: + bluebird "^3.5.1" + lodash "^4.17.3" + strip-bom "^2.0.0" + +cuint@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/cuint/-/cuint-0.2.2.tgz#408086d409550c2631155619e9fa7bcadc3b991b" + integrity sha512-d4ZVpCW31eWwCMe1YT3ur7mUDnTXbgwyzaL320DrcRT45rfjYxkt5QWLrmOJ+/UEAI2+fQgKe/fCjR8l4TpRgw== + +data-uri-to-buffer@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz#b5db46aea50f6176428ac05b73be39a57701a64b" + integrity sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA== + +debug@2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +debug@4, debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4: + version "4.3.4" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== + dependencies: + ms "2.1.2" + +debug@^3.1.0, debug@^3.2.7: + version "3.2.7" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" + integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== + dependencies: + ms "^2.1.1" + +decode-named-character-reference@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz#daabac9690874c394c81e4162a0304b35d824f0e" + integrity sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg== + dependencies: + character-entities "^2.0.0" + +deep-equal@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.0.1.tgz#f5d260292b660e084eff4cdbc9f08ad3247448b5" + integrity sha512-bHtC0iYvWhyaTzvV3CZgPeZQqCOBGyGsVV7v4eevpdkLHfiSrXUdBG+qAuSz4RI70sszvjQ1QSZ98An1yNwpSw== + +deepmerge@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" + integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== + +defaults@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d" + integrity sha512-s82itHOnYrN0Ib8r+z7laQz3sdE+4FP3d9Q7VLO7U+KRT+CR0GsWuyHxzdAY82I7cXv0G/twrqomTJLOssO5HA== + dependencies: + clone "^1.0.2" + +define-lazy-prop@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f" + integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og== + +defined@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" + integrity sha512-Y2caI5+ZwS5c3RiNDJ6u53VhQHv+hHKwhkI1iHvceKUHw9Df6EK2zRLfjejRgMuCuxK7PfSWIMwWecceVvThjQ== + +defu@^3.2.2: + version "3.2.2" + resolved "https://registry.yarnpkg.com/defu/-/defu-3.2.2.tgz#be20f4cc49b9805d54ee6b610658d53894942e97" + integrity sha512-8UWj5lNv7HD+kB0e9w77Z7TdQlbUYDVWqITLHNqFIn6khrNHv5WQo38Dcm1f6HeNyZf0U7UbPf6WeZDSdCzGDQ== + +defu@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/defu/-/defu-6.0.0.tgz#b397a6709a2f3202747a3d9daf9446e41ad0c5fc" + integrity sha512-t2MZGLf1V2rV4VBZbWIaXKdX/mUcYW0n2znQZoADBkGGxYL8EWqCuCZBmJPJ/Yy9fofJkyuuSuo5GSwo0XdEgw== + +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + integrity sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ== + +denque@^2.0.1: + version "2.1.0" + resolved "https://registry.yarnpkg.com/denque/-/denque-2.1.0.tgz#e93e1a6569fb5e66f16a3c2a2964617d349d6ab1" + integrity sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw== + +depd@2.0.0, depd@^2.0.0, depd@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" + integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== + +depd@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" + integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ== + +dequal@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be" + integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== + +destr@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/destr/-/destr-1.1.1.tgz#910457d10a2f2f247add4ca4fdb4a03adcc49079" + integrity sha512-QqkneF8LrYmwATMdnuD2MLI3GHQIcBnG6qFC2q9bSH430VTCDAVjcspPmUaKhPGtAtPAftIUFqY1obQYQuwmbg== + +destroy@1.2.0, destroy@^1.0.4: + version "1.2.0" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" + integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== + +detab@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/detab/-/detab-3.0.1.tgz#2f1874ccee75b96858cb5efa30d41212a8657baf" + integrity sha512-T8gDOoz58xXMsXKLJkKxkyUTRkEpwOBL9w5nFFDJsD/XiFkajkBc2Yz99a/0kW7DGIYq/B1+oqqqru+fZetSvg== + +detect-libc@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-2.0.1.tgz#e1897aa88fa6ad197862937fbc0441ef352ee0cd" + integrity sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w== + +detective@^5.2.1: + version "5.2.1" + resolved "https://registry.yarnpkg.com/detective/-/detective-5.2.1.tgz#6af01eeda11015acb0e73f933242b70f24f91034" + integrity sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw== + dependencies: + acorn-node "^1.8.2" + defined "^1.0.0" + minimist "^1.2.6" + +didyoumean@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/didyoumean/-/didyoumean-1.2.2.tgz#989346ffe9e839b4555ecf5666edea0d3e8ad037" + integrity sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw== + +diff@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-5.1.0.tgz#bc52d298c5ea8df9194800224445ed43ffc87e40" + integrity sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw== + +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== + dependencies: + path-type "^4.0.0" + +dlv@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/dlv/-/dlv-1.1.3.tgz#5c198a8a11453596e751494d49874bc7732f2e79" + integrity sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA== + +dom-serializer@^1.0.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-1.4.1.tgz#de5d41b1aea290215dc45a6dae8adcf1d32e2d30" + integrity sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag== + dependencies: + domelementtype "^2.0.1" + domhandler "^4.2.0" + entities "^2.0.0" + +domelementtype@^2.0.1, domelementtype@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.3.0.tgz#5c45e8e869952626331d7aab326d01daf65d589d" + integrity sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw== + +domhandler@^4.2.0, domhandler@^4.3.1: + version "4.3.1" + resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-4.3.1.tgz#8d792033416f59d68bc03a5aa7b018c1ca89279c" + integrity sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ== + dependencies: + domelementtype "^2.2.0" + +domutils@^2.8.0: + version "2.8.0" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-2.8.0.tgz#4437def5db6e2d1f5d6ee859bd95ca7d02048135" + integrity sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A== + dependencies: + dom-serializer "^1.0.1" + domelementtype "^2.2.0" + domhandler "^4.2.0" + +dot-prop@^7.2.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-7.2.0.tgz#468172a3529779814d21a779c1ba2f6d76609809" + integrity sha512-Ol/IPXUARn9CSbkrdV4VJo7uCy1I3VuSiWCaFSg+8BdUOzF9n3jefIpcgAydvUZbTdEBZs2vEiTiS9m61ssiDA== + dependencies: + type-fest "^2.11.2" + +dotenv@^16.0.1: + version "16.0.1" + resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.1.tgz#8f8f9d94876c35dac989876a5d3a82a267fdce1d" + integrity sha512-1K6hR6wtk2FviQ4kEiSjFiH5rpzEVi8WW0x96aztHVMhEspNpc4DVOUTEHtEva5VThQ8IaBX1Pe4gSzpVVUsKQ== + +duplexer@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" + integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== + +eastasianwidth@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb" + integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== + +electron-to-chromium@^1.4.202: + version "1.4.211" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.211.tgz#afaa8b58313807501312d598d99b953568d60f91" + integrity sha512-BZSbMpyFQU0KBJ1JG26XGeFI3i4op+qOYGxftmZXFZoHkhLgsSv4DHDJfl8ogII3hIuzGt51PaZ195OVu0yJ9A== + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + +emoji-regex@^9.2.2: + version "9.2.2" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" + integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== + +emojis-list@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78" + integrity sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q== + +emoticon@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/emoticon/-/emoticon-4.0.1.tgz#2d2bbbf231ce3a5909e185bbb64a9da703a1e749" + integrity sha512-dqx7eA9YaqyvYtUhJwT4rC1HIp82j5ybS1/vQ42ur+jBe17dJMwZE4+gvL1XadSFfxaPFFGt3Xsw+Y8akThDlw== + +encodeurl@^1.0.2, encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== + +end-of-stream@^1.4.1: + version "1.4.4" + resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" + integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== + dependencies: + once "^1.4.0" + +enhanced-resolve@^4.1.1: + version "4.5.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-4.5.0.tgz#2f3cfd84dbe3b487f18f2db2ef1e064a571ca5ec" + integrity sha512-Nv9m36S/vxpsI+Hc4/ZGRs0n9mXqSWGGq49zxb/cJfPAQMbUtttJAlNPS4AQzaBdw/pKskw5bMbekT/Y7W/Wlg== + dependencies: + graceful-fs "^4.1.2" + memory-fs "^0.5.0" + tapable "^1.0.0" + +enhanced-resolve@^5.9.3: + version "5.10.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.10.0.tgz#0dc579c3bb2a1032e357ac45b8f3a6f3ad4fb1e6" + integrity sha512-T0yTFjdpldGY8PmuXXR0PyQ1ufZpEGiHVrp7zHKB7jdR4qlmZHhONVM5AQOAWXuF/w3dnHbEQVrNptJgt7F+cQ== + dependencies: + graceful-fs "^4.2.4" + tapable "^2.2.0" + +entities@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/entities/-/entities-2.2.0.tgz#098dc90ebb83d8dffa089d55256b351d34c4da55" + integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A== + +errno@^0.1.3: + version "0.1.8" + resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.8.tgz#8bb3e9c7d463be4976ff888f76b4809ebc2e811f" + integrity sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A== + dependencies: + prr "~1.0.1" + +error-ex@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" + integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== + dependencies: + is-arrayish "^0.2.1" + +esbuild-android-64@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-android-64/-/esbuild-android-64-0.14.53.tgz#259bc3ef1399a3cad8f4f67c40ee20779c4de675" + integrity sha512-fIL93sOTnEU+NrTAVMIKiAw0YH22HWCAgg4N4Z6zov2t0kY9RAJ50zY9ZMCQ+RT6bnOfDt8gCTnt/RaSNA2yRA== + +esbuild-android-arm64@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.14.53.tgz#2158253d4e8f9fdd2a081bbb4f73b8806178841e" + integrity sha512-PC7KaF1v0h/nWpvlU1UMN7dzB54cBH8qSsm7S9mkwFA1BXpaEOufCg8hdoEI1jep0KeO/rjZVWrsH8+q28T77A== + +esbuild-darwin-64@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.14.53.tgz#b4681831fd8f8d06feb5048acbe90d742074cc2a" + integrity sha512-gE7P5wlnkX4d4PKvLBUgmhZXvL7lzGRLri17/+CmmCzfncIgq8lOBvxGMiQ4xazplhxq+72TEohyFMZLFxuWvg== + +esbuild-darwin-arm64@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.53.tgz#d267d957852d121b261b3f76ead86e5b5463acc9" + integrity sha512-otJwDU3hnI15Q98PX4MJbknSZ/WSR1I45il7gcxcECXzfN4Mrpft5hBDHXNRnCh+5858uPXBXA1Vaz2jVWLaIA== + +esbuild-freebsd-64@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.53.tgz#aca2af6d72b537fe66a38eb8f374fb66d4c98ca0" + integrity sha512-WkdJa8iyrGHyKiPF4lk0MiOF87Q2SkE+i+8D4Cazq3/iqmGPJ6u49je300MFi5I2eUsQCkaOWhpCVQMTKGww2w== + +esbuild-freebsd-arm64@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.53.tgz#76282e19312d914c34343c8a7da6cc5f051580b9" + integrity sha512-9T7WwCuV30NAx0SyQpw8edbKvbKELnnm1FHg7gbSYaatH+c8WJW10g/OdM7JYnv7qkimw2ZTtSA+NokOLd2ydQ== + +esbuild-linux-32@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.14.53.tgz#1045d34cf7c5faaf2af3b29cc1573b06580c37e5" + integrity sha512-VGanLBg5en2LfGDgLEUxQko2lqsOS7MTEWUi8x91YmsHNyzJVT/WApbFFx3MQGhkf+XdimVhpyo5/G0PBY91zg== + +esbuild-linux-64@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.14.53.tgz#ab3f2ee2ebb5a6930c72d9539cb34b428808cbe4" + integrity sha512-pP/FA55j/fzAV7N9DF31meAyjOH6Bjuo3aSKPh26+RW85ZEtbJv9nhoxmGTd9FOqjx59Tc1ZbrJabuiXlMwuZQ== + +esbuild-linux-arm64@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.53.tgz#1f5530412f6690949e78297122350488d3266cfe" + integrity sha512-GDmWITT+PMsjCA6/lByYk7NyFssW4Q6in32iPkpjZ/ytSyH+xeEx8q7HG3AhWH6heemEYEWpTll/eui3jwlSnw== + +esbuild-linux-arm@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.14.53.tgz#a44ec9b5b42007ab6c0d65a224ccc6bbd97c54cf" + integrity sha512-/u81NGAVZMopbmzd21Nu/wvnKQK3pT4CrvQ8BTje1STXcQAGnfyKgQlj3m0j2BzYbvQxSy+TMck4TNV2onvoPA== + +esbuild-linux-mips64le@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.53.tgz#a4d0b6b17cfdeea4e41b0b085a5f73d99311be9f" + integrity sha512-d6/XHIQW714gSSp6tOOX2UscedVobELvQlPMkInhx1NPz4ThZI9uNLQ4qQJHGBGKGfu+rtJsxM4NVHLhnNRdWQ== + +esbuild-linux-ppc64le@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.53.tgz#8c331822c85465434e086e3e6065863770c38139" + integrity sha512-ndnJmniKPCB52m+r6BtHHLAOXw+xBCWIxNnedbIpuREOcbSU/AlyM/2dA3BmUQhsHdb4w3amD5U2s91TJ3MzzA== + +esbuild-linux-riscv64@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.53.tgz#36fd75543401304bea8a2d63bf8ea18aaa508e00" + integrity sha512-yG2sVH+QSix6ct4lIzJj329iJF3MhloLE6/vKMQAAd26UVPVkhMFqFopY+9kCgYsdeWvXdPgmyOuKa48Y7+/EQ== + +esbuild-linux-s390x@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.53.tgz#1622677ab6824123f48f75d3afc031cd41936129" + integrity sha512-OCJlgdkB+XPYndHmw6uZT7jcYgzmx9K+28PVdOa/eLjdoYkeAFvH5hTwX4AXGLZLH09tpl4bVsEtvuyUldaNCg== + +esbuild-netbsd-64@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.53.tgz#e86d0efd0116658be335492ed12e66b26b4baf52" + integrity sha512-gp2SB+Efc7MhMdWV2+pmIs/Ja/Mi5rjw+wlDmmbIn68VGXBleNgiEZG+eV2SRS0kJEUyHNedDtwRIMzaohWedQ== + +esbuild-openbsd-64@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.53.tgz#9bcbbe6f86304872c6e91f64c8eb73fc29c3588b" + integrity sha512-eKQ30ZWe+WTZmteDYg8S+YjHV5s4iTxeSGhJKJajFfQx9TLZJvsJX0/paqwP51GicOUruFpSUAs2NCc0a4ivQQ== + +esbuild-sunos-64@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.14.53.tgz#f7a872f7460bfb7b131f7188a95fbce3d1c577e8" + integrity sha512-OWLpS7a2FrIRukQqcgQqR1XKn0jSJoOdT+RlhAxUoEQM/IpytS3FXzCJM6xjUYtpO5GMY0EdZJp+ur2pYdm39g== + +esbuild-windows-32@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.14.53.tgz#c5e3ca50e2d1439cc2c9fe4defa63bcd474ce709" + integrity sha512-m14XyWQP5rwGW0tbEfp95U6A0wY0DYPInWBB7D69FAXUpBpBObRoGTKRv36lf2RWOdE4YO3TNvj37zhXjVL5xg== + +esbuild-windows-64@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.14.53.tgz#ec2ab4a60c5215f092ffe1eab6d01319e88238af" + integrity sha512-s9skQFF0I7zqnQ2K8S1xdLSfZFsPLuOGmSx57h2btSEswv0N0YodYvqLcJMrNMXh6EynOmWD7rz+0rWWbFpIHQ== + +esbuild-windows-arm64@0.14.53: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.53.tgz#f71d403806bdf9f4a1f9d097db9aec949bd675c8" + integrity sha512-E+5Gvb+ZWts+00T9II6wp2L3KG2r3iGxByqd/a1RmLmYWVsSVUjkvIxZuJ3hYTIbhLkH5PRwpldGTKYqVz0nzQ== + +esbuild@^0.14.27, esbuild@^0.14.47, esbuild@^0.14.49: + version "0.14.53" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.14.53.tgz#20b1007f686e8584f2a01a1bec5a37aac9498ce4" + integrity sha512-ohO33pUBQ64q6mmheX1mZ8mIXj8ivQY/L4oVuAshr+aJI+zLl+amrp3EodrUNDNYVrKJXGPfIHFGhO8slGRjuw== + optionalDependencies: + "@esbuild/linux-loong64" "0.14.53" + esbuild-android-64 "0.14.53" + esbuild-android-arm64 "0.14.53" + esbuild-darwin-64 "0.14.53" + esbuild-darwin-arm64 "0.14.53" + esbuild-freebsd-64 "0.14.53" + esbuild-freebsd-arm64 "0.14.53" + esbuild-linux-32 "0.14.53" + esbuild-linux-64 "0.14.53" + esbuild-linux-arm "0.14.53" + esbuild-linux-arm64 "0.14.53" + esbuild-linux-mips64le "0.14.53" + esbuild-linux-ppc64le "0.14.53" + esbuild-linux-riscv64 "0.14.53" + esbuild-linux-s390x "0.14.53" + esbuild-netbsd-64 "0.14.53" + esbuild-openbsd-64 "0.14.53" + esbuild-sunos-64 "0.14.53" + esbuild-windows-32 "0.14.53" + esbuild-windows-64 "0.14.53" + esbuild-windows-arm64 "0.14.53" + +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== + +escape-html@^1.0.3, escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== + +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== + +escape-string-regexp@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8" + integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== + +estree-walker@2.0.2, estree-walker@^2.0.1, estree-walker@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" + integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== + +estree-walker@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.6.1.tgz#53049143f40c6eb918b23671d1fe3219f3a1b362" + integrity sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w== + +estree-walker@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-1.0.1.tgz#31bc5d612c96b704106b477e6dd5d8aa138cb700" + integrity sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg== + +estree-walker@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-3.0.1.tgz#c2a9fb4a30232f5039b7c030b37ead691932debd" + integrity sha512-woY0RUD87WzMBUiZLx8NsYr23N5BKsOMZHhu2hoNRVh6NXGfoiT1KOL8G3UHlJAnEDGmfa5ubNA/AacfG+Kb0g== + +etag@^1.8.1, etag@~1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" + integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== + +eventemitter3@^4.0.0: + version "4.0.7" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" + integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== + +execa@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" + integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.0" + human-signals "^2.1.0" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.1" + onetime "^5.1.2" + signal-exit "^3.0.3" + strip-final-newline "^2.0.0" + +extend@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" + integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== + +external-editor@^3.0.3: + version "3.1.0" + resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" + integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== + dependencies: + chardet "^0.7.0" + iconv-lite "^0.4.24" + tmp "^0.0.33" + +externality@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/externality/-/externality-0.2.2.tgz#a0592150366ae714f212fe9da20fc9a22c882efa" + integrity sha512-seYffJRrRVI3qrCC0asf2mWAvQ/U0jZA+eECylqIxCDHzBs/W+ZeEv3D0bsjNeEewIYZKfELyY96mRactx8C4w== + dependencies: + enhanced-resolve "^5.9.3" + mlly "^0.5.2" + pathe "^0.3.0" + ufo "^0.8.3" + +fast-deep-equal@^3.1.1: + version "3.1.3" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" + integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== + +fast-glob@^3.2.11, fast-glob@^3.2.7: + version "3.2.11" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9" + integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + +fast-json-stable-stringify@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + +fastq@^1.6.0: + version "1.13.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c" + integrity sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw== + dependencies: + reusify "^1.0.4" + +fetch-blob@^3.1.2, fetch-blob@^3.1.4: + version "3.2.0" + resolved "https://registry.yarnpkg.com/fetch-blob/-/fetch-blob-3.2.0.tgz#f09b8d4bbd45adc6f0c20b7e787e793e309dcce9" + integrity sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ== + dependencies: + node-domexception "^1.0.0" + web-streams-polyfill "^3.0.3" + +figures@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/figures/-/figures-4.0.1.tgz#27b26609907bc888b3e3b0ef5403643f80aa2518" + integrity sha512-rElJwkA/xS04Vfg+CaZodpso7VqBknOYbzi6I76hI4X80RUjkSxO2oAyPmGbuXUppywjqndOrQDl817hDnI++w== + dependencies: + escape-string-regexp "^5.0.0" + is-unicode-supported "^1.2.0" + +file-uri-to-path@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" + integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== + +fill-range@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" + integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== + dependencies: + to-regex-range "^5.0.1" + +flat@^5.0.0, flat@^5.0.2: + version "5.0.2" + resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" + integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== + +follow-redirects@^1.0.0: + version "1.15.1" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.1.tgz#0ca6a452306c9b276e4d3127483e29575e207ad5" + integrity sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA== + +formdata-polyfill@^4.0.10: + version "4.0.10" + resolved "https://registry.yarnpkg.com/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz#24807c31c9d402e002ab3d8c720144ceb8848423" + integrity sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g== + dependencies: + fetch-blob "^3.1.2" + +fraction.js@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.2.0.tgz#448e5109a313a3527f5a3ab2119ec4cf0e0e2950" + integrity sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA== + +fresh@0.5.2, fresh@~0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" + integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== + +fs-constants@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" + integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow== + +fs-extra@^10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf" + integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + +fs-extra@^9.0.1: + version "9.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d" + integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== + dependencies: + at-least-node "^1.0.0" + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + +fs-memo@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/fs-memo/-/fs-memo-1.2.0.tgz#a2ec3be606b902077adbb37ec529c5ec5fb2e037" + integrity sha512-YEexkCpL4j03jn5SxaMHqcO6IuWuqm8JFUYhyCep7Ao89JIYmB8xoKhK7zXXJ9cCaNXpyNH5L3QtAmoxjoHW2w== + +fs-minipass@^1.2.7: + version "1.2.7" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.7.tgz#ccff8570841e7fe4265693da88936c55aed7f7c7" + integrity sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA== + dependencies: + minipass "^2.6.0" + +fs-minipass@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-2.1.0.tgz#7f5036fdbf12c63c169190cbe4199c852271f9fb" + integrity sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg== + dependencies: + minipass "^3.0.0" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== + +fsevents@~2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" + integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== + +gauge@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-3.0.2.tgz#03bf4441c044383908bcfa0656ad91803259b395" + integrity sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q== + dependencies: + aproba "^1.0.3 || ^2.0.0" + color-support "^1.1.2" + console-control-strings "^1.0.0" + has-unicode "^2.0.1" + object-assign "^4.1.1" + signal-exit "^3.0.0" + string-width "^4.2.3" + strip-ansi "^6.0.1" + wide-align "^1.1.2" + +gensync@^1.0.0-beta.2: + version "1.0.0-beta.2" + resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" + integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== + +get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + +get-port-please@^2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/get-port-please/-/get-port-please-2.5.0.tgz#1e2d40a6f55c02a1caed99991c64ed84afe50c72" + integrity sha512-NblPebBznYARC1R2r1qmusbJAAgBr954gWhEZgwTerzR8r3ud6U5PI1SG4Lue43r87aikPPjObs85VieIDK99A== + dependencies: + fs-memo "^1.2.0" + +get-stream@^6.0.0: + version "6.0.1" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" + integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== + +git-config-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/git-config-path/-/git-config-path-2.0.0.tgz#62633d61af63af4405a5024efd325762f58a181b" + integrity sha512-qc8h1KIQbJpp+241id3GuAtkdyJ+IK+LIVtkiFTRKRrmddDzs3SI9CvP1QYmWBFvm1I/PWRwj//of8bgAc0ltA== + +git-up@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/git-up/-/git-up-6.0.0.tgz#dbd6e4eee270338be847a0601e6d0763c90b74db" + integrity sha512-6RUFSNd1c/D0xtGnyWN2sxza2bZtZ/EmI9448n6rCZruFwV/ezeEn2fJP7XnUQGwf0RAtd/mmUCbtH6JPYA2SA== + dependencies: + is-ssh "^1.4.0" + parse-url "^7.0.2" + +git-url-parse@^12.0.0: + version "12.0.0" + resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-12.0.0.tgz#4ba70bc1e99138321c57e3765aaf7428e5abb793" + integrity sha512-I6LMWsxV87vysX1WfsoglXsXg6GjQRKq7+Dgiseo+h0skmp5Hp2rzmcEIRQot9CPA+uzU7x1x7jZdqvTFGnB+Q== + dependencies: + git-up "^6.0.0" + +github-slugger@^1.1.1: + version "1.4.0" + resolved "https://registry.yarnpkg.com/github-slugger/-/github-slugger-1.4.0.tgz#206eb96cdb22ee56fdc53a28d5a302338463444e" + integrity sha512-w0dzqw/nt51xMVmlaV1+JRzN+oCa1KfcgGEWhxUG16wbdA+Xnt/yoFO8Z8x/V82ZcZ0wy6ln9QDup5avbhiDhQ== + +gittar@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/gittar/-/gittar-0.1.1.tgz#d6993ea6160a86c8b7f3de722a61f73bc99e14b4" + integrity sha512-p+XuqWJpW9ahUuNTptqeFjudFq31o6Jd+maMBarkMAR5U3K9c7zJB4sQ4BV8mIqrTOV29TtqikDhnZfCD4XNfQ== + dependencies: + mkdirp "^0.5.1" + tar "^4.4.1" + +glob-parent@^5.1.2, glob-parent@~5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + +glob-parent@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" + integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== + dependencies: + is-glob "^4.0.3" + +glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.2.0: + version "7.2.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.1.1" + once "^1.3.0" + path-is-absolute "^1.0.0" + +globals@^11.1.0: + version "11.12.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" + integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== + +globby@^13.1.2: + version "13.1.2" + resolved "https://registry.yarnpkg.com/globby/-/globby-13.1.2.tgz#29047105582427ab6eca4f905200667b056da515" + integrity sha512-LKSDZXToac40u8Q1PQtZihbNdTYSNMuWe+K5l+oa6KgDzSvVrHXlJy40hUP522RjAIoNLJYBJi7ow+rbFpIhHQ== + dependencies: + dir-glob "^3.0.1" + fast-glob "^3.2.11" + ignore "^5.2.0" + merge2 "^1.4.1" + slash "^4.0.0" + +graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.9: + version "4.2.10" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" + integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== + +gzip-size@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-7.0.0.tgz#9f9644251f15bc78460fccef4055ae5a5562ac60" + integrity sha512-O1Ld7Dr+nqPnmGpdhzLmMTQ4vAsD+rHwMm1NLUmoUFFymBOMKxCCrtDxqdBRYXdeEPEi3SyoR4TizJLQrnKBNA== + dependencies: + duplexer "^0.1.2" + +h3@^0.7.10, h3@^0.7.12: + version "0.7.13" + resolved "https://registry.yarnpkg.com/h3/-/h3-0.7.13.tgz#554f75294fab24dc0aa6bbe6bcd59403f4f059bd" + integrity sha512-3rs+iokAwin4GnToWc+4JeASAYPujojMWicaTgv5WMucED94cFVVGctlk7N6iJfQ7SZ2N5CtmQ2C3L2aDFpd2w== + dependencies: + cookie-es "^0.5.0" + destr "^1.1.1" + radix3 "^0.1.2" + ufo "^0.8.5" + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + +has-symbols@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" + integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== + +has-tostringtag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25" + integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ== + dependencies: + has-symbols "^1.0.2" + +has-unicode@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + integrity sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ== + +has@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== + dependencies: + function-bind "^1.1.1" + +hash-sum@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/hash-sum/-/hash-sum-2.0.0.tgz#81d01bb5de8ea4a214ad5d6ead1b523460b0b45a" + integrity sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg== + +hast-to-hyperscript@^10.0.0: + version "10.0.1" + resolved "https://registry.yarnpkg.com/hast-to-hyperscript/-/hast-to-hyperscript-10.0.1.tgz#3decd7cb4654bca8883f6fcbd4fb3695628c4296" + integrity sha512-dhIVGoKCQVewFi+vz3Vt567E4ejMppS1haBRL6TEmeLeJVB1i/FJIIg/e6s1Bwn0g5qtYojHEKvyGA+OZuyifw== + dependencies: + "@types/unist" "^2.0.0" + comma-separated-tokens "^2.0.0" + property-information "^6.0.0" + space-separated-tokens "^2.0.0" + style-to-object "^0.3.0" + unist-util-is "^5.0.0" + web-namespaces "^2.0.0" + +hast-util-from-parse5@^7.0.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/hast-util-from-parse5/-/hast-util-from-parse5-7.1.0.tgz#c129dd3a24dd8a867ab8a029ca47e27aa54864b7" + integrity sha512-m8yhANIAccpU4K6+121KpPP55sSl9/samzQSQGpb0mTExcNh2WlvjtMwSWFhg6uqD4Rr6Nfa8N6TMypQM51rzQ== + dependencies: + "@types/hast" "^2.0.0" + "@types/parse5" "^6.0.0" + "@types/unist" "^2.0.0" + hastscript "^7.0.0" + property-information "^6.0.0" + vfile "^5.0.0" + vfile-location "^4.0.0" + web-namespaces "^2.0.0" + +hast-util-has-property@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/hast-util-has-property/-/hast-util-has-property-2.0.0.tgz#c15cd6180f3e535540739fcc9787bcffb5708cae" + integrity sha512-4Qf++8o5v14us4Muv3HRj+Er6wTNGA/N9uCaZMty4JWvyFKLdhULrv4KE1b65AthsSO9TXSZnjuxS8ecIyhb0w== + +hast-util-heading-rank@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/hast-util-heading-rank/-/hast-util-heading-rank-2.1.0.tgz#c39f34fa8330ebfec03a08b5d5019ed56122029c" + integrity sha512-w+Rw20Q/iWp2Bcnr6uTrYU6/ftZLbHKhvc8nM26VIWpDqDMlku2iXUVTeOlsdoih/UKQhY7PHQ+vZ0Aqq8bxtQ== + dependencies: + "@types/hast" "^2.0.0" + +hast-util-is-element@^2.0.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/hast-util-is-element/-/hast-util-is-element-2.1.2.tgz#fc0b0dc7cef3895e839b8d66979d57b0338c68f3" + integrity sha512-thjnlGAnwP8ef/GSO1Q8BfVk2gundnc2peGQqEg2kUt/IqesiGg/5mSwN2fE7nLzy61pg88NG6xV+UrGOrx9EA== + dependencies: + "@types/hast" "^2.0.0" + "@types/unist" "^2.0.0" + +hast-util-parse-selector@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/hast-util-parse-selector/-/hast-util-parse-selector-3.1.0.tgz#a519e27e8b61bd5a98fad494ed06131ce68d9c3f" + integrity sha512-AyjlI2pTAZEOeu7GeBPZhROx0RHBnydkQIXlhnFzDi0qfXTmGUWoCYZtomHbrdrheV4VFUlPcfJ6LMF5T6sQzg== + dependencies: + "@types/hast" "^2.0.0" + +hast-util-raw@^7.2.0: + version "7.2.2" + resolved "https://registry.yarnpkg.com/hast-util-raw/-/hast-util-raw-7.2.2.tgz#1974360b2d7f15b5ce26c2a4bac892d5d8185a18" + integrity sha512-0x3BhhdlBcqRIKyc095lBSDvmQNMY3Eulj2PLsT5XCyKYrxssI5yr3P4Kv/PBo1s/DMkZy2voGkMXECnFCZRLQ== + dependencies: + "@types/hast" "^2.0.0" + "@types/parse5" "^6.0.0" + hast-util-from-parse5 "^7.0.0" + hast-util-to-parse5 "^7.0.0" + html-void-elements "^2.0.0" + parse5 "^6.0.0" + unist-util-position "^4.0.0" + unist-util-visit "^4.0.0" + vfile "^5.0.0" + web-namespaces "^2.0.0" + zwitch "^2.0.0" + +hast-util-to-parse5@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/hast-util-to-parse5/-/hast-util-to-parse5-7.0.0.tgz#a39808e69005d10afeed1866029a1fb137df3f7c" + integrity sha512-YHiS6aTaZ3N0Q3nxaY/Tj98D6kM8QX5Q8xqgg8G45zR7PvWnPGPP0vcKCgb/moIydEJ/QWczVrX0JODCVeoV7A== + dependencies: + "@types/hast" "^2.0.0" + "@types/parse5" "^6.0.0" + hast-to-hyperscript "^10.0.0" + property-information "^6.0.0" + web-namespaces "^2.0.0" + zwitch "^2.0.0" + +hast-util-to-string@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/hast-util-to-string/-/hast-util-to-string-2.0.0.tgz#b008b0a4ea472bf34dd390b7eea1018726ae152a" + integrity sha512-02AQ3vLhuH3FisaMM+i/9sm4OXGSq1UhOOCpTLLQtHdL3tZt7qil69r8M8iDkZYyC0HCFylcYoP+8IO7ddta1A== + dependencies: + "@types/hast" "^2.0.0" + +hastscript@^7.0.0: + version "7.0.2" + resolved "https://registry.yarnpkg.com/hastscript/-/hastscript-7.0.2.tgz#d811fc040817d91923448a28156463b2e40d590a" + integrity sha512-uA8ooUY4ipaBvKcMuPehTAB/YfFLSSzCwFSwT6ltJbocFUKH/GDHLN+tflq7lSRf9H86uOuxOFkh1KgIy3Gg2g== + dependencies: + "@types/hast" "^2.0.0" + comma-separated-tokens "^2.0.0" + hast-util-parse-selector "^3.0.0" + property-information "^6.0.0" + space-separated-tokens "^2.0.0" + +hookable@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/hookable/-/hookable-5.1.1.tgz#8e4cf052da4382ee232138cd9425369b9d5b280e" + integrity sha512-7qam9XBFb+DijNBthaL1k/7lHU2TEMZkWSyuqmU3sCQze1wFm5w9AlEx30PD7a+QVAjOy6Ec2goFwe1YVyk2uA== + +html-tags@^3.1.0, html-tags@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/html-tags/-/html-tags-3.2.0.tgz#dbb3518d20b726524e4dd43de397eb0a95726961" + integrity sha512-vy7ClnArOZwCnqZgvv+ddgHgJiAFXe3Ge9ML5/mBctVJoUoYPCdxVucOywjDARn6CVoh3dRSFdPHy2sX80L0Wg== + +html-void-elements@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/html-void-elements/-/html-void-elements-2.0.1.tgz#29459b8b05c200b6c5ee98743c41b979d577549f" + integrity sha512-0quDb7s97CfemeJAnW9wC0hw78MtW7NU3hqtCD75g2vFlDLt36llsYD7uB7SUzojLMP24N5IatXf7ylGXiGG9A== + +http-assert@^1.3.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/http-assert/-/http-assert-1.5.0.tgz#c389ccd87ac16ed2dfa6246fd73b926aa00e6b8f" + integrity sha512-uPpH7OKX4H25hBmU6G1jWNaqJGpTXxey+YOUizJUAgu0AjLUeC8D73hTrhvDS5D+GJN1DN1+hhc/eF/wpxtp0w== + dependencies: + deep-equal "~1.0.1" + http-errors "~1.8.0" + +http-errors@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" + integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== + dependencies: + depd "2.0.0" + inherits "2.0.4" + setprototypeof "1.2.0" + statuses "2.0.1" + toidentifier "1.0.1" + +http-errors@^1.6.3, http-errors@^1.7.3, http-errors@~1.8.0: + version "1.8.1" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.8.1.tgz#7c3f28577cbc8a207388455dbd62295ed07bd68c" + integrity sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g== + dependencies: + depd "~1.1.2" + inherits "2.0.4" + setprototypeof "1.2.0" + statuses ">= 1.5.0 < 2" + toidentifier "1.0.1" + +http-errors@~1.6.2: + version "1.6.3" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d" + integrity sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A== + dependencies: + depd "~1.1.2" + inherits "2.0.3" + setprototypeof "1.1.0" + statuses ">= 1.4.0 < 2" + +http-proxy@^1.18.1: + version "1.18.1" + resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.1.tgz#401541f0534884bbf95260334e72f88ee3976549" + integrity sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ== + dependencies: + eventemitter3 "^4.0.0" + follow-redirects "^1.0.0" + requires-port "^1.0.0" + +http-shutdown@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/http-shutdown/-/http-shutdown-1.2.2.tgz#41bc78fc767637c4c95179bc492f312c0ae64c5f" + integrity sha512-S9wWkJ/VSY9/k4qcjG318bqJNruzE4HySUhFYknwmu6LBP97KLLfwNf+n4V1BHurvFNkSKLFnK/RsuUnRTf9Vw== + +https-proxy-agent@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" + integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== + dependencies: + agent-base "6" + debug "4" + +human-signals@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" + integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== + +iconv-lite@^0.4.24: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +icss-utils@^5.0.0, icss-utils@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-5.1.0.tgz#c6be6858abd013d768e98366ae47e25d5887b1ae" + integrity sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA== + +ieee754@^1.1.13, ieee754@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" + integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== + +ignore@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" + integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ== + +import-fresh@^3.2.1: + version "3.3.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" + integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.4, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +inherits@2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + integrity sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw== + +ini@^1.3.5: + version "1.3.8" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" + integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== + +inline-style-parser@0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/inline-style-parser/-/inline-style-parser-0.1.1.tgz#ec8a3b429274e9c0a1f1c4ffa9453a7fef72cea1" + integrity sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q== + +inquirer@^9.1.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-9.1.0.tgz#446a09abe2e5a18973322bee89b42a6c304f2cd3" + integrity sha512-eukdjrBljg9t55ZnvJjvGi1OyYEzVBFsO/8o5d2MV3mc28u3x4X2kS4eJ/+9U10KiREfPkEBSeCrU/S2G/uRtw== + dependencies: + ansi-escapes "^5.0.0" + chalk "^5.0.1" + cli-cursor "^4.0.0" + cli-width "^4.0.0" + external-editor "^3.0.3" + figures "^4.0.1" + lodash "^4.17.21" + mute-stream "0.0.8" + ora "^6.1.2" + run-async "^2.4.0" + rxjs "^7.5.6" + string-width "^5.1.2" + strip-ansi "^7.0.1" + through "^2.3.6" + wrap-ansi "^8.0.1" + +ioredis@^5.2.2: + version "5.2.2" + resolved "https://registry.yarnpkg.com/ioredis/-/ioredis-5.2.2.tgz#212467e04f6779b4e0e800cece7bb7d3d7b546d2" + integrity sha512-wryKc1ur8PcCmNwfcGkw5evouzpbDXxxkMkzPK8wl4xQfQf7lHe11Jotell5ikMVAtikXJEu/OJVaoV51BggRQ== + dependencies: + "@ioredis/commands" "^1.1.1" + cluster-key-slot "^1.1.0" + debug "^4.3.4" + denque "^2.0.1" + lodash.defaults "^4.2.0" + lodash.isarguments "^3.1.0" + redis-errors "^1.2.0" + redis-parser "^3.0.0" + standard-as-callback "^2.1.0" + +is-absolute-url@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-4.0.1.tgz#16e4d487d4fded05cfe0685e53ec86804a5e94dc" + integrity sha512-/51/TKE88Lmm7Gc4/8btclNXWS+g50wXhYJq8HWIBAGUBnoAdRu1aXeh364t/O7wXDAcTJDP8PNuNKWUDWie+A== + +is-alphabetical@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-alphabetical/-/is-alphabetical-2.0.1.tgz#01072053ea7c1036df3c7d19a6daaec7f19e789b" + integrity sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ== + +is-alphanumerical@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz#7c03fbe96e3e931113e57f964b0a368cc2dfd875" + integrity sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw== + dependencies: + is-alphabetical "^2.0.0" + is-decimal "^2.0.0" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== + +is-binary-path@~2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" + integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== + dependencies: + binary-extensions "^2.0.0" + +is-buffer@^2.0.0: + version "2.0.5" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191" + integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ== + +is-builtin-module@^3.1.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-3.2.0.tgz#bb0310dfe881f144ca83f30100ceb10cf58835e0" + integrity sha512-phDA4oSGt7vl1n5tJvTWooWWAsXLY+2xCnxNqvKhGEzujg+A43wPlPOyDg3C8XQHN+6k/JTQWJ/j0dQh/qr+Hw== + dependencies: + builtin-modules "^3.3.0" + +is-core-module@^2.9.0: + version "2.10.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.10.0.tgz#9012ede0a91c69587e647514e1d5277019e728ed" + integrity sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg== + dependencies: + has "^1.0.3" + +is-decimal@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-2.0.1.tgz#9469d2dc190d0214fd87d78b78caecc0cc14eef7" + integrity sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A== + +is-docker@^2.0.0, is-docker@^2.1.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" + integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== + +is-docker@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-3.0.0.tgz#90093aa3106277d8a77a5910dbae71747e15a200" + integrity sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ== + +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + +is-generator-function@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/is-generator-function/-/is-generator-function-1.0.10.tgz#f1558baf1ac17e0deea7c0415c438351ff2b3c72" + integrity sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A== + dependencies: + has-tostringtag "^1.0.0" + +is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: + version "4.0.3" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + +is-hexadecimal@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz#86b5bf668fca307498d319dfc03289d781a90027" + integrity sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg== + +is-interactive@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-2.0.0.tgz#40c57614593826da1100ade6059778d597f16e90" + integrity sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ== + +is-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591" + integrity sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g== + +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + +is-plain-obj@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-4.1.0.tgz#d65025edec3657ce032fd7db63c97883eaed71f0" + integrity sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg== + +is-primitive@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-3.0.1.tgz#98c4db1abff185485a657fc2905052b940524d05" + integrity sha512-GljRxhWvlCNRfZyORiH77FwdFwGcMO620o37EOYC0ORWdq+WYNVqW0w2Juzew4M+L81l6/QS3t5gkkihyRqv9w== + +is-promise@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-4.0.0.tgz#42ff9f84206c1991d26debf520dd5c01042dd2f3" + integrity sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ== + +is-reference@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/is-reference/-/is-reference-1.2.1.tgz#8b2dac0b371f4bc994fdeaba9eb542d03002d0b7" + integrity sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ== + dependencies: + "@types/estree" "*" + +is-ssh@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/is-ssh/-/is-ssh-1.4.0.tgz#4f8220601d2839d8fa624b3106f8e8884f01b8b2" + integrity sha512-x7+VxdxOdlV3CYpjvRLBv5Lo9OJerlYanjwFrPR9fuGPjCiNiCzFgAWpiLAohSbsnH4ZAys3SBh+hq5rJosxUQ== + dependencies: + protocols "^2.0.1" + +is-stream@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" + integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== + +is-unicode-supported@^1.1.0, is-unicode-supported@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-1.2.0.tgz#f4f54f34d8ebc84a46b93559a036763b6d3e1014" + integrity sha512-wH+U77omcRzevfIG8dDhTS0V9zZyweakfD01FULl97+0EHiJTTZtJqxPSkIIo/SDPv/i07k/C9jAPY+jwLLeUQ== + +is-utf8@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" + integrity sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q== + +is-wsl@^2.1.1, is-wsl@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" + integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== + dependencies: + is-docker "^2.0.0" + +isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== + +jest-worker@^26.2.1: + version "26.6.2" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" + integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== + dependencies: + "@types/node" "*" + merge-stream "^2.0.0" + supports-color "^7.0.0" + +jiti@^1.14.0: + version "1.14.0" + resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.14.0.tgz#5350fff532a4d891ca4bcd700c47c1f40e6ee326" + integrity sha512-4IwstlaKQc9vCTC+qUXLM1hajy2ImiL9KnLvVYiaHOtS/v3wRjhLlGl121AmgDgx/O43uKmxownJghS5XMya2A== + +js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + +jsesc@^2.5.1: + version "2.5.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" + integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== + +json-parse-even-better-errors@^2.3.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" + integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + +json5@^2.1.2, json5@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" + integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== + +jsonc-parser@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.1.0.tgz#73b8f0e5c940b83d03476bc2e51a20ef0932615d" + integrity sha512-DRf0QjnNeCUds3xTjKlQQ3DpJD51GvDjJfnxUVWg6PZTo2otSm+slzNAxU/35hF8/oJIKoG9slq30JYOsF2azg== + +jsonfile@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" + integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== + dependencies: + universalify "^2.0.0" + optionalDependencies: + graceful-fs "^4.1.6" + +keygrip@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/keygrip/-/keygrip-1.1.0.tgz#871b1681d5e159c62a445b0c74b615e0917e7226" + integrity sha512-iYSchDJ+liQ8iwbSI2QqsQOvqv58eJCEanyJPJi+Khyu8smkcKSFUCbPwzFcL7YVtZ6eONjqRX/38caJ7QjRAQ== + dependencies: + tsscmp "1.0.6" + +kleur@^4.0.3: + version "4.1.5" + resolved "https://registry.yarnpkg.com/kleur/-/kleur-4.1.5.tgz#95106101795f7050c6c650f350c683febddb1780" + integrity sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ== + +klona@^2.0.4, klona@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/klona/-/klona-2.0.5.tgz#d166574d90076395d9963aa7a928fabb8d76afbc" + integrity sha512-pJiBpiXMbt7dkzXe8Ghj/u4FfXOOa98fPW+bihOJ4SjnoijweJrNThJfd3ifXpXhREjpoF2mZVH1GfS9LV3kHQ== + +knitwork@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/knitwork/-/knitwork-0.1.2.tgz#5447a81d8eaede57d236f864ec29b8dc2bc192bf" + integrity sha512-2ekmY2S/VB3YGVhrIFadyJQpkjMFSf48tsXCnA+kjs4FEQIT+5FLyOF0No/X58z/2E/VaMyeJfukRoVT4gMsfQ== + +koa-compose@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/koa-compose/-/koa-compose-4.1.0.tgz#507306b9371901db41121c812e923d0d67d3e877" + integrity sha512-8ODW8TrDuMYvXRwra/Kh7/rJo9BtOfPc6qO8eAfC80CnCvSjSl0bkRM24X6/XBBEyj0v1nRUQ1LyOy3dbqOWXw== + +koa-convert@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/koa-convert/-/koa-convert-2.0.0.tgz#86a0c44d81d40551bae22fee6709904573eea4f5" + integrity sha512-asOvN6bFlSnxewce2e/DK3p4tltyfC4VM7ZwuTuepI7dEQVcvpyFuBcEARu1+Hxg8DIwytce2n7jrZtRlPrARA== + dependencies: + co "^4.6.0" + koa-compose "^4.1.0" + +koa-send@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/koa-send/-/koa-send-5.0.1.tgz#39dceebfafb395d0d60beaffba3a70b4f543fe79" + integrity sha512-tmcyQ/wXXuxpDxyNXv5yNNkdAMdFRqwtegBXUaowiQzUKqJehttS0x2j0eOZDQAyloAth5w6wwBImnFzkUz3pQ== + dependencies: + debug "^4.1.1" + http-errors "^1.7.3" + resolve-path "^1.4.0" + +koa-static@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/koa-static/-/koa-static-5.0.0.tgz#5e92fc96b537ad5219f425319c95b64772776943" + integrity sha512-UqyYyH5YEXaJrf9S8E23GoJFQZXkBVJ9zYYMPGz919MSX1KuvAcycIuS0ci150HCoPf4XQVhQ84Qf8xRPWxFaQ== + dependencies: + debug "^3.1.0" + koa-send "^5.0.0" + +koa@^2.12.0: + version "2.13.4" + resolved "https://registry.yarnpkg.com/koa/-/koa-2.13.4.tgz#ee5b0cb39e0b8069c38d115139c774833d32462e" + integrity sha512-43zkIKubNbnrULWlHdN5h1g3SEKXOEzoAlRsHOTFpnlDu8JlAOZSMJBLULusuXRequboiwJcj5vtYXKB3k7+2g== + dependencies: + accepts "^1.3.5" + cache-content-type "^1.0.0" + content-disposition "~0.5.2" + content-type "^1.0.4" + cookies "~0.8.0" + debug "^4.3.2" + delegates "^1.0.0" + depd "^2.0.0" + destroy "^1.0.4" + encodeurl "^1.0.2" + escape-html "^1.0.3" + fresh "~0.5.2" + http-assert "^1.3.0" + http-errors "^1.6.3" + is-generator-function "^1.0.7" + koa-compose "^4.1.0" + koa-convert "^2.0.0" + on-finished "^2.3.0" + only "~0.0.2" + parseurl "^1.3.2" + statuses "^1.5.0" + type-is "^1.6.16" + vary "^1.1.2" + +kolorist@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/kolorist/-/kolorist-1.5.1.tgz#c3d66dc4fabde4f6b7faa6efda84c00491f9e52b" + integrity sha512-lxpCM3HTvquGxKGzHeknB/sUjuVoUElLlfYnXZT73K8geR9jQbroGlSCFBax9/0mpGoD3kzcMLnOlGQPJJNyqQ== + +lazystream@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/lazystream/-/lazystream-1.0.1.tgz#494c831062f1f9408251ec44db1cba29242a2638" + integrity sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw== + dependencies: + readable-stream "^2.0.5" + +lilconfig@^2.0.3, lilconfig@^2.0.5, lilconfig@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.0.6.tgz#32a384558bd58af3d4c6e077dd1ad1d397bc69d4" + integrity sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg== + +lines-and-columns@^1.1.6: + version "1.2.4" + resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" + integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== + +listhen@^0.2.13: + version "0.2.13" + resolved "https://registry.yarnpkg.com/listhen/-/listhen-0.2.13.tgz#bd34338fe04ff9f3f08e4f83a46eefc9104b2482" + integrity sha512-axfyPgsrypKohOglPjzMVj+6nSQuDfdDzq92tYEg4HO+YkvvMGz0bGeoGA+pdEC7a8gbIgLduf/62Pkk1a9jMQ== + dependencies: + clipboardy "^3.0.0" + colorette "^2.0.16" + defu "^6.0.0" + get-port-please "^2.5.0" + http-shutdown "^1.2.2" + selfsigned "^2.0.1" + ufo "^0.8.4" + +loader-utils@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.2.tgz#d6e3b4fb81870721ae4e0868ab11dd638368c129" + integrity sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A== + dependencies: + big.js "^5.2.2" + emojis-list "^3.0.0" + json5 "^2.1.2" + +local-pkg@^0.4.2: + version "0.4.2" + resolved "https://registry.yarnpkg.com/local-pkg/-/local-pkg-0.4.2.tgz#13107310b77e74a0e513147a131a2ba288176c2f" + integrity sha512-mlERgSPrbxU3BP4qBqAvvwlgW4MTg78iwJdGGnv7kibKjWcJksrG3t6LB5lXI93wXRDvG4NpUgJFmTG4T6rdrg== + +lodash._reinterpolate@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" + integrity sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA== + +lodash.castarray@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.castarray/-/lodash.castarray-4.4.0.tgz#c02513515e309daddd4c24c60cfddcf5976d9115" + integrity sha512-aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q== + +lodash.debounce@^4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" + integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== + +lodash.defaults@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/lodash.defaults/-/lodash.defaults-4.2.0.tgz#d09178716ffea4dde9e5fb7b37f6f0802274580c" + integrity sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ== + +lodash.difference@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.difference/-/lodash.difference-4.5.0.tgz#9ccb4e505d486b91651345772885a2df27fd017c" + integrity sha512-dS2j+W26TQ7taQBGN8Lbbq04ssV3emRw4NY58WErlTO29pIqS0HmoT5aJ9+TUQ1N3G+JOZSji4eugsWwGp9yPA== + +lodash.flatten@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.flatten/-/lodash.flatten-4.4.0.tgz#f31c22225a9632d2bbf8e4addbef240aa765a61f" + integrity sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g== + +lodash.isarguments@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" + integrity sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg== + +lodash.isplainobject@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" + integrity sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA== + +lodash.memoize@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" + integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag== + +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + +lodash.pick@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3" + integrity sha512-hXt6Ul/5yWjfklSGvLQl8vM//l3FtyHZeuelpzK6mm99pNvN9yTDruNZPEJZD1oWrqo+izBmB7oUfWgcCX7s4Q== + +lodash.template@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab" + integrity sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A== + dependencies: + lodash._reinterpolate "^3.0.0" + lodash.templatesettings "^4.0.0" + +lodash.templatesettings@^4.0.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz#e481310f049d3cf6d47e912ad09313b154f0fb33" + integrity sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ== + dependencies: + lodash._reinterpolate "^3.0.0" + +lodash.truncate@^4.4.2: + version "4.4.2" + resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" + integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== + +lodash.union@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash.union/-/lodash.union-4.6.0.tgz#48bb5088409f16f1821666641c44dd1aaae3cd88" + integrity sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw== + +lodash.uniq@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" + integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ== + +lodash@^4.17.14, lodash@^4.17.21, lodash@^4.17.3: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== + +log-symbols@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-5.1.0.tgz#a20e3b9a5f53fac6aeb8e2bb22c07cf2c8f16d93" + integrity sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA== + dependencies: + chalk "^5.0.0" + is-unicode-supported "^1.1.0" + +longest-streak@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-3.0.1.tgz#c97315b7afa0e7d9525db9a5a2953651432bdc5d" + integrity sha512-cHlYSUpL2s7Fb3394mYxwTYj8niTaNHUCLr0qdiCXQfSjfuA7CKofpX2uSwEfFDQ0EB7JcnMnm+GjbqqoinYYg== + +lru-cache@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" + integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== + dependencies: + yallist "^4.0.0" + +magic-string@^0.25.7: + version "0.25.9" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.9.tgz#de7f9faf91ef8a1c91d02c2e5314c8277dbcdd1c" + integrity sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ== + dependencies: + sourcemap-codec "^1.4.8" + +magic-string@^0.26.1, magic-string@^0.26.2: + version "0.26.2" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.26.2.tgz#5331700e4158cd6befda738bb6b0c7b93c0d4432" + integrity sha512-NzzlXpclt5zAbmo6h6jNc8zl2gNRGHvmsZW4IvZhTC4W7k4OlLP+S5YLussa/r3ixNT66KOQfNORlXHSOy/X4A== + dependencies: + sourcemap-codec "^1.4.8" + +make-dir@^3.1.0, make-dir@~3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" + integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== + dependencies: + semver "^6.0.0" + +markdown-table@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-3.0.2.tgz#9b59eb2c1b22fe71954a65ff512887065a7bb57c" + integrity sha512-y8j3a5/DkJCmS5x4dMCQL+OR0+2EAq3DOtio1COSHsmW2BGXnNCK3v12hJt1LrUz5iZH5g0LmuYOjDdI+czghA== + +mdast-squeeze-paragraphs@^5.0.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/mdast-squeeze-paragraphs/-/mdast-squeeze-paragraphs-5.2.0.tgz#23440cea3586a1cb70771f98971d4f8bf1dbb36b" + integrity sha512-uqPZ2smyXe0gNjweQaDkm7eK/KgvcS0u9X9yu28Yj/UOmK6CN6JRs/puzAGQw72vZcxWxs05LxkUTwZIsQZvrw== + dependencies: + "@types/mdast" "^3.0.0" + unist-util-remove "^3.0.0" + +mdast-util-definitions@^5.0.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/mdast-util-definitions/-/mdast-util-definitions-5.1.1.tgz#2c1d684b28e53f84938bb06317944bee8efa79db" + integrity sha512-rQ+Gv7mHttxHOBx2dkF4HWTg+EE+UR78ptQWDylzPKaQuVGdG4HIoY3SrS/pCp80nZ04greFvXbVFHT+uf0JVQ== + dependencies: + "@types/mdast" "^3.0.0" + "@types/unist" "^2.0.0" + unist-util-visit "^4.0.0" + +mdast-util-find-and-replace@^2.0.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/mdast-util-find-and-replace/-/mdast-util-find-and-replace-2.2.1.tgz#249901ef43c5f41d6e8a8d446b3b63b17e592d7c" + integrity sha512-SobxkQXFAdd4b5WmEakmkVoh18icjQRxGy5OWTCzgsLRm1Fu/KCtwD1HIQSsmq5ZRjVH0Ehwg6/Fn3xIUk+nKw== + dependencies: + escape-string-regexp "^5.0.0" + unist-util-is "^5.0.0" + unist-util-visit-parents "^5.0.0" + +mdast-util-from-markdown@^1.0.0, mdast-util-from-markdown@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-1.2.0.tgz#84df2924ccc6c995dec1e2368b2b208ad0a76268" + integrity sha512-iZJyyvKD1+K7QX1b5jXdE7Sc5dtoTry1vzV28UZZe8Z1xVnB/czKntJ7ZAkG0tANqRnBF6p3p7GpU1y19DTf2Q== + dependencies: + "@types/mdast" "^3.0.0" + "@types/unist" "^2.0.0" + decode-named-character-reference "^1.0.0" + mdast-util-to-string "^3.1.0" + micromark "^3.0.0" + micromark-util-decode-numeric-character-reference "^1.0.0" + micromark-util-decode-string "^1.0.0" + micromark-util-normalize-identifier "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + unist-util-stringify-position "^3.0.0" + uvu "^0.5.0" + +mdast-util-gfm-autolink-literal@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-1.0.2.tgz#4032dcbaddaef7d4f2f3768ed830475bb22d3970" + integrity sha512-FzopkOd4xTTBeGXhXSBU0OCDDh5lUj2rd+HQqG92Ld+jL4lpUfgX2AT2OHAVP9aEeDKp7G92fuooSZcYJA3cRg== + dependencies: + "@types/mdast" "^3.0.0" + ccount "^2.0.0" + mdast-util-find-and-replace "^2.0.0" + micromark-util-character "^1.0.0" + +mdast-util-gfm-footnote@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-1.0.1.tgz#11d2d40a1a673a399c459e467fa85e00223191fe" + integrity sha512-p+PrYlkw9DeCRkTVw1duWqPRHX6Ywh2BNKJQcZbCwAuP/59B0Lk9kakuAd7KbQprVO4GzdW8eS5++A9PUSqIyw== + dependencies: + "@types/mdast" "^3.0.0" + mdast-util-to-markdown "^1.3.0" + micromark-util-normalize-identifier "^1.0.0" + +mdast-util-gfm-strikethrough@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-1.0.1.tgz#a4a74c36864ec6a6e3bbd31e1977f29beb475789" + integrity sha512-zKJbEPe+JP6EUv0mZ0tQUyLQOC+FADt0bARldONot/nefuISkaZFlmVK4tU6JgfyZGrky02m/I6PmehgAgZgqg== + dependencies: + "@types/mdast" "^3.0.0" + mdast-util-to-markdown "^1.3.0" + +mdast-util-gfm-table@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/mdast-util-gfm-table/-/mdast-util-gfm-table-1.0.4.tgz#0dbb25f04fd9c0877dc63b76203ecbdf5d945755" + integrity sha512-aEuoPwZyP4iIMkf2cLWXxx3EQ6Bmh2yKy9MVCg4i6Sd3cX80dcLEfXO/V4ul3pGH9czBK4kp+FAl+ZHmSUt9/w== + dependencies: + markdown-table "^3.0.0" + mdast-util-from-markdown "^1.0.0" + mdast-util-to-markdown "^1.3.0" + +mdast-util-gfm-task-list-item@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-1.0.1.tgz#6f35f09c6e2bcbe88af62fdea02ac199cc802c5c" + integrity sha512-KZ4KLmPdABXOsfnM6JHUIjxEvcx2ulk656Z/4Balw071/5qgnhz+H1uGtf2zIGnrnvDC8xR4Fj9uKbjAFGNIeA== + dependencies: + "@types/mdast" "^3.0.0" + mdast-util-to-markdown "^1.3.0" + +mdast-util-gfm@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/mdast-util-gfm/-/mdast-util-gfm-2.0.1.tgz#16fcf70110ae689a06d77e8f4e346223b64a0ea6" + integrity sha512-42yHBbfWIFisaAfV1eixlabbsa6q7vHeSPY+cg+BBjX51M8xhgMacqH9g6TftB/9+YkcI0ooV4ncfrJslzm/RQ== + dependencies: + mdast-util-from-markdown "^1.0.0" + mdast-util-gfm-autolink-literal "^1.0.0" + mdast-util-gfm-footnote "^1.0.0" + mdast-util-gfm-strikethrough "^1.0.0" + mdast-util-gfm-table "^1.0.0" + mdast-util-gfm-task-list-item "^1.0.0" + mdast-util-to-markdown "^1.0.0" + +mdast-util-to-hast@^12.1.0, mdast-util-to-hast@^12.2.0: + version "12.2.0" + resolved "https://registry.yarnpkg.com/mdast-util-to-hast/-/mdast-util-to-hast-12.2.0.tgz#4dbff7ab2b20b8d12fc8fe98bf804d97e7358cbf" + integrity sha512-YDwT5KhGzLgPpSnQhAlK1+WpCW4gsPmNNAxUNMkMTDhxQyPp2eX86WOelnKnLKEvSpfxqJbPbInHFkefXZBhEA== + dependencies: + "@types/hast" "^2.0.0" + "@types/mdast" "^3.0.0" + "@types/mdurl" "^1.0.0" + mdast-util-definitions "^5.0.0" + mdurl "^1.0.0" + micromark-util-sanitize-uri "^1.0.0" + trim-lines "^3.0.0" + unist-builder "^3.0.0" + unist-util-generated "^2.0.0" + unist-util-position "^4.0.0" + unist-util-visit "^4.0.0" + +mdast-util-to-markdown@^1.0.0, mdast-util-to-markdown@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/mdast-util-to-markdown/-/mdast-util-to-markdown-1.3.0.tgz#38b6cdc8dc417de642a469c4fc2abdf8c931bd1e" + integrity sha512-6tUSs4r+KK4JGTTiQ7FfHmVOaDrLQJPmpjD6wPMlHGUVXoG9Vjc3jIeP+uyBWRf8clwB2blM+W7+KrlMYQnftA== + dependencies: + "@types/mdast" "^3.0.0" + "@types/unist" "^2.0.0" + longest-streak "^3.0.0" + mdast-util-to-string "^3.0.0" + micromark-util-decode-string "^1.0.0" + unist-util-visit "^4.0.0" + zwitch "^2.0.0" + +mdast-util-to-string@^3.0.0, mdast-util-to-string@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-3.1.0.tgz#56c506d065fbf769515235e577b5a261552d56e9" + integrity sha512-n4Vypz/DZgwo0iMHLQL49dJzlp7YtAJP+N07MZHpjPf/5XJuHUWstviF4Mn2jEiR/GNmtnRRqnwsXExk3igfFA== + +mdn-data@2.0.14: + version "2.0.14" + resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50" + integrity sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow== + +mdurl@^1.0.0, mdurl@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e" + integrity sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g== + +media-typer@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" + integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== + +memory-fs@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.5.0.tgz#324c01288b88652966d161db77838720845a8e3c" + integrity sha512-jA0rdU5KoQMC0e6ppoNRtpp6vjFq6+NY7r8hywnC7V+1Xj/MtHwGIbB1QaK/dunyjWteJzmkpd7ooeWg10T7GA== + dependencies: + errno "^0.1.3" + readable-stream "^2.0.1" + +merge-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" + integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== + +merge2@^1.3.0, merge2@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + +methods@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" + integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== + +micromark-core-commonmark@^1.0.0, micromark-core-commonmark@^1.0.1, micromark-core-commonmark@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/micromark-core-commonmark/-/micromark-core-commonmark-1.0.6.tgz#edff4c72e5993d93724a3c206970f5a15b0585ad" + integrity sha512-K+PkJTxqjFfSNkfAhp4GB+cZPfQd6dxtTXnf+RjZOV7T4EEXnvgzOcnp+eSTmpGk9d1S9sL6/lqrgSNn/s0HZA== + dependencies: + decode-named-character-reference "^1.0.0" + micromark-factory-destination "^1.0.0" + micromark-factory-label "^1.0.0" + micromark-factory-space "^1.0.0" + micromark-factory-title "^1.0.0" + micromark-factory-whitespace "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-chunked "^1.0.0" + micromark-util-classify-character "^1.0.0" + micromark-util-html-tag-name "^1.0.0" + micromark-util-normalize-identifier "^1.0.0" + micromark-util-resolve-all "^1.0.0" + micromark-util-subtokenize "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.1" + uvu "^0.5.0" + +micromark-extension-gfm-autolink-literal@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-1.0.3.tgz#dc589f9c37eaff31a175bab49f12290edcf96058" + integrity sha512-i3dmvU0htawfWED8aHMMAzAVp/F0Z+0bPh3YrbTPPL1v4YAlCZpy5rBO5p0LPYiZo0zFVkoYh7vDU7yQSiCMjg== + dependencies: + micromark-util-character "^1.0.0" + micromark-util-sanitize-uri "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + uvu "^0.5.0" + +micromark-extension-gfm-footnote@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-1.0.4.tgz#cbfd8873b983e820c494498c6dac0105920818d5" + integrity sha512-E/fmPmDqLiMUP8mLJ8NbJWJ4bTw6tS+FEQS8CcuDtZpILuOb2kjLqPEeAePF1djXROHXChM/wPJw0iS4kHCcIg== + dependencies: + micromark-core-commonmark "^1.0.0" + micromark-factory-space "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-normalize-identifier "^1.0.0" + micromark-util-sanitize-uri "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + uvu "^0.5.0" + +micromark-extension-gfm-strikethrough@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-1.0.4.tgz#162232c284ffbedd8c74e59c1525bda217295e18" + integrity sha512-/vjHU/lalmjZCT5xt7CcHVJGq8sYRm80z24qAKXzaHzem/xsDYb2yLL+NNVbYvmpLx3O7SYPuGL5pzusL9CLIQ== + dependencies: + micromark-util-chunked "^1.0.0" + micromark-util-classify-character "^1.0.0" + micromark-util-resolve-all "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + uvu "^0.5.0" + +micromark-extension-gfm-table@^1.0.0: + version "1.0.5" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-table/-/micromark-extension-gfm-table-1.0.5.tgz#7b708b728f8dc4d95d486b9e7a2262f9cddbcbb4" + integrity sha512-xAZ8J1X9W9K3JTJTUL7G6wSKhp2ZYHrFk5qJgY/4B33scJzE2kpfRL6oiw/veJTbt7jiM/1rngLlOKPWr1G+vg== + dependencies: + micromark-factory-space "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + uvu "^0.5.0" + +micromark-extension-gfm-tagfilter@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-1.0.1.tgz#fb2e303f7daf616db428bb6a26e18fda14a90a4d" + integrity sha512-Ty6psLAcAjboRa/UKUbbUcwjVAv5plxmpUTy2XC/3nJFL37eHej8jrHrRzkqcpipJliuBH30DTs7+3wqNcQUVA== + dependencies: + micromark-util-types "^1.0.0" + +micromark-extension-gfm-task-list-item@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-1.0.3.tgz#7683641df5d4a09795f353574d7f7f66e47b7fc4" + integrity sha512-PpysK2S1Q/5VXi72IIapbi/jliaiOFzv7THH4amwXeYXLq3l1uo8/2Be0Ac1rEwK20MQEsGH2ltAZLNY2KI/0Q== + dependencies: + micromark-factory-space "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + uvu "^0.5.0" + +micromark-extension-gfm@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/micromark-extension-gfm/-/micromark-extension-gfm-2.0.1.tgz#40f3209216127a96297c54c67f5edc7ef2d1a2a2" + integrity sha512-p2sGjajLa0iYiGQdT0oelahRYtMWvLjy8J9LOCxzIQsllMCGLbsLW+Nc+N4vi02jcRJvedVJ68cjelKIO6bpDA== + dependencies: + micromark-extension-gfm-autolink-literal "^1.0.0" + micromark-extension-gfm-footnote "^1.0.0" + micromark-extension-gfm-strikethrough "^1.0.0" + micromark-extension-gfm-table "^1.0.0" + micromark-extension-gfm-tagfilter "^1.0.0" + micromark-extension-gfm-task-list-item "^1.0.0" + micromark-util-combine-extensions "^1.0.0" + micromark-util-types "^1.0.0" + +micromark-factory-destination@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/micromark-factory-destination/-/micromark-factory-destination-1.0.0.tgz#fef1cb59ad4997c496f887b6977aa3034a5a277e" + integrity sha512-eUBA7Rs1/xtTVun9TmV3gjfPz2wEwgK5R5xcbIM5ZYAtvGF6JkyaDsj0agx8urXnO31tEO6Ug83iVH3tdedLnw== + dependencies: + micromark-util-character "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + +micromark-factory-label@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/micromark-factory-label/-/micromark-factory-label-1.0.2.tgz#6be2551fa8d13542fcbbac478258fb7a20047137" + integrity sha512-CTIwxlOnU7dEshXDQ+dsr2n+yxpP0+fn271pu0bwDIS8uqfFcumXpj5mLn3hSC8iw2MUr6Gx8EcKng1dD7i6hg== + dependencies: + micromark-util-character "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + uvu "^0.5.0" + +micromark-factory-space@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/micromark-factory-space/-/micromark-factory-space-1.0.0.tgz#cebff49968f2b9616c0fcb239e96685cb9497633" + integrity sha512-qUmqs4kj9a5yBnk3JMLyjtWYN6Mzfcx8uJfi5XAveBniDevmZasdGBba5b4QsvRcAkmvGo5ACmSUmyGiKTLZew== + dependencies: + micromark-util-character "^1.0.0" + micromark-util-types "^1.0.0" + +micromark-factory-title@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/micromark-factory-title/-/micromark-factory-title-1.0.2.tgz#7e09287c3748ff1693930f176e1c4a328382494f" + integrity sha512-zily+Nr4yFqgMGRKLpTVsNl5L4PMu485fGFDOQJQBl2NFpjGte1e86zC0da93wf97jrc4+2G2GQudFMHn3IX+A== + dependencies: + micromark-factory-space "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + uvu "^0.5.0" + +micromark-factory-whitespace@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/micromark-factory-whitespace/-/micromark-factory-whitespace-1.0.0.tgz#e991e043ad376c1ba52f4e49858ce0794678621c" + integrity sha512-Qx7uEyahU1lt1RnsECBiuEbfr9INjQTGa6Err+gF3g0Tx4YEviPbqqGKNv/NrBaE7dVHdn1bVZKM/n5I/Bak7A== + dependencies: + micromark-factory-space "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + +micromark-util-character@^1.0.0, micromark-util-character@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/micromark-util-character/-/micromark-util-character-1.1.0.tgz#d97c54d5742a0d9611a68ca0cd4124331f264d86" + integrity sha512-agJ5B3unGNJ9rJvADMJ5ZiYjBRyDpzKAOk01Kpi1TKhlT1APx3XZk6eN7RtSz1erbWHC2L8T3xLZ81wdtGRZzg== + dependencies: + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + +micromark-util-chunked@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/micromark-util-chunked/-/micromark-util-chunked-1.0.0.tgz#5b40d83f3d53b84c4c6bce30ed4257e9a4c79d06" + integrity sha512-5e8xTis5tEZKgesfbQMKRCyzvffRRUX+lK/y+DvsMFdabAicPkkZV6gO+FEWi9RfuKKoxxPwNL+dFF0SMImc1g== + dependencies: + micromark-util-symbol "^1.0.0" + +micromark-util-classify-character@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/micromark-util-classify-character/-/micromark-util-classify-character-1.0.0.tgz#cbd7b447cb79ee6997dd274a46fc4eb806460a20" + integrity sha512-F8oW2KKrQRb3vS5ud5HIqBVkCqQi224Nm55o5wYLzY/9PwHGXC01tr3d7+TqHHz6zrKQ72Okwtvm/xQm6OVNZA== + dependencies: + micromark-util-character "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + +micromark-util-combine-extensions@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/micromark-util-combine-extensions/-/micromark-util-combine-extensions-1.0.0.tgz#91418e1e74fb893e3628b8d496085639124ff3d5" + integrity sha512-J8H058vFBdo/6+AsjHp2NF7AJ02SZtWaVUjsayNFeAiydTxUwViQPxN0Hf8dp4FmCQi0UUFovFsEyRSUmFH3MA== + dependencies: + micromark-util-chunked "^1.0.0" + micromark-util-types "^1.0.0" + +micromark-util-decode-numeric-character-reference@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-1.0.0.tgz#dcc85f13b5bd93ff8d2868c3dba28039d490b946" + integrity sha512-OzO9AI5VUtrTD7KSdagf4MWgHMtET17Ua1fIpXTpuhclCqD8egFWo85GxSGvxgkGS74bEahvtM0WP0HjvV0e4w== + dependencies: + micromark-util-symbol "^1.0.0" + +micromark-util-decode-string@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/micromark-util-decode-string/-/micromark-util-decode-string-1.0.2.tgz#942252ab7a76dec2dbf089cc32505ee2bc3acf02" + integrity sha512-DLT5Ho02qr6QWVNYbRZ3RYOSSWWFuH3tJexd3dgN1odEuPNxCngTCXJum7+ViRAd9BbdxCvMToPOD/IvVhzG6Q== + dependencies: + decode-named-character-reference "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-decode-numeric-character-reference "^1.0.0" + micromark-util-symbol "^1.0.0" + +micromark-util-encode@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/micromark-util-encode/-/micromark-util-encode-1.0.1.tgz#2c1c22d3800870ad770ece5686ebca5920353383" + integrity sha512-U2s5YdnAYexjKDel31SVMPbfi+eF8y1U4pfiRW/Y8EFVCy/vgxk/2wWTxzcqE71LHtCuCzlBDRU2a5CQ5j+mQA== + +micromark-util-html-tag-name@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/micromark-util-html-tag-name/-/micromark-util-html-tag-name-1.1.0.tgz#eb227118befd51f48858e879b7a419fc0df20497" + integrity sha512-BKlClMmYROy9UiV03SwNmckkjn8QHVaWkqoAqzivabvdGcwNGMMMH/5szAnywmsTBUzDsU57/mFi0sp4BQO6dA== + +micromark-util-normalize-identifier@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.0.0.tgz#4a3539cb8db954bbec5203952bfe8cedadae7828" + integrity sha512-yg+zrL14bBTFrQ7n35CmByWUTFsgst5JhA4gJYoty4Dqzj4Z4Fr/DHekSS5aLfH9bdlfnSvKAWsAgJhIbogyBg== + dependencies: + micromark-util-symbol "^1.0.0" + +micromark-util-resolve-all@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/micromark-util-resolve-all/-/micromark-util-resolve-all-1.0.0.tgz#a7c363f49a0162e931960c44f3127ab58f031d88" + integrity sha512-CB/AGk98u50k42kvgaMM94wzBqozSzDDaonKU7P7jwQIuH2RU0TeBqGYJz2WY1UdihhjweivStrJ2JdkdEmcfw== + dependencies: + micromark-util-types "^1.0.0" + +micromark-util-sanitize-uri@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.0.0.tgz#27dc875397cd15102274c6c6da5585d34d4f12b2" + integrity sha512-cCxvBKlmac4rxCGx6ejlIviRaMKZc0fWm5HdCHEeDWRSkn44l6NdYVRyU+0nT1XC72EQJMZV8IPHF+jTr56lAg== + dependencies: + micromark-util-character "^1.0.0" + micromark-util-encode "^1.0.0" + micromark-util-symbol "^1.0.0" + +micromark-util-subtokenize@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/micromark-util-subtokenize/-/micromark-util-subtokenize-1.0.2.tgz#ff6f1af6ac836f8bfdbf9b02f40431760ad89105" + integrity sha512-d90uqCnXp/cy4G881Ub4psE57Sf8YD0pim9QdjCRNjfas2M1u6Lbt+XZK9gnHL2XFhnozZiEdCa9CNfXSfQ6xA== + dependencies: + micromark-util-chunked "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + uvu "^0.5.0" + +micromark-util-symbol@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/micromark-util-symbol/-/micromark-util-symbol-1.0.1.tgz#b90344db62042ce454f351cf0bebcc0a6da4920e" + integrity sha512-oKDEMK2u5qqAptasDAwWDXq0tG9AssVwAx3E9bBF3t/shRIGsWIRG+cGafs2p/SnDSOecnt6hZPCE2o6lHfFmQ== + +micromark-util-types@^1.0.0, micromark-util-types@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/micromark-util-types/-/micromark-util-types-1.0.2.tgz#f4220fdb319205812f99c40f8c87a9be83eded20" + integrity sha512-DCfg/T8fcrhrRKTPjRrw/5LLvdGV7BHySf/1LOZx7TzWZdYRjogNtyNq885z3nNallwr3QUKARjqvHqX1/7t+w== + +micromark@^3.0.0, micromark@^3.0.10: + version "3.0.10" + resolved "https://registry.yarnpkg.com/micromark/-/micromark-3.0.10.tgz#1eac156f0399d42736458a14b0ca2d86190b457c" + integrity sha512-ryTDy6UUunOXy2HPjelppgJ2sNfcPz1pLlMdA6Rz9jPzhLikWXv/irpWV/I2jd68Uhmny7hHxAlAhk4+vWggpg== + dependencies: + "@types/debug" "^4.0.0" + debug "^4.0.0" + decode-named-character-reference "^1.0.0" + micromark-core-commonmark "^1.0.1" + micromark-factory-space "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-chunked "^1.0.0" + micromark-util-combine-extensions "^1.0.0" + micromark-util-decode-numeric-character-reference "^1.0.0" + micromark-util-encode "^1.0.0" + micromark-util-normalize-identifier "^1.0.0" + micromark-util-resolve-all "^1.0.0" + micromark-util-sanitize-uri "^1.0.0" + micromark-util-subtokenize "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.1" + uvu "^0.5.0" + +micromatch@^4.0.2, micromatch@^4.0.4: + version "4.0.5" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" + integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== + dependencies: + braces "^3.0.2" + picomatch "^2.3.1" + +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@^2.1.18, mime-types@~2.1.24, mime-types@~2.1.34: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +mime@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +mime@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-3.0.0.tgz#b374550dca3a0c18443b0c950a6a58f1931cf7a7" + integrity sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A== + +mime@~2.5.2: + version "2.5.2" + resolved "https://registry.yarnpkg.com/mime/-/mime-2.5.2.tgz#6e3dc6cc2b9510643830e5f19d5cb753da5eeabe" + integrity sha512-tqkh47FzKeCPD2PUiPB6pkbMzsCasjxAfC62/Wap5qrUWcb+sFasXUC5I3gYM5iBM8v/Qpn4UK0x+j0iHyFPDg== + +mimic-fn@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + +minimatch@^3.0.4, minimatch@^3.1.1: + version "3.1.2" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + +minimatch@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.0.tgz#1717b464f4971b144f6aabe8f2d0b8e4511e09c7" + integrity sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg== + dependencies: + brace-expansion "^2.0.1" + +minimatch@~3.0.4: + version "3.0.8" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.8.tgz#5e6a59bd11e2ab0de1cfb843eb2d82e546c321c1" + integrity sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q== + dependencies: + brace-expansion "^1.1.7" + +minimist@^1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" + integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== + +minipass@^2.6.0, minipass@^2.9.0: + version "2.9.0" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.9.0.tgz#e713762e7d3e32fed803115cf93e04bca9fcc9a6" + integrity sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg== + dependencies: + safe-buffer "^5.1.2" + yallist "^3.0.0" + +minipass@^3.0.0: + version "3.3.4" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.3.4.tgz#ca99f95dd77c43c7a76bf51e6d200025eee0ffae" + integrity sha512-I9WPbWHCGu8W+6k1ZiGpPu0GkoKBeorkfKNuAFBNS1HNFJvke82sxvI5bzcCNpWPorkOO5QQ+zomzzwRxejXiw== + dependencies: + yallist "^4.0.0" + +minizlib@^1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.3.3.tgz#2290de96818a34c29551c8a8d301216bd65a861d" + integrity sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q== + dependencies: + minipass "^2.9.0" + +minizlib@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.2.tgz#e90d3466ba209b932451508a11ce3d3632145931" + integrity sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg== + dependencies: + minipass "^3.0.0" + yallist "^4.0.0" + +mkdirp@^0.5.1, mkdirp@^0.5.5, mkdirp@^0.5.6: + version "0.5.6" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" + integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== + dependencies: + minimist "^1.2.6" + +mkdirp@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" + integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== + +mlly@^0.5.2, mlly@^0.5.3, mlly@^0.5.4, mlly@^0.5.5, mlly@^0.5.7: + version "0.5.7" + resolved "https://registry.yarnpkg.com/mlly/-/mlly-0.5.7.tgz#3b058c36268314a1670f89767d40eead66099b93" + integrity sha512-rz+n2i9862ymLH+UDlHpsuTVyCIAs+9WejS2De2VUlAKdpq8OJ9x/C2M7nNUMLEW1H+D6n0uZlpz8+tMGxCmyQ== + dependencies: + acorn "^8.8.0" + pathe "^0.3.3" + pkg-types "^0.3.3" + +mri@^1.1.0, mri@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b" + integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA== + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + +ms@2.1.3, ms@^2.1.1: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +mute-stream@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" + integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== + +nanoid@^3.3.4: + version "3.3.4" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" + integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== + +nanoid@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-4.0.0.tgz#6e144dee117609232c3f415c34b0e550e64999a5" + integrity sha512-IgBP8piMxe/gf73RTQx7hmnhwz0aaEXYakvqZyE302IXW3HyVNhdNGC+O2MwMAVhLEnvXlvKtGbtJf6wvHihCg== + +negotiator@0.6.3: + version "0.6.3" + resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" + integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== + +nitropack@^0.4.12: + version "0.4.12" + resolved "https://registry.yarnpkg.com/nitropack/-/nitropack-0.4.12.tgz#b83d83c92d34de2785f6e1cd27310f10b8da9818" + integrity sha512-5UXLcKKg4qAegrAEE21NIqgm/mbZMiZdrGTOePe/Ed+hRCI8gG7/cTETEE7eLzrSL159ribQKHG42MksXqAZUg== + dependencies: + "@cloudflare/kv-asset-handler" "^0.2.0" + "@netlify/functions" "^1.0.0" + "@rollup/plugin-alias" "^3.1.9" + "@rollup/plugin-commonjs" "^22.0.1" + "@rollup/plugin-inject" "^4.0.4" + "@rollup/plugin-json" "^4.1.0" + "@rollup/plugin-node-resolve" "^13.3.0" + "@rollup/plugin-replace" "^4.0.0" + "@rollup/plugin-wasm" "^5.2.0" + "@rollup/pluginutils" "^4.2.1" + "@types/jsdom" "^16.2.14" + "@vercel/nft" "^0.20.1" + archiver "^5.3.1" + c12 "^0.2.8" + chalk "^5.0.1" + chokidar "^3.5.3" + consola "^2.15.3" + cookie-es "^0.5.0" + defu "^6.0.0" + destr "^1.1.1" + dot-prop "^7.2.0" + esbuild "^0.14.49" + escape-string-regexp "^5.0.0" + etag "^1.8.1" + fs-extra "^10.1.0" + globby "^13.1.2" + gzip-size "^7.0.0" + h3 "^0.7.10" + hookable "^5.1.1" + http-proxy "^1.18.1" + is-primitive "^3.0.1" + jiti "^1.14.0" + klona "^2.0.5" + listhen "^0.2.13" + mime "^3.0.0" + mlly "^0.5.4" + mri "^1.2.0" + node-fetch-native "^0.1.4" + ohash "^0.1.0" + ohmyfetch "^0.4.18" + pathe "^0.3.2" + perfect-debounce "^0.1.3" + pkg-types "^0.3.3" + pretty-bytes "^6.0.0" + radix3 "^0.1.2" + rollup "^2.76.0" + rollup-plugin-terser "^7.0.2" + rollup-plugin-visualizer "^5.6.0" + scule "^0.2.1" + semver "^7.3.7" + serve-placeholder "^2.0.1" + serve-static "^1.15.0" + source-map-support "^0.5.21" + std-env "^3.1.1" + table "^6.8.0" + ufo "^0.8.5" + unenv "^0.5.2" + unimport "^0.4.4" + unstorage "^0.5.4" + +node-domexception@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" + integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== + +node-emoji@^1.11.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.11.0.tgz#69a0150e6946e2f115e9d7ea4df7971e2628301c" + integrity sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A== + dependencies: + lodash "^4.17.21" + +node-fetch-native@^0.1.2, node-fetch-native@^0.1.3, node-fetch-native@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/node-fetch-native/-/node-fetch-native-0.1.4.tgz#09b06754f9e298bac23848050da2352125634f89" + integrity sha512-10EKpOCQPXwZVFh3U1ptOMWBgKTbsN7Vvo6WVKt5pw4hp8zbv6ZVBZPlXw+5M6Tyi1oc1iD4/sNPd71KYA16tQ== + +node-fetch@^2.6.7: + version "2.6.7" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" + integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== + dependencies: + whatwg-url "^5.0.0" + +node-fetch@^3.2.10: + version "3.2.10" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.2.10.tgz#e8347f94b54ae18b57c9c049ef641cef398a85c8" + integrity sha512-MhuzNwdURnZ1Cp4XTazr69K0BTizsBroX7Zx3UgDSVcZYKF/6p0CBe4EUb/hLqmzVhl0UpYfgRljQ4yxE+iCxA== + dependencies: + data-uri-to-buffer "^4.0.0" + fetch-blob "^3.1.4" + formdata-polyfill "^4.0.10" + +node-forge@^1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.1.tgz#be8da2af243b2417d5f646a770663a92b7e9ded3" + integrity sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA== + +node-gyp-build@^4.2.2: + version "4.5.0" + resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.5.0.tgz#7a64eefa0b21112f89f58379da128ac177f20e40" + integrity sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg== + +node-releases@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.6.tgz#8a7088c63a55e493845683ebf3c828d8c51c5503" + integrity sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg== + +nopt@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-5.0.0.tgz#530942bb58a512fccafe53fe210f13a25355dc88" + integrity sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ== + dependencies: + abbrev "1" + +normalize-path@^3.0.0, normalize-path@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + +normalize-range@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" + integrity sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA== + +normalize-url@^6.0.1, normalize-url@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a" + integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A== + +npm-run-path@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" + integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== + dependencies: + path-key "^3.0.0" + +npmlog@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-5.0.1.tgz#f06678e80e29419ad67ab964e0fa69959c1eb8b0" + integrity sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw== + dependencies: + are-we-there-yet "^2.0.0" + console-control-strings "^1.1.0" + gauge "^3.0.0" + set-blocking "^2.0.0" + +nth-check@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.1.1.tgz#c9eab428effce36cd6b92c924bdb000ef1f1ed1d" + integrity sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w== + dependencies: + boolbase "^1.0.0" + +nuxi@^3.0.0-rc.6: + version "3.0.0-rc.6" + resolved "https://registry.yarnpkg.com/nuxi/-/nuxi-3.0.0-rc.6.tgz#6cac3f31c5d1b2ec4d5bea69018238245b6470c2" + integrity sha512-IYzpHrpi+T8kdeaJUSGBbfTuEe8uB4CQXI/h74J7tFY7Fa87czRl0HQjBHE59WkMa7Vu+GvO991aKrmRAvmAYw== + optionalDependencies: + fsevents "~2.3.2" + +nuxt@3.0.0-rc.6: + version "3.0.0-rc.6" + resolved "https://registry.yarnpkg.com/nuxt/-/nuxt-3.0.0-rc.6.tgz#c0a81f53d1c39fefae87abebaba8c63949e40751" + integrity sha512-Ko/LBIUBf25bSXKoRnPEplMngw2dHU8qkV5Twdm7yZ0DfdFkwaTVzTtwvbWsFt+H9vh1aUUTCSyEWnmNorkkxQ== + dependencies: + "@nuxt/devalue" "^2.0.0" + "@nuxt/kit" "^3.0.0-rc.6" + "@nuxt/schema" "^3.0.0-rc.6" + "@nuxt/telemetry" "^2.1.3" + "@nuxt/ui-templates" "^0.2.1" + "@nuxt/vite-builder" "^3.0.0-rc.6" + "@vue/reactivity" "^3.2.37" + "@vue/shared" "^3.2.37" + "@vueuse/head" "^0.7.6" + chokidar "^3.5.3" + cookie-es "^0.5.0" + defu "^6.0.0" + destr "^1.1.1" + escape-string-regexp "^5.0.0" + fs-extra "^10.1.0" + globby "^13.1.2" + h3 "^0.7.10" + hash-sum "^2.0.0" + hookable "^5.1.1" + knitwork "^0.1.2" + magic-string "^0.26.2" + mlly "^0.5.4" + nitropack "^0.4.12" + nuxi "^3.0.0-rc.6" + ohash "^0.1.4" + ohmyfetch "^0.4.18" + pathe "^0.3.2" + perfect-debounce "^0.1.3" + scule "^0.2.1" + strip-literal "^0.4.0" + ufo "^0.8.5" + unctx "^1.1.4" + unenv "^0.5.2" + unimport "^0.4.5" + unplugin "^0.7.2" + untyped "^0.4.4" + vue "^3.2.37" + vue-bundle-renderer "^0.3.9" + vue-router "^4.1.2" + +object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== + +object-hash@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-3.0.0.tgz#73f97f753e7baffc0e2cc9d6e079079744ac82e9" + integrity sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw== + +ohash@^0.1.0, ohash@^0.1.4, ohash@^0.1.5: + version "0.1.5" + resolved "https://registry.yarnpkg.com/ohash/-/ohash-0.1.5.tgz#7ba53b68c41fc72612ed75942b8f6da3b5d5bbda" + integrity sha512-qynly1AFIpGWEAW88p6DhMNqok/Swb52/KsiU+Toi7er058Ptvno3tkfTML6wYcEgFgp2GsUziW4Nqn62ciuyw== + +ohmyfetch@^0.4.18: + version "0.4.18" + resolved "https://registry.yarnpkg.com/ohmyfetch/-/ohmyfetch-0.4.18.tgz#2952e04bd52662d0618d3d2f344db0250c3eeac2" + integrity sha512-MslzNrQzBLtZHmiZBI8QMOcMpdNFlK61OJ34nFNFynZ4v+4BonfCQ7VIN4EGXvGGq5zhDzgdJoY3o9S1l2T7KQ== + dependencies: + destr "^1.1.1" + node-fetch-native "^0.1.3" + ufo "^0.8.4" + undici "^5.2.0" + +on-finished@2.4.1, on-finished@^2.3.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" + integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== + dependencies: + ee-first "1.1.1" + +once@^1.3.0, once@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== + dependencies: + wrappy "1" + +onetime@^5.1.0, onetime@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" + integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== + dependencies: + mimic-fn "^2.1.0" + +only@~0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/only/-/only-0.0.2.tgz#2afde84d03e50b9a8edc444e30610a70295edfb4" + integrity sha512-Fvw+Jemq5fjjyWz6CpKx6w9s7xxqo3+JCyM0WXWeCSOboZ8ABkyvP8ID4CZuChA/wxSx+XSJmdOm8rGVyJ1hdQ== + +open@^7.0.4: + version "7.4.2" + resolved "https://registry.yarnpkg.com/open/-/open-7.4.2.tgz#b8147e26dcf3e426316c730089fd71edd29c2321" + integrity sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q== + dependencies: + is-docker "^2.0.0" + is-wsl "^2.1.1" + +open@^8.4.0: + version "8.4.0" + resolved "https://registry.yarnpkg.com/open/-/open-8.4.0.tgz#345321ae18f8138f82565a910fdc6b39e8c244f8" + integrity sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q== + dependencies: + define-lazy-prop "^2.0.0" + is-docker "^2.1.1" + is-wsl "^2.2.0" + +ora@^6.1.2: + version "6.1.2" + resolved "https://registry.yarnpkg.com/ora/-/ora-6.1.2.tgz#7b3c1356b42fd90fb1dad043d5dbe649388a0bf5" + integrity sha512-EJQ3NiP5Xo94wJXIzAyOtSb0QEIAUu7m8t6UZ9krbz0vAJqr92JpcK/lEXg91q6B9pEGqrykkd2EQplnifDSBw== + dependencies: + bl "^5.0.0" + chalk "^5.0.0" + cli-cursor "^4.0.0" + cli-spinners "^2.6.1" + is-interactive "^2.0.0" + is-unicode-supported "^1.1.0" + log-symbols "^5.1.0" + strip-ansi "^7.0.1" + wcwidth "^1.0.1" + +os-tmpdir@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== + +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" + +parent-module@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-2.0.0.tgz#fa71f88ff1a50c27e15d8ff74e0e3a9523bf8708" + integrity sha512-uo0Z9JJeWzv8BG+tRcapBKNJ0dro9cLyczGzulS6EfeyAdeC9sbojtW6XwvYxJkEne9En+J2XEl4zyglVeIwFg== + dependencies: + callsites "^3.1.0" + +parse-entities@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-4.0.0.tgz#f67c856d4e3fe19b1a445c3fabe78dcdc1053eeb" + integrity sha512-5nk9Fn03x3rEhGaX1FU6IDwG/k+GxLXlFAkgrbM1asuAFl3BhdQWvASaIsmwWypRNcZKHPYnIuOSfIWEyEQnPQ== + dependencies: + "@types/unist" "^2.0.0" + character-entities "^2.0.0" + character-entities-legacy "^3.0.0" + character-reference-invalid "^2.0.0" + decode-named-character-reference "^1.0.0" + is-alphanumerical "^2.0.0" + is-decimal "^2.0.0" + is-hexadecimal "^2.0.0" + +parse-git-config@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/parse-git-config/-/parse-git-config-3.0.0.tgz#4a2de08c7b74a2555efa5ae94d40cd44302a6132" + integrity sha512-wXoQGL1D+2COYWCD35/xbiKma1Z15xvZL8cI25wvxzled58V51SJM04Urt/uznS900iQor7QO04SgdfT/XlbuA== + dependencies: + git-config-path "^2.0.0" + ini "^1.3.5" + +parse-json@^5.0.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" + integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== + dependencies: + "@babel/code-frame" "^7.0.0" + error-ex "^1.3.1" + json-parse-even-better-errors "^2.3.0" + lines-and-columns "^1.1.6" + +parse-path@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/parse-path/-/parse-path-5.0.0.tgz#f933152f3c6d34f4cf36cfc3d07b138ac113649d" + integrity sha512-qOpH55/+ZJ4jUu/oLO+ifUKjFPNZGfnPJtzvGzKN/4oLMil5m9OH4VpOj6++9/ytJcfks4kzH2hhi87GL/OU9A== + dependencies: + protocols "^2.0.0" + +parse-url@^7.0.2: + version "7.0.2" + resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-7.0.2.tgz#d21232417199b8d371c6aec0cedf1406fd6393f0" + integrity sha512-PqO4Z0eCiQ08Wj6QQmrmp5YTTxpYfONdOEamrtvK63AmzXpcavIVQubGHxOEwiIoDZFb8uDOoQFS0NCcjqIYQg== + dependencies: + is-ssh "^1.4.0" + normalize-url "^6.1.0" + parse-path "^5.0.0" + protocols "^2.0.1" + +parse5@^6.0.0: + version "6.0.1" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" + integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== + +parseurl@^1.3.2, parseurl@~1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" + integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== + +path-is-absolute@1.0.1, path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== + +path-key@^3.0.0, path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +path-parse@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== + +path-to-regexp@^6.1.0: + version "6.2.1" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-6.2.1.tgz#d54934d6798eb9e5ef14e7af7962c945906918e5" + integrity sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw== + +path-type@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" + integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== + +pathe@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/pathe/-/pathe-0.2.0.tgz#30fd7bbe0a0d91f0e60bae621f5d19e9e225c339" + integrity sha512-sTitTPYnn23esFR3RlqYBWn4c45WGeLcsKzQiUpXJAyfcWkolvlYpV8FLo7JishK946oQwMFUCHXQ9AjGPKExw== + +pathe@^0.3.0, pathe@^0.3.2, pathe@^0.3.3: + version "0.3.3" + resolved "https://registry.yarnpkg.com/pathe/-/pathe-0.3.3.tgz#8d6d70a25d4db6024ed4d59e59c1bf80fcf18753" + integrity sha512-x3nrPvG0HDSDzUiJ0WqtzhN4MD+h5B+dFJ3/qyxVuARlr4Y3aJv8gri2cZzp9Z8sGs2a+aG9gNbKngh3gme57A== + +perfect-debounce@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/perfect-debounce/-/perfect-debounce-0.1.3.tgz#ff6798ea543a3ba1f0efeeaf97c0340f5c8871ce" + integrity sha512-NOT9AcKiDGpnV/HBhI22Str++XWcErO/bALvHCuhv33owZW/CjH8KAFLZDCmu3727sihe0wTxpDhyGc6M8qacQ== + +picocolors@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" + integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== + +picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + +pify@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== + +pkg-types@^0.3.3: + version "0.3.3" + resolved "https://registry.yarnpkg.com/pkg-types/-/pkg-types-0.3.3.tgz#3c25e45274e1c586ec7811dcc3449afde846e463" + integrity sha512-6AJcCMnjUQPQv/Wk960w0TOmjhdjbeaQJoSKWRQv9N3rgkessCu6J0Ydsog/nw1MbpnxHuPzYbfOn2KmlZO1FA== + dependencies: + jsonc-parser "^3.0.0" + mlly "^0.5.3" + pathe "^0.3.0" + +portfinder@^1.0.26: + version "1.0.29" + resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.29.tgz#d06ff886f4ff91274ed3e25c7e6b0c68d2a0735a" + integrity sha512-Z5+DarHWCKlufshB9Z1pN95oLtANoY5Wn9X3JGELGyQ6VhEcBfT2t+1fGUBq7MwUant6g/mqowH+4HifByPbiQ== + dependencies: + async "^2.6.4" + debug "^3.2.7" + mkdirp "^0.5.6" + +postcss-calc@^8.2.3: + version "8.2.4" + resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-8.2.4.tgz#77b9c29bfcbe8a07ff6693dc87050828889739a5" + integrity sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q== + dependencies: + postcss-selector-parser "^6.0.9" + postcss-value-parser "^4.2.0" + +postcss-colormin@^5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/postcss-colormin/-/postcss-colormin-5.3.0.tgz#3cee9e5ca62b2c27e84fce63affc0cfb5901956a" + integrity sha512-WdDO4gOFG2Z8n4P8TWBpshnL3JpmNmJwdnfP2gbk2qBA8PWwOYcmjmI/t3CmMeL72a7Hkd+x/Mg9O2/0rD54Pg== + dependencies: + browserslist "^4.16.6" + caniuse-api "^3.0.0" + colord "^2.9.1" + postcss-value-parser "^4.2.0" + +postcss-convert-values@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/postcss-convert-values/-/postcss-convert-values-5.1.2.tgz#31586df4e184c2e8890e8b34a0b9355313f503ab" + integrity sha512-c6Hzc4GAv95B7suy4udszX9Zy4ETyMCgFPUDtWjdFTKH1SE9eFY/jEpHSwTH1QPuwxHpWslhckUQWbNRM4ho5g== + dependencies: + browserslist "^4.20.3" + postcss-value-parser "^4.2.0" + +postcss-custom-properties@^12.1.8: + version "12.1.8" + resolved "https://registry.yarnpkg.com/postcss-custom-properties/-/postcss-custom-properties-12.1.8.tgz#aa003e1885c5bd28e2e32496cd597e389ca889e4" + integrity sha512-8rbj8kVu00RQh2fQF81oBqtduiANu4MIxhyf0HbbStgPtnFlWn0yiaYTpLHrPnJbffVY1s9apWsIoVZcc68FxA== + dependencies: + postcss-value-parser "^4.2.0" + +postcss-discard-comments@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz#8df5e81d2925af2780075840c1526f0660e53696" + integrity sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ== + +postcss-discard-duplicates@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz#9eb4fe8456706a4eebd6d3b7b777d07bad03e848" + integrity sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw== + +postcss-discard-empty@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz#e57762343ff7f503fe53fca553d18d7f0c369c6c" + integrity sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A== + +postcss-discard-overridden@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz#7e8c5b53325747e9d90131bb88635282fb4a276e" + integrity sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw== + +postcss-import-resolver@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-import-resolver/-/postcss-import-resolver-2.0.0.tgz#95c61ac5489047bd93ff42a9cd405cfe9041e2c0" + integrity sha512-y001XYgGvVwgxyxw9J1a5kqM/vtmIQGzx34g0A0Oy44MFcy/ZboZw1hu/iN3VYFjSTRzbvd7zZJJz0Kh0AGkTw== + dependencies: + enhanced-resolve "^4.1.1" + +postcss-import@^13.0.0: + version "13.0.0" + resolved "https://registry.yarnpkg.com/postcss-import/-/postcss-import-13.0.0.tgz#d6960cd9e3de5464743b04dd8cd9d870662f8b8c" + integrity sha512-LPUbm3ytpYopwQQjqgUH4S3EM/Gb9QsaSPP/5vnoi+oKVy3/mIk2sc0Paqw7RL57GpScm9MdIMUypw2znWiBpg== + dependencies: + postcss-value-parser "^4.0.0" + read-cache "^1.0.0" + resolve "^1.1.7" + +postcss-import@^14.1.0: + version "14.1.0" + resolved "https://registry.yarnpkg.com/postcss-import/-/postcss-import-14.1.0.tgz#a7333ffe32f0b8795303ee9e40215dac922781f0" + integrity sha512-flwI+Vgm4SElObFVPpTIT7SU7R3qk2L7PyduMcokiaVKuWv9d/U+Gm/QAd8NDLuykTWTkcrjOeD2Pp1rMeBTGw== + dependencies: + postcss-value-parser "^4.0.0" + read-cache "^1.0.0" + resolve "^1.1.7" + +postcss-js@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/postcss-js/-/postcss-js-4.0.0.tgz#31db79889531b80dc7bc9b0ad283e418dce0ac00" + integrity sha512-77QESFBwgX4irogGVPgQ5s07vLvFqWr228qZY+w6lW599cRlK/HmnlivnnVUxkjHnCu4J16PDMHcH+e+2HbvTQ== + dependencies: + camelcase-css "^2.0.1" + +postcss-load-config@^3.1.4: + version "3.1.4" + resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-3.1.4.tgz#1ab2571faf84bb078877e1d07905eabe9ebda855" + integrity sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg== + dependencies: + lilconfig "^2.0.5" + yaml "^1.10.2" + +postcss-loader@^4.1.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/postcss-loader/-/postcss-loader-4.3.0.tgz#2c4de9657cd4f07af5ab42bd60a673004da1b8cc" + integrity sha512-M/dSoIiNDOo8Rk0mUqoj4kpGq91gcxCfb9PoyZVdZ76/AuhxylHDYZblNE8o+EQ9AMSASeMFEKxZf5aU6wlx1Q== + dependencies: + cosmiconfig "^7.0.0" + klona "^2.0.4" + loader-utils "^2.0.0" + schema-utils "^3.0.0" + semver "^7.3.4" + +postcss-merge-longhand@^5.1.6: + version "5.1.6" + resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-5.1.6.tgz#f378a8a7e55766b7b644f48e5d8c789ed7ed51ce" + integrity sha512-6C/UGF/3T5OE2CEbOuX7iNO63dnvqhGZeUnKkDeifebY0XqkkvrctYSZurpNE902LDf2yKwwPFgotnfSoPhQiw== + dependencies: + postcss-value-parser "^4.2.0" + stylehacks "^5.1.0" + +postcss-merge-rules@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/postcss-merge-rules/-/postcss-merge-rules-5.1.2.tgz#7049a14d4211045412116d79b751def4484473a5" + integrity sha512-zKMUlnw+zYCWoPN6yhPjtcEdlJaMUZ0WyVcxTAmw3lkkN/NDMRkOkiuctQEoWAOvH7twaxUUdvBWl0d4+hifRQ== + dependencies: + browserslist "^4.16.6" + caniuse-api "^3.0.0" + cssnano-utils "^3.1.0" + postcss-selector-parser "^6.0.5" + +postcss-minify-font-values@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz#f1df0014a726083d260d3bd85d7385fb89d1f01b" + integrity sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA== + dependencies: + postcss-value-parser "^4.2.0" + +postcss-minify-gradients@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz#f1fe1b4f498134a5068240c2f25d46fcd236ba2c" + integrity sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw== + dependencies: + colord "^2.9.1" + cssnano-utils "^3.1.0" + postcss-value-parser "^4.2.0" + +postcss-minify-params@^5.1.3: + version "5.1.3" + resolved "https://registry.yarnpkg.com/postcss-minify-params/-/postcss-minify-params-5.1.3.tgz#ac41a6465be2db735099bbd1798d85079a6dc1f9" + integrity sha512-bkzpWcjykkqIujNL+EVEPOlLYi/eZ050oImVtHU7b4lFS82jPnsCb44gvC6pxaNt38Els3jWYDHTjHKf0koTgg== + dependencies: + browserslist "^4.16.6" + cssnano-utils "^3.1.0" + postcss-value-parser "^4.2.0" + +postcss-minify-selectors@^5.2.1: + version "5.2.1" + resolved "https://registry.yarnpkg.com/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz#d4e7e6b46147b8117ea9325a915a801d5fe656c6" + integrity sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg== + dependencies: + postcss-selector-parser "^6.0.5" + +postcss-modules-extract-imports@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz#cda1f047c0ae80c97dbe28c3e76a43b88025741d" + integrity sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw== + +postcss-modules-local-by-default@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz#ebbb54fae1598eecfdf691a02b3ff3b390a5a51c" + integrity sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ== + dependencies: + icss-utils "^5.0.0" + postcss-selector-parser "^6.0.2" + postcss-value-parser "^4.1.0" + +postcss-modules-scope@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz#9ef3151456d3bbfa120ca44898dfca6f2fa01f06" + integrity sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg== + dependencies: + postcss-selector-parser "^6.0.4" + +postcss-modules-values@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz#d7c5e7e68c3bb3c9b27cbf48ca0bb3ffb4602c9c" + integrity sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ== + dependencies: + icss-utils "^5.0.0" + +postcss-nested@5.0.6: + version "5.0.6" + resolved "https://registry.yarnpkg.com/postcss-nested/-/postcss-nested-5.0.6.tgz#466343f7fc8d3d46af3e7dba3fcd47d052a945bc" + integrity sha512-rKqm2Fk0KbA8Vt3AdGN0FB9OBOMDVajMG6ZCf/GoHgdxUJ4sBFp0A/uMIRm+MJUdo33YXEtjqIz8u7DAp8B7DA== + dependencies: + postcss-selector-parser "^6.0.6" + +postcss-nesting@^10.1.10: + version "10.1.10" + resolved "https://registry.yarnpkg.com/postcss-nesting/-/postcss-nesting-10.1.10.tgz#9c396df3d8232cbedfa95baaac6b765b8fd2a817" + integrity sha512-lqd7LXCq0gWc0wKXtoKDru5wEUNjm3OryLVNRZ8OnW8km6fSNUuFrjEhU3nklxXE2jvd4qrox566acgh+xQt8w== + dependencies: + "@csstools/selector-specificity" "^2.0.0" + postcss-selector-parser "^6.0.10" + +postcss-normalize-charset@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz#9302de0b29094b52c259e9b2cf8dc0879879f0ed" + integrity sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg== + +postcss-normalize-display-values@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz#72abbae58081960e9edd7200fcf21ab8325c3da8" + integrity sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA== + dependencies: + postcss-value-parser "^4.2.0" + +postcss-normalize-positions@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz#ef97279d894087b59325b45c47f1e863daefbb92" + integrity sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg== + dependencies: + postcss-value-parser "^4.2.0" + +postcss-normalize-repeat-style@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz#e9eb96805204f4766df66fd09ed2e13545420fb2" + integrity sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g== + dependencies: + postcss-value-parser "^4.2.0" + +postcss-normalize-string@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz#411961169e07308c82c1f8c55f3e8a337757e228" + integrity sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w== + dependencies: + postcss-value-parser "^4.2.0" + +postcss-normalize-timing-functions@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz#d5614410f8f0b2388e9f240aa6011ba6f52dafbb" + integrity sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg== + dependencies: + postcss-value-parser "^4.2.0" + +postcss-normalize-unicode@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.0.tgz#3d23aede35e160089a285e27bf715de11dc9db75" + integrity sha512-J6M3MizAAZ2dOdSjy2caayJLQT8E8K9XjLce8AUQMwOrCvjCHv24aLC/Lps1R1ylOfol5VIDMaM/Lo9NGlk1SQ== + dependencies: + browserslist "^4.16.6" + postcss-value-parser "^4.2.0" + +postcss-normalize-url@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz#ed9d88ca82e21abef99f743457d3729a042adcdc" + integrity sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew== + dependencies: + normalize-url "^6.0.1" + postcss-value-parser "^4.2.0" + +postcss-normalize-whitespace@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz#08a1a0d1ffa17a7cc6efe1e6c9da969cc4493cfa" + integrity sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA== + dependencies: + postcss-value-parser "^4.2.0" + +postcss-ordered-values@^5.1.3: + version "5.1.3" + resolved "https://registry.yarnpkg.com/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz#b6fd2bd10f937b23d86bc829c69e7732ce76ea38" + integrity sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ== + dependencies: + cssnano-utils "^3.1.0" + postcss-value-parser "^4.2.0" + +postcss-reduce-initial@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/postcss-reduce-initial/-/postcss-reduce-initial-5.1.0.tgz#fc31659ea6e85c492fb2a7b545370c215822c5d6" + integrity sha512-5OgTUviz0aeH6MtBjHfbr57tml13PuedK/Ecg8szzd4XRMbYxH4572JFG067z+FqBIf6Zp/d+0581glkvvWMFw== + dependencies: + browserslist "^4.16.6" + caniuse-api "^3.0.0" + +postcss-reduce-transforms@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz#333b70e7758b802f3dd0ddfe98bb1ccfef96b6e9" + integrity sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ== + dependencies: + postcss-value-parser "^4.2.0" + +postcss-selector-parser@^6.0.10, postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4, postcss-selector-parser@^6.0.5, postcss-selector-parser@^6.0.6, postcss-selector-parser@^6.0.9: + version "6.0.10" + resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz#79b61e2c0d1bfc2602d549e11d0876256f8df88d" + integrity sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w== + dependencies: + cssesc "^3.0.0" + util-deprecate "^1.0.2" + +postcss-svgo@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-5.1.0.tgz#0a317400ced789f233a28826e77523f15857d80d" + integrity sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA== + dependencies: + postcss-value-parser "^4.2.0" + svgo "^2.7.0" + +postcss-unique-selectors@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz#a9f273d1eacd09e9aa6088f4b0507b18b1b541b6" + integrity sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA== + dependencies: + postcss-selector-parser "^6.0.5" + +postcss-url@^10.1.1, postcss-url@^10.1.3: + version "10.1.3" + resolved "https://registry.yarnpkg.com/postcss-url/-/postcss-url-10.1.3.tgz#54120cc910309e2475ec05c2cfa8f8a2deafdf1e" + integrity sha512-FUzyxfI5l2tKmXdYc6VTu3TWZsInayEKPbiyW+P6vmmIrrb4I6CGX0BFoewgYHLK+oIL5FECEK02REYRpBvUCw== + dependencies: + make-dir "~3.1.0" + mime "~2.5.2" + minimatch "~3.0.4" + xxhashjs "~0.2.2" + +postcss-value-parser@^4.0.0, postcss-value-parser@^4.1.0, postcss-value-parser@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" + integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== + +postcss@^8.1.10, postcss@^8.2.15, postcss@^8.4.13, postcss@^8.4.14: + version "8.4.16" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.16.tgz#33a1d675fac39941f5f445db0de4db2b6e01d43c" + integrity sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ== + dependencies: + nanoid "^3.3.4" + picocolors "^1.0.0" + source-map-js "^1.0.2" + +pretty-bytes@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-6.0.0.tgz#928be2ad1f51a2e336add8ba764739f9776a8140" + integrity sha512-6UqkYefdogmzqAZWzJ7laYeJnaXDy2/J+ZqiiMtS7t7OfpXWTlaeGMwX8U6EFvPV/YWWEKRkS8hKS4k60WHTOg== + +process-nextick-args@~2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" + integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== + +property-information@^6.0.0, property-information@^6.1.1: + version "6.1.1" + resolved "https://registry.yarnpkg.com/property-information/-/property-information-6.1.1.tgz#5ca85510a3019726cb9afed4197b7b8ac5926a22" + integrity sha512-hrzC564QIl0r0vy4l6MvRLhafmUowhO/O3KgVSoXIbbA2Sz4j8HGpJc6T2cubRVwMwpdiG/vKGfhT4IixmKN9w== + +protocols@^2.0.0, protocols@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/protocols/-/protocols-2.0.1.tgz#8f155da3fc0f32644e83c5782c8e8212ccf70a86" + integrity sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q== + +prr@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" + integrity sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw== + +punycode@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + +quick-lru@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932" + integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA== + +radix3@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/radix3/-/radix3-0.1.2.tgz#5f7351af7fc5e4b1d9a1b14a7266b6a4a8cac0ba" + integrity sha512-Mpfd/OuX0zoJ6ojLD/RTOHvJPg6e6PjINtmYzV87kIXc5iUtDz34i7gg4SV4XjqRJTmSiYO/g9i/mKWGf4z8wg== + +randombytes@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" + integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== + dependencies: + safe-buffer "^5.1.0" + +range-parser@~1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" + integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== + +rc9@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/rc9/-/rc9-1.2.2.tgz#0d79202e088dd80e2e0f77ac36f520247d2d3964" + integrity sha512-zbe8+HR2X28eZepAwohuKkebbEsA67h0DO9I7g12QrHa2CQopR9gztOLPIPXXGTvcxeUjAN4wZ+b29t3m/u05g== + dependencies: + defu "^6.0.0" + destr "^1.1.1" + flat "^5.0.0" + +read-cache@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/read-cache/-/read-cache-1.0.0.tgz#e664ef31161166c9751cdbe8dbcf86b5fb58f774" + integrity sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA== + dependencies: + pify "^2.3.0" + +readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.5: + version "2.3.7" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" + integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.1.1" + util-deprecate "~1.0.1" + +readable-stream@^3.1.1, readable-stream@^3.4.0, readable-stream@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" + integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readdir-glob@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/readdir-glob/-/readdir-glob-1.1.2.tgz#b185789b8e6a43491635b6953295c5c5e3fd224c" + integrity sha512-6RLVvwJtVwEDfPdn6X6Ille4/lxGl0ATOY4FN/B9nxQcgOazvvI0nodiD19ScKq0PvA/29VpaOQML36o5IzZWA== + dependencies: + minimatch "^5.1.0" + +readdirp@~3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" + integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== + dependencies: + picomatch "^2.2.1" + +redis-errors@^1.0.0, redis-errors@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/redis-errors/-/redis-errors-1.2.0.tgz#eb62d2adb15e4eaf4610c04afe1529384250abad" + integrity sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w== + +redis-parser@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/redis-parser/-/redis-parser-3.0.0.tgz#b66d828cdcafe6b4b8a428a7def4c6bcac31c8b4" + integrity sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A== + dependencies: + redis-errors "^1.0.0" + +rehype-external-links@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/rehype-external-links/-/rehype-external-links-2.0.0.tgz#594d7a8727f04758d2e760752ee29d964d44def3" + integrity sha512-Nhq4Wq2TpNdZ1rYec0LThCOoVLkIz5CLhDSo7k4nFhhlwE5vYcRleAM92ozZx6CcWTvzalLCpxq4PQLMucI1Vw== + dependencies: + "@types/hast" "^2.0.0" + extend "^3.0.0" + is-absolute-url "^4.0.0" + space-separated-tokens "^2.0.0" + unified "^10.0.0" + unist-util-visit "^4.0.0" + +rehype-raw@^6.1.1: + version "6.1.1" + resolved "https://registry.yarnpkg.com/rehype-raw/-/rehype-raw-6.1.1.tgz#81bbef3793bd7abacc6bf8335879d1b6c868c9d4" + integrity sha512-d6AKtisSRtDRX4aSPsJGTfnzrX2ZkHQLE5kiUuGOeEoLpbEulFF4hj0mLPbsa+7vmguDKOVVEQdHKDSwoaIDsQ== + dependencies: + "@types/hast" "^2.0.0" + hast-util-raw "^7.2.0" + unified "^10.0.0" + +rehype-slug@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/rehype-slug/-/rehype-slug-5.0.1.tgz#6e732d0c55b3b1e34187e74b7363fb53229e5f52" + integrity sha512-X5v3wV/meuOX9NFcGhJvUpEjIvQl2gDvjg3z40RVprYFt7q3th4qMmYLULiu3gXvbNX1ppx+oaa6JyY1W67pTA== + dependencies: + "@types/hast" "^2.0.0" + github-slugger "^1.1.1" + hast-util-has-property "^2.0.0" + hast-util-heading-rank "^2.0.0" + hast-util-to-string "^2.0.0" + unified "^10.0.0" + unist-util-visit "^4.0.0" + +rehype-sort-attribute-values@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/rehype-sort-attribute-values/-/rehype-sort-attribute-values-4.0.0.tgz#6a1baaced2f984ebed9aa201145c85cbc1c76880" + integrity sha512-+Y3OWTbbxSIutbXMVY7+aWFmcRyEvdz6HkghXAyVPjee1Y8HUi+/vryBL1UdEI9VknVBiGvphXAf5n6MDNOXOA== + dependencies: + "@types/hast" "^2.0.0" + hast-util-is-element "^2.0.0" + unified "^10.0.0" + unist-util-visit "^4.0.0" + +rehype-sort-attributes@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/rehype-sort-attributes/-/rehype-sort-attributes-4.0.0.tgz#b7766c864a370a07dd8ffa93b02c98322c20fe67" + integrity sha512-sCT58e12F+fJL8ZmvpEP2vAK7cpYffUAf0cMQjNfLIewWjMHMGo0Io+H8eztJoI1S9dvEm2XZT5zzchqe8gYJw== + dependencies: + "@types/hast" "^2.0.0" + unified "^10.0.0" + unist-util-visit "^4.0.0" + +remark-emoji@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/remark-emoji/-/remark-emoji-3.0.2.tgz#786e88af1ecae682d74d7e1219989f34708205da" + integrity sha512-hEgxEv2sBtvhT3tNG/tQeeFY3EbslftaOoG14dDZndLo25fWJ6Fbg4ukFbIotOWWrfXyASjXjyHT+6n366k3mg== + dependencies: + emoticon "^4.0.0" + node-emoji "^1.11.0" + unist-util-visit "^4.1.0" + +remark-gfm@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/remark-gfm/-/remark-gfm-3.0.1.tgz#0b180f095e3036545e9dddac0e8df3fa5cfee54f" + integrity sha512-lEFDoi2PICJyNrACFOfDD3JlLkuSbOa5Wd8EPt06HUdptv8Gn0bxYTdbU/XXQ3swAPkEaGxxPN9cbnMHvVu1Ig== + dependencies: + "@types/mdast" "^3.0.0" + mdast-util-gfm "^2.0.0" + micromark-extension-gfm "^2.0.0" + unified "^10.0.0" + +remark-mdc@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/remark-mdc/-/remark-mdc-1.0.4.tgz#e871e62d4e0e3cec98be3282170d3ddf1827b189" + integrity sha512-bitabCV+w3Ma5yDFSbkVd6z+JtAV0MjzJmF0U6S3bA4kQU8KaqYpQJH/LfuGpyY+oASvF3WaPwn8n/wAVEWJUA== + dependencies: + flat "^5.0.2" + js-yaml "^4.1.0" + mdast-util-from-markdown "^1.2.0" + mdast-util-to-markdown "^1.3.0" + micromark "^3.0.10" + micromark-core-commonmark "^1.0.6" + micromark-factory-space "^1.0.0" + micromark-factory-whitespace "^1.0.0" + micromark-util-character "^1.1.0" + parse-entities "^4.0.0" + scule "^0.2.1" + stringify-entities "^4.0.2" + unist-util-visit "^4.1.0" + unist-util-visit-parents "^5.1.0" + +remark-parse@^10.0.1: + version "10.0.1" + resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-10.0.1.tgz#6f60ae53edbf0cf38ea223fe643db64d112e0775" + integrity sha512-1fUyHr2jLsVOkhbvPRBJ5zTKZZyD6yZzYaWCS6BPBdQ8vEMBCH+9zNCDA6tET/zHCi/jLqjCWtlJZUPk+DbnFw== + dependencies: + "@types/mdast" "^3.0.0" + mdast-util-from-markdown "^1.0.0" + unified "^10.0.0" + +remark-rehype@^10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/remark-rehype/-/remark-rehype-10.1.0.tgz#32dc99d2034c27ecaf2e0150d22a6dcccd9a6279" + integrity sha512-EFmR5zppdBp0WQeDVZ/b66CWJipB2q2VLNFMabzDSGR66Z2fQii83G5gTBbgGEnEEA0QRussvrFHxk1HWGJskw== + dependencies: + "@types/hast" "^2.0.0" + "@types/mdast" "^3.0.0" + mdast-util-to-hast "^12.1.0" + unified "^10.0.0" + +remark-squeeze-paragraphs@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/remark-squeeze-paragraphs/-/remark-squeeze-paragraphs-5.0.1.tgz#c15aae559c43cc6e1fe85e24d6ec3cca7ecc4fa9" + integrity sha512-VWPAoa1bAAtU/aQfSLRZ7vOrwH9I02RhZTSo+e0LT3fVO9RKNCq/bwobIEBhxvNCt00JoQ7GwR3sYGhmD2/y6Q== + dependencies: + "@types/mdast" "^3.0.0" + mdast-squeeze-paragraphs "^5.0.0" + unified "^10.0.0" + +replace-in-file@^6.1.0: + version "6.3.5" + resolved "https://registry.yarnpkg.com/replace-in-file/-/replace-in-file-6.3.5.tgz#ff956b0ab5bc96613207d603d197cd209400a654" + integrity sha512-arB9d3ENdKva2fxRnSjwBEXfK1npgyci7ZZuwysgAp7ORjHSyxz6oqIjTEv8R0Ydl4Ll7uOAZXL4vbkhGIizCg== + dependencies: + chalk "^4.1.2" + glob "^7.2.0" + yargs "^17.2.1" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== + +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + +requires-port@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" + integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== + +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + +resolve-from@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" + integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== + +resolve-path@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/resolve-path/-/resolve-path-1.4.0.tgz#c4bda9f5efb2fce65247873ab36bb4d834fe16f7" + integrity sha512-i1xevIst/Qa+nA9olDxLWnLk8YZbi8R/7JPbCMcgyWaFR6bKWaexgJgEB5oc2PKMjYdrHynyz0NY+if+H98t1w== + dependencies: + http-errors "~1.6.2" + path-is-absolute "1.0.1" + +resolve@^1.1.7, resolve@^1.17.0, resolve@^1.19.0, resolve@^1.22.0, resolve@^1.22.1: + version "1.22.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" + integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== + dependencies: + is-core-module "^2.9.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + +restore-cursor@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-4.0.0.tgz#519560a4318975096def6e609d44100edaa4ccb9" + integrity sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg== + dependencies: + onetime "^5.1.0" + signal-exit "^3.0.2" + +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + +rimraf@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + +rollup-plugin-terser@^7.0.2: + version "7.0.2" + resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz#e8fbba4869981b2dc35ae7e8a502d5c6c04d324d" + integrity sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ== + dependencies: + "@babel/code-frame" "^7.10.4" + jest-worker "^26.2.1" + serialize-javascript "^4.0.0" + terser "^5.0.0" + +rollup-plugin-visualizer@^5.6.0, rollup-plugin-visualizer@^5.7.1: + version "5.7.1" + resolved "https://registry.yarnpkg.com/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.7.1.tgz#7af30b02e6579155368a90b37b6ee9137b391d06" + integrity sha512-E/IgOMnmXKlc6ICyf53ok1b6DxPeNVUs3R0kYYPuDpGfofT4bkiG+KtSMlGjMACFmfwbbqTVDZBIF7sMZVKJbA== + dependencies: + nanoid "^3.3.4" + open "^8.4.0" + source-map "^0.7.3" + yargs "^17.5.1" + +rollup-pluginutils@^2.8.2: + version "2.8.2" + resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz#72f2af0748b592364dbd3389e600e5a9444a351e" + integrity sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ== + dependencies: + estree-walker "^0.6.1" + +rollup@^2.59.0, rollup@^2.75.6, rollup@^2.76.0, rollup@^2.77.0: + version "2.77.2" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.77.2.tgz#6b6075c55f9cc2040a5912e6e062151e42e2c4e3" + integrity sha512-m/4YzYgLcpMQbxX3NmAqDvwLATZzxt8bIegO78FZLl+lAgKJBd1DRAOeEiZcKOIOPjxE6ewHWHNgGEalFXuz1g== + optionalDependencies: + fsevents "~2.3.2" + +run-async@^2.4.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" + integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== + +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== + dependencies: + queue-microtask "^1.2.2" + +rxjs@^7.5.6: + version "7.5.6" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.5.6.tgz#0446577557862afd6903517ce7cae79ecb9662bc" + integrity sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw== + dependencies: + tslib "^2.1.0" + +sade@^1.7.3: + version "1.8.1" + resolved "https://registry.yarnpkg.com/sade/-/sade-1.8.1.tgz#0a78e81d658d394887be57d2a409bf703a3b2701" + integrity sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A== + dependencies: + mri "^1.1.0" + +safe-buffer@5.2.1, safe-buffer@^5.1.0, safe-buffer@^5.1.2, safe-buffer@^5.2.1, safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + +safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +"safer-buffer@>= 2.1.2 < 3": + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +schema-utils@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.1.tgz#bc74c4b6b6995c1d88f76a8b77bea7219e0c8281" + integrity sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw== + dependencies: + "@types/json-schema" "^7.0.8" + ajv "^6.12.5" + ajv-keywords "^3.5.2" + +scule@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/scule/-/scule-0.2.1.tgz#0c1dc847b18e07219ae9a3832f2f83224e2079dc" + integrity sha512-M9gnWtn3J0W+UhJOHmBxBTwv8mZCan5i1Himp60t6vvZcor0wr+IM0URKmIglsWJ7bRujNAVVN77fp+uZaWoKg== + +scule@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/scule/-/scule-0.3.2.tgz#472445cecd8357165a94a067f78cee40e700b596" + integrity sha512-zIvPdjOH8fv8CgrPT5eqtxHQXmPNnV/vHJYffZhE43KZkvULvpCTvOt1HPlFaCZx287INL9qaqrZg34e8NgI4g== + +selfsigned@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/selfsigned/-/selfsigned-2.0.1.tgz#8b2df7fa56bf014d19b6007655fff209c0ef0a56" + integrity sha512-LmME957M1zOsUhG+67rAjKfiWFox3SBxE/yymatMZsAx+oMrJ0YQ8AToOnyCm7xbeg2ep37IHLxdu0o2MavQOQ== + dependencies: + node-forge "^1" + +semver@^6.0.0, semver@^6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" + integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== + +semver@^7.3.4, semver@^7.3.5, semver@^7.3.7: + version "7.3.7" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f" + integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g== + dependencies: + lru-cache "^6.0.0" + +send@0.18.0: + version "0.18.0" + resolved "https://registry.yarnpkg.com/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be" + integrity sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg== + dependencies: + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "0.5.2" + http-errors "2.0.0" + mime "1.6.0" + ms "2.1.3" + on-finished "2.4.1" + range-parser "~1.2.1" + statuses "2.0.1" + +serialize-javascript@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-4.0.0.tgz#b525e1238489a5ecfc42afacc3fe99e666f4b1aa" + integrity sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw== + dependencies: + randombytes "^2.1.0" + +serve-placeholder@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/serve-placeholder/-/serve-placeholder-2.0.1.tgz#dfa741812f49dfea472a68c4f292dbc40d28389a" + integrity sha512-rUzLlXk4uPFnbEaIz3SW8VISTxMuONas88nYWjAWaM2W9VDbt9tyFOr3lq8RhVOFrT3XISoBw8vni5una8qMnQ== + dependencies: + defu "^6.0.0" + +serve-static@^1.15.0: + version "1.15.0" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.15.0.tgz#faaef08cffe0a1a62f60cad0c4e513cff0ac9540" + integrity sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g== + dependencies: + encodeurl "~1.0.2" + escape-html "~1.0.3" + parseurl "~1.3.3" + send "0.18.0" + +set-blocking@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== + +setprototypeof@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" + integrity sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ== + +setprototypeof@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" + integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== + +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + +shiki-es@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/shiki-es/-/shiki-es-0.1.2.tgz#37176c6ff8d734f95e27560b62e1230c9a90c0cb" + integrity sha512-eqtfk8idlYlSLAn0gp0Ly2+FbKc2d78IddigHSS4iHAnpXoY2kdRzyFGZOdi6TvemYMnRhZBi1HsSqZc5eNKqg== + +signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3: + version "3.0.7" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" + integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== + +slash@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" + integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== + +slash@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" + integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew== + +slice-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" + integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== + dependencies: + ansi-styles "^4.0.0" + astral-regex "^2.0.0" + is-fullwidth-code-point "^3.0.0" + +slugify@^1.6.5: + version "1.6.5" + resolved "https://registry.yarnpkg.com/slugify/-/slugify-1.6.5.tgz#c8f5c072bf2135b80703589b39a3d41451fbe8c8" + integrity sha512-8mo9bslnBO3tr5PEVFzMPIWwWnipGS0xVbYf65zxDqfNwmzYn1LpiKNrR6DlClusuvo+hDHd1zKpmfAe83NQSQ== + +source-map-js@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" + integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw== + +source-map-support@^0.5.21, source-map-support@~0.5.20: + version "0.5.21" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" + integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map@^0.6.0, source-map@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +source-map@^0.7.3: + version "0.7.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" + integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== + +sourcemap-codec@^1.4.8: + version "1.4.8" + resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4" + integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA== + +space-separated-tokens@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-2.0.1.tgz#43193cec4fb858a2ce934b7f98b7f2c18107098b" + integrity sha512-ekwEbFp5aqSPKaqeY1PGrlGQxPNaq+Cnx4+bE2D8sciBQrHpbwoBbawqTN2+6jPs9IdWxxiUcN0K2pkczD3zmw== + +stable@^0.1.8: + version "0.1.8" + resolved "https://registry.yarnpkg.com/stable/-/stable-0.1.8.tgz#836eb3c8382fe2936feaf544631017ce7d47a3cf" + integrity sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w== + +standard-as-callback@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/standard-as-callback/-/standard-as-callback-2.1.0.tgz#8953fc05359868a77b5b9739a665c5977bb7df45" + integrity sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A== + +statuses@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" + integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== + +"statuses@>= 1.4.0 < 2", "statuses@>= 1.5.0 < 2", statuses@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" + integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA== + +std-env@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/std-env/-/std-env-3.1.1.tgz#1f19c4d3f6278c52efd08a94574a2a8d32b7d092" + integrity sha512-/c645XdExBypL01TpFKiG/3RAa/Qmu+zRi0MwAmrdEkwHNuN0ebo8ccAXBBDa5Z0QOJgBskUIbuCK91x0sCVEw== + +"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@^5.0.1, string-width@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" + integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA== + dependencies: + eastasianwidth "^0.2.0" + emoji-regex "^9.2.2" + strip-ansi "^7.0.1" + +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + +string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + +stringify-entities@^4.0.2: + version "4.0.3" + resolved "https://registry.yarnpkg.com/stringify-entities/-/stringify-entities-4.0.3.tgz#cfabd7039d22ad30f3cc435b0ca2c1574fc88ef8" + integrity sha512-BP9nNHMhhfcMbiuQKCqMjhDP5yBCAxsPu4pHFFzJ6Alo9dZgY4VLDPutXqIjpRiMoKdp7Av85Gr73Q5uH9k7+g== + dependencies: + character-entities-html4 "^2.0.0" + character-entities-legacy "^3.0.0" + +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.0.1.tgz#61740a08ce36b61e50e65653f07060d000975fb2" + integrity sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw== + dependencies: + ansi-regex "^6.0.1" + +strip-bom@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" + integrity sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g== + dependencies: + is-utf8 "^0.2.0" + +strip-final-newline@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" + integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== + +strip-literal@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/strip-literal/-/strip-literal-0.4.0.tgz#0f90e86daecc1eb23c61c62d25238ffad4524634" + integrity sha512-ql/sBDoJOybTKSIOWrrh8kgUEMjXMwRAkZTD0EwiwxQH/6tTPkZvMIEjp0CRlpi6V5FMiJyvxeRkEi1KrGISoA== + dependencies: + acorn "^8.7.1" + +style-to-object@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/style-to-object/-/style-to-object-0.3.0.tgz#b1b790d205991cc783801967214979ee19a76e46" + integrity sha512-CzFnRRXhzWIdItT3OmF8SQfWyahHhjq3HwcMNCNLn+N7klOOqPjMeG/4JSu77D7ypZdGvSzvkrbyeTMizz2VrA== + dependencies: + inline-style-parser "0.1.1" + +stylehacks@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-5.1.0.tgz#a40066490ca0caca04e96c6b02153ddc39913520" + integrity sha512-SzLmvHQTrIWfSgljkQCw2++C9+Ne91d/6Sp92I8c5uHTcy/PgeHamwITIbBW9wnFTY/3ZfSXR9HIL6Ikqmcu6Q== + dependencies: + browserslist "^4.16.6" + postcss-selector-parser "^6.0.4" + +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== + dependencies: + has-flag "^3.0.0" + +supports-color@^7.0.0, supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== + dependencies: + has-flag "^4.0.0" + +supports-preserve-symlinks-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" + integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== + +svg-tags@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/svg-tags/-/svg-tags-1.0.0.tgz#58f71cee3bd519b59d4b2a843b6c7de64ac04764" + integrity sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA== + +svgo@^2.7.0: + version "2.8.0" + resolved "https://registry.yarnpkg.com/svgo/-/svgo-2.8.0.tgz#4ff80cce6710dc2795f0c7c74101e6764cfccd24" + integrity sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg== + dependencies: + "@trysound/sax" "0.2.0" + commander "^7.2.0" + css-select "^4.1.3" + css-tree "^1.1.3" + csso "^4.2.0" + picocolors "^1.0.0" + stable "^0.1.8" + +table@^6.8.0: + version "6.8.0" + resolved "https://registry.yarnpkg.com/table/-/table-6.8.0.tgz#87e28f14fa4321c3377ba286f07b79b281a3b3ca" + integrity sha512-s/fitrbVeEyHKFa7mFdkuQMWlH1Wgw/yEXMt5xACT4ZpzWFluehAxRtUUQKPuWhaLAWhFcVx6w3oC8VKaUfPGA== + dependencies: + ajv "^8.0.1" + lodash.truncate "^4.4.2" + slice-ansi "^4.0.0" + string-width "^4.2.3" + strip-ansi "^6.0.1" + +tailwind-config-viewer@^1.7.1: + version "1.7.1" + resolved "https://registry.yarnpkg.com/tailwind-config-viewer/-/tailwind-config-viewer-1.7.1.tgz#02beca5064d799908865907bbe085f368a4174d0" + integrity sha512-EtDwFzgQEMJ6dFmp/6K+QJSP7NWANrGDsbwkn/BEq7MVJd/dEIZ5BBZTxo5jx+opa3HNJu/CHtWanKSCrgNwpA== + dependencies: + "@koa/router" "^9.0.1" + commander "^6.0.0" + fs-extra "^9.0.1" + koa "^2.12.0" + koa-static "^5.0.0" + open "^7.0.4" + portfinder "^1.0.26" + replace-in-file "^6.1.0" + +tailwindcss@*, tailwindcss@^3.1.6: + version "3.1.8" + resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.1.8.tgz#4f8520550d67a835d32f2f4021580f9fddb7b741" + integrity sha512-YSneUCZSFDYMwk+TGq8qYFdCA3yfBRdBlS7txSq0LUmzyeqRe3a8fBQzbz9M3WS/iFT4BNf/nmw9mEzrnSaC0g== + dependencies: + arg "^5.0.2" + chokidar "^3.5.3" + color-name "^1.1.4" + detective "^5.2.1" + didyoumean "^1.2.2" + dlv "^1.1.3" + fast-glob "^3.2.11" + glob-parent "^6.0.2" + is-glob "^4.0.3" + lilconfig "^2.0.6" + normalize-path "^3.0.0" + object-hash "^3.0.0" + picocolors "^1.0.0" + postcss "^8.4.14" + postcss-import "^14.1.0" + postcss-js "^4.0.0" + postcss-load-config "^3.1.4" + postcss-nested "5.0.6" + postcss-selector-parser "^6.0.10" + postcss-value-parser "^4.2.0" + quick-lru "^5.1.1" + resolve "^1.22.1" + +tapable@^1.0.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2" + integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA== + +tapable@^2.2.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" + integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== + +tar-stream@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-2.2.0.tgz#acad84c284136b060dc3faa64474aa9aebd77287" + integrity sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ== + dependencies: + bl "^4.0.3" + end-of-stream "^1.4.1" + fs-constants "^1.0.0" + inherits "^2.0.3" + readable-stream "^3.1.1" + +tar@^4.4.1: + version "4.4.19" + resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.19.tgz#2e4d7263df26f2b914dee10c825ab132123742f3" + integrity sha512-a20gEsvHnWe0ygBY8JbxoM4w3SJdhc7ZAuxkLqh+nvNQN2IOt0B5lLgM490X5Hl8FF0dl0tOf2ewFYAlIFgzVA== + dependencies: + chownr "^1.1.4" + fs-minipass "^1.2.7" + minipass "^2.9.0" + minizlib "^1.3.3" + mkdirp "^0.5.5" + safe-buffer "^5.2.1" + yallist "^3.1.1" + +tar@^6.1.11: + version "6.1.11" + resolved "https://registry.yarnpkg.com/tar/-/tar-6.1.11.tgz#6760a38f003afa1b2ffd0ffe9e9abbd0eab3d621" + integrity sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA== + dependencies: + chownr "^2.0.0" + fs-minipass "^2.0.0" + minipass "^3.0.0" + minizlib "^2.1.1" + mkdirp "^1.0.3" + yallist "^4.0.0" + +terser@^5.0.0: + version "5.14.2" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.14.2.tgz#9ac9f22b06994d736174f4091aa368db896f1c10" + integrity sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA== + dependencies: + "@jridgewell/source-map" "^0.3.2" + acorn "^8.5.0" + commander "^2.20.0" + source-map-support "~0.5.20" + +through@^2.3.6: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== + +tiny-invariant@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.2.0.tgz#a1141f86b672a9148c72e978a19a73b9b94a15a9" + integrity sha512-1Uhn/aqw5C6RI4KejVeTg6mIS7IqxnLJ8Mv2tV5rTc0qWobay7pDUz6Wi392Cnc8ak1H0F2cjoRzb2/AW4+Fvg== + +tmp@^0.0.33: + version "0.0.33" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" + integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== + dependencies: + os-tmpdir "~1.0.2" + +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== + +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + +toidentifier@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" + integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== + +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" + integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== + +trim-lines@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/trim-lines/-/trim-lines-3.0.1.tgz#d802e332a07df861c48802c04321017b1bd87338" + integrity sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg== + +trough@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/trough/-/trough-2.1.0.tgz#0f7b511a4fde65a46f18477ab38849b22c554876" + integrity sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g== + +tslib@^2.1.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3" + integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== + +tsscmp@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/tsscmp/-/tsscmp-1.0.6.tgz#85b99583ac3589ec4bfef825b5000aa911d605eb" + integrity sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA== + +type-fest@^0.21.3: + version "0.21.3" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" + integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== + +type-fest@^1.0.2: + version "1.4.0" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-1.4.0.tgz#e9fb813fe3bf1744ec359d55d1affefa76f14be1" + integrity sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA== + +type-fest@^2.11.2: + version "2.18.0" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-2.18.0.tgz#fdef3a74e0a9e68ebe46054836650fb91ac3881e" + integrity sha512-pRS+/yrW5TjPPHNOvxhbNZexr2bS63WjrMU8a+VzEBhUi9Tz1pZeD+vQz3ut0svZ46P+SRqMEPnJmk2XnvNzTw== + +type-is@^1.6.16: + version "1.6.18" + resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" + integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== + dependencies: + media-typer "0.3.0" + mime-types "~2.1.24" + +ufo@^0.8.3, ufo@^0.8.4, ufo@^0.8.5: + version "0.8.5" + resolved "https://registry.yarnpkg.com/ufo/-/ufo-0.8.5.tgz#e367b4205ece9d9723f2fa54f887d43ed1bce5d0" + integrity sha512-e4+UtA5IRO+ha6hYklwj6r7BjiGMxS0O+UaSg9HbaTefg4kMkzj4tXzEBajRR+wkxf+golgAWKzLbytCUDMJAA== + +unctx@^1.1.4: + version "1.2.0" + resolved "https://registry.yarnpkg.com/unctx/-/unctx-1.2.0.tgz#223537956059c0ed1aa6abd3244388f490c8e402" + integrity sha512-r3p62XKSMvgttYu3fFf52rteqcguwQENJ863dOGM1xM3uUbSNbr+zAuTohMyKx2pcZLmjusgcnl1cAWaZbCzKg== + dependencies: + acorn "^8.7.0" + estree-walker "^2.0.2" + magic-string "^0.26.1" + unplugin "^0.6.1" + +undici@^5.2.0: + version "5.8.1" + resolved "https://registry.yarnpkg.com/undici/-/undici-5.8.1.tgz#511d43ff6be02f84ec2513ae7f4b07c589319272" + integrity sha512-iDRmWX4Zar/4A/t+1LrKQRm102zw2l9Wgat3LtTlTn8ykvMZmAmpq9tjyHEigx18FsY7IfATvyN3xSw9BDz0eA== + +unenv@^0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/unenv/-/unenv-0.5.2.tgz#98ab27dfbe5432b4ce79e1a4b42491e9bf1449cd" + integrity sha512-dojYcCqOFEWZosvqWs/AEaEfM/tLJexMKBW0ebkn6JKfEnYR5fKxbYJB8QV9kAPXV/ENseeWQkv6uJ3KCXz+1g== + dependencies: + defu "^6.0.0" + mime "^3.0.0" + node-fetch-native "^0.1.2" + pathe "^0.3.0" + +unified@^10.0.0, unified@^10.1.2: + version "10.1.2" + resolved "https://registry.yarnpkg.com/unified/-/unified-10.1.2.tgz#b1d64e55dafe1f0b98bb6c719881103ecf6c86df" + integrity sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q== + dependencies: + "@types/unist" "^2.0.0" + bail "^2.0.0" + extend "^3.0.0" + is-buffer "^2.0.0" + is-plain-obj "^4.0.0" + trough "^2.0.0" + vfile "^5.0.0" + +unimport@^0.4.4, unimport@^0.4.5: + version "0.4.7" + resolved "https://registry.yarnpkg.com/unimport/-/unimport-0.4.7.tgz#a3da4c7f15444a15d7b4ea1e50e592771a79c488" + integrity sha512-V2Pbscd1VSdgWm1/OI2pjtydEOTjE7DDnHZKhpOq7bSUBc1i8+1f6PK8jI1lJ1plRDcSNr0DLtAmtU9NPkFQpw== + dependencies: + "@rollup/pluginutils" "^4.2.1" + escape-string-regexp "^5.0.0" + fast-glob "^3.2.11" + local-pkg "^0.4.2" + magic-string "^0.26.2" + mlly "^0.5.5" + pathe "^0.3.2" + scule "^0.2.1" + strip-literal "^0.4.0" + unplugin "^0.7.2" + +unist-builder@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/unist-builder/-/unist-builder-3.0.0.tgz#728baca4767c0e784e1e64bb44b5a5a753021a04" + integrity sha512-GFxmfEAa0vi9i5sd0R2kcrI9ks0r82NasRq5QHh2ysGngrc6GiqD5CDf1FjPenY4vApmFASBIIlk/jj5J5YbmQ== + dependencies: + "@types/unist" "^2.0.0" + +unist-util-generated@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/unist-util-generated/-/unist-util-generated-2.0.0.tgz#86fafb77eb6ce9bfa6b663c3f5ad4f8e56a60113" + integrity sha512-TiWE6DVtVe7Ye2QxOVW9kqybs6cZexNwTwSMVgkfjEReqy/xwGpAXb99OxktoWwmL+Z+Epb0Dn8/GNDYP1wnUw== + +unist-util-is@^5.0.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/unist-util-is/-/unist-util-is-5.1.1.tgz#e8aece0b102fa9bc097b0fef8f870c496d4a6236" + integrity sha512-F5CZ68eYzuSvJjGhCLPL3cYx45IxkqXSetCcRgUXtbcm50X2L9oOWQlfUfDdAf+6Pd27YDblBfdtmsThXmwpbQ== + +unist-util-position@^4.0.0, unist-util-position@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/unist-util-position/-/unist-util-position-4.0.3.tgz#5290547b014f6222dff95c48d5c3c13a88fadd07" + integrity sha512-p/5EMGIa1qwbXjA+QgcBXaPWjSnZfQ2Sc3yBEEfgPwsEmJd8Qh+DSk3LGnmOM4S1bY2C0AjmMnB8RuEYxpPwXQ== + dependencies: + "@types/unist" "^2.0.0" + +unist-util-remove@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/unist-util-remove/-/unist-util-remove-3.1.0.tgz#8042577e151dac989b7517976bfe4bac58f76ccd" + integrity sha512-rO/sIghl13eN8irs5OBN2a4RC10MsJdiePCfwrvnzGtgIbHcDXr2REr0qi9F2r/CIb1r9FyyFmcMRIGs+EyUFw== + dependencies: + "@types/unist" "^2.0.0" + unist-util-is "^5.0.0" + unist-util-visit-parents "^5.0.0" + +unist-util-stringify-position@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-3.0.2.tgz#5c6aa07c90b1deffd9153be170dce628a869a447" + integrity sha512-7A6eiDCs9UtjcwZOcCpM4aPII3bAAGv13E96IkawkOAW0OhH+yRxtY0lzo8KiHpzEMfH7Q+FizUmwp8Iqy5EWg== + dependencies: + "@types/unist" "^2.0.0" + +unist-util-visit-parents@^5.0.0, unist-util-visit-parents@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-5.1.0.tgz#44bbc5d25f2411e7dfc5cecff12de43296aa8521" + integrity sha512-y+QVLcY5eR/YVpqDsLf/xh9R3Q2Y4HxkZTp7ViLDU6WtJCEcPmRzW1gpdWDCDIqIlhuPDXOgttqPlykrHYDekg== + dependencies: + "@types/unist" "^2.0.0" + unist-util-is "^5.0.0" + +unist-util-visit@^4.0.0, unist-util-visit@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-4.1.0.tgz#f41e407a9e94da31594e6b1c9811c51ab0b3d8f5" + integrity sha512-n7lyhFKJfVZ9MnKtqbsqkQEk5P1KShj0+//V7mAcoI6bpbUjh3C/OG8HVD+pBihfh6Ovl01m8dkcv9HNqYajmQ== + dependencies: + "@types/unist" "^2.0.0" + unist-util-is "^5.0.0" + unist-util-visit-parents "^5.0.0" + +universalify@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" + integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== + +unplugin@^0.6.1: + version "0.6.3" + resolved "https://registry.yarnpkg.com/unplugin/-/unplugin-0.6.3.tgz#b8721e2b163a410a7efed726e6a0fc6fbadf975a" + integrity sha512-CoW88FQfCW/yabVc4bLrjikN9HC8dEvMU4O7B6K2jsYMPK0l6iAnd9dpJwqGcmXJKRCU9vwSsy653qg+RK0G6A== + dependencies: + chokidar "^3.5.3" + webpack-sources "^3.2.3" + webpack-virtual-modules "^0.4.3" + +unplugin@^0.7.2: + version "0.7.2" + resolved "https://registry.yarnpkg.com/unplugin/-/unplugin-0.7.2.tgz#4127012fdc2c84ea4ce03ce75e3d4f54ea47bba1" + integrity sha512-m7thX4jP8l5sETpLdUASoDOGOcHaOVtgNyrYlToyQUvILUtEzEnngRBrHnAX3IKqooJVmXpoa/CwQ/QqzvGaHQ== + dependencies: + acorn "^8.7.1" + chokidar "^3.5.3" + webpack-sources "^3.2.3" + webpack-virtual-modules "^0.4.4" + +unstorage@^0.5.4, unstorage@^0.5.6: + version "0.5.6" + resolved "https://registry.yarnpkg.com/unstorage/-/unstorage-0.5.6.tgz#61a4f4510a5c8703e59ff3f41fc82979ce84564b" + integrity sha512-TUm1ZyLkVamRfM+uWmWtavlzri3XS0ajYXKhlrAZ8aCChMwH29lufOfAP0bsMaBHuciIVfycaGgNhHeyLONpdA== + dependencies: + anymatch "^3.1.2" + chokidar "^3.5.3" + destr "^1.1.1" + h3 "^0.7.12" + ioredis "^5.2.2" + listhen "^0.2.13" + mri "^1.2.0" + ohmyfetch "^0.4.18" + ufo "^0.8.5" + ws "^8.8.1" + +untyped@^0.4.4: + version "0.4.5" + resolved "https://registry.yarnpkg.com/untyped/-/untyped-0.4.5.tgz#2a93c62a36e1cf7e0d440042a90d54df0a2cdf9f" + integrity sha512-buq9URfOj4xAnVfu6BYNKzHZLHAzsCbHsDc/kHy66ESMqRpj00oD9qWf2M2qm0pC0DigsVxRF3uhOa5HJtrwGA== + dependencies: + "@babel/core" "^7.18.10" + "@babel/standalone" "^7.18.11" + "@babel/types" "^7.18.10" + scule "^0.3.2" + +update-browserslist-db@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.5.tgz#be06a5eedd62f107b7c19eb5bcefb194411abf38" + integrity sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q== + dependencies: + escalade "^3.1.1" + picocolors "^1.0.0" + +uri-js@^4.2.2: + version "4.4.1" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" + integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== + dependencies: + punycode "^2.1.0" + +util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== + +uvu@^0.5.0: + version "0.5.6" + resolved "https://registry.yarnpkg.com/uvu/-/uvu-0.5.6.tgz#2754ca20bcb0bb59b64e9985e84d2e81058502df" + integrity sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA== + dependencies: + dequal "^2.0.0" + diff "^5.0.0" + kleur "^4.0.3" + sade "^1.7.3" + +vary@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" + integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== + +vfile-location@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/vfile-location/-/vfile-location-4.0.1.tgz#06f2b9244a3565bef91f099359486a08b10d3a95" + integrity sha512-JDxPlTbZrZCQXogGheBHjbRWjESSPEak770XwWPfw5mTc1v1nWGLB/apzZxsx8a0SJVfF8HK8ql8RD308vXRUw== + dependencies: + "@types/unist" "^2.0.0" + vfile "^5.0.0" + +vfile-message@^3.0.0: + version "3.1.2" + resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-3.1.2.tgz#a2908f64d9e557315ec9d7ea3a910f658ac05f7d" + integrity sha512-QjSNP6Yxzyycd4SVOtmKKyTsSvClqBPJcd00Z0zuPj3hOIjg0rUPG6DbFGPvUKRgYyaIWLPKpuEclcuvb3H8qA== + dependencies: + "@types/unist" "^2.0.0" + unist-util-stringify-position "^3.0.0" + +vfile@^5.0.0: + version "5.3.4" + resolved "https://registry.yarnpkg.com/vfile/-/vfile-5.3.4.tgz#bbb8c96b956693bbf70b2c67fdb5781dff769b93" + integrity sha512-KI+7cnst03KbEyN1+JE504zF5bJBZa+J+CrevLeyIMq0aPU681I2rQ5p4PlnQ6exFtWiUrg26QUdFMnAKR6PIw== + dependencies: + "@types/unist" "^2.0.0" + is-buffer "^2.0.0" + unist-util-stringify-position "^3.0.0" + vfile-message "^3.0.0" + +vite-node@^0.18.1: + version "0.18.1" + resolved "https://registry.yarnpkg.com/vite-node/-/vite-node-0.18.1.tgz#f25e721ece6105de13004723e9bb6f5cd81674c5" + integrity sha512-tS73HzJn0DokGC/QRi0GzrzKjwjTE7eAroKsZYzqYUclttK1gGb5jDeilAVql89SMVSkcGwnxk/Xu6aoDWa5MQ== + dependencies: + debug "^4.3.4" + kolorist "^1.5.1" + mlly "^0.5.4" + pathe "^0.2.0" + vite "^2.9.12 || ^3.0.0-0" + +vite-plugin-checker@^0.4.9: + version "0.4.9" + resolved "https://registry.yarnpkg.com/vite-plugin-checker/-/vite-plugin-checker-0.4.9.tgz#ec0c6cd5c1d98a826915a729cf1de3026c8db3bb" + integrity sha512-Oii9mTum8bqZovWejcR739kCqST32oG6LdB/XMdwcLVzmcjq0gf1iVDIedVzJJ7t6GLQAYgjNwvB0fuMiT3tlg== + dependencies: + "@babel/code-frame" "^7.12.13" + ansi-escapes "^4.3.0" + chalk "^4.1.1" + chokidar "^3.5.1" + commander "^8.0.0" + fast-glob "^3.2.7" + lodash.debounce "^4.0.8" + lodash.pick "^4.4.0" + npm-run-path "^4.0.1" + strip-ansi "^6.0.0" + tiny-invariant "^1.1.0" + vscode-languageclient "^7.0.0" + vscode-languageserver "^7.0.0" + vscode-languageserver-textdocument "^1.0.1" + vscode-uri "^3.0.2" + +"vite@^2.9.12 || ^3.0.0-0": + version "3.0.4" + resolved "https://registry.yarnpkg.com/vite/-/vite-3.0.4.tgz#c61688d6b97573e96cf5ac25f2d68597b5ce68e8" + integrity sha512-NU304nqnBeOx2MkQnskBQxVsa0pRAH5FphokTGmyy8M3oxbvw7qAXts2GORxs+h/2vKsD+osMhZ7An6yK6F1dA== + dependencies: + esbuild "^0.14.47" + postcss "^8.4.14" + resolve "^1.22.1" + rollup "^2.75.6" + optionalDependencies: + fsevents "~2.3.2" + +vite@^2.9.14: + version "2.9.14" + resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.14.tgz#c438324c6594afd1050df3777da981dee988bb1b" + integrity sha512-P/UCjSpSMcE54r4mPak55hWAZPlyfS369svib/gpmz8/01L822lMPOJ/RYW6tLCe1RPvMvOsJ17erf55bKp4Hw== + dependencies: + esbuild "^0.14.27" + postcss "^8.4.13" + resolve "^1.22.0" + rollup "^2.59.0" + optionalDependencies: + fsevents "~2.3.2" + +vscode-jsonrpc@6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/vscode-jsonrpc/-/vscode-jsonrpc-6.0.0.tgz#108bdb09b4400705176b957ceca9e0880e9b6d4e" + integrity sha512-wnJA4BnEjOSyFMvjZdpiOwhSq9uDoK8e/kpRJDTaMYzwlkrhG1fwDIZI94CLsLzlCK5cIbMMtFlJlfR57Lavmg== + +vscode-languageclient@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/vscode-languageclient/-/vscode-languageclient-7.0.0.tgz#b505c22c21ffcf96e167799757fca07a6bad0fb2" + integrity sha512-P9AXdAPlsCgslpP9pRxYPqkNYV7Xq8300/aZDpO35j1fJm/ncize8iGswzYlcvFw5DQUx4eVk+KvfXdL0rehNg== + dependencies: + minimatch "^3.0.4" + semver "^7.3.4" + vscode-languageserver-protocol "3.16.0" + +vscode-languageserver-protocol@3.16.0: + version "3.16.0" + resolved "https://registry.yarnpkg.com/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.16.0.tgz#34135b61a9091db972188a07d337406a3cdbe821" + integrity sha512-sdeUoAawceQdgIfTI+sdcwkiK2KU+2cbEYA0agzM2uqaUy2UpnnGHtWTHVEtS0ES4zHU0eMFRGN+oQgDxlD66A== + dependencies: + vscode-jsonrpc "6.0.0" + vscode-languageserver-types "3.16.0" + +vscode-languageserver-textdocument@^1.0.1: + version "1.0.5" + resolved "https://registry.yarnpkg.com/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.5.tgz#838769940ece626176ec5d5a2aa2d0aa69f5095c" + integrity sha512-1ah7zyQjKBudnMiHbZmxz5bYNM9KKZYz+5VQLj+yr8l+9w3g+WAhCkUkWbhMEdC5u0ub4Ndiye/fDyS8ghIKQg== + +vscode-languageserver-types@3.16.0: + version "3.16.0" + resolved "https://registry.yarnpkg.com/vscode-languageserver-types/-/vscode-languageserver-types-3.16.0.tgz#ecf393fc121ec6974b2da3efb3155644c514e247" + integrity sha512-k8luDIWJWyenLc5ToFQQMaSrqCHiLwyKPHKPQZ5zz21vM+vIVUSvsRpcbiECH4WR88K2XZqc4ScRcZ7nk/jbeA== + +vscode-languageserver@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/vscode-languageserver/-/vscode-languageserver-7.0.0.tgz#49b068c87cfcca93a356969d20f5d9bdd501c6b0" + integrity sha512-60HTx5ID+fLRcgdHfmz0LDZAXYEV68fzwG0JWwEPBode9NuMYTIxuYXPg4ngO8i8+Ou0lM7y6GzaYWbiDL0drw== + dependencies: + vscode-languageserver-protocol "3.16.0" + +vscode-uri@^3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-3.0.3.tgz#a95c1ce2e6f41b7549f86279d19f47951e4f4d84" + integrity sha512-EcswR2S8bpR7fD0YPeS7r2xXExrScVMxg4MedACaWHEtx9ftCF/qHG1xGkolzTPcEmjTavCQgbVzHUIdTMzFGA== + +vue-bundle-renderer@^0.3.9: + version "0.3.9" + resolved "https://registry.yarnpkg.com/vue-bundle-renderer/-/vue-bundle-renderer-0.3.9.tgz#56e3b0ba7493e1a40a9e33ef236d37e60795493a" + integrity sha512-jhkyS2Zaey9OAp2xVyGnN0//lLfNtT2elFq1NevaY4JwQEw27DFS970rQbNYPds2WXeq2H/O2HM+qCPcsimJGg== + dependencies: + bundle-runner "^0.0.1" + +vue-router@^4.1.2: + version "4.1.3" + resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-4.1.3.tgz#f8dc7931a2253cc5aa9b740f8b98969d08ca283c" + integrity sha512-XvK81bcYglKiayT7/vYAg/f36ExPC4t90R/HIpzrZ5x+17BOWptXLCrEPufGgZeuq68ww4ekSIMBZY1qdUdfjA== + dependencies: + "@vue/devtools-api" "^6.1.4" + +vue@^3.2.37: + version "3.2.37" + resolved "https://registry.yarnpkg.com/vue/-/vue-3.2.37.tgz#da220ccb618d78579d25b06c7c21498ca4e5452e" + integrity sha512-bOKEZxrm8Eh+fveCqS1/NkG/n6aMidsI6hahas7pa0w/l7jkbssJVsRhVDs07IdDq7h9KHswZOgItnwJAgtVtQ== + dependencies: + "@vue/compiler-dom" "3.2.37" + "@vue/compiler-sfc" "3.2.37" + "@vue/runtime-dom" "3.2.37" + "@vue/server-renderer" "3.2.37" + "@vue/shared" "3.2.37" + +wcwidth@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" + integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== + dependencies: + defaults "^1.0.3" + +web-namespaces@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/web-namespaces/-/web-namespaces-2.0.1.tgz#1010ff7c650eccb2592cebeeaf9a1b253fd40692" + integrity sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ== + +web-streams-polyfill@^3.0.3: + version "3.2.1" + resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz#71c2718c52b45fd49dbeee88634b3a60ceab42a6" + integrity sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q== + +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" + integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== + +webpack-sources@^3.2.3: + version "3.2.3" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde" + integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== + +webpack-virtual-modules@^0.4.3, webpack-virtual-modules@^0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/webpack-virtual-modules/-/webpack-virtual-modules-0.4.4.tgz#a19fcf371923c59c4712d63d7d194b1e4d8262cc" + integrity sha512-h9atBP/bsZohWpHnr+2sic8Iecb60GxftXsWNLLLSqewgIsGzByd2gcIID4nXcG+3tNe4GQG3dLcff3kXupdRA== + +whatwg-url@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" + integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== + dependencies: + tr46 "~0.0.3" + webidl-conversions "^3.0.0" + +which@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" + +wide-align@^1.1.2: + version "1.1.5" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.5.tgz#df1d4c206854369ecf3c9a4898f1b23fbd9d15d3" + integrity sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg== + dependencies: + string-width "^1.0.2 || 2 || 3 || 4" + +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.0.1.tgz#2101e861777fec527d0ea90c57c6b03aac56a5b3" + integrity sha512-QFF+ufAqhoYHvoHdajT/Po7KoXVBPXS2bgjIam5isfWJPfIOnQZ50JtUiVvCv/sjgacf3yRrt2ZKUZ/V4itN4g== + dependencies: + ansi-styles "^6.1.0" + string-width "^5.0.1" + strip-ansi "^7.0.1" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== + +ws@^8.8.1: + version "8.8.1" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.8.1.tgz#5dbad0feb7ade8ecc99b830c1d77c913d4955ff0" + integrity sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA== + +xtend@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" + integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== + +xxhashjs@~0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/xxhashjs/-/xxhashjs-0.2.2.tgz#8a6251567621a1c46a5ae204da0249c7f8caa9d8" + integrity sha512-AkTuIuVTET12tpsVIQo+ZU6f/qDmKuRUcjaqR+OIvm+aCBsZ95i7UVY5WJ9TMsSaZ0DA2WxoZ4acu0sPH+OKAw== + dependencies: + cuint "^0.2.2" + +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" + integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== + +yallist@^3.0.0, yallist@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== + +yallist@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" + integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== + +yaml@^1.10.0, yaml@^1.10.2: + version "1.10.2" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" + integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== + +yargs-parser@^21.0.0: + version "21.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" + integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== + +yargs@^17.2.1, yargs@^17.5.1: + version "17.5.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.5.1.tgz#e109900cab6fcb7fd44b1d8249166feb0b36e58e" + integrity sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA== + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.0.0" + +ylru@^1.2.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/ylru/-/ylru-1.3.2.tgz#0de48017473275a4cbdfc83a1eaf67c01af8a785" + integrity sha512-RXRJzMiK6U2ye0BlGGZnmpwJDPgakn6aNQ0A7gHRbD4I0uvK4TW6UqkK1V0pp9jskjJBAXd3dRrbzWkqJ+6cxA== + +zip-stream@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/zip-stream/-/zip-stream-4.1.0.tgz#51dd326571544e36aa3f756430b313576dc8fc79" + integrity sha512-zshzwQW7gG7hjpBlgeQP9RuyPGNxvJdzR8SUM3QhxCnLjWN2E7j3dOvpeDcQoETfHx0urRS7EtmVToql7YpU4A== + dependencies: + archiver-utils "^2.1.0" + compress-commons "^4.1.0" + readable-stream "^3.6.0" + +zwitch@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/zwitch/-/zwitch-2.0.2.tgz#91f8d0e901ffa3d66599756dde7f57b17c95dce1" + integrity sha512-JZxotl7SxAJH0j7dN4pxsTV6ZLXoLdGME+PsjkL/DaBrVryK9kTGq06GfKrwcSOqypP+fdXGoCHE36b99fWVoA== diff --git a/index.html b/index.html new file mode 100644 index 00000000..99d5dad3 --- /dev/null +++ b/index.html @@ -0,0 +1,232 @@ + + + + + + Amplitude Vite + + + + + + +

Playback Speed Elements

+ +

Global

+ + + + + + + + diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 00000000..2655ba6a --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["src/*"] + } + } +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 2754a488..d1630500 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,25156 +1,1093 @@ { "name": "amplitudejs", - "version": "5.3.2", + "version": "6.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "amplitudejs", - "version": "5.3.0", + "version": "6.0.0", "license": "MIT", "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" + "vite": "^3.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/amplitudejs" } }, - "node_modules/@babel/code-frame": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", - "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", + "node_modules/acorn": { + "version": "8.7.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz", + "integrity": "sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==", "dev": true, - "dependencies": { - "@babel/highlight": "^7.0.0" + "optional": true, + "peer": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" } }, - "node_modules/@babel/highlight": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", - "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true, - "dependencies": { - "chalk": "^2.0.0", - "esutils": "^2.0.2", - "js-tokens": "^4.0.0" - } + "optional": true, + "peer": true }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } + "optional": true, + "peer": true }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", + "node_modules/esbuild": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.49.tgz", + "integrity": "sha512-/TlVHhOaq7Yz8N1OJrjqM3Auzo5wjvHFLk+T8pIue+fhnhIMpfAzsG6PLVMbFveVxqD2WOp3QHei+52IMUNmCw==", "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" }, + "optionalDependencies": { + "esbuild-android-64": "0.14.49", + "esbuild-android-arm64": "0.14.49", + "esbuild-darwin-64": "0.14.49", + "esbuild-darwin-arm64": "0.14.49", + "esbuild-freebsd-64": "0.14.49", + "esbuild-freebsd-arm64": "0.14.49", + "esbuild-linux-32": "0.14.49", + "esbuild-linux-64": "0.14.49", + "esbuild-linux-arm": "0.14.49", + "esbuild-linux-arm64": "0.14.49", + "esbuild-linux-mips64le": "0.14.49", + "esbuild-linux-ppc64le": "0.14.49", + "esbuild-linux-riscv64": "0.14.49", + "esbuild-linux-s390x": "0.14.49", + "esbuild-netbsd-64": "0.14.49", + "esbuild-openbsd-64": "0.14.49", + "esbuild-sunos-64": "0.14.49", + "esbuild-windows-32": "0.14.49", + "esbuild-windows-64": "0.14.49", + "esbuild-windows-arm64": "0.14.49" + } + }, + "node_modules/esbuild-android-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.14.49.tgz", + "integrity": "sha512-vYsdOTD+yi+kquhBiFWl3tyxnj2qZJsl4tAqwhT90ktUdnyTizgle7TjNx6Ar1bN7wcwWqZ9QInfdk2WVagSww==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">=4" + "node": ">=12" } }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "node_modules/esbuild-android-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.49.tgz", + "integrity": "sha512-g2HGr/hjOXCgSsvQZ1nK4nW/ei8JUx04Li74qub9qWrStlysaVmadRyTVuW32FGIpLQyc5sUjjZopj49eGGM2g==", + "cpu": [ + "arm64" + ], "dev": true, + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">=4" + "node": ">=12" } }, - "node_modules/@babel/highlight/node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "node_modules/esbuild-darwin-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.49.tgz", + "integrity": "sha512-3rvqnBCtX9ywso5fCHixt2GBCUsogNp9DjGmvbBohh31Ces34BVzFltMSxJpacNki96+WIcX5s/vum+ckXiLYg==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": ">=4" + "node": ">=12" } }, - "node_modules/abab": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.0.tgz", - "integrity": "sha512-sY5AXXVZv4Y1VACTtR11UJCPHHudgY5i26Qj5TypE6DKlIApbwb5uqhXcJ5UUGbvZNRh7EeIoW+LrJumBsKp7w==", - "dev": true - }, - "node_modules/acorn": { - "version": "5.7.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", - "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", + "node_modules/esbuild-darwin-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.49.tgz", + "integrity": "sha512-XMaqDxO846srnGlUSJnwbijV29MTKUATmOLyQSfswbK/2X5Uv28M9tTLUJcKKxzoo9lnkYPsx2o8EJcTYwCs/A==", + "cpu": [ + "arm64" + ], "dev": true, - "bin": { - "acorn": "bin/acorn" - }, + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": ">=0.4.0" + "node": ">=12" } }, - "node_modules/acorn-dynamic-import": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz", - "integrity": "sha1-x1K9IQvvZ5UBtsbLf8hPj0cVjMQ=", + "node_modules/esbuild-freebsd-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.49.tgz", + "integrity": "sha512-NJ5Q6AjV879mOHFri+5lZLTp5XsO2hQ+KSJYLbfY9DgCu8s6/Zl2prWXVANYTeCDLlrIlNNYw8y34xqyLDKOmQ==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "acorn": "^4.0.3" + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" } }, - "node_modules/acorn-dynamic-import/node_modules/acorn": { - "version": "4.0.13", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", - "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", + "node_modules/esbuild-freebsd-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.49.tgz", + "integrity": "sha512-lFLtgXnAc3eXYqj5koPlBZvEbBSOSUbWO3gyY/0+4lBdRqELyz4bAuamHvmvHW5swJYL7kngzIZw6kdu25KGOA==", + "cpu": [ + "arm64" + ], "dev": true, - "bin": { - "acorn": "bin/acorn" - }, + "optional": true, + "os": [ + "freebsd" + ], "engines": { - "node": ">=0.4.0" + "node": ">=12" } }, - "node_modules/acorn-globals": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.0.tgz", - "integrity": "sha512-hMtHj3s5RnuhvHPowpBYvJVj3rAar82JiDQHvGs1zO0l10ocX/xEdBShNHTJaboucJUsScghp74pH3s7EnHHQw==", + "node_modules/esbuild-linux-32": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.49.tgz", + "integrity": "sha512-zTTH4gr2Kb8u4QcOpTDVn7Z8q7QEIvFl/+vHrI3cF6XOJS7iEI1FWslTo3uofB2+mn6sIJEQD9PrNZKoAAMDiA==", + "cpu": [ + "ia32" + ], "dev": true, - "dependencies": { - "acorn": "^6.0.1", - "acorn-walk": "^6.0.1" + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" } }, - "node_modules/acorn-globals/node_modules/acorn": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.0.4.tgz", - "integrity": "sha512-VY4i5EKSKkofY2I+6QLTbTTN/UvEQPCo6eiwzzSaSWfpaDhOmStMCMod6wmuPciNq+XS0faCglFu2lHZpdHUtg==", + "node_modules/esbuild-linux-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.49.tgz", + "integrity": "sha512-hYmzRIDzFfLrB5c1SknkxzM8LdEUOusp6M2TnuQZJLRtxTgyPnZZVtyMeCLki0wKgYPXkFsAVhi8vzo2mBNeTg==", + "cpu": [ + "x64" + ], "dev": true, - "bin": { - "acorn": "bin/acorn" - }, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=0.4.0" + "node": ">=12" } }, - "node_modules/acorn-walk": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-6.1.1.tgz", - "integrity": "sha512-OtUw6JUTgxA2QoqqmrmQ7F2NYqiBPi/L2jqHyFtllhOUvXYQXf0Z1CYUinIfyT4bTCGmrA7gX9FvHA81uzCoVw==", + "node_modules/esbuild-linux-arm": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.49.tgz", + "integrity": "sha512-iE3e+ZVv1Qz1Sy0gifIsarJMQ89Rpm9mtLSRtG3AH0FPgAzQ5Z5oU6vYzhc/3gSPi2UxdCOfRhw2onXuFw/0lg==", + "cpu": [ + "arm" + ], "dev": true, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=0.4.0" + "node": ">=12" } }, - "node_modules/ajv": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", - "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", + "node_modules/esbuild-linux-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.49.tgz", + "integrity": "sha512-KLQ+WpeuY+7bxukxLz5VgkAAVQxUv67Ft4DmHIPIW+2w3ObBPQhqNoeQUHxopoW/aiOn3m99NSmSV+bs4BSsdA==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "co": "^4.6.0", - "json-stable-stringify": "^1.0.1" + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" } }, - "node_modules/ajv-keywords": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-1.5.1.tgz", - "integrity": "sha1-MU3QpLM2j609/NxU7eYXG4htrzw=", - "dev": true - }, - "node_modules/align-text": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", - "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", + "node_modules/esbuild-linux-mips64le": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.49.tgz", + "integrity": "sha512-n+rGODfm8RSum5pFIqFQVQpYBw+AztL8s6o9kfx7tjfK0yIGF6tm5HlG6aRjodiiKkH2xAiIM+U4xtQVZYU4rA==", + "cpu": [ + "mips64el" + ], "dev": true, - "dependencies": { - "kind-of": "^3.0.2", - "longest": "^1.0.1", - "repeat-string": "^1.5.2" - }, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=0.10.0" + "node": ">=12" } }, - "node_modules/ansi-escapes": { - "version": "3.1.0", - "resolved": "http://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.1.0.tgz", - "integrity": "sha512-UgAb8H9D41AQnu/PbWlCofQVcnV4Gs2bBJi9eZPxfU/hgglFh3SMDMENRIqdr7H6XFnXdoknctFByVsCOotTVw==", + "node_modules/esbuild-linux-ppc64le": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.49.tgz", + "integrity": "sha512-WP9zR4HX6iCBmMFH+XHHng2LmdoIeUmBpL4aL2TR8ruzXyT4dWrJ5BSbT8iNo6THN8lod6GOmYDLq/dgZLalGw==", + "cpu": [ + "ppc64" + ], "dev": true, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=4" + "node": ">=12" } }, - "node_modules/ansi-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.0.0.tgz", - "integrity": "sha1-xQYbbg74qBd15Q9dZhUb9r83EQc=", + "node_modules/esbuild-linux-riscv64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.49.tgz", + "integrity": "sha512-h66ORBz+Dg+1KgLvzTVQEA1LX4XBd1SK0Fgbhhw4akpG/YkN8pS6OzYI/7SGENiN6ao5hETRDSkVcvU9NRtkMQ==", + "cpu": [ + "riscv64" + ], "dev": true, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=0.10.0" + "node": ">=12" } }, - "node_modules/ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "node_modules/esbuild-linux-s390x": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.49.tgz", + "integrity": "sha512-DhrUoFVWD+XmKO1y7e4kNCqQHPs6twz6VV6Uezl/XHYGzM60rBewBF5jlZjG0nCk5W/Xy6y1xWeopkrhFFM0sQ==", + "cpu": [ + "s390x" + ], "dev": true, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=0.10.0" + "node": ">=12" } }, - "node_modules/anymatch": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "node_modules/esbuild-netbsd-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.49.tgz", + "integrity": "sha512-BXaUwFOfCy2T+hABtiPUIpWjAeWK9P8O41gR4Pg73hpzoygVGnj0nI3YK4SJhe52ELgtdgWP/ckIkbn2XaTxjQ==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "micromatch": "^3.1.4", - "normalize-path": "^2.1.1" + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" } }, - "node_modules/anymatch/node_modules/arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "node_modules/esbuild-openbsd-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.49.tgz", + "integrity": "sha512-lP06UQeLDGmVPw9Rg437Btu6J9/BmyhdoefnQ4gDEJTtJvKtQaUcOQrhjTq455ouZN4EHFH1h28WOJVANK41kA==", + "cpu": [ + "x64" + ], "dev": true, + "optional": true, + "os": [ + "openbsd" + ], "engines": { - "node": ">=0.10.0" + "node": ">=12" } }, - "node_modules/anymatch/node_modules/arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "node_modules/esbuild-sunos-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.49.tgz", + "integrity": "sha512-4c8Zowp+V3zIWje329BeLbGh6XI9c/rqARNaj5yPHdC61pHI9UNdDxT3rePPJeWcEZVKjkiAS6AP6kiITp7FSw==", + "cpu": [ + "x64" + ], "dev": true, + "optional": true, + "os": [ + "sunos" + ], "engines": { - "node": ">=0.10.0" + "node": ">=12" } }, - "node_modules/anymatch/node_modules/array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "node_modules/esbuild-windows-32": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.49.tgz", + "integrity": "sha512-q7Rb+J9yHTeKr9QTPDYkqfkEj8/kcKz9lOabDuvEXpXuIcosWCJgo5Z7h/L4r7rbtTH4a8U2FGKb6s1eeOHmJA==", + "cpu": [ + "ia32" + ], "dev": true, + "optional": true, + "os": [ + "win32" + ], "engines": { - "node": ">=0.10.0" + "node": ">=12" } }, - "node_modules/anymatch/node_modules/braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "node_modules/esbuild-windows-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.49.tgz", + "integrity": "sha512-+Cme7Ongv0UIUTniPqfTX6mJ8Deo7VXw9xN0yJEN1lQMHDppTNmKwAM3oGbD/Vqff+07K2gN0WfNkMohmG+dVw==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, + "optional": true, + "os": [ + "win32" + ], "engines": { - "node": ">=0.10.0" + "node": ">=12" } }, - "node_modules/anymatch/node_modules/braces/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "node_modules/esbuild-windows-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.49.tgz", + "integrity": "sha512-v+HYNAXzuANrCbbLFJ5nmO3m5y2PGZWLe3uloAkLt87aXiO2mZr3BTmacZdjwNkNEHuH3bNtN8cak+mzVjVPfA==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, + "optional": true, + "os": [ + "win32" + ], "engines": { - "node": ">=0.10.0" + "node": ">=12" } }, - "node_modules/anymatch/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "dev": true, - "dependencies": { - "ms": "2.0.0" + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/anymatch/node_modules/expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "dev": true, "dependencies": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" + "function-bind": "^1.1.1" }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4.0" } }, - "node_modules/anymatch/node_modules/expand-brackets/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "node_modules/is-core-module": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", + "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", "dev": true, "dependencies": { - "is-descriptor": "^0.1.0" + "has": "^1.0.3" }, - "engines": { - "node": ">=0.10.0" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/anymatch/node_modules/expand-brackets/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "node_modules/lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" + "optional": true, + "peer": true + }, + "node_modules/nanoid": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", + "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", + "dev": true, + "bin": { + "nanoid": "bin/nanoid.cjs" }, "engines": { - "node": ">=0.10.0" + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, - "node_modules/anymatch/node_modules/expand-brackets/node_modules/is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/postcss": { + "version": "8.4.14", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.14.tgz", + "integrity": "sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==", "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + } + ], "dependencies": { - "kind-of": "^3.0.2" + "nanoid": "^3.3.4", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" }, "engines": { - "node": ">=0.10.0" + "node": "^10 || ^12 || >=14" } }, - "node_modules/anymatch/node_modules/expand-brackets/node_modules/is-accessor-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, + "optional": true, + "peer": true, "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, - "node_modules/anymatch/node_modules/expand-brackets/node_modules/is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "node_modules/resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", "dev": true, "dependencies": { - "kind-of": "^3.0.2" + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" }, - "engines": { - "node": ">=0.10.0" + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/anymatch/node_modules/expand-brackets/node_modules/is-data-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "node_modules/rollup": { + "version": "2.77.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.77.0.tgz", + "integrity": "sha512-vL8xjY4yOQEw79DvyXLijhnhh+R/O9zpF/LEgkCebZFtb6ELeN9H3/2T0r8+mp+fFTBHZ5qGpOpW2ela2zRt3g==", "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" + "bin": { + "rollup": "dist/bin/rollup" }, "engines": { - "node": ">=0.10.0" + "node": ">=10.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" } }, - "node_modules/anymatch/node_modules/expand-brackets/node_modules/is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "dependencies": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, + "optional": true, + "peer": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/anymatch/node_modules/expand-brackets/node_modules/kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/anymatch/node_modules/extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, + "optional": true, + "peer": true, "dependencies": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" } }, - "node_modules/anymatch/node_modules/extglob/node_modules/define-property": { + "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, - "dependencies": { - "is-descriptor": "^1.0.0" - }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/anymatch/node_modules/extglob/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "node_modules/terser": { + "version": "5.13.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.13.1.tgz", + "integrity": "sha512-hn4WKOfwnwbYfe48NgrQjqNOH9jzLqRcIfbYytOXCOv46LBfWr9bDS17MQqOi+BWGD0sJK3Sj5NC/gJjiojaoA==", "dev": true, + "optional": true, + "peer": true, "dependencies": { - "is-extendable": "^0.1.0" + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map": "~0.8.0-beta.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" }, "engines": { - "node": ">=0.10.0" + "node": ">=10" } }, - "node_modules/anymatch/node_modules/fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "node_modules/terser/node_modules/source-map": { + "version": "0.8.0-beta.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", + "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", "dev": true, + "optional": true, + "peer": true, "dependencies": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" + "whatwg-url": "^7.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">= 8" } }, - "node_modules/anymatch/node_modules/fill-range/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "node_modules/tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", "dev": true, + "optional": true, + "peer": true, "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" + "punycode": "^2.1.0" } }, - "node_modules/anymatch/node_modules/is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "node_modules/vite": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/vite/-/vite-3.0.2.tgz", + "integrity": "sha512-TAqydxW/w0U5AoL5AsD9DApTvGb2iNbGs3sN4u2VdT1GFkQVUfgUldt+t08TZgi23uIauh1TUOQJALduo9GXqw==", "dev": true, "dependencies": { - "kind-of": "^6.0.0" + "esbuild": "^0.14.47", + "postcss": "^8.4.14", + "resolve": "^1.22.1", + "rollup": "^2.75.6" }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/anymatch/node_modules/is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "node_modules/anymatch/node_modules/is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" + "bin": { + "vite": "bin/vite.js" }, "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/anymatch/node_modules/is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" + "node": "^14.18.0 || >=16.0.0" }, - "engines": { - "node": ">=0.10.0" + "optionalDependencies": { + "fsevents": "~2.3.2" + }, + "peerDependencies": { + "less": "*", + "sass": "*", + "stylus": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "terser": { + "optional": true + } } }, - "node_modules/anymatch/node_modules/is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "node_modules/webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } + "optional": true, + "peer": true }, - "node_modules/anymatch/node_modules/is-number/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "node_modules/whatwg-url": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", + "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", "dev": true, + "optional": true, + "peer": true, "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" } - }, - "node_modules/anymatch/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + } + }, + "dependencies": { + "acorn": { + "version": "8.7.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz", + "integrity": "sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==", "dev": true, - "engines": { - "node": ">=0.10.0" - } + "optional": true, + "peer": true }, - "node_modules/anymatch/node_modules/kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true, - "engines": { - "node": ">=0.10.0" - } + "optional": true, + "peer": true }, - "node_modules/anymatch/node_modules/micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", "dev": true, - "dependencies": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/anymatch/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true + "optional": true, + "peer": true }, - "node_modules/anymatch/node_modules/normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "esbuild": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.49.tgz", + "integrity": "sha512-/TlVHhOaq7Yz8N1OJrjqM3Auzo5wjvHFLk+T8pIue+fhnhIMpfAzsG6PLVMbFveVxqD2WOp3QHei+52IMUNmCw==", "dev": true, - "dependencies": { - "remove-trailing-separator": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" + "requires": { + "esbuild-android-64": "0.14.49", + "esbuild-android-arm64": "0.14.49", + "esbuild-darwin-64": "0.14.49", + "esbuild-darwin-arm64": "0.14.49", + "esbuild-freebsd-64": "0.14.49", + "esbuild-freebsd-arm64": "0.14.49", + "esbuild-linux-32": "0.14.49", + "esbuild-linux-64": "0.14.49", + "esbuild-linux-arm": "0.14.49", + "esbuild-linux-arm64": "0.14.49", + "esbuild-linux-mips64le": "0.14.49", + "esbuild-linux-ppc64le": "0.14.49", + "esbuild-linux-riscv64": "0.14.49", + "esbuild-linux-s390x": "0.14.49", + "esbuild-netbsd-64": "0.14.49", + "esbuild-openbsd-64": "0.14.49", + "esbuild-sunos-64": "0.14.49", + "esbuild-windows-32": "0.14.49", + "esbuild-windows-64": "0.14.49", + "esbuild-windows-arm64": "0.14.49" } }, - "node_modules/append-transform": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-0.4.0.tgz", - "integrity": "sha1-126/jKlNJ24keja61EpLdKthGZE=", + "esbuild-android-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.14.49.tgz", + "integrity": "sha512-vYsdOTD+yi+kquhBiFWl3tyxnj2qZJsl4tAqwhT90ktUdnyTizgle7TjNx6Ar1bN7wcwWqZ9QInfdk2WVagSww==", "dev": true, - "dependencies": { - "default-require-extensions": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } + "optional": true }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "esbuild-android-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.49.tgz", + "integrity": "sha512-g2HGr/hjOXCgSsvQZ1nK4nW/ei8JUx04Li74qub9qWrStlysaVmadRyTVuW32FGIpLQyc5sUjjZopj49eGGM2g==", "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } + "optional": true }, - "node_modules/arr-diff": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", - "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", + "esbuild-darwin-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.49.tgz", + "integrity": "sha512-3rvqnBCtX9ywso5fCHixt2GBCUsogNp9DjGmvbBohh31Ces34BVzFltMSxJpacNki96+WIcX5s/vum+ckXiLYg==", "dev": true, - "dependencies": { - "arr-flatten": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } + "optional": true }, - "node_modules/arr-flatten": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.0.1.tgz", - "integrity": "sha1-5f/lTUXhnzLyFukeuZyM6JK7YEs=", + "esbuild-darwin-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.49.tgz", + "integrity": "sha512-XMaqDxO846srnGlUSJnwbijV29MTKUATmOLyQSfswbK/2X5Uv28M9tTLUJcKKxzoo9lnkYPsx2o8EJcTYwCs/A==", "dev": true, - "engines": { - "node": ">=0.10.0" - } + "optional": true }, - "node_modules/arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "esbuild-freebsd-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.49.tgz", + "integrity": "sha512-NJ5Q6AjV879mOHFri+5lZLTp5XsO2hQ+KSJYLbfY9DgCu8s6/Zl2prWXVANYTeCDLlrIlNNYw8y34xqyLDKOmQ==", "dev": true, - "engines": { - "node": ">=0.10.0" - } + "optional": true }, - "node_modules/array-differ": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-2.1.0.tgz", - "integrity": "sha512-KbUpJgx909ZscOc/7CLATBFam7P1Z1QRQInvgT0UztM9Q72aGKCunKASAl7WNW0tnPmPyEMeMhdsfWhfmW037w==", + "esbuild-freebsd-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.49.tgz", + "integrity": "sha512-lFLtgXnAc3eXYqj5koPlBZvEbBSOSUbWO3gyY/0+4lBdRqELyz4bAuamHvmvHW5swJYL7kngzIZw6kdu25KGOA==", "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/array-equal": { - "version": "1.0.0", - "resolved": "http://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz", - "integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=", - "dev": true + "optional": true }, - "node_modules/array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "esbuild-linux-32": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.49.tgz", + "integrity": "sha512-zTTH4gr2Kb8u4QcOpTDVn7Z8q7QEIvFl/+vHrI3cF6XOJS7iEI1FWslTo3uofB2+mn6sIJEQD9PrNZKoAAMDiA==", "dev": true, - "dependencies": { - "array-uniq": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } + "optional": true }, - "node_modules/array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", + "esbuild-linux-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.49.tgz", + "integrity": "sha512-hYmzRIDzFfLrB5c1SknkxzM8LdEUOusp6M2TnuQZJLRtxTgyPnZZVtyMeCLki0wKgYPXkFsAVhi8vzo2mBNeTg==", "dev": true, - "engines": { - "node": ">=0.10.0" - } + "optional": true }, - "node_modules/array-unique": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", - "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", + "esbuild-linux-arm": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.49.tgz", + "integrity": "sha512-iE3e+ZVv1Qz1Sy0gifIsarJMQ89Rpm9mtLSRtG3AH0FPgAzQ5Z5oU6vYzhc/3gSPi2UxdCOfRhw2onXuFw/0lg==", "dev": true, - "engines": { - "node": ">=0.10.0" - } + "optional": true }, - "node_modules/arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "esbuild-linux-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.49.tgz", + "integrity": "sha512-KLQ+WpeuY+7bxukxLz5VgkAAVQxUv67Ft4DmHIPIW+2w3ObBPQhqNoeQUHxopoW/aiOn3m99NSmSV+bs4BSsdA==", "dev": true, - "engines": { - "node": ">=0.10.0" - } + "optional": true }, - "node_modules/asn1": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "esbuild-linux-mips64le": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.49.tgz", + "integrity": "sha512-n+rGODfm8RSum5pFIqFQVQpYBw+AztL8s6o9kfx7tjfK0yIGF6tm5HlG6aRjodiiKkH2xAiIM+U4xtQVZYU4rA==", "dev": true, - "dependencies": { - "safer-buffer": "~2.1.0" - } + "optional": true }, - "node_modules/asn1.js": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", - "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", + "esbuild-linux-ppc64le": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.49.tgz", + "integrity": "sha512-WP9zR4HX6iCBmMFH+XHHng2LmdoIeUmBpL4aL2TR8ruzXyT4dWrJ5BSbT8iNo6THN8lod6GOmYDLq/dgZLalGw==", "dev": true, - "dependencies": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } + "optional": true }, - "node_modules/assert": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", - "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", + "esbuild-linux-riscv64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.49.tgz", + "integrity": "sha512-h66ORBz+Dg+1KgLvzTVQEA1LX4XBd1SK0Fgbhhw4akpG/YkN8pS6OzYI/7SGENiN6ao5hETRDSkVcvU9NRtkMQ==", "dev": true, - "dependencies": { - "object-assign": "^4.1.1", - "util": "0.10.3" - } + "optional": true }, - "node_modules/assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "esbuild-linux-s390x": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.49.tgz", + "integrity": "sha512-DhrUoFVWD+XmKO1y7e4kNCqQHPs6twz6VV6Uezl/XHYGzM60rBewBF5jlZjG0nCk5W/Xy6y1xWeopkrhFFM0sQ==", "dev": true, - "engines": { - "node": ">=0.8" - } + "optional": true }, - "node_modules/assert/node_modules/inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", - "dev": true + "esbuild-netbsd-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.49.tgz", + "integrity": "sha512-BXaUwFOfCy2T+hABtiPUIpWjAeWK9P8O41gR4Pg73hpzoygVGnj0nI3YK4SJhe52ELgtdgWP/ckIkbn2XaTxjQ==", + "dev": true, + "optional": true }, - "node_modules/assert/node_modules/util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "esbuild-openbsd-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.49.tgz", + "integrity": "sha512-lP06UQeLDGmVPw9Rg437Btu6J9/BmyhdoefnQ4gDEJTtJvKtQaUcOQrhjTq455ouZN4EHFH1h28WOJVANK41kA==", "dev": true, - "dependencies": { - "inherits": "2.0.1" - } + "optional": true }, - "node_modules/assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", + "esbuild-sunos-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.49.tgz", + "integrity": "sha512-4c8Zowp+V3zIWje329BeLbGh6XI9c/rqARNaj5yPHdC61pHI9UNdDxT3rePPJeWcEZVKjkiAS6AP6kiITp7FSw==", "dev": true, - "engines": { - "node": ">=0.10.0" - } + "optional": true }, - "node_modules/astral-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", - "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", + "esbuild-windows-32": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.49.tgz", + "integrity": "sha512-q7Rb+J9yHTeKr9QTPDYkqfkEj8/kcKz9lOabDuvEXpXuIcosWCJgo5Z7h/L4r7rbtTH4a8U2FGKb6s1eeOHmJA==", "dev": true, - "engines": { - "node": ">=4" - } + "optional": true }, - "node_modules/async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", - "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", + "esbuild-windows-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.49.tgz", + "integrity": "sha512-+Cme7Ongv0UIUTniPqfTX6mJ8Deo7VXw9xN0yJEN1lQMHDppTNmKwAM3oGbD/Vqff+07K2gN0WfNkMohmG+dVw==", "dev": true, - "dependencies": { - "lodash": "^4.17.10" - } + "optional": true }, - "node_modules/async-each": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz", - "integrity": "sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==", - "dev": true + "esbuild-windows-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.49.tgz", + "integrity": "sha512-v+HYNAXzuANrCbbLFJ5nmO3m5y2PGZWLe3uloAkLt87aXiO2mZr3BTmacZdjwNkNEHuH3bNtN8cak+mzVjVPfA==", + "dev": true, + "optional": true }, - "node_modules/async-limiter": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", - "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==", - "dev": true + "fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "optional": true }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, - "node_modules/atob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "dev": true, - "bin": { - "atob": "bin/atob.js" - }, - "engines": { - "node": ">= 4.5.0" + "requires": { + "function-bind": "^1.1.1" } }, - "node_modules/aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "is-core-module": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", + "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", "dev": true, - "engines": { - "node": "*" + "requires": { + "has": "^1.0.3" } }, - "node_modules/aws4": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", - "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", - "dev": true - }, - "node_modules/babel-code-frame": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", - "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", "dev": true, - "dependencies": { - "chalk": "^1.1.3", - "esutils": "^2.0.2", - "js-tokens": "^3.0.2" - } + "optional": true, + "peer": true }, - "node_modules/babel-code-frame/node_modules/js-tokens": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "nanoid": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", + "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", "dev": true }, - "node_modules/babel-core": { - "version": "6.26.3", - "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", - "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", - "dev": true, - "dependencies": { - "babel-code-frame": "^6.26.0", - "babel-generator": "^6.26.0", - "babel-helpers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-register": "^6.26.0", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "convert-source-map": "^1.5.1", - "debug": "^2.6.9", - "json5": "^0.5.1", - "lodash": "^4.17.4", - "minimatch": "^3.0.4", - "path-is-absolute": "^1.0.1", - "private": "^0.1.8", - "slash": "^1.0.0", - "source-map": "^0.5.7" - } + "path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true }, - "node_modules/babel-core/node_modules/babel-generator": { - "version": "6.26.1", - "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", - "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "postcss": { + "version": "8.4.14", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.14.tgz", + "integrity": "sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==", "dev": true, - "dependencies": { - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "detect-indent": "^4.0.0", - "jsesc": "^1.3.0", - "lodash": "^4.17.4", - "source-map": "^0.5.7", - "trim-right": "^1.0.1" + "requires": { + "nanoid": "^3.3.4", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" } }, - "node_modules/babel-core/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } + "optional": true, + "peer": true }, - "node_modules/babel-core/node_modules/babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", + "resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", "dev": true, - "bin": { - "babylon": "bin/babylon.js" + "requires": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" } }, - "node_modules/babel-core/node_modules/convert-source-map": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", - "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", + "rollup": { + "version": "2.77.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.77.0.tgz", + "integrity": "sha512-vL8xjY4yOQEw79DvyXLijhnhh+R/O9zpF/LEgkCebZFtb6ELeN9H3/2T0r8+mp+fFTBHZ5qGpOpW2ela2zRt3g==", "dev": true, - "dependencies": { - "safe-buffer": "~5.1.1" + "requires": { + "fsevents": "~2.3.2" } }, - "node_modules/babel-core/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "dependencies": { - "ms": "2.0.0" - } + "optional": true, + "peer": true }, - "node_modules/babel-core/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", "dev": true }, - "node_modules/babel-core/node_modules/private": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", - "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, - "engines": { - "node": ">= 0.6" + "optional": true, + "peer": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" } }, - "node_modules/babel-core/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-core/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true }, - "node_modules/babel-core/node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "terser": { + "version": "5.13.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.13.1.tgz", + "integrity": "sha512-hn4WKOfwnwbYfe48NgrQjqNOH9jzLqRcIfbYytOXCOv46LBfWr9bDS17MQqOi+BWGD0sJK3Sj5NC/gJjiojaoA==", "dev": true, - "engines": { - "node": ">=0.10.0" + "optional": true, + "peer": true, + "requires": { + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map": "~0.8.0-beta.0", + "source-map-support": "~0.5.20" + }, + "dependencies": { + "source-map": { + "version": "0.8.0-beta.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", + "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", + "dev": true, + "optional": true, + "peer": true, + "requires": { + "whatwg-url": "^7.0.0" + } + } } }, - "node_modules/babel-generator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.24.1.tgz", - "integrity": "sha1-5xX0hsWN7SVknYiJRNUqoHxdlJc=", + "tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", "dev": true, - "dependencies": { - "babel-messages": "^6.23.0", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1", - "detect-indent": "^4.0.0", - "jsesc": "^1.3.0", - "lodash": "^4.2.0", - "source-map": "^0.5.0", - "trim-right": "^1.0.1" + "optional": true, + "peer": true, + "requires": { + "punycode": "^2.1.0" } }, - "node_modules/babel-generator/node_modules/babel-messages": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0" - } - }, - "node_modules/babel-generator/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-generator/node_modules/babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "node_modules/babel-generator/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-helper-call-delegate": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz", - "integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=", - "dev": true, - "dependencies": { - "babel-helper-hoist-variables": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "node_modules/babel-helper-call-delegate/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-helper-call-delegate/node_modules/babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "dependencies": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-helper-call-delegate/node_modules/babel-traverse/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-helper-call-delegate/node_modules/babel-traverse/node_modules/babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "node_modules/babel-helper-call-delegate/node_modules/babel-traverse/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/babel-helper-call-delegate/node_modules/babel-traverse/node_modules/globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babel-helper-call-delegate/node_modules/babel-traverse/node_modules/invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "dependencies": { - "loose-envify": "^1.0.0" - } - }, - "node_modules/babel-helper-call-delegate/node_modules/babel-traverse/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-helper-call-delegate/node_modules/babel-traverse/node_modules/to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babel-helper-call-delegate/node_modules/babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "node_modules/babel-helper-call-delegate/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-helper-define-map": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz", - "integrity": "sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8=", - "dev": true, - "dependencies": { - "babel-helper-function-name": "^6.24.1", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-helper-define-map/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-helper-define-map/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-helper-function-name": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz", - "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=", - "dev": true, - "dependencies": { - "babel-helper-get-function-arity": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "node_modules/babel-helper-function-name/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-helper-function-name/node_modules/babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-helper-function-name/node_modules/babel-template/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-helper-function-name/node_modules/babel-template/node_modules/babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "node_modules/babel-helper-function-name/node_modules/babel-template/node_modules/babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true, - "bin": { - "babylon": "bin/babylon.js" - } - }, - "node_modules/babel-helper-function-name/node_modules/babel-template/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-helper-function-name/node_modules/babel-template/node_modules/to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babel-helper-function-name/node_modules/babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "dependencies": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-helper-function-name/node_modules/babel-traverse/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-helper-function-name/node_modules/babel-traverse/node_modules/babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "node_modules/babel-helper-function-name/node_modules/babel-traverse/node_modules/babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true, - "bin": { - "babylon": "bin/babylon.js" - } - }, - "node_modules/babel-helper-function-name/node_modules/babel-traverse/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/babel-helper-function-name/node_modules/babel-traverse/node_modules/globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babel-helper-function-name/node_modules/babel-traverse/node_modules/invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "dependencies": { - "loose-envify": "^1.0.0" - } - }, - "node_modules/babel-helper-function-name/node_modules/babel-traverse/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-helper-function-name/node_modules/babel-traverse/node_modules/to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babel-helper-function-name/node_modules/babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "node_modules/babel-helper-function-name/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-helper-get-function-arity": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz", - "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "node_modules/babel-helper-get-function-arity/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-helper-get-function-arity/node_modules/babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "node_modules/babel-helper-get-function-arity/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-helper-hoist-variables": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz", - "integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "node_modules/babel-helper-hoist-variables/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-helper-hoist-variables/node_modules/babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "node_modules/babel-helper-hoist-variables/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-helper-optimise-call-expression": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz", - "integrity": "sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "node_modules/babel-helper-optimise-call-expression/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-helper-optimise-call-expression/node_modules/babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "node_modules/babel-helper-optimise-call-expression/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-helper-regex": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz", - "integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-helper-regex/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-helper-regex/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-helper-replace-supers": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz", - "integrity": "sha1-v22/5Dk40XNpohPKiov3S2qQqxo=", - "dev": true, - "dependencies": { - "babel-helper-optimise-call-expression": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-messages": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-template/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-template/node_modules/babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-template/node_modules/babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true, - "bin": { - "babylon": "bin/babylon.js" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-template/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-template/node_modules/to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "dependencies": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-traverse/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-traverse/node_modules/babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-traverse/node_modules/babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true, - "bin": { - "babylon": "bin/babylon.js" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-traverse/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-traverse/node_modules/globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-traverse/node_modules/invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "dependencies": { - "loose-envify": "^1.0.0" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-traverse/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-traverse/node_modules/to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "node_modules/babel-helper-replace-supers/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-helpers": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", - "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "node_modules/babel-helpers/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-helpers/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-jest": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-23.6.0.tgz", - "integrity": "sha512-lqKGG6LYXYu+DQh/slrQ8nxXQkEkhugdXsU6St7GmhVS7Ilc/22ArwqXNJrf0QaOBjZB0360qZMwXqDYQHXaew==", - "dev": true, - "dependencies": { - "babel-plugin-istanbul": "^4.1.6", - "babel-preset-jest": "^23.2.0" - } - }, - "node_modules/babel-loader": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-7.1.5.tgz", - "integrity": "sha512-iCHfbieL5d1LfOQeeVJEUyD9rTwBcP/fcEbRCfempxTDuqrKpu0AZjLAQHEQa3Yqyj9ORKe2iHfoj4rHLf7xpw==", - "dev": true, - "dependencies": { - "find-cache-dir": "^1.0.0", - "loader-utils": "^1.0.2", - "mkdirp": "^0.5.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/babel-messages": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0" - } - }, - "node_modules/babel-messages/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-messages/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-plugin-add-module-exports": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz", - "integrity": "sha1-mumh9KjcZ/DN7E9K7aHkOl/2XiU=", - "dev": true - }, - "node_modules/babel-plugin-check-es2015-constants": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz", - "integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0" - } - }, - "node_modules/babel-plugin-check-es2015-constants/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-check-es2015-constants/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-istanbul": { - "version": "4.1.6", - "resolved": "http://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz", - "integrity": "sha512-PWP9FQ1AhZhS01T/4qLSKoHGY/xvkZdVBGlKM/HuxxS3+sC66HhTNR7+MpbO/so/cz/wY94MeSWJuP1hXIPfwQ==", - "dev": true, - "dependencies": { - "babel-plugin-syntax-object-rest-spread": "^6.13.0", - "find-up": "^2.1.0", - "istanbul-lib-instrument": "^1.10.1", - "test-exclude": "^4.2.1" - } - }, - "node_modules/babel-plugin-istanbul/node_modules/find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "dependencies": { - "locate-path": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/babel-plugin-istanbul/node_modules/locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "dependencies": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/babel-plugin-istanbul/node_modules/p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "dependencies": { - "p-try": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/babel-plugin-istanbul/node_modules/p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "dependencies": { - "p-limit": "^1.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/babel-plugin-istanbul/node_modules/p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/babel-plugin-istanbul/node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/babel-plugin-jest-hoist": { - "version": "23.2.0", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-23.2.0.tgz", - "integrity": "sha1-5h+uBaHKiAGq3uV6bWa4zvr0QWc=", - "dev": true - }, - "node_modules/babel-plugin-syntax-object-rest-spread": { - "version": "6.13.0", - "resolved": "http://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", - "integrity": "sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-arrow-functions": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz", - "integrity": "sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0" - } - }, - "node_modules/babel-plugin-transform-es2015-arrow-functions/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-arrow-functions/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-block-scoped-functions": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz", - "integrity": "sha1-u8UbSflk1wy42OC5ToICRs46YUE=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0" - } - }, - "node_modules/babel-plugin-transform-es2015-block-scoped-functions/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-block-scoped-functions/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-block-scoping": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz", - "integrity": "sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-plugin-transform-es2015-block-scoping/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-plugin-transform-es2015-block-scoping/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-classes": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz", - "integrity": "sha1-WkxYpQyclGHlZLSyo7+ryXolhNs=", - "dev": true, - "dependencies": { - "babel-helper-define-map": "^6.24.1", - "babel-helper-function-name": "^6.24.1", - "babel-helper-optimise-call-expression": "^6.24.1", - "babel-helper-replace-supers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-messages": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-template/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-template/node_modules/babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-template/node_modules/babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true, - "bin": { - "babylon": "bin/babylon.js" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-template/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-template/node_modules/to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "dependencies": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-traverse/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-traverse/node_modules/babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-traverse/node_modules/babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true, - "bin": { - "babylon": "bin/babylon.js" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-traverse/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-traverse/node_modules/globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-traverse/node_modules/invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "dependencies": { - "loose-envify": "^1.0.0" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-traverse/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-traverse/node_modules/to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "node_modules/babel-plugin-transform-es2015-classes/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-computed-properties": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz", - "integrity": "sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/babel-template/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/babel-template/node_modules/babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true, - "bin": { - "babylon": "bin/babylon.js" - } - }, - "node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/babel-template/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-destructuring": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz", - "integrity": "sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0" - } - }, - "node_modules/babel-plugin-transform-es2015-destructuring/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-destructuring/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-duplicate-keys": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz", - "integrity": "sha1-c+s9MQypaePvnskcU3QabxV2Qj4=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "node_modules/babel-plugin-transform-es2015-duplicate-keys/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-duplicate-keys/node_modules/babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "node_modules/babel-plugin-transform-es2015-duplicate-keys/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-for-of": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz", - "integrity": "sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0" - } - }, - "node_modules/babel-plugin-transform-es2015-for-of/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-for-of/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-function-name": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz", - "integrity": "sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=", - "dev": true, - "dependencies": { - "babel-helper-function-name": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "node_modules/babel-plugin-transform-es2015-function-name/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-function-name/node_modules/babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "node_modules/babel-plugin-transform-es2015-function-name/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-literals": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz", - "integrity": "sha1-T1SgLWzWbPkVKAAZox0xklN3yi4=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0" - } - }, - "node_modules/babel-plugin-transform-es2015-literals/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-literals/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-modules-amd": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz", - "integrity": "sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ=", - "dev": true, - "dependencies": { - "babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-amd/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-amd/node_modules/babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-amd/node_modules/babel-template/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-amd/node_modules/babel-template/node_modules/babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true, - "bin": { - "babylon": "bin/babylon.js" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-amd/node_modules/babel-template/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-modules-amd/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-modules-commonjs": { - "version": "6.26.2", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz", - "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", - "dev": true, - "dependencies": { - "babel-plugin-transform-strict-mode": "^6.24.1", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-types": "^6.26.0" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-commonjs/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-commonjs/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-modules-systemjs": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz", - "integrity": "sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM=", - "dev": true, - "dependencies": { - "babel-helper-hoist-variables": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-systemjs/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-systemjs/node_modules/babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-systemjs/node_modules/babel-template/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-systemjs/node_modules/babel-template/node_modules/babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true, - "bin": { - "babylon": "bin/babylon.js" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-systemjs/node_modules/babel-template/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-modules-systemjs/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-modules-umd": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz", - "integrity": "sha1-rJl+YoXNGO1hdq22B9YCNErThGg=", - "dev": true, - "dependencies": { - "babel-plugin-transform-es2015-modules-amd": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-umd/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-umd/node_modules/babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-umd/node_modules/babel-template/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-umd/node_modules/babel-template/node_modules/babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true, - "bin": { - "babylon": "bin/babylon.js" - } - }, - "node_modules/babel-plugin-transform-es2015-modules-umd/node_modules/babel-template/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-modules-umd/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-object-super": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz", - "integrity": "sha1-JM72muIcuDp/hgPa0CH1cusnj40=", - "dev": true, - "dependencies": { - "babel-helper-replace-supers": "^6.24.1", - "babel-runtime": "^6.22.0" - } - }, - "node_modules/babel-plugin-transform-es2015-object-super/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-object-super/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-parameters": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz", - "integrity": "sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=", - "dev": true, - "dependencies": { - "babel-helper-call-delegate": "^6.24.1", - "babel-helper-get-function-arity": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-template/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-template/node_modules/babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-template/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-template/node_modules/to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "dependencies": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-traverse/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-traverse/node_modules/babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-traverse/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-traverse/node_modules/globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-traverse/node_modules/invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "dependencies": { - "loose-envify": "^1.0.0" - } - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-traverse/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-traverse/node_modules/to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "node_modules/babel-plugin-transform-es2015-parameters/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-shorthand-properties": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz", - "integrity": "sha1-JPh11nIch2YbvZmkYi5R8U3jiqA=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "node_modules/babel-plugin-transform-es2015-shorthand-properties/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-shorthand-properties/node_modules/babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "node_modules/babel-plugin-transform-es2015-shorthand-properties/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-spread": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz", - "integrity": "sha1-1taKmfia7cRTbIGlQujdnxdG+NE=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0" - } - }, - "node_modules/babel-plugin-transform-es2015-spread/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-spread/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-sticky-regex": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz", - "integrity": "sha1-AMHNsaynERLN8M9hJsLta0V8zbw=", - "dev": true, - "dependencies": { - "babel-helper-regex": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "node_modules/babel-plugin-transform-es2015-sticky-regex/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-sticky-regex/node_modules/babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "node_modules/babel-plugin-transform-es2015-sticky-regex/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-template-literals": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz", - "integrity": "sha1-qEs0UPfp+PH2g51taH2oS7EjbY0=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0" - } - }, - "node_modules/babel-plugin-transform-es2015-template-literals/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-template-literals/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-typeof-symbol": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz", - "integrity": "sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0" - } - }, - "node_modules/babel-plugin-transform-es2015-typeof-symbol/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-typeof-symbol/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-es2015-unicode-regex": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz", - "integrity": "sha1-04sS9C6nMj9yk4fxinxa4frrNek=", - "dev": true, - "dependencies": { - "babel-helper-regex": "^6.24.1", - "babel-runtime": "^6.22.0", - "regexpu-core": "^2.0.0" - } - }, - "node_modules/babel-plugin-transform-es2015-unicode-regex/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/babel-plugin-transform-es2015-unicode-regex/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-plugin-transform-regenerator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.24.1.tgz", - "integrity": "sha1-uNowWtQ8PJm0hI5P5AN7dw0jxBg=", - "dev": true, - "dependencies": { - "regenerator-transform": "0.9.11" - } - }, - "node_modules/babel-plugin-transform-strict-mode": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz", - "integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "node_modules/babel-plugin-transform-strict-mode/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-plugin-transform-strict-mode/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-polyfill": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", - "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "core-js": "^2.5.0", - "regenerator-runtime": "^0.10.5" - } - }, - "node_modules/babel-polyfill/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-polyfill/node_modules/babel-runtime/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-polyfill/node_modules/core-js": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.9.tgz", - "integrity": "sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A==", - "dev": true, - "hasInstallScript": true - }, - "node_modules/babel-polyfill/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/babel-preset-es2015": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz", - "integrity": "sha1-1EBQ1rwsn+6nAqrzjXJ6AhBTiTk=", - "dev": true, - "dependencies": { - "babel-plugin-check-es2015-constants": "^6.22.0", - "babel-plugin-transform-es2015-arrow-functions": "^6.22.0", - "babel-plugin-transform-es2015-block-scoped-functions": "^6.22.0", - "babel-plugin-transform-es2015-block-scoping": "^6.24.1", - "babel-plugin-transform-es2015-classes": "^6.24.1", - "babel-plugin-transform-es2015-computed-properties": "^6.24.1", - "babel-plugin-transform-es2015-destructuring": "^6.22.0", - "babel-plugin-transform-es2015-duplicate-keys": "^6.24.1", - "babel-plugin-transform-es2015-for-of": "^6.22.0", - "babel-plugin-transform-es2015-function-name": "^6.24.1", - "babel-plugin-transform-es2015-literals": "^6.22.0", - "babel-plugin-transform-es2015-modules-amd": "^6.24.1", - "babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", - "babel-plugin-transform-es2015-modules-systemjs": "^6.24.1", - "babel-plugin-transform-es2015-modules-umd": "^6.24.1", - "babel-plugin-transform-es2015-object-super": "^6.24.1", - "babel-plugin-transform-es2015-parameters": "^6.24.1", - "babel-plugin-transform-es2015-shorthand-properties": "^6.24.1", - "babel-plugin-transform-es2015-spread": "^6.22.0", - "babel-plugin-transform-es2015-sticky-regex": "^6.24.1", - "babel-plugin-transform-es2015-template-literals": "^6.22.0", - "babel-plugin-transform-es2015-typeof-symbol": "^6.22.0", - "babel-plugin-transform-es2015-unicode-regex": "^6.24.1", - "babel-plugin-transform-regenerator": "^6.24.1" - } - }, - "node_modules/babel-preset-jest": { - "version": "23.2.0", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-23.2.0.tgz", - "integrity": "sha1-jsegOhOPABoaj7HoETZSvxpV2kY=", - "dev": true, - "dependencies": { - "babel-plugin-jest-hoist": "^23.2.0", - "babel-plugin-syntax-object-rest-spread": "^6.13.0" - } - }, - "node_modules/babel-register": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", - "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", - "dev": true, - "dependencies": { - "babel-core": "^6.26.0", - "babel-runtime": "^6.26.0", - "core-js": "^2.5.0", - "home-or-tmp": "^2.0.0", - "lodash": "^4.17.4", - "mkdirp": "^0.5.1", - "source-map-support": "^0.4.15" - } - }, - "node_modules/babel-register/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-register/node_modules/core-js": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.9.tgz", - "integrity": "sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A==", - "dev": true, - "hasInstallScript": true - }, - "node_modules/babel-register/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-runtime": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.18.0.tgz", - "integrity": "sha1-D0F3/9mEku8Tufgj6ZlKAlhMkHg=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.9.5" - } - }, - "node_modules/babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-template/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-template/node_modules/babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true, - "bin": { - "babylon": "bin/babylon.js" - } - }, - "node_modules/babel-template/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "dependencies": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - } - }, - "node_modules/babel-traverse/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-traverse/node_modules/babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true, - "bin": { - "babylon": "bin/babylon.js" - } - }, - "node_modules/babel-traverse/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/babel-traverse/node_modules/globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babel-traverse/node_modules/invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "dependencies": { - "loose-envify": "^1.0.0" - } - }, - "node_modules/babel-traverse/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "node_modules/babel-traverse/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "node_modules/babel-types/node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-types/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "node_modules/babel-types/node_modules/to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true, - "bin": { - "babylon": "bin/babylon.js" - } - }, - "node_modules/base": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", - "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", - "dev": true, - "dependencies": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/base/node_modules/define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "dependencies": { - "is-descriptor": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/base/node_modules/is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/base/node_modules/is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/base/node_modules/is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/base/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/base/node_modules/kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/base64-js": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz", - "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==", - "dev": true - }, - "node_modules/bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "dev": true, - "dependencies": { - "tweetnacl": "^0.14.3" - } - }, - "node_modules/big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/binary-extensions": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", - "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", - "dev": true - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/brace-expansion/node_modules/balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true - }, - "node_modules/braces": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", - "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", - "dev": true, - "dependencies": { - "expand-range": "^1.8.1", - "preserve": "^0.2.0", - "repeat-element": "^1.1.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", - "dev": true - }, - "node_modules/browser-process-hrtime": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-0.1.3.tgz", - "integrity": "sha512-bRFnI4NnjO6cnyLmOV/7PVoDEMJChlcfN0z4s1YMBY989/SvlfMI1lgCnkFUs53e9gQF+w7qu7XdllSTiSl8Aw==", - "dev": true - }, - "node_modules/browser-resolve": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", - "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", - "dev": true, - "dependencies": { - "resolve": "1.1.7" - } - }, - "node_modules/browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "dev": true, - "dependencies": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/browserify-cipher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", - "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", - "dev": true, - "dependencies": { - "browserify-aes": "^1.0.4", - "browserify-des": "^1.0.0", - "evp_bytestokey": "^1.0.0" - } - }, - "node_modules/browserify-des": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", - "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", - "dev": true, - "dependencies": { - "cipher-base": "^1.0.1", - "des.js": "^1.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "node_modules/browserify-des/node_modules/safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true - }, - "node_modules/browserify-rsa": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", - "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", - "dev": true, - "dependencies": { - "bn.js": "^4.1.0", - "randombytes": "^2.0.1" - } - }, - "node_modules/browserify-sign": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz", - "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", - "dev": true, - "dependencies": { - "bn.js": "^4.1.1", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.2", - "elliptic": "^6.0.0", - "inherits": "^2.0.1", - "parse-asn1": "^5.0.0" - } - }, - "node_modules/browserify-zlib": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", - "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", - "dev": true, - "dependencies": { - "pako": "~1.0.5" - } - }, - "node_modules/bser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.0.0.tgz", - "integrity": "sha1-mseNPtXZFYBP2HrLFYvHlxR6Fxk=", - "dev": true, - "dependencies": { - "node-int64": "^0.4.0" - } - }, - "node_modules/buffer": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", - "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", - "dev": true, - "dependencies": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" - } - }, - "node_modules/buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", - "dev": true - }, - "node_modules/buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", - "dev": true - }, - "node_modules/builtin-modules": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/builtin-status-codes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", - "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", - "dev": true - }, - "node_modules/cache-base": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", - "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", - "dev": true, - "dependencies": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/cache-base/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/caller-callsite": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz", - "integrity": "sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ=", - "dev": true, - "dependencies": { - "callsites": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/caller-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz", - "integrity": "sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ=", - "dev": true, - "dependencies": { - "caller-callsite": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/callsites": { - "version": "2.0.0", - "resolved": "http://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", - "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/capture-exit": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-1.2.0.tgz", - "integrity": "sha1-HF/MSJ/QqwDU8ax64QcuMXP7q28=", - "dev": true, - "dependencies": { - "rsvp": "^3.3.3" - } - }, - "node_modules/caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", - "dev": true - }, - "node_modules/center-align": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", - "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", - "dev": true, - "dependencies": { - "align-text": "^0.1.3", - "lazy-cache": "^1.0.3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "dependencies": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/chokidar": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.6.tgz", - "integrity": "sha512-V2jUo67OKkc6ySiRpJrjlpJKl9kDuG+Xb8VgsGzb+aEouhgS1D0weyPU4lEzdAcsCAvrih2J2BqyXqHWvVLw5g==", - "dev": true, - "dependencies": { - "anymatch": "^2.0.0", - "async-each": "^1.0.1", - "braces": "^2.3.2", - "fsevents": "^1.2.7", - "glob-parent": "^3.1.0", - "inherits": "^2.0.3", - "is-binary-path": "^1.0.0", - "is-glob": "^4.0.0", - "normalize-path": "^3.0.0", - "path-is-absolute": "^1.0.0", - "readdirp": "^2.2.1", - "upath": "^1.1.1" - }, - "optionalDependencies": { - "fsevents": "^1.2.7" - } - }, - "node_modules/chokidar/node_modules/arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/chokidar/node_modules/array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/chokidar/node_modules/braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "dependencies": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/chokidar/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/chokidar/node_modules/fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "dependencies": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "dev": true, - "dependencies": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - } - }, - "node_modules/chokidar/node_modules/glob-parent/node_modules/is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/chokidar/node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/chokidar/node_modules/is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/chokidar/node_modules/is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/chokidar/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/chokidar/node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ci-info": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.6.0.tgz", - "integrity": "sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==", - "dev": true - }, - "node_modules/cipher-base": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", - "dev": true, - "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/class-utils": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", - "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", - "dev": true, - "dependencies": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/class-utils/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/class-utils/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/cliui": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", - "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", - "dev": true, - "dependencies": { - "center-align": "^0.1.1", - "right-align": "^0.1.1", - "wordwrap": "0.0.2" - } - }, - "node_modules/co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", - "dev": true, - "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" - } - }, - "node_modules/code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/collection-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", - "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", - "dev": true, - "dependencies": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "node_modules/combined-stream": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", - "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", - "dev": true, - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", - "dev": true - }, - "node_modules/component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true - }, - "node_modules/console-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", - "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", - "dev": true, - "dependencies": { - "date-now": "^0.1.4" - } - }, - "node_modules/constants-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", - "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", - "dev": true - }, - "node_modules/convert-source-map": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.0.tgz", - "integrity": "sha1-ms1whRxtXf3ZPZKC5e35SgP/RrU=", - "dev": true - }, - "node_modules/copy-descriptor": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/core-js": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.4.1.tgz", - "integrity": "sha1-TekR5mew6ukSTjQlS1OupvxhjT4=", - "dev": true - }, - "node_modules/core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true - }, - "node_modules/cosmiconfig": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz", - "integrity": "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==", - "dev": true, - "dependencies": { - "import-fresh": "^2.0.0", - "is-directory": "^0.3.1", - "js-yaml": "^3.13.1", - "parse-json": "^4.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/cosmiconfig/node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/cosmiconfig/node_modules/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "dependencies": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/create-ecdh": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz", - "integrity": "sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw==", - "dev": true, - "dependencies": { - "bn.js": "^4.1.0", - "elliptic": "^6.0.0" - } - }, - "node_modules/create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "dev": true, - "dependencies": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" - } - }, - "node_modules/create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "dev": true, - "dependencies": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "node_modules/cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "engines": { - "node": ">=4.8" - } - }, - "node_modules/cross-spawn/node_modules/semver": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", - "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/crypto-browserify": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", - "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", - "dev": true, - "dependencies": { - "browserify-cipher": "^1.0.0", - "browserify-sign": "^4.0.0", - "create-ecdh": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.0", - "diffie-hellman": "^5.0.0", - "inherits": "^2.0.1", - "pbkdf2": "^3.0.3", - "public-encrypt": "^4.0.0", - "randombytes": "^2.0.0", - "randomfill": "^1.0.3" - }, - "engines": { - "node": "*" - } - }, - "node_modules/cssom": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.4.tgz", - "integrity": "sha512-+7prCSORpXNeR4/fUP3rL+TzqtiFfhMvTd7uEqMdgPvLPt4+uzFUeufx5RHjGTACCargg/DiEt/moMQmvnfkog==", - "dev": true - }, - "node_modules/cssstyle": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-1.1.1.tgz", - "integrity": "sha512-364AI1l/M5TYcFH83JnOH/pSqgaNnKmYgKrm0didZMGKWjQB60dymwWy1rKUgL3J1ffdq9xVi2yGLHdSjjSNog==", - "dev": true, - "dependencies": { - "cssom": "0.3.x" - } - }, - "node_modules/dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "dev": true, - "dependencies": { - "assert-plus": "^1.0.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/data-urls": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-1.1.0.tgz", - "integrity": "sha512-YTWYI9se1P55u58gL5GkQHW4P6VJBJ5iBT+B5a7i2Tjadhv52paJG0qHX4A0OR6/t52odI64KP2YvFpkDOi3eQ==", - "dev": true, - "dependencies": { - "abab": "^2.0.0", - "whatwg-mimetype": "^2.2.0", - "whatwg-url": "^7.0.0" - } - }, - "node_modules/data-urls/node_modules/whatwg-url": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.0.0.tgz", - "integrity": "sha512-37GeVSIJ3kn1JgKyjiYNmSLP1yzbpb29jdmwBSgkD9h40/hyrR/OifpVUndji3tmwGgD8qpw7iQu3RSbCrBpsQ==", - "dev": true, - "dependencies": { - "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" - } - }, - "node_modules/date-now": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", - "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", - "dev": true - }, - "node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decode-uri-component": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", - "dev": true, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", - "dev": true - }, - "node_modules/default-require-extensions": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-1.0.0.tgz", - "integrity": "sha1-836hXT4T/9m0N9M+GnW1+5eHTLg=", - "dev": true, - "dependencies": { - "strip-bom": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "dev": true, - "dependencies": { - "object-keys": "^1.0.12" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/define-property": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", - "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", - "dev": true, - "dependencies": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/define-property/node_modules/is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/define-property/node_modules/is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/define-property/node_modules/is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/define-property/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/define-property/node_modules/kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/des.js": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", - "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=", - "dev": true, - "dependencies": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, - "node_modules/detect-indent": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", - "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", - "dev": true, - "dependencies": { - "repeating": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/detect-newline": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", - "integrity": "sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", - "dev": true, - "dependencies": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" - } - }, - "node_modules/domain-browser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", - "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", - "dev": true, - "engines": { - "node": ">=0.4", - "npm": ">=1.2" - } - }, - "node_modules/domexception": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-1.0.1.tgz", - "integrity": "sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug==", - "dev": true, - "dependencies": { - "webidl-conversions": "^4.0.2" - } - }, - "node_modules/ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "dev": true, - "dependencies": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "node_modules/elliptic": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.0.tgz", - "integrity": "sha512-eFOJTMyCYb7xtE/caJ6JJu+bhi67WCYNbkGSknu20pmM8Ke/bqOfdnZWxyoGN26JgfxTbXrsCkEw4KheCT/KGg==", - "dev": true, - "dependencies": { - "bn.js": "^4.4.0", - "brorand": "^1.0.1", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.0" - } - }, - "node_modules/emojis-list": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", - "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=", - "dev": true, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/end-of-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", - "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", - "dev": true, - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/end-of-stream/node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/enhanced-resolve": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz", - "integrity": "sha1-BCHjOf1xQZs9oT0Smzl5BAIwR24=", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.2", - "memory-fs": "^0.4.0", - "object-assign": "^4.0.1", - "tapable": "^0.2.7" - }, - "engines": { - "node": ">=4.3.0 <5.0.0 || >=5.10" - } - }, - "node_modules/errno": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz", - "integrity": "sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg==", - "dev": true, - "dependencies": { - "prr": "~1.0.1" - }, - "bin": { - "errno": "cli.js" - } - }, - "node_modules/error-ex": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.0.tgz", - "integrity": "sha1-5ntD8+gsluo6WE/+4Ln8MyXYAtk=", - "dev": true, - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/es-abstract": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.12.0.tgz", - "integrity": "sha512-C8Fx/0jFmV5IPoMOFPA9P9G5NtqW+4cOPit3MIuvR2t7Ag2K15EJTpxnHAYTzL+aYQJIESYeXZmDBfOBE1HcpA==", - "dev": true, - "dependencies": { - "es-to-primitive": "^1.1.1", - "function-bind": "^1.1.1", - "has": "^1.0.1", - "is-callable": "^1.1.3", - "is-regex": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", - "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/escodegen": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.11.0.tgz", - "integrity": "sha512-IeMV45ReixHS53K/OmfKAIztN/igDHzTJUhZM3k1jMhIZWjk45SMwAtBsEXiJp3vSPmTcu6CXn7mDvFHRN66fw==", - "dev": true, - "dependencies": { - "esprima": "^3.1.3", - "estraverse": "^4.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.6.1" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=4.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/escodegen/node_modules/esprima": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", - "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/escodegen/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/estraverse": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", - "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/esutils": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/events": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.0.0.tgz", - "integrity": "sha512-Dc381HFWJzEOhQ+d8pkNon++bk9h6cdAoAj4iE6Q4y6xgTzySWXlKn05/TVNpjnfRqi/X0EpJEJohPjNI3zpVA==", - "dev": true, - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "dev": true, - "dependencies": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" - } - }, - "node_modules/evp_bytestokey/node_modules/safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true - }, - "node_modules/exec-sh": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.2.1.tgz", - "integrity": "sha1-FjuYpuiea2W0fCoo0hW8H2OYnDg=", - "dev": true, - "dependencies": { - "merge": "^1.1.3" - } - }, - "node_modules/execa": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", - "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", - "dev": true, - "dependencies": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/expand-brackets": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", - "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", - "dev": true, - "dependencies": { - "is-posix-bracket": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expand-range": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", - "dev": true, - "dependencies": { - "fill-range": "^2.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expect": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-23.6.0.tgz", - "integrity": "sha512-dgSoOHgmtn/aDGRVFWclQyPDKl2CQRq0hmIEoUAuQs/2rn2NcvCWcSCovm6BLeuB/7EZuLGu2QfnR+qRt5OM4w==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.0", - "jest-diff": "^23.6.0", - "jest-get-type": "^22.1.0", - "jest-matcher-utils": "^23.6.0", - "jest-message-util": "^23.4.0", - "jest-regex-util": "^23.3.0" - } - }, - "node_modules/expect/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true - }, - "node_modules/extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "dev": true, - "dependencies": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/extend-shallow/node_modules/is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "dependencies": { - "is-plain-object": "^2.0.4" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/extglob": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", - "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", - "dev": true, - "dependencies": { - "is-extglob": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true, - "engines": [ - "node >=0.6.0" - ] - }, - "node_modules/fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", - "dev": true - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", - "dev": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", - "dev": true - }, - "node_modules/fb-watchman": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.0.tgz", - "integrity": "sha1-VOmr99+i8mzZsWNsWIwa/AXeXVg=", - "dev": true, - "dependencies": { - "bser": "^2.0.0" - } - }, - "node_modules/filename-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.0.tgz", - "integrity": "sha1-mW4+gEebmLmJfxWopYs9CE6SZ3U=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fileset": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/fileset/-/fileset-2.0.3.tgz", - "integrity": "sha1-jnVIqW08wjJ+5eZ0FocjozO7oqA=", - "dev": true, - "dependencies": { - "glob": "^7.0.3", - "minimatch": "^3.0.3" - } - }, - "node_modules/fill-range": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz", - "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=", - "dev": true, - "dependencies": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^1.1.3", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/find-cache-dir": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-1.0.0.tgz", - "integrity": "sha1-kojj6ePMN0hxfTnq3hfPcfww7m8=", - "dev": true, - "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^1.0.0", - "pkg-dir": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/find-up": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", - "dev": true, - "dependencies": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/for-in": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-0.1.6.tgz", - "integrity": "sha1-yfluib+tGKVFr17D7TUqHZ5bTcg=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/for-own": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.4.tgz", - "integrity": "sha1-AUm0GjkIjHUV9R6+HBOG1F+TUHI=", - "dev": true, - "dependencies": { - "for-in": "^0.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "dev": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, - "node_modules/fragment-cache": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", - "dev": true, - "dependencies": { - "map-cache": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "node_modules/fsevents": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.9.tgz", - "integrity": "sha512-oeyj2H3EjjonWcFjD5NvZNE9Rqe4UW+nQBU2HNeKw0koVLEFIhtyETyAakeAM3de7Z/SW5kcA+fZUait9EApnw==", - "bundleDependencies": [ - "abbrev", - "ansi-regex", - "aproba", - "are-we-there-yet", - "balanced-match", - "brace-expansion", - "chownr", - "code-point-at", - "concat-map", - "console-control-strings", - "core-util-is", - "debug", - "deep-extend", - "delegates", - "detect-libc", - "fs-minipass", - "fs.realpath", - "gauge", - "glob", - "has-unicode", - "iconv-lite", - "ignore-walk", - "inflight", - "inherits", - "ini", - "is-fullwidth-code-point", - "isarray", - "minimatch", - "minimist", - "minipass", - "minizlib", - "mkdirp", - "ms", - "needle", - "node-pre-gyp", - "nopt", - "npm-bundled", - "npm-packlist", - "npmlog", - "number-is-nan", - "object-assign", - "once", - "os-homedir", - "os-tmpdir", - "osenv", - "path-is-absolute", - "process-nextick-args", - "rc", - "readable-stream", - "rimraf", - "safe-buffer", - "safer-buffer", - "sax", - "semver", - "set-blocking", - "signal-exit", - "string-width", - "string_decoder", - "strip-ansi", - "strip-json-comments", - "tar", - "util-deprecate", - "wide-align", - "wrappy", - "yallist" - ], - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "dependencies": { - "nan": "^2.12.1", - "node-pre-gyp": "^0.12.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/fsevents/node_modules/abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/fsevents/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fsevents/node_modules/aproba": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/fsevents/node_modules/are-we-there-yet": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", - "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "node_modules/fsevents/node_modules/balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/fsevents/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/fsevents/node_modules/chownr": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.1.tgz", - "integrity": "sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/fsevents/node_modules/code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fsevents/node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/fsevents/node_modules/console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/fsevents/node_modules/core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/fsevents/node_modules/debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/fsevents/node_modules/deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/fsevents/node_modules/delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/fsevents/node_modules/detect-libc": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", - "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "optional": true, - "bin": { - "detect-libc": "bin/detect-libc.js" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/fsevents/node_modules/fs-minipass": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.5.tgz", - "integrity": "sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "minipass": "^2.2.1" - } - }, - "node_modules/fsevents/node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/fsevents/node_modules/gauge": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "node_modules/fsevents/node_modules/glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - } - }, - "node_modules/fsevents/node_modules/has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/fsevents/node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fsevents/node_modules/ignore-walk": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.1.tgz", - "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "minimatch": "^3.0.4" - } - }, - "node_modules/fsevents/node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/fsevents/node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/fsevents/node_modules/ini": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "engines": { - "node": "*" - } - }, - "node_modules/fsevents/node_modules/is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "number-is-nan": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fsevents/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/fsevents/node_modules/minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/fsevents/node_modules/minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/fsevents/node_modules/minipass": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz", - "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" - } - }, - "node_modules/fsevents/node_modules/minizlib": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.2.1.tgz", - "integrity": "sha512-7+4oTUOWKg7AuL3vloEWekXY2/D20cevzsrNT2kGWm+39J9hGTCBv8VI5Pm5lXZ/o3/mdR4f8rflAPhnQb8mPA==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "minipass": "^2.2.1" - } - }, - "node_modules/fsevents/node_modules/mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "minimist": "0.0.8" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/fsevents/node_modules/ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/fsevents/node_modules/needle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/needle/-/needle-2.3.0.tgz", - "integrity": "sha512-QBZu7aAFR0522EyaXZM0FZ9GLpq6lvQ3uq8gteiDUp7wKdy0lSd2hPlgFwVuW1CBkfEs9PfDQsQzZghLs/psdg==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "debug": "^4.1.0", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" - }, - "bin": { - "needle": "bin/needle" - }, - "engines": { - "node": ">= 4.4.x" - } - }, - "node_modules/fsevents/node_modules/node-pre-gyp": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.12.0.tgz", - "integrity": "sha512-4KghwV8vH5k+g2ylT+sLTjy5wmUOb9vPhnM8NHvRf9dHmnW/CndrFXy2aRPaPST6dugXSdHXfeaHQm77PIz/1A==", - "dev": true, - "inBundle": true, - "license": "BSD-3-Clause", - "optional": true, - "dependencies": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.1", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.2.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4" - }, - "bin": { - "node-pre-gyp": "bin/node-pre-gyp" - } - }, - "node_modules/fsevents/node_modules/nopt": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", - "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "abbrev": "1", - "osenv": "^0.1.4" - }, - "bin": { - "nopt": "bin/nopt.js" - } - }, - "node_modules/fsevents/node_modules/npm-bundled": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.6.tgz", - "integrity": "sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/fsevents/node_modules/npm-packlist": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.1.tgz", - "integrity": "sha512-+TcdO7HJJ8peiiYhvPxsEDhF3PJFGUGRcFsGve3vxvxdcpO2Z4Z7rkosRM0kWj6LfbK/P0gu3dzk5RU1ffvFcw==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" - } - }, - "node_modules/fsevents/node_modules/npmlog": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", - "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "node_modules/fsevents/node_modules/number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fsevents/node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fsevents/node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/fsevents/node_modules/os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fsevents/node_modules/os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fsevents/node_modules/osenv": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", - "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" - } - }, - "node_modules/fsevents/node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fsevents/node_modules/process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/fsevents/node_modules/rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dev": true, - "inBundle": true, - "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", - "optional": true, - "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "bin": { - "rc": "cli.js" - } - }, - "node_modules/fsevents/node_modules/rc/node_modules/minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/fsevents/node_modules/readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/fsevents/node_modules/rimraf": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", - "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - } - }, - "node_modules/fsevents/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/fsevents/node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/fsevents/node_modules/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/fsevents/node_modules/semver": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", - "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/fsevents/node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/fsevents/node_modules/signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/fsevents/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/fsevents/node_modules/string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fsevents/node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fsevents/node_modules/strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fsevents/node_modules/tar": { - "version": "4.4.8", - "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.8.tgz", - "integrity": "sha512-LzHF64s5chPQQS0IYBn9IN5h3i98c12bo4NCO7e0sGM2llXQ3p2FGC5sdENN4cTW48O915Sh+x+EXx7XW96xYQ==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "chownr": "^1.1.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.3.4", - "minizlib": "^1.1.1", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.2" - }, - "engines": { - "node": ">=4.5" - } - }, - "node_modules/fsevents/node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/fsevents/node_modules/wide-align": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "string-width": "^1.0.2 || 2" - } - }, - "node_modules/fsevents/node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/fsevents/node_modules/yallist": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz", - "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "node_modules/get-caller-file": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", - "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", - "dev": true - }, - "node_modules/get-stdin": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz", - "integrity": "sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dev": true, - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "dev": true, - "dependencies": { - "assert-plus": "^1.0.0" - } - }, - "node_modules/glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - } - }, - "node_modules/glob-base": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", - "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", - "dev": true, - "dependencies": { - "glob-parent": "^2.0.0", - "is-glob": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", - "dev": true, - "dependencies": { - "is-glob": "^2.0.0" - } - }, - "node_modules/graceful-fs": { - "version": "4.1.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.10.tgz", - "integrity": "sha1-8tcgwiCS90Mih3XHXjYSYyUB8TE=", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/growly": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", - "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", - "dev": true - }, - "node_modules/handlebars": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.1.2.tgz", - "integrity": "sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw==", - "dev": true, - "dependencies": { - "neo-async": "^2.6.0", - "optimist": "^0.6.1", - "source-map": "^0.6.1", - "uglify-js": "^3.1.4" - }, - "bin": { - "handlebars": "bin/handlebars" - }, - "engines": { - "node": ">=0.4.7" - }, - "optionalDependencies": { - "uglify-js": "^3.1.4" - } - }, - "node_modules/handlebars/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/har-validator": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", - "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", - "dev": true, - "dependencies": { - "ajv": "^6.5.5", - "har-schema": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/har-validator/node_modules/ajv": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.6.1.tgz", - "integrity": "sha512-ZoJjft5B+EJBjUyu9C9Hc0OZyPZSSlOF+plzouTrg6UlA8f+e/n8NIgBFG/9tppJtpPWfthHakK7juJdNDODww==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", - "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/has-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", - "dev": true, - "dependencies": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-value/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-values": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", - "dev": true, - "dependencies": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-values/node_modules/is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "node_modules/has-values/node_modules/is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-values/node_modules/is-number/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-values/node_modules/kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/hash-base": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", - "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", - "dev": true, - "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "node_modules/hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", - "dev": true, - "dependencies": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "node_modules/home-or-tmp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", - "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", - "dev": true, - "dependencies": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/hosted-git-info": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.1.5.tgz", - "integrity": "sha1-C6gdkNouJas0ozLm7HeTbhWYEYs=", - "dev": true - }, - "node_modules/html-encoding-sniffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz", - "integrity": "sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw==", - "dev": true, - "dependencies": { - "whatwg-encoding": "^1.0.1" - } - }, - "node_modules/http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "dev": true, - "dependencies": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - }, - "engines": { - "node": ">=0.8", - "npm": ">=1.3.7" - } - }, - "node_modules/https-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", - "dev": true - }, - "node_modules/husky": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/husky/-/husky-1.3.1.tgz", - "integrity": "sha512-86U6sVVVf4b5NYSZ0yvv88dRgBSSXXmHaiq5pP4KDj5JVzdwKgBjEtUPOm8hcoytezFwbU+7gotXNhpHdystlg==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "cosmiconfig": "^5.0.7", - "execa": "^1.0.0", - "find-up": "^3.0.0", - "get-stdin": "^6.0.0", - "is-ci": "^2.0.0", - "pkg-dir": "^3.0.0", - "please-upgrade-node": "^3.1.1", - "read-pkg": "^4.0.1", - "run-node": "^1.0.0", - "slash": "^2.0.0" - }, - "bin": { - "husky-upgrade": "lib/upgrader/bin.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/husky/node_modules/ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", - "dev": true - }, - "node_modules/husky/node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/husky/node_modules/find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "dependencies": { - "locate-path": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/husky/node_modules/is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", - "dev": true, - "dependencies": { - "ci-info": "^2.0.0" - }, - "bin": { - "is-ci": "bin.js" - } - }, - "node_modules/husky/node_modules/locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/husky/node_modules/p-limit": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.0.tgz", - "integrity": "sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/husky/node_modules/p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/husky/node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/husky/node_modules/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "dependencies": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/husky/node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/husky/node_modules/pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/husky/node_modules/pkg-dir": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", - "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", - "dev": true, - "dependencies": { - "find-up": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/husky/node_modules/read-pkg": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-4.0.1.tgz", - "integrity": "sha1-ljYlN48+HE1IyFhytabsfV0JMjc=", - "dev": true, - "dependencies": { - "normalize-package-data": "^2.3.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/husky/node_modules/slash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", - "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ieee754": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", - "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", - "dev": true - }, - "node_modules/ignore": { - "version": "3.3.10", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz", - "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==", - "dev": true - }, - "node_modules/import-fresh": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz", - "integrity": "sha1-2BNVwVYS04bGH53dOSLUMEgipUY=", - "dev": true, - "dependencies": { - "caller-path": "^2.0.0", - "resolve-from": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/import-local": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-1.0.0.tgz", - "integrity": "sha512-vAaZHieK9qjGo58agRBg+bhHX3hoTZU/Oa3GESWLz7t1U62fk63aHuDJJEteXoDeTCcPmUT+z38gkHPZkkmpmQ==", - "dev": true, - "dependencies": { - "pkg-dir": "^2.0.0", - "resolve-cwd": "^2.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/import-local/node_modules/find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "dependencies": { - "locate-path": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/import-local/node_modules/locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "dependencies": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/import-local/node_modules/p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "dependencies": { - "p-try": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/import-local/node_modules/p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "dependencies": { - "p-limit": "^1.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/import-local/node_modules/p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/import-local/node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/import-local/node_modules/pkg-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", - "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", - "dev": true, - "dependencies": { - "find-up": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - }, - "node_modules/interpret": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz", - "integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==", - "dev": true, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "node_modules/is-binary-path": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", - "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", - "dev": true, - "dependencies": { - "binary-extensions": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-buffer": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.4.tgz", - "integrity": "sha1-z8hszV3FpS+oBIkRHGkgxFfi2Ys=", - "dev": true - }, - "node_modules/is-builtin-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", - "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", - "dev": true, - "dependencies": { - "builtin-modules": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-callable": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", - "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-ci": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.2.1.tgz", - "integrity": "sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg==", - "dev": true, - "dependencies": { - "ci-info": "^1.5.0" - }, - "bin": { - "is-ci": "bin.js" - } - }, - "node_modules/is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-date-object": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", - "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-descriptor/node_modules/kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-directory": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", - "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-dotfile": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.2.tgz", - "integrity": "sha1-LBMjg/ORmfjtwmjKAbmwB9IFzE0=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-equal-shallow": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", - "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", - "dev": true, - "dependencies": { - "is-primitive": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-finite": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", - "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", - "dev": true, - "dependencies": { - "number-is-nan": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "dependencies": { - "number-is-nan": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-generator-fn": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-1.0.0.tgz", - "integrity": "sha1-lp1J4bszKfa7fwkIm+JleLLd1Go=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "dependencies": { - "is-extglob": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-plain-object/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-posix-bracket": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", - "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-primitive": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", - "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-regex": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", - "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", - "dev": true, - "dependencies": { - "has": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-symbol": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", - "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, - "node_modules/is-utf8": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", - "dev": true - }, - "node_modules/is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "node_modules/isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, - "dependencies": { - "isarray": "1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isobject/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "node_modules/isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", - "dev": true - }, - "node_modules/istanbul-api": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/istanbul-api/-/istanbul-api-1.3.7.tgz", - "integrity": "sha512-4/ApBnMVeEPG3EkSzcw25wDe4N66wxwn+KKn6b47vyek8Xb3NBAcg4xfuQbS7BqcZuTX4wxfD5lVagdggR3gyA==", - "dev": true, - "dependencies": { - "async": "^2.1.4", - "fileset": "^2.0.2", - "istanbul-lib-coverage": "^1.2.1", - "istanbul-lib-hook": "^1.2.2", - "istanbul-lib-instrument": "^1.10.2", - "istanbul-lib-report": "^1.1.5", - "istanbul-lib-source-maps": "^1.2.6", - "istanbul-reports": "^1.5.1", - "js-yaml": "^3.7.0", - "mkdirp": "^0.5.1", - "once": "^1.4.0" - } - }, - "node_modules/istanbul-api/node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/istanbul-lib-coverage": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.1.tgz", - "integrity": "sha512-PzITeunAgyGbtY1ibVIUiV679EFChHjoMNRibEIobvmrCRaIgwLxNucOSimtNWUhEib/oO7QY2imD75JVgCJWQ==", - "dev": true - }, - "node_modules/istanbul-lib-hook": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-1.2.2.tgz", - "integrity": "sha512-/Jmq7Y1VeHnZEQ3TL10VHyb564mn6VrQXHchON9Jf/AEcmQ3ZIiyD1BVzNOKTZf/G3gE+kiGK6SmpF9y3qGPLw==", - "dev": true, - "dependencies": { - "append-transform": "^0.4.0" - } - }, - "node_modules/istanbul-lib-instrument": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.2.tgz", - "integrity": "sha512-aWHxfxDqvh/ZlxR8BBaEPVSWDPUkGD63VjGQn3jcw8jCp7sHEMKcrj4xfJn/ABzdMEHiQNyvDQhqm5o8+SQg7A==", - "dev": true, - "dependencies": { - "babel-generator": "^6.18.0", - "babel-template": "^6.16.0", - "babel-traverse": "^6.18.0", - "babel-types": "^6.18.0", - "babylon": "^6.18.0", - "istanbul-lib-coverage": "^1.2.1", - "semver": "^5.3.0" - } - }, - "node_modules/istanbul-lib-instrument/node_modules/babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true, - "bin": { - "babylon": "bin/babylon.js" - } - }, - "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", - "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/istanbul-lib-report": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-1.1.5.tgz", - "integrity": "sha512-UsYfRMoi6QO/doUshYNqcKJqVmFe9w51GZz8BS3WB0lYxAllQYklka2wP9+dGZeHYaWIdcXUx8JGdbqaoXRXzw==", - "dev": true, - "dependencies": { - "istanbul-lib-coverage": "^1.2.1", - "mkdirp": "^0.5.1", - "path-parse": "^1.0.5", - "supports-color": "^3.1.2" - } - }, - "node_modules/istanbul-lib-report/node_modules/supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "dependencies": { - "has-flag": "^1.0.0" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/istanbul-lib-source-maps": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.6.tgz", - "integrity": "sha512-TtbsY5GIHgbMsMiRw35YBHGpZ1DVFEO19vxxeiDMYaeOFOCzfnYVxvl6pOUIZR4dtPhAGpSMup8OyF8ubsaqEg==", - "dev": true, - "dependencies": { - "debug": "^3.1.0", - "istanbul-lib-coverage": "^1.2.1", - "mkdirp": "^0.5.1", - "rimraf": "^2.6.1", - "source-map": "^0.5.3" - } - }, - "node_modules/istanbul-lib-source-maps/node_modules/debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/istanbul-lib-source-maps/node_modules/ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - }, - "node_modules/istanbul-reports": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-1.5.1.tgz", - "integrity": "sha512-+cfoZ0UXzWjhAdzosCPP3AN8vvef8XDkWtTfgaN+7L3YTpNYITnCaEkceo5SEYy644VkHka/P1FvkWvrG/rrJw==", - "dev": true, - "dependencies": { - "handlebars": "^4.0.3" - } - }, - "node_modules/jest": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest/-/jest-23.6.0.tgz", - "integrity": "sha512-lWzcd+HSiqeuxyhG+EnZds6iO3Y3ZEnMrfZq/OTGvF/C+Z4fPMCdhWTGSAiO2Oym9rbEXfwddHhh6jqrTF3+Lw==", - "dev": true, - "dependencies": { - "import-local": "^1.0.0", - "jest-cli": "^23.6.0" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/jest-changed-files": { - "version": "23.4.2", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-23.4.2.tgz", - "integrity": "sha512-EyNhTAUWEfwnK0Is/09LxoqNDOn7mU7S3EHskG52djOFS/z+IT0jT3h3Ql61+dklcG7bJJitIWEMB4Sp1piHmA==", - "dev": true, - "dependencies": { - "throat": "^4.0.0" - } - }, - "node_modules/jest-config": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-23.6.0.tgz", - "integrity": "sha512-i8V7z9BeDXab1+VNo78WM0AtWpBRXJLnkT+lyT+Slx/cbP5sZJ0+NDuLcmBE5hXAoK0aUp7vI+MOxR+R4d8SRQ==", - "dev": true, - "dependencies": { - "babel-core": "^6.0.0", - "babel-jest": "^23.6.0", - "chalk": "^2.0.1", - "glob": "^7.1.1", - "jest-environment-jsdom": "^23.4.0", - "jest-environment-node": "^23.4.0", - "jest-get-type": "^22.1.0", - "jest-jasmine2": "^23.6.0", - "jest-regex-util": "^23.3.0", - "jest-resolve": "^23.6.0", - "jest-util": "^23.4.0", - "jest-validate": "^23.6.0", - "micromatch": "^2.3.11", - "pretty-format": "^23.6.0" - } - }, - "node_modules/jest-config/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-config/node_modules/chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-config/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-config/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-diff": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-23.6.0.tgz", - "integrity": "sha512-Gz9l5Ov+X3aL5L37IT+8hoCUsof1CVYBb2QEkOupK64XyRR3h+uRpYIm97K7sY8diFxowR8pIGEdyfMKTixo3g==", - "dev": true, - "dependencies": { - "chalk": "^2.0.1", - "diff": "^3.2.0", - "jest-get-type": "^22.1.0", - "pretty-format": "^23.6.0" - } - }, - "node_modules/jest-diff/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-diff/node_modules/chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-diff/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-diff/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-docblock": { - "version": "23.2.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-23.2.0.tgz", - "integrity": "sha1-8IXh8YVI2Z/dabICB+b9VdkTg6c=", - "dev": true, - "dependencies": { - "detect-newline": "^2.1.0" - } - }, - "node_modules/jest-each": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-23.6.0.tgz", - "integrity": "sha512-x7V6M/WGJo6/kLoissORuvLIeAoyo2YqLOoCDkohgJ4XOXSqOtyvr8FbInlAWS77ojBsZrafbozWoKVRdtxFCg==", - "dev": true, - "dependencies": { - "chalk": "^2.0.1", - "pretty-format": "^23.6.0" - } - }, - "node_modules/jest-each/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-each/node_modules/chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-each/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-each/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-environment-jsdom": { - "version": "23.4.0", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-23.4.0.tgz", - "integrity": "sha1-BWp5UrP+pROsYqFAosNox52eYCM=", - "dev": true, - "dependencies": { - "jest-mock": "^23.2.0", - "jest-util": "^23.4.0", - "jsdom": "^11.5.1" - } - }, - "node_modules/jest-environment-node": { - "version": "23.4.0", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-23.4.0.tgz", - "integrity": "sha1-V+gO0IQd6jAxZ8zozXlSHeuv3hA=", - "dev": true, - "dependencies": { - "jest-mock": "^23.2.0", - "jest-util": "^23.4.0" - } - }, - "node_modules/jest-get-type": { - "version": "22.4.3", - "resolved": "http://registry.npmjs.org/jest-get-type/-/jest-get-type-22.4.3.tgz", - "integrity": "sha512-/jsz0Y+V29w1chdXVygEKSz2nBoHoYqNShPe+QgxSNjAuP1i8+k4LbQNrfoliKej0P45sivkSCh7yiD6ubHS3w==", - "dev": true - }, - "node_modules/jest-haste-map": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-23.6.0.tgz", - "integrity": "sha512-uyNhMyl6dr6HaXGHp8VF7cK6KpC6G9z9LiMNsst+rJIZ8l7wY0tk8qwjPmEghczojZ2/ZhtEdIabZ0OQRJSGGg==", - "dev": true, - "dependencies": { - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.1.11", - "invariant": "^2.2.4", - "jest-docblock": "^23.2.0", - "jest-serializer": "^23.0.1", - "jest-worker": "^23.2.0", - "micromatch": "^2.3.11", - "sane": "^2.0.0" - } - }, - "node_modules/jest-haste-map/node_modules/graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - }, - "node_modules/jest-haste-map/node_modules/invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "dependencies": { - "loose-envify": "^1.0.0" - } - }, - "node_modules/jest-jasmine2": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-23.6.0.tgz", - "integrity": "sha512-pe2Ytgs1nyCs8IvsEJRiRTPC0eVYd8L/dXJGU08GFuBwZ4sYH/lmFDdOL3ZmvJR8QKqV9MFuwlsAi/EWkFUbsQ==", - "dev": true, - "dependencies": { - "babel-traverse": "^6.0.0", - "chalk": "^2.0.1", - "co": "^4.6.0", - "expect": "^23.6.0", - "is-generator-fn": "^1.0.0", - "jest-diff": "^23.6.0", - "jest-each": "^23.6.0", - "jest-matcher-utils": "^23.6.0", - "jest-message-util": "^23.4.0", - "jest-snapshot": "^23.6.0", - "jest-util": "^23.4.0", - "pretty-format": "^23.6.0" - } - }, - "node_modules/jest-jasmine2/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-jasmine2/node_modules/chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-jasmine2/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-jasmine2/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-leak-detector": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-23.6.0.tgz", - "integrity": "sha512-f/8zA04rsl1Nzj10HIyEsXvYlMpMPcy0QkQilVZDFOaPbv2ur71X5u2+C4ZQJGyV/xvVXtCCZ3wQ99IgQxftCg==", - "dev": true, - "dependencies": { - "pretty-format": "^23.6.0" - } - }, - "node_modules/jest-matcher-utils": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-23.6.0.tgz", - "integrity": "sha512-rosyCHQfBcol4NsckTn01cdelzWLU9Cq7aaigDf8VwwpIRvWE/9zLgX2bON+FkEW69/0UuYslUe22SOdEf2nog==", - "dev": true, - "dependencies": { - "chalk": "^2.0.1", - "jest-get-type": "^22.1.0", - "pretty-format": "^23.6.0" - } - }, - "node_modules/jest-matcher-utils/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-matcher-utils/node_modules/chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-matcher-utils/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-matcher-utils/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-message-util": { - "version": "23.4.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-23.4.0.tgz", - "integrity": "sha1-F2EMUJQjSVCNAaPR4L2iwHkIap8=", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0-beta.35", - "chalk": "^2.0.1", - "micromatch": "^2.3.11", - "slash": "^1.0.0", - "stack-utils": "^1.0.1" - } - }, - "node_modules/jest-message-util/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-message-util/node_modules/chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-message-util/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-message-util/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-mock": { - "version": "23.2.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-23.2.0.tgz", - "integrity": "sha1-rRxg8p6HGdR8JuETgJi20YsmETQ=", - "dev": true - }, - "node_modules/jest-regex-util": { - "version": "23.3.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-23.3.0.tgz", - "integrity": "sha1-X4ZylUfCeFxAAs6qj4Sf6MpHG8U=", - "dev": true - }, - "node_modules/jest-resolve": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-23.6.0.tgz", - "integrity": "sha512-XyoRxNtO7YGpQDmtQCmZjum1MljDqUCob7XlZ6jy9gsMugHdN2hY4+Acz9Qvjz2mSsOnPSH7skBmDYCHXVZqkA==", - "dev": true, - "dependencies": { - "browser-resolve": "^1.11.3", - "chalk": "^2.0.1", - "realpath-native": "^1.0.0" - } - }, - "node_modules/jest-resolve-dependencies": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-23.6.0.tgz", - "integrity": "sha512-EkQWkFWjGKwRtRyIwRwI6rtPAEyPWlUC2MpzHissYnzJeHcyCn1Hc8j7Nn1xUVrS5C6W5+ZL37XTem4D4pLZdA==", - "dev": true, - "dependencies": { - "jest-regex-util": "^23.3.0", - "jest-snapshot": "^23.6.0" - } - }, - "node_modules/jest-resolve/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-resolve/node_modules/chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-resolve/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-resolve/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-runner": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-23.6.0.tgz", - "integrity": "sha512-kw0+uj710dzSJKU6ygri851CObtCD9cN8aNkg8jWJf4ewFyEa6kwmiH/r/M1Ec5IL/6VFa0wnAk6w+gzUtjJzA==", - "dev": true, - "dependencies": { - "exit": "^0.1.2", - "graceful-fs": "^4.1.11", - "jest-config": "^23.6.0", - "jest-docblock": "^23.2.0", - "jest-haste-map": "^23.6.0", - "jest-jasmine2": "^23.6.0", - "jest-leak-detector": "^23.6.0", - "jest-message-util": "^23.4.0", - "jest-runtime": "^23.6.0", - "jest-util": "^23.4.0", - "jest-worker": "^23.2.0", - "source-map-support": "^0.5.6", - "throat": "^4.0.0" - } - }, - "node_modules/jest-runner/node_modules/graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - }, - "node_modules/jest-runner/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/jest-runner/node_modules/source-map-support": { - "version": "0.5.9", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.9.tgz", - "integrity": "sha512-gR6Rw4MvUlYy83vP0vxoVNzM6t8MUXqNuRsuBmBHQDu1Fh6X015FrLdgoDKcNdkwGubozq0P4N0Q37UyFVr1EA==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/jest-runtime": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-23.6.0.tgz", - "integrity": "sha512-ycnLTNPT2Gv+TRhnAYAQ0B3SryEXhhRj1kA6hBPSeZaNQkJ7GbZsxOLUkwg6YmvWGdX3BB3PYKFLDQCAE1zNOw==", - "dev": true, - "dependencies": { - "babel-core": "^6.0.0", - "babel-plugin-istanbul": "^4.1.6", - "chalk": "^2.0.1", - "convert-source-map": "^1.4.0", - "exit": "^0.1.2", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.1.11", - "jest-config": "^23.6.0", - "jest-haste-map": "^23.6.0", - "jest-message-util": "^23.4.0", - "jest-regex-util": "^23.3.0", - "jest-resolve": "^23.6.0", - "jest-snapshot": "^23.6.0", - "jest-util": "^23.4.0", - "jest-validate": "^23.6.0", - "micromatch": "^2.3.11", - "realpath-native": "^1.0.0", - "slash": "^1.0.0", - "strip-bom": "3.0.0", - "write-file-atomic": "^2.1.0", - "yargs": "^11.0.0" - }, - "bin": { - "jest-runtime": "bin/jest-runtime.js" - } - }, - "node_modules/jest-runtime/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-runtime/node_modules/chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-runtime/node_modules/graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - }, - "node_modules/jest-runtime/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-runtime/node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-runtime/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-serializer": { - "version": "23.0.1", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-23.0.1.tgz", - "integrity": "sha1-o3dq6zEekP6D+rnlM+hRAr0WQWU=", - "dev": true - }, - "node_modules/jest-snapshot": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-23.6.0.tgz", - "integrity": "sha512-tM7/Bprftun6Cvj2Awh/ikS7zV3pVwjRYU2qNYS51VZHgaAMBs5l4o/69AiDHhQrj5+LA2Lq4VIvK7zYk/bswg==", - "dev": true, - "dependencies": { - "babel-types": "^6.0.0", - "chalk": "^2.0.1", - "jest-diff": "^23.6.0", - "jest-matcher-utils": "^23.6.0", - "jest-message-util": "^23.4.0", - "jest-resolve": "^23.6.0", - "mkdirp": "^0.5.1", - "natural-compare": "^1.4.0", - "pretty-format": "^23.6.0", - "semver": "^5.5.0" - } - }, - "node_modules/jest-snapshot/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-snapshot/node_modules/chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-snapshot/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-snapshot/node_modules/semver": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", - "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/jest-snapshot/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-util": { - "version": "23.4.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-23.4.0.tgz", - "integrity": "sha1-TQY8uSe68KI4Mf9hvsLLv0l5NWE=", - "dev": true, - "dependencies": { - "callsites": "^2.0.0", - "chalk": "^2.0.1", - "graceful-fs": "^4.1.11", - "is-ci": "^1.0.10", - "jest-message-util": "^23.4.0", - "mkdirp": "^0.5.1", - "slash": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/jest-util/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-util/node_modules/chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-util/node_modules/graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - }, - "node_modules/jest-util/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-util/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/jest-util/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-validate": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-23.6.0.tgz", - "integrity": "sha512-OFKapYxe72yz7agrDAWi8v2WL8GIfVqcbKRCLbRG9PAxtzF9b1SEDdTpytNDN12z2fJynoBwpMpvj2R39plI2A==", - "dev": true, - "dependencies": { - "chalk": "^2.0.1", - "jest-get-type": "^22.1.0", - "leven": "^2.1.0", - "pretty-format": "^23.6.0" - } - }, - "node_modules/jest-validate/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-validate/node_modules/chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-validate/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-validate/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-watcher": { - "version": "23.4.0", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-23.4.0.tgz", - "integrity": "sha1-0uKM50+NrWxq/JIrksq+9u0FyRw=", - "dev": true, - "dependencies": { - "ansi-escapes": "^3.0.0", - "chalk": "^2.0.1", - "string-length": "^2.0.0" - } - }, - "node_modules/jest-watcher/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-watcher/node_modules/chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-watcher/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-watcher/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest-worker": { - "version": "23.2.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-23.2.0.tgz", - "integrity": "sha1-+vcGqNo2+uYOsmlXJX+ntdjqArk=", - "dev": true, - "dependencies": { - "merge-stream": "^1.0.1" - } - }, - "node_modules/jest/node_modules/ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest/node_modules/chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest/node_modules/graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - }, - "node_modules/jest/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest/node_modules/jest-cli": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-23.6.0.tgz", - "integrity": "sha512-hgeD1zRUp1E1zsiyOXjEn4LzRLWdJBV//ukAHGlx6s5mfCNJTbhbHjgxnDUXA8fsKWN/HqFFF6X5XcCwC/IvYQ==", - "dev": true, - "dependencies": { - "ansi-escapes": "^3.0.0", - "chalk": "^2.0.1", - "exit": "^0.1.2", - "glob": "^7.1.2", - "graceful-fs": "^4.1.11", - "import-local": "^1.0.0", - "is-ci": "^1.0.10", - "istanbul-api": "^1.3.1", - "istanbul-lib-coverage": "^1.2.0", - "istanbul-lib-instrument": "^1.10.1", - "istanbul-lib-source-maps": "^1.2.4", - "jest-changed-files": "^23.4.2", - "jest-config": "^23.6.0", - "jest-environment-jsdom": "^23.4.0", - "jest-get-type": "^22.1.0", - "jest-haste-map": "^23.6.0", - "jest-message-util": "^23.4.0", - "jest-regex-util": "^23.3.0", - "jest-resolve-dependencies": "^23.6.0", - "jest-runner": "^23.6.0", - "jest-runtime": "^23.6.0", - "jest-snapshot": "^23.6.0", - "jest-util": "^23.4.0", - "jest-validate": "^23.6.0", - "jest-watcher": "^23.4.0", - "jest-worker": "^23.2.0", - "micromatch": "^2.3.11", - "node-notifier": "^5.2.1", - "prompts": "^0.1.9", - "realpath-native": "^1.0.0", - "rimraf": "^2.5.4", - "slash": "^1.0.0", - "string-length": "^2.0.0", - "strip-ansi": "^4.0.0", - "which": "^1.2.12", - "yargs": "^11.0.0" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/jest/node_modules/strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "dependencies": { - "ansi-regex": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jest/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/js-tokens": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-2.0.0.tgz", - "integrity": "sha1-eZA/VWPud4zBFi5tzxoAJ8l/nLU=", - "dev": true - }, - "node_modules/js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true - }, - "node_modules/jsdom": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-11.12.0.tgz", - "integrity": "sha512-y8Px43oyiBM13Zc1z780FrfNLJCXTL40EWlty/LXUtcjykRBNgLlCjWXpfSPBl2iv+N7koQN+dvqszHZgT/Fjw==", - "dev": true, - "dependencies": { - "abab": "^2.0.0", - "acorn": "^5.5.3", - "acorn-globals": "^4.1.0", - "array-equal": "^1.0.0", - "cssom": ">= 0.3.2 < 0.4.0", - "cssstyle": "^1.0.0", - "data-urls": "^1.0.0", - "domexception": "^1.0.1", - "escodegen": "^1.9.1", - "html-encoding-sniffer": "^1.0.2", - "left-pad": "^1.3.0", - "nwsapi": "^2.0.7", - "parse5": "4.0.0", - "pn": "^1.1.0", - "request": "^2.87.0", - "request-promise-native": "^1.0.5", - "sax": "^1.2.4", - "symbol-tree": "^3.2.2", - "tough-cookie": "^2.3.4", - "w3c-hr-time": "^1.0.1", - "webidl-conversions": "^4.0.2", - "whatwg-encoding": "^1.0.3", - "whatwg-mimetype": "^2.1.0", - "whatwg-url": "^6.4.1", - "ws": "^5.2.0", - "xml-name-validator": "^3.0.0" - } - }, - "node_modules/jsdom/node_modules/acorn": { - "version": "5.7.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", - "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/jsesc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", - "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - } - }, - "node_modules/json-loader": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.7.tgz", - "integrity": "sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w==", - "dev": true - }, - "node_modules/json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "node_modules/json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/json-stable-stringify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", - "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", - "dev": true, - "dependencies": { - "jsonify": "~0.0.0" - } - }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true - }, - "node_modules/json5": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", - "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", - "dev": true, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/jsonify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", - "dev": true - }, - "node_modules/jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "dev": true, - "engines": [ - "node >=0.6.0" - ], - "dependencies": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, - "node_modules/kind-of": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.0.4.tgz", - "integrity": "sha1-e47PGKThf4Jp1ztQHJ8jLJaIenQ=", - "dev": true, - "dependencies": { - "is-buffer": "^1.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/kleur": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-2.0.2.tgz", - "integrity": "sha512-77XF9iTllATmG9lSlIv0qdQ2BQ/h9t0bJllHlbvsQ0zUWfU7Yi0S8L5JXzPZgkefIiajLmBJJ4BsMJmqcf7oxQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/lazy-cache": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", - "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", - "dev": true, - "dependencies": { - "invert-kv": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/left-pad": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz", - "integrity": "sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==", - "dev": true - }, - "node_modules/leven": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-2.1.0.tgz", - "integrity": "sha1-wuep93IJTe6dNCAq6KzORoeHVYA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", - "dev": true, - "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/load-json-file": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", - "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "strip-bom": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/loader-runner": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz", - "integrity": "sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw==", - "dev": true, - "engines": { - "node": ">=4.3.0 <5.0.0 || >=5.10" - } - }, - "node_modules/loader-utils": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.2.3.tgz", - "integrity": "sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA==", - "dev": true, - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^2.0.0", - "json5": "^1.0.1" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/loader-utils/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", - "dev": true, - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "dependencies": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/locate-path/node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/lodash": { - "version": "4.17.14", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.14.tgz", - "integrity": "sha512-mmKYbW3GLuJeX+iGP+Y7Gp1AiGHGbXHCOh/jZmrawMmsE7MS4znI3RL2FsjbqOyMayHInjOeykW7PEajUk1/xw==", - "dev": true - }, - "node_modules/lodash.sortby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", - "dev": true - }, - "node_modules/longest": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", - "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/loose-envify": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.0.tgz", - "integrity": "sha1-ayYkjEL21PpLDYVC947fzeNWQqg=", - "dev": true, - "dependencies": { - "js-tokens": "^2.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/lru-cache": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", - "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", - "dev": true, - "dependencies": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - } - }, - "node_modules/make-dir": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", - "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", - "dev": true, - "dependencies": { - "pify": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/make-dir/node_modules/pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/makeerror": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.11.tgz", - "integrity": "sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw=", - "dev": true, - "dependencies": { - "tmpl": "1.0.x" - } - }, - "node_modules/map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/map-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", - "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", - "dev": true, - "dependencies": { - "object-visit": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/md5.js": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", - "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "dev": true, - "dependencies": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "node_modules/md5.js/node_modules/safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true - }, - "node_modules/mem": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", - "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", - "dev": true, - "dependencies": { - "mimic-fn": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/memory-fs": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", - "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", - "dev": true, - "dependencies": { - "errno": "^0.1.3", - "readable-stream": "^2.0.1" - } - }, - "node_modules/merge": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/merge/-/merge-1.2.1.tgz", - "integrity": "sha512-VjFo4P5Whtj4vsLzsYBu5ayHhoHJ0UqNm7ibvShmbmoz7tGi0vXaoJbGdB+GmDMLUdg8DpQXEIeVDAe8MaABvQ==", - "dev": true - }, - "node_modules/merge-stream": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz", - "integrity": "sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE=", - "dev": true, - "dependencies": { - "readable-stream": "^2.0.1" - } - }, - "node_modules/micromatch": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", - "dev": true, - "dependencies": { - "arr-diff": "^2.0.0", - "array-unique": "^0.2.1", - "braces": "^1.8.2", - "expand-brackets": "^0.1.4", - "extglob": "^0.3.1", - "filename-regex": "^2.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.1", - "kind-of": "^3.0.2", - "normalize-path": "^2.0.1", - "object.omit": "^2.0.0", - "parse-glob": "^3.0.4", - "regex-cache": "^0.4.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", - "dev": true, - "dependencies": { - "bn.js": "^4.0.0", - "brorand": "^1.0.1" - }, - "bin": { - "miller-rabin": "bin/miller-rabin" - } - }, - "node_modules/mime-db": { - "version": "1.37.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.37.0.tgz", - "integrity": "sha512-R3C4db6bgQhlIhPU48fUtdVmKnflq+hRdad7IyKhtFj06VPNVdk2RhiYL3UjQIlso8L+YxAtFkobT0VK+S/ybg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.21", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.21.tgz", - "integrity": "sha512-3iL6DbwpyLzjR3xHSFNFeb9Nz/M8WDkX33t1GFQnFOllWk8pOrh/LSrB5OXlnlW5P9LH73X6loW/eogc+F5lJg==", - "dev": true, - "dependencies": { - "mime-db": "~1.37.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", - "dev": true - }, - "node_modules/minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", - "dev": true - }, - "node_modules/minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true - }, - "node_modules/mixin-deep": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", - "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", - "dev": true, - "dependencies": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/mixin-deep/node_modules/for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/mixin-deep/node_modules/is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "dependencies": { - "is-plain-object": "^2.0.4" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, - "dependencies": { - "minimist": "0.0.8" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/mkdirp/node_modules/minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true - }, - "node_modules/mri": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/mri/-/mri-1.1.4.tgz", - "integrity": "sha512-6y7IjGPm8AzlvoUrwAaw1tLnUBudaS3752vcd8JtrpGGQn+rXIe63LFVHm/YMwtqAuh+LJPCFdlLYPWM1nYn6w==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "node_modules/multimatch": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-3.0.0.tgz", - "integrity": "sha512-22foS/gqQfANZ3o+W7ST2x25ueHDVNWl/b9OlGcLpy/iKxjCpvcNCM51YCenUi7Mt/jAjjqv8JwZRs8YP5sRjA==", - "dev": true, - "dependencies": { - "array-differ": "^2.0.3", - "array-union": "^1.0.2", - "arrify": "^1.0.1", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/nan": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", - "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==", - "dev": true, - "optional": true - }, - "node_modules/nanomatch": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", - "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", - "dev": true, - "dependencies": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "fragment-cache": "^0.2.1", - "is-windows": "^1.0.2", - "kind-of": "^6.0.2", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/nanomatch/node_modules/arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/nanomatch/node_modules/array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/nanomatch/node_modules/kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", - "dev": true - }, - "node_modules/neo-async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz", - "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==", - "dev": true - }, - "node_modules/nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true - }, - "node_modules/node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", - "dev": true - }, - "node_modules/node-libs-browser": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz", - "integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==", - "dev": true, - "dependencies": { - "assert": "^1.1.1", - "browserify-zlib": "^0.2.0", - "buffer": "^4.3.0", - "console-browserify": "^1.1.0", - "constants-browserify": "^1.0.0", - "crypto-browserify": "^3.11.0", - "domain-browser": "^1.1.1", - "events": "^3.0.0", - "https-browserify": "^1.0.0", - "os-browserify": "^0.3.0", - "path-browserify": "0.0.1", - "process": "^0.11.10", - "punycode": "^1.2.4", - "querystring-es3": "^0.2.0", - "readable-stream": "^2.3.3", - "stream-browserify": "^2.0.1", - "stream-http": "^2.7.2", - "string_decoder": "^1.0.0", - "timers-browserify": "^2.0.4", - "tty-browserify": "0.0.0", - "url": "^0.11.0", - "util": "^0.11.0", - "vm-browserify": "^1.0.1" - } - }, - "node_modules/node-notifier": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-5.3.0.tgz", - "integrity": "sha512-AhENzCSGZnZJgBARsUjnQ7DnZbzyP+HxlVXuD0xqAnvL8q+OqtSX7lGg9e8nHzwXkMMXNdVeqq4E2M3EUAqX6Q==", - "dev": true, - "dependencies": { - "growly": "^1.3.0", - "semver": "^5.5.0", - "shellwords": "^0.1.1", - "which": "^1.3.0" - } - }, - "node_modules/node-notifier/node_modules/semver": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", - "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/normalize-package-data": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.3.5.tgz", - "integrity": "sha1-jZJPFClg4Xd+f/4XBUNjHMfLAt8=", - "dev": true, - "dependencies": { - "hosted-git-info": "^2.1.4", - "is-builtin-module": "^1.0.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "node_modules/normalize-path": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.0.1.tgz", - "integrity": "sha1-R4hqwWYnYNQmG32XnSQXCdPOP3o=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", - "dev": true, - "dependencies": { - "path-key": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/nwsapi": { - "version": "2.0.9", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.0.9.tgz", - "integrity": "sha512-nlWFSCTYQcHk/6A9FFnfhKc14c3aFhfdNBXgo8Qgi9QTBu/qg3Ww+Uiz9wMzXd1T8GFxPc2QIHB6Qtf2XFryFQ==", - "dev": true - }, - "node_modules/oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-copy": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", - "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", - "dev": true, - "dependencies": { - "copy-descriptor": "^0.1.0", - "define-property": "^0.2.5", - "kind-of": "^3.0.3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-copy/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-keys": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.12.tgz", - "integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object-visit": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", - "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", - "dev": true, - "dependencies": { - "isobject": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-visit/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object.getownpropertydescriptors": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", - "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", - "dev": true, - "dependencies": { - "define-properties": "^1.1.2", - "es-abstract": "^1.5.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/object.omit": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", - "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", - "dev": true, - "dependencies": { - "for-own": "^0.1.4", - "is-extendable": "^0.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", - "dev": true, - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object.pick/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/once": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz", - "integrity": "sha1-suJhVXzkwxTsgwTz+oJmPkKXyiA=", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/optimist": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", - "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", - "dev": true, - "dependencies": { - "minimist": "~0.0.1", - "wordwrap": "~0.0.2" - } - }, - "node_modules/optimist/node_modules/minimist": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", - "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", - "dev": true - }, - "node_modules/optionator": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", - "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", - "dev": true, - "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.4", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "wordwrap": "~1.0.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/optionator/node_modules/wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", - "dev": true - }, - "node_modules/os-browserify": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", - "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", - "dev": true - }, - "node_modules/os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", - "dev": true, - "dependencies": { - "lcid": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "dependencies": { - "p-try": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "dependencies": { - "p-limit": "^1.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/pako": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.10.tgz", - "integrity": "sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw==", - "dev": true - }, - "node_modules/parse-asn1": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.4.tgz", - "integrity": "sha512-Qs5duJcuvNExRfFZ99HDD3z4mAi3r9Wl/FOjEOijlxwCZs7E7mW2vjTpgQ4J8LpTF8x5v+1Vn5UQFejmWT11aw==", - "dev": true, - "dependencies": { - "asn1.js": "^4.0.0", - "browserify-aes": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.0", - "pbkdf2": "^3.0.3", - "safe-buffer": "^5.1.1" - } - }, - "node_modules/parse-asn1/node_modules/safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true - }, - "node_modules/parse-glob": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", - "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", - "dev": true, - "dependencies": { - "glob-base": "^0.3.0", - "is-dotfile": "^1.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", - "dev": true, - "dependencies": { - "error-ex": "^1.2.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/parse5": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-4.0.0.tgz", - "integrity": "sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA==", - "dev": true - }, - "node_modules/pascalcase": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", - "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", - "dev": true - }, - "node_modules/path-dirname": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", - "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", - "dev": true - }, - "node_modules/path-exists": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", - "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", - "dev": true, - "dependencies": { - "pinkie-promise": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true - }, - "node_modules/path-type": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pbkdf2": { - "version": "3.0.17", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", - "integrity": "sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA==", - "dev": true, - "dependencies": { - "create-hash": "^1.1.2", - "create-hmac": "^1.1.4", - "ripemd160": "^2.0.1", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - }, - "engines": { - "node": ">=0.12" - } - }, - "node_modules/performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", - "dev": true - }, - "node_modules/pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", - "dev": true, - "dependencies": { - "pinkie": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pkg-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", - "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", - "dev": true, - "dependencies": { - "find-up": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/pkg-dir/node_modules/find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "dependencies": { - "locate-path": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/please-upgrade-node": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.1.1.tgz", - "integrity": "sha512-KY1uHnQ2NlQHqIJQpnh/i54rKkuxCEBx+voJIS/Mvb+L2iYd2NMotwduhKTMjfC1uKoX3VXOxLjIYG66dfJTVQ==", - "dev": true, - "dependencies": { - "semver-compare": "^1.0.0" - } - }, - "node_modules/pn": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/pn/-/pn-1.1.0.tgz", - "integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==", - "dev": true - }, - "node_modules/posix-character-classes": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", - "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/preserve": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", - "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/prettier": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.15.1.tgz", - "integrity": "sha512-4rgV2hyc/5Pk0XHH4VjJWHRgVjgRbpMfLQjREAhHBtyW1UvTFkjJEsueGYNYYZd9mn97K+1qv0EBwm11zoaSgA==", - "dev": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/pretty-format": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-23.6.0.tgz", - "integrity": "sha512-zf9NV1NSlDLDjycnwm6hpFATCGl/K1lt0R/GdkAK2O5LN/rwJoB+Mh93gGJjut4YbmecbfgLWVGSTCr0Ewvvbw==", - "dev": true, - "dependencies": { - "ansi-regex": "^3.0.0", - "ansi-styles": "^3.2.0" - } - }, - "node_modules/pretty-format/node_modules/ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/pretty-quick": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/pretty-quick/-/pretty-quick-1.11.1.tgz", - "integrity": "sha512-kSXCkcETfak7EQXz6WOkCeCqpbC4GIzrN/vaneTGMP/fAtD8NerA9bPhCUqHAks1geo7biZNl5uEMPceeneLuA==", - "dev": true, - "dependencies": { - "chalk": "^2.3.0", - "execa": "^0.8.0", - "find-up": "^2.1.0", - "ignore": "^3.3.7", - "mri": "^1.1.0", - "multimatch": "^3.0.0" - }, - "bin": { - "pretty-quick": "bin/pretty-quick.js" - } - }, - "node_modules/pretty-quick/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/pretty-quick/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/pretty-quick/node_modules/cross-spawn": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", - "dev": true, - "dependencies": { - "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "node_modules/pretty-quick/node_modules/execa": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-0.8.0.tgz", - "integrity": "sha1-2NdrvBtVIX7RkP1t1J08d07PyNo=", - "dev": true, - "dependencies": { - "cross-spawn": "^5.0.1", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/pretty-quick/node_modules/find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "dependencies": { - "locate-path": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/pretty-quick/node_modules/get-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", - "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/pretty-quick/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/pretty-quick/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/private": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/private/-/private-0.1.7.tgz", - "integrity": "sha1-aM5eih7woju1cMwoU3tTMqumPvE=", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, - "node_modules/prompts": { - "version": "0.1.14", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-0.1.14.tgz", - "integrity": "sha512-rxkyiE9YH6zAz/rZpywySLKkpaj0NMVyNw1qhsubdbjjSgcayjTShDreZGlFMcGSu5sab3bAKPfFk78PB90+8w==", - "dev": true, - "dependencies": { - "kleur": "^2.0.1", - "sisteransi": "^0.1.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/prr": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", - "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", - "dev": true - }, - "node_modules/pseudomap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", - "dev": true - }, - "node_modules/psl": { - "version": "1.1.29", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz", - "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ==", - "dev": true - }, - "node_modules/public-encrypt": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", - "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", - "dev": true, - "dependencies": { - "bn.js": "^4.1.0", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "node_modules/public-encrypt/node_modules/safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true - }, - "node_modules/pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - }, - "node_modules/qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", - "dev": true, - "engines": { - "node": ">=0.4.x" - } - }, - "node_modules/querystring-es3": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", - "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", - "dev": true, - "engines": { - "node": ">=0.4.x" - } - }, - "node_modules/randomatic": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.5.tgz", - "integrity": "sha1-Xp718tVzxnvSuBJK6QtRVuRXhAs=", - "dev": true, - "dependencies": { - "is-number": "^2.0.2", - "kind-of": "^3.0.2" - } - }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, - "node_modules/randombytes/node_modules/safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true - }, - "node_modules/randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "dev": true, - "dependencies": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" - } - }, - "node_modules/randomfill/node_modules/safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true - }, - "node_modules/read-pkg": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", - "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", - "dev": true, - "dependencies": { - "load-json-file": "^1.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/read-pkg-up": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", - "dev": true, - "dependencies": { - "find-up": "^1.0.0", - "read-pkg": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readable-stream": { - "version": "2.3.6", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/readable-stream/node_modules/process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true - }, - "node_modules/readable-stream/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "node_modules/readable-stream/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/readdirp": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", - "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.11", - "micromatch": "^3.1.10", - "readable-stream": "^2.0.2" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/readdirp/node_modules/arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "dependencies": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/braces/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/readdirp/node_modules/expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", - "dev": true, - "dependencies": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/expand-brackets/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/expand-brackets/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/expand-brackets/node_modules/is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/expand-brackets/node_modules/is-accessor-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/expand-brackets/node_modules/is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/expand-brackets/node_modules/is-data-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/expand-brackets/node_modules/is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/expand-brackets/node_modules/kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "dev": true, - "dependencies": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/extglob/node_modules/define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "dependencies": { - "is-descriptor": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/extglob/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "dependencies": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/fill-range/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/graceful-fs": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.0.tgz", - "integrity": "sha512-jpSvDPV4Cq/bgtpndIWbI5hmYxhQGHPC4d4cqBPb4DLniCfhJokdXhwhaDuLBGLQdvvRum/UiX6ECVIPvDXqdg==", - "dev": true - }, - "node_modules/readdirp/node_modules/is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "node_modules/readdirp/node_modules/is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/is-number/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "dependencies": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "node_modules/realpath-native": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/realpath-native/-/realpath-native-1.0.2.tgz", - "integrity": "sha512-+S3zTvVt9yTntFrBpm7TQmQ3tzpCrnA1a/y+3cUHAc9ZR6aIjG0WNLR+Rj79QpJktY+VeW/TQtFlQ1bzsehI8g==", - "dev": true, - "dependencies": { - "util.promisify": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regenerate": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.3.2.tgz", - "integrity": "sha1-0ZQcZ7rUN+G+dkM63Vs4X5WxkmA=", - "dev": true - }, - "node_modules/regenerator-runtime": { - "version": "0.9.6", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.9.6.tgz", - "integrity": "sha1-0z65XQ0gAaS+OWWXB8UbDLcc4Ck=", - "dev": true - }, - "node_modules/regenerator-transform": { - "version": "0.9.11", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.9.11.tgz", - "integrity": "sha1-On0GdSDLe3F2dp61/4aGkb7+EoM=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.18.0", - "babel-types": "^6.19.0", - "private": "^0.1.6" - } - }, - "node_modules/regenerator-transform/node_modules/babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "dependencies": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "node_modules/regenerator-transform/node_modules/babel-types/node_modules/babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "node_modules/regenerator-transform/node_modules/regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - }, - "node_modules/regex-cache": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.3.tgz", - "integrity": "sha1-mxpsNdTQ3871cRrmUejp09cRQUU=", - "dev": true, - "dependencies": { - "is-equal-shallow": "^0.1.3", - "is-primitive": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/regex-not": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", - "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", - "dev": true, - "dependencies": { - "extend-shallow": "^3.0.2", - "safe-regex": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/regexpu-core": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-2.0.0.tgz", - "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", - "dev": true, - "dependencies": { - "regenerate": "^1.2.1", - "regjsgen": "^0.2.0", - "regjsparser": "^0.1.4" - } - }, - "node_modules/regjsgen": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", - "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=", - "dev": true - }, - "node_modules/regjsparser": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz", - "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", - "dev": true, - "dependencies": { - "jsesc": "~0.5.0" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, - "node_modules/regjsparser/node_modules/jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - } - }, - "node_modules/remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", - "dev": true - }, - "node_modules/repeat-element": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", - "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", - "dev": true, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/repeating": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", - "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", - "dev": true, - "dependencies": { - "is-finite": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/request": { - "version": "2.88.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", - "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", - "dev": true, - "dependencies": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.0", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.4.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "engines": { - "node": ">= 4" - } - }, - "node_modules/request-promise-core": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz", - "integrity": "sha1-Pu4AssWqgyOc+wTFcA2jb4HNCLY=", - "dev": true, - "dependencies": { - "lodash": "^4.13.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/request-promise-native": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.5.tgz", - "integrity": "sha1-UoF3D2jgyXGeUWP9P6tIIhX0/aU=", - "dev": true, - "dependencies": { - "request-promise-core": "1.1.1", - "stealthy-require": "^1.1.0", - "tough-cookie": ">=2.3.3" - }, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/request/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "node_modules/request/node_modules/tough-cookie": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", - "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", - "dev": true, - "dependencies": { - "psl": "^1.1.24", - "punycode": "^1.4.1" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", - "dev": true - }, - "node_modules/resolve": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", - "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", - "dev": true - }, - "node_modules/resolve-cwd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", - "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=", - "dev": true, - "dependencies": { - "resolve-from": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/resolve-url": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", - "dev": true - }, - "node_modules/ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", - "dev": true, - "engines": { - "node": ">=0.12" - } - }, - "node_modules/right-align": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", - "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", - "dev": true, - "dependencies": { - "align-text": "^0.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", - "dev": true, - "dependencies": { - "glob": "^7.0.5" - }, - "bin": { - "rimraf": "bin.js" - } - }, - "node_modules/ripemd160": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", - "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", - "dev": true, - "dependencies": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" - } - }, - "node_modules/rsvp": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-3.6.2.tgz", - "integrity": "sha512-OfWGQTb9vnwRjwtA2QwpG2ICclHC3pgXZO5xt8H2EfgDquO0qVdSb5T88L4qJVAEugbS56pAuV4XZM58UX8ulw==", - "dev": true, - "engines": { - "node": "0.12.* || 4.* || 6.* || >= 7.*" - } - }, - "node_modules/run-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/run-node/-/run-node-1.0.0.tgz", - "integrity": "sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A==", - "dev": true, - "bin": { - "run-node": "run-node" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/safe-buffer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.0.1.tgz", - "integrity": "sha1-0mPKVGls2KMGtcplUekt5XkY++c=", - "dev": true - }, - "node_modules/safe-regex": { - "version": "1.1.0", - "resolved": "http://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", - "dev": true, - "dependencies": { - "ret": "~0.1.10" - } - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "node_modules/sane": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/sane/-/sane-2.5.2.tgz", - "integrity": "sha1-tNwYYcIbQn6SlQej51HiosuKs/o=", - "dev": true, - "dependencies": { - "anymatch": "^2.0.0", - "capture-exit": "^1.2.0", - "exec-sh": "^0.2.0", - "fb-watchman": "^2.0.0", - "fsevents": "^1.2.3", - "micromatch": "^3.1.4", - "minimist": "^1.1.1", - "walker": "~1.0.5", - "watch": "~0.18.0" - }, - "bin": { - "sane": "src/cli.js" - }, - "engines": { - "node": ">=0.6.0" - }, - "optionalDependencies": { - "fsevents": "^1.2.3" - } - }, - "node_modules/sane/node_modules/anymatch": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", - "dev": true, - "dependencies": { - "micromatch": "^3.1.4", - "normalize-path": "^2.1.1" - } - }, - "node_modules/sane/node_modules/arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "dependencies": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/braces/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/sane/node_modules/expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", - "dev": true, - "dependencies": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/expand-brackets/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/expand-brackets/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/expand-brackets/node_modules/is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/expand-brackets/node_modules/is-accessor-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/expand-brackets/node_modules/is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/expand-brackets/node_modules/is-data-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/expand-brackets/node_modules/is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/expand-brackets/node_modules/kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "dev": true, - "dependencies": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/extglob/node_modules/define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "dependencies": { - "is-descriptor": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/extglob/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "dependencies": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fill-range/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fsevents": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.4.tgz", - "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", - "bundleDependencies": [ - "abbrev", - "ansi-regex", - "aproba", - "are-we-there-yet", - "balanced-match", - "brace-expansion", - "chownr", - "code-point-at", - "concat-map", - "console-control-strings", - "core-util-is", - "debug", - "deep-extend", - "delegates", - "detect-libc", - "fs-minipass", - "fs.realpath", - "gauge", - "glob", - "has-unicode", - "iconv-lite", - "ignore-walk", - "inflight", - "inherits", - "ini", - "is-fullwidth-code-point", - "isarray", - "minimatch", - "minimist", - "minipass", - "minizlib", - "mkdirp", - "ms", - "needle", - "node-pre-gyp", - "nopt", - "npm-bundled", - "npm-packlist", - "npmlog", - "number-is-nan", - "object-assign", - "once", - "os-homedir", - "os-tmpdir", - "osenv", - "path-is-absolute", - "process-nextick-args", - "rc", - "readable-stream", - "rimraf", - "safe-buffer", - "safer-buffer", - "sax", - "semver", - "set-blocking", - "signal-exit", - "string-width", - "string_decoder", - "strip-ansi", - "strip-json-comments", - "tar", - "util-deprecate", - "wide-align", - "wrappy", - "yallist" - ], - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "dependencies": { - "nan": "^2.9.2", - "node-pre-gyp": "^0.10.0" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/aproba": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/are-we-there-yet": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz", - "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/chownr": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.0.1.tgz", - "integrity": "sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/deep-extend": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.5.1.tgz", - "integrity": "sha512-N8vBdOa+DF7zkRrDCsaOXoCs/E2fJfx9B9MrKnnSiHNh4ws7eSys6YQE4KvT1cecKmOASYQBhbKjeuDD9lT81w==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/detect-libc": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", - "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "optional": true, - "bin": { - "detect-libc": "bin/detect-libc.js" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/fs-minipass": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.5.tgz", - "integrity": "sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "minipass": "^2.2.1" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/gauge": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/iconv-lite": { - "version": "0.4.21", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.21.tgz", - "integrity": "sha512-En5V9za5mBt2oUA03WGD3TwDv0MKAruqsuxstbMUZaj9W9k/m1CV/9py3l0L5kw9Bln8fdHQmzHSYtvpvTLpKw==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "safer-buffer": "^2.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/ignore-walk": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.1.tgz", - "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "minimatch": "^3.0.4" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/ini": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "engines": { - "node": "*" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "number-is-nan": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/minipass": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.2.4.tgz", - "integrity": "sha512-hzXIWWet/BzWhYs2b+u7dRHlruXhwdgvlTMDKC6Cb1U7ps6Ac6yQlR39xsbjWJE377YTCtKwIXIpJ5oP+j5y8g==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "safe-buffer": "^5.1.1", - "yallist": "^3.0.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/minizlib": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.1.0.tgz", - "integrity": "sha512-4T6Ur/GctZ27nHfpt9THOdRZNgyJ9FZchYO1ceg5S8Q3DNLCKYy44nCZzgCJgcvx2UM8czmqak5BCxJMrq37lA==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "minipass": "^2.2.1" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "minimist": "0.0.8" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/needle": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/needle/-/needle-2.2.0.tgz", - "integrity": "sha512-eFagy6c+TYayorXw/qtAdSvaUpEbBsDwDyxYFgLZ0lTojfH7K+OdBqAF7TAFwDokJaGpubpSGG0wO3iC0XPi8w==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "debug": "^2.1.2", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" - }, - "bin": { - "needle": "bin/needle" - }, - "engines": { - "node": ">= 0.10.x" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/node-pre-gyp": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.10.0.tgz", - "integrity": "sha512-G7kEonQLRbcA/mOoFoxvlMrw6Q6dPf92+t/l0DFSMuSlDoWaI9JWIyPwK0jyE1bph//CUEL65/Fz1m2vJbmjQQ==", - "dev": true, - "inBundle": true, - "license": "BSD-3-Clause", - "optional": true, - "dependencies": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.0", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.1.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4" - }, - "bin": { - "node-pre-gyp": "bin/node-pre-gyp" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/nopt": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", - "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "abbrev": "1", - "osenv": "^0.1.4" - }, - "bin": { - "nopt": "bin/nopt.js" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/npm-bundled": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.3.tgz", - "integrity": "sha512-ByQ3oJ/5ETLyglU2+8dBObvhfWXX8dtPZDMePCahptliFX2iIuhyEszyFk401PZUNQH20vvdW5MLjJxkwU80Ow==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/npm-packlist": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.1.10.tgz", - "integrity": "sha512-AQC0Dyhzn4EiYEfIUjCdMl0JJ61I2ER9ukf/sLxJUcZHfo+VyEfz2rMJgLZSS1v30OxPQe1cN0LZA1xbcaVfWA==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/npmlog": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", - "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/osenv": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", - "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/rc": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.7.tgz", - "integrity": "sha512-LdLD8xD4zzLsAT5xyushXDNscEjB7+2ulnl8+r1pnESlYtlJtVSoCMBGr30eDRJ3+2Gq89jK9P9e4tCEH1+ywA==", - "dev": true, - "inBundle": true, - "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", - "optional": true, - "dependencies": { - "deep-extend": "^0.5.1", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "bin": { - "rc": "cli.js" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/rc/node_modules/minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "glob": "^7.0.5" - }, - "bin": { - "rimraf": "bin.js" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/safe-buffer": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", - "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/tar": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.1.tgz", - "integrity": "sha512-O+v1r9yN4tOsvl90p5HAP4AEqbYhx4036AGMm075fH9F8Qwi3oJ+v4u50FkT/KkvywNGtwkk0zRI+8eYm1X/xg==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "chownr": "^1.0.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.2.4", - "minizlib": "^1.1.0", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.1", - "yallist": "^3.0.2" - }, - "engines": { - "node": ">=4.5" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true, - "inBundle": true, - "license": "MIT", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/wide-align": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz", - "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true, - "dependencies": { - "string-width": "^1.0.2" - } - }, - "node_modules/sane/node_modules/fsevents/node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/sane/node_modules/fsevents/node_modules/yallist": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.2.tgz", - "integrity": "sha1-hFK0u36Dx8GI2AQcGoN8dz1ti7k=", - "dev": true, - "inBundle": true, - "license": "ISC", - "optional": true - }, - "node_modules/sane/node_modules/is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "node_modules/sane/node_modules/is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/is-number/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "dependencies": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "node_modules/sane/node_modules/nan": { - "version": "2.11.1", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.11.1.tgz", - "integrity": "sha512-iji6k87OSXa0CcrLl9z+ZiYSuR2o+c0bGuNmXdrhTQTakxytAFsC56SArGYoiHlJlFoHSnvmhpceZJaXkVuOtA==", - "dev": true, - "optional": true - }, - "node_modules/sane/node_modules/normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "dev": true, - "dependencies": { - "remove-trailing-separator": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/watch": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/watch/-/watch-0.18.0.tgz", - "integrity": "sha1-KAlUdsbffJDJYxOJkMClQj60uYY=", - "dev": true, - "dependencies": { - "exec-sh": "^0.2.0", - "minimist": "^1.2.0" - }, - "bin": { - "watch": "cli.js" - }, - "engines": { - "node": ">=0.1.95" - } - }, - "node_modules/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "dev": true - }, - "node_modules/semver": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz", - "integrity": "sha1-MAvG4OhjdPe6YQaLWx7NV/xlMto=", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/semver-compare": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", - "integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=", - "dev": true - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, - "node_modules/set-value": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", - "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", - "dev": true, - "dependencies": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.3", - "split-string": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/set-value/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", - "dev": true - }, - "node_modules/sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "dev": true, - "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - }, - "bin": { - "sha.js": "bin.js" - } - }, - "node_modules/shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "dev": true, - "dependencies": { - "shebang-regex": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/shellwords": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", - "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", - "dev": true - }, - "node_modules/signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true - }, - "node_modules/sisteransi": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-0.1.1.tgz", - "integrity": "sha512-PmGOd02bM9YO5ifxpw36nrNMBTptEtfRl4qUYl9SndkolplkrZZOW7PGHjrZL53QvMVj9nQ+TKqUnRsw4tJa4g==", - "dev": true - }, - "node_modules/slash": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", - "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", - "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", - "dev": true, - "dependencies": { - "base": "^0.11.1", - "debug": "^2.2.0", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "map-cache": "^0.2.2", - "source-map": "^0.5.6", - "source-map-resolve": "^0.5.0", - "use": "^3.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-node": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", - "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", - "dev": true, - "dependencies": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-node/node_modules/define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "dependencies": { - "is-descriptor": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-node/node_modules/is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-node/node_modules/is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-node/node_modules/is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-node/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-node/node_modules/kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-util": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", - "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", - "dev": true, - "dependencies": { - "kind-of": "^3.2.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-util/node_modules/is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "node_modules/snapdragon-util/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-list-map": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", - "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==", - "dev": true - }, - "node_modules/source-map": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz", - "integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-resolve": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", - "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", - "dev": true, - "dependencies": { - "atob": "^2.1.1", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - }, - "node_modules/source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", - "dev": true, - "dependencies": { - "source-map": "^0.5.6" - } - }, - "node_modules/source-map-url": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", - "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", - "dev": true - }, - "node_modules/spdx-correct": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz", - "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", - "dev": true, - "dependencies": { - "spdx-license-ids": "^1.0.2" - } - }, - "node_modules/spdx-expression-parse": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz", - "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=", - "dev": true - }, - "node_modules/spdx-license-ids": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz", - "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=", - "dev": true - }, - "node_modules/split-string": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", - "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", - "dev": true, - "dependencies": { - "extend-shallow": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, - "node_modules/sshpk": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.15.2.tgz", - "integrity": "sha512-Ra/OXQtuh0/enyl4ETZAfTaeksa6BXks5ZcjpSUNrjBr0DvrJKX+1fsKDPpT9TBXgHAFsa4510aNVgI8g/+SzA==", - "dev": true, - "dependencies": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stack-utils": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.2.tgz", - "integrity": "sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/static-extend": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", - "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", - "dev": true, - "dependencies": { - "define-property": "^0.2.5", - "object-copy": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/static-extend/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stealthy-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", - "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stream-browserify": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", - "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", - "dev": true, - "dependencies": { - "inherits": "~2.0.1", - "readable-stream": "^2.0.2" - } - }, - "node_modules/stream-http": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", - "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", - "dev": true, - "dependencies": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.3.6", - "to-arraybuffer": "^1.0.0", - "xtend": "^4.0.0" - } - }, - "node_modules/string_decoder": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.2.0.tgz", - "integrity": "sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/string_decoder/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "node_modules/string-length": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-2.0.0.tgz", - "integrity": "sha1-1A27aGo6zpYMHP/KVivyxF+DY+0=", - "dev": true, - "dependencies": { - "astral-regex": "^1.0.0", - "strip-ansi": "^4.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/string-length/node_modules/ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/string-length/node_modules/strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "dependencies": { - "ansi-regex": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", - "dev": true, - "dependencies": { - "is-utf8": "^0.2.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strip-eof": { - "version": "1.0.0", - "resolved": "http://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/symbol-tree": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.2.tgz", - "integrity": "sha1-rifbOPZgp64uHDt9G8KQgZuFGeY=", - "dev": true - }, - "node_modules/tapable": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.2.9.tgz", - "integrity": "sha512-2wsvQ+4GwBvLPLWsNfLCDYGsW6xb7aeC6utq2Qh0PFwgEy7K7dsma9Jsmb2zSQj7GvYAyUGSntLtsv++GmgL1A==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/test-exclude": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-4.2.3.tgz", - "integrity": "sha512-SYbXgY64PT+4GAL2ocI3HwPa4Q4TBKm0cwAVeKOt/Aoc0gSpNRjJX8w0pA1LMKZ3LBmd8pYBqApFNQLII9kavA==", - "dev": true, - "dependencies": { - "arrify": "^1.0.1", - "micromatch": "^2.3.11", - "object-assign": "^4.1.0", - "read-pkg-up": "^1.0.1", - "require-main-filename": "^1.0.1" - } - }, - "node_modules/throat": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/throat/-/throat-4.1.0.tgz", - "integrity": "sha1-iQN8vJLFarGJJua6TLsgDhVnKmo=", - "dev": true - }, - "node_modules/timers-browserify": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.10.tgz", - "integrity": "sha512-YvC1SV1XdOUaL6gx5CoGroT3Gu49pK9+TZ38ErPldOWW4j49GI1HKs9DV+KGq/w6y+LZ72W1c8cKz2vzY+qpzg==", - "dev": true, - "dependencies": { - "setimmediate": "^1.0.4" - }, - "engines": { - "node": ">=0.6.0" - } - }, - "node_modules/tmpl": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.4.tgz", - "integrity": "sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE=", - "dev": true - }, - "node_modules/to-arraybuffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", - "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", - "dev": true - }, - "node_modules/to-fast-properties": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.2.tgz", - "integrity": "sha1-8/XAw7pymafvmUJ+RGMyV63kMyA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/to-regex": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", - "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", - "dev": true, - "dependencies": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "dev": true, - "dependencies": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/to-regex-range/node_modules/is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/tough-cookie": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "dev": true, - "dependencies": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/tough-cookie/node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/tr46": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", - "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/tr46/node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/trim-right": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", - "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/tty-browserify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", - "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", - "dev": true - }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "dev": true, - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } - }, - "node_modules/tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true - }, - "node_modules/type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", - "dev": true, - "dependencies": { - "prelude-ls": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/uglify-js": { - "version": "3.4.9", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.9.tgz", - "integrity": "sha512-8CJsbKOtEbnJsTyv6LE6m6ZKniqMiFWmm9sRbopbkGs3gMPPfd3Fh8iIA4Ykv5MgaTbqHr4BaoGLJLZNhsrW1Q==", - "dev": true, - "optional": true, - "dependencies": { - "commander": "~2.17.1", - "source-map": "~0.6.1" - }, - "bin": { - "uglifyjs": "bin/uglifyjs" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/uglify-js/node_modules/commander": { - "version": "2.17.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz", - "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==", - "dev": true, - "optional": true - }, - "node_modules/uglify-js/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/uglify-to-browserify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", - "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", - "dev": true, - "optional": true - }, - "node_modules/union-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", - "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", - "dev": true, - "dependencies": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^0.4.3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/union-value/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/union-value/node_modules/set-value": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", - "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", - "dev": true, - "dependencies": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.1", - "to-object-path": "^0.3.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/unset-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", - "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", - "dev": true, - "dependencies": { - "has-value": "^0.3.1", - "isobject": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/unset-value/node_modules/has-value": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", - "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", - "dev": true, - "dependencies": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/unset-value/node_modules/has-value/node_modules/isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, - "dependencies": { - "isarray": "1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/unset-value/node_modules/has-values": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/unset-value/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/upath": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/upath/-/upath-1.1.2.tgz", - "integrity": "sha512-kXpym8nmDmlCBr7nKdIx8P2jNBa+pBpIUFRnKJ4dr8htyYGJFokkr2ZvERRtUN+9SY+JqXouNgUPtv6JQva/2Q==", - "dev": true, - "engines": { - "node": ">=4", - "yarn": "*" - } - }, - "node_modules/uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/uri-js/node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/urix": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", - "dev": true - }, - "node_modules/url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", - "dev": true, - "dependencies": { - "punycode": "1.3.2", - "querystring": "0.2.0" - } - }, - "node_modules/url/node_modules/punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", - "dev": true - }, - "node_modules/use": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", - "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/util": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz", - "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==", - "dev": true, - "dependencies": { - "inherits": "2.0.3" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "node_modules/util.promisify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.0.tgz", - "integrity": "sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA==", - "dev": true, - "dependencies": { - "define-properties": "^1.1.2", - "object.getownpropertydescriptors": "^2.0.3" - } - }, - "node_modules/uuid": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", - "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", - "dev": true, - "bin": { - "uuid": "bin/uuid" - } - }, - "node_modules/validate-npm-package-license": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz", - "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", - "dev": true, - "dependencies": { - "spdx-correct": "~1.0.0", - "spdx-expression-parse": "~1.0.0" - } - }, - "node_modules/verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "dev": true, - "engines": [ - "node >=0.6.0" - ], - "dependencies": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, - "node_modules/vm-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.0.tgz", - "integrity": "sha512-iq+S7vZJE60yejDYM0ek6zg308+UZsdtPExWP9VZoCFCz1zkJoXFnAX7aZfd/ZwrkidzdUZL0C/ryW+JwAiIGw==", - "dev": true - }, - "node_modules/w3c-hr-time": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz", - "integrity": "sha1-gqwr/2PZUOqeMYmlimViX+3xkEU=", - "dev": true, - "dependencies": { - "browser-process-hrtime": "^0.1.2" - } - }, - "node_modules/walker": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.7.tgz", - "integrity": "sha1-L3+bj9ENZ3JisYqITijRlhjgKPs=", - "dev": true, - "dependencies": { - "makeerror": "1.0.x" - } - }, - "node_modules/watch": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/watch/-/watch-1.0.2.tgz", - "integrity": "sha1-NApxe952Vyb6CqB9ch4BR6VR3ww=", - "dev": true, - "dependencies": { - "exec-sh": "^0.2.0", - "minimist": "^1.2.0" - }, - "bin": { - "watch": "cli.js" - }, - "engines": { - "node": ">=0.1.95" - } - }, - "node_modules/watchpack": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", - "integrity": "sha512-i6dHe3EyLjMmDlU1/bGQpEw25XSjkJULPuAVKCbNRefQVq48yXKUpwg538F7AZTf9kyr57zj++pQFltUa5H7yA==", - "dev": true, - "dependencies": { - "chokidar": "^2.0.2", - "graceful-fs": "^4.1.2", - "neo-async": "^2.5.0" - } - }, - "node_modules/webidl-conversions": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", - "dev": true - }, - "node_modules/webpack": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-2.7.0.tgz", - "integrity": "sha512-MjAA0ZqO1ba7ZQJRnoCdbM56mmFpipOPUv/vQpwwfSI42p5PVDdoiuK2AL2FwFUVgT859Jr43bFZXRg/LNsqvg==", - "dev": true, - "dependencies": { - "acorn": "^5.0.0", - "acorn-dynamic-import": "^2.0.0", - "ajv": "^4.7.0", - "ajv-keywords": "^1.1.1", - "async": "^2.1.2", - "enhanced-resolve": "^3.3.0", - "interpret": "^1.0.0", - "json-loader": "^0.5.4", - "json5": "^0.5.1", - "loader-runner": "^2.3.0", - "loader-utils": "^0.2.16", - "memory-fs": "~0.4.1", - "mkdirp": "~0.5.0", - "node-libs-browser": "^2.0.0", - "source-map": "^0.5.3", - "supports-color": "^3.1.0", - "tapable": "~0.2.5", - "uglify-js": "^2.8.27", - "watchpack": "^1.3.1", - "webpack-sources": "^1.0.1", - "yargs": "^6.0.0" - }, - "bin": { - "webpack": "bin/webpack.js" - }, - "engines": { - "node": ">=4.3.0 <5.0.0 || >=5.10" - } - }, - "node_modules/webpack-sources": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.3.0.tgz", - "integrity": "sha512-OiVgSrbGu7NEnEvQJJgdSFPl2qWKkWq5lHMhgiToIiN9w34EBnjYzSYs+VbL5KoYiLNtFFa7BZIKxRED3I32pA==", - "dev": true, - "dependencies": { - "source-list-map": "^2.0.0", - "source-map": "~0.6.1" - } - }, - "node_modules/webpack-sources/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/webpack/node_modules/big.js": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz", - "integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/webpack/node_modules/camelcase": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", - "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/webpack/node_modules/loader-utils": { - "version": "0.2.17", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-0.2.17.tgz", - "integrity": "sha1-+G5jdNQyBabmxg6RlvF8Apm/s0g=", - "dev": true, - "dependencies": { - "big.js": "^3.1.3", - "emojis-list": "^2.0.0", - "json5": "^0.5.0", - "object-assign": "^4.0.1" - } - }, - "node_modules/webpack/node_modules/supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "dependencies": { - "has-flag": "^1.0.0" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/webpack/node_modules/uglify-js": { - "version": "2.8.29", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", - "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", - "dev": true, - "dependencies": { - "source-map": "~0.5.1", - "uglify-to-browserify": "~1.0.0", - "yargs": "~3.10.0" - }, - "bin": { - "uglifyjs": "bin/uglifyjs" - }, - "engines": { - "node": ">=0.8.0" - }, - "optionalDependencies": { - "uglify-to-browserify": "~1.0.0" - } - }, - "node_modules/webpack/node_modules/uglify-js/node_modules/yargs": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", - "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", - "dev": true, - "dependencies": { - "camelcase": "^1.0.2", - "cliui": "^2.1.0", - "decamelize": "^1.0.0", - "window-size": "0.1.0" - } - }, - "node_modules/webpack/node_modules/yargs": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-6.6.0.tgz", - "integrity": "sha1-eC7CHvQDNF+DCoCMo9UTr1YGUgg=", - "dev": true, - "dependencies": { - "camelcase": "^3.0.0", - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^1.0.2", - "which-module": "^1.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^4.2.0" - } - }, - "node_modules/webpack/node_modules/yargs/node_modules/camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/webpack/node_modules/yargs/node_modules/cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", - "dev": true, - "dependencies": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" - } - }, - "node_modules/whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", - "dev": true, - "dependencies": { - "iconv-lite": "0.4.24" - } - }, - "node_modules/whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", - "dev": true - }, - "node_modules/whatwg-url": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-6.5.0.tgz", - "integrity": "sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ==", - "dev": true, - "dependencies": { - "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" - } - }, - "node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/which-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", - "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=", - "dev": true - }, - "node_modules/window-size": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", - "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/wordwrap": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", - "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", - "dev": true, - "dependencies": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "node_modules/write-file-atomic": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.3.0.tgz", - "integrity": "sha512-xuPeK4OdjWqtfi59ylvVL0Yn35SF3zgcAcv7rBPFHVaEapaDr4GdGgm3j7ckTwH9wHL7fGmgfAnb0+THrHb8tA==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.2" - } - }, - "node_modules/write-file-atomic/node_modules/graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - }, - "node_modules/ws": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.2.tgz", - "integrity": "sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA==", - "dev": true, - "dependencies": { - "async-limiter": "~1.0.0" - } - }, - "node_modules/xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", - "dev": true - }, - "node_modules/xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true, - "engines": { - "node": ">=0.4" - } - }, - "node_modules/y18n": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", - "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", - "dev": true - }, - "node_modules/yallist": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", - "dev": true - }, - "node_modules/yargs": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-11.1.0.tgz", - "integrity": "sha512-NwW69J42EsCSanF8kyn5upxvjp5ds+t3+udGBeTbFnERA+lF541DDpMawzo4z6W/QrzNM18D+BPMiOBibnFV5A==", - "dev": true, - "dependencies": { - "cliui": "^4.0.0", - "decamelize": "^1.1.1", - "find-up": "^2.1.0", - "get-caller-file": "^1.0.1", - "os-locale": "^2.0.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^9.0.2" - } - }, - "node_modules/yargs-parser": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-4.2.1.tgz", - "integrity": "sha1-KczqwNxPA8bIe0qfIX3RjJ90hxw=", - "dev": true, - "dependencies": { - "camelcase": "^3.0.0" - } - }, - "node_modules/yargs-parser/node_modules/camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/yargs/node_modules/ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/yargs/node_modules/cliui": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", - "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", - "dev": true, - "dependencies": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" - } - }, - "node_modules/yargs/node_modules/cross-spawn": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", - "dev": true, - "dependencies": { - "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "node_modules/yargs/node_modules/execa": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", - "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", - "dev": true, - "dependencies": { - "cross-spawn": "^5.0.1", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/yargs/node_modules/find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "dependencies": { - "locate-path": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/yargs/node_modules/get-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", - "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/yargs/node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/yargs/node_modules/locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "dependencies": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/yargs/node_modules/os-locale": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", - "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", - "dev": true, - "dependencies": { - "execa": "^0.7.0", - "lcid": "^1.0.0", - "mem": "^1.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/yargs/node_modules/p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "dependencies": { - "p-try": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/yargs/node_modules/p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "dependencies": { - "p-limit": "^1.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/yargs/node_modules/p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/yargs/node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/yargs/node_modules/string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "dependencies": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/yargs/node_modules/strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "dependencies": { - "ansi-regex": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/yargs/node_modules/which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "node_modules/yargs/node_modules/yargs-parser": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-9.0.2.tgz", - "integrity": "sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc=", - "dev": true, - "dependencies": { - "camelcase": "^4.1.0" - } - } - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", - "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", - "dev": true, - "requires": { - "@babel/highlight": "^7.0.0" - } - }, - "@babel/highlight": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", - "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", - "dev": true, - "requires": { - "chalk": "^2.0.0", - "esutils": "^2.0.2", - "js-tokens": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "abab": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.0.tgz", - "integrity": "sha512-sY5AXXVZv4Y1VACTtR11UJCPHHudgY5i26Qj5TypE6DKlIApbwb5uqhXcJ5UUGbvZNRh7EeIoW+LrJumBsKp7w==", - "dev": true - }, - "acorn": { - "version": "5.7.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", - "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", - "dev": true - }, - "acorn-dynamic-import": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz", - "integrity": "sha1-x1K9IQvvZ5UBtsbLf8hPj0cVjMQ=", - "dev": true, - "requires": { - "acorn": "^4.0.3" - }, - "dependencies": { - "acorn": { - "version": "4.0.13", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", - "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", - "dev": true - } - } - }, - "acorn-globals": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.0.tgz", - "integrity": "sha512-hMtHj3s5RnuhvHPowpBYvJVj3rAar82JiDQHvGs1zO0l10ocX/xEdBShNHTJaboucJUsScghp74pH3s7EnHHQw==", - "dev": true, - "requires": { - "acorn": "^6.0.1", - "acorn-walk": "^6.0.1" - }, - "dependencies": { - "acorn": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.0.4.tgz", - "integrity": "sha512-VY4i5EKSKkofY2I+6QLTbTTN/UvEQPCo6eiwzzSaSWfpaDhOmStMCMod6wmuPciNq+XS0faCglFu2lHZpdHUtg==", - "dev": true - } - } - }, - "acorn-walk": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-6.1.1.tgz", - "integrity": "sha512-OtUw6JUTgxA2QoqqmrmQ7F2NYqiBPi/L2jqHyFtllhOUvXYQXf0Z1CYUinIfyT4bTCGmrA7gX9FvHA81uzCoVw==", - "dev": true - }, - "ajv": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", - "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", - "dev": true, - "requires": { - "co": "^4.6.0", - "json-stable-stringify": "^1.0.1" - } - }, - "ajv-keywords": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-1.5.1.tgz", - "integrity": "sha1-MU3QpLM2j609/NxU7eYXG4htrzw=", - "dev": true - }, - "align-text": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", - "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", - "dev": true, - "requires": { - "kind-of": "^3.0.2", - "longest": "^1.0.1", - "repeat-string": "^1.5.2" - } - }, - "ansi-escapes": { - "version": "3.1.0", - "resolved": "http://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.1.0.tgz", - "integrity": "sha512-UgAb8H9D41AQnu/PbWlCofQVcnV4Gs2bBJi9eZPxfU/hgglFh3SMDMENRIqdr7H6XFnXdoknctFByVsCOotTVw==", - "dev": true - }, - "ansi-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.0.0.tgz", - "integrity": "sha1-xQYbbg74qBd15Q9dZhUb9r83EQc=", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "anymatch": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", - "dev": true, - "requires": { - "micromatch": "^3.1.4", - "normalize-path": "^2.1.1" - }, - "dependencies": { - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true - }, - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true - }, - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", - "dev": true, - "requires": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - } - }, - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "dev": true, - "requires": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "dev": true, - "requires": { - "remove-trailing-separator": "^1.0.1" - } - } - } - }, - "append-transform": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-0.4.0.tgz", - "integrity": "sha1-126/jKlNJ24keja61EpLdKthGZE=", - "dev": true, - "requires": { - "default-require-extensions": "^1.0.0" - } - }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "arr-diff": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", - "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", - "dev": true, - "requires": { - "arr-flatten": "^1.0.1" - } - }, - "arr-flatten": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.0.1.tgz", - "integrity": "sha1-5f/lTUXhnzLyFukeuZyM6JK7YEs=", - "dev": true - }, - "arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", - "dev": true - }, - "array-differ": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-2.1.0.tgz", - "integrity": "sha512-KbUpJgx909ZscOc/7CLATBFam7P1Z1QRQInvgT0UztM9Q72aGKCunKASAl7WNW0tnPmPyEMeMhdsfWhfmW037w==", - "dev": true - }, - "array-equal": { - "version": "1.0.0", - "resolved": "http://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz", - "integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=", - "dev": true - }, - "array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", - "dev": true, - "requires": { - "array-uniq": "^1.0.1" - } - }, - "array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", - "dev": true - }, - "array-unique": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", - "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", - "dev": true - }, - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", - "dev": true - }, - "asn1": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", - "dev": true, - "requires": { - "safer-buffer": "~2.1.0" - } - }, - "asn1.js": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", - "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, - "assert": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", - "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", - "dev": true, - "requires": { - "object-assign": "^4.1.1", - "util": "0.10.3" - }, - "dependencies": { - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", - "dev": true - }, - "util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", - "dev": true, - "requires": { - "inherits": "2.0.1" - } - } - } - }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true - }, - "assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", - "dev": true - }, - "astral-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", - "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", - "dev": true - }, - "async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", - "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", - "dev": true, - "requires": { - "lodash": "^4.17.10" - } - }, - "async-each": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz", - "integrity": "sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==", - "dev": true - }, - "async-limiter": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", - "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==", - "dev": true - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true - }, - "atob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", - "dev": true - }, - "aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", - "dev": true - }, - "aws4": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", - "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", - "dev": true - }, - "babel-code-frame": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", - "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "esutils": "^2.0.2", - "js-tokens": "^3.0.2" - }, - "dependencies": { - "js-tokens": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", - "dev": true - } - } - }, - "babel-core": { - "version": "6.26.3", - "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", - "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-generator": "^6.26.0", - "babel-helpers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-register": "^6.26.0", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "convert-source-map": "^1.5.1", - "debug": "^2.6.9", - "json5": "^0.5.1", - "lodash": "^4.17.4", - "minimatch": "^3.0.4", - "path-is-absolute": "^1.0.1", - "private": "^0.1.8", - "slash": "^1.0.0", - "source-map": "^0.5.7" - }, - "dependencies": { - "babel-generator": { - "version": "6.26.1", - "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", - "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", - "dev": true, - "requires": { - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "detect-indent": "^4.0.0", - "jsesc": "^1.3.0", - "lodash": "^4.17.4", - "source-map": "^0.5.7", - "trim-right": "^1.0.1" - } - }, - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "convert-source-map": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", - "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.1" - } - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "private": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", - "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "babel-generator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.24.1.tgz", - "integrity": "sha1-5xX0hsWN7SVknYiJRNUqoHxdlJc=", - "dev": true, - "requires": { - "babel-messages": "^6.23.0", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1", - "detect-indent": "^4.0.0", - "jsesc": "^1.3.0", - "lodash": "^4.2.0", - "source-map": "^0.5.0", - "trim-right": "^1.0.1" - }, - "dependencies": { - "babel-messages": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-helper-call-delegate": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz", - "integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=", - "dev": true, - "requires": { - "babel-helper-hoist-variables": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true - }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true - } - } - }, - "babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-helper-define-map": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz", - "integrity": "sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8=", - "dev": true, - "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "babel-helper-function-name": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz", - "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=", - "dev": true, - "requires": { - "babel-helper-get-function-arity": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true - } - } - }, - "babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true - }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true - } - } - }, - "babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-helper-get-function-arity": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz", - "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-helper-hoist-variables": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz", - "integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-helper-optimise-call-expression": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz", - "integrity": "sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-helper-regex": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz", - "integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "babel-helper-replace-supers": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz", - "integrity": "sha1-v22/5Dk40XNpohPKiov3S2qQqxo=", - "dev": true, - "requires": { - "babel-helper-optimise-call-expression": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - }, - "dependencies": { - "babel-messages": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true - } - } - }, - "babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true - }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true - } - } - }, - "babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-helpers": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", - "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "babel-jest": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-23.6.0.tgz", - "integrity": "sha512-lqKGG6LYXYu+DQh/slrQ8nxXQkEkhugdXsU6St7GmhVS7Ilc/22ArwqXNJrf0QaOBjZB0360qZMwXqDYQHXaew==", - "dev": true, - "requires": { - "babel-plugin-istanbul": "^4.1.6", - "babel-preset-jest": "^23.2.0" - } - }, - "babel-loader": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-7.1.5.tgz", - "integrity": "sha512-iCHfbieL5d1LfOQeeVJEUyD9rTwBcP/fcEbRCfempxTDuqrKpu0AZjLAQHEQa3Yqyj9ORKe2iHfoj4rHLf7xpw==", - "dev": true, - "requires": { - "find-cache-dir": "^1.0.0", - "loader-utils": "^1.0.2", - "mkdirp": "^0.5.1" - } - }, - "babel-messages": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "babel-plugin-add-module-exports": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz", - "integrity": "sha1-mumh9KjcZ/DN7E9K7aHkOl/2XiU=", - "dev": true - }, - "babel-plugin-check-es2015-constants": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz", - "integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-istanbul": { - "version": "4.1.6", - "resolved": "http://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz", - "integrity": "sha512-PWP9FQ1AhZhS01T/4qLSKoHGY/xvkZdVBGlKM/HuxxS3+sC66HhTNR7+MpbO/so/cz/wY94MeSWJuP1hXIPfwQ==", - "dev": true, - "requires": { - "babel-plugin-syntax-object-rest-spread": "^6.13.0", - "find-up": "^2.1.0", - "istanbul-lib-instrument": "^1.10.1", - "test-exclude": "^4.2.1" - }, - "dependencies": { - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - } - }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - } - } - }, - "babel-plugin-jest-hoist": { - "version": "23.2.0", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-23.2.0.tgz", - "integrity": "sha1-5h+uBaHKiAGq3uV6bWa4zvr0QWc=", - "dev": true - }, - "babel-plugin-syntax-object-rest-spread": { - "version": "6.13.0", - "resolved": "http://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", - "integrity": "sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=", - "dev": true - }, - "babel-plugin-transform-es2015-arrow-functions": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz", - "integrity": "sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-block-scoped-functions": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz", - "integrity": "sha1-u8UbSflk1wy42OC5ToICRs46YUE=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-block-scoping": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz", - "integrity": "sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-classes": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz", - "integrity": "sha1-WkxYpQyclGHlZLSyo7+ryXolhNs=", - "dev": true, - "requires": { - "babel-helper-define-map": "^6.24.1", - "babel-helper-function-name": "^6.24.1", - "babel-helper-optimise-call-expression": "^6.24.1", - "babel-helper-replace-supers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - }, - "dependencies": { - "babel-messages": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true - } - } - }, - "babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true - }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true - } - } - }, - "babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-computed-properties": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz", - "integrity": "sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-destructuring": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz", - "integrity": "sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-duplicate-keys": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz", - "integrity": "sha1-c+s9MQypaePvnskcU3QabxV2Qj4=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-for-of": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz", - "integrity": "sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-function-name": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz", - "integrity": "sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=", - "dev": true, - "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-literals": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz", - "integrity": "sha1-T1SgLWzWbPkVKAAZox0xklN3yi4=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-modules-amd": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz", - "integrity": "sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ=", - "dev": true, - "requires": { - "babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-modules-commonjs": { - "version": "6.26.2", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz", - "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", - "dev": true, - "requires": { - "babel-plugin-transform-strict-mode": "^6.24.1", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-types": "^6.26.0" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-modules-systemjs": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz", - "integrity": "sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM=", - "dev": true, - "requires": { - "babel-helper-hoist-variables": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-modules-umd": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz", - "integrity": "sha1-rJl+YoXNGO1hdq22B9YCNErThGg=", - "dev": true, - "requires": { - "babel-plugin-transform-es2015-modules-amd": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-object-super": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz", - "integrity": "sha1-JM72muIcuDp/hgPa0CH1cusnj40=", - "dev": true, - "requires": { - "babel-helper-replace-supers": "^6.24.1", - "babel-runtime": "^6.22.0" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-parameters": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz", - "integrity": "sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=", - "dev": true, - "requires": { - "babel-helper-call-delegate": "^6.24.1", - "babel-helper-get-function-arity": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true - } - } - }, - "babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true - }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true - } - } - }, - "babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-shorthand-properties": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz", - "integrity": "sha1-JPh11nIch2YbvZmkYi5R8U3jiqA=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-spread": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz", - "integrity": "sha1-1taKmfia7cRTbIGlQujdnxdG+NE=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-sticky-regex": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz", - "integrity": "sha1-AMHNsaynERLN8M9hJsLta0V8zbw=", - "dev": true, - "requires": { - "babel-helper-regex": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-template-literals": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz", - "integrity": "sha1-qEs0UPfp+PH2g51taH2oS7EjbY0=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-typeof-symbol": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz", - "integrity": "sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-es2015-unicode-regex": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz", - "integrity": "sha1-04sS9C6nMj9yk4fxinxa4frrNek=", - "dev": true, - "requires": { - "babel-helper-regex": "^6.24.1", - "babel-runtime": "^6.22.0", - "regexpu-core": "^2.0.0" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-plugin-transform-regenerator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.24.1.tgz", - "integrity": "sha1-uNowWtQ8PJm0hI5P5AN7dw0jxBg=", - "dev": true, - "requires": { - "regenerator-transform": "0.9.11" - } - }, - "babel-plugin-transform-strict-mode": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz", - "integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "babel-polyfill": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", - "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "core-js": "^2.5.0", - "regenerator-runtime": "^0.10.5" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - }, - "dependencies": { - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "core-js": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.9.tgz", - "integrity": "sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "babel-preset-es2015": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz", - "integrity": "sha1-1EBQ1rwsn+6nAqrzjXJ6AhBTiTk=", - "dev": true, - "requires": { - "babel-plugin-check-es2015-constants": "^6.22.0", - "babel-plugin-transform-es2015-arrow-functions": "^6.22.0", - "babel-plugin-transform-es2015-block-scoped-functions": "^6.22.0", - "babel-plugin-transform-es2015-block-scoping": "^6.24.1", - "babel-plugin-transform-es2015-classes": "^6.24.1", - "babel-plugin-transform-es2015-computed-properties": "^6.24.1", - "babel-plugin-transform-es2015-destructuring": "^6.22.0", - "babel-plugin-transform-es2015-duplicate-keys": "^6.24.1", - "babel-plugin-transform-es2015-for-of": "^6.22.0", - "babel-plugin-transform-es2015-function-name": "^6.24.1", - "babel-plugin-transform-es2015-literals": "^6.22.0", - "babel-plugin-transform-es2015-modules-amd": "^6.24.1", - "babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", - "babel-plugin-transform-es2015-modules-systemjs": "^6.24.1", - "babel-plugin-transform-es2015-modules-umd": "^6.24.1", - "babel-plugin-transform-es2015-object-super": "^6.24.1", - "babel-plugin-transform-es2015-parameters": "^6.24.1", - "babel-plugin-transform-es2015-shorthand-properties": "^6.24.1", - "babel-plugin-transform-es2015-spread": "^6.22.0", - "babel-plugin-transform-es2015-sticky-regex": "^6.24.1", - "babel-plugin-transform-es2015-template-literals": "^6.22.0", - "babel-plugin-transform-es2015-typeof-symbol": "^6.22.0", - "babel-plugin-transform-es2015-unicode-regex": "^6.24.1", - "babel-plugin-transform-regenerator": "^6.24.1" - } - }, - "babel-preset-jest": { - "version": "23.2.0", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-23.2.0.tgz", - "integrity": "sha1-jsegOhOPABoaj7HoETZSvxpV2kY=", - "dev": true, - "requires": { - "babel-plugin-jest-hoist": "^23.2.0", - "babel-plugin-syntax-object-rest-spread": "^6.13.0" - } - }, - "babel-register": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", - "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", - "dev": true, - "requires": { - "babel-core": "^6.26.0", - "babel-runtime": "^6.26.0", - "core-js": "^2.5.0", - "home-or-tmp": "^2.0.0", - "lodash": "^4.17.4", - "mkdirp": "^0.5.1", - "source-map-support": "^0.4.15" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "core-js": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.9.tgz", - "integrity": "sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "babel-runtime": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.18.0.tgz", - "integrity": "sha1-D0F3/9mEku8Tufgj6ZlKAlhMkHg=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.9.5" - } - }, - "babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true - }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - }, - "dependencies": { - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true - } - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "base": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", - "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", - "dev": true, - "requires": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - } - } - }, - "base64-js": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz", - "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==", - "dev": true - }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "dev": true, - "requires": { - "tweetnacl": "^0.14.3" - } - }, - "big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", - "dev": true - }, - "binary-extensions": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", - "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", - "dev": true - }, - "bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", - "dev": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - }, - "dependencies": { - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true - } - } - }, - "braces": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", - "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", - "dev": true, - "requires": { - "expand-range": "^1.8.1", - "preserve": "^0.2.0", - "repeat-element": "^1.1.2" - } - }, - "brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", - "dev": true - }, - "browser-process-hrtime": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-0.1.3.tgz", - "integrity": "sha512-bRFnI4NnjO6cnyLmOV/7PVoDEMJChlcfN0z4s1YMBY989/SvlfMI1lgCnkFUs53e9gQF+w7qu7XdllSTiSl8Aw==", - "dev": true - }, - "browser-resolve": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", - "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", - "dev": true, - "requires": { - "resolve": "1.1.7" - } - }, - "browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "dev": true, - "requires": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "browserify-cipher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", - "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", - "dev": true, - "requires": { - "browserify-aes": "^1.0.4", - "browserify-des": "^1.0.0", - "evp_bytestokey": "^1.0.0" - } - }, - "browserify-des": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", - "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", - "dev": true, - "requires": { - "cipher-base": "^1.0.1", - "des.js": "^1.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - }, - "dependencies": { - "safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true - } - } - }, - "browserify-rsa": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", - "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "randombytes": "^2.0.1" - } - }, - "browserify-sign": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz", - "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", - "dev": true, - "requires": { - "bn.js": "^4.1.1", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.2", - "elliptic": "^6.0.0", - "inherits": "^2.0.1", - "parse-asn1": "^5.0.0" - } - }, - "browserify-zlib": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", - "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", - "dev": true, - "requires": { - "pako": "~1.0.5" - } - }, - "bser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.0.0.tgz", - "integrity": "sha1-mseNPtXZFYBP2HrLFYvHlxR6Fxk=", - "dev": true, - "requires": { - "node-int64": "^0.4.0" - } - }, - "buffer": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", - "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", - "dev": true, - "requires": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" - } - }, - "buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", - "dev": true - }, - "buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", - "dev": true - }, - "builtin-modules": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true - }, - "builtin-status-codes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", - "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", - "dev": true - }, - "cache-base": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", - "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", - "dev": true, - "requires": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - } - } - }, - "caller-callsite": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz", - "integrity": "sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ=", - "dev": true, - "requires": { - "callsites": "^2.0.0" - } - }, - "caller-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz", - "integrity": "sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ=", - "dev": true, - "requires": { - "caller-callsite": "^2.0.0" - } - }, - "callsites": { - "version": "2.0.0", - "resolved": "http://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", - "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=", - "dev": true - }, - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "capture-exit": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-1.2.0.tgz", - "integrity": "sha1-HF/MSJ/QqwDU8ax64QcuMXP7q28=", - "dev": true, - "requires": { - "rsvp": "^3.3.3" - } - }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", - "dev": true - }, - "center-align": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", - "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", - "dev": true, - "requires": { - "align-text": "^0.1.3", - "lazy-cache": "^1.0.3" - } - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "chokidar": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.6.tgz", - "integrity": "sha512-V2jUo67OKkc6ySiRpJrjlpJKl9kDuG+Xb8VgsGzb+aEouhgS1D0weyPU4lEzdAcsCAvrih2J2BqyXqHWvVLw5g==", - "dev": true, - "requires": { - "anymatch": "^2.0.0", - "async-each": "^1.0.1", - "braces": "^2.3.2", - "fsevents": "^1.2.7", - "glob-parent": "^3.1.0", - "inherits": "^2.0.3", - "is-binary-path": "^1.0.0", - "is-glob": "^4.0.0", - "normalize-path": "^3.0.0", - "path-is-absolute": "^1.0.0", - "readdirp": "^2.2.1", - "upath": "^1.1.1" - }, - "dependencies": { - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true - }, - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - } - }, - "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "dev": true, - "requires": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - }, - "dependencies": { - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "dev": true, - "requires": { - "is-extglob": "^2.1.0" - } - } - } - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - } - } - }, - "ci-info": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.6.0.tgz", - "integrity": "sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==", - "dev": true - }, - "cipher-base": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "class-utils": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", - "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", - "dev": true, - "requires": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - } - } - }, - "cliui": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", - "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", - "dev": true, - "requires": { - "center-align": "^0.1.1", - "right-align": "^0.1.1", - "wordwrap": "0.0.2" - } - }, - "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", - "dev": true - }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true - }, - "collection-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", - "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", - "dev": true, - "requires": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "combined-stream": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", - "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", - "dev": true, - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", - "dev": true - }, - "component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true - }, - "console-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", - "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", - "dev": true, - "requires": { - "date-now": "^0.1.4" - } - }, - "constants-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", - "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", - "dev": true - }, - "convert-source-map": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.0.tgz", - "integrity": "sha1-ms1whRxtXf3ZPZKC5e35SgP/RrU=", - "dev": true - }, - "copy-descriptor": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", - "dev": true - }, - "core-js": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.4.1.tgz", - "integrity": "sha1-TekR5mew6ukSTjQlS1OupvxhjT4=", - "dev": true - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true - }, - "cosmiconfig": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz", - "integrity": "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==", - "dev": true, - "requires": { - "import-fresh": "^2.0.0", - "is-directory": "^0.3.1", - "js-yaml": "^3.13.1", - "parse-json": "^4.0.0" - }, - "dependencies": { - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "requires": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - } - } - } - }, - "create-ecdh": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz", - "integrity": "sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "elliptic": "^6.0.0" - } - }, - "create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "dev": true, - "requires": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" - } - }, - "create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "dev": true, - "requires": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "dependencies": { - "semver": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", - "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", - "dev": true - } - } - }, - "crypto-browserify": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", - "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", - "dev": true, - "requires": { - "browserify-cipher": "^1.0.0", - "browserify-sign": "^4.0.0", - "create-ecdh": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.0", - "diffie-hellman": "^5.0.0", - "inherits": "^2.0.1", - "pbkdf2": "^3.0.3", - "public-encrypt": "^4.0.0", - "randombytes": "^2.0.0", - "randomfill": "^1.0.3" - } - }, - "cssom": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.4.tgz", - "integrity": "sha512-+7prCSORpXNeR4/fUP3rL+TzqtiFfhMvTd7uEqMdgPvLPt4+uzFUeufx5RHjGTACCargg/DiEt/moMQmvnfkog==", - "dev": true - }, - "cssstyle": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-1.1.1.tgz", - "integrity": "sha512-364AI1l/M5TYcFH83JnOH/pSqgaNnKmYgKrm0didZMGKWjQB60dymwWy1rKUgL3J1ffdq9xVi2yGLHdSjjSNog==", - "dev": true, - "requires": { - "cssom": "0.3.x" - } - }, - "dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, - "data-urls": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-1.1.0.tgz", - "integrity": "sha512-YTWYI9se1P55u58gL5GkQHW4P6VJBJ5iBT+B5a7i2Tjadhv52paJG0qHX4A0OR6/t52odI64KP2YvFpkDOi3eQ==", - "dev": true, - "requires": { - "abab": "^2.0.0", - "whatwg-mimetype": "^2.2.0", - "whatwg-url": "^7.0.0" - }, - "dependencies": { - "whatwg-url": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.0.0.tgz", - "integrity": "sha512-37GeVSIJ3kn1JgKyjiYNmSLP1yzbpb29jdmwBSgkD9h40/hyrR/OifpVUndji3tmwGgD8qpw7iQu3RSbCrBpsQ==", - "dev": true, - "requires": { - "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" - } - } - } - }, - "date-now": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", - "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", - "dev": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true - }, - "decode-uri-component": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", - "dev": true - }, - "deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", - "dev": true - }, - "default-require-extensions": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-1.0.0.tgz", - "integrity": "sha1-836hXT4T/9m0N9M+GnW1+5eHTLg=", - "dev": true, - "requires": { - "strip-bom": "^2.0.0" - } - }, - "define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "dev": true, - "requires": { - "object-keys": "^1.0.12" - } - }, - "define-property": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", - "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", - "dev": true, - "requires": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" - }, - "dependencies": { - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - } - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true - }, - "des.js": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", - "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, - "detect-indent": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", - "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", - "dev": true, - "requires": { - "repeating": "^2.0.0" - } - }, - "detect-newline": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", - "integrity": "sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I=", - "dev": true - }, - "diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", - "dev": true - }, - "diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" - } - }, - "domain-browser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", - "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", - "dev": true - }, - "domexception": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-1.0.1.tgz", - "integrity": "sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug==", - "dev": true, - "requires": { - "webidl-conversions": "^4.0.2" - } - }, - "ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "dev": true, - "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "elliptic": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.0.tgz", - "integrity": "sha512-eFOJTMyCYb7xtE/caJ6JJu+bhi67WCYNbkGSknu20pmM8Ke/bqOfdnZWxyoGN26JgfxTbXrsCkEw4KheCT/KGg==", - "dev": true, - "requires": { - "bn.js": "^4.4.0", - "brorand": "^1.0.1", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.0" - } - }, - "emojis-list": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", - "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=", - "dev": true - }, - "end-of-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", - "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", - "dev": true, - "requires": { - "once": "^1.4.0" - }, - "dependencies": { - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "requires": { - "wrappy": "1" - } - } - } - }, - "enhanced-resolve": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz", - "integrity": "sha1-BCHjOf1xQZs9oT0Smzl5BAIwR24=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "memory-fs": "^0.4.0", - "object-assign": "^4.0.1", - "tapable": "^0.2.7" - } - }, - "errno": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz", - "integrity": "sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg==", - "dev": true, - "requires": { - "prr": "~1.0.1" - } - }, - "error-ex": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.0.tgz", - "integrity": "sha1-5ntD8+gsluo6WE/+4Ln8MyXYAtk=", - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "es-abstract": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.12.0.tgz", - "integrity": "sha512-C8Fx/0jFmV5IPoMOFPA9P9G5NtqW+4cOPit3MIuvR2t7Ag2K15EJTpxnHAYTzL+aYQJIESYeXZmDBfOBE1HcpA==", - "dev": true, - "requires": { - "es-to-primitive": "^1.1.1", - "function-bind": "^1.1.1", - "has": "^1.0.1", - "is-callable": "^1.1.3", - "is-regex": "^1.0.4" - } - }, - "es-to-primitive": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", - "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", - "dev": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "escodegen": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.11.0.tgz", - "integrity": "sha512-IeMV45ReixHS53K/OmfKAIztN/igDHzTJUhZM3k1jMhIZWjk45SMwAtBsEXiJp3vSPmTcu6CXn7mDvFHRN66fw==", - "dev": true, - "requires": { - "esprima": "^3.1.3", - "estraverse": "^4.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.6.1" - }, - "dependencies": { - "esprima": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", - "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true - } - } - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "estraverse": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", - "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", - "dev": true - }, - "esutils": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", - "dev": true - }, - "events": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.0.0.tgz", - "integrity": "sha512-Dc381HFWJzEOhQ+d8pkNon++bk9h6cdAoAj4iE6Q4y6xgTzySWXlKn05/TVNpjnfRqi/X0EpJEJohPjNI3zpVA==", - "dev": true - }, - "evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "dev": true, - "requires": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" - }, - "dependencies": { - "safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true - } - } - }, - "exec-sh": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.2.1.tgz", - "integrity": "sha1-FjuYpuiea2W0fCoo0hW8H2OYnDg=", - "dev": true, - "requires": { - "merge": "^1.1.3" - } - }, - "execa": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", - "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", - "dev": true, - "requires": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - }, - "exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", - "dev": true - }, - "expand-brackets": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", - "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", - "dev": true, - "requires": { - "is-posix-bracket": "^0.1.0" - } - }, - "expand-range": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", - "dev": true, - "requires": { - "fill-range": "^2.1.0" - } - }, - "expect": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-23.6.0.tgz", - "integrity": "sha512-dgSoOHgmtn/aDGRVFWclQyPDKl2CQRq0hmIEoUAuQs/2rn2NcvCWcSCovm6BLeuB/7EZuLGu2QfnR+qRt5OM4w==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.0", - "jest-diff": "^23.6.0", - "jest-get-type": "^22.1.0", - "jest-matcher-utils": "^23.6.0", - "jest-message-util": "^23.4.0", - "jest-regex-util": "^23.3.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - } - } - }, - "extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true - }, - "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "dev": true, - "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "extglob": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", - "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true - }, - "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", - "dev": true - }, - "fast-json-stable-stringify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", - "dev": true - }, - "fb-watchman": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.0.tgz", - "integrity": "sha1-VOmr99+i8mzZsWNsWIwa/AXeXVg=", - "dev": true, - "requires": { - "bser": "^2.0.0" - } - }, - "filename-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.0.tgz", - "integrity": "sha1-mW4+gEebmLmJfxWopYs9CE6SZ3U=", - "dev": true - }, - "fileset": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/fileset/-/fileset-2.0.3.tgz", - "integrity": "sha1-jnVIqW08wjJ+5eZ0FocjozO7oqA=", - "dev": true, - "requires": { - "glob": "^7.0.3", - "minimatch": "^3.0.3" - } - }, - "fill-range": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz", - "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=", - "dev": true, - "requires": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^1.1.3", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" - } - }, - "find-cache-dir": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-1.0.0.tgz", - "integrity": "sha1-kojj6ePMN0hxfTnq3hfPcfww7m8=", - "dev": true, - "requires": { - "commondir": "^1.0.1", - "make-dir": "^1.0.0", - "pkg-dir": "^2.0.0" - } - }, - "find-up": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", - "dev": true, - "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "for-in": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-0.1.6.tgz", - "integrity": "sha1-yfluib+tGKVFr17D7TUqHZ5bTcg=", - "dev": true - }, - "for-own": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.4.tgz", - "integrity": "sha1-AUm0GjkIjHUV9R6+HBOG1F+TUHI=", - "dev": true, - "requires": { - "for-in": "^0.1.5" - } - }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true - }, - "form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - } - }, - "fragment-cache": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", - "dev": true, - "requires": { - "map-cache": "^0.2.2" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "fsevents": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.9.tgz", - "integrity": "sha512-oeyj2H3EjjonWcFjD5NvZNE9Rqe4UW+nQBU2HNeKw0koVLEFIhtyETyAakeAM3de7Z/SW5kcA+fZUait9EApnw==", - "dev": true, - "optional": true, - "requires": { - "nan": "^2.12.1", - "node-pre-gyp": "^0.12.0" - }, - "dependencies": { - "abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "bundled": true, - "dev": true, - "optional": true - }, - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "bundled": true, - "dev": true, - "optional": true - }, - "aproba": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "bundled": true, - "dev": true, - "optional": true - }, - "are-we-there-yet": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", - "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "bundled": true, - "dev": true, - "optional": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "chownr": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.1.tgz", - "integrity": "sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g==", - "bundled": true, - "dev": true, - "optional": true - }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "bundled": true, - "dev": true, - "optional": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "bundled": true, - "dev": true, - "optional": true - }, - "console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "bundled": true, - "dev": true, - "optional": true - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "bundled": true, - "dev": true, - "optional": true - }, - "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ms": "^2.1.1" - } - }, - "deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "bundled": true, - "dev": true, - "optional": true - }, - "delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", - "bundled": true, - "dev": true, - "optional": true - }, - "detect-libc": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", - "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", - "bundled": true, - "dev": true, - "optional": true - }, - "fs-minipass": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.5.tgz", - "integrity": "sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "bundled": true, - "dev": true, - "optional": true - }, - "gauge": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", - "bundled": true, - "dev": true, - "optional": true - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ignore-walk": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.1.tgz", - "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minimatch": "^3.0.4" - } - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "bundled": true, - "dev": true, - "optional": true - }, - "ini": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", - "bundled": true, - "dev": true, - "optional": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "bundled": true, - "dev": true, - "optional": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "bundled": true, - "dev": true, - "optional": true - }, - "minipass": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz", - "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" - } - }, - "minizlib": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.2.1.tgz", - "integrity": "sha512-7+4oTUOWKg7AuL3vloEWekXY2/D20cevzsrNT2kGWm+39J9hGTCBv8VI5Pm5lXZ/o3/mdR4f8rflAPhnQb8mPA==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minimist": "0.0.8" - } - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "bundled": true, - "dev": true, - "optional": true - }, - "needle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/needle/-/needle-2.3.0.tgz", - "integrity": "sha512-QBZu7aAFR0522EyaXZM0FZ9GLpq6lvQ3uq8gteiDUp7wKdy0lSd2hPlgFwVuW1CBkfEs9PfDQsQzZghLs/psdg==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "debug": "^4.1.0", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" - } - }, - "node-pre-gyp": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.12.0.tgz", - "integrity": "sha512-4KghwV8vH5k+g2ylT+sLTjy5wmUOb9vPhnM8NHvRf9dHmnW/CndrFXy2aRPaPST6dugXSdHXfeaHQm77PIz/1A==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.1", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.2.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4" - } - }, - "nopt": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", - "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "abbrev": "1", - "osenv": "^0.1.4" - } - }, - "npm-bundled": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.6.tgz", - "integrity": "sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g==", - "bundled": true, - "dev": true, - "optional": true - }, - "npm-packlist": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.1.tgz", - "integrity": "sha512-+TcdO7HJJ8peiiYhvPxsEDhF3PJFGUGRcFsGve3vxvxdcpO2Z4Z7rkosRM0kWj6LfbK/P0gu3dzk5RU1ffvFcw==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" - } - }, - "npmlog": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", - "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "bundled": true, - "dev": true, - "optional": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "bundled": true, - "dev": true, - "optional": true - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "wrappy": "1" - } - }, - "os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "bundled": true, - "dev": true, - "optional": true - }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "bundled": true, - "dev": true, - "optional": true - }, - "osenv": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", - "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "bundled": true, - "dev": true, - "optional": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "bundled": true, - "dev": true, - "optional": true - }, - "rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "rimraf": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", - "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "glob": "^7.1.3" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "bundled": true, - "dev": true, - "optional": true - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "bundled": true, - "dev": true, - "optional": true - }, - "sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "bundled": true, - "dev": true, - "optional": true - }, - "semver": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", - "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", - "bundled": true, - "dev": true, - "optional": true - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "bundled": true, - "dev": true, - "optional": true - }, - "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "bundled": true, - "dev": true, - "optional": true - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "bundled": true, - "dev": true, - "optional": true - }, - "tar": { - "version": "4.4.8", - "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.8.tgz", - "integrity": "sha512-LzHF64s5chPQQS0IYBn9IN5h3i98c12bo4NCO7e0sGM2llXQ3p2FGC5sdENN4cTW48O915Sh+x+EXx7XW96xYQ==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "chownr": "^1.1.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.3.4", - "minizlib": "^1.1.1", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.2" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "bundled": true, - "dev": true, - "optional": true - }, - "wide-align": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "string-width": "^1.0.2 || 2" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "bundled": true, - "dev": true, - "optional": true - }, - "yallist": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz", - "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "get-caller-file": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", - "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", - "dev": true - }, - "get-stdin": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz", - "integrity": "sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==", - "dev": true - }, - "get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", - "dev": true - }, - "getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-base": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", - "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", - "dev": true, - "requires": { - "glob-parent": "^2.0.0", - "is-glob": "^2.0.0" - } - }, - "glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", - "dev": true, - "requires": { - "is-glob": "^2.0.0" - } - }, - "graceful-fs": { - "version": "4.1.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.10.tgz", - "integrity": "sha1-8tcgwiCS90Mih3XHXjYSYyUB8TE=", - "dev": true - }, - "growly": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", - "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", - "dev": true - }, - "handlebars": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.1.2.tgz", - "integrity": "sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw==", - "dev": true, - "requires": { - "neo-async": "^2.6.0", - "optimist": "^0.6.1", - "source-map": "^0.6.1", - "uglify-js": "^3.1.4" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true - }, - "har-validator": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", - "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", - "dev": true, - "requires": { - "ajv": "^6.5.5", - "har-schema": "^2.0.0" - }, - "dependencies": { - "ajv": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.6.1.tgz", - "integrity": "sha512-ZoJjft5B+EJBjUyu9C9Hc0OZyPZSSlOF+plzouTrg6UlA8f+e/n8NIgBFG/9tppJtpPWfthHakK7juJdNDODww==", - "dev": true, - "requires": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - } - } - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "has-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", - "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", - "dev": true - }, - "has-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", - "dev": true, - "requires": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - } - } - }, - "has-values": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "dependencies": { - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "hash-base": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", - "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", - "dev": true, - "requires": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "home-or-tmp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", - "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", - "dev": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.1" - } - }, - "hosted-git-info": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.1.5.tgz", - "integrity": "sha1-C6gdkNouJas0ozLm7HeTbhWYEYs=", - "dev": true - }, - "html-encoding-sniffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz", - "integrity": "sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw==", - "dev": true, - "requires": { - "whatwg-encoding": "^1.0.1" - } - }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, - "https-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", - "dev": true - }, - "husky": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/husky/-/husky-1.3.1.tgz", - "integrity": "sha512-86U6sVVVf4b5NYSZ0yvv88dRgBSSXXmHaiq5pP4KDj5JVzdwKgBjEtUPOm8hcoytezFwbU+7gotXNhpHdystlg==", - "dev": true, - "requires": { - "cosmiconfig": "^5.0.7", - "execa": "^1.0.0", - "find-up": "^3.0.0", - "get-stdin": "^6.0.0", - "is-ci": "^2.0.0", - "pkg-dir": "^3.0.0", - "please-upgrade-node": "^3.1.1", - "read-pkg": "^4.0.1", - "run-node": "^1.0.0", - "slash": "^2.0.0" - }, - "dependencies": { - "ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", - "dev": true - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", - "dev": true, - "requires": { - "ci-info": "^2.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "p-limit": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.0.tgz", - "integrity": "sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "requires": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - } - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - }, - "pkg-dir": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", - "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", - "dev": true, - "requires": { - "find-up": "^3.0.0" - } - }, - "read-pkg": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-4.0.1.tgz", - "integrity": "sha1-ljYlN48+HE1IyFhytabsfV0JMjc=", - "dev": true, - "requires": { - "normalize-package-data": "^2.3.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0" - } - }, - "slash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", - "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", - "dev": true - } - } - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ieee754": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", - "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", - "dev": true - }, - "ignore": { - "version": "3.3.10", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz", - "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==", - "dev": true - }, - "import-fresh": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz", - "integrity": "sha1-2BNVwVYS04bGH53dOSLUMEgipUY=", - "dev": true, - "requires": { - "caller-path": "^2.0.0", - "resolve-from": "^3.0.0" - } - }, - "import-local": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-1.0.0.tgz", - "integrity": "sha512-vAaZHieK9qjGo58agRBg+bhHX3hoTZU/Oa3GESWLz7t1U62fk63aHuDJJEteXoDeTCcPmUT+z38gkHPZkkmpmQ==", - "dev": true, - "requires": { - "pkg-dir": "^2.0.0", - "resolve-cwd": "^2.0.0" - }, - "dependencies": { - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - } - }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "pkg-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", - "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", - "dev": true, - "requires": { - "find-up": "^2.1.0" - } - } - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - }, - "interpret": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz", - "integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==", - "dev": true - }, - "invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", - "dev": true - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "is-binary-path": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", - "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", - "dev": true, - "requires": { - "binary-extensions": "^1.0.0" - } - }, - "is-buffer": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.4.tgz", - "integrity": "sha1-z8hszV3FpS+oBIkRHGkgxFfi2Ys=", - "dev": true - }, - "is-builtin-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", - "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", - "dev": true, - "requires": { - "builtin-modules": "^1.0.0" - } - }, - "is-callable": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", - "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", - "dev": true - }, - "is-ci": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.2.1.tgz", - "integrity": "sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg==", - "dev": true, - "requires": { - "ci-info": "^1.5.0" - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-date-object": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", - "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", - "dev": true - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "is-directory": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", - "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=", - "dev": true - }, - "is-dotfile": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.2.tgz", - "integrity": "sha1-LBMjg/ORmfjtwmjKAbmwB9IFzE0=", - "dev": true - }, - "is-equal-shallow": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", - "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", - "dev": true, - "requires": { - "is-primitive": "^2.0.0" - } - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - }, - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-finite": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", - "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-generator-fn": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-1.0.0.tgz", - "integrity": "sha1-lp1J4bszKfa7fwkIm+JleLLd1Go=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "requires": { - "isobject": "^3.0.1" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - } - } - }, - "is-posix-bracket": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", - "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", - "dev": true - }, - "is-primitive": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", - "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", - "dev": true - }, - "is-regex": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", - "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", - "dev": true, - "requires": { - "has": "^1.0.1" - } - }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "dev": true - }, - "is-symbol": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", - "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", - "dev": true, - "requires": { - "has-symbols": "^1.0.0" - } - }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, - "is-utf8": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", - "dev": true - }, - "is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, - "requires": { - "isarray": "1.0.0" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - } - } - }, - "isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", - "dev": true - }, - "istanbul-api": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/istanbul-api/-/istanbul-api-1.3.7.tgz", - "integrity": "sha512-4/ApBnMVeEPG3EkSzcw25wDe4N66wxwn+KKn6b47vyek8Xb3NBAcg4xfuQbS7BqcZuTX4wxfD5lVagdggR3gyA==", - "dev": true, - "requires": { - "async": "^2.1.4", - "fileset": "^2.0.2", - "istanbul-lib-coverage": "^1.2.1", - "istanbul-lib-hook": "^1.2.2", - "istanbul-lib-instrument": "^1.10.2", - "istanbul-lib-report": "^1.1.5", - "istanbul-lib-source-maps": "^1.2.6", - "istanbul-reports": "^1.5.1", - "js-yaml": "^3.7.0", - "mkdirp": "^0.5.1", - "once": "^1.4.0" - }, - "dependencies": { - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "requires": { - "wrappy": "1" - } - } - } - }, - "istanbul-lib-coverage": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.1.tgz", - "integrity": "sha512-PzITeunAgyGbtY1ibVIUiV679EFChHjoMNRibEIobvmrCRaIgwLxNucOSimtNWUhEib/oO7QY2imD75JVgCJWQ==", - "dev": true - }, - "istanbul-lib-hook": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-1.2.2.tgz", - "integrity": "sha512-/Jmq7Y1VeHnZEQ3TL10VHyb564mn6VrQXHchON9Jf/AEcmQ3ZIiyD1BVzNOKTZf/G3gE+kiGK6SmpF9y3qGPLw==", - "dev": true, - "requires": { - "append-transform": "^0.4.0" - } - }, - "istanbul-lib-instrument": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.2.tgz", - "integrity": "sha512-aWHxfxDqvh/ZlxR8BBaEPVSWDPUkGD63VjGQn3jcw8jCp7sHEMKcrj4xfJn/ABzdMEHiQNyvDQhqm5o8+SQg7A==", - "dev": true, - "requires": { - "babel-generator": "^6.18.0", - "babel-template": "^6.16.0", - "babel-traverse": "^6.18.0", - "babel-types": "^6.18.0", - "babylon": "^6.18.0", - "istanbul-lib-coverage": "^1.2.1", - "semver": "^5.3.0" - }, - "dependencies": { - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "semver": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", - "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", - "dev": true - } - } - }, - "istanbul-lib-report": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-1.1.5.tgz", - "integrity": "sha512-UsYfRMoi6QO/doUshYNqcKJqVmFe9w51GZz8BS3WB0lYxAllQYklka2wP9+dGZeHYaWIdcXUx8JGdbqaoXRXzw==", - "dev": true, - "requires": { - "istanbul-lib-coverage": "^1.2.1", - "mkdirp": "^0.5.1", - "path-parse": "^1.0.5", - "supports-color": "^3.1.2" - }, - "dependencies": { - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "istanbul-lib-source-maps": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.6.tgz", - "integrity": "sha512-TtbsY5GIHgbMsMiRw35YBHGpZ1DVFEO19vxxeiDMYaeOFOCzfnYVxvl6pOUIZR4dtPhAGpSMup8OyF8ubsaqEg==", - "dev": true, - "requires": { - "debug": "^3.1.0", - "istanbul-lib-coverage": "^1.2.1", - "mkdirp": "^0.5.1", - "rimraf": "^2.6.1", - "source-map": "^0.5.3" - }, - "dependencies": { - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - } - } - }, - "istanbul-reports": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-1.5.1.tgz", - "integrity": "sha512-+cfoZ0UXzWjhAdzosCPP3AN8vvef8XDkWtTfgaN+7L3YTpNYITnCaEkceo5SEYy644VkHka/P1FvkWvrG/rrJw==", - "dev": true, - "requires": { - "handlebars": "^4.0.3" - } - }, - "jest": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest/-/jest-23.6.0.tgz", - "integrity": "sha512-lWzcd+HSiqeuxyhG+EnZds6iO3Y3ZEnMrfZq/OTGvF/C+Z4fPMCdhWTGSAiO2Oym9rbEXfwddHhh6jqrTF3+Lw==", - "dev": true, - "requires": { - "import-local": "^1.0.0", - "jest-cli": "^23.6.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "jest-cli": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-23.6.0.tgz", - "integrity": "sha512-hgeD1zRUp1E1zsiyOXjEn4LzRLWdJBV//ukAHGlx6s5mfCNJTbhbHjgxnDUXA8fsKWN/HqFFF6X5XcCwC/IvYQ==", - "dev": true, - "requires": { - "ansi-escapes": "^3.0.0", - "chalk": "^2.0.1", - "exit": "^0.1.2", - "glob": "^7.1.2", - "graceful-fs": "^4.1.11", - "import-local": "^1.0.0", - "is-ci": "^1.0.10", - "istanbul-api": "^1.3.1", - "istanbul-lib-coverage": "^1.2.0", - "istanbul-lib-instrument": "^1.10.1", - "istanbul-lib-source-maps": "^1.2.4", - "jest-changed-files": "^23.4.2", - "jest-config": "^23.6.0", - "jest-environment-jsdom": "^23.4.0", - "jest-get-type": "^22.1.0", - "jest-haste-map": "^23.6.0", - "jest-message-util": "^23.4.0", - "jest-regex-util": "^23.3.0", - "jest-resolve-dependencies": "^23.6.0", - "jest-runner": "^23.6.0", - "jest-runtime": "^23.6.0", - "jest-snapshot": "^23.6.0", - "jest-util": "^23.4.0", - "jest-validate": "^23.6.0", - "jest-watcher": "^23.4.0", - "jest-worker": "^23.2.0", - "micromatch": "^2.3.11", - "node-notifier": "^5.2.1", - "prompts": "^0.1.9", - "realpath-native": "^1.0.0", - "rimraf": "^2.5.4", - "slash": "^1.0.0", - "string-length": "^2.0.0", - "strip-ansi": "^4.0.0", - "which": "^1.2.12", - "yargs": "^11.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "jest-changed-files": { - "version": "23.4.2", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-23.4.2.tgz", - "integrity": "sha512-EyNhTAUWEfwnK0Is/09LxoqNDOn7mU7S3EHskG52djOFS/z+IT0jT3h3Ql61+dklcG7bJJitIWEMB4Sp1piHmA==", - "dev": true, - "requires": { - "throat": "^4.0.0" - } - }, - "jest-config": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-23.6.0.tgz", - "integrity": "sha512-i8V7z9BeDXab1+VNo78WM0AtWpBRXJLnkT+lyT+Slx/cbP5sZJ0+NDuLcmBE5hXAoK0aUp7vI+MOxR+R4d8SRQ==", - "dev": true, - "requires": { - "babel-core": "^6.0.0", - "babel-jest": "^23.6.0", - "chalk": "^2.0.1", - "glob": "^7.1.1", - "jest-environment-jsdom": "^23.4.0", - "jest-environment-node": "^23.4.0", - "jest-get-type": "^22.1.0", - "jest-jasmine2": "^23.6.0", - "jest-regex-util": "^23.3.0", - "jest-resolve": "^23.6.0", - "jest-util": "^23.4.0", - "jest-validate": "^23.6.0", - "micromatch": "^2.3.11", - "pretty-format": "^23.6.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "jest-diff": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-23.6.0.tgz", - "integrity": "sha512-Gz9l5Ov+X3aL5L37IT+8hoCUsof1CVYBb2QEkOupK64XyRR3h+uRpYIm97K7sY8diFxowR8pIGEdyfMKTixo3g==", - "dev": true, - "requires": { - "chalk": "^2.0.1", - "diff": "^3.2.0", - "jest-get-type": "^22.1.0", - "pretty-format": "^23.6.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "jest-docblock": { - "version": "23.2.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-23.2.0.tgz", - "integrity": "sha1-8IXh8YVI2Z/dabICB+b9VdkTg6c=", - "dev": true, - "requires": { - "detect-newline": "^2.1.0" - } - }, - "jest-each": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-23.6.0.tgz", - "integrity": "sha512-x7V6M/WGJo6/kLoissORuvLIeAoyo2YqLOoCDkohgJ4XOXSqOtyvr8FbInlAWS77ojBsZrafbozWoKVRdtxFCg==", - "dev": true, - "requires": { - "chalk": "^2.0.1", - "pretty-format": "^23.6.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "jest-environment-jsdom": { - "version": "23.4.0", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-23.4.0.tgz", - "integrity": "sha1-BWp5UrP+pROsYqFAosNox52eYCM=", - "dev": true, - "requires": { - "jest-mock": "^23.2.0", - "jest-util": "^23.4.0", - "jsdom": "^11.5.1" - } - }, - "jest-environment-node": { - "version": "23.4.0", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-23.4.0.tgz", - "integrity": "sha1-V+gO0IQd6jAxZ8zozXlSHeuv3hA=", - "dev": true, - "requires": { - "jest-mock": "^23.2.0", - "jest-util": "^23.4.0" - } - }, - "jest-get-type": { - "version": "22.4.3", - "resolved": "http://registry.npmjs.org/jest-get-type/-/jest-get-type-22.4.3.tgz", - "integrity": "sha512-/jsz0Y+V29w1chdXVygEKSz2nBoHoYqNShPe+QgxSNjAuP1i8+k4LbQNrfoliKej0P45sivkSCh7yiD6ubHS3w==", - "dev": true - }, - "jest-haste-map": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-23.6.0.tgz", - "integrity": "sha512-uyNhMyl6dr6HaXGHp8VF7cK6KpC6G9z9LiMNsst+rJIZ8l7wY0tk8qwjPmEghczojZ2/ZhtEdIabZ0OQRJSGGg==", - "dev": true, - "requires": { - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.1.11", - "invariant": "^2.2.4", - "jest-docblock": "^23.2.0", - "jest-serializer": "^23.0.1", - "jest-worker": "^23.2.0", - "micromatch": "^2.3.11", - "sane": "^2.0.0" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - } - } - }, - "jest-jasmine2": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-23.6.0.tgz", - "integrity": "sha512-pe2Ytgs1nyCs8IvsEJRiRTPC0eVYd8L/dXJGU08GFuBwZ4sYH/lmFDdOL3ZmvJR8QKqV9MFuwlsAi/EWkFUbsQ==", - "dev": true, - "requires": { - "babel-traverse": "^6.0.0", - "chalk": "^2.0.1", - "co": "^4.6.0", - "expect": "^23.6.0", - "is-generator-fn": "^1.0.0", - "jest-diff": "^23.6.0", - "jest-each": "^23.6.0", - "jest-matcher-utils": "^23.6.0", - "jest-message-util": "^23.4.0", - "jest-snapshot": "^23.6.0", - "jest-util": "^23.4.0", - "pretty-format": "^23.6.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "jest-leak-detector": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-23.6.0.tgz", - "integrity": "sha512-f/8zA04rsl1Nzj10HIyEsXvYlMpMPcy0QkQilVZDFOaPbv2ur71X5u2+C4ZQJGyV/xvVXtCCZ3wQ99IgQxftCg==", - "dev": true, - "requires": { - "pretty-format": "^23.6.0" - } - }, - "jest-matcher-utils": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-23.6.0.tgz", - "integrity": "sha512-rosyCHQfBcol4NsckTn01cdelzWLU9Cq7aaigDf8VwwpIRvWE/9zLgX2bON+FkEW69/0UuYslUe22SOdEf2nog==", - "dev": true, - "requires": { - "chalk": "^2.0.1", - "jest-get-type": "^22.1.0", - "pretty-format": "^23.6.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "jest-message-util": { - "version": "23.4.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-23.4.0.tgz", - "integrity": "sha1-F2EMUJQjSVCNAaPR4L2iwHkIap8=", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0-beta.35", - "chalk": "^2.0.1", - "micromatch": "^2.3.11", - "slash": "^1.0.0", - "stack-utils": "^1.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "jest-mock": { - "version": "23.2.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-23.2.0.tgz", - "integrity": "sha1-rRxg8p6HGdR8JuETgJi20YsmETQ=", - "dev": true - }, - "jest-regex-util": { - "version": "23.3.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-23.3.0.tgz", - "integrity": "sha1-X4ZylUfCeFxAAs6qj4Sf6MpHG8U=", - "dev": true - }, - "jest-resolve": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-23.6.0.tgz", - "integrity": "sha512-XyoRxNtO7YGpQDmtQCmZjum1MljDqUCob7XlZ6jy9gsMugHdN2hY4+Acz9Qvjz2mSsOnPSH7skBmDYCHXVZqkA==", - "dev": true, - "requires": { - "browser-resolve": "^1.11.3", - "chalk": "^2.0.1", - "realpath-native": "^1.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "jest-resolve-dependencies": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-23.6.0.tgz", - "integrity": "sha512-EkQWkFWjGKwRtRyIwRwI6rtPAEyPWlUC2MpzHissYnzJeHcyCn1Hc8j7Nn1xUVrS5C6W5+ZL37XTem4D4pLZdA==", - "dev": true, - "requires": { - "jest-regex-util": "^23.3.0", - "jest-snapshot": "^23.6.0" - } - }, - "jest-runner": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-23.6.0.tgz", - "integrity": "sha512-kw0+uj710dzSJKU6ygri851CObtCD9cN8aNkg8jWJf4ewFyEa6kwmiH/r/M1Ec5IL/6VFa0wnAk6w+gzUtjJzA==", - "dev": true, - "requires": { - "exit": "^0.1.2", - "graceful-fs": "^4.1.11", - "jest-config": "^23.6.0", - "jest-docblock": "^23.2.0", - "jest-haste-map": "^23.6.0", - "jest-jasmine2": "^23.6.0", - "jest-leak-detector": "^23.6.0", - "jest-message-util": "^23.4.0", - "jest-runtime": "^23.6.0", - "jest-util": "^23.4.0", - "jest-worker": "^23.2.0", - "source-map-support": "^0.5.6", - "throat": "^4.0.0" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "source-map-support": { - "version": "0.5.9", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.9.tgz", - "integrity": "sha512-gR6Rw4MvUlYy83vP0vxoVNzM6t8MUXqNuRsuBmBHQDu1Fh6X015FrLdgoDKcNdkwGubozq0P4N0Q37UyFVr1EA==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - } - } - }, - "jest-runtime": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-23.6.0.tgz", - "integrity": "sha512-ycnLTNPT2Gv+TRhnAYAQ0B3SryEXhhRj1kA6hBPSeZaNQkJ7GbZsxOLUkwg6YmvWGdX3BB3PYKFLDQCAE1zNOw==", - "dev": true, - "requires": { - "babel-core": "^6.0.0", - "babel-plugin-istanbul": "^4.1.6", - "chalk": "^2.0.1", - "convert-source-map": "^1.4.0", - "exit": "^0.1.2", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.1.11", - "jest-config": "^23.6.0", - "jest-haste-map": "^23.6.0", - "jest-message-util": "^23.4.0", - "jest-regex-util": "^23.3.0", - "jest-resolve": "^23.6.0", - "jest-snapshot": "^23.6.0", - "jest-util": "^23.4.0", - "jest-validate": "^23.6.0", - "micromatch": "^2.3.11", - "realpath-native": "^1.0.0", - "slash": "^1.0.0", - "strip-bom": "3.0.0", - "write-file-atomic": "^2.1.0", - "yargs": "^11.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "jest-serializer": { - "version": "23.0.1", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-23.0.1.tgz", - "integrity": "sha1-o3dq6zEekP6D+rnlM+hRAr0WQWU=", - "dev": true - }, - "jest-snapshot": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-23.6.0.tgz", - "integrity": "sha512-tM7/Bprftun6Cvj2Awh/ikS7zV3pVwjRYU2qNYS51VZHgaAMBs5l4o/69AiDHhQrj5+LA2Lq4VIvK7zYk/bswg==", - "dev": true, - "requires": { - "babel-types": "^6.0.0", - "chalk": "^2.0.1", - "jest-diff": "^23.6.0", - "jest-matcher-utils": "^23.6.0", - "jest-message-util": "^23.4.0", - "jest-resolve": "^23.6.0", - "mkdirp": "^0.5.1", - "natural-compare": "^1.4.0", - "pretty-format": "^23.6.0", - "semver": "^5.5.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "semver": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", - "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "jest-util": { - "version": "23.4.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-23.4.0.tgz", - "integrity": "sha1-TQY8uSe68KI4Mf9hvsLLv0l5NWE=", - "dev": true, - "requires": { - "callsites": "^2.0.0", - "chalk": "^2.0.1", - "graceful-fs": "^4.1.11", - "is-ci": "^1.0.10", - "jest-message-util": "^23.4.0", - "mkdirp": "^0.5.1", - "slash": "^1.0.0", - "source-map": "^0.6.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "jest-validate": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-23.6.0.tgz", - "integrity": "sha512-OFKapYxe72yz7agrDAWi8v2WL8GIfVqcbKRCLbRG9PAxtzF9b1SEDdTpytNDN12z2fJynoBwpMpvj2R39plI2A==", - "dev": true, - "requires": { - "chalk": "^2.0.1", - "jest-get-type": "^22.1.0", - "leven": "^2.1.0", - "pretty-format": "^23.6.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "jest-watcher": { - "version": "23.4.0", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-23.4.0.tgz", - "integrity": "sha1-0uKM50+NrWxq/JIrksq+9u0FyRw=", - "dev": true, - "requires": { - "ansi-escapes": "^3.0.0", - "chalk": "^2.0.1", - "string-length": "^2.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "jest-worker": { - "version": "23.2.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-23.2.0.tgz", - "integrity": "sha1-+vcGqNo2+uYOsmlXJX+ntdjqArk=", - "dev": true, - "requires": { - "merge-stream": "^1.0.1" - } - }, - "js-tokens": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-2.0.0.tgz", - "integrity": "sha1-eZA/VWPud4zBFi5tzxoAJ8l/nLU=", - "dev": true - }, - "js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true - }, - "jsdom": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-11.12.0.tgz", - "integrity": "sha512-y8Px43oyiBM13Zc1z780FrfNLJCXTL40EWlty/LXUtcjykRBNgLlCjWXpfSPBl2iv+N7koQN+dvqszHZgT/Fjw==", - "dev": true, - "requires": { - "abab": "^2.0.0", - "acorn": "^5.5.3", - "acorn-globals": "^4.1.0", - "array-equal": "^1.0.0", - "cssom": ">= 0.3.2 < 0.4.0", - "cssstyle": "^1.0.0", - "data-urls": "^1.0.0", - "domexception": "^1.0.1", - "escodegen": "^1.9.1", - "html-encoding-sniffer": "^1.0.2", - "left-pad": "^1.3.0", - "nwsapi": "^2.0.7", - "parse5": "4.0.0", - "pn": "^1.1.0", - "request": "^2.87.0", - "request-promise-native": "^1.0.5", - "sax": "^1.2.4", - "symbol-tree": "^3.2.2", - "tough-cookie": "^2.3.4", - "w3c-hr-time": "^1.0.1", - "webidl-conversions": "^4.0.2", - "whatwg-encoding": "^1.0.3", - "whatwg-mimetype": "^2.1.0", - "whatwg-url": "^6.4.1", - "ws": "^5.2.0", - "xml-name-validator": "^3.0.0" - }, - "dependencies": { - "acorn": { - "version": "5.7.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", - "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", - "dev": true - } - } - }, - "jsesc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", - "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", - "dev": true - }, - "json-loader": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.7.tgz", - "integrity": "sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w==", - "dev": true - }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "json-stable-stringify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", - "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", - "dev": true, - "requires": { - "jsonify": "~0.0.0" - } - }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true - }, - "json5": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", - "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", - "dev": true - }, - "jsonify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", - "dev": true - }, - "jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "dev": true, - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, - "kind-of": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.0.4.tgz", - "integrity": "sha1-e47PGKThf4Jp1ztQHJ8jLJaIenQ=", - "dev": true, - "requires": { - "is-buffer": "^1.0.2" - } - }, - "kleur": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-2.0.2.tgz", - "integrity": "sha512-77XF9iTllATmG9lSlIv0qdQ2BQ/h9t0bJllHlbvsQ0zUWfU7Yi0S8L5JXzPZgkefIiajLmBJJ4BsMJmqcf7oxQ==", - "dev": true - }, - "lazy-cache": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", - "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", - "dev": true - }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", - "dev": true, - "requires": { - "invert-kv": "^1.0.0" - } - }, - "left-pad": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz", - "integrity": "sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==", - "dev": true - }, - "leven": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-2.1.0.tgz", - "integrity": "sha1-wuep93IJTe6dNCAq6KzORoeHVYA=", - "dev": true - }, - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - } - }, - "load-json-file": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", - "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "strip-bom": "^2.0.0" - } - }, - "loader-runner": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz", - "integrity": "sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw==", - "dev": true - }, - "loader-utils": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.2.3.tgz", - "integrity": "sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA==", - "dev": true, - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^2.0.0", - "json5": "^1.0.1" - }, - "dependencies": { - "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - } - } - } - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - }, - "dependencies": { - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - } - } - }, - "lodash": { - "version": "4.17.14", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.14.tgz", - "integrity": "sha512-mmKYbW3GLuJeX+iGP+Y7Gp1AiGHGbXHCOh/jZmrawMmsE7MS4znI3RL2FsjbqOyMayHInjOeykW7PEajUk1/xw==", - "dev": true - }, - "lodash.sortby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", - "dev": true - }, - "longest": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", - "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", - "dev": true - }, - "loose-envify": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.0.tgz", - "integrity": "sha1-ayYkjEL21PpLDYVC947fzeNWQqg=", - "dev": true, - "requires": { - "js-tokens": "^2.0.0" - } - }, - "lru-cache": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", - "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", - "dev": true, - "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - } - }, - "make-dir": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", - "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", - "dev": true, - "requires": { - "pify": "^3.0.0" - }, - "dependencies": { - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - } - } - }, - "makeerror": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.11.tgz", - "integrity": "sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw=", - "dev": true, - "requires": { - "tmpl": "1.0.x" - } - }, - "map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", - "dev": true - }, - "map-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", - "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", - "dev": true, - "requires": { - "object-visit": "^1.0.0" - } - }, - "md5.js": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", - "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "dev": true, - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - }, - "dependencies": { - "safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true - } - } - }, - "mem": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", - "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", - "dev": true, - "requires": { - "mimic-fn": "^1.0.0" - } - }, - "memory-fs": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", - "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", - "dev": true, - "requires": { - "errno": "^0.1.3", - "readable-stream": "^2.0.1" - } - }, - "merge": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/merge/-/merge-1.2.1.tgz", - "integrity": "sha512-VjFo4P5Whtj4vsLzsYBu5ayHhoHJ0UqNm7ibvShmbmoz7tGi0vXaoJbGdB+GmDMLUdg8DpQXEIeVDAe8MaABvQ==", - "dev": true - }, - "merge-stream": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz", - "integrity": "sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE=", - "dev": true, - "requires": { - "readable-stream": "^2.0.1" - } - }, - "micromatch": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", - "dev": true, - "requires": { - "arr-diff": "^2.0.0", - "array-unique": "^0.2.1", - "braces": "^1.8.2", - "expand-brackets": "^0.1.4", - "extglob": "^0.3.1", - "filename-regex": "^2.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.1", - "kind-of": "^3.0.2", - "normalize-path": "^2.0.1", - "object.omit": "^2.0.0", - "parse-glob": "^3.0.4", - "regex-cache": "^0.4.2" - } - }, - "miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "brorand": "^1.0.1" - } - }, - "mime-db": { - "version": "1.37.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.37.0.tgz", - "integrity": "sha512-R3C4db6bgQhlIhPU48fUtdVmKnflq+hRdad7IyKhtFj06VPNVdk2RhiYL3UjQIlso8L+YxAtFkobT0VK+S/ybg==", - "dev": true - }, - "mime-types": { - "version": "2.1.21", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.21.tgz", - "integrity": "sha512-3iL6DbwpyLzjR3xHSFNFeb9Nz/M8WDkX33t1GFQnFOllWk8pOrh/LSrB5OXlnlW5P9LH73X6loW/eogc+F5lJg==", - "dev": true, - "requires": { - "mime-db": "~1.37.0" - } - }, - "mimic-fn": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", - "dev": true - }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", - "dev": true - }, - "minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true - }, - "mixin-deep": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", - "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", - "dev": true, - "requires": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", - "dev": true - }, - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, - "requires": { - "minimist": "0.0.8" - }, - "dependencies": { - "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true - } - } - }, - "mri": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/mri/-/mri-1.1.4.tgz", - "integrity": "sha512-6y7IjGPm8AzlvoUrwAaw1tLnUBudaS3752vcd8JtrpGGQn+rXIe63LFVHm/YMwtqAuh+LJPCFdlLYPWM1nYn6w==", - "dev": true - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "multimatch": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-3.0.0.tgz", - "integrity": "sha512-22foS/gqQfANZ3o+W7ST2x25ueHDVNWl/b9OlGcLpy/iKxjCpvcNCM51YCenUi7Mt/jAjjqv8JwZRs8YP5sRjA==", - "dev": true, - "requires": { - "array-differ": "^2.0.3", - "array-union": "^1.0.2", - "arrify": "^1.0.1", - "minimatch": "^3.0.4" - } - }, - "nan": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", - "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==", - "dev": true, - "optional": true - }, - "nanomatch": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", - "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "fragment-cache": "^0.2.1", - "is-windows": "^1.0.2", - "kind-of": "^6.0.2", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - } - } - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", - "dev": true - }, - "neo-async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz", - "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==", - "dev": true - }, - "nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true - }, - "node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", - "dev": true - }, - "node-libs-browser": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz", - "integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==", - "dev": true, - "requires": { - "assert": "^1.1.1", - "browserify-zlib": "^0.2.0", - "buffer": "^4.3.0", - "console-browserify": "^1.1.0", - "constants-browserify": "^1.0.0", - "crypto-browserify": "^3.11.0", - "domain-browser": "^1.1.1", - "events": "^3.0.0", - "https-browserify": "^1.0.0", - "os-browserify": "^0.3.0", - "path-browserify": "0.0.1", - "process": "^0.11.10", - "punycode": "^1.2.4", - "querystring-es3": "^0.2.0", - "readable-stream": "^2.3.3", - "stream-browserify": "^2.0.1", - "stream-http": "^2.7.2", - "string_decoder": "^1.0.0", - "timers-browserify": "^2.0.4", - "tty-browserify": "0.0.0", - "url": "^0.11.0", - "util": "^0.11.0", - "vm-browserify": "^1.0.1" - } - }, - "node-notifier": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-5.3.0.tgz", - "integrity": "sha512-AhENzCSGZnZJgBARsUjnQ7DnZbzyP+HxlVXuD0xqAnvL8q+OqtSX7lGg9e8nHzwXkMMXNdVeqq4E2M3EUAqX6Q==", - "dev": true, - "requires": { - "growly": "^1.3.0", - "semver": "^5.5.0", - "shellwords": "^0.1.1", - "which": "^1.3.0" - }, - "dependencies": { - "semver": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", - "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", - "dev": true - } - } - }, - "normalize-package-data": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.3.5.tgz", - "integrity": "sha1-jZJPFClg4Xd+f/4XBUNjHMfLAt8=", - "dev": true, - "requires": { - "hosted-git-info": "^2.1.4", - "is-builtin-module": "^1.0.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "normalize-path": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.0.1.tgz", - "integrity": "sha1-R4hqwWYnYNQmG32XnSQXCdPOP3o=", - "dev": true - }, - "npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", - "dev": true, - "requires": { - "path-key": "^2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true - }, - "nwsapi": { - "version": "2.0.9", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.0.9.tgz", - "integrity": "sha512-nlWFSCTYQcHk/6A9FFnfhKc14c3aFhfdNBXgo8Qgi9QTBu/qg3Ww+Uiz9wMzXd1T8GFxPc2QIHB6Qtf2XFryFQ==", - "dev": true - }, - "oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, - "object-copy": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", - "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", - "dev": true, - "requires": { - "copy-descriptor": "^0.1.0", - "define-property": "^0.2.5", - "kind-of": "^3.0.3" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "object-keys": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.12.tgz", - "integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag==", - "dev": true - }, - "object-visit": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", - "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", - "dev": true, - "requires": { - "isobject": "^3.0.0" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - } - } - }, - "object.getownpropertydescriptors": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", - "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", - "dev": true, - "requires": { - "define-properties": "^1.1.2", - "es-abstract": "^1.5.1" - } - }, - "object.omit": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", - "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", - "dev": true, - "requires": { - "for-own": "^0.1.4", - "is-extendable": "^0.1.1" - } - }, - "object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", - "dev": true, - "requires": { - "isobject": "^3.0.1" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - } - } - }, - "once": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz", - "integrity": "sha1-suJhVXzkwxTsgwTz+oJmPkKXyiA=", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "optimist": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", - "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", - "dev": true, - "requires": { - "minimist": "~0.0.1", - "wordwrap": "~0.0.2" - }, - "dependencies": { - "minimist": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", - "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", - "dev": true - } - } - }, - "optionator": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", - "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", - "dev": true, - "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.4", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "wordwrap": "~1.0.0" - }, - "dependencies": { - "wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", - "dev": true - } - } - }, - "os-browserify": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", - "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", - "dev": true - }, - "os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "dev": true - }, - "os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", - "dev": true, - "requires": { - "lcid": "^1.0.0" - } - }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true - }, - "p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true - }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - }, - "pako": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.10.tgz", - "integrity": "sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw==", - "dev": true - }, - "parse-asn1": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.4.tgz", - "integrity": "sha512-Qs5duJcuvNExRfFZ99HDD3z4mAi3r9Wl/FOjEOijlxwCZs7E7mW2vjTpgQ4J8LpTF8x5v+1Vn5UQFejmWT11aw==", - "dev": true, - "requires": { - "asn1.js": "^4.0.0", - "browserify-aes": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.0", - "pbkdf2": "^3.0.3", - "safe-buffer": "^5.1.1" - }, - "dependencies": { - "safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true - } - } - }, - "parse-glob": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", - "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", - "dev": true, - "requires": { - "glob-base": "^0.3.0", - "is-dotfile": "^1.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.0" - } - }, - "parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", - "dev": true, - "requires": { - "error-ex": "^1.2.0" - } - }, - "parse5": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-4.0.0.tgz", - "integrity": "sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA==", - "dev": true - }, - "pascalcase": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", - "dev": true - }, - "path-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", - "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", - "dev": true - }, - "path-dirname": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", - "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", - "dev": true - }, - "path-exists": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", - "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", - "dev": true, - "requires": { - "pinkie-promise": "^2.0.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "dev": true - }, - "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true - }, - "path-type": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "pbkdf2": { - "version": "3.0.17", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", - "integrity": "sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA==", - "dev": true, - "requires": { - "create-hash": "^1.1.2", - "create-hmac": "^1.1.4", - "ripemd160": "^2.0.1", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", - "dev": true - }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - }, - "pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", - "dev": true - }, - "pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", - "dev": true, - "requires": { - "pinkie": "^2.0.0" - } - }, - "pkg-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", - "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", - "dev": true, - "requires": { - "find-up": "^2.1.0" - }, - "dependencies": { - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - } - } - }, - "please-upgrade-node": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.1.1.tgz", - "integrity": "sha512-KY1uHnQ2NlQHqIJQpnh/i54rKkuxCEBx+voJIS/Mvb+L2iYd2NMotwduhKTMjfC1uKoX3VXOxLjIYG66dfJTVQ==", - "dev": true, - "requires": { - "semver-compare": "^1.0.0" - } - }, - "pn": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/pn/-/pn-1.1.0.tgz", - "integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==", - "dev": true - }, - "posix-character-classes": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", - "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", - "dev": true - }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true - }, - "preserve": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", - "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", - "dev": true - }, - "prettier": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.15.1.tgz", - "integrity": "sha512-4rgV2hyc/5Pk0XHH4VjJWHRgVjgRbpMfLQjREAhHBtyW1UvTFkjJEsueGYNYYZd9mn97K+1qv0EBwm11zoaSgA==", - "dev": true - }, - "pretty-format": { - "version": "23.6.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-23.6.0.tgz", - "integrity": "sha512-zf9NV1NSlDLDjycnwm6hpFATCGl/K1lt0R/GdkAK2O5LN/rwJoB+Mh93gGJjut4YbmecbfgLWVGSTCr0Ewvvbw==", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0", - "ansi-styles": "^3.2.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - } - } - }, - "pretty-quick": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/pretty-quick/-/pretty-quick-1.11.1.tgz", - "integrity": "sha512-kSXCkcETfak7EQXz6WOkCeCqpbC4GIzrN/vaneTGMP/fAtD8NerA9bPhCUqHAks1geo7biZNl5uEMPceeneLuA==", - "dev": true, - "requires": { - "chalk": "^2.3.0", - "execa": "^0.8.0", - "find-up": "^2.1.0", - "ignore": "^3.3.7", - "mri": "^1.1.0", - "multimatch": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "cross-spawn": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "execa": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-0.8.0.tgz", - "integrity": "sha1-2NdrvBtVIX7RkP1t1J08d07PyNo=", - "dev": true, - "requires": { - "cross-spawn": "^5.0.1", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "get-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", - "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "private": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/private/-/private-0.1.7.tgz", - "integrity": "sha1-aM5eih7woju1cMwoU3tTMqumPvE=", - "dev": true - }, - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", - "dev": true - }, - "prompts": { - "version": "0.1.14", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-0.1.14.tgz", - "integrity": "sha512-rxkyiE9YH6zAz/rZpywySLKkpaj0NMVyNw1qhsubdbjjSgcayjTShDreZGlFMcGSu5sab3bAKPfFk78PB90+8w==", - "dev": true, - "requires": { - "kleur": "^2.0.1", - "sisteransi": "^0.1.1" - } - }, - "prr": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", - "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", - "dev": true - }, - "pseudomap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", - "dev": true - }, - "psl": { - "version": "1.1.29", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz", - "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ==", - "dev": true - }, - "public-encrypt": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", - "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1", - "safe-buffer": "^5.1.2" - }, - "dependencies": { - "safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true - } - } - }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - }, - "qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true - }, - "querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", - "dev": true - }, - "querystring-es3": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", - "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", - "dev": true - }, - "randomatic": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.5.tgz", - "integrity": "sha1-Xp718tVzxnvSuBJK6QtRVuRXhAs=", - "dev": true, - "requires": { - "is-number": "^2.0.2", - "kind-of": "^3.0.2" - } - }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "requires": { - "safe-buffer": "^5.1.0" - }, - "dependencies": { - "safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true - } - } - }, - "randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "dev": true, - "requires": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" - }, - "dependencies": { - "safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true - } - } - }, - "read-pkg": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", - "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", - "dev": true, - "requires": { - "load-json-file": "^1.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^1.0.0" - } - }, - "read-pkg-up": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", - "dev": true, - "requires": { - "find-up": "^1.0.0", - "read-pkg": "^1.0.0" - } - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - }, - "dependencies": { - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "readdirp": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", - "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.11", - "micromatch": "^3.1.10", - "readable-stream": "^2.0.2" - }, - "dependencies": { - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true - }, - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true - }, - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", - "dev": true, - "requires": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - } - }, - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "dev": true, - "requires": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "graceful-fs": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.0.tgz", - "integrity": "sha512-jpSvDPV4Cq/bgtpndIWbI5hmYxhQGHPC4d4cqBPb4DLniCfhJokdXhwhaDuLBGLQdvvRum/UiX6ECVIPvDXqdg==", - "dev": true - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "realpath-native": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/realpath-native/-/realpath-native-1.0.2.tgz", - "integrity": "sha512-+S3zTvVt9yTntFrBpm7TQmQ3tzpCrnA1a/y+3cUHAc9ZR6aIjG0WNLR+Rj79QpJktY+VeW/TQtFlQ1bzsehI8g==", - "dev": true, - "requires": { - "util.promisify": "^1.0.0" - } - }, - "regenerate": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.3.2.tgz", - "integrity": "sha1-0ZQcZ7rUN+G+dkM63Vs4X5WxkmA=", - "dev": true - }, - "regenerator-runtime": { - "version": "0.9.6", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.9.6.tgz", - "integrity": "sha1-0z65XQ0gAaS+OWWXB8UbDLcc4Ck=", - "dev": true - }, - "regenerator-transform": { - "version": "0.9.11", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.9.11.tgz", - "integrity": "sha1-On0GdSDLe3F2dp61/4aGkb7+EoM=", - "dev": true, - "requires": { - "babel-runtime": "^6.18.0", - "babel-types": "^6.19.0", - "private": "^0.1.6" - }, - "dependencies": { - "babel-types": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.24.1.tgz", - "integrity": "sha1-oTaHncFbNga9oNkMH8dDBML/CXU=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "esutils": "^2.0.2", - "lodash": "^4.2.0", - "to-fast-properties": "^1.0.1" - }, - "dependencies": { - "babel-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.23.0.tgz", - "integrity": "sha1-CpSJ8UTecO+zzkMArM2zKeL8VDs=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.10.0" - } - } - } - }, - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, - "regex-cache": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.3.tgz", - "integrity": "sha1-mxpsNdTQ3871cRrmUejp09cRQUU=", - "dev": true, - "requires": { - "is-equal-shallow": "^0.1.3", - "is-primitive": "^2.0.0" - } - }, - "regex-not": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", - "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", - "dev": true, - "requires": { - "extend-shallow": "^3.0.2", - "safe-regex": "^1.1.0" - } - }, - "regexpu-core": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-2.0.0.tgz", - "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", - "dev": true, - "requires": { - "regenerate": "^1.2.1", - "regjsgen": "^0.2.0", - "regjsparser": "^0.1.4" - } - }, - "regjsgen": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", - "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=", - "dev": true - }, - "regjsparser": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz", - "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", - "dev": true, - "requires": { - "jsesc": "~0.5.0" - }, - "dependencies": { - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", - "dev": true - } - } - }, - "remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", - "dev": true - }, - "repeat-element": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", - "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", - "dev": true - }, - "repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", - "dev": true - }, - "repeating": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", - "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", - "dev": true, - "requires": { - "is-finite": "^1.0.0" - } - }, - "request": { - "version": "2.88.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", - "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", - "dev": true, - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.0", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.4.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "dependencies": { - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "tough-cookie": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", - "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", - "dev": true, - "requires": { - "psl": "^1.1.24", - "punycode": "^1.4.1" - } - } - } - }, - "request-promise-core": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz", - "integrity": "sha1-Pu4AssWqgyOc+wTFcA2jb4HNCLY=", - "dev": true, - "requires": { - "lodash": "^4.13.1" - } - }, - "request-promise-native": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.5.tgz", - "integrity": "sha1-UoF3D2jgyXGeUWP9P6tIIhX0/aU=", - "dev": true, - "requires": { - "request-promise-core": "1.1.1", - "stealthy-require": "^1.1.0", - "tough-cookie": ">=2.3.3" - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true - }, - "require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", - "dev": true - }, - "resolve": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", - "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", - "dev": true - }, - "resolve-cwd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", - "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=", - "dev": true, - "requires": { - "resolve-from": "^3.0.0" - } - }, - "resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", - "dev": true - }, - "resolve-url": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", - "dev": true - }, - "ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", - "dev": true - }, - "right-align": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", - "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", - "dev": true, - "requires": { - "align-text": "^0.1.1" - } - }, - "rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", - "dev": true, - "requires": { - "glob": "^7.0.5" - } - }, - "ripemd160": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", - "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", - "dev": true, - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" - } - }, - "rsvp": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-3.6.2.tgz", - "integrity": "sha512-OfWGQTb9vnwRjwtA2QwpG2ICclHC3pgXZO5xt8H2EfgDquO0qVdSb5T88L4qJVAEugbS56pAuV4XZM58UX8ulw==", - "dev": true - }, - "run-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/run-node/-/run-node-1.0.0.tgz", - "integrity": "sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A==", - "dev": true - }, - "safe-buffer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.0.1.tgz", - "integrity": "sha1-0mPKVGls2KMGtcplUekt5XkY++c=", - "dev": true - }, - "safe-regex": { - "version": "1.1.0", - "resolved": "http://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", - "dev": true, - "requires": { - "ret": "~0.1.10" - } - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "sane": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/sane/-/sane-2.5.2.tgz", - "integrity": "sha1-tNwYYcIbQn6SlQej51HiosuKs/o=", - "dev": true, - "requires": { - "anymatch": "^2.0.0", - "capture-exit": "^1.2.0", - "exec-sh": "^0.2.0", - "fb-watchman": "^2.0.0", - "fsevents": "^1.2.3", - "micromatch": "^3.1.4", - "minimist": "^1.1.1", - "walker": "~1.0.5", - "watch": "~0.18.0" - }, - "dependencies": { - "anymatch": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", - "dev": true, - "requires": { - "micromatch": "^3.1.4", - "normalize-path": "^2.1.1" - } - }, - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true - }, - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true - }, - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", - "dev": true, - "requires": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - } - }, - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "dev": true, - "requires": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "fsevents": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.4.tgz", - "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", - "dev": true, - "optional": true, - "requires": { - "nan": "^2.9.2", - "node-pre-gyp": "^0.10.0" - }, - "dependencies": { - "abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "bundled": true, - "dev": true, - "optional": true - }, - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "bundled": true, - "dev": true, - "optional": true - }, - "aproba": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "bundled": true, - "dev": true, - "optional": true - }, - "are-we-there-yet": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz", - "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "bundled": true, - "dev": true, - "optional": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "chownr": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.0.1.tgz", - "integrity": "sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE=", - "bundled": true, - "dev": true, - "optional": true - }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "bundled": true, - "dev": true, - "optional": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "bundled": true, - "dev": true, - "optional": true - }, - "console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "bundled": true, - "dev": true, - "optional": true - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "bundled": true, - "dev": true, - "optional": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ms": "2.0.0" - } - }, - "deep-extend": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.5.1.tgz", - "integrity": "sha512-N8vBdOa+DF7zkRrDCsaOXoCs/E2fJfx9B9MrKnnSiHNh4ws7eSys6YQE4KvT1cecKmOASYQBhbKjeuDD9lT81w==", - "bundled": true, - "dev": true, - "optional": true - }, - "delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", - "bundled": true, - "dev": true, - "optional": true - }, - "detect-libc": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", - "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", - "bundled": true, - "dev": true, - "optional": true - }, - "fs-minipass": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.5.tgz", - "integrity": "sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "bundled": true, - "dev": true, - "optional": true - }, - "gauge": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", - "bundled": true, - "dev": true, - "optional": true - }, - "iconv-lite": { - "version": "0.4.21", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.21.tgz", - "integrity": "sha512-En5V9za5mBt2oUA03WGD3TwDv0MKAruqsuxstbMUZaj9W9k/m1CV/9py3l0L5kw9Bln8fdHQmzHSYtvpvTLpKw==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safer-buffer": "^2.1.0" - } - }, - "ignore-walk": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.1.tgz", - "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minimatch": "^3.0.4" - } - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "bundled": true, - "dev": true, - "optional": true - }, - "ini": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", - "bundled": true, - "dev": true, - "optional": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "bundled": true, - "dev": true, - "optional": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "bundled": true, - "dev": true, - "optional": true - }, - "minipass": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.2.4.tgz", - "integrity": "sha512-hzXIWWet/BzWhYs2b+u7dRHlruXhwdgvlTMDKC6Cb1U7ps6Ac6yQlR39xsbjWJE377YTCtKwIXIpJ5oP+j5y8g==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "^5.1.1", - "yallist": "^3.0.0" - } - }, - "minizlib": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.1.0.tgz", - "integrity": "sha512-4T6Ur/GctZ27nHfpt9THOdRZNgyJ9FZchYO1ceg5S8Q3DNLCKYy44nCZzgCJgcvx2UM8czmqak5BCxJMrq37lA==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minimist": "0.0.8" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "bundled": true, - "dev": true, - "optional": true - }, - "needle": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/needle/-/needle-2.2.0.tgz", - "integrity": "sha512-eFagy6c+TYayorXw/qtAdSvaUpEbBsDwDyxYFgLZ0lTojfH7K+OdBqAF7TAFwDokJaGpubpSGG0wO3iC0XPi8w==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "debug": "^2.1.2", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" - } - }, - "node-pre-gyp": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.10.0.tgz", - "integrity": "sha512-G7kEonQLRbcA/mOoFoxvlMrw6Q6dPf92+t/l0DFSMuSlDoWaI9JWIyPwK0jyE1bph//CUEL65/Fz1m2vJbmjQQ==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.0", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.1.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4" - } - }, - "nopt": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", - "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "abbrev": "1", - "osenv": "^0.1.4" - } - }, - "npm-bundled": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.3.tgz", - "integrity": "sha512-ByQ3oJ/5ETLyglU2+8dBObvhfWXX8dtPZDMePCahptliFX2iIuhyEszyFk401PZUNQH20vvdW5MLjJxkwU80Ow==", - "bundled": true, - "dev": true, - "optional": true - }, - "npm-packlist": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.1.10.tgz", - "integrity": "sha512-AQC0Dyhzn4EiYEfIUjCdMl0JJ61I2ER9ukf/sLxJUcZHfo+VyEfz2rMJgLZSS1v30OxPQe1cN0LZA1xbcaVfWA==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" - } - }, - "npmlog": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", - "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "bundled": true, - "dev": true, - "optional": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "bundled": true, - "dev": true, - "optional": true - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "wrappy": "1" - } - }, - "os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "bundled": true, - "dev": true, - "optional": true - }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "bundled": true, - "dev": true, - "optional": true - }, - "osenv": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", - "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "bundled": true, - "dev": true, - "optional": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "bundled": true, - "dev": true, - "optional": true - }, - "rc": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.7.tgz", - "integrity": "sha512-LdLD8xD4zzLsAT5xyushXDNscEjB7+2ulnl8+r1pnESlYtlJtVSoCMBGr30eDRJ3+2Gq89jK9P9e4tCEH1+ywA==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "deep-extend": "^0.5.1", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "glob": "^7.0.5" - } - }, - "safe-buffer": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", - "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", - "bundled": true, - "dev": true, - "optional": true - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "bundled": true, - "dev": true, - "optional": true - }, - "sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "bundled": true, - "dev": true, - "optional": true - }, - "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", - "bundled": true, - "dev": true, - "optional": true - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "bundled": true, - "dev": true, - "optional": true - }, - "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "bundled": true, - "dev": true, - "optional": true - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "bundled": true, - "dev": true, - "optional": true - }, - "tar": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.1.tgz", - "integrity": "sha512-O+v1r9yN4tOsvl90p5HAP4AEqbYhx4036AGMm075fH9F8Qwi3oJ+v4u50FkT/KkvywNGtwkk0zRI+8eYm1X/xg==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "chownr": "^1.0.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.2.4", - "minizlib": "^1.1.0", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.1", - "yallist": "^3.0.2" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "bundled": true, - "dev": true, - "optional": true - }, - "wide-align": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz", - "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "string-width": "^1.0.2" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "bundled": true, - "dev": true, - "optional": true - }, - "yallist": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.2.tgz", - "integrity": "sha1-hFK0u36Dx8GI2AQcGoN8dz1ti7k=", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "nan": { - "version": "2.11.1", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.11.1.tgz", - "integrity": "sha512-iji6k87OSXa0CcrLl9z+ZiYSuR2o+c0bGuNmXdrhTQTakxytAFsC56SArGYoiHlJlFoHSnvmhpceZJaXkVuOtA==", - "dev": true, - "optional": true - }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "dev": true, - "requires": { - "remove-trailing-separator": "^1.0.1" - } - }, - "watch": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/watch/-/watch-0.18.0.tgz", - "integrity": "sha1-KAlUdsbffJDJYxOJkMClQj60uYY=", - "dev": true, - "requires": { - "exec-sh": "^0.2.0", - "minimist": "^1.2.0" - } - } - } - }, - "sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "dev": true - }, - "semver": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz", - "integrity": "sha1-MAvG4OhjdPe6YQaLWx7NV/xlMto=", - "dev": true - }, - "semver-compare": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", - "integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=", - "dev": true - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, - "set-value": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", - "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.3", - "split-string": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", - "dev": true - }, - "sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "dev": true, - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "dev": true - }, - "shellwords": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", - "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", - "dev": true - }, - "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true - }, - "sisteransi": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-0.1.1.tgz", - "integrity": "sha512-PmGOd02bM9YO5ifxpw36nrNMBTptEtfRl4qUYl9SndkolplkrZZOW7PGHjrZL53QvMVj9nQ+TKqUnRsw4tJa4g==", - "dev": true - }, - "slash": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", - "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", - "dev": true - }, - "snapdragon": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", - "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", - "dev": true, - "requires": { - "base": "^0.11.1", - "debug": "^2.2.0", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "map-cache": "^0.2.2", - "source-map": "^0.5.6", - "source-map-resolve": "^0.5.0", - "use": "^3.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "snapdragon-node": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", - "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", - "dev": true, - "requires": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - } - } - }, - "snapdragon-util": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", - "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", - "dev": true, - "requires": { - "kind-of": "^3.2.0" - }, - "dependencies": { - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "source-list-map": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", - "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==", - "dev": true - }, - "source-map": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz", - "integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=", - "dev": true - }, - "source-map-resolve": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", - "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", - "dev": true, - "requires": { - "atob": "^2.1.1", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - }, - "source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", - "dev": true, - "requires": { - "source-map": "^0.5.6" - } - }, - "source-map-url": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", - "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", - "dev": true - }, - "spdx-correct": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz", - "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", - "dev": true, - "requires": { - "spdx-license-ids": "^1.0.2" - } - }, - "spdx-expression-parse": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz", - "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=", - "dev": true - }, - "spdx-license-ids": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz", - "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=", - "dev": true - }, - "split-string": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", - "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", - "dev": true, - "requires": { - "extend-shallow": "^3.0.0" - } - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, - "sshpk": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.15.2.tgz", - "integrity": "sha512-Ra/OXQtuh0/enyl4ETZAfTaeksa6BXks5ZcjpSUNrjBr0DvrJKX+1fsKDPpT9TBXgHAFsa4510aNVgI8g/+SzA==", - "dev": true, - "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - } - }, - "stack-utils": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.2.tgz", - "integrity": "sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA==", - "dev": true - }, - "static-extend": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", - "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", - "dev": true, - "requires": { - "define-property": "^0.2.5", - "object-copy": "^0.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "stealthy-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", - "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=", - "dev": true - }, - "stream-browserify": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", - "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", - "dev": true, - "requires": { - "inherits": "~2.0.1", - "readable-stream": "^2.0.2" - } - }, - "stream-http": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", - "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", - "dev": true, - "requires": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.3.6", - "to-arraybuffer": "^1.0.0", - "xtend": "^4.0.0" - } - }, - "string_decoder": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.2.0.tgz", - "integrity": "sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - }, - "dependencies": { - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - } - } - }, - "string-length": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-2.0.0.tgz", - "integrity": "sha1-1A27aGo6zpYMHP/KVivyxF+DY+0=", - "dev": true, - "requires": { - "astral-regex": "^1.0.0", - "strip-ansi": "^4.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", - "dev": true, - "requires": { - "is-utf8": "^0.2.0" - } - }, - "strip-eof": { - "version": "1.0.0", - "resolved": "http://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "dev": true - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - }, - "symbol-tree": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.2.tgz", - "integrity": "sha1-rifbOPZgp64uHDt9G8KQgZuFGeY=", - "dev": true - }, - "tapable": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.2.9.tgz", - "integrity": "sha512-2wsvQ+4GwBvLPLWsNfLCDYGsW6xb7aeC6utq2Qh0PFwgEy7K7dsma9Jsmb2zSQj7GvYAyUGSntLtsv++GmgL1A==", - "dev": true - }, - "test-exclude": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-4.2.3.tgz", - "integrity": "sha512-SYbXgY64PT+4GAL2ocI3HwPa4Q4TBKm0cwAVeKOt/Aoc0gSpNRjJX8w0pA1LMKZ3LBmd8pYBqApFNQLII9kavA==", - "dev": true, - "requires": { - "arrify": "^1.0.1", - "micromatch": "^2.3.11", - "object-assign": "^4.1.0", - "read-pkg-up": "^1.0.1", - "require-main-filename": "^1.0.1" - } - }, - "throat": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/throat/-/throat-4.1.0.tgz", - "integrity": "sha1-iQN8vJLFarGJJua6TLsgDhVnKmo=", - "dev": true - }, - "timers-browserify": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.10.tgz", - "integrity": "sha512-YvC1SV1XdOUaL6gx5CoGroT3Gu49pK9+TZ38ErPldOWW4j49GI1HKs9DV+KGq/w6y+LZ72W1c8cKz2vzY+qpzg==", - "dev": true, - "requires": { - "setimmediate": "^1.0.4" - } - }, - "tmpl": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.4.tgz", - "integrity": "sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE=", - "dev": true - }, - "to-arraybuffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", - "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", - "dev": true - }, - "to-fast-properties": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.2.tgz", - "integrity": "sha1-8/XAw7pymafvmUJ+RGMyV63kMyA=", - "dev": true - }, - "to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "to-regex": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", - "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", - "dev": true, - "requires": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - }, - "dependencies": { - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - } - } - }, - "tough-cookie": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "dev": true, - "requires": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - }, - "dependencies": { - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true - } - } - }, - "tr46": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", - "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", - "dev": true, - "requires": { - "punycode": "^2.1.0" - }, - "dependencies": { - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true - } - } - }, - "trim-right": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", - "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", - "dev": true - }, - "tty-browserify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", - "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", - "dev": true - }, - "tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "dev": true, - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true - }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2" - } - }, - "uglify-js": { - "version": "3.4.9", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.9.tgz", - "integrity": "sha512-8CJsbKOtEbnJsTyv6LE6m6ZKniqMiFWmm9sRbopbkGs3gMPPfd3Fh8iIA4Ykv5MgaTbqHr4BaoGLJLZNhsrW1Q==", - "dev": true, - "optional": true, - "requires": { - "commander": "~2.17.1", - "source-map": "~0.6.1" - }, - "dependencies": { - "commander": { - "version": "2.17.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz", - "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==", - "dev": true, - "optional": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true - } - } - }, - "uglify-to-browserify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", - "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", - "dev": true, - "optional": true - }, - "union-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", - "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", - "dev": true, - "requires": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^0.4.3" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "set-value": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", - "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.1", - "to-object-path": "^0.3.0" - } - } - } - }, - "unset-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", - "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", - "dev": true, - "requires": { - "has-value": "^0.3.1", - "isobject": "^3.0.0" - }, - "dependencies": { - "has-value": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", - "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", - "dev": true, - "requires": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" - }, - "dependencies": { - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, - "requires": { - "isarray": "1.0.0" - } - } - } - }, - "has-values": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", - "dev": true - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - } - } - }, - "upath": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/upath/-/upath-1.1.2.tgz", - "integrity": "sha512-kXpym8nmDmlCBr7nKdIx8P2jNBa+pBpIUFRnKJ4dr8htyYGJFokkr2ZvERRtUN+9SY+JqXouNgUPtv6JQva/2Q==", - "dev": true - }, - "uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - }, - "dependencies": { - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true - } - } - }, - "urix": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", - "dev": true - }, - "url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", - "dev": true, - "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - }, - "dependencies": { - "punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", - "dev": true - } - } - }, - "use": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", - "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", - "dev": true - }, - "util": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz", - "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==", - "dev": true, - "requires": { - "inherits": "2.0.3" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "util.promisify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.0.tgz", - "integrity": "sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA==", - "dev": true, - "requires": { - "define-properties": "^1.1.2", - "object.getownpropertydescriptors": "^2.0.3" - } - }, - "uuid": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", - "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", - "dev": true - }, - "validate-npm-package-license": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz", - "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", - "dev": true, - "requires": { - "spdx-correct": "~1.0.0", - "spdx-expression-parse": "~1.0.0" - } - }, - "verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, - "vm-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.0.tgz", - "integrity": "sha512-iq+S7vZJE60yejDYM0ek6zg308+UZsdtPExWP9VZoCFCz1zkJoXFnAX7aZfd/ZwrkidzdUZL0C/ryW+JwAiIGw==", - "dev": true - }, - "w3c-hr-time": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz", - "integrity": "sha1-gqwr/2PZUOqeMYmlimViX+3xkEU=", - "dev": true, - "requires": { - "browser-process-hrtime": "^0.1.2" - } - }, - "walker": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.7.tgz", - "integrity": "sha1-L3+bj9ENZ3JisYqITijRlhjgKPs=", - "dev": true, - "requires": { - "makeerror": "1.0.x" - } - }, - "watch": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/watch/-/watch-1.0.2.tgz", - "integrity": "sha1-NApxe952Vyb6CqB9ch4BR6VR3ww=", - "dev": true, - "requires": { - "exec-sh": "^0.2.0", - "minimist": "^1.2.0" - } - }, - "watchpack": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", - "integrity": "sha512-i6dHe3EyLjMmDlU1/bGQpEw25XSjkJULPuAVKCbNRefQVq48yXKUpwg538F7AZTf9kyr57zj++pQFltUa5H7yA==", + "vite": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/vite/-/vite-3.0.2.tgz", + "integrity": "sha512-TAqydxW/w0U5AoL5AsD9DApTvGb2iNbGs3sN4u2VdT1GFkQVUfgUldt+t08TZgi23uIauh1TUOQJALduo9GXqw==", "dev": true, "requires": { - "chokidar": "^2.0.2", - "graceful-fs": "^4.1.2", - "neo-async": "^2.5.0" + "esbuild": "^0.14.47", + "fsevents": "~2.3.2", + "postcss": "^8.4.14", + "resolve": "^1.22.1", + "rollup": "^2.75.6" } }, "webidl-conversions": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", - "dev": true - }, - "webpack": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-2.7.0.tgz", - "integrity": "sha512-MjAA0ZqO1ba7ZQJRnoCdbM56mmFpipOPUv/vQpwwfSI42p5PVDdoiuK2AL2FwFUVgT859Jr43bFZXRg/LNsqvg==", - "dev": true, - "requires": { - "acorn": "^5.0.0", - "acorn-dynamic-import": "^2.0.0", - "ajv": "^4.7.0", - "ajv-keywords": "^1.1.1", - "async": "^2.1.2", - "enhanced-resolve": "^3.3.0", - "interpret": "^1.0.0", - "json-loader": "^0.5.4", - "json5": "^0.5.1", - "loader-runner": "^2.3.0", - "loader-utils": "^0.2.16", - "memory-fs": "~0.4.1", - "mkdirp": "~0.5.0", - "node-libs-browser": "^2.0.0", - "source-map": "^0.5.3", - "supports-color": "^3.1.0", - "tapable": "~0.2.5", - "uglify-js": "^2.8.27", - "watchpack": "^1.3.1", - "webpack-sources": "^1.0.1", - "yargs": "^6.0.0" - }, - "dependencies": { - "big.js": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz", - "integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==", - "dev": true - }, - "camelcase": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", - "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", - "dev": true - }, - "loader-utils": { - "version": "0.2.17", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-0.2.17.tgz", - "integrity": "sha1-+G5jdNQyBabmxg6RlvF8Apm/s0g=", - "dev": true, - "requires": { - "big.js": "^3.1.3", - "emojis-list": "^2.0.0", - "json5": "^0.5.0", - "object-assign": "^4.0.1" - } - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - }, - "uglify-js": { - "version": "2.8.29", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", - "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", - "dev": true, - "requires": { - "source-map": "~0.5.1", - "uglify-to-browserify": "~1.0.0", - "yargs": "~3.10.0" - }, - "dependencies": { - "yargs": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", - "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", - "dev": true, - "requires": { - "camelcase": "^1.0.2", - "cliui": "^2.1.0", - "decamelize": "^1.0.0", - "window-size": "0.1.0" - } - } - } - }, - "yargs": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-6.6.0.tgz", - "integrity": "sha1-eC7CHvQDNF+DCoCMo9UTr1YGUgg=", - "dev": true, - "requires": { - "camelcase": "^3.0.0", - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^1.0.2", - "which-module": "^1.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^4.2.0" - }, - "dependencies": { - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", - "dev": true - }, - "cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", - "dev": true, - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" - } - } - } - } - } - }, - "webpack-sources": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.3.0.tgz", - "integrity": "sha512-OiVgSrbGu7NEnEvQJJgdSFPl2qWKkWq5lHMhgiToIiN9w34EBnjYzSYs+VbL5KoYiLNtFFa7BZIKxRED3I32pA==", - "dev": true, - "requires": { - "source-list-map": "^2.0.0", - "source-map": "~0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", "dev": true, - "requires": { - "iconv-lite": "0.4.24" - } - }, - "whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", - "dev": true + "optional": true, + "peer": true }, "whatwg-url": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-6.5.0.tgz", - "integrity": "sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", + "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", "dev": true, + "optional": true, + "peer": true, "requires": { "lodash.sortby": "^4.7.0", "tr46": "^1.0.1", "webidl-conversions": "^4.0.2" } - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", - "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=", - "dev": true - }, - "window-size": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", - "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", - "dev": true - }, - "wordwrap": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", - "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", - "dev": true - }, - "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", - "dev": true, - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "write-file-atomic": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.3.0.tgz", - "integrity": "sha512-xuPeK4OdjWqtfi59ylvVL0Yn35SF3zgcAcv7rBPFHVaEapaDr4GdGgm3j7ckTwH9wHL7fGmgfAnb0+THrHb8tA==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.2" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "dev": true - } - } - }, - "ws": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.2.tgz", - "integrity": "sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA==", - "dev": true, - "requires": { - "async-limiter": "~1.0.0" - } - }, - "xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", - "dev": true - }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true - }, - "y18n": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", - "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", - "dev": true - }, - "yallist": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", - "dev": true - }, - "yargs": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-11.1.0.tgz", - "integrity": "sha512-NwW69J42EsCSanF8kyn5upxvjp5ds+t3+udGBeTbFnERA+lF541DDpMawzo4z6W/QrzNM18D+BPMiOBibnFV5A==", - "dev": true, - "requires": { - "cliui": "^4.0.0", - "decamelize": "^1.1.1", - "find-up": "^2.1.0", - "get-caller-file": "^1.0.1", - "os-locale": "^2.0.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^9.0.2" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "cliui": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", - "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", - "dev": true, - "requires": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" - } - }, - "cross-spawn": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "execa": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", - "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", - "dev": true, - "requires": { - "cross-spawn": "^5.0.1", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "get-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", - "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - } - }, - "os-locale": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", - "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", - "dev": true, - "requires": { - "execa": "^0.7.0", - "lcid": "^1.0.0", - "mem": "^1.1.0" - } - }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "yargs-parser": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-9.0.2.tgz", - "integrity": "sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc=", - "dev": true, - "requires": { - "camelcase": "^4.1.0" - } - } - } - }, - "yargs-parser": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-4.2.1.tgz", - "integrity": "sha1-KczqwNxPA8bIe0qfIX3RjJ90hxw=", - "dev": true, - "requires": { - "camelcase": "^3.0.0" - }, - "dependencies": { - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", - "dev": true - } - } } } } diff --git a/package.json b/package.json index c47c17e8..d86faafb 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,10 @@ { "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", + "version": "6.0.0", + "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://serversideup.net/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" + "vite": "^3.0.0" }, "directories": { "doc": "docs" @@ -27,7 +17,8 @@ "url": "https://opencollective.com/amplitudejs" }, "scripts": { - "build": "node_modules/.bin/webpack", + "dev": "vite", + "build": "vite build", "prettier": "npx pretty-quick", "preversion": "npx pretty-quick && npm run test", "postversion": "git push && git push --tags", diff --git a/src/config.js b/src/config.js index b1ba2d64..de8e612b 100644 --- a/src/config.js +++ b/src/config.js @@ -6,138 +6,124 @@ * This is global and contains all of the user preferences. The default * settings are set, and the user overwrites them when they initialize * Amplitude. - * - * @module config - * @type {object} - * @property {string} config.version - The current version of AmplitudeJS. - * @property {object} config.audio - Handles all of the audio. - * @property {object} config.active_metadata - Contains the active metadata for the song. - * @property {string} config.active_album - Holds the active album name. Used to check and see if the album changed and run the album changed callback. - * @property {number} config.active_index - Contains the index of the actively playing song. - * @property {string} config.active_playlist - Contains the key to the active playlist index. - * @property {number} config.playback_speed - Sets the initial playback speed of the song. The values for this can be 1.0, 1.5, 2.0 - * @property {object} config.callbacks - The user can pass a JSON object with a key => value store of callbacks to be run at certain events. - * @property {array} config.songs - Contains all of the songs the user has passed to Amplitude to use. - * @property {object} config.playlists - Contains all of the playlists the user created. - * @property {object} config.start_song - The index of the song that AmplitudeJS should start with. - * @property {string} config.starting_playlist - The starting playlist the player will intiialize to. - * @property {string} config.starting_playlist_song - The index of the song in the playlist that should be started. - * @property {boolean} config.repeat - When repeat is on, when the song ends the song will replay itself. - * @property {object} config.shuffle_list - When shuffled, gets populated with the songs the user provided in a random order. - * @property {boolean} config.shuffle_on - When on, gets set to true so when traversing through songs, AmplitudeJS knows whether or not to use the songs object or the shuffle_list - * @property {string} config.default_album_art - The user can set default album art to be displayed if the song they set doesn't contain album art. - * @property {string} config.default_playlist_art - The user can set default playlist art to be displayed if the playlist they are setting meta data for doesn't contain an art picture. - * @property {boolean} config.debug - When set to true, AmplitudeJS will print to the console any errors providing helpful feedback to the user. - * @property {number} config.volume - The user can set the initial volume to a number between 0 and 1 over-riding the default of .5 - * @property {number} config.pre_mute_volume - This is set on mute so that when a user un-mutes AmplitudeJS knows what to restore the volume to. - * @property {number} config.volume_increment - The default values are an integer between 1 and 100 for how much the volume should increase when the user presses the volume up button. - * @property {number} config.volume_decrement - The default values are an integer between 1 and 100 for how much the volume should decrease when the user presses the volume down button. - * @property {string} config.soundcloud_client - When using SoundCloud, the user will have to provide their API Client ID - * @property {boolean} config.soundcloud_use_art - The user can set this to true and AmplitudeJS will use the album art for the song returned from the Soundcloud API - * @property {number} config.soundcloud_song_count - Used on config to count how many songs are from Soundcloud and compare it to how many are ready for when to move to the rest of the configuration - * @property {number} config.soundcloud_songs_ready - Used on config to count how many songs are ready so when we get all of the data from the SoundCloud API that we need this should match the SoundCloud song count meaning we can move to the rest of the config. - * @property {integer} config.is_touch_moving - Flag for if the user is moving the screen. - * @property {boolean} config.buffered - How much of the song is buffered. - * @property {object} config.bindings - Array of bindings to certain key events. - * @property {boolean} config.continue_next - Determines when a song ends, we should continue to the next song. - * @property {number} config.delay - Sets the delay between songs in MS. - * @property {boolean} config.use_web_audio_api - Flag that determines if the user wants to use Web Audio API Components. - * @property {boolean} config.web_audio_api_available - Flag that determines if the Web Audio API is available. - * @property {object} config.context - Web Audio API Context - * @property {object} config.source - Web Audio API Source - * @property {object} config.analyser - Web Audio API Analyser - * @property {string} config.player_state - The current state of the player. */ -import { version } from "../package.json"; - -module.exports = { - version: version, - - audio: new Audio(), - - active_metadata: {}, - - active_album: "", - - active_index: 0, - - active_playlist: null, - - playback_speed: 1.0, - - callbacks: {}, - - songs: [], - - playlists: {}, - - start_song: "", - - starting_playlist: "", - - starting_playlist_song: "", - - repeat: false, - - repeat_song: false, - - shuffle_list: {}, - - shuffle_on: false, - - default_album_art: "", - - default_playlist_art: "", - - debug: false, - - volume: 0.5, - - pre_mute_volume: 0.5, - - volume_increment: 5, - - volume_decrement: 5, - - soundcloud_client: "", - - soundcloud_use_art: false, - - soundcloud_song_count: 0, - - soundcloud_songs_ready: 0, - - is_touch_moving: false, - - buffered: 0, - - bindings: {}, - - continue_next: true, - - delay: 0, - - player_state: "stopped", - - web_audio_api_available: false, - - context: null, - - source: null, - - analyser: null, - - visualizations: { - available: [], - - active: [], - - backup: "" - }, - - waveforms: { - sample_rate: 100, - - built: [] - } +import version from "../package.json"; + +export const config = { + // Amplitude State Variables + audio_element: new Audio(), + mobile: false, + version: version, + + // Amplitude Dynamic Variables + active_metadata: {}, + active_index: 0, + active_collection: null, + is_touch_moving: false, + + playback_speed: 1.0, + repeat: false, + /** + * @todo BREAKING should be repeat_audio + */ + // repeat_song: false, + repeat_audio: false, + + // User Definable Variables + callbacks: [], + + audio: [], + + collections: [], + + debug: true, + + /** + * BREAKING + * @todo default_album_art -> art.default_audio_art + * @todo default_playlist_art -> art.default_collection_art + */ + art: { + default_audio_art: "", + default_collection_art: "", + }, + + + /** + * @todo Starting Configuration + * BREAKING + */ + starting: { + audio_index: null, + collection_key: '', + collection_audio_index: null, + collection_shuffled: false + }, + + /** + * @todo BREAKING CHANGE + */ + volume: { + current: 50, + increment: 5, + decrement: 5, + pre_mute_level: 50 + }, + + /** + * @todo BREAKING CHANGE + */ + soundcloud: { + client: '', + use_art: false, + audio_count: 0, + ready_count: 0 + }, + + buffered: 0, + + /** + * @todo BREAKING not `bindings` -> `key_bindings` + */ + key_bindings: {}, + + continue_next: true, + + delay: 0, + + player_state: "stopped", + + time_format: 'MM:SS', + + /** + * @todo BREAKING + */ + web_audio_api:{ + availabile: false, + context: null, + source: null, + analyser: null + }, + // web_audio_api_available: false, + + // context: null, + + // source: null, + + // analyser: null, + + visualizations: { + available: [], + + active: [], + + backup: "" + }, + + waveforms: { + sample_rate: 100, + + built: [], + + } }; diff --git a/src/core/Audio.js b/src/core/Audio.js new file mode 100644 index 00000000..f5775780 --- /dev/null +++ b/src/core/Audio.js @@ -0,0 +1,129 @@ +import { Callbacks } from "@/services/Callbacks.js"; +import { config } from "@/config.js"; +import { ConfigState } from '@/services/ConfigState.js' +import { Debug } from "@/services/Debug.js"; + +export class Audio{ + play(){ + this.#startVisualizations(); + this.#reconnectStream(); + this.#playAudio(); + ConfigState.setPlayerState(); + } + + pause(){ + this.#stopVisualizations(); + this.#pauseAudio(); + this.#disconnectStream(); + ConfigState.setPlayerState(); + } + + stop(){ + this.#stopVisualizations(); + this.setCurrentTime(0); + this.#pauseAudio(); + this.#disconnectStream(); + ConfigState.setPlayerState(); + Callbacks.run('stop'); + } + + skipToLocation(seconds){ + // Cannot skip live streams + if( !config.active_metadata.live ){ + // We only skip to the location when the audio is loaded enough to play through + // and skip to a location. This event is unbound after it's fired once. + config.audio_element.addEventListener("canplaythrough", function(){ + if( config.audio_element.duration >= seconds && seconds > 0 ){ + config.audio_element.currentTime = seconds; + } else { + Debug.writeMessage( "Amplitude can't skip to a location greater than the duration of the audio or less than 0.") + } + }, { once: true } ); + } + } + + /** + * + * @param {number} volumeLevel - A number between 1 - 100 as percentage of volume. + */ + setVolume( volumeLevel ){ + this.#setMuted( volumeLevel ); + this.#setAudioVolume( volumeLevel ); + } + + setAudioLocation( percentage ){ + if( !config.active_metadata.live ){ + config.audio_element.currentTime = config.audio_element.duration * ( percentage / 100 ); + } + } + + setPlaybackSpeed( playbackSpeed ){ + config.playback_speed = playbackSpeed; + config.audio_element.playbackRate = config.playback_speed; + } + + #startVisualizations(){ + // Visualizations.stop(); + // Visualizations.run(); + } + + #stopVisualizations(){ + // Visualizations.stop(); + } + + #reconnectStream(){ + /* + Mobile remote sources need to be reconnected on play. I think this is + because mobile browsers are optimized not to load all resources + for speed reasons. We only do this if mobile and the paused button + is not clicked. If the pause button was clicked then we don't reconnect + or the user will lose their place in the stream. + */ + if( config.active_metadata.live + || ( ConfigState.isMobile() && !config.paused ) ){ + config.audio_element.src = config.active_metadata.url; + config.audio_element.load(); + } + } + + #disconnectStream(){ + if( config.active_metadata.live ){ + config.audio_element.src = ""; + config.audio_element.load(); + } + } + + #playAudio(){ + let playPromise = config.audio_element.play(); + + if( playPromise !== undefined ){ + playPromise.then(_ => {}).catch(error => {}); + } + + config.audio_element.playbackRate = config.playback_speed; + } + + #pauseAudio(){ + config.audio_element.pause(); + config.paused = true; + } + + setCurrentTime( seconds ){ + if ( isFinite( seconds ) ) { + config.audio_element.currentTime = seconds; + } + } + + #setMuted( volumeLevel ){ + if( volumeLevel == 0 ){ + config.audio_element.muted = true; + }else{ + config.audio_element.muted = false; + } + } + + #setAudioVolume( volumeLevel ){ + config.volume.current = volumeLevel; + config.audio_element.volume = ( volumeLevel / 100 ); + } +} \ No newline at end of file diff --git a/src/core/core.js b/src/core/core.js deleted file mode 100644 index 1b91f910..00000000 --- a/src/core/core.js +++ /dev/null @@ -1,336 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../config.js"; - -/** - * Imports the Checks module. - * @module utilities/checks - */ -import Checks from "../utilities/checks.js"; - -/** - * Imports the Audio Navigation module. - * @module utilities/audioNavigation - */ -import AudioNavigation from "../utilities/audioNavigation.js"; - -/** - * Imports the Play/Pause Visual Elements module. - * @module visual/playPauseElements - */ -import PlayPauseElements from "../visual/playPauseElements.js"; - -/** - * Imports the Meta Data Visual Elements module. - * @module visual/metaDataElements - */ -import MetaDataElements from "../visual/metaDataElements.js"; - -/** - * Imports AmplitudeJS Callback Utility - * @module utilities/callbacks - */ -import Callbacks from "../utilities/callbacks.js"; - -/** - * Imports AmplitudeJS Debug Utility - * @module utilities/debug - */ -import Debug from "../utilities/debug.js"; - -/** - * Import the Visualizations from the FX module. - * @module fx/visualizations - */ -import Visualizations from "../fx/visualizations.js"; - -/** - * Import the Config State module. - * @module utilities/configState - */ - import ConfigState from "../utilities/configState.js"; - -/** - * Interacts directly with native functions of the Audio element. Logic - * leading up to these methods are handled by click handlers which call - * helpers and visual synchronizers. These are the core functions of AmplitudeJS. - * Every other function that leads to these prepare the information to be - * acted upon by these functions. - * - * @module core/Core - */ -let Core = (function() { - /** - * Plays the active song. If the current song is live, it reconnects - * the stream before playing. - * - * Public Accessor: Amplitude.play() - * - * @access public - */ - function play() { - Visualizations.stop(); - Visualizations.run(); - - /* - If the audio is live we re-conenct the stream. - */ - if (config.active_metadata.live) { - reconnectStream(); - } - - /* - Mobile remote sources need to be reconnected on play. I think this is - because mobile browsers are optimized not to load all resources - for speed reasons. We only do this if mobile and the paused button - is not clicked. If the pause button was clicked then we don't reconnect - or the user will lose their place in the stream. - */ - if ( - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent - ) && - !config.paused - ) { - reconnectStream(); - } - - /* - Play the song and set the playback rate to the playback - speed. - */ - let playPromise = config.audio.play(); - - if (playPromise !== undefined) { - playPromise.then(_ => {}).catch(error => {}); - } - config.audio.play(); - config.audio.playbackRate = config.playback_speed; - - /* - Sets the state of the player. - */ - ConfigState.setPlayerState(); - } - - /** - * Pauses the active song. If it's live, it disconnects the stream. - * - * Public Accessor: Amplitude.pause() - * - * @access public - */ - function pause() { - Visualizations.stop(); - - /* - Pause the active song. - */ - config.audio.pause(); - - /* - Flag that pause button was clicked. - */ - config.paused = true; - - - /* - If the song is live, we disconnect the stream so we aren't - saving it to memory. - */ - if (config.active_metadata.live) { - disconnectStream(); - } - - /* - Sets the state of the player. - */ - ConfigState.setPlayerState(); - } - - /** - * Stops the active song by setting the current song time to 0. - * When the user resumes, it will be from the beginning. - * If it's a live stream it disconnects. - * - * Public Accessor: Amplitude.stop() - * - * @access public - */ - function stop() { - Visualizations.stop(); - - /* - Set the current time of the song to 0 which will reset the song. - */ - if (config.audio.currentTime != 0) { - config.audio.currentTime = 0; - } - - /* - Run pause so the song will stop - */ - config.audio.pause(); - - /* - If the song is live, disconnect the stream. - */ - if (config.active_metadata.live) { - disconnectStream(); - } - - /* - Sets the state of the player. - */ - ConfigState.setPlayerState(); - - /* - Run the stop callback - */ - Callbacks.run("stop"); - } - - /** - * Sets the song volume. - * - * Public Accessor: Amplitude.setVolume( volumeLevel ) - * - * @access public - * @param {number} volumeLevel - A number between 1 and 100 as a percentage of - * min to max for a volume level. - */ - function setVolume(volumeLevel) { - /* - If the volume is set to mute somewhere else, we sync the display. - */ - if (volumeLevel == 0) { - config.audio.muted = true; - } else { - config.audio.muted = false; - } - - /* - Sets the volume in the config so we can reference it later on. - */ - config.volume = volumeLevel; - - /* - Set the volume of the active song. - */ - config.audio.volume = volumeLevel / 100; - } - - /** - * Sets the song percentage. If it's a live song, we ignore this because - * we can't skip ahead. This is an issue if you have a playlist with - * a live source. - * - * Public Accessor: Amplitude.setSongLocation( songPercentage ) - * - * @access public - * @param {number} songPercentage - A number between 1 and 100 as a percentage of song completion. - */ - function setSongLocation(songPercentage) { - /* - As long as the song is not live, we can set the current time of the - song to the percentage the user passed in. - */ - if (!config.active_metadata.live) { - config.audio.currentTime = config.audio.duration * (songPercentage / 100); - } - } - - /** - * Skips to a location in a song - * - * Public Accessor: Amplitude.skipToLocation( seconds ) - * - * @access public - * @param {number} seconds - An integer containing the seconds to skip to - */ - function skipToLocation(seconds) { - /* - When the active song can be played through, we can check to - see if the seconds will work. We only bind the event handler - once and remove it once it's fired. - */ - config.audio.addEventListener( - "canplaythrough", - function() { - /* - If the active song duration is greater than or equal to the - amount of seconds the user wants to skip to and the seconds - is greater than 0, we skip to the seconds defined. - */ - if (config.audio.duration >= seconds && seconds > 0) { - config.audio.currentTime = seconds; - } else { - Debug.writeMessage( - "Amplitude can't skip to a location greater than the duration of the audio or less than 0" - ); - } - }, - { once: true } - ); - } - - /** - * Disconnects the live stream - * - * Public Accessor: Amplitude.disconnectStream() - * - * @access public - */ - function disconnectStream() { - config.audio.src = ""; - config.audio.load(); - } - - /** - * Reconnects the live stream - * - * Public Accessor: Amplitude.reconnectStream() - * - * @access public\ - */ - function reconnectStream() { - config.audio.src = config.active_metadata.url; - config.audio.load(); - } - - /** - * Sets the playback speed for the song. - * - * @param {number} playbackSpeed The speed we want the song to play back at. - */ - function setPlaybackSpeed(playbackSpeed) { - /* - Set the config playback speed. - */ - config.playback_speed = playbackSpeed; - - /* - Set the active song playback rate. - */ - config.audio.playbackRate = config.playback_speed; - } - - /* - Return publically facing functions - */ - return { - play: play, - pause: pause, - stop: stop, - setVolume: setVolume, - setSongLocation: setSongLocation, - skipToLocation: skipToLocation, - disconnectStream: disconnectStream, - reconnectStream: reconnectStream, - setPlaybackSpeed: setPlaybackSpeed - }; -})(); - -export default Core; diff --git a/src/elements/BufferedProgressElement.js b/src/elements/BufferedProgressElement.js new file mode 100644 index 00000000..cea90ee7 --- /dev/null +++ b/src/elements/BufferedProgressElement.js @@ -0,0 +1,13 @@ +import { GlobalBufferedProgressElement } from "./BufferedProgressElements/GlobalBufferedProgressElement"; +import { CollectionBufferedProgressElement } from "./BufferedProgressElements/CollectionBufferedProgressElement"; +import { CollectionAudioBufferedProgressElement } from './BufferedProgressElements/CollectionAudioBufferedProgressElement'; +import { AudioBufferedProgressElement } from "./BufferedProgressElements/AudioBufferedProgressElement"; + +export class BufferedProgressElement{ + static syncAll(){ + GlobalBufferedProgressElement.syncUI(); + CollectionBufferedProgressElement.syncUI(); + AudioBufferedProgressElement.syncUI(); + CollectionAudioBufferedProgressElement.syncUI(); + } +} \ No newline at end of file diff --git a/src/elements/BufferedProgressElements/AudioBufferedProgressElement.js b/src/elements/BufferedProgressElements/AudioBufferedProgressElement.js new file mode 100644 index 00000000..1d2ca7e5 --- /dev/null +++ b/src/elements/BufferedProgressElements/AudioBufferedProgressElement.js @@ -0,0 +1,23 @@ +import { ConfigState } from "@/services/ConfigState"; +import { config } from '@/config.js'; + +export class AudioBufferedProgressElement{ + static audioBufferedProgressQuery = 'progress.amplitude-buffered-progress[data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + + static syncUI(){ + let activeIndex = ConfigState.getActiveAudioIndex(); + let elements = document.querySelectorAll( AudioBufferedProgressElement.audioBufferedProgressQuery ); + + elements.forEach( function( element ){ + let audioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( activeIndex == audioIndex && !isNaN( config.buffered ) ){ + element.value = parseFloat( + ConfigState.getBufferedPercentage() + ); + }else{ + element.value = 0; + } + }); + } +} \ No newline at end of file diff --git a/src/elements/BufferedProgressElements/CollectionAudioBufferedProgressElement.js b/src/elements/BufferedProgressElements/CollectionAudioBufferedProgressElement.js new file mode 100644 index 00000000..8bdaecbb --- /dev/null +++ b/src/elements/BufferedProgressElements/CollectionAudioBufferedProgressElement.js @@ -0,0 +1,26 @@ +import { ConfigState } from "@/services/ConfigState"; +import { config } from '@/config.js'; + +export class CollectionAudioBufferedProgressElement{ + static collectionAudioBufferedProgressQuery = 'progress.amplitude-buffered-progress[data-amplitude-collection-key][data-amplitude-audio-index]'; + + static syncUI(){ + let activeCollection = ConfigState.getActiveCollection(); + let activeCollectionAudioIndex = ConfigState.getActiveCollectionAudioIndex(); + + let elements = document.querySelectorAll( CollectionAudioBufferedProgressElement.collectionAudioBufferedProgressQuery ); + + elements.forEach( function( element ){ + let audioIndex = element.getAttribute('data-amplitude-audio-index'); + let collectionKey = element.getAttribute('data-amplitude-collection-key'); + + if( ( audioIndex == activeCollectionAudioIndex ) && ( collectionKey == activeCollection ) && !isNaN( config.buffered ) ){ + element.value = parseFloat( + ConfigState.getBufferedPercentage() + ); + }else{ + element.value = 0; + } + }) + } +} \ No newline at end of file diff --git a/src/elements/BufferedProgressElements/CollectionBufferedProgressElement.js b/src/elements/BufferedProgressElements/CollectionBufferedProgressElement.js new file mode 100644 index 00000000..80e61731 --- /dev/null +++ b/src/elements/BufferedProgressElements/CollectionBufferedProgressElement.js @@ -0,0 +1,23 @@ +import { ConfigState } from "@/services/ConfigState"; +import { config } from '@/config.js'; + +export class CollectionBufferedProgressElement{ + static collectionBufferedProgressQuery = 'progress.amplitude-buffered-progress[data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + + static syncUI(){ + let activeCollection = ConfigState.getActiveCollection(); + let elements = document.querySelectorAll( CollectionBufferedProgressElement.collectionBufferedProgressQuery ); + + elements.forEach( function( element ){ + let collectionKey = element.getAttribute('data-amplitude-collection-key'); + + if( activeCollection == collectionKey && !isNaN( config.buffered ) ){ + element.value = parseFloat( + ConfigState.getBufferedPercentage() + ); + }else{ + element.value = 0; + } + }); + } +} \ No newline at end of file diff --git a/src/elements/BufferedProgressElements/GlobalBufferedProgressElement.js b/src/elements/BufferedProgressElements/GlobalBufferedProgressElement.js new file mode 100644 index 00000000..f4bf8db8 --- /dev/null +++ b/src/elements/BufferedProgressElements/GlobalBufferedProgressElement.js @@ -0,0 +1,18 @@ +import { ConfigState } from "@/services/ConfigState"; +import { config } from '@/config.js'; + +export class GlobalBufferedProgressElement{ + static globalBufferedProgressQuery = 'progress.amplitude-buffered-progress:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'; + + static syncUI(){ + let elements = document.querySelectorAll( GlobalBufferedProgressElement.globalBufferedProgressQuery ); + + elements.forEach( function( element ){ + if( !isNaN( config.buffered ) ){ + element.value = parseFloat( + ConfigState.getBufferedPercentage() + ); + } + } ); + } +} \ No newline at end of file diff --git a/src/elements/ContainerElement.js b/src/elements/ContainerElement.js new file mode 100644 index 00000000..c3935ee4 --- /dev/null +++ b/src/elements/ContainerElement.js @@ -0,0 +1,20 @@ +import { AudioContainerElement } from "./ContainerElements/AudioContainerElement"; +import { CollectionAudioContainerElement } from "./ContainerElements/CollectionAudioContainerElement"; + +export class ContainerElement{ + + setActiveContainers( direct ){ + this.#setActiveAudioContainers(); + this.#setActiveCollectionAudioContainers( direct ); + } + + #setActiveAudioContainers(){ + let audioContainerElements = new AudioContainerElement(); + audioContainerElements.setActive(); + } + + #setActiveCollectionAudioContainers( direct ){ + let collectionAudioContainerElements = new CollectionAudioContainerElement( direct ); + collectionAudioContainerElements.setActive(); + } +} \ No newline at end of file diff --git a/src/elements/ContainerElements/AudioContainerElement.js b/src/elements/ContainerElements/AudioContainerElement.js new file mode 100644 index 00000000..2516265d --- /dev/null +++ b/src/elements/ContainerElements/AudioContainerElement.js @@ -0,0 +1,41 @@ +import { config } from "@/config"; +import { ConfigState } from "@/services/ConfigState"; + +export class AudioContainerElement { + static audioContainerElementQuery = '.amplitude-audio-container[data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + + #elements; + #activeIndex; + + setActive(){ + this.#findElements(); + this.#resetElements(); + + if( ConfigState.getScope() == 'audio' ){ + this.#getActiveIndex(); + this.#setActiveContainerElements(); + } + } + + #findElements(){ + this.#elements = document.querySelectorAll( AudioContainerElement.audioContainerElementQuery ); + } + + #resetElements(){ + this.#elements.forEach( function( element ){ + element.classList.remove('amplitude-active-audio-container'); + }); + } + + #getActiveIndex(){ + this.#activeIndex = config.active_index; + } + + #setActiveContainerElements(){ + let activeContainerElements = document.querySelectorAll('.amplitude-audio-container[data-amplitude-audio-index="'+this.#activeIndex+'"]:not([data-amplitude-collection-key])'); + + activeContainerElements.forEach( function( element ){ + element.classList.add("amplitude-active-audio-container"); + }); + } +} \ No newline at end of file diff --git a/src/elements/ContainerElements/CollectionAudioContainerElement.js b/src/elements/ContainerElements/CollectionAudioContainerElement.js new file mode 100644 index 00000000..6ed39325 --- /dev/null +++ b/src/elements/ContainerElements/CollectionAudioContainerElement.js @@ -0,0 +1,59 @@ +import { config } from "@/config"; +import { ConfigState } from "@/services/ConfigState"; + +export class CollectionAudioContainerElement { + static collectionAudioContainerElementQuery = '.amplitude-audio-container[data-amplitude-audio-index][data-amplitude-collection-key]'; + + #direct; + #elements; + #activeIndex; + #activeCollection; + + constructor( direct ){ + this.#direct = direct; + } + + setActive(){ + this.#findElements(); + this.#resetElements(); + + if( ConfigState.getScope() == 'collection' ){ + this.#getActiveIndex(); + this.#setActiveContainerElements(); + } + } + + #findElements(){ + this.#elements = document.querySelectorAll( CollectionAudioContainerElement.collectionAudioContainerElementQuery ); + } + + #resetElements(){ + this.#elements.forEach( function( element ){ + element.classList.remove('amplitude-active-audio-container'); + }); + } + + #getActiveIndex(){ + this.#activeCollection = ConfigState.getActiveCollection(); + let collectionIndex = ConfigState.getCollectionIntegerIndex( this.#activeCollection ); + + if( this.#direct ){ + this.#activeIndex = config.collections[ collectionIndex ].active_index; + }else{ + if( ConfigState.isCollectionShuffled( collectionIndex ) ){ + this.#activeIndex = config.collections[ collectionIndex ].shuffle_list[ + config.collections[ collectionIndex ].active_index + ].index; + }else{ + this.#activeIndex = config.collections[ collectionIndex ].active_index; + } + } + } + + #setActiveContainerElements(){ + let activeContainerElements = document.querySelectorAll('.amplitude-audio-container[data-amplitude-audio-index="'+this.#activeIndex+'"][data-amplitude-collection-key="'+this.#activeCollection+'"]'); + activeContainerElements.forEach( function( element ){ + element.classList.add("amplitude-active-audio-container"); + }); + } +} \ No newline at end of file diff --git a/src/elements/MetaDataElement.js b/src/elements/MetaDataElement.js new file mode 100644 index 00000000..71a0dc99 --- /dev/null +++ b/src/elements/MetaDataElement.js @@ -0,0 +1,165 @@ +import { config } from "@/config"; +import { ConfigState } from "@/services/ConfigState"; + +export class MetaDataElement { + static activeAudioMetaDataElementsQuery = '[data-amplitude-audio-info]:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'; + static activeCollectionMetaDataElementsQuery = '[data-amplitude-collection-info]:not([data-amplitude-collection-key])'; + static activeCollectionAudioMetaDataElementsQuery = '[data-amplitude-audio-info][data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + + static audioMetaDataElementsQuery = '[data-amplitude-audio-info][data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + static collectionAudioMetaDataElementsQuery = '[data-amplitude-audio-info][data-amplitude-audio-index][data-amplitude-collection-key]'; + static collectionInfoElementsQuery = '[data-amplitude-collection-info][data-amplitude-collection-key]'; + + #imageMetaDataKeys = [ + "cover_art_url", + "station_art_url", + "podcast_episode_cover_art_url", + "album_art_url", + "collection_art_url" + ] + + /** + * Gets called after audio has been changed. Updates all of the global + * elements and collection elements, not the individual audio elements. + * Individual audio elements should only be dynamically set once and not again + * since they never change. + * + * Examples: + * Update - Global cover art for a song. + * Update - Playlist now playing cover art. + * Update - Podcast now playing cover art. + * Do Not Update - Individual audio element. These will be set with syncMetaData() + * and won't need to be updated again. + */ + updateActiveMetaData(){ + this.#syncActiveAudioMetaElements(); + this.#syncActiveCollectionMetaElements(); + this.#syncActiveCollectionAudioMetaElements(); + } + + #syncActiveAudioMetaElements(){ + let activeAudioInfoElements = document.querySelectorAll( MetaDataElement.activeAudioMetaDataElementsQuery ); + + activeAudioInfoElements.forEach( ( element ) => { + let key = element.getAttribute('data-amplitude-audio-info'); + let value = ( config.active_metadata[ key ] != undefined ) ? config.active_metadata[ key ] : null; + + this.#setMetaValue( key, value, element ); + }); + } + + #syncActiveCollectionMetaElements(){ + let activeCollectionInfoElements = document.querySelectorAll( MetaDataElement.activeCollectionMetaDataElementsQuery ); + + activeCollectionInfoElements.forEach( ( element ) => { + if( ConfigState.getScope() == 'collection' ){ + let collectionKey = ConfigState.getActiveCollection(); + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + + let collectionInfoKey = element.getAttribute('data-amplitude-collection-info'); + + let value = ( config.collections[ collectionIndex ] != undefined ) ? config.collections[ collectionIndex ][ collectionInfoKey ] : null; + + this.#setMetaValue( collectionInfoKey, value, element, true ); + } + }); + } + + #syncActiveCollectionAudioMetaElements(){ + let activeCollectionAudioElements = document.querySelectorAll( MetaDataElement.activeCollectionAudioMetaDataElementsQuery ); + + activeCollectionAudioElements.forEach( ( element ) => { + let collectionKey = element.getAttribute('data-amplitude-collection-key'); + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + + if( config.active_collection == collectionKey ){ + let key = element.getAttribute('data-amplitude-audio-info'); + let value = ( config.active_metadata[ key ] != undefined ) ? config.active_metadata[ key ] : null; + + this.#setMetaValue( key, value, element ); + } + }); + } + + #displayAudioMetaElements(){ + let audioInfoElements = document.querySelectorAll( MetaDataElement.audioMetaDataElementsQuery ); + + audioInfoElements.forEach( ( element ) => { + let key = element.getAttribute('data-amplitude-audio-info'); + let audioIndex = element.getAttribute('data-amplitude-audio-index'); + let value = config.audio[ audioIndex ][ key ] != undefined ? config.audio[ audioIndex ][ key ] : null; + + this.#setMetaValue( key, value, element ); + }); + } + + #displayCollectionAudioMetaElements(){ + let collectionAudioInfoElements = document.querySelectorAll( MetaDataElement.collectionAudioMetaDataElementsQuery ); + + collectionAudioInfoElements.forEach( ( element ) => { + let key = element.getAttribute('data-amplitude-audio-info'); + let audioIndex = element.getAttribute('data-amplitude-audio-index'); + let collectionKey = element.getAttribute('data-amplitude-collection-key'); + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + + let value = config.collections[ collectionIndex ].audio[ audioIndex ][ key ] != undefined + ? config.collections[ collectionIndex ].audio[ audioIndex ][ key ] + : null; + + this.#setMetaValue( key, value, element ); + }); + } + + #displayCollectionMetaElements(){ + let collectionInfoElements = document.querySelectorAll( MetaDataElement.collectionInfoElementsQuery ); + + collectionInfoElements.forEach( ( element ) => { + let key = element.getAttribute('data-amplitude-collection-info'); + let collectionKey = element.getAttribute('data-amplitude-collection-key'); + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + + let value = config.collections[ collectionIndex ][ key ] != undefined + ? config.collections[ collectionIndex ][ key ] + : null; + + this.#setMetaValue( key, value, element, true ); + }); + } + + #setMetaValue( key, value, element, collection = false ){ + if( this.#imageMetaDataKeys.indexOf( key ) >= 0 ){ + value = value || ( collection ? config.art.default_collection_art : config.art.default_audio_art ); + element.setAttribute('src', value); + }else{ + value = value || ""; + element.innerHTML = value; + } + } + + syncMetaData(){ + this.#displayAudioMetaElements(); + this.#displayCollectionAudioMetaElements(); + this.#displayCollectionMetaElements(); + } + + syncInitialCollectionAudioData(){ + config.collections.forEach( ( collection, collectionIndex ) => { + this.#setInitialAudioElementsForCollection( collection.key, collectionIndex ); + } ); + } + + #setInitialAudioElementsForCollection( collectionKey, collectionIndex ){ + let activeAudioCollectionElements = document.querySelectorAll( + '[data-amplitude-audio-info][data-amplitude-collection-key="'+collectionKey+'"]' + ); + + activeAudioCollectionElements.forEach( ( element ) => { + let key = element.getAttribute('data-amplitude-audio-info'); + let value = config.collections[ collectionIndex ].audio[0][ key ] != undefined + ? config.collections[ collectionIndex ].audio[0][ key ] + : null; + + this.#setMetaValue( key, value, element ); + } ); + } +} \ No newline at end of file diff --git a/src/elements/MuteElement.js b/src/elements/MuteElement.js new file mode 100644 index 00000000..d0c3d697 --- /dev/null +++ b/src/elements/MuteElement.js @@ -0,0 +1,80 @@ +import { Audio } from "@/core/Audio"; +import { ConfigState } from "@/services/ConfigState"; +import { VolumeSliderElement } from "./VolumeSliderElement"; +import { Debug } from "@/services/Debug"; +/** + * Handles the configuration and managing of Mute elements + * + * A Mute element is defined as the following: + * + * Element: class="amplitude-mute" + * + * Whenever this element is interacted with, the audio is muted no matter where. + */ +export class MuteElement { + static muteElementQuery = '.amplitude-mute'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + setUp(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( MuteElement.muteElementQuery ); + } + + #bindInteractions(){ + if( ConfigState.isIos() ){ + Debug.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" + ); + }else{ + this.#elements.forEach( ( element ) => { + if( this.#mobile ){ + element.removeEventListener( "touchend", this.#handleInteraction ); + element.addEventListener( "touchend", this.#handleInteraction ); + }else{ + element.removeEventListener( "click", this.#handleInteraction ); + element.addEventListener( "click", this.#handleInteraction ); + } + }); + } + } + + #handleInteraction(){ + if( !ConfigState.isTouchMoving() ){ + let audio = new Audio(); + + if( ConfigState.getVolume() == 0 ){ + audio.setVolume( ConfigState.getPreMuteVolume() ); + }else{ + ConfigState.setPreMuteVolume(); + audio.setVolume( 0 ); + } + + MuteElement.syncElements(); + VolumeSliderElement.syncElements(); + } + } + + static syncElements(){ + let elements = document.querySelectorAll( MuteElement.muteElementQuery ); + + elements.forEach( function( element ){ + if( ConfigState.getVolume() == 0 ){ + element.classList.remove("amplitude-not-muted"); + element.classList.add("amplitude-muted"); + }else{ + element.classList.add("amplitude-not-muted"); + element.classList.remove("amplitude-muted"); + } + }); + } +} \ No newline at end of file diff --git a/src/elements/NextElement.js b/src/elements/NextElement.js new file mode 100644 index 00000000..195f8a0b --- /dev/null +++ b/src/elements/NextElement.js @@ -0,0 +1,32 @@ +import { CollectionNextElement } from "./NextElements/CollectionNextElement"; +import { GlobalNextElement } from "./NextElements/GlobalNextElement"; + +/** + * Handles the configuration and managing of Next elements + * + * A Next element is defined as the following: + * + * Element: class="amplitude-next" + * + * GLOBAL: class="amplitude-next" + * Handles next for whatever scope the player is in. + * + * COLLECTION: class="amplitude-next" data-amplitude-collection="{collection_key}" + * Handles the next audio within a specific collection. + */ +export class NextElement { + setUp(){ + this.#configureGlobalNextElement(); + this.#configureCollectionNextElement(); + } + + #configureGlobalNextElement(){ + let globalNextElement = new GlobalNextElement(); + globalNextElement.initialize(); + } + + #configureCollectionNextElement(){ + let collectionNextElement = new CollectionNextElement(); + collectionNextElement.initialize(); + } +} \ No newline at end of file diff --git a/src/elements/NextElements/CollectionNextElement.js b/src/elements/NextElements/CollectionNextElement.js new file mode 100644 index 00000000..17aab598 --- /dev/null +++ b/src/elements/NextElements/CollectionNextElement.js @@ -0,0 +1,47 @@ +import { ConfigState } from "@/services/ConfigState"; +import { Navigation as CollectionNavigation } from "@/services/Collections/Navigation.js"; +import { config } from "@/config"; +import { Debug } from "@/services/Debug"; + +export class CollectionNextElement { + static collectionNextQuery = '.amplitude-next[data-amplitude-collection-key]'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( CollectionNextElement.collectionNextQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( ( element ) => { + if( this.#mobile ){ + element.removeEventListener( "touchend", this.#handleInteraction ); + element.addEventListener( "touchend", this.#handleInteraction ); + }else{ + element.removeEventListener( "click", this.#handleInteraction ); + element.addEventListener( "click", this.#handleInteraction ); + } + }); + } + + #handleInteraction(){ + let collectionKey = this.getAttribute('data-amplitude-collection-key'); + + if( collectionKey == config.active_collection ){ + let collectionNavigation = new CollectionNavigation(); + collectionNavigation.next( collectionKey ); + }else{ + Debug.writeMessage("You can not go to the next audio on a playlist that is not being played!"); + } + } +} \ No newline at end of file diff --git a/src/elements/NextElements/GlobalNextElement.js b/src/elements/NextElements/GlobalNextElement.js new file mode 100644 index 00000000..7f4d7252 --- /dev/null +++ b/src/elements/NextElements/GlobalNextElement.js @@ -0,0 +1,44 @@ +import { ConfigState } from "@/services/ConfigState"; +import { Debug } from "@/services/Debug"; +import { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js'; + +export class GlobalNextElement { + static globalNextQuery = '.amplitude-next:not([data-amplitude-collection-key])'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( GlobalNextElement.globalNextQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( ( element ) => { + if( this.#mobile ){ + element.removeEventListener( "touchend", this.#handleInteraction ); + element.addEventListener( "touchend", this.#handleInteraction ); + }else{ + element.removeEventListener( "click", this.#handleInteraction ); + element.addEventListener( "click", this.#handleInteraction ); + } + }); + } + + #handleInteraction(){ + if( ConfigState.getScope() == 'collection' ){ + let collectionNavigation = new CollectionNavigation(); + collectionNavigation.next(); + }else{ + Debug.writeMessage("You can only navigate next when you are playing a collection."); + } + } +} \ No newline at end of file diff --git a/src/elements/PauseElement.js b/src/elements/PauseElement.js new file mode 100644 index 00000000..271a6f6d --- /dev/null +++ b/src/elements/PauseElement.js @@ -0,0 +1,52 @@ +import { GlobalPauseElement } from "./PauseElements/GlobalPauseElement"; +import { CollectionPauseElement } from "./PauseElements/CollectionPauseElement"; +import { AudioPauseElement } from "./PauseElements/AudioPauseElement"; +import { CollectionAudioPauseElement } from "./PauseElements/CollectionAudioPauseElement"; + +/** + * Handles the configuration and managing of Pause elements. + * + * A Pause element is defined as the following: + * + * Element: class="amplitude-pause" + * + * GLOBAL: class="amplitude-pause" + * Controls the entire state of the audio player. + * + * COLLECTION: class="amplitude-pause" data-amplitude-collection="{collection_key}" + * Scoped to an individual collection. Will only pause what's within the scope of the collection. + * + * AUDIO: class="amplitude-pause" data-amplitude-audio-index="{audio_index}" + * Scoped to an individual audio element. + * + * AUDIO IN COLLECTION: class="amplitude-pause" data-amplitude-collection-key="{collection_key}" data-amplitude-audio-index="{audio_index}" + * Scoped to an individual audio element within a collection. + */ +export class PauseElement { + setUp(){ + this.#configureGlobalPauseElement(); + this.#configureCollectionPauseElement(); + this.#configureAudioPauseElement(); + this.#configureCollectionAudioPauseElement(); + } + + #configureGlobalPauseElement(){ + let globalPauseElement = new GlobalPauseElement(); + globalPauseElement.initialize(); + } + + #configureCollectionPauseElement(){ + let collectionPauseElement = new CollectionPauseElement(); + collectionPauseElement.initialize(); + } + + #configureAudioPauseElement(){ + let audioPauseElement = new AudioPauseElement(); + audioPauseElement.initialize(); + } + + #configureCollectionAudioPauseElement(){ + let collectionAudioPauseElement = new CollectionAudioPauseElement(); + collectionAudioPauseElement.initialize(); + } +} \ No newline at end of file diff --git a/src/elements/PauseElements/AudioPauseElement.js b/src/elements/PauseElements/AudioPauseElement.js new file mode 100644 index 00000000..d1d566d2 --- /dev/null +++ b/src/elements/PauseElements/AudioPauseElement.js @@ -0,0 +1,51 @@ +import { Audio } from "@/core/Audio"; +import { ConfigState } from "@/services/ConfigState"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; +import { config } from "../../config"; + +export class AudioPauseElement{ + static audioPauseQuery = ".amplitude-pause[data-amplitude-audio-index]:not([data-amplitude-collection-key])"; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( AudioPauseElement.audioPauseQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => { + if( this.#mobile ){ + element.removeEventListener("touchend", this.#handleInteraction ); + element.addEventListener("touchend", this.#handleInteraction ); + }else{ + element.removeEventListener("click", this.#handleInteraction ); + element.addEventListener("click", this.#handleInteraction ); + } + }); + } + + #handleInteraction(){ + if( !ConfigState.isTouchMoving() ){ + let audioIndex = this.getAttribute('data-amplitude-audio-index'); + + // If the scope is audio and the index of the element matches the active audio + // index, then we pause the player. + if( ConfigState.getScope() == 'audio' && ( config.active_index == audioIndex ) ){ + let audio = new Audio(); + audio.pause(); + + PlayPauseElement.syncAll(); + } + } + } +} \ No newline at end of file diff --git a/src/elements/PauseElements/CollectionAudioPauseElement.js b/src/elements/PauseElements/CollectionAudioPauseElement.js new file mode 100644 index 00000000..a2b80088 --- /dev/null +++ b/src/elements/PauseElements/CollectionAudioPauseElement.js @@ -0,0 +1,52 @@ +import { Audio } from "@/core/Audio"; +import { ConfigState } from "@/services/ConfigState"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; +import { config } from "@/config"; + +export class CollectionAudioPauseElement{ + static collectionAudioPauseQuery = '.amplitude-pause[data-amplitude-collection-key][data-amplitude-audio-index]'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( CollectionAudioPauseElement.collectionAudioPauseQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => { + if( this.#mobile ){ + element.removeEventListener("touchend", this.#handleInteraction ); + element.addEventListener("touchend", this.#handleInteraction.bind(this, element) ); + }else{ + element.removeEventListener("click", this.#handleInteraction ); + element.addEventListener("click", this.#handleInteraction.bind(this, element) ); + } + }); + } + + #handleInteraction( element ){ + if( !ConfigState.isTouchMoving() ){ + let collectionKey = element.getAttribute('data-amplitude-collection-key'); + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + let audioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( config.active_collection == collectionKey && + config.collections[ collectionIndex ].active_index == audioIndex ){ + let audio = new Audio(); + audio.pause(); + + PlayPauseElement.syncAll(); + } + } + } +} \ No newline at end of file diff --git a/src/elements/PauseElements/CollectionPauseElement.js b/src/elements/PauseElements/CollectionPauseElement.js new file mode 100644 index 00000000..5fded083 --- /dev/null +++ b/src/elements/PauseElements/CollectionPauseElement.js @@ -0,0 +1,51 @@ +import { Audio } from "@/core/Audio"; +import { config } from '@/config.js'; +import { ConfigState } from "@/services/ConfigState"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; + +export class CollectionPauseElement{ + static collectionPauseQuery = '.amplitude-pause[data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( CollectionPauseElement.collectionPauseQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => { + if( this.#mobile ){ + element.removeEventListener("touchend", this.#handleInteraction ); + element.addEventListener("touchend", this.#handleInteraction ); + }else{ + element.removeEventListener("click", this.#handleInteraction ); + element.addEventListener("click", this.#handleInteraction ); + } + }); + } + + #handleInteraction(){ + if( !ConfigState.isTouchMoving() ){ + let collectionKey = this.getAttribute('data-amplitude-collection-key'); + + // Ensure we pause the audio if the active collection is + // what is controlled by this pause element. + if( config.active_collection == collectionKey ){ + let audio = new Audio(); + audio.pause(); + + PlayPauseElement.syncAll(); + } + } + } +} \ No newline at end of file diff --git a/src/elements/PauseElements/GlobalPauseElement.js b/src/elements/PauseElements/GlobalPauseElement.js new file mode 100644 index 00000000..88c6f0a5 --- /dev/null +++ b/src/elements/PauseElements/GlobalPauseElement.js @@ -0,0 +1,44 @@ +import { Audio } from "@/core/Audio"; +import { ConfigState } from "@/services/ConfigState"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; + +export class GlobalPauseElement { + static globalPauseQuery = '.amplitude-pause:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( GlobalPauseElement.globalPauseQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( ( element ) => { + if( this.#mobile ){ + element.removeEventListener( "touchend", this.#handleInteraction ); + element.addEventListener( "touchend", this.#handleInteraction ); + }else{ + element.removeEventListener( "click", this.#handleInteraction ); + element.addEventListener( "click", this.#handleInteraction ); + } + }); + } + + #handleInteraction(){ + if( !ConfigState.isTouchMoving() ){ + let audio = new Audio(); + audio.pause(); + + PlayPauseElement.syncAll(); + } + } +} \ No newline at end of file diff --git a/src/elements/PlayElement.js b/src/elements/PlayElement.js new file mode 100644 index 00000000..1b0372ea --- /dev/null +++ b/src/elements/PlayElement.js @@ -0,0 +1,51 @@ +import { GlobalPlayElement } from "./PlayElements/GlobalPlayElement"; +import { CollectionPlayElement } from "./PlayElements/CollectionPlayElement"; +import { AudioPlayElement } from "./PlayElements/AudioPlayElement"; +import { CollectionAudioPlayElement } from "./PlayElements/CollectionAudioPlayElement"; +/** + * Handles the configuration and managing of the play elements. + * + * A Play element is defined as the following: + * + * Element: class="amplitude-play" + * + * GLOBAL: class="amplitude-play" + * Controls the entire state of the audio player. Will play whatever is active. + * + * COLLECTION: class="amplitude-play" data-amplitude-collection-key="{collection_key}" + * Scoped to an individual collection. Will only play within the collection. + * + * AUDIO: class="amplitude-play" data-amplitude-audio-index="{audio_index}" + * Scoped to an individual audio element. Will only play a specific piece of audio. + * + * AUDIO IN COLLECTION: class="amplitude-play" data-amplitude-collection-key="{collection_key}" data-amplitude-audio-index="{audio_index}" + * Scoped to an individual audio element within a collection. Will only play a specific piece of audio in a collection. + */ +export class PlayElement{ + setUp(){ + this.#configureGlobalPlayElement(); + this.#configureCollectionPlayElement(); + this.#configureAudioPlayElement(); + this.#configureCollectionAudioPlayElement(); + } + + #configureGlobalPlayElement(){ + let globalPlayElement = new GlobalPlayElement(); + globalPlayElement.initialize(); + } + + #configureCollectionPlayElement(){ + let collectionPlayElement = new CollectionPlayElement(); + collectionPlayElement.initialize(); + } + + #configureAudioPlayElement(){ + let audioPlayElement = new AudioPlayElement(); + audioPlayElement.initialize(); + } + + #configureCollectionAudioPlayElement(){ + let collectionAudioPlayElement = new CollectionAudioPlayElement(); + collectionAudioPlayElement.initialize(); + } +} \ No newline at end of file diff --git a/src/elements/PlayElements/AudioPlayElement.js b/src/elements/PlayElements/AudioPlayElement.js new file mode 100644 index 00000000..1c829560 --- /dev/null +++ b/src/elements/PlayElements/AudioPlayElement.js @@ -0,0 +1,85 @@ +import { Audio } from '@/core/Audio.js'; +import { Checks as AudioChecks } from '@/services/Audio/Checks.js'; +import { Navigation as AudioNavigation } from '@/services/Audio/Navigation.js'; +import { Checks as CollectionChecks } from '@/services/Collections/Checks.js'; +import { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js'; +import { Debug } from "@/services/Debug"; +import { ConfigState } from "@/services/ConfigState"; +import { config } from "@/config"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; + +export class AudioPlayElement { + static audioPlayQuery = '.amplitude-play[data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( AudioPlayElement.audioPlayQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => { + if( this.#mobile ){ + element.removeEventListener("touchend", this.#handleInteraction ); + element.addEventListener("touchend", this.#handleInteraction.bind(this, element) ); + }else{ + element.removeEventListener("click", this.#handleInteraction ); + element.addEventListener("click", this.#handleInteraction.bind(this, element) ); + } + } ); + } + + #handleInteraction( element ){ + if( !ConfigState.isTouchMoving() ){ + let index = element.getAttribute('data-amplitude-audio-index'); + + if( !AudioChecks.audioExists( index ) ){ + Debug.writeMessage('Audio with index "'+index+'" does not exist! Please add an audio object at this index in your configuration.'); + return false; + } + + this.#handleCollectionChanges( index ); + this.#handleAudioChanges( index ); + this.#playAudio(); + + PlayPauseElement.syncAll(); + } + } + + #handleCollectionChanges( index ){ + if( CollectionChecks.collectionChanged( null ) ){ + let collectionNavigation = new CollectionNavigation(); + let audioNavigation = new AudioNavigation(); + + collectionNavigation.setActiveCollection( null ); + audioNavigation.changeAudio( + config.audio[index], index, true + ); + } + } + + #handleAudioChanges( index ){ + if( AudioChecks.audioChanged( index ) ){ + let audioNavigation = new AudioNavigation(); + + audioNavigation.changeAudio( + config.audio[index], index, true + ); + } + } + + #playAudio(){ + let audio = new Audio(); + audio.play(); + } +} \ No newline at end of file diff --git a/src/elements/PlayElements/CollectionAudioPlayElement.js b/src/elements/PlayElements/CollectionAudioPlayElement.js new file mode 100644 index 00000000..b3856678 --- /dev/null +++ b/src/elements/PlayElements/CollectionAudioPlayElement.js @@ -0,0 +1,85 @@ +import { Audio } from '@/core/Audio.js'; +import { Checks as AudioChecks } from '@/services/Audio/Checks.js'; +import { Checks as CollectionChecks } from '@/services/Collections/Checks.js'; +import { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js'; +import { ConfigState } from "@/services/ConfigState"; +import { config } from "@/config"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; + +export class CollectionAudioPlayElement { + static collectionAudioPlayQuery = '.amplitude-play[data-amplitude-audio-index][data-amplitude-collection-key]'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( CollectionAudioPlayElement.collectionAudioPlayQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => { + if( this.#mobile ){ + element.removeEventListener("touchend", this.#handleInteraction ); + element.addEventListener("touchend", this.#handleInteraction.bind(this, element) ); + }else{ + element.removeEventListener("click", this.#handleInteraction ); + element.addEventListener("click", this.#handleInteraction.bind(this, element) ); + } + } ); + } + + #handleInteraction( element ){ + if( !ConfigState.isTouchMoving() ){ + let collectionKey = element.getAttribute('data-amplitude-collection-key'); + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + let audioIndex = element.getAttribute('data-amplitude-audio-index'); + + this.#handleCollectionChanges( collectionKey, collectionIndex, audioIndex ); + this.#handleAudioChanges( collectionKey, collectionIndex, audioIndex ); + this.#playAudio(); + + PlayPauseElement.syncAll(); + } + } + + #handleCollectionChanges( collectionKey, collectionIndex, audioIndex ){ + if( CollectionChecks.collectionChanged( collectionKey ) ){ + let collectionNavigation = new CollectionNavigation(); + + collectionNavigation.setActiveCollection( collectionKey, collectionIndex ); + collectionNavigation.changeCollectionAudio( + collectionIndex, + config.collections[ collectionIndex ].audio[audioIndex], + audioIndex, + true + ); + } + } + + #handleAudioChanges( collectionKey, collectionIndex, audioIndex ){ + if( AudioChecks.audioChanged( audioIndex, collectionKey ) ){ + let collectionNavigation = new CollectionNavigation(); + + collectionNavigation.changeCollectionAudio( + collectionIndex, + config.collections[ collectionIndex ].audio[audioIndex], + audioIndex, + true + ); + } + } + + #playAudio(){ + let audio = new Audio(); + audio.play(); + } +} \ No newline at end of file diff --git a/src/elements/PlayElements/CollectionPlayElement.js b/src/elements/PlayElements/CollectionPlayElement.js new file mode 100644 index 00000000..08094908 --- /dev/null +++ b/src/elements/PlayElements/CollectionPlayElement.js @@ -0,0 +1,88 @@ +import { Audio } from "@/core/Audio"; +import { Checks as CollectionChecks } from "@/services/Collections/Checks"; +import { Navigation as CollectionNavigation } from "@/services/Collections/Navigation"; +import { Debug } from "@/services/Debug"; +import { ConfigState } from "@/services/ConfigState"; +import { config } from "@/config"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; + +export class CollectionPlayElement{ + static collectionPlayQuery = '.amplitude-play[data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( CollectionPlayElement.collectionPlayQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => { + if( this.#mobile ){ + element.removeEventListener("touchend", this.#handleInteraction ); + element.addEventListener("touchend", this.#handleInteraction.bind(this, element) ); + }else{ + element.removeEventListener("click", this.#handleInteraction ); + element.addEventListener("click", this.#handleInteraction.bind(this, element) ); + } + }); + } + + #handleInteraction( element ){ + if( !ConfigState.isTouchMoving() ){ + let collectionKey = element.getAttribute('data-amplitude-collection-key'); + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + + if( !CollectionChecks.collectionExists( collectionIndex ) ){ + Debug.writeMessage('Collection with key "'+collectionKey+'" does not exist! Please define this collection in your configuration.'); + return false; + } + + this.#handleCollectionChanges( collectionKey ); + this.#playAudio(); + + PlayPauseElement.syncAll(); + } + } + + #handleCollectionChanges( collectionKey ){ + if( CollectionChecks.collectionChanged( collectionKey ) ){ + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + + let collectionNavigation = new CollectionNavigation(); + collectionNavigation.setActiveCollection( collectionKey, collectionIndex ); + + // If the collection is shuffled and the collection is changed, + // we change the audio to be the first audio in the array. Since, + // we are changing the collection, we are starting at the top. + if( CollectionChecks.isCollectionShuffled( collectionIndex ) ){ + collectionNavigation.changeCollectionAudio( + collectionIndex, + config.collections[ collectionIndex ].shuffle_list[0], + 0, + true + ); + }else{ + collectionNavigation.changeCollectionAudio( + collectionIndex, + config.collections[ collectionIndex ].audio[0], + 0 + ); + } + } + } + + #playAudio(){ + let audio = new Audio(); + audio.play(); + } +} \ No newline at end of file diff --git a/src/elements/PlayElements/GlobalPlayElement.js b/src/elements/PlayElements/GlobalPlayElement.js new file mode 100644 index 00000000..b5fcc2b9 --- /dev/null +++ b/src/elements/PlayElements/GlobalPlayElement.js @@ -0,0 +1,42 @@ +import { Audio } from "@/core/Audio"; +import { ConfigState } from "@/services/ConfigState"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; + +export class GlobalPlayElement { + static globalPlayQuery = '.amplitude-play:not([data-amplitude-audio-index]):not([data-amplitude-collection-index])'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( GlobalPlayElement.globalPlayQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( ( element ) => { + if( this.#mobile ){ + element.removeEventListener( "touchend", this.#handleInteraction ); + element.addEventListener( "touchend", this.#handleInteraction ); + }else{ + element.removeEventListener( "click", this.#handleInteraction ); + element.addEventListener( "click", this.#handleInteraction ); + } + }); + } + + #handleInteraction(){ + let audio = new Audio(); + audio.play(); + + PlayPauseElement.syncAll(); + } +} \ No newline at end of file diff --git a/src/elements/PlayPauseElement.js b/src/elements/PlayPauseElement.js new file mode 100644 index 00000000..d51c45f6 --- /dev/null +++ b/src/elements/PlayPauseElement.js @@ -0,0 +1,96 @@ +import { GlobalPlayPauseElement } from "./PlayPauseElements/GlobalPlayPauseElement"; +import { CollectionPlayPauseElement } from "./PlayPauseElements/CollectionPlayPauseElement"; +import { AudioPlayPauseElement } from "./PlayPauseElements/AudioPlayPauseElement"; +import { CollectionAudioPlayPauseElement } from "./PlayPauseElements/CollectionAudioPlayPauseElement"; + +/** + * Handles the configuration and managing of Play/Pause elements. + * + * A Play Pause element is defined as the following: + * + * Element: class="amplitude-play-pause" + * + * GLOBAL: class="amplitude-play-pause" + * Controls the entire state of the audio player. Will play or pause whatever is active. + * + * COLLECTION: class="amplitude-play-pause" data-amplitude-collection-key="{collection_key}" + * Scoped to an individual collection. Will only play or pause within the scope of a collection. + * + * AUDIO: class="amplitude-play-pause" data-amplitude-audio-index="{audio_index}" + * Scoped to an individual audio element. Will only play or pause a specific piece of audio. + * + * AUDIO IN COLLECTION: class="amplitude-play-pause" data-amplitude-collection-key="{collection_key}" data-amplitude-audio-index="{audio_index}" + * Scoped to an individual audio element within a collection. Will only play or pause a specific piece of audio in a collection. + */ +export class PlayPauseElement{ + constructor(){ + + } + + setUp(){ + this.#configureGlobalPlayPauseElement(); + this.#configureCollectionPlayPauseElement(); + this.#configureAudioPlayPauseElement(); + this.#configureCollectionAudioPlayPauseElement(); + } + + #configureGlobalPlayPauseElement(){ + let globalPlayPauseElement = new GlobalPlayPauseElement(); + globalPlayPauseElement.initialize(); + } + + #configureCollectionPlayPauseElement(){ + let collectionPlayPauseElement = new CollectionPlayPauseElement(); + collectionPlayPauseElement.initialize(); + } + + #configureAudioPlayPauseElement(){ + let audioPlayPauseElement = new AudioPlayPauseElement(); + audioPlayPauseElement.initialize(); + } + + #configureCollectionAudioPlayPauseElement(){ + let collectionAudioPlayPauseElement = new CollectionAudioPlayPauseElement(); + collectionAudioPlayPauseElement.initialize(); + } + + static syncAll(){ + GlobalPlayPauseElement.syncUI(); + CollectionPlayPauseElement.syncUI(); + AudioPlayPauseElement.syncUI(); + CollectionAudioPlayPauseElement.syncUI(); + } + + static syncAllToPause(){ + GlobalPlayPauseElement.syncToPause(); + CollectionPlayPauseElement.syncToPause(); + AudioPlayPauseElement.syncToPause(); + CollectionAudioPlayPauseElement.syncToPause(); + } + + /** + * Sets an element to be playing by removing the 'amplitude-paused' class + * and adding the 'amplitude-playing' class + * + * @access public + * @static + * @param {element} element - The element getting the playing class added. + */ + static setElementPlay( element ){ + element.classList.add("amplitude-playing"); + element.classList.remove("amplitude-paused"); + } + + /** + * Sets an element to be paused by adding the 'amplitude-paused' class + * and removing the 'amplitude-playing' class + * + * @access public + * @static + * @param {element} element - The element getting the paused class added. + */ + static setElementPause( element ){ + element.classList.remove("amplitude-playing"); + element.classList.add("amplitude-paused"); + } +} \ No newline at end of file diff --git a/src/elements/PlayPauseElements/AudioPlayPauseElement.js b/src/elements/PlayPauseElements/AudioPlayPauseElement.js new file mode 100644 index 00000000..a4f2661e --- /dev/null +++ b/src/elements/PlayPauseElements/AudioPlayPauseElement.js @@ -0,0 +1,134 @@ +import { Audio } from '@/core/Audio.js'; +import { Checks as AudioChecks } from '@/services/Audio/Checks.js'; +import { Navigation as AudioNavigation } from '@/services/Audio/Navigation.js'; +import { Checks as CollectionChecks } from '@/services/Collections/Checks.js'; +import { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js'; +import { Debug } from "@/services/Debug"; +import { ConfigState } from "@/services/ConfigState"; +import { config } from "@/config"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; + +export class AudioPlayPauseElement { + static audioPlayPauseQuery = '.amplitude-play-pause[data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( AudioPlayPauseElement.audioPlayPauseQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => { + if( this.#mobile ){ + element.removeEventListener("touchend", this.#handleInteraction ); + element.addEventListener("touchend", this.#handleInteraction.bind(this, element) ); + }else{ + element.removeEventListener("click", this.#handleInteraction ); + element.addEventListener("click", this.#handleInteraction.bind(this, element) ); + } + } ); + } + + /** + * There can be multiple collections on the page. There can also be multiple + * individual audio players and audio players in collections. + * + * We first check to see if the audio index exists. This can be a game changer + * if the user messes up a key. + * + * Next, we check to see if the collection has changed. Even though, this class + * responds to audio that is not a part of a collection, technically the collection + * changes if the state of the player is in collection mode and we switch out of collection + * mode. + * + * Finally, we check to see if the audio has changed. This means there is more than + * one audio player on the page and the user has switched to a different player. If the + * player was in collection mode, this check won't do anything since we change the audio + * out of collection mode. This only fires if the player is not in collection mode and + * switches to another audio player not in collection mode. + * + * @returns {boolean|null} + */ + #handleInteraction( element ){ + if( !ConfigState.isTouchMoving() ){ + let index = element.getAttribute('data-amplitude-audio-index'); + + if( !AudioChecks.audioExists( index ) ){ + Debug.writeMessage('Audio with index "'+index+'" does not exist! Please add an audio object at this index in your configuration.'); + return false; + } + + this.#handleCollectionChanges( index ); + this.#handleAudioChanges( index ); + this.#toggleAudio(); + + PlayPauseElement.syncAll(); + } + } + + #handleCollectionChanges( index ){ + if( CollectionChecks.collectionChanged( null ) ){ + let collectionNavigation = new CollectionNavigation(); + let audioNavigation = new AudioNavigation(); + + collectionNavigation.setActiveCollection( null ); + audioNavigation.changeAudio( + config.audio[index], index, true + ); + } + } + + #handleAudioChanges( index ){ + if( AudioChecks.audioChanged( index ) ){ + let audioNavigation = new AudioNavigation(); + + audioNavigation.changeAudio( + config.audio[index], index, true + ); + } + } + + #toggleAudio(){ + let audio = new Audio(); + + if( config.audio_element.paused ){ + audio.play(); + }else{ + audio.pause(); + } + } + + static syncUI(){ + let state = ConfigState.getAudioState(); + let elements = document.querySelectorAll( AudioPlayPauseElement.audioPlayPauseQuery ); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + elements.forEach( ( element ) => { + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( state == 'playing' && ( activeAudioIndex == elementAudioIndex ) ){ + PlayPauseElement.setElementPlay( element ); + }else{ + PlayPauseElement.setElementPause( element ); + } + }) + } + + static syncToPause(){ + let elements = document.querySelectorAll( AudioPlayPauseElement.audioPlayPauseQuery ); + + elements.forEach( ( element ) => { + PlayPauseElement.setElementPause( element ); + }); + } +} \ No newline at end of file diff --git a/src/elements/PlayPauseElements/CollectionAudioPlayPauseElement.js b/src/elements/PlayPauseElements/CollectionAudioPlayPauseElement.js new file mode 100644 index 00000000..534cf928 --- /dev/null +++ b/src/elements/PlayPauseElements/CollectionAudioPlayPauseElement.js @@ -0,0 +1,112 @@ +import { Audio } from '@/core/Audio.js'; +import { Checks as AudioChecks } from '@/services/Audio/Checks.js'; +import { Checks as CollectionChecks } from '@/services/Collections/Checks.js'; +import { Navigation as CollectionNavigation } from '@/services/Collections/Navigation.js'; +import { ConfigState } from "@/services/ConfigState"; +import { config } from "@/config"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; + +export class CollectionAudioPlayPauseElement { + static collectionAudioPlayPauseQuery = '.amplitude-play-pause[data-amplitude-audio-index][data-amplitude-collection-key]'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( CollectionAudioPlayPauseElement.collectionAudioPlayPauseQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => { + if( this.#mobile ){ + element.removeEventListener("touchend", this.#handleInteraction ); + element.addEventListener("touchend", this.#handleInteraction.bind(this, element) ); + }else{ + element.removeEventListener("click", this.#handleInteraction ); + element.addEventListener("click", this.#handleInteraction.bind(this, element) ); + } + } ); + } + + #handleInteraction( element ){ + if( !ConfigState.isTouchMoving() ){ + let collectionKey = element.getAttribute('data-amplitude-collection-key'); + let audioIndex = element.getAttribute('data-amplitude-audio-index'); + + this.#handleCollectionChanges( collectionKey, audioIndex ); + this.#handleAudioChanges( collectionKey, audioIndex ); + this.#toggleAudio(); + + PlayPauseElement.syncAll(); + } + } + + #handleCollectionChanges( collectionKey, audioIndex ){ + if( CollectionChecks.collectionChanged( collectionKey ) ){ + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + let collectionNavigation = new CollectionNavigation(); + + collectionNavigation.setActiveCollection( collectionKey ); + collectionNavigation.changeCollectionAudio( + collectionIndex, + config.collections[ collectionIndex ].audio[ audioIndex ], + audioIndex, + true + ); + } + } + + #handleAudioChanges( collectionKey, audioIndex ){ + if( AudioChecks.audioChanged( audioIndex, collectionKey ) ){ + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + let collectionNavigation = new CollectionNavigation(); + + collectionNavigation.changeCollectionAudio( + collectionIndex, + config.collections[ collectionKey ].audio[audioIndex], + audioIndex, + true + ); + } + } + + #toggleAudio(){ + let audio = new Audio(); + + if( config.audio_element.paused ){ + audio.play(); + }else{ + audio.pause(); + } + } + + static syncUI(){ + let state = ConfigState.getAudioState(); + let elements = document.querySelectorAll( CollectionAudioPlayPauseElement.collectionAudioPlayPauseQuery ); + + elements.forEach( ( element ) => { + if( state == 'playing' ){ + PlayPauseElement.setElementPlay( element ); + }else{ + PlayPauseElement.setElementPause( element ); + } + }) + } + + static syncToPause(){ + let elements = document.querySelectorAll( CollectionAudioPlayPauseElement.collectionAudioPlayPauseQuery ); + + elements.forEach( ( element ) => { + PlayPauseElement.setElementPause( element ); + }); + } +} \ No newline at end of file diff --git a/src/elements/PlayPauseElements/CollectionPlayPauseElement.js b/src/elements/PlayPauseElements/CollectionPlayPauseElement.js new file mode 100644 index 00000000..33ce7b57 --- /dev/null +++ b/src/elements/PlayPauseElements/CollectionPlayPauseElement.js @@ -0,0 +1,122 @@ +import { Audio } from "@/core/Audio"; +import { Checks as CollectionChecks } from "@/services/Collections/Checks"; +import { Navigation as CollectionNavigation } from "@/services/Collections/Navigation"; +import { Debug } from "@/services/Debug"; +import { ConfigState } from "@/services/ConfigState"; +import { config } from "@/config"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; + +/** + * A Collection Play Pause element is defined by the following: + * + * Element: class="amplitude-play-pause" data-amplitude-collection-key="{collection_key}" + */ +export class CollectionPlayPauseElement { + static collectionPlayPauseQuery = '.amplitude-play-pause[data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements() + this.#bindInteractions() + } + + #findElements(){ + this.#elements = document.querySelectorAll( CollectionPlayPauseElement.collectionPlayPauseQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => {; + if( this.#mobile ){ + element.removeEventListener("touchend", this.#handleInteraction ); + element.addEventListener("touchend", this.#handleInteraction.bind(this, element) ); + }else{ + element.removeEventListener("click", this.#handleInteraction ); + element.addEventListener("click", this.#handleInteraction.bind(this, element) ); + } + } ); + } + + #handleInteraction( element ){ + if( !ConfigState.isTouchMoving() ){ + let collectionKey = element.getAttribute('data-amplitude-collection-key'); + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + + if( !CollectionChecks.collectionExists( collectionIndex ) ){ + Debug.writeMessage('Collection with key "'+collectionKey+'" does not exist! Please define this collection in your configuration.'); + return false; + } + + this.#handleCollectionChanges( collectionKey ); + this.#toggleAudio(); + + PlayPauseElement.syncAll(); + } + } + + #handleCollectionChanges( collectionKey ){ + if( CollectionChecks.collectionChanged( collectionKey ) ){ + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + + let collectionNavigation = new CollectionNavigation(); + collectionNavigation.setActiveCollection( collectionKey, collectionIndex ); + + // If the collection is shuffled and the collection is changed, + // we change the audio to be the first audio in the array. Since, + // we are changing the collection, we are starting at the top. + if( CollectionChecks.isCollectionShuffled( collectionIndex ) ){ + collectionNavigation.changeCollectionAudio( + collectionIndex, + config.collections[ collectionIndex ].shuffle_list[0], + 0, + true + ); + }else{ + collectionNavigation.changeCollectionAudio( + collectionIndex, + config.collections[ collectionIndex ].audio[0], + 0 + ); + } + } + } + + #toggleAudio(){ + let audio = new Audio(); + + if( config.audio_element.paused ){ + audio.play(); + }else{ + audio.pause(); + } + } + + static syncUI(){ + let state = ConfigState.getAudioState(); + let elements = document.querySelectorAll( CollectionPlayPauseElement.collectionPlayPauseQuery ); + let activeCollectionKey = ConfigState.getActiveCollection(); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + + if( state == 'playing' && ( activeCollectionKey == elementCollectionKey ) ){ + PlayPauseElement.setElementPlay( element ); + }else{ + PlayPauseElement.setElementPause( element ); + } + }) + } + + static syncToPause(){ + let elements = document.querySelectorAll( CollectionPlayPauseElement.collectionPlayPauseQuery ); + + elements.forEach( (element) => { + PlayPauseElement.setElementPause( element ); + }); + } +} \ No newline at end of file diff --git a/src/elements/PlayPauseElements/GlobalPlayPauseElement.js b/src/elements/PlayPauseElements/GlobalPlayPauseElement.js new file mode 100644 index 00000000..5a7a2f53 --- /dev/null +++ b/src/elements/PlayPauseElements/GlobalPlayPauseElement.js @@ -0,0 +1,71 @@ +import { Audio } from "@/core/Audio"; +import { ConfigState } from "@/services/ConfigState"; +import { config } from "@/config"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; + +export class GlobalPlayPauseElement{ + static globalPlayPauseQuery = '.amplitude-play-pause:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements() + this.#bindInteractions() + } + + #findElements(){ + this.#elements = document.querySelectorAll( GlobalPlayPauseElement.globalPlayPauseQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => { + if( this.#mobile ){ + element.removeEventListener("touchend", this.#handleInteraction ); + element.addEventListener("touchend", this.#handleInteraction ); + }else{ + element.removeEventListener("click", this.#handleInteraction ); + element.addEventListener("click", this.#handleInteraction ); + } + } ); + } + + #handleInteraction(){ + if( !ConfigState.isTouchMoving() ){ + let audio = new Audio(); + + if( config.audio_element.paused ){ + audio.play(); + }else{ + audio.pause(); + } + + PlayPauseElement.syncAll(); + } + } + + static syncUI(){ + let state = ConfigState.getAudioState(); + let elements = document.querySelectorAll( GlobalPlayPauseElement.globalPlayPauseQuery ); + + elements.forEach( ( element ) => { + if( state == 'playing' ){ + PlayPauseElement.setElementPlay( element ); + }else{ + PlayPauseElement.setElementPause( element ); + } + }) + } + + static syncToPause(){ + let elements = document.querySelectorAll( GlobalPlayPauseElement.globalPlayPauseQuery ); + + elements.forEach( (element) => { + PlayPauseElement.setElementPause( element ); + }); + } +} \ No newline at end of file diff --git a/src/elements/PlaybackSpeedElement.js b/src/elements/PlaybackSpeedElement.js new file mode 100644 index 00000000..d32157d9 --- /dev/null +++ b/src/elements/PlaybackSpeedElement.js @@ -0,0 +1,76 @@ +import { Audio } from "@/core/Audio"; +import { ConfigState } from "@/services/ConfigState"; + +export class PlaybackSpeedElement { + static playbackSpeedElementQuery = '.amplitude-playback-speed'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + setUp(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( PlaybackSpeedElement.playbackSpeedElementQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( ( element ) => { + if( this.#mobile ){ + element.removeEventListener( "touchend", this.#handleInteraction ); + element.addEventListener( "touchend", this.#handleInteraction ); + }else{ + element.removeEventListener( "click", this.#handleInteraction ); + element.addEventListener( "click", this.#handleInteraction ); + } + }); + } + + #handleInteraction(){ + if( !ConfigState.isTouchMoving() ){ + let audio = new Audio(); + + switch( ConfigState.getPlaybackSpeed() ){ + case 1: + audio.setPlaybackSpeed( 1.5 ); + break; + case 1.5: + audio.setPlaybackSpeed( 2 ); + break; + case 2: + audio.setPlaybackSpeed( 1 ); + break; + } + + PlaybackSpeedElement.syncElements(); + } + } + + static syncElements(){ + let elements = document.querySelectorAll( PlaybackSpeedElement.playbackSpeedElementQuery ); + + elements.forEach( function( element ){ + element.classList.remove("amplitude-playback-speed-10"); + element.classList.remove("amplitude-playback-speed-15"); + element.classList.remove("amplitude-playback-speed-20"); + + switch( ConfigState.getPlaybackSpeed() ){ + case 1: + element.classList.add("amplitude-playback-speed-10"); + break; + case 1.5: + element.classList.add("amplitude-playback-speed-15"); + break; + case 2: + element.classList.add("amplitude-playback-speed-20"); + break; + } + }); + } +} \ No newline at end of file diff --git a/src/elements/PreviousElement.js b/src/elements/PreviousElement.js new file mode 100644 index 00000000..5625b273 --- /dev/null +++ b/src/elements/PreviousElement.js @@ -0,0 +1,32 @@ +import { CollectionPreviousElement } from "./PreviousElements/CollectionPreviousElement"; +import { GlobalPreviousElement } from "./PreviousElements/GlobalPreviousElement"; + +/** + * Handles the configuration and managing of Previous elements + * + * A Previous element is defined as the following: + * + * Element: class="amplitude-previous" + * + * GLOBAL: class="amplitude-previous" + * Handles previous for whatever scope the player is in. + * + * COLLECTION: class="amplitude-previous" data-amplitude-collection="{collection_key}" + * Handles the previous audio within a specific collection. + */ +export class PreviousElement { + setUp(){ + this.#configureGlobalPreviousElement(); + this.#configureCollectionPreviousElement(); + } + + #configureGlobalPreviousElement(){ + let globalPreviousElement = new GlobalPreviousElement(); + globalPreviousElement.initialize(); + } + + #configureCollectionPreviousElement(){ + let collectionPreviousElement = new CollectionPreviousElement(); + collectionPreviousElement.initialize(); + } +} \ No newline at end of file diff --git a/src/elements/PreviousElements/CollectionPreviousElement.js b/src/elements/PreviousElements/CollectionPreviousElement.js new file mode 100644 index 00000000..b88c9a92 --- /dev/null +++ b/src/elements/PreviousElements/CollectionPreviousElement.js @@ -0,0 +1,49 @@ +import { ConfigState } from "@/services/ConfigState"; +import { Debug } from "@/services/Debug"; +import { config } from "@/config"; +import { Navigation as CollectionNavigation } from "@/services/Collections/Navigation.js" + +export class CollectionPreviousElement { + static collectionPreviousQuery = '.amplitude-previous[data-amplitude-collection-key]'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( CollectionPreviousElement.collectionPreviousQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( ( element ) => { + if( this.#mobile ){ + element.removeEventListener( "touchend", this.#handleInteraction ); + element.addEventListener( "touchend", this.#handleInteraction ); + }else{ + element.removeEventListener( "click", this.#handleInteraction ); + element.addEventListener( "click", this.#handleInteraction ); + } + }); + } + + #handleInteraction(){ + if( !ConfigState.isTouchMoving() ){ + let collectionKey = this.getAttribute('data-amplitude-collection-key'); + + if( collectionKey == config.active_collection ){ + let collectionNavigation = new CollectionNavigation(); + collectionNavigation.previous(); + }else{ + Debug.writeMessage("You can not go to the previous audio on a playlist that is not being played!"); + } + } + } +} \ No newline at end of file diff --git a/src/elements/PreviousElements/GlobalPreviousElement.js b/src/elements/PreviousElements/GlobalPreviousElement.js new file mode 100644 index 00000000..ebdd63af --- /dev/null +++ b/src/elements/PreviousElements/GlobalPreviousElement.js @@ -0,0 +1,46 @@ +import { ConfigState } from "@/services/ConfigState"; +import { Debug } from "@/services/Debug"; +import { Navigation as CollectionNavigation } from "@/services/Collections/Navigation.js" + +export class GlobalPreviousElement { + static globalPreviousQuery = '.amplitude-previous:not([data-amplitude-collection-key])'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( GlobalPreviousElement.globalPreviousQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( ( element ) => { + if( this.#mobile ){ + element.removeEventListener( "touchend", this.#handleInteraction ); + element.addEventListener( "touchend", this.#handleInteraction ); + }else{ + element.removeEventListener( "click", this.#handleInteraction ); + element.addEventListener( "click", this.#handleInteraction ); + } + }); + } + + #handleInteraction(){ + if( !ConfigState.isTouchMoving() ){ + if( ConfigState.getScope() == 'collection' ){ + let collectionNavigation = new CollectionNavigation(); + collectionNavigation.previous(); + }else{ + Debug.writeMessage("You can only navigate previous when you are playing a collection."); + } + } + } +} \ No newline at end of file diff --git a/src/elements/ProgressElement.js b/src/elements/ProgressElement.js new file mode 100644 index 00000000..a7a496a6 --- /dev/null +++ b/src/elements/ProgressElement.js @@ -0,0 +1,17 @@ +import { GlobalProgressElement } from "./ProgressElements/GlobalProgressElement"; +import { CollectionProgressElement } from "./ProgressElements/CollectionProgressElement"; +import { AudioProgressElement } from "./ProgressElements/AudioProgressElement"; +import { CollectionAudioProgressElement } from "./ProgressElements/CollectionAudioProgressElement"; + +export class ProgressElement{ + constructor(){ + + } + + static syncCurrentTime( percentage ){ + GlobalProgressElement.syncUI( percentage ); + CollectionProgressElement.syncUI( percentage ); + AudioProgressElement.syncUI( percentage ); + CollectionAudioProgressElement.syncUI( percentage ); + } +} \ No newline at end of file diff --git a/src/elements/ProgressElements/AudioProgressElement.js b/src/elements/ProgressElements/AudioProgressElement.js new file mode 100644 index 00000000..bd27566c --- /dev/null +++ b/src/elements/ProgressElements/AudioProgressElement.js @@ -0,0 +1,23 @@ +import { ConfigState } from '@/services/ConfigState'; + +export class AudioProgressElement{ + static audioProgressQuery = 'progress.amplitude-audio-played-progress[data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + + static syncUI( completionPercentage ){ + if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){ + let elements = document.querySelectorAll( AudioProgressElement.audioProgressQuery ); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + elements.forEach( ( element ) => { + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + let max = element.max; + + if( activeAudioIndex == elementAudioIndex ){ + element.value = ( completionPercentage / 100 ) * max; + }else{ + element.value = 0; + } + }); + } + } +} \ No newline at end of file diff --git a/src/elements/ProgressElements/CollectionAudioProgressElement.js b/src/elements/ProgressElements/CollectionAudioProgressElement.js new file mode 100644 index 00000000..bf930566 --- /dev/null +++ b/src/elements/ProgressElements/CollectionAudioProgressElement.js @@ -0,0 +1,25 @@ +import { ConfigState } from '@/services/ConfigState'; + +export class CollectionAudioProgressElement{ + static collectionAudioProgressQuery = 'progress.amplitude-audio-played-progress[data-amplitude-collection-key][data-amplitude-audio-index]'; + + static syncUI( completionPercentage ){ + if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){ + let elements = document.querySelectorAll( CollectionAudioProgressElement.collectionAudioProgressQuery ); + let activeCollectionKey = ConfigState.getActiveCollection(); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + let max = element.max; + + if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){ + element.value = ( completionPercentage / 100 ) * max; + }else{ + element.value = 0; + } + }); + } + } +} \ No newline at end of file diff --git a/src/elements/ProgressElements/CollectionProgressElement.js b/src/elements/ProgressElements/CollectionProgressElement.js new file mode 100644 index 00000000..4c374d93 --- /dev/null +++ b/src/elements/ProgressElements/CollectionProgressElement.js @@ -0,0 +1,23 @@ +import { ConfigState } from '@/services/ConfigState'; + +export class CollectionProgressElement{ + static collectionProgressQuery = 'progress.amplitude-audio-played-progress[data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + + static syncUI( completionPercentage ){ + if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){ + let elements = document.querySelectorAll( CollectionProgressElement.collectionProgressQuery ); + let activeCollectionKey = ConfigState.getActiveCollection(); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + let max = element.max; + + if( activeCollectionKey == elementCollectionKey ){ + element.value = ( completionPercentage / 100 ) * max; + }else{ + element.value = 0; + } + }); + } + } +} \ No newline at end of file diff --git a/src/elements/ProgressElements/GlobalProgressElement.js b/src/elements/ProgressElements/GlobalProgressElement.js new file mode 100644 index 00000000..674374b6 --- /dev/null +++ b/src/elements/ProgressElements/GlobalProgressElement.js @@ -0,0 +1,15 @@ +export class GlobalProgressElement{ + static globalProgressQuery = 'progress.amplitude-audio-played-progress:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'; + + static syncUI( completionPercentage ){ + if( !isNaN( completionPercentage ) && isFinite( completionPercentage ) ){ + let elements = document.querySelectorAll( GlobalProgressElement.globalProgressQuery ); + + elements.forEach( ( element ) => { + let max = element.max; + + element.value = ( completionPercentage / 100 ) * max; + }); + } + } +} \ No newline at end of file diff --git a/src/elements/RepeatAudioElement.js b/src/elements/RepeatAudioElement.js new file mode 100644 index 00000000..5512b324 --- /dev/null +++ b/src/elements/RepeatAudioElement.js @@ -0,0 +1,2 @@ +// Should be global only +// Repeats the current audio diff --git a/src/elements/RepeatElement.js b/src/elements/RepeatElement.js new file mode 100644 index 00000000..6cae65f9 --- /dev/null +++ b/src/elements/RepeatElement.js @@ -0,0 +1,2 @@ +// Should be COLLECTION ONLY +// Repeats the current collection \ No newline at end of file diff --git a/src/elements/ShuffleElement.js b/src/elements/ShuffleElement.js new file mode 100644 index 00000000..da346d03 --- /dev/null +++ b/src/elements/ShuffleElement.js @@ -0,0 +1,37 @@ +import { CollectionShuffleElement } from "./ShuffleElements/CollectionShuffleElement"; +import { GlobalShuffleElement } from "./ShuffleElements/GlobalShuffleElement"; + +/** + * Handles the configuration and managing of Shuffle elements + * + * A Shuffle element is defined as the following: + * + * Element: class="amplitude-shuffle" + * + * GLOBAL: class="amplitude-shuffles" + * Shuffles the active collection + * + * COLLECTION: class="amplitude-shuffle" data-amplitude-collection="{collection_key}" + * Shuffles the collection identified + */ +export class ShuffleElement { + setUp(){ + this.#configureGlobalShuffleElement(); + this.#configureCollectionShuffleElement(); + } + + #configureGlobalShuffleElement(){ + let globalShuffleElement = new GlobalShuffleElement(); + globalShuffleElement.initialize(); + } + + #configureCollectionShuffleElement(){ + let collectionShuffleElement = new CollectionShuffleElement(); + collectionShuffleElement.initialize(); + } + + static syncAll(){ + GlobalShuffleElement.syncUI(); + CollectionShuffleElement.syncUI(); + } +} \ No newline at end of file diff --git a/src/elements/ShuffleElements/CollectionShuffleElement.js b/src/elements/ShuffleElements/CollectionShuffleElement.js new file mode 100644 index 00000000..0cd70edf --- /dev/null +++ b/src/elements/ShuffleElements/CollectionShuffleElement.js @@ -0,0 +1,75 @@ +import { ConfigState } from "@/services/ConfigState"; +import { Shuffle } from "@/services/Collections/Shuffle"; + +export class CollectionShuffleElement { + static collectionShuffleQuery = '.amplitude-shuffle[data-amplitude-collection-key]'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( CollectionShuffleElement.collectionShuffleQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( ( element ) => { + if( this.#mobile ){ + element.removeEventListener( "touchend", this.#handleInteraction ); + element.addEventListener( "touchend", this.#handleInteraction ); + }else{ + element.removeEventListener( "click", this.#handleInteraction ); + element.addEventListener( "click", this.#handleInteraction ); + } + }); + } + + #handleInteraction(){ + let collectionKey = this.getAttribute('data-amplitude-collection-key'); + + let shuffle = new Shuffle( collectionKey ); + shuffle.toggleShuffle(); + + CollectionShuffleElement.updateUI( collectionKey ); + } + + static updateUI( collectionKey ){ + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + let elements = document.querySelectorAll( '.amplitude-shuffle[data-amplitude-collection-key="'+collectionKey+'"]'); + + elements.forEach( ( element ) => { + if( ConfigState.isCollectionShuffled( collectionIndex ) ){ + element.classList.add( "amplitude-shuffle-on" ); + element.classList.remove( "amplitude-shuffle-off" ); + }else{ + element.classList.add( "amplitude-shuffle-off" ); + element.classList.remove( "amplitude-shuffle-on" ); + } + }); + } + + static syncUI(){ + let elements = document.querySelectorAll( CollectionShuffleElement.collectionShuffleQuery ); + + elements.forEach( ( element ) => { + let collectionKey = element.getAttribute('data-amplitude-collection-key'); + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + + if( ConfigState.isCollectionShuffled( collectionIndex ) ){ + element.classList.add( "amplitude-shuffle-on" ); + element.classList.remove( "amplitude-shuffle-off" ); + }else{ + element.classList.add( "amplitude-shuffle-off" ); + element.classList.remove( "amplitude-shuffle-on" ); + } + }); + } +} \ No newline at end of file diff --git a/src/elements/ShuffleElements/GlobalShuffleElement.js b/src/elements/ShuffleElements/GlobalShuffleElement.js new file mode 100644 index 00000000..5a730cec --- /dev/null +++ b/src/elements/ShuffleElements/GlobalShuffleElement.js @@ -0,0 +1,66 @@ +import { ConfigState } from "@/services/ConfigState"; +import { Shuffle } from "@/services/Collections/Shuffle"; +import { Debug } from "@/services/Debug"; +import { CollectionShuffleElement } from "./CollectionShuffleElement"; + +export class GlobalShuffleElement { + static globalShuffleQuery = '.amplitude-shuffle:not([data-amplitude-collection-key])'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( GlobalShuffleElement.globalShuffleQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( ( element ) => { + if( this.#mobile ){ + element.removeEventListener( "touchend", this.#handleInteraction ); + element.addEventListener( "touchend", this.#handleInteraction ); + }else{ + element.removeEventListener( "click", this.#handleInteraction ); + element.addEventListener( "click", this.#handleInteraction ); + } + }); + } + + #handleInteraction(){ + if( ConfigState.getScope() == 'collection' ){ + let collectionKey = ConfigState.getActiveCollection(); + + let shuffle = new Shuffle( collectionKey ); + shuffle.toggleShuffle(); + + GlobalShuffleElement.syncUI(); + CollectionShuffleElement.updateUI( collectionKey ); + }else{ + Debug.writeMessage("You can only shuffle a collection if you are playing a collection."); + } + } + + static syncUI(){ + let elements = document.querySelectorAll( GlobalShuffleElement.globalShuffleQuery ); + let collectionKey = ConfigState.getActiveCollection(); + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + + elements.forEach( ( element ) => { + if( ConfigState.isCollectionShuffled( collectionIndex ) ){ + element.classList.add( "amplitude-shuffle-on" ); + element.classList.remove( "amplitude-shuffle-off" ); + }else{ + element.classList.add( "amplitude-shuffle-off" ); + element.classList.remove( "amplitude-shuffle-on" ); + } + }); + } +} \ No newline at end of file diff --git a/src/elements/SkipToElement.js b/src/elements/SkipToElement.js new file mode 100644 index 00000000..f944df53 --- /dev/null +++ b/src/elements/SkipToElement.js @@ -0,0 +1,19 @@ +import { AudioSkipToElement } from "./SkipToElements/AudioSkipToElement"; +import { CollectionAudioSkipToElement } from "./SkipToElements/CollectionAudioSkipToElement"; + +export class SkipToElement { + setUp(){ + this.#configureAudioSkipToElement(); + this.#configureCollectionAudioSkipToElement(); + } + + #configureAudioSkipToElement(){ + let audioSkipToElement = new AudioSkipToElement(); + audioSkipToElement.initialize(); + } + + #configureCollectionAudioSkipToElement(){ + let collectionAudioSkipToElement = new CollectionAudioSkipToElement(); + collectionAudioSkipToElement.initialize(); + } +} \ No newline at end of file diff --git a/src/elements/SkipToElements/AudioSkipToElement.js b/src/elements/SkipToElements/AudioSkipToElement.js new file mode 100644 index 00000000..ab19c06c --- /dev/null +++ b/src/elements/SkipToElements/AudioSkipToElement.js @@ -0,0 +1,83 @@ +import { Audio } from '@/core/Audio.js'; +import { config } from '@/config'; +import { ConfigState } from "@/services/ConfigState"; +import { Debug } from "@/services/Debug"; +import { Navigation as AudioNavigation } from '@/services/Audio/Navigation.js'; +import { PlayPauseElement } from '@/elements/PlayPauseElement'; + +export class AudioSkipToElement { + static audioSkipToElementQuery = ".amplitude-skip-to[data-amplitude-audio-index]:not([data-amplitude-collection-key])"; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( AudioSkipToElement.audioSkipToElementQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => { + if( this.#mobile ){ + element.removeEventListener("touchend", this.#handleInteraction ); + element.addEventListener("touchend", this.#handleInteraction.bind(this, element) ); + }else{ + element.removeEventListener("click", this.#handleInteraction ); + element.addEventListener("click", this.#handleInteraction.bind(this, element) ); + } + }); + } + + #handleInteraction( element ){ + if( !ConfigState.isTouchMoving() ){ + let audioIndex = element.getAttribute('data-amplitude-audio-index'); + let location = element.getAttribute('data-amplitude-location'); + + if( this.#validElement( audioIndex, location ) ){ + this.#handleAudioChange( audioIndex ); + this.#playAudio(); + PlayPauseElement.syncAll(); + this.#skipToLocation( location ); + } + } + } + + #validElement( audioIndex, location ){ + if( audioIndex == null ){ + Debug.writeMessage( "You must add a `data-amplitude-audio-index` attribute to your `amplitude-skip-to` element."); + return false; + } + + if( location == null ){ + Debug.writeMessage( "You must add a `data-amplitude-location` attribute in seconds to your `amplitude-skip-to` element."); + return false; + } + + return true; + } + + #handleAudioChange( audioIndex ){ + let audioNavigation = new AudioNavigation(); + audioNavigation.changeAudio( + config.audio[ parseInt( audioIndex ) ], parseInt( audioIndex ), true + ); + } + + #playAudio(){ + let audio = new Audio(); + audio.play(); + } + + #skipToLocation( location ){ + let audio = new Audio(); + audio.skipToLocation( parseInt( location ) ); + } +} \ No newline at end of file diff --git a/src/elements/SkipToElements/CollectionAudioSkipToElement.js b/src/elements/SkipToElements/CollectionAudioSkipToElement.js new file mode 100644 index 00000000..1619473b --- /dev/null +++ b/src/elements/SkipToElements/CollectionAudioSkipToElement.js @@ -0,0 +1,100 @@ +import { Audio } from '@/core/Audio.js'; +import { Checks as CollectionChecks } from "@/services/Collections/Checks"; +import { ConfigState } from "@/services/ConfigState"; +import { Navigation as CollectionNavigation } from "@/services/Collections/Navigation"; +import { PlayPauseElement } from '@/elements/PlayPauseElement'; + +export class CollectionAudioSkipToElement { + static collectionAudioSkipToElementQuery = ".amplitude-skip-to[data-amplitude-audio-index][data-amplitude-collection-key]"; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( CollectionAudioSkipToElement.collectionAudioSkipToElementQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => { + if( this.#mobile ){ + element.removeEventListener("touchend", this.#handleInteraction ); + element.addEventListener("touchend", this.#handleInteraction.bind(this, element) ); + }else{ + element.removeEventListener("click", this.#handleInteraction ); + element.addEventListener("click", this.#handleInteraction.bind(this, element) ); + } + }); + } + + #handleInteraction( element ){ + if( !ConfigState.isTouchMoving() ){ + let audioIndex = element.getAttribute('data-amplitude-audio-index'); + let collectionKey = element.getAttribute('data-amplitude-collection-key'); + let location = element.getAttribute('data-amplitude-location'); + + if( this.#validElement( audioIndex, collectionKey, location ) ){ + this.#handleCollectionChange( collectionKey ); + this.#handleAudioChange( audioIndex, collectionKey ); + this.#playAudio(); + PlayPauseElement.syncAll(); + this.#skipToLocation( location ); + } + } + } + + #validElement( audioIndex, collectionKey, location ){ + if( audioIndex == null ){ + Debug.writeMessage( "You must add a `data-amplitude-audio-index` attribute to your `amplitude-skip-to` element."); + return false; + } + + if( collectionKey == null ){ + Debug.writeMessage( "You must add a valid `data-amplitude-collection-key` attribute to your `amplitude-skip-to` element."); + return false; + } + + if( location == null ){ + Debug.writeMessage( "You must add a `data-amplitude-location` attribute in seconds to your `amplitude-skip-to` element."); + return false; + } + + return true; + } + + #handleCollectionChange( collection ){ + if( CollectionChecks.collectionChanged( collection ) ){ + let collectionNavigation = new CollectionNavigation(); + collectionNavigation.setActiveCollection( collection ); + } + } + + #handleAudioChange( audioIndex, collectionKey ){ + let collectionNavigation = new CollectionNavigation(); + + collectionNavigation.changeCollectionAudio( + collectionKey, + config.collections[ collectionKey ].audio[ parseInt( audioIndex ) ], + parseInt( audioIndex ), + true + ); + } + + #playAudio(){ + let audio = new Audio(); + audio.play(); + } + + #skipToLocation( location ){ + let audio = new Audio(); + audio.skipToLocation( parseInt( location ) ); + } +} \ No newline at end of file diff --git a/src/elements/StopElement.js b/src/elements/StopElement.js new file mode 100644 index 00000000..b98b583a --- /dev/null +++ b/src/elements/StopElement.js @@ -0,0 +1,53 @@ +import { Audio } from "@/core/Audio"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; +import { ConfigState } from "@/services/ConfigState"; + +/** + * Handles the configuration and managing of Stop elements + * + * A Stop element is defined as the following: + * + * Element: class="amplitude-stop" + * + * Whenever this element is interacted with, the audio is stopped no matter where. + */ +export class StopElement { + static stopElementQuery = '.amplitude-stop'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + setUp(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( StopElement.stopElementQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( ( element ) => { + if( this.#mobile ){ + element.removeEventListener( "touchend", this.#handleInteraction ); + element.addEventListener( "touchend", this.#handleInteraction ); + }else{ + element.removeEventListener( "click", this.#handleInteraction ); + element.addEventListener( "click", this.#handleInteraction ); + } + }); + } + + #handleInteraction(){ + if( !ConfigState.isTouchMoving() ){ + let audio = new Audio(); + audio.stop(); + + PlayPauseElement.syncAll(); + } + } +} \ No newline at end of file diff --git a/src/elements/TimeElement.js b/src/elements/TimeElement.js new file mode 100644 index 00000000..99618017 --- /dev/null +++ b/src/elements/TimeElement.js @@ -0,0 +1,37 @@ +import { GlobalCurrentTimeElement } from "./TimeElements/CurrentTime/GlobalCurrentTimeElement"; +import { CollectionCurrentTimeElement } from "./TimeElements/CurrentTime/CollectionCurrentTimeElement"; +import { AudioCurrentTimeElement } from "./TimeElements/CurrentTime/AudioCurrentTimeElement"; +import { CollectionAudioCurrentTimeElement } from "./TimeElements/CurrentTime/CollectionAudioCurrentTimeElement"; + +import { GlobalDurationElement } from "./TimeElements/Duration/GlobalDurationElement"; +import { CollectionDurationElement } from "./TimeElements/Duration/CollectionDurationElement"; +import { AudioDurationElement } from "./TimeElements/Duration/AudioDurationElement"; +import { CollectionAudioDurationElement } from "./TimeElements/Duration/CollectionAudioDurationElement"; + +export class TimeElement { + syncCurrentTime( currentTime ){ + let globalCurrentTimeElement = new GlobalCurrentTimeElement( currentTime ); + globalCurrentTimeElement.sync(); + + let collectionCurrentTimeElement = new CollectionCurrentTimeElement( currentTime ); + collectionCurrentTimeElement.sync(); + + let audioCurrentTimeElement = new AudioCurrentTimeElement( currentTime ); + audioCurrentTimeElement.sync(); + + let collectionAudioCurrentTimeElement = new CollectionAudioCurrentTimeElement( currentTime ); + collectionAudioCurrentTimeElement.sync(); + } + + syncDurationTime( currentTime, duration ){ + let globalDurationElement = new GlobalDurationElement( currentTime, duration ); + globalDurationElement.sync(); + + let audioDurationElement = new AudioDurationElement( currentTime, duration ); + audioDurationElement.sync(); + } + + resetDurationTime(){ + + } +} \ No newline at end of file diff --git a/src/elements/TimeElements/CurrentTime/AudioCurrentTimeElement.js b/src/elements/TimeElements/CurrentTime/AudioCurrentTimeElement.js new file mode 100644 index 00000000..5c173143 --- /dev/null +++ b/src/elements/TimeElements/CurrentTime/AudioCurrentTimeElement.js @@ -0,0 +1,86 @@ +import { ConfigState } from "@/services/ConfigState"; + +export class AudioCurrentTimeElement { + static audioFormattedTimeElementQuery = '.amplitude-current-time[data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + static audioHoursTimeElementQuery = '.amplitude-current-hours[data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + static audioMinutesTimeElementQuery = '.amplitude-current-minutes[data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + static audioSecondsTimeElementQuery = '.amplitude-current-seconds[data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + + #currentTime; + + constructor( currentTime ){ + this.#currentTime = currentTime; + } + + sync(){ + this.#syncFormattedTimeElement(); + this.#syncHourTimeElement(); + this.#syncMinuteTimeElement(); + this.#syncSecondTimeElement(); + } + + #syncFormattedTimeElement(){ + let timeFormat = ConfigState.getTimeFormat(); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + let elements = document.querySelectorAll( AudioCurrentTimeElement.audioFormattedTimeElementQuery ); + let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours ) + .replace( 'MM', this.#currentTime.minutes ) + .replace( 'SS', this.#currentTime.seconds ); + + elements.forEach( ( element ) => { + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( activeAudioIndex == elementAudioIndex ){ + element.innerHTML = formattedTime; + }else{ + element.innerHTML = '00:00'; + } + }) + } + + #syncHourTimeElement(){ + let elements = document.querySelectorAll( AudioCurrentTimeElement.audioHoursTimeElementQuery ); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + elements.forEach( ( element ) => { + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( activeAudioIndex == elementAudioIndex ){ + element.innerHTML = this.#currentTime.hours; + }else{ + element.innerHTML = '00'; + } + }); + } + + #syncMinuteTimeElement(){ + let elements = document.querySelectorAll( AudioCurrentTimeElement.audioMinutesTimeElementQuery ); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + elements.forEach( ( element ) => { + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( activeAudioIndex == elementAudioIndex ){ + element.innerHTML = this.#currentTime.minutes; + }else{ + element.innerHTML = '00'; + } + }); + } + + #syncSecondTimeElement(){ + let elements = document.querySelectorAll( AudioCurrentTimeElement.audioSecondsTimeElementQuery ); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + elements.forEach( ( element ) => { + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( activeAudioIndex == elementAudioIndex ){ + element.innerHTML = this.#currentTime.seconds; + }else{ + element.innerHTML = '00'; + } + }); + } +} \ No newline at end of file diff --git a/src/elements/TimeElements/CurrentTime/CollectionAudioCurrentTimeElement.js b/src/elements/TimeElements/CurrentTime/CollectionAudioCurrentTimeElement.js new file mode 100644 index 00000000..3fbda40a --- /dev/null +++ b/src/elements/TimeElements/CurrentTime/CollectionAudioCurrentTimeElement.js @@ -0,0 +1,94 @@ +import { ConfigState } from "@/services/ConfigState"; + +export class CollectionAudioCurrentTimeElement { + static collectionAudioFormattedTimeElementQuery = '.amplitude-current-time[data-amplitude-collection-key][data-amplitude-audio-index]'; + static collectionAudioHoursTimeElementQuery = '.amplitude-current-hours[data-amplitude-collection-key][data-amplitude-audio-index]'; + static collectionAudioMinutesTimeElementQuery = '.amplitude-current-minutes[data-amplitude-collection-key][data-amplitude-audio-index]'; + static collectionAudioSecondsTimeElementQuery = '.amplitude-current-seconds[data-amplitude-collection-key][data-amplitude-audio-index]'; + + #currentTime; + + constructor( currentTime ){ + this.#currentTime = currentTime; + } + + sync(){ + this.#syncFormattedTimeElement(); + this.#syncHourTimeElement(); + this.#syncMinuteTimeElement(); + this.#syncSecondTimeElement(); + } + + #syncFormattedTimeElement(){ + let timeFormat = ConfigState.getTimeFormat(); + let activeCollectionKey = ConfigState.getActiveCollection(); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioFormattedTimeElementQuery ); + let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours ) + .replace( 'MM', this.#currentTime.minutes ) + .replace( 'SS', this.#currentTime.seconds ); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){ + element.innerHTML = formattedTime; + }else{ + element.innerHTML = '00:00'; + } + }) + } + + #syncHourTimeElement(){ + let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioHoursTimeElementQuery ); + let activeCollectionKey = ConfigState.getActiveCollection(); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){ + element.innerHTML = this.#currentTime.hours; + }else{ + element.innerHTML = '00'; + } + }); + } + + #syncMinuteTimeElement(){ + let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioMinutesTimeElementQuery ); + let activeCollectionKey = ConfigState.getActiveCollection(); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){ + element.innerHTML = this.#currentTime.minutes; + }else{ + element.innerHTML = '00'; + } + }); + } + + #syncSecondTimeElement(){ + let elements = document.querySelectorAll( CollectionAudioCurrentTimeElement.collectionAudioSecondsTimeElementQuery ); + let activeCollectionKey = ConfigState.getActiveCollection(); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){ + element.innerHTML = this.#currentTime.seconds; + }else{ + element.innerHTML = '00'; + } + }); + } +} \ No newline at end of file diff --git a/src/elements/TimeElements/CurrentTime/CollectionCurrentTimeElement.js b/src/elements/TimeElements/CurrentTime/CollectionCurrentTimeElement.js new file mode 100644 index 00000000..027a2c5a --- /dev/null +++ b/src/elements/TimeElements/CurrentTime/CollectionCurrentTimeElement.js @@ -0,0 +1,86 @@ +import { ConfigState } from "@/services/ConfigState"; + +export class CollectionCurrentTimeElement { + static collectionFormattedTimeElementQuery = '.amplitude-current-time[data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + static collectionHoursTimeElementQuery = '.amplitude-current-hours[data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + static collectionMinutesTimeElementQuery = '.amplitude-current-minutes[data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + static collectionSecondsTimeElementQuery = '.amplitude-current-seconds[data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + + #currentTime; + + constructor( currentTime ){ + this.#currentTime = currentTime; + } + + sync(){ + this.#syncFormattedTimeElement(); + this.#syncHourTimeElement(); + this.#syncMinuteTimeElement(); + this.#syncSecondTimeElement(); + } + + #syncFormattedTimeElement(){ + let timeFormat = ConfigState.getTimeFormat(); + let activeCollectionKey = ConfigState.getActiveCollection(); + + let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionFormattedTimeElementQuery ); + let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours ) + .replace( 'MM', this.#currentTime.minutes ) + .replace( 'SS', this.#currentTime.seconds ); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + + if( activeCollectionKey == elementCollectionKey ){ + element.innerHTML = formattedTime; + }else{ + element.innerHTML = '00:00'; + } + }) + } + + #syncHourTimeElement(){ + let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionHoursTimeElementQuery ); + let activeCollectionKey = ConfigState.getActiveCollection(); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + + if( activeCollectionKey == elementCollectionKey ){ + element.innerHTML = this.#currentTime.hours; + }else{ + element.innerHTML = '00'; + } + }); + } + + #syncMinuteTimeElement(){ + let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionMinutesTimeElementQuery ); + let activeCollectionKey = ConfigState.getActiveCollection(); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + + if( activeCollectionKey == elementCollectionKey ){ + element.innerHTML = this.#currentTime.minutes; + }else{ + element.innerHTML = '00'; + } + }); + } + + #syncSecondTimeElement(){ + let elements = document.querySelectorAll( CollectionCurrentTimeElement.collectionSecondsTimeElementQuery ); + let activeCollectionKey = ConfigState.getActiveCollection(); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + + if( activeCollectionKey == elementCollectionKey ){ + element.innerHTML = this.#currentTime.seconds; + }else{ + element.innerHTML = '00'; + } + }); + } +} \ No newline at end of file diff --git a/src/elements/TimeElements/CurrentTime/GlobalCurrentTimeElement.js b/src/elements/TimeElements/CurrentTime/GlobalCurrentTimeElement.js new file mode 100644 index 00000000..2490ed0b --- /dev/null +++ b/src/elements/TimeElements/CurrentTime/GlobalCurrentTimeElement.js @@ -0,0 +1,58 @@ +import { ConfigState } from "@/services/ConfigState"; + +export class GlobalCurrentTimeElement { + static globalFormattedTimeElementQuery = '.amplitude-current-time:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'; + static globalHoursTimeElementQuery = '.amplitude-current-hours:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'; + static globalMinutesTimeElementQuery = '.amplitude-current-minutes:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'; + static globalSecondsTimeElementQuery = '.amplitude-current-seconds:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'; + + #currentTime; + + constructor( currentTime ){ + this.#currentTime = currentTime + } + + sync(){ + this.#syncFormattedTimeElement(); + this.#syncHourTimeElement(); + this.#syncMinuteTimeElement(); + this.#syncSecondTimeElement(); + } + + #syncFormattedTimeElement(){ + let timeFormat = ConfigState.getTimeFormat(); + + let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalFormattedTimeElementQuery ); + let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours ) + .replace( 'MM', this.#currentTime.minutes ) + .replace( 'SS', this.#currentTime.seconds ); + + elements.forEach( ( element ) => { + element.innerHTML = formattedTime; + }); + } + + #syncHourTimeElement(){ + let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalHoursTimeElementQuery ); + + elements.forEach( ( element ) => { + element.innerHTML = this.#currentTime.hours; + }); + } + + #syncMinuteTimeElement(){ + let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalMinutesTimeElementQuery ); + + elements.forEach( ( element ) => { + element.innerHTML = this.#currentTime.minutes; + }); + } + + #syncSecondTimeElement(){ + let elements = document.querySelectorAll( GlobalCurrentTimeElement.globalSecondsTimeElementQuery ); + + elements.forEach( ( element ) => { + element.innerHTML = this.#currentTime.seconds; + }); + } +} \ No newline at end of file diff --git a/src/elements/TimeElements/Duration/AudioDurationElement.js b/src/elements/TimeElements/Duration/AudioDurationElement.js new file mode 100644 index 00000000..7dae5c92 --- /dev/null +++ b/src/elements/TimeElements/Duration/AudioDurationElement.js @@ -0,0 +1,109 @@ +import { ConfigState } from "@/services/ConfigState"; +import { Time } from "@/services/Time"; + +export class AudioDurationElement { + static audioDurationTimeRemainingElementQuery = '.amplitude-time-remaining[data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + static audioDurationTimeElementQuery = '.amplitude-duration-time[data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + static audioDurationHoursElementQuery = '.amplitude-duration-hours[data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + static audioDurationMinutesElementQuery = '.amplitude-duration-minutes[data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + static audioDurationSecondsElementQuery = '.amplitude-duration-seconds[data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + + #currentTime; + #duration; + + constructor( currentTime, duration ){ + this.#currentTime = currentTime; + this.#duration = duration; + } + + sync(){ + this.#syncTimeRemainingElement(); + this.#syncTimeElement(); + this.#syncHoursElement(); + this.#syncMinutesElement(); + this.#syncSecondsElement(); + } + + #syncTimeRemainingElement(){ + let timeRemaining = Time.computeTimeRemaining( this.#currentTime, this.#duration ); + + if( timeRemaining != null ){ + let timeFormat = ConfigState.getTimeFormat(); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + let elements = document.querySelectorAll( AudioDurationElement.audioDurationTimeRemainingElementQuery ); + let formattedTime = timeFormat.replace( 'HH', timeRemaining.hours ) + .replace( 'MM', timeRemaining.minutes ) + .replace( 'SS', timeRemaining.seconds ); + + elements.forEach( ( element ) => { + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( activeAudioIndex == elementAudioIndex ){ + element.innerHTML = formattedTime; + }else{ + element.innerHTML = '00:00'; + } + }); + } + } + + #syncTimeElement(){ + let timeFormat = ConfigState.getTimeFormat(); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + let elements = document.querySelectorAll( AudioDurationElement.audioDurationTimeElementQuery ); + let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours ) + .replace( 'MM', this.#currentTime.minutes ) + .replace( 'SS', this.#currentTime.seconds ); + + elements.forEach( ( element ) => { + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( activeAudioIndex == elementAudioIndex ){ + element.innerHTML = formattedTime; + }else{ + element.innerHTML = '00:00'; + } + }) + } + + #syncHoursElement(){ + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + let elements = document.querySelectorAll( AudioDurationElement.audioDurationHoursElementQuery ); + + elements.forEach( ( element ) => { + if( activeAudioIndex == elementAudioIndex ){ + element.innerHTML = this.#duration.hours + }else{ + element.innerHTML = '00'; + } + } ); + } + + #syncMinutesElement(){ + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + let elements = document.querySelectorAll( AudioDurationElement.audioDurationMinutesElementQuery ); + + elements.forEach( ( element ) => { + if( activeAudioIndex == elementAudioIndex ){ + element.innerHTML = this.#duration.minutes + }else{ + element.innerHTML = '00'; + } + } ); + } + + #syncSecondsElement(){ + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + let elements = document.querySelectorAll( AudioDurationElement.audioDurationSecondsElementQuery ); + + elements.forEach( ( element ) => { + if( activeAudioIndex == elementAudioIndex ){ + element.innerHTML = this.#duration.seconds + }else{ + element.innerHTML = '00'; + } + } ); + } +} \ No newline at end of file diff --git a/src/elements/TimeElements/Duration/CollectionAudioDurationElement.js b/src/elements/TimeElements/Duration/CollectionAudioDurationElement.js new file mode 100644 index 00000000..0ed0f952 --- /dev/null +++ b/src/elements/TimeElements/Duration/CollectionAudioDurationElement.js @@ -0,0 +1,116 @@ +import { ConfigState } from "@/services/ConfigState"; +import { Time } from "@/services/Time"; + +export class CollectionAudioDurationElement { + static collectionAudioDurationTimeRemainingElementQuery = '.amplitude-time-remaining[data-amplitude-audio-index][data-amplitude-collection-key]'; + static collectionAudioDurationTimeElementQuery = '.amplitude-duration-time[data-amplitude-audio-index][data-amplitude-collection-key]'; + static collectionAudioDurationHoursElementQuery = '.amplitude-duration-hours[data-amplitude-audio-index][data-amplitude-collection-key]'; + static collectionAudioDurationMinutesElementQuery = '.amplitude-duration-minutes[data-amplitude-audio-index][data-amplitude-collection-key]'; + static collectionAudioDurationSecondsElementQuery = '.amplitude-duration-seconds[data-amplitude-audio-index][data-amplitude-collection-key]'; + + #currentTime; + #duration; + + constructor( currentTime, duration ){ + this.#currentTime = currentTime; + this.#duration = duration; + } + + sync(){ + this.#syncTimeRemainingElement(); + this.#syncTimeElement(); + this.#syncHoursElement(); + this.#syncMinutesElement(); + this.#syncSecondsElement(); + } + + #syncTimeRemainingElement(){ + let timeRemaining = Time.computeTimeRemaining( this.#currentTime, this.#duration ); + + if( timeRemaining != null ){ + let timeFormat = ConfigState.getTimeFormat(); + let activeCollectionKey = ConfigState.getActiveCollection(); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + let elements = document.querySelectorAll( CollectionAudioDurationElement.collectionAudioDurationTimeRemainingElementQuery ); + let formattedTime = timeFormat.replace( 'HH', timeRemaining.hours ) + .replace( 'MM', timeRemaining.minutes ) + .replace( 'SS', timeRemaining.seconds ); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){ + element.innerHTML = formattedTime; + }else{ + element.innerHTML = '00:00'; + } + }); + } + } + + #syncTimeElement(){ + let timeFormat = ConfigState.getTimeFormat(); + let activeCollectionKey = ConfigState.getActiveCollection(); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + let elements = document.querySelectorAll( CollectionAudioDurationElement.collectionAudioDurationTimeElementQuery ); + let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours ) + .replace( 'MM', this.#currentTime.minutes ) + .replace( 'SS', this.#currentTime.seconds ); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){ + element.innerHTML = formattedTime; + }else{ + element.innerHTML = '00:00'; + } + }); + } + + #syncHoursElement(){ + let activeCollectionKey = ConfigState.getActiveCollection(); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + let elements = document.querySelectorAll( CollectionAudioDurationElement.collectionAudioDurationHoursElementQuery ); + + elements.forEach( ( element ) => { + if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){ + element.innerHTML = this.#duration.hours + }else{ + element.innerHTML = '00'; + } + } ); + } + + #syncMinutesElement(){ + let activeCollectionKey = ConfigState.getActiveCollection(); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + let elements = document.querySelectorAll( CollectionAudioDurationElement.collectionAudioDurationMinutesElementQuery ); + + elements.forEach( ( element ) => { + if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){ + element.innerHTML = this.#duration.minutes + }else{ + element.innerHTML = '00'; + } + } ); + } + + #syncSecondsElement(){ + let activeCollectionKey = ConfigState.getActiveCollection(); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + let elements = document.querySelectorAll( CollectionAudioDurationElement.collectionAudioDurationSecondsElementQuery ); + + elements.forEach( ( element ) => { + if( ( activeCollectionKey == elementCollectionKey ) && ( activeAudioIndex == elementAudioIndex ) ){ + element.innerHTML = this.#duration.seconds + }else{ + element.innerHTML = '00'; + } + } ); + } +} \ No newline at end of file diff --git a/src/elements/TimeElements/Duration/CollectionDurationElement.js b/src/elements/TimeElements/Duration/CollectionDurationElement.js new file mode 100644 index 00000000..ba0eb733 --- /dev/null +++ b/src/elements/TimeElements/Duration/CollectionDurationElement.js @@ -0,0 +1,109 @@ +import { ConfigState } from "@/services/ConfigState"; +import { Time } from "@/services/Time"; + +export class CollectionDurationElement { + static collectionDurationTimeRemainingElementQuery = '.amplitude-time-remaining[data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + static collectionDurationTimeElementQuery = '.amplitude-duration-time[data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + static collectionDurationHoursElementQuery = '.amplitude-duration-hours[data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + static collectionDurationMinutesElementQuery = '.amplitude-duration-minutes[data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + static collectionDurationSecondsElementQuery = '.amplitude-duration-seconds[data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + + #currentTime; + #duration; + + constructor( currentTime, duration ){ + this.#currentTime = currentTime; + this.#duration = duration; + } + + sync(){ + this.#syncTimeRemainingElement(); + this.#syncTimeElement(); + this.#syncHoursElement(); + this.#syncMinutesElement(); + this.#syncSecondsElement(); + } + + #syncTimeRemainingElement(){ + let timeRemaining = Time.computeTimeRemaining( this.#currentTime, this.#duration ); + + if( timeRemaining != null ){ + let timeFormat = ConfigState.getTimeFormat(); + let activeCollectionKey = ConfigState.getActiveCollection(); + + let elements = document.querySelectorAll( CollectionDurationElement.collectionDurationTimeRemainingElementQuery ); + let formattedTime = timeFormat.replace( 'HH', timeRemaining.hours ) + .replace( 'MM', timeRemaining.minutes ) + .replace( 'SS', timeRemaining.seconds ); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + + if( activeCollectionKey == elementCollectionKey ){ + element.innerHTML = formattedTime; + }else{ + element.innerHTML = '00:00'; + } + }); + } + } + + #syncTimeElement(){ + let timeFormat = ConfigState.getTimeFormat(); + let activeCollectionKey = ConfigState.getActiveCollection(); + + let elements = document.querySelectorAll( CollectionDurationElement.collectionDurationTimeElementQuery ); + let formattedTime = timeFormat.replace( 'HH', this.#currentTime.hours ) + .replace( 'MM', this.#currentTime.minutes ) + .replace( 'SS', this.#currentTime.seconds ); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + + if( activeCollectionKey == elementCollectionKey ){ + element.innerHTML = formattedTime; + }else{ + element.innerHTML = '00:00'; + } + }); + } + + #syncHoursElement(){ + let activeCollectionKey = ConfigState.getActiveCollection(); + let elements = document.querySelectorAll( CollectionDurationElement.collectionDurationHoursElementQuery ); + + elements.forEach( ( element ) => { + if( activeCollectionKey == elementCollectionKey ){ + element.innerHTML = this.#duration.hours + }else{ + element.innerHTML = '00'; + } + } ); + } + + #syncMinutesElement(){ + let activeCollectionKey = ConfigState.getActiveCollection(); + let elements = document.querySelectorAll( CollectionDurationElement.collectionDurationMinutesElementQuery ); + + elements.forEach( ( element ) => { + if( activeCollectionKey == elementCollectionKey ){ + element.innerHTML = this.#duration.minutes + }else{ + element.innerHTML = '00'; + } + } ); + } + + #syncSecondsElement(){ + let activeCollectionKey = ConfigState.getActiveCollection(); + let elements = document.querySelectorAll( CollectionDurationElement.collectionDurationSecondsElementQuery ); + + elements.forEach( ( element ) => { + if( activeCollectionKey == elementCollectionKey ){ + element.innerHTML = this.#duration.seconds + }else{ + element.innerHTML = '00'; + } + } ); + } +} \ No newline at end of file diff --git a/src/elements/TimeElements/Duration/GlobalDurationElement.js b/src/elements/TimeElements/Duration/GlobalDurationElement.js new file mode 100644 index 00000000..078fda8a --- /dev/null +++ b/src/elements/TimeElements/Duration/GlobalDurationElement.js @@ -0,0 +1,82 @@ +import { ConfigState } from "@/services/ConfigState"; +import { Time } from "@/services/Time"; + +export class GlobalDurationElement { + static globalDurationTimeRemainingElementQuery = '.amplitude-time-remaining:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'; + static globalDurationTimeElementQuery = '.amplitude-duration-time:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'; + static globalDurationHoursElementQuery = '.amplitude-duration-hours:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'; + static globalDurationMinutesElementQuery = '.amplitude-duration-minutes:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'; + static globalDurationSecondsElementQuery = '.amplitude-duration-seconds:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'; + + #currentTime; + #duration; + + constructor( currentTime, duration ){ + this.#currentTime = currentTime; + this.#duration = duration; + } + + sync(){ + this.#syncTimeRemainingElement(); + this.#syncTimeElement(); + this.#syncHoursElement(); + this.#syncMinutesElement(); + this.#syncSecondsElement(); + } + + #syncTimeRemainingElement(){ + let timeRemaining = Time.computeTimeRemaining( this.#currentTime, this.#duration ); + + if( timeRemaining != null ){ + let timeFormat = ConfigState.getTimeFormat(); + + let elements = document.querySelectorAll( GlobalDurationElement.globalDurationTimeRemainingElementQuery ); + let formattedTime = timeFormat.replace( 'HH', timeRemaining.hours ) + .replace( 'MM', timeRemaining.minutes ) + .replace( 'SS', timeRemaining.seconds ); + + elements.forEach( ( element ) => { + element.innerHTML = formattedTime; + }); + } + } + + #syncTimeElement(){ + let timeFormat = ConfigState.getTimeFormat(); + + let elements = document.querySelectorAll( GlobalDurationElement.globalDurationTimeElementQuery ); + let formattedTime = timeFormat.replace( 'HH', this.#duration.hours ) + .replace( 'MM', this.#duration.minutes ) + .replace( 'SS', this.#duration.seconds ); + + elements.forEach( ( element ) => { + if( !formattedTime.includes('NaN') ){ + element.innerHTML = formattedTime; + } + }) + } + + #syncHoursElement(){ + let elements = document.querySelectorAll( GlobalDurationElement.globalDurationHoursElementQuery ); + + elements.forEach( ( element ) => { + element.innerHTML = this.#duration.hours; + } ); + } + + #syncMinutesElement(){ + let elements = document.querySelectorAll( GlobalDurationElement.globalDurationMinutesElementQuery ); + + elements.forEach( ( element ) => { + element.innerHTML = this.#duration.minutes; + } ); + } + + #syncSecondsElement(){ + let elements = document.querySelectorAll( GlobalDurationElement.globalDurationSecondsElementQuery ); + + elements.forEach( ( element ) => { + element.innerHTML = this.#duration.seconds; + } ); + } +} \ No newline at end of file diff --git a/src/elements/TrackerElement.js b/src/elements/TrackerElement.js new file mode 100644 index 00000000..1323669e --- /dev/null +++ b/src/elements/TrackerElement.js @@ -0,0 +1,44 @@ +import { GlobalTrackerElement } from "./TrackerElements/GlobalTrackerElement"; +import { CollectionTrackerElement } from "./TrackerElements/CollectionTrackerElement"; +import { AudioTrackerElement } from "./TrackerElements/AudioTrackerElement"; +import { CollectionAudioTrackerElement } from "./TrackerElements/CollectionAudioTrackerElement"; + +export class TrackerElement{ + constructor(){ + + } + + setUp(){ + this.#configureGlobalTrackerElement(); + this.#configureCollectionTrackerElement(); + this.#configureAudioTrackerElement(); + this.#configureCollectionAudioTrackerElement(); + } + + #configureGlobalTrackerElement(){ + let globalTrackerElement = new GlobalTrackerElement(); + globalTrackerElement.initialize(); + } + + #configureCollectionTrackerElement(){ + let collectionTrackerElement = new CollectionTrackerElement(); + collectionTrackerElement.initialize(); + } + + #configureAudioTrackerElement(){ + let audioTrackerElement = new AudioTrackerElement(); + audioTrackerElement.initialize(); + } + + #configureCollectionAudioTrackerElement(){ + let collectionAudioTrackerElement = new CollectionAudioTrackerElement(); + collectionAudioTrackerElement.initialize(); + } + + static syncCurrentTime( currentTime ){ + GlobalTrackerElement.syncUI( currentTime ); + CollectionTrackerElement.syncUI( currentTime ); + AudioTrackerElement.syncUI( currentTime ); + CollectionAudioTrackerElement.syncUI( currentTime ); + } +} \ No newline at end of file diff --git a/src/elements/TrackerElements/AudioTrackerElement.js b/src/elements/TrackerElements/AudioTrackerElement.js new file mode 100644 index 00000000..56723931 --- /dev/null +++ b/src/elements/TrackerElements/AudioTrackerElement.js @@ -0,0 +1,67 @@ +import { Audio } from "@/core/Audio"; +import { ConfigState } from '@/services/ConfigState'; +import { Time } from '@/services/Time'; + +export class AudioTrackerElement{ + static audioTrackerQuery = 'input[type="range"].amplitude-audio-tracker[data-amplitude-audio-index]:not([data-amplitude-collection-key])'; + + #elements; + #isIE; + + constructor(){ + this.#isIE = ConfigState.isIE(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( AudioTrackerElement.audioTrackerQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => { + if( this.#isIE ){ + element.removeEventListener("change", this.#handleInteraction ); + element.addEventListener("change", this.#handleInteraction.bind( this, element ) ); + }else{ + element.removeEventListener("input", this.#handleInteraction); + element.addEventListener("input", this.#handleInteraction.bind( this, element ) ); + } + }); + } + + #handleInteraction( element ){ + if( !ConfigState.isLive() ){ + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + let elementAudioIndex = element.getAttribute( 'data-amplitude-audio-index' ); + + if( activeAudioIndex == elementAudioIndex ){ + let locationPercentage = element.value; + let trackedLocation = Time.percentageInSeconds( locationPercentage ); + + let audio = new Audio(); + audio.setCurrentTime( trackedLocation ) + } + } + } + + static syncUI( completionPercentage ){ + if( !isNaN( completionPercentage ) ){ + let elements = document.querySelectorAll( AudioTrackerElement.audioTrackerQuery ); + let activeAudioIndex = ConfigState.getActiveAudioIndex(); + + elements.forEach( ( element ) => { + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( activeAudioIndex == elementAudioIndex ){ + element.value = completionPercentage; + }else{ + element.value = 0; + } + }); + } + } +} \ No newline at end of file diff --git a/src/elements/TrackerElements/CollectionAudioTrackerElement.js b/src/elements/TrackerElements/CollectionAudioTrackerElement.js new file mode 100644 index 00000000..3e8e1d0a --- /dev/null +++ b/src/elements/TrackerElements/CollectionAudioTrackerElement.js @@ -0,0 +1,72 @@ +import { Audio } from "@/core/Audio"; +import { ConfigState } from '@/services/ConfigState'; +import { Time } from '@/services/Time'; + +export class CollectionAudioTrackerElement{ + static collectionAudioTrackerQuery = 'input[type="range"].amplitude-audio-tracker[data-amplitude-collection-key][data-amplitude-audio-index]'; + + #elements; + #isIE; + + constructor(){ + this.#isIE = ConfigState.isIE(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( CollectionAudioTrackerElement.collectionAudioTrackerQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => { + if( this.#isIE ){ + element.removeEventListener("change", this.#handleInteraction ); + element.addEventListener("change", this.#handleInteraction.bind( this, element ) ); + }else{ + element.removeEventListener("input", this.#handleInteraction); + element.addEventListener("input", this.#handleInteraction.bind( this, element ) ); + } + }); + } + + #handleInteraction( element ){ + if( !ConfigState.isLive() ){ + let activeCollectionKey = ConfigState.getActiveCollection(); + let elementCollectionKey = element.getAttribute( 'data-amplitude-collection-key' ); + + let activeCollectionAudioIndex = ConfigState.getActiveCollectionAudioIndex(); + let elementAudioIndex = element.getAttribute( 'data-amplitude-audio-index' ); + + if( ( activeCollectionKey == elementCollectionKey ) && ( activeCollectionAudioIndex == elementAudioIndex ) ){ + let locationPercentage = element.value; + let trackedLocation = Time.percentageInSeconds( locationPercentage ); + + let audio = new Audio(); + audio.setCurrentTime( trackedLocation ) + } + } + } + + static syncUI( completionPercentage ){ + if( !isNaN( completionPercentage ) ){ + let elements = document.querySelectorAll( CollectionAudioTrackerElement.collectionAudioTrackerQuery ); + let activeCollectionKey = ConfigState.getActiveCollection(); + let activeCollectionAudioIndex = ConfigState.getActiveCollectionAudioIndex(); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + let elementAudioIndex = element.getAttribute('data-amplitude-audio-index'); + + if( ( activeCollectionKey == elementCollectionKey ) && ( activeCollectionAudioIndex == elementAudioIndex ) ){ + element.value = completionPercentage; + }else{ + element.value = 0; + } + }); + } + } +} \ No newline at end of file diff --git a/src/elements/TrackerElements/CollectionTrackerElement.js b/src/elements/TrackerElements/CollectionTrackerElement.js new file mode 100644 index 00000000..457c3fbb --- /dev/null +++ b/src/elements/TrackerElements/CollectionTrackerElement.js @@ -0,0 +1,66 @@ +import { Audio } from "@/core/Audio"; +import { ConfigState } from '@/services/ConfigState'; +import { Time } from '@/services/Time'; + +export class CollectionTrackerElement{ + static collectionTrackerQuery = 'input[type="range"].amplitude-audio-tracker[data-amplitude-collection-key]:not([data-amplitude-audio-index])'; + + #elements; + #isIE; + + constructor(){ + this.#isIE = ConfigState.isIE(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( CollectionTrackerElement.collectionTrackerQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => { + if( this.#isIE ){ + element.removeEventListener("change", this.#handleInteraction ); + element.addEventListener("change", this.#handleInteraction.bind( this, element ) ); + }else{ + element.removeEventListener("input", this.#handleInteraction); + element.addEventListener("input", this.#handleInteraction.bind( this, element ) ); + } + }); + } + + #handleInteraction( element ){ + if( !ConfigState.isLive() ){ + let activeCollectionKey = ConfigState.getActiveCollection(); + let elementCollectionKey = element.getAttribute( 'data-amplitude-collection-key' ); + + if( activeCollectionKey == elementCollectionKey ){ + let locationPercentage = element.value; + let trackedLocation = Time.percentageInSeconds( locationPercentage ); + let audio = new Audio(); + audio.setCurrentTime( trackedLocation ) + } + } + } + + static syncUI( completionPercentage ){ + if( !isNaN( completionPercentage ) ){ + let elements = document.querySelectorAll( CollectionTrackerElement.collectionTrackerQuery ); + let activeCollectionKey = ConfigState.getActiveCollection(); + + elements.forEach( ( element ) => { + let elementCollectionKey = element.getAttribute('data-amplitude-collection-key'); + + if( activeCollectionKey == elementCollectionKey ){ + element.value = completionPercentage; + }else{ + element.value = 0; + } + }); + } + } +} \ No newline at end of file diff --git a/src/elements/TrackerElements/GlobalTrackerElement.js b/src/elements/TrackerElements/GlobalTrackerElement.js new file mode 100644 index 00000000..38aae80e --- /dev/null +++ b/src/elements/TrackerElements/GlobalTrackerElement.js @@ -0,0 +1,55 @@ +import { Audio } from "@/core/Audio"; +import { ConfigState } from '@/services/ConfigState'; +import { Time } from '@/services/Time'; + +export class GlobalTrackerElement{ + static globalTrackerQuery = 'input[type="range"].amplitude-audio-tracker:not([data-amplitude-audio-index]):not([data-amplitude-collection-key])'; + + #elements; + #isIE; + + constructor(){ + this.#isIE = ConfigState.isIE(); + } + + initialize(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( GlobalTrackerElement.globalTrackerQuery ); + } + + #bindInteractions(){ + this.#elements.forEach( (element) => { + if( this.#isIE ){ + element.removeEventListener("change", this.#handleInteraction ); + element.addEventListener("change", this.#handleInteraction.bind( this, element ) ); + }else{ + element.removeEventListener("input", this.#handleInteraction); + element.addEventListener("input", this.#handleInteraction.bind( this, element ) ); + } + } ); + } + + #handleInteraction( element ){ + if( !ConfigState.isLive() ){ + let locationPercentage = element.value; + let trackedLocation = Time.percentageInSeconds( locationPercentage ); + + let audio = new Audio(); + audio.setCurrentTime( trackedLocation ) + } + } + + static syncUI( completionPercentage ){ + if( !isNaN( completionPercentage ) ){ + let elements = document.querySelectorAll( GlobalTrackerElement.globalTrackerQuery ); + + elements.forEach( ( element ) => { + element.value = completionPercentage; + }); + } + } +} \ No newline at end of file diff --git a/src/elements/VolumeDownElement.js b/src/elements/VolumeDownElement.js new file mode 100644 index 00000000..4494f3d6 --- /dev/null +++ b/src/elements/VolumeDownElement.js @@ -0,0 +1,69 @@ +import { Audio } from "@/core/Audio"; +import { ConfigState } from "@/services/ConfigState"; +import { MuteElement } from "./MuteElement"; +import { VolumeSliderElement } from "./VolumeSliderElement"; +import { Debug } from "@/services/Debug"; + +/** + * Handles the configuration and managing of Volume Down elements + * + * A Volume Down element is defined as the following: + * + * Element: class="amplitude-volume-down" + * + * Whenever this element is interacted with, the audio is muted no matter where. + */ +export class VolumeDownElement { + static volumeDownElementQuery = '.amplitude-volume-down'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + setUp(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( VolumeDownElement.volumeDownElementQuery ); + } + + #bindInteractions(){ + if( this.#elements.length > 0 && ConfigState.isIos() ){ + Debug.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" + ); + }else{ + this.#elements.forEach( ( element ) => { + if( this.#mobile ){ + element.removeEventListener( "touchend", this.#handleInteraction ); + element.addEventListener( "touchend", this.#handleInteraction ); + }else{ + element.removeEventListener( "click", this.#handleInteraction ); + element.addEventListener( "click", this.#handleInteraction ); + } + }); + } + } + + #handleInteraction(){ + if( !ConfigState.isTouchMoving() ){ + let audio = new Audio(); + let currentVolume = ConfigState.getVolume(); + let volumeDecrement = ConfigState.getVolumeDecrement(); + + if( currentVolume - volumeDecrement > 0 ){ + audio.setVolume( currentVolume - volumeDecrement ); + }else{ + audio.setVolume( 0 ); + } + + MuteElement.syncElements(); + VolumeSliderElement.syncElements(); + } + } +} \ No newline at end of file diff --git a/src/elements/VolumeSliderElement.js b/src/elements/VolumeSliderElement.js new file mode 100644 index 00000000..7235ec2a --- /dev/null +++ b/src/elements/VolumeSliderElement.js @@ -0,0 +1,68 @@ +import { ConfigState } from "@/services/ConfigState"; +import { MuteElement } from "./MuteElement"; +import { Audio } from "@/core/Audio"; + +/** + * Handles the configuration and managing of Volume Slider elements + * + * A Volume Slider element is defined as the following: + * + * Element: class="amplitude-volume-slider" + * Type: input[type="range"] + * + * Whenever this element is interacted with, the audio volume is adjusted no matter where. + */ +export class VolumeSliderElement { + static volumeSliderElementQuery = 'input[type="range"].amplitude-volume-slider'; + + #elements; + #ie; + + constructor(){ + this.#ie = ConfigState.isIE(); + } + + setUp(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( VolumeSliderElement.volumeSliderElementQuery ); + } + + #bindInteractions(){ + if( ConfigState.isIos() ){ + Debug.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" + ); + }else{ + this.#elements.forEach( ( element ) => { + if( this.#ie ){ + element.removeEventListener( "change", this.#handleInteraction ); + element.addEventListener( "change", this.#handleInteraction ); + }else{ + element.removeEventListener( "input", this.#handleInteraction ); + element.addEventListener( "input", this.#handleInteraction ); + } + }); + } + } + + #handleInteraction(){ + let audio = new Audio(); + audio.setVolume( this.value ); + + MuteElement.syncElements(); + VolumeSliderElement.syncElements(); + } + + + static syncElements(){ + let elements = document.querySelectorAll( VolumeSliderElement.volumeSliderElementQuery ); + + elements.forEach( function( element ){ + element.value = ConfigState.getVolume(); + }); + } +} \ No newline at end of file diff --git a/src/elements/VolumeUpElement.js b/src/elements/VolumeUpElement.js new file mode 100644 index 00000000..412ea4d9 --- /dev/null +++ b/src/elements/VolumeUpElement.js @@ -0,0 +1,69 @@ +import { Audio } from "@/core/Audio"; +import { ConfigState } from "@/services/ConfigState"; +import { MuteElement } from "./MuteElement"; +import { VolumeSliderElement } from "./VolumeSliderElement"; +import { Debug } from "@/services/Debug"; + +/** + * Handles the configuration and managing of Volume Up elements + * + * A Volume Up element is defined as the following: + * + * Element: class="amplitude-volume-up" + * + * Whenever this element is interacted with, the audio is muted no matter where. + */ +export class VolumeUpElement { + static volumeUpElementQuery = '.amplitude-volume-up'; + + #elements; + #mobile; + + constructor(){ + this.#mobile = ConfigState.isMobile(); + } + + setUp(){ + this.#findElements(); + this.#bindInteractions(); + } + + #findElements(){ + this.#elements = document.querySelectorAll( VolumeUpElement.volumeUpElementQuery ); + } + + #bindInteractions(){ + if( this.#elements.length > 0 && ConfigState.isIos() ){ + Debug.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" + ); + }else{ + this.#elements.forEach( ( element ) => { + if( this.#mobile ){ + element.removeEventListener( "touchend", this.#handleInteraction ); + element.addEventListener( "touchend", this.#handleInteraction ); + }else{ + element.removeEventListener( "click", this.#handleInteraction ); + element.addEventListener( "click", this.#handleInteraction ); + } + }); + } + } + + #handleInteraction(){ + if( !ConfigState.isTouchMoving() ){ + let audio = new Audio(); + let currentVolume = ConfigState.getVolume(); + let volumeIncrement = ConfigState.getVolumeIncrement(); + + if( currentVolume + volumeIncrement <= 100 ){ + audio.setVolume( currentVolume + volumeIncrement ); + }else{ + audio.setVolume( 100 ); + } + + MuteElement.syncElements(); + VolumeSliderElement.syncElements(); + } + } +} \ No newline at end of file diff --git a/src/events/AudioEndedEvent.js b/src/events/AudioEndedEvent.js new file mode 100644 index 00000000..91e93b46 --- /dev/null +++ b/src/events/AudioEndedEvent.js @@ -0,0 +1,26 @@ +import { Audio } from '@/core/Audio.js'; +import { config } from '@/config.js'; +import { ConfigState } from '@/services/ConfigState'; +import { Navigation } from '@/services/Collections/Navigation'; +import { PlayPauseElement } from '@/elements/PlayPauseElement'; + +export class AudioEndedEvent{ + bind(){ + config.audio_element.removeEventListener( "ended", this.#handle ); + config.audio_element.addEventListener( "ended", this.#handle.bind(this) ); + } + + #handle(){ + setTimeout( function(){ + if( ConfigState.getScope() == 'collection' && ConfigState.getContinueNext() ){ + let navigation = new Navigation(); + navigation.next( ConfigState.getActiveCollection(), true ); + }else{ + let audio = new Audio(); + audio.stop(); + + PlayPauseElement.syncAll(); + } + }, config.delay ); + } +} \ No newline at end of file diff --git a/src/events/KeyBindingEvents.js b/src/events/KeyBindingEvents.js new file mode 100644 index 00000000..da9e0494 --- /dev/null +++ b/src/events/KeyBindingEvents.js @@ -0,0 +1,30 @@ +export class KeyBindingEvents{ + bind(){ + this.#bindKeyPress(); + } + + #bindKeyPress(){ + document.removeEventListener( "keydown", this.#handle.bind(this) ); + document.addEventListener( "keydown", this.#handle.bind(this) ); + } + + #handle( event ){ + if( !this.#isFormFocused() ){ + let key = event.key; + + + } + } + + #isFormFocused(){ + let activeElement = document.activeElement.tagName.toLowerCase(); + + let ignoredElements = [ + 'input', + 'textarea', + 'select' + ]; + + return ignoredElements.indexOf( activeElement ) > -1; + } +} \ No newline at end of file diff --git a/src/events/ProgressEvent.js b/src/events/ProgressEvent.js new file mode 100644 index 00000000..d7f0f469 --- /dev/null +++ b/src/events/ProgressEvent.js @@ -0,0 +1,15 @@ +import { ConfigState } from '@/services/ConfigState'; +import { config } from '@/config.js'; +import { BufferedProgressElement } from '@/elements/BufferedProgressElement'; + +export class ProgressEvent{ + bind(){ + config.audio_element.removeEventListener("progress", this.#handle); + config.audio_element.addEventListener("progress", this.#handle); + } + + #handle(){ + ConfigState.updateBufferedTime(); + BufferedProgressElement.syncAll(); + } +} \ No newline at end of file diff --git a/src/events/TimeUpdateEvent.js b/src/events/TimeUpdateEvent.js new file mode 100644 index 00000000..dec182fc --- /dev/null +++ b/src/events/TimeUpdateEvent.js @@ -0,0 +1,50 @@ +import { ConfigState } from '@/services/ConfigState'; +import { config } from '@/config.js'; +import { ProgressElement } from '@/elements/ProgressElement'; +import { Time } from '@/services/Time'; +import { TimeElement } from '@/elements/TimeElement'; +import { TrackerElement } from '@/elements/TrackerElement'; + +export class TimeUpdateEvent{ + bind(){ + this.#bindTimeUpdate(); + this.#bindDurationChange(); + } + + #bindTimeUpdate(){ + config.audio_element.removeEventListener( "timeupdate", this.#handle.bind(this) ); + config.audio_element.addEventListener( "timeupdate", this.#handle.bind(this) ); + } + + #bindDurationChange(){ + config.audio_element.removeEventListener( "durationchange", this.#handle.bind(this) ); + config.audio_element.addEventListener( "durationchange", this.#handle.bind(this) ); + } + + #handle(){ + ConfigState.updateBufferedTime(); + this.#updateTimeInformation(); + this.#runTimeCallbacks(); + } + + #updateTimeInformation(){ + if( !ConfigState.isLive() ){ + let time = new Time(); + + let currentTime = time.computeCurrentTimes(); + let completionPercentage = time.computeAudioCompletionPercentage(); + let duration = time.computeAudioDuration(); + + let timeElement = new TimeElement(); + timeElement.syncCurrentTime( currentTime ); + timeElement.syncDurationTime( currentTime, duration ); + + TrackerElement.syncCurrentTime( completionPercentage ); + ProgressElement.syncCurrentTime( completionPercentage ); + } + } + + #runTimeCallbacks(){ + + } +} \ No newline at end of file diff --git a/src/events/ended.js b/src/events/_migrated/ended.js similarity index 100% rename from src/events/ended.js rename to src/events/_migrated/ended.js diff --git a/src/events/mute.js b/src/events/_migrated/mute.js similarity index 100% rename from src/events/mute.js rename to src/events/_migrated/mute.js diff --git a/src/events/_migrated/next.js b/src/events/_migrated/next.js new file mode 100644 index 00000000..e7b5ef4d --- /dev/null +++ b/src/events/_migrated/next.js @@ -0,0 +1,126 @@ +/** + * Imports the config module + * @module config + */ +import config from "../config.js"; + +/** + * Imports the AmplitudeJS Core module. + * @module core/core + */ +import Core from "../core/core.js"; + +/** + * Imports the Play Pause Elements Module. + * @module visual/PlayPauseElements + */ +import PlayPauseElements from "../visual/playPauseElements.js"; + +/** + * Imports the Callbacks Module + * @module utilities/Callbacks + */ +import Callbacks from "../utilities/callbacks.js"; + +/** + * Imports the Amplitude Audio Navigation Utility + * @module utilities/AudioNavigation + */ +import AudioNavigation from "../utilities/audioNavigation.js"; + +/** + * AmplitudeJS Debug Module + * @module utilities/Debug + */ +import Debug from "../utilities/debug.js"; + +/** + * AmplitudeJS Next Event Handler + * + * @module events/Next + */ +let Next = (function() { + // /** + // * Handles an event on the next button + // * + // * HANDLER FOR: class="amplitude-next" + // * + // * GLOBAL: class="amplitude-next" + // * PLAYLIST: class="amplitude-next" amplitude-playlist="playlist_key" + // * + // * @access public + // */ + // function handle() { + // /* + // We don't fire this if the user is touching the screen and it's moving. + // This could lead to a mis-fire + // */ + // if (!config.is_touch_moving) { + // /* + // Gets the playlist attribute from the element. + // */ + // let playlist = this.getAttribute("data-amplitude-playlist"); + + // /* + // If the playlist is null, we handle the global next. + // */ + // if (playlist == null) { + // handleGlobalNext(); + // } + + // /* + // If the playlist is set, we handle the playlist next. + // */ + // if (playlist != null) { + // handlePlaylistNext(playlist); + // } + // } + // } + + // /** + // * Handles an event on a global enxt button. + // * + // * @access private + // */ + // function handleGlobalNext() { + // /* + // Check to see if the current state of the player + // is in playlist mode or not playlist mode. If we are in playlist mode, + // we set next on the playlist. + // */ + // if (config.active_playlist == "" || config.active_playlist == null) { + // AudioNavigation.setNext(); + // } else { + // AudioNavigation.setNextPlaylist(config.active_playlist); + // } + // } + + // /** + // * Handles an event on a next playlist button. + // * + // * @access private + // * @prop {string} playlist - The playlist we are handling the next for. + // */ + // function handlePlaylistNext(playlist) { + // /* + // Ensure the playlist is the same as the active playlist. To get to change + // the scope to a new playlist, you need to play that playlist. + // */ + // if (playlist == config.active_playlist) { + // AudioNavigation.setNextPlaylist(playlist); + // } else { + // Debug.writeMessage( + // "You can not go to the next song on a playlist that is not being played!" + // ); + // } + // } + + /* + Returns the public facing methods. + */ + return { + handle: handle + }; +})(); + +export default Next; diff --git a/src/events/pause.js b/src/events/_migrated/pause.js similarity index 50% rename from src/events/pause.js rename to src/events/_migrated/pause.js index bb3fc850..23d958b0 100644 --- a/src/events/pause.js +++ b/src/events/_migrated/pause.js @@ -85,109 +85,109 @@ let Pause = (function() { } } - /** - * Handles global pause button which pauses whatever song is - * active. - * - * @access private - */ - function handleGlobalPause() { - /* - Pauses the song. - */ - Core.pause(); - - /* - Sync the play pause elements. - */ - PlayPauseElements.sync(); - } - - /** - * Handles the playlist pause. - * - * @access private - * @param {string} playlist The playlist the pause button belongs to. - */ - function handlePlaylistPause(playlist) { - /* - Checks to see if the active playlist is the same - */ - if (config.active_playlist == playlist) { - /* - Pauses the song. - */ - Core.pause(); - - /* - Sync the play pause elements. - */ - PlayPauseElements.sync(); - } - } - - /** - * Handles the song pause. - * - * @access private - * @param {integer} song The song the pause button belongs to. - */ - function handleSongPause(song) { - /* - Checks to see if the active playlist is null and the song matches - the active index. - */ - if ( - (config.active_playlist == "" || config.active_playlist == null) && - config.active_index == song - ) { - /* - Pauses the song. - */ - Core.pause(); - - /* - Sync the play pause elements. - */ - PlayPauseElements.sync(); - } - } - - /** - * Handles the song in playlist pause. - * - * @access private - * @param {string} playlist The playlist the pause button belongs to. - * @param {integer} song The song the pause button belongs to. - */ - function handleSongInPlaylistPause(playlist, song) { - /* - Checks to see if the active song matches the song and the - active playlist matches the playlist. This means the pause button is - for the song in the playlist. - */ - if ( - config.active_playlist == playlist && - config.playlists[playlist].active_index == song - ) { - /* - Pauses the song. - */ - Core.pause(); - - /* - Sync the play pause elements. - */ - PlayPauseElements.sync(); - } - } - - /* - Returns the public facing elements - */ - return { - handle: handle - }; + // /** + // * Handles global pause button which pauses whatever song is + // * active. + // * + // * @access private + // */ + // function handleGlobalPause() { + // /* + // Pauses the song. + // */ + // Core.pause(); + + // /* + // Sync the play pause elements. + // */ + // PlayPauseElements.sync(); + // } + + // /** + // * Handles the playlist pause. + // * + // * @access private + // * @param {string} playlist The playlist the pause button belongs to. + // */ + // function handlePlaylistPause(playlist) { + // /* + // Checks to see if the active playlist is the same + // */ + // if (config.active_playlist == playlist) { + // /* + // Pauses the song. + // */ + // Core.pause(); + + // /* + // Sync the play pause elements. + // */ + // PlayPauseElements.sync(); + // } + // } + + // /** + // * Handles the song pause. + // * + // * @access private + // * @param {integer} song The song the pause button belongs to. + // */ + // function handleSongPause(song) { + // /* + // Checks to see if the active playlist is null and the song matches + // the active index. + // */ + // if ( + // (config.active_playlist == "" || config.active_playlist == null) && + // config.active_index == song + // ) { + // /* + // Pauses the song. + // */ + // Core.pause(); + + // /* + // Sync the play pause elements. + // */ + // PlayPauseElements.sync(); + // } + // } + + // /** + // * Handles the song in playlist pause. + // * + // * @access private + // * @param {string} playlist The playlist the pause button belongs to. + // * @param {integer} song The song the pause button belongs to. + // */ + // function handleSongInPlaylistPause(playlist, song) { + // /* + // Checks to see if the active song matches the song and the + // active playlist matches the playlist. This means the pause button is + // for the song in the playlist. + // */ + // if ( + // config.active_playlist == playlist && + // config.playlists[playlist].active_index == song + // ) { + // /* + // Pauses the song. + // */ + // Core.pause(); + + // /* + // Sync the play pause elements. + // */ + // PlayPauseElements.sync(); + // } + // } + + // /* + // Returns the public facing elements + // */ + // return { + // handle: handle + // }; })(); export default Pause; diff --git a/src/events/play.js b/src/events/_migrated/play.js similarity index 58% rename from src/events/play.js rename to src/events/_migrated/play.js index 4a637fdb..c86e8d19 100644 --- a/src/events/play.js +++ b/src/events/_migrated/play.js @@ -97,129 +97,129 @@ let Play = (function() { } } - /** - * Handles global play button which plays whatever song is - * active. - * - * @access private - */ - function handleGlobalPlay() { - /* - Plays the song - */ - Core.play(); + // /** + // * Handles global play button which plays whatever song is + // * active. + // * + // * @access private + // */ + // function handleGlobalPlay() { + // /* + // Plays the song + // */ + // Core.play(); - /* - Sync the play pause elements. - */ - PlayPauseElements.sync(); - } + // /* + // Sync the play pause elements. + // */ + // PlayPauseElements.sync(); + // } - /** - * Handle the playlist play. - * - * @access private - * @param {string} playlist The playlist the play button belongs to. - */ - function handlePlaylistPlay(playlist) { - /* - Checks if we have a new playlist. - */ - if (Checks.newPlaylist(playlist)) { - /* - Sets the active playlist to what belongs to the playlist. - */ - AudioNavigation.setActivePlaylist(playlist); + // /** + // * Handle the playlist play. + // * + // * @access private + // * @param {string} playlist The playlist the play button belongs to. + // */ + // function handlePlaylistPlay(playlist) { + // /* + // Checks if we have a new playlist. + // */ + // if (Checks.newPlaylist(playlist)) { + // /* + // Sets the active playlist to what belongs to the playlist. + // */ + // AudioNavigation.setActivePlaylist(playlist); - /* - Play first song in the playlist since we just - switched playlists, we start from the first song. + // /* + // Play first song in the playlist since we just + // switched playlists, we start from the first song. - If the user has shuffle on for the playlist, then - we go from the first song in the shuffle playlist array. - */ - if (config.playlists[playlist].shuffle) { - AudioNavigation.changeSongPlaylist( - playlist, - config.playlists[playlist].shuffle_list[0], - 0 - ); - } else { - AudioNavigation.changeSongPlaylist( - playlist, - config.playlists[playlist].songs[0], - 0 - ); - } - } + // If the user has shuffle on for the playlist, then + // we go from the first song in the shuffle playlist array. + // */ + // if (config.playlists[playlist].shuffle) { + // AudioNavigation.changeSongPlaylist( + // playlist, + // config.playlists[playlist].shuffle_list[0], + // 0 + // ); + // } else { + // AudioNavigation.changeSongPlaylist( + // playlist, + // config.playlists[playlist].songs[0], + // 0 + // ); + // } + // } - /* - Plays the song. - */ - Core.play(); + // /* + // Plays the song. + // */ + // Core.play(); - /* - Syncs the play pause elements since they are dependent upon this state - of the player. - */ - PlayPauseElements.sync(); - } + // /* + // Syncs the play pause elements since they are dependent upon this state + // of the player. + // */ + // PlayPauseElements.sync(); + // } - /** - * Handles the song play button. - * - * @access private - * @param {integer} song The index of the song we are playing. - */ - function handleSongPlay(song) { - /* - There can be multiple playlists on the page and there can be - multiple songs on the page AND there can be songs in multiple - playlists, so we have some checking to do. - */ + // /** + // * Handles the song play button. + // * + // * @access private + // * @param {integer} song The index of the song we are playing. + // */ + // function handleSongPlay(song) { + // /* + // There can be multiple playlists on the page and there can be + // multiple songs on the page AND there can be songs in multiple + // playlists, so we have some checking to do. + // */ - /* - Check to see if the playlist has changed. Essentially, if we are moving - out of a playlist context. - */ - if (Checks.newPlaylist(null)) { - /* - We've moved out of the playlist context, so we set the active playlist - to null - */ - AudioNavigation.setActivePlaylist(null); + // /* + // Check to see if the playlist has changed. Essentially, if we are moving + // out of a playlist context. + // */ + // if (Checks.newPlaylist(null)) { + // /* + // We've moved out of the playlist context, so we set the active playlist + // to null + // */ + // AudioNavigation.setActivePlaylist(null); - /* - We then change the song to the index selected. - */ - AudioNavigation.changeSong(config.songs[song], song); - } + // /* + // We then change the song to the index selected. + // */ + // AudioNavigation.changeSong(config.songs[song], song); + // } - /* - Check to see if the song has changed. If it has, - set the active song. If it was in a playlist, the - song wouldn't change here, since we already set the - song when we checked for a playlist. - */ - if (Checks.newSong(null, song)) { - /* - The song selected is different, so we change the - song. - */ - AudioNavigation.changeSong(config.songs[song], song); - } + // /* + // Check to see if the song has changed. If it has, + // set the active song. If it was in a playlist, the + // song wouldn't change here, since we already set the + // song when we checked for a playlist. + // */ + // if (Checks.newSong(null, song)) { + // /* + // The song selected is different, so we change the + // song. + // */ + // AudioNavigation.changeSong(config.songs[song], song); + // } - /* - Plays the song - */ - Core.play(); + // /* + // Plays the song + // */ + // Core.play(); - /* - Syncs the play pause elements since they are dependent upon this state - of the player. - */ - PlayPauseElements.sync(); - } + // /* + // Syncs the play pause elements since they are dependent upon this state + // of the player. + // */ + // PlayPauseElements.sync(); + // } /** * Handles the song in playlist play. diff --git a/src/events/_migrated/playPause.js b/src/events/_migrated/playPause.js new file mode 100644 index 00000000..61b19cf8 --- /dev/null +++ b/src/events/_migrated/playPause.js @@ -0,0 +1,323 @@ +/** + * Imports the config module + * @module config + */ +import config from "../config.js"; + +/** + * Import the config state utility. + * @module utilities/configState + */ +import ConfigState from "../utilities/configState.js"; + +/** + * Imports the AmplitudeJS Core Methods + * @module core/Core + */ +import Core from "../core/core.js"; + +/** + * Imports the AmplitudeJS Checks Utility + * @module utilities/Checks + */ +import Checks from "../utilities/checks.js"; + +/** + * Imports the AmplitudeJS Audio Navigation Utility + * @module utilities/AudioNavigation + */ +import AudioNavigation from "../utilities/audioNavigation.js"; + +/** + * Imports the AmplitudeJS Play Pause Elements + * @module visual/PlayPauseElements + */ +import PlayPauseElements from "../visual/playPauseElements.js"; + +/** + * Handles all of the play pause events + * @module events/PlayPause + */ +let PlayPause = (function() { + /** + * Handles an event on a play/pause button + * + * HANDLER FOR: class="amplitude-play-pause" + * + * GLOBAL: class="amplitude-play-pause" + * PLAYLIST: class="amplitude-play-pause" amplitude-playlist="playlist_key" + * SONG: class="amplitude-play-pause" amplitude-song-index="song_index" + * SONG IN PLAYLIST: class="amplitude-play-pause" amplitude-playlist="playlist-key" amplitude-song-index="playlist_index" + * + * @access public + */ + function handle() { + /* + If the touch is moving, we do not want to accidentally touch the play + pause element and fire an event. + */ + if (!config.is_touch_moving) { + /* + Get the playlist and song from the element. It's alright if these + are null. + */ + let playlist = this.getAttribute("data-amplitude-playlist"); + let song = this.getAttribute("data-amplitude-song-index"); + + /* + Handle a global play pause button + */ + if (playlist == null && song == null) { + handleGlobalPlayPause(); + } + + /* + Handle a playlist play pause button + */ + if (playlist != null && song == null) { + handlePlaylistPlayPause(playlist); + } + + /* + Handle a song play pause button + */ + if (playlist == null && song != null) { + handleSongPlayPause(song); + } + + /* + Handle a song in playlist play pause button + */ + if (playlist != null && song != null) { + handleSongInPlaylistPlayPause(playlist, song); + } + } + } + + // /** + // * Sets the main play pause buttons to the current state of the song. + // * @access private + // */ + // function handleGlobalPlayPause() { + // /* + // If the song is paused, we play the song. If the song is playing, + // we pause the song. + // */ + // if (config.audio.paused) { + // Core.play(); + // } else { + // Core.pause(); + // } + + // /* + // Now we sync all the elements to match the state of the audio. + // We don't need to do any checks on new songs or changed playlists + // in the global since it's whatever song is playing. + // */ + // PlayPauseElements.sync(); + // } + + // /** + // * Sets the playlist main play pause buttons to the current state of the song. + // * @access private + // * @param {string} playlist The playlist the main play pause button controls + // */ + // function handlePlaylistPlayPause(playlist) { + // /** + // * @TODO: IF collection does not exist, do nothing and debug! + // */ + // /* + // The only thing that can change when you click a playlist + // play pause is the playlist. Main play pauses have no change + // in song, song play pauses can change playlist and song. + // */ + // if (Checks.newPlaylist(playlist)) { + // /* + // If there's a new playlist, then we set the new playlist. + // */ + // AudioNavigation.setActivePlaylist(playlist); + + // /* + // Play first song in the playlist since we just + // switched playlists, we start from the first song. + + // If the user has shuffle on for the playlist, then + // we go from the first song in the shuffle playlist array. + // */ + // if (config.playlists[playlist].shuffle) { + // AudioNavigation.changeSongPlaylist( + // playlist, + // config.playlists[playlist].shuffle_list[0], + // 0, + // true + // ); + // } else { + // AudioNavigation.changeSongPlaylist( + // playlist, + // config.playlists[playlist].songs[0], + // 0 + // ); + // } + // } + + // /* + // If the song is paused, we play the song. If the song is playing, + // we pause the song. + // */ + // if (config.audio.paused) { + // Core.play(); + // } else { + // Core.pause(); + // } + + // /* + // Now we sync all the elements to match the state of the audio. + // We don't need to do any checks on new songs or changed playlists + // in the global since it's whatever song is playing. + // */ + // PlayPauseElements.sync(); + // } + + // /** + // * Sets the playlist main play pause buttons to the current state of the song. + // * @access private + // * @param {string} song The index of the song being played/paused + // */ + // function handleSongPlayPause(song) { + // /* + // There can be multiple playlists on the page and there can be + // multiple songs on the page AND there can be songs in multiple + // playlists, so we have some checking to do. + // */ + + // /* + // Check to see if the playlist has changed. Essentially, if we are moving + // out of a playlist context. + // */ + // if (Checks.newPlaylist(null)) { + // /* + // We've moved out of the playlist context, so we set the active playlist + // to null + // */ + // AudioNavigation.setActivePlaylist(null); + + // /* + // We then change the song to the index selected. + // */ + // AudioNavigation.changeSong(config.songs[song], song, true); + // } + + // /* + // Check to see if the song has changed. If it has, + // set the active song. If it was in a playlist, the + // song wouldn't change here, since we already set the + // song when we checked for a playlist. + // */ + // if (Checks.newSong(null, song)) { + // /* + // The song selected is different, so we change the + // song. + // */ + // AudioNavigation.changeSong(config.songs[song], song, true); + // } + + // /* + // If the song is paused, we play the song. If the song is playing, + // we pause the song. + // */ + // if (config.audio.paused) { + // Core.play(); + // } else { + // Core.pause(); + // } + + // /* + // Now we sync all the elements to match the state of the audio. + // We don't need to do any checks on new songs or changed playlists + // in the global since it's whatever song is playing. + // */ + // PlayPauseElements.sync(); + // } + + // /** + // * Sets the song in playlist play pause buttons to the current + // * state of the song. + // * @access private + // * @param {string} playlist The playlist the song is a part of + // * @param {number} song The index of the song being played/paused + // */ + // function handleSongInPlaylistPlayPause(playlist, song) { + // /* + // There can be multiple playlists on the page and there can be + // multiple songs on the page AND there can be songs in multiple + // playlists, so we have some checking to do. + // */ + + // /* + // Check to see if the playlist has changed. Essentially, if we are moving + // out of a playlist context. + // */ + // if (Checks.newPlaylist(playlist)) { + // /* + // We've moved out of the playlist context, so we set the active playlist + // to null + // */ + // AudioNavigation.setActivePlaylist(playlist); + + // /* + // We then change the song to the index selected. + // */ + // AudioNavigation.changeSongPlaylist( + // playlist, + // config.playlists[playlist].songs[song], + // song, + // true + // ); + // } + + // /* + // Check to see if the song has changed. If it has, + // set the active song. If it was in a playlist, the + // song wouldn't change here, since we already set the + // song when we checked for a playlist. + // */ + // if (Checks.newSong(playlist, song)) { + // /* + // The song selected is different, so we change the + // song. + // */ + // AudioNavigation.changeSongPlaylist( + // playlist, + // config.playlists[playlist].songs[song], + // song, + // true + // ); + // } + + // /* + // If the song is paused, we play the song. If the song is playing, + // we pause the song. + // */ + // if (config.audio.paused) { + // Core.play(); + // } else { + // Core.pause(); + // } + + // /* + // Now we sync all the elements to match the state of the audio. + // We don't need to do any checks on new songs or changed playlists + // in the global since it's whatever song is playing. + // */ + // PlayPauseElements.sync(); + // } + + /** + * Returns the public facing methods + */ + return { + handle: handle + }; +})(); + +export default PlayPause; diff --git a/src/events/playbackSpeed.js b/src/events/_migrated/playbackSpeed.js similarity index 100% rename from src/events/playbackSpeed.js rename to src/events/_migrated/playbackSpeed.js diff --git a/src/events/prev.js b/src/events/_migrated/prev.js similarity index 100% rename from src/events/prev.js rename to src/events/_migrated/prev.js diff --git a/src/events/progress.js b/src/events/_migrated/progress.js similarity index 100% rename from src/events/progress.js rename to src/events/_migrated/progress.js diff --git a/src/events/shuffle.js b/src/events/_migrated/shuffle.js similarity index 100% rename from src/events/shuffle.js rename to src/events/_migrated/shuffle.js diff --git a/src/events/skipTo.js b/src/events/_migrated/skipTo.js similarity index 88% rename from src/events/skipTo.js rename to src/events/_migrated/skipTo.js index 9ba1d8e5..90612063 100644 --- a/src/events/skipTo.js +++ b/src/events/_migrated/skipTo.js @@ -110,25 +110,25 @@ let SkipTo = (function() { * @param {string} songIndex - The index of the song being skipped to * @param {number} location - The seconds location of the song in the playlist. */ - function handleSkipToSong(songIndex, location) { - /* - Changes the song to where it's being skipped and then - play the song. - */ - AudioNavigation.changeSong(config.songs[songIndex], songIndex); - Core.play(); - - /* - Syncs all of the play pause buttons now that we've skipped. - */ - PlayPauseElements.syncGlobal(); - PlayPauseElements.syncSong(); - - /* - Skip to the location in the song. - */ - Core.skipToLocation(location); - } + // function handleSkipToSong(songIndex, location) { + // /* + // Changes the song to where it's being skipped and then + // play the song. + // */ + // AudioNavigation.changeSong(config.songs[songIndex], songIndex); + // Core.play(); + + // /* + // Syncs all of the play pause buttons now that we've skipped. + // */ + // PlayPauseElements.syncGlobal(); + // PlayPauseElements.syncSong(); + + // /* + // Skip to the location in the song. + // */ + // Core.skipToLocation(location); + // } /** * Handles the skipping to a song that's in a playlist. diff --git a/src/events/songSlider.js b/src/events/_migrated/songSlider.js similarity index 100% rename from src/events/songSlider.js rename to src/events/_migrated/songSlider.js diff --git a/src/events/stop.js b/src/events/_migrated/stop.js similarity index 100% rename from src/events/stop.js rename to src/events/_migrated/stop.js diff --git a/src/events/volumeDown.js b/src/events/_migrated/volumeDown.js similarity index 100% rename from src/events/volumeDown.js rename to src/events/_migrated/volumeDown.js diff --git a/src/events/volumeSlider.js b/src/events/_migrated/volumeSlider.js similarity index 100% rename from src/events/volumeSlider.js rename to src/events/_migrated/volumeSlider.js diff --git a/src/events/volumeUp.js b/src/events/_migrated/volumeUp.js similarity index 100% rename from src/events/volumeUp.js rename to src/events/_migrated/volumeUp.js diff --git a/src/events/events.js b/src/events/events.js index 72720a13..1277f241 100644 --- a/src/events/events.js +++ b/src/events/events.js @@ -47,38 +47,38 @@ var Events = (function() { * @access public */ function initialize() { - /* - Write out debug message - */ - Debug.writeMessage("Beginning initialization of event handlers.."); - - /* - Sets flag that the screen is moving and not a tap - */ - document.addEventListener("touchmove", function() { - config.is_touch_moving = true; - }); - - /* - On touch end if it was a touch move event, set moving to - false - */ - document.addEventListener("touchend", function() { - if (config.is_touch_moving) { - config.is_touch_moving = false; - } - }); + // /* + // Write out debug message + // */ + // Debug.writeMessage("Beginning initialization of event handlers.."); + + // /* + // Sets flag that the screen is moving and not a tap + // */ + // document.addEventListener("touchmove", function() { + // config.is_touch_moving = true; + // }); + + // /* + // On touch end if it was a touch move event, set moving to + // false + // */ + // document.addEventListener("touchend", function() { + // if (config.is_touch_moving) { + // config.is_touch_moving = false; + // } + // }); /* On time update for the audio element, update visual displays that represent the time on either a visualized element or time display. */ - bindTimeUpdate(); + // bindTimeUpdate(); /* Binds key down event handlers for matching key codes to functions. */ - bindKeyDownEventHandlers(); + // bindKeyDownEventHandlers(); /* When the audio element has ended playing, we handle the song @@ -87,118 +87,118 @@ var Events = (function() { visualization, but for a playlist it determines whether it should play the next song or not. */ - bindSongEnded(); + // bindSongEnded(); /* Binds progress event so we can see how much of the song is loaded. */ - bindProgress(); + // bindProgress(); /* Binds 'amplitude-play' event handlers */ - bindPlay(); + // bindPlay(); /* Binds 'amplitude-pause' event handlers. */ - bindPause(); + // bindPause(); /* Binds 'amplitude-play-pause' event handlers. */ - bindPlayPause(); + // bindPlayPause(); /* Binds 'amplitude-stop' event handlers. */ - bindStop(); + // bindStop(); /* Binds 'amplitude-mute' event handlers. */ - bindMute(); + // bindMute(); /* Binds 'amplitude-volume-up' event handlers */ - bindVolumeUp(); + // bindVolumeUp(); /* Binds 'amplitude-volume-down' event handlers */ - bindVolumeDown(); + // bindVolumeDown(); /* Binds 'amplitude-song-slider' event handlers */ - bindSongSlider(); + //bindSongSlider(); /* Binds 'amplitude-volume-slider' event handlers. */ - bindVolumeSlider(); + //bindVolumeSlider(); /* Binds 'amplitude-next' event handlers. */ - bindNext(); + // bindNext(); /* Binds 'amplitude-prev' event handlers. */ - bindPrev(); + // bindPrev(); /* Binds 'amplitude-shuffle' event handlers. */ - bindShuffle(); + // bindShuffle(); /* Binds 'amplitude-repeat' event handlers. */ - bindRepeat(); + //bindRepeat(); /* Binds 'amplitude-repeat-song' event handlers. */ - bindRepeatSong(); + //bindRepeatSong(); /* Binds 'amplitude-playback-speed' event handlers. */ - bindPlaybackSpeed(); + //bindPlaybackSpeed(); /* Binds 'amplitude-skip-to' event handlers. */ - bindSkipTo(); + //bindSkipTo(); /* Binds `canplaythrough` event to build the waveform. */ - bindCanPlayThrough(); + //bindCanPlayThrough(); } - /** - * On time update for the audio element, update visual displays that - * represent the time on either a visualized element or time display. - * - * @access private - */ - function bindTimeUpdate() { - /* - Bind for time update - */ - config.audio.removeEventListener("timeupdate", TimeUpdate.handle); - config.audio.addEventListener("timeupdate", TimeUpdate.handle); - - /* - Bind for duration change - */ - config.audio.removeEventListener("durationchange", TimeUpdate.handle); - config.audio.addEventListener("durationchange", TimeUpdate.handle); - } + // /** + // * On time update for the audio element, update visual displays that + // * represent the time on either a visualized element or time display. + // * + // * @access private + // */ + // function bindTimeUpdate() { + // /* + // Bind for time update + // */ + // config.audio.removeEventListener("timeupdate", TimeUpdate.handle); + // config.audio.addEventListener("timeupdate", TimeUpdate.handle); + + // /* + // Bind for duration change + // */ + // config.audio.removeEventListener("durationchange", TimeUpdate.handle); + // config.audio.addEventListener("durationchange", TimeUpdate.handle); + // } /** * On keydown, we listen to what key got pressed so we can map the key to @@ -207,10 +207,10 @@ var Events = (function() { * * @access private */ - function bindKeyDownEventHandlers() { - document.removeEventListener("keydown", KeyDown.handle); - document.addEventListener("keydown", KeyDown.handle); - } + // function bindKeyDownEventHandlers() { + // document.removeEventListener("keydown", KeyDown.handle); + // document.addEventListener("keydown", KeyDown.handle); + // } /** * When the audio element has ended playing, we handle the song @@ -221,477 +221,477 @@ var Events = (function() { * * @access private */ - function bindSongEnded() { - config.audio.removeEventListener("ended", Ended.handle); - config.audio.addEventListener("ended", Ended.handle); - } - - /** - * As the audio is loaded, the progress event gets fired. We bind into this - * to grab the buffered percentage of the song. We can then add more elements - * to show the buffered amount. - * - * @access private - */ - function bindProgress() { - config.audio.removeEventListener("progress", Progress.handle); - config.audio.addEventListener("progress", Progress.handle); - } + // function bindSongEnded() { + // config.audio.removeEventListener("ended", Ended.handle); + // config.audio.addEventListener("ended", Ended.handle); + // } + + // /** + // * As the audio is loaded, the progress event gets fired. We bind into this + // * to grab the buffered percentage of the song. We can then add more elements + // * to show the buffered amount. + // * + // * @access private + // */ + // function bindProgress() { + // config.audio.removeEventListener("progress", Progress.handle); + // config.audio.addEventListener("progress", Progress.handle); + // } /** * Binds click and touchend events for AmplitudeJS play buttons * * @access private */ - function bindPlay() { - /* - Gets all of the elements with the class amplitude-play - */ - var play_classes = document.getElementsByClassName("amplitude-play"); - - /* - Iterates over all of the play classes and binds the event interaction - method to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < play_classes.length; i++) { - if ( - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent - ) - ) { - play_classes[i].removeEventListener("touchend", Play.handle); - play_classes[i].addEventListener("touchend", Play.handle); - } else { - play_classes[i].removeEventListener("click", Play.handle); - play_classes[i].addEventListener("click", Play.handle); - } - } - } + // function bindPlay() { + // /* + // Gets all of the elements with the class amplitude-play + // */ + // var play_classes = document.getElementsByClassName("amplitude-play"); + + // /* + // Iterates over all of the play classes and binds the event interaction + // method to the element. If the browser is mobile, then the event is touchend + // otherwise it is click. + // */ + // for (var i = 0; i < play_classes.length; i++) { + // if ( + // /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + // navigator.userAgent + // ) + // ) { + // play_classes[i].removeEventListener("touchend", Play.handle); + // play_classes[i].addEventListener("touchend", Play.handle); + // } else { + // play_classes[i].removeEventListener("click", Play.handle); + // play_classes[i].addEventListener("click", Play.handle); + // } + // } + // } /** * Binds click and touchend events for AmplitudeJS pause buttons. * * @access private */ - function bindPause() { - /* - Gets all of the elements with the class amplitude-pause - */ - var pause_classes = document.getElementsByClassName("amplitude-pause"); - - /* - Iterates over all of the pause classes and binds the event interaction - method to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < pause_classes.length; i++) { - if ( - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent - ) - ) { - pause_classes[i].removeEventListener("touchend", Pause.handle); - pause_classes[i].addEventListener("touchend", Pause.handle); - } else { - pause_classes[i].removeEventListener("click", Pause.handle); - pause_classes[i].addEventListener("click", Pause.handle); - } - } - } + // function bindPause() { + // /* + // Gets all of the elements with the class amplitude-pause + // */ + // var pause_classes = document.getElementsByClassName("amplitude-pause"); + + // /* + // Iterates over all of the pause classes and binds the event interaction + // method to the element. If the browser is mobile, then the event is touchend + // otherwise it is click. + // */ + // for (var i = 0; i < pause_classes.length; i++) { + // if ( + // /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + // navigator.userAgent + // ) + // ) { + // pause_classes[i].removeEventListener("touchend", Pause.handle); + // pause_classes[i].addEventListener("touchend", Pause.handle); + // } else { + // pause_classes[i].removeEventListener("click", Pause.handle); + // pause_classes[i].addEventListener("click", Pause.handle); + // } + // } + // } /** * Binds click and touchend events for AmplitudeJS play pause buttons * * @access private */ - function bindPlayPause() { - /* - Gets all of the elements with the class amplitude-play-pause - */ - var play_pause_classes = document.getElementsByClassName( - "amplitude-play-pause" - ); - - /* - Iterates over all of the play/pause classes and binds the event interaction - method to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < play_pause_classes.length; i++) { - if ( - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent - ) - ) { - play_pause_classes[i].removeEventListener("touchend", PlayPause.handle); - play_pause_classes[i].addEventListener("touchend", PlayPause.handle); - } else { - play_pause_classes[i].removeEventListener("click", PlayPause.handle); - play_pause_classes[i].addEventListener("click", PlayPause.handle); - } - } - } - - /** - * Binds click and touchend events for AmplitudeJS stop buttons - * - * @access private - */ - function bindStop() { - /* - Gets all of the elements with the class amplitude-stop - */ - var stop_classes = document.getElementsByClassName("amplitude-stop"); - - /* - Iterates over all of the stop classes and binds the event interaction - method to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < stop_classes.length; i++) { - if ( - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent - ) - ) { - stop_classes[i].removeEventListener("touchend", Stop.handle); - stop_classes[i].addEventListener("touchend", Stop.handle); - } else { - stop_classes[i].removeEventListener("click", Stop.handle); - stop_classes[i].addEventListener("click", Stop.handle); - } - } - } - - /** - * Binds click and touchend events for AmplitudeJS mute buttons - * - * @access private - */ - function bindMute() { - /* - Gets all of the elements with the class amplitue-mute - */ - var mute_classes = document.getElementsByClassName("amplitude-mute"); - - /* - Iterates over all of the mute classes and binds the event interaction - method to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < mute_classes.length; i++) { - /* - WARNING: If iOS, we don't do anything because iOS does not allow the - volume to be adjusted through anything except the buttons on the side of - the device. - */ - if ( - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent - ) - ) { - /* - Checks for an iOS device and displays an error message if debugging - is turned on. - */ - if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) { - Debug.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" - ); - } else { - mute_classes[i].removeEventListener("touchend", Mute.handle); - mute_classes[i].addEventListener("touchend", Mute.handle); - } - } else { - mute_classes[i].removeEventListener("click", Mute.handle); - mute_classes[i].addEventListener("click", Mute.handle); - } - } - } + // function bindPlayPause() { + // /* + // Gets all of the elements with the class amplitude-play-pause + // */ + // var play_pause_classes = document.getElementsByClassName( + // "amplitude-play-pause" + // ); + + // /* + // Iterates over all of the play/pause classes and binds the event interaction + // method to the element. If the browser is mobile, then the event is touchend + // otherwise it is click. + // */ + // for (var i = 0; i < play_pause_classes.length; i++) { + // if ( + // /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + // navigator.userAgent + // ) + // ) { + // play_pause_classes[i].removeEventListener("touchend", PlayPause.handle); + // play_pause_classes[i].addEventListener("touchend", PlayPause.handle); + // } else { + // play_pause_classes[i].removeEventListener("click", PlayPause.handle); + // play_pause_classes[i].addEventListener("click", PlayPause.handle); + // } + // } + // } + + // /** + // * Binds click and touchend events for AmplitudeJS stop buttons + // * + // * @access private + // */ + // function bindStop() { + // /* + // Gets all of the elements with the class amplitude-stop + // */ + // var stop_classes = document.getElementsByClassName("amplitude-stop"); + + // /* + // Iterates over all of the stop classes and binds the event interaction + // method to the element. If the browser is mobile, then the event is touchend + // otherwise it is click. + // */ + // for (var i = 0; i < stop_classes.length; i++) { + // if ( + // /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + // navigator.userAgent + // ) + // ) { + // stop_classes[i].removeEventListener("touchend", Stop.handle); + // stop_classes[i].addEventListener("touchend", Stop.handle); + // } else { + // stop_classes[i].removeEventListener("click", Stop.handle); + // stop_classes[i].addEventListener("click", Stop.handle); + // } + // } + // } + + // /** + // * Binds click and touchend events for AmplitudeJS mute buttons + // * + // * @access private + // */ + // function bindMute() { + // /* + // Gets all of the elements with the class amplitue-mute + // */ + // var mute_classes = document.getElementsByClassName("amplitude-mute"); + + // /* + // Iterates over all of the mute classes and binds the event interaction + // method to the element. If the browser is mobile, then the event is touchend + // otherwise it is click. + // */ + // for (var i = 0; i < mute_classes.length; i++) { + // /* + // WARNING: If iOS, we don't do anything because iOS does not allow the + // volume to be adjusted through anything except the buttons on the side of + // the device. + // */ + // if ( + // /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + // navigator.userAgent + // ) + // ) { + // /* + // Checks for an iOS device and displays an error message if debugging + // is turned on. + // */ + // if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) { + // Debug.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" + // ); + // } else { + // mute_classes[i].removeEventListener("touchend", Mute.handle); + // mute_classes[i].addEventListener("touchend", Mute.handle); + // } + // } else { + // mute_classes[i].removeEventListener("click", Mute.handle); + // mute_classes[i].addEventListener("click", Mute.handle); + // } + // } + // } /** * Binds click and touchend events for AmplitudeJS Volume Up Buttons * * @access private */ - function bindVolumeUp() { - /* - Gets all of the elements with the class amplitude-volume-up - */ - var volume_up_classes = document.getElementsByClassName( - "amplitude-volume-up" - ); - - /* - Iterates over all of the volume up classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < volume_up_classes.length; i++) { - /* - WARNING: If iOS, we don't do anything because iOS does not allow the - volume to be adjusted through anything except the buttons on the side of - the device. - */ - if ( - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent - ) - ) { - /* - Checks for an iOS device and displays an error message if debugging - is turned on. - */ - if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) { - Debug.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" - ); - } else { - volume_up_classes[i].removeEventListener("touchend", VolumeUp.handle); - volume_up_classes[i].addEventListener("touchend", VolumeUp.handle); - } - } else { - volume_up_classes[i].removeEventListener("click", VolumeUp.handle); - volume_up_classes[i].addEventListener("click", VolumeUp.handle); - } - } - } + // function bindVolumeUp() { + // /* + // Gets all of the elements with the class amplitude-volume-up + // */ + // var volume_up_classes = document.getElementsByClassName( + // "amplitude-volume-up" + // ); + + // /* + // Iterates over all of the volume up classes and binds the event interaction + // methods to the element. If the browser is mobile, then the event is touchend + // otherwise it is click. + // */ + // for (var i = 0; i < volume_up_classes.length; i++) { + // /* + // WARNING: If iOS, we don't do anything because iOS does not allow the + // volume to be adjusted through anything except the buttons on the side of + // the device. + // */ + // if ( + // /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + // navigator.userAgent + // ) + // ) { + // /* + // Checks for an iOS device and displays an error message if debugging + // is turned on. + // */ + // if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) { + // Debug.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" + // ); + // } else { + // volume_up_classes[i].removeEventListener("touchend", VolumeUp.handle); + // volume_up_classes[i].addEventListener("touchend", VolumeUp.handle); + // } + // } else { + // volume_up_classes[i].removeEventListener("click", VolumeUp.handle); + // volume_up_classes[i].addEventListener("click", VolumeUp.handle); + // } + // } + // } /** * Binds click and touchend events for AmplitudeJS Volume Down Buttons * * @access private */ - function bindVolumeDown() { - /* - Gets all of the elements with the class amplitude-volume-down - */ - var volume_down_classes = document.getElementsByClassName( - "amplitude-volume-down" - ); - - /* - Iterates over all of the volume down classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < volume_down_classes.length; i++) { - /* - WARNING: If iOS, we don't do anything because iOS does not allow the - volume to be adjusted through anything except the buttons on the side of - the device. - */ - if ( - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent - ) - ) { - /* - Checks for an iOS device and displays an error message if debugging - is turned on. - */ - if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) { - Debug.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" - ); - } else { - volume_down_classes[i].removeEventListener( - "touchend", - VolumeDown.handle - ); - volume_down_classes[i].addEventListener( - "touchend", - VolumeDown.handle - ); - } - } else { - volume_down_classes[i].removeEventListener("click", VolumeDown.handle); - volume_down_classes[i].addEventListener("click", VolumeDown.handle); - } - } - } + // function bindVolumeDown() { + // /* + // Gets all of the elements with the class amplitude-volume-down + // */ + // var volume_down_classes = document.getElementsByClassName( + // "amplitude-volume-down" + // ); + + // /* + // Iterates over all of the volume down classes and binds the event interaction + // methods to the element. If the browser is mobile, then the event is touchend + // otherwise it is click. + // */ + // for (var i = 0; i < volume_down_classes.length; i++) { + // /* + // WARNING: If iOS, we don't do anything because iOS does not allow the + // volume to be adjusted through anything except the buttons on the side of + // the device. + // */ + // if ( + // /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + // navigator.userAgent + // ) + // ) { + // /* + // Checks for an iOS device and displays an error message if debugging + // is turned on. + // */ + // if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) { + // Debug.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" + // ); + // } else { + // volume_down_classes[i].removeEventListener( + // "touchend", + // VolumeDown.handle + // ); + // volume_down_classes[i].addEventListener( + // "touchend", + // VolumeDown.handle + // ); + // } + // } else { + // volume_down_classes[i].removeEventListener("click", VolumeDown.handle); + // volume_down_classes[i].addEventListener("click", VolumeDown.handle); + // } + // } + // } /** * Binds change and input events for AmplitudeJS Song Slider Inputs * * @access private */ - function bindSongSlider() { - /* - Gets browser so if we need to apply overrides, like we usually - have to do for anything cool in IE, we can do that. - */ - var ua = window.navigator.userAgent; - var msie = ua.indexOf("MSIE "); - - /* - Gets all of the elements with the class amplitude-song-slider - */ - var song_sliders = document.getElementsByClassName("amplitude-song-slider"); - - /* - Iterates over all of the song slider classes and binds the event interaction - methods to the element. If the browser is IE we listen to the change event - where if it is anything else, it's the input method. - */ - for (var i = 0; i < song_sliders.length; i++) { - if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) { - song_sliders[i].removeEventListener("change", SongSlider.handle); - song_sliders[i].addEventListener("change", SongSlider.handle); - } else { - song_sliders[i].removeEventListener("input", SongSlider.handle); - song_sliders[i].addEventListener("input", SongSlider.handle); - } - } - } - - /** - * Binds change and input events fro AmplitudeJS Volume Slider inputs - * - * @access private - */ - function bindVolumeSlider() { - /* - Gets browser so if we need to apply overrides, like we usually - have to do for anything cool in IE, we can do that. - */ - var ua = window.navigator.userAgent; - var msie = ua.indexOf("MSIE "); - - /* - Gets all of the elements with the class amplitude-volume-slider - */ - var volume_sliders = document.getElementsByClassName( - "amplitude-volume-slider" - ); - - /* - Iterates over all of the volume slider classes and binds the event interaction - methods to the element. If the browser is IE we listen to the change event - where if it is anything else, it's the input method. - */ - for (var i = 0; i < volume_sliders.length; i++) { - /* - WARNING: If iOS, we don't do anything because iOS does not allow the - volume to be adjusted through anything except the buttons on the side of - the device. - */ - if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) { - Debug.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" - ); - } else { - if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) { - volume_sliders[i].removeEventListener("change", VolumeSlider.handle); - volume_sliders[i].addEventListener("change", VolumeSlider.handle); - } else { - volume_sliders[i].removeEventListener("input", VolumeSlider.handle); - volume_sliders[i].addEventListener("input", VolumeSlider.handle); - } - } - } - } - - /** - * Binds click and touchend events fro AmplitudeJS Next buttons - * - * @access private - */ - function bindNext() { - /* - Gets all of the elements with the class amplitude-next - */ - var next_classes = document.getElementsByClassName("amplitude-next"); - - /* - Iterates over all of the next classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < next_classes.length; i++) { - if ( - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent - ) - ) { - next_classes[i].removeEventListener("touchend", Next.handle); - next_classes[i].addEventListener("touchend", Next.handle); - } else { - next_classes[i].removeEventListener("click", Next.handle); - next_classes[i].addEventListener("click", Next.handle); - } - } - } - - /** - * Binds click and touchend events for AmplitudeJS prev buttons. - * - * @access private - */ - function bindPrev() { - /* - Gets all of the elements with the class amplitude-prev - */ - var prev_classes = document.getElementsByClassName("amplitude-prev"); - - /* - Iterates over all of the prev classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < prev_classes.length; i++) { - if ( - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent - ) - ) { - prev_classes[i].removeEventListener("touchend", Prev.handle); - prev_classes[i].addEventListener("touchend", Prev.handle); - } else { - prev_classes[i].removeEventListener("click", Prev.handle); - prev_classes[i].addEventListener("click", Prev.handle); - } - } - } + // function bindSongSlider() { + // /* + // Gets browser so if we need to apply overrides, like we usually + // have to do for anything cool in IE, we can do that. + // */ + // var ua = window.navigator.userAgent; + // var msie = ua.indexOf("MSIE "); + + // /* + // Gets all of the elements with the class amplitude-song-slider + // */ + // var song_sliders = document.getElementsByClassName("amplitude-song-slider"); + + // /* + // Iterates over all of the song slider classes and binds the event interaction + // methods to the element. If the browser is IE we listen to the change event + // where if it is anything else, it's the input method. + // */ + // for (var i = 0; i < song_sliders.length; i++) { + // if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) { + // song_sliders[i].removeEventListener("change", SongSlider.handle); + // song_sliders[i].addEventListener("change", SongSlider.handle); + // } else { + // song_sliders[i].removeEventListener("input", SongSlider.handle); + // song_sliders[i].addEventListener("input", SongSlider.handle); + // } + // } + // } + + // /** + // * Binds change and input events fro AmplitudeJS Volume Slider inputs + // * + // * @access private + // */ + // function bindVolumeSlider() { + // /* + // Gets browser so if we need to apply overrides, like we usually + // have to do for anything cool in IE, we can do that. + // */ + // var ua = window.navigator.userAgent; + // var msie = ua.indexOf("MSIE "); + + // /* + // Gets all of the elements with the class amplitude-volume-slider + // */ + // var volume_sliders = document.getElementsByClassName( + // "amplitude-volume-slider" + // ); + + // /* + // Iterates over all of the volume slider classes and binds the event interaction + // methods to the element. If the browser is IE we listen to the change event + // where if it is anything else, it's the input method. + // */ + // for (var i = 0; i < volume_sliders.length; i++) { + // /* + // WARNING: If iOS, we don't do anything because iOS does not allow the + // volume to be adjusted through anything except the buttons on the side of + // the device. + // */ + // if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) { + // Debug.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" + // ); + // } else { + // if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) { + // volume_sliders[i].removeEventListener("change", VolumeSlider.handle); + // volume_sliders[i].addEventListener("change", VolumeSlider.handle); + // } else { + // volume_sliders[i].removeEventListener("input", VolumeSlider.handle); + // volume_sliders[i].addEventListener("input", VolumeSlider.handle); + // } + // } + // } + // } + + // /** + // * Binds click and touchend events fro AmplitudeJS Next buttons + // * + // * @access private + // */ + // function bindNext() { + // /* + // Gets all of the elements with the class amplitude-next + // */ + // var next_classes = document.getElementsByClassName("amplitude-next"); + + // /* + // Iterates over all of the next classes and binds the event interaction + // methods to the element. If the browser is mobile, then the event is touchend + // otherwise it is click. + // */ + // for (var i = 0; i < next_classes.length; i++) { + // if ( + // /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + // navigator.userAgent + // ) + // ) { + // next_classes[i].removeEventListener("touchend", Next.handle); + // next_classes[i].addEventListener("touchend", Next.handle); + // } else { + // next_classes[i].removeEventListener("click", Next.handle); + // next_classes[i].addEventListener("click", Next.handle); + // } + // } + // } + + // /** + // * Binds click and touchend events for AmplitudeJS prev buttons. + // * + // * @access private + // */ + // function bindPrev() { + // /* + // Gets all of the elements with the class amplitude-prev + // */ + // var prev_classes = document.getElementsByClassName("amplitude-prev"); + + // /* + // Iterates over all of the prev classes and binds the event interaction + // methods to the element. If the browser is mobile, then the event is touchend + // otherwise it is click. + // */ + // for (var i = 0; i < prev_classes.length; i++) { + // if ( + // /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + // navigator.userAgent + // ) + // ) { + // prev_classes[i].removeEventListener("touchend", Prev.handle); + // prev_classes[i].addEventListener("touchend", Prev.handle); + // } else { + // prev_classes[i].removeEventListener("click", Prev.handle); + // prev_classes[i].addEventListener("click", Prev.handle); + // } + // } + // } /** * Binds click and touchend events for AmplitudeJS shuffle buttons. * * @access private */ - function bindShuffle() { - /* - Gets all of the elements with the class amplitude-shuffle - */ - var shuffle_classes = document.getElementsByClassName("amplitude-shuffle"); - - /* - Iterates over all of the shuffle classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < shuffle_classes.length; i++) { - /* - Since we are re-binding everything we remove any classes that signify - a state of the shuffle control. - */ - shuffle_classes[i].classList.remove("amplitude-shuffle-on"); - shuffle_classes[i].classList.add("amplitude-shuffle-off"); - - if ( - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent - ) - ) { - shuffle_classes[i].removeEventListener("touchend", Shuffle.handle); - shuffle_classes[i].addEventListener("touchend", Shuffle.handle); - } else { - shuffle_classes[i].removeEventListener("click", Shuffle.handle); - shuffle_classes[i].addEventListener("click", Shuffle.handle); - } - } - } + // function bindShuffle() { + // /* + // Gets all of the elements with the class amplitude-shuffle + // */ + // var shuffle_classes = document.getElementsByClassName("amplitude-shuffle"); + + // /* + // Iterates over all of the shuffle classes and binds the event interaction + // methods to the element. If the browser is mobile, then the event is touchend + // otherwise it is click. + // */ + // for (var i = 0; i < shuffle_classes.length; i++) { + // /* + // Since we are re-binding everything we remove any classes that signify + // a state of the shuffle control. + // */ + // shuffle_classes[i].classList.remove("amplitude-shuffle-on"); + // shuffle_classes[i].classList.add("amplitude-shuffle-off"); + + // if ( + // /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + // navigator.userAgent + // ) + // ) { + // shuffle_classes[i].removeEventListener("touchend", Shuffle.handle); + // shuffle_classes[i].addEventListener("touchend", Shuffle.handle); + // } else { + // shuffle_classes[i].removeEventListener("click", Shuffle.handle); + // shuffle_classes[i].addEventListener("click", Shuffle.handle); + // } + // } + // } /** * Binds click and touchend events for AmplitudeJS repeat buttons. @@ -779,76 +779,76 @@ var Events = (function() { * * @access private */ - function bindPlaybackSpeed() { - /* - Gets all of the elements with the class amplitude-playback-speed - */ - var playback_speed_classes = document.getElementsByClassName( - "amplitude-playback-speed" - ); - - /* - Iterates over all of the playback speed classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it is click. - */ - for (var i = 0; i < playback_speed_classes.length; i++) { - if ( - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent - ) - ) { - playback_speed_classes[i].removeEventListener( - "touchend", - PlaybackSpeed.handle - ); - playback_speed_classes[i].addEventListener( - "touchend", - PlaybackSpeed.handle - ); - } else { - playback_speed_classes[i].removeEventListener( - "click", - PlaybackSpeed.handle - ); - playback_speed_classes[i].addEventListener( - "click", - PlaybackSpeed.handle - ); - } - } - } + // function bindPlaybackSpeed() { + // /* + // Gets all of the elements with the class amplitude-playback-speed + // */ + // var playback_speed_classes = document.getElementsByClassName( + // "amplitude-playback-speed" + // ); + + // /* + // Iterates over all of the playback speed classes and binds the event interaction + // methods to the element. If the browser is mobile, then the event is touchend + // otherwise it is click. + // */ + // for (var i = 0; i < playback_speed_classes.length; i++) { + // if ( + // /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + // navigator.userAgent + // ) + // ) { + // playback_speed_classes[i].removeEventListener( + // "touchend", + // PlaybackSpeed.handle + // ); + // playback_speed_classes[i].addEventListener( + // "touchend", + // PlaybackSpeed.handle + // ); + // } else { + // playback_speed_classes[i].removeEventListener( + // "click", + // PlaybackSpeed.handle + // ); + // playback_speed_classes[i].addEventListener( + // "click", + // PlaybackSpeed.handle + // ); + // } + // } + // } /** * Binds click and touchend events for AmplitudeJS skip to buttons. * * @access private */ - function bindSkipTo() { - /* - Gets all of the skip to elements with the class 'amplitude-skip-to' - */ - var skipToClasses = document.getElementsByClassName("amplitude-skip-to"); - - /* - Iterates over all of the skip to classes and binds the event interaction - methods to the element. If the browser is mobile, then the event is touchend - otherwise it's a click. - */ - for (var i = 0; i < skipToClasses.length; i++) { - if ( - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent - ) - ) { - skipToClasses[i].removeEventListener("touchend", SkipTo.handle); - skipToClasses[i].addEventListener("touchend", SkipTo.handle); - } else { - skipToClasses[i].removeEventListener("click", SkipTo.handle); - skipToClasses[i].addEventListener("click", SkipTo.handle); - } - } - } + // function bindSkipTo() { + // /* + // Gets all of the skip to elements with the class 'amplitude-skip-to' + // */ + // var skipToClasses = document.getElementsByClassName("amplitude-skip-to"); + + // /* + // Iterates over all of the skip to classes and binds the event interaction + // methods to the element. If the browser is mobile, then the event is touchend + // otherwise it's a click. + // */ + // for (var i = 0; i < skipToClasses.length; i++) { + // if ( + // /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + // navigator.userAgent + // ) + // ) { + // skipToClasses[i].removeEventListener("touchend", SkipTo.handle); + // skipToClasses[i].addEventListener("touchend", SkipTo.handle); + // } else { + // skipToClasses[i].removeEventListener("click", SkipTo.handle); + // skipToClasses[i].addEventListener("click", SkipTo.handle); + // } + // } + // } /** * Binds can play through to a song. diff --git a/src/events/next.js b/src/events/next.js deleted file mode 100644 index 2a68b5a4..00000000 --- a/src/events/next.js +++ /dev/null @@ -1,126 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../config.js"; - -/** - * Imports the AmplitudeJS Core module. - * @module core/core - */ -import Core from "../core/core.js"; - -/** - * Imports the Play Pause Elements Module. - * @module visual/PlayPauseElements - */ -import PlayPauseElements from "../visual/playPauseElements.js"; - -/** - * Imports the Callbacks Module - * @module utilities/Callbacks - */ -import Callbacks from "../utilities/callbacks.js"; - -/** - * Imports the Amplitude Audio Navigation Utility - * @module utilities/AudioNavigation - */ -import AudioNavigation from "../utilities/audioNavigation.js"; - -/** - * AmplitudeJS Debug Module - * @module utilities/Debug - */ -import Debug from "../utilities/debug.js"; - -/** - * AmplitudeJS Next Event Handler - * - * @module events/Next - */ -let Next = (function() { - /** - * Handles an event on the next button - * - * HANDLER FOR: class="amplitude-next" - * - * GLOBAL: class="amplitude-next" - * PLAYLIST: class="amplitude-next" amplitude-playlist="playlist_key" - * - * @access public - */ - function handle() { - /* - We don't fire this if the user is touching the screen and it's moving. - This could lead to a mis-fire - */ - if (!config.is_touch_moving) { - /* - Gets the playlist attribute from the element. - */ - let playlist = this.getAttribute("data-amplitude-playlist"); - - /* - If the playlist is null, we handle the global next. - */ - if (playlist == null) { - handleGlobalNext(); - } - - /* - If the playlist is set, we handle the playlist next. - */ - if (playlist != null) { - handlePlaylistNext(playlist); - } - } - } - - /** - * Handles an event on a global enxt button. - * - * @access private - */ - function handleGlobalNext() { - /* - Check to see if the current state of the player - is in playlist mode or not playlist mode. If we are in playlist mode, - we set next on the playlist. - */ - if (config.active_playlist == "" || config.active_playlist == null) { - AudioNavigation.setNext(); - } else { - AudioNavigation.setNextPlaylist(config.active_playlist); - } - } - - /** - * Handles an event on a next playlist button. - * - * @access private - * @prop {string} playlist - The playlist we are handling the next for. - */ - function handlePlaylistNext(playlist) { - /* - Ensure the playlist is the same as the active playlist. To get to change - the scope to a new playlist, you need to play that playlist. - */ - if (playlist == config.active_playlist) { - AudioNavigation.setNextPlaylist(playlist); - } else { - Debug.writeMessage( - "You can not go to the next song on a playlist that is not being played!" - ); - } - } - - /* - Returns the public facing methods. - */ - return { - handle: handle - }; -})(); - -export default Next; diff --git a/src/events/playPause.js b/src/events/playPause.js deleted file mode 100644 index e00b2edb..00000000 --- a/src/events/playPause.js +++ /dev/null @@ -1,320 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../config.js"; - -/** - * Import the config state utility. - * @module utilities/configState - */ -import ConfigState from "../utilities/configState.js"; - -/** - * Imports the AmplitudeJS Core Methods - * @module core/Core - */ -import Core from "../core/core.js"; - -/** - * Imports the AmplitudeJS Checks Utility - * @module utilities/Checks - */ -import Checks from "../utilities/checks.js"; - -/** - * Imports the AmplitudeJS Audio Navigation Utility - * @module utilities/AudioNavigation - */ -import AudioNavigation from "../utilities/audioNavigation.js"; - -/** - * Imports the AmplitudeJS Play Pause Elements - * @module visual/PlayPauseElements - */ -import PlayPauseElements from "../visual/playPauseElements.js"; - -/** - * Handles all of the play pause events - * @module events/PlayPause - */ -let PlayPause = (function() { - /** - * Handles an event on a play/pause button - * - * HANDLER FOR: class="amplitude-play-pause" - * - * GLOBAL: class="amplitude-play-pause" - * PLAYLIST: class="amplitude-play-pause" amplitude-playlist="playlist_key" - * SONG: class="amplitude-play-pause" amplitude-song-index="song_index" - * SONG IN PLAYLIST: class="amplitude-play-pause" amplitude-playlist="playlist-key" amplitude-song-index="playlist_index" - * - * @access public - */ - function handle() { - /* - If the touch is moving, we do not want to accidentally touch the play - pause element and fire an event. - */ - if (!config.is_touch_moving) { - /* - Get the playlist and song from the element. It's alright if these - are null. - */ - let playlist = this.getAttribute("data-amplitude-playlist"); - let song = this.getAttribute("data-amplitude-song-index"); - - /* - Handle a global play pause button - */ - if (playlist == null && song == null) { - handleGlobalPlayPause(); - } - - /* - Handle a playlist play pause button - */ - if (playlist != null && song == null) { - handlePlaylistPlayPause(playlist); - } - - /* - Handle a song play pause button - */ - if (playlist == null && song != null) { - handleSongPlayPause(song); - } - - /* - Handle a song in playlist play pause button - */ - if (playlist != null && song != null) { - handleSongInPlaylistPlayPause(playlist, song); - } - } - } - - /** - * Sets the main play pause buttons to the current state of the song. - * @access private - */ - function handleGlobalPlayPause() { - /* - If the song is paused, we play the song. If the song is playing, - we pause the song. - */ - if (config.audio.paused) { - Core.play(); - } else { - Core.pause(); - } - - /* - Now we sync all the elements to match the state of the audio. - We don't need to do any checks on new songs or changed playlists - in the global since it's whatever song is playing. - */ - PlayPauseElements.sync(); - } - - /** - * Sets the playlist main play pause buttons to the current state of the song. - * @access private - * @param {string} playlist The playlist the main play pause button controls - */ - function handlePlaylistPlayPause(playlist) { - /* - The only thing that can change when you click a playlist - play pause is the playlist. Main play pauses have no change - in song, song play pauses can change playlist and song. - */ - if (Checks.newPlaylist(playlist)) { - /* - If there's a new playlist, then we set the new playlist. - */ - AudioNavigation.setActivePlaylist(playlist); - - /* - Play first song in the playlist since we just - switched playlists, we start from the first song. - - If the user has shuffle on for the playlist, then - we go from the first song in the shuffle playlist array. - */ - if (config.playlists[playlist].shuffle) { - AudioNavigation.changeSongPlaylist( - playlist, - config.playlists[playlist].shuffle_list[0], - 0, - true - ); - } else { - AudioNavigation.changeSongPlaylist( - playlist, - config.playlists[playlist].songs[0], - 0 - ); - } - } - - /* - If the song is paused, we play the song. If the song is playing, - we pause the song. - */ - if (config.audio.paused) { - Core.play(); - } else { - Core.pause(); - } - - /* - Now we sync all the elements to match the state of the audio. - We don't need to do any checks on new songs or changed playlists - in the global since it's whatever song is playing. - */ - PlayPauseElements.sync(); - } - - /** - * Sets the playlist main play pause buttons to the current state of the song. - * @access private - * @param {string} song The index of the song being played/paused - */ - function handleSongPlayPause(song) { - /* - There can be multiple playlists on the page and there can be - multiple songs on the page AND there can be songs in multiple - playlists, so we have some checking to do. - */ - - /* - Check to see if the playlist has changed. Essentially, if we are moving - out of a playlist context. - */ - if (Checks.newPlaylist(null)) { - /* - We've moved out of the playlist context, so we set the active playlist - to null - */ - AudioNavigation.setActivePlaylist(null); - - /* - We then change the song to the index selected. - */ - AudioNavigation.changeSong(config.songs[song], song, true); - } - - /* - Check to see if the song has changed. If it has, - set the active song. If it was in a playlist, the - song wouldn't change here, since we already set the - song when we checked for a playlist. - */ - if (Checks.newSong(null, song)) { - /* - The song selected is different, so we change the - song. - */ - AudioNavigation.changeSong(config.songs[song], song, true); - } - - /* - If the song is paused, we play the song. If the song is playing, - we pause the song. - */ - if (config.audio.paused) { - Core.play(); - } else { - Core.pause(); - } - - /* - Now we sync all the elements to match the state of the audio. - We don't need to do any checks on new songs or changed playlists - in the global since it's whatever song is playing. - */ - PlayPauseElements.sync(); - } - - /** - * Sets the song in playlist play pause buttons to the current - * state of the song. - * @access private - * @param {string} playlist The playlist the song is a part of - * @param {number} song The index of the song being played/paused - */ - function handleSongInPlaylistPlayPause(playlist, song) { - /* - There can be multiple playlists on the page and there can be - multiple songs on the page AND there can be songs in multiple - playlists, so we have some checking to do. - */ - - /* - Check to see if the playlist has changed. Essentially, if we are moving - out of a playlist context. - */ - if (Checks.newPlaylist(playlist)) { - /* - We've moved out of the playlist context, so we set the active playlist - to null - */ - AudioNavigation.setActivePlaylist(playlist); - - /* - We then change the song to the index selected. - */ - AudioNavigation.changeSongPlaylist( - playlist, - config.playlists[playlist].songs[song], - song, - true - ); - } - - /* - Check to see if the song has changed. If it has, - set the active song. If it was in a playlist, the - song wouldn't change here, since we already set the - song when we checked for a playlist. - */ - if (Checks.newSong(playlist, song)) { - /* - The song selected is different, so we change the - song. - */ - AudioNavigation.changeSongPlaylist( - playlist, - config.playlists[playlist].songs[song], - song, - true - ); - } - - /* - If the song is paused, we play the song. If the song is playing, - we pause the song. - */ - if (config.audio.paused) { - Core.play(); - } else { - Core.pause(); - } - - /* - Now we sync all the elements to match the state of the audio. - We don't need to do any checks on new songs or changed playlists - in the global since it's whatever song is playing. - */ - PlayPauseElements.sync(); - } - - /** - * Returns the public facing methods - */ - return { - handle: handle - }; -})(); - -export default PlayPause; diff --git a/src/events/timeUpdate.js b/src/events/timeUpdate.js index 845dba26..61abc920 100644 --- a/src/events/timeUpdate.js +++ b/src/events/timeUpdate.js @@ -46,106 +46,106 @@ import Callbacks from "../utilities/callbacks.js"; * @module events/TimeUpdate */ let TimeUpdate = (function() { - /** - * When the time updates on the active song, we sync the current time displays - * - * HANDLER FOR: timeupdate - * - * @access public - */ - function handle() { - /* - Computes the buffered time. - */ - computeBufferedTime(); - - /* - Sync the buffered progress elements. - */ - BufferedProgressElements.sync(); - - /* - Updates the current time information. - */ - updateTimeInformation(); - - /* - Run time callbacks - */ - runTimeCallbacks(); - } - - /** - * Computes the buffered time - */ - function computeBufferedTime() { - /* - Help from: http://jsbin.com/badimipi/1/edit?html,js,output - */ - if (config.audio.buffered.length - 1 >= 0) { - let bufferedEnd = config.audio.buffered.end( - config.audio.buffered.length - 1 - ); - let duration = config.audio.duration; - - config.buffered = (bufferedEnd / duration) * 100; - } - } - - /** - * Updates the current time information. - * @access private - */ - function updateTimeInformation() { - /* - If the current song is not live, then - we can update the time information. Otherwise the - current time updates wouldn't mean much since the time - is infinite. - */ - if (!config.active_metadata.live) { - /* - Compute the current time - */ - let currentTime = Time.computeCurrentTimes(); - - /* - Compute the song completion percentage - */ - let songCompletionPercentage = Time.computeSongCompletionPercentage(); - - /* - Computes the song duration - */ - let songDuration = Time.computeSongDuration(); - - /* - Sync the current time elements with the current - location of the song and the song duration elements with - the duration of the song. - */ - TimeElements.syncCurrentTimes(currentTime); - - /* - Sync the song slider elements. - */ - SongSliderElements.sync( - songCompletionPercentage, - config.active_playlist, - config.active_index - ); - - /* - Sync the song played progress elements. - */ - SongPlayedProgressElements.sync(songCompletionPercentage); - - /* - Sync the duration time elements. - */ - TimeElements.syncDurationTimes(currentTime, songDuration); - } - } + // /** + // * When the time updates on the active song, we sync the current time displays + // * + // * HANDLER FOR: timeupdate + // * + // * @access public + // */ + // function handle() { + // /* + // Computes the buffered time. + // */ + // computeBufferedTime(); + + // /* + // Sync the buffered progress elements. + // */ + // BufferedProgressElements.sync(); + + // /* + // Updates the current time information. + // */ + // updateTimeInformation(); + + // /* + // Run time callbacks + // */ + // runTimeCallbacks(); + // } + + // /** + // * Computes the buffered time + // */ + // function computeBufferedTime() { + // /* + // Help from: http://jsbin.com/badimipi/1/edit?html,js,output + // */ + // if (config.audio.buffered.length - 1 >= 0) { + // let bufferedEnd = config.audio.buffered.end( + // config.audio.buffered.length - 1 + // ); + // let duration = config.audio.duration; + + // config.buffered = (bufferedEnd / duration) * 100; + // } + // } + + // /** + // * Updates the current time information. + // * @access private + // */ + // function updateTimeInformation() { + // /* + // If the current song is not live, then + // we can update the time information. Otherwise the + // current time updates wouldn't mean much since the time + // is infinite. + // */ + // if (!config.active_metadata.live) { + // /* + // Compute the current time + // */ + // let currentTime = Time.computeCurrentTimes(); + + // /* + // Compute the song completion percentage + // */ + // let songCompletionPercentage = Time.computeSongCompletionPercentage(); + + // /* + // Computes the song duration + // */ + // let songDuration = Time.computeSongDuration(); + + // /* + // Sync the current time elements with the current + // location of the song and the song duration elements with + // the duration of the song. + // */ + // TimeElements.syncCurrentTimes(currentTime); + + // /* + // Sync the song slider elements. + // */ + // SongSliderElements.sync( + // songCompletionPercentage, + // config.active_playlist, + // config.active_index + // ); + + // /* + // Sync the song played progress elements. + // */ + // SongPlayedProgressElements.sync(songCompletionPercentage); + + // /* + // Sync the duration time elements. + // */ + // TimeElements.syncDurationTimes(currentTime, songDuration); + // } + // } /** * Runs a callback at a certain time in the song. diff --git a/src/index-old.js b/src/index-old.js new file mode 100644 index 00000000..61d5dc82 --- /dev/null +++ b/src/index-old.js @@ -0,0 +1,1408 @@ +/** + * @name AmplitudeJS + * @author Dan Pastori (Server Side Up) + */ +/** + * AmplitudeJS Initializer Module + * + * @module init/AmplitudeInitializer + */ +import Initializer from "./init/init.js"; + +/**************************************************** + * Config + ****************************************************/ +/** + * Imports the config module + * @module config + */ +import config from "./config.js"; + +/**************************************************** + * Core + ****************************************************/ +/** + * AmplitudeJS Core Module + * + * @module core/Core + */ +import Core from "./core/core.js"; + +/**************************************************** + * Utilities + ****************************************************/ +/** + * Shuffler Module + * @module utilities/Shuffler + */ +import Shuffler from "./utilities/shuffler.js"; + +/** + * Imports the audio navigation + * @module utilities/AudioNavigation + */ +import AudioNavigation from "./utilities/audioNavigation.js"; + +/** + * Repeater Module + * + * @module utilities/Repeater + */ +import Repeater from "./utilities/repeater.js"; + +/** + * Imports the checks + * @module utilities/Checks + */ +import Checks from "./utilities/checks.js"; + +/**************************************************** + * FX Modules + ****************************************************/ +/** + * Imports the visualizations module + * @module fx/Visualizations + */ +import Visualizations from "./fx/visualizations.js"; + +/**************************************************** + * Elements + ****************************************************/ +/** + * Visual Shuffle Elements + * @module visual/ShuffleElements + */ +import ShuffleElements from "./visual/shuffleElements.js"; + +/** + * Visual Repeat Elements + * @module visual/RepeatElements + */ +import RepeatElements from "./visual/repeatElements.js"; + +/** + * Song Slider Elements + * @module visual/SongSliderElements + */ +import SongSliderElements from "./visual/songSliderElements.js"; + +/** + * Song Played Progress Elements + * @module visual/SongPlayedProgressElements + */ +import SongPlayedProgressElements from "./visual/songPlayedProgressElements.js"; + +/** + * Time Elements + * @module visual/TimeElements + */ +import TimeElements from "./visual/timeElements.js"; + +/** + * Play Pause Elements + * @module visual/PlayPauseElements + */ +import PlayPauseElements from "./visual/playPauseElements.js"; + +/** + * Meta Data Elements + * @module visual/MetaDataElements + */ +import MetaDataElements from "./visual/metaDataElements.js"; + +/** + * Playback Speed Elements + * @module visual/PlaybackSpeedElements + */ +import PlaybackSpeedElements from "./visual/playbackSpeedElements.js"; + +import Debug from "./utilities/debug.js"; + +import SoundCloud from "./soundcloud/soundcloud.js"; + +/** + * Amplitude should just be an interface to the public functions. + * Everything else should be handled by other objects + * + * @module Amplitude + */ +let Amplitude = (function() { + // /** + // * The main init function. The user will call this through + // * Amplitude.init({}) and pass in their settings. + // * + // * Public Accessor: Amplitude.init( user_config_json ); + // * + // * @access public + // * @param {object} userConfig - A JSON object of user defined values that helps configure and initialize AmplitudeJS. + // */ + // function init(userConfig) { + // Initializer.initialize(userConfig); + // } + + // /** + // * Returns the current config for AmplitudeJS + // */ + // function getConfig() { + // return config; + // } + + /** + * Binds new elements that were added to the page. + * + * Public Accessor: Amplitude.bindNewElements() + * + * @access public + */ + function bindNewElements() { + Initializer.rebindDisplay(); + } + + // /** + // * Returns the active playlist. + // * + // * Public Accessor: Amplitude.getActivePlaylist() + // * + // * @access public + // */ + // function getActivePlaylist() { + // return config.active_playlist; + // } + + // /** + // * Returns the current playback speed. + // * + // * Public Accessor: Amplitude.getPlaybackSpeed() + // * + // * @access public + // */ + // function getPlaybackSpeed() { + // return config.playback_speed; + // } + + // /** + // * Sets the playback speed + // * + // * Public Accessor: Amplitude.setPlaybackSpeed( speed ) + // * + // * @access public + // */ + // function setPlaybackSpeed(speed) { + // /* + // Increments are set in .5 We only accept values + // 1, 1.5, 2 + + // 1 -> Regular Speed + // 1.5 -> 50% faster + // 2 -> Twice as fast + // */ + // Core.setPlaybackSpeed(speed); + + // /* + // Visually sync the playback speed. + // */ + // PlaybackSpeedElements.sync(); + // } + + /** + * Gets the repeat state of the player. + * + * Public Accessor: Amplitude.getRepeat() + * + * @access public + */ + function getRepeat() { + return config.repeat; + } + + /** + * Gets the repeat state for a playlist + * + * Public Accessor: Amplitude.getRepeatPlaylist() + * + * @access public + */ + function getRepeatPlaylist(playlistKey) { + return config.playlists[playlistKey].repeat; + } + + // /** + // * Returns the shuffle state of the player. + // * + // * Public Accessor: Amplitude.getShuffle() + // * + // * @access public + // */ + // function getShuffle() { + // return config.shuffle_on; + // } + + // /** + // * Returns the shuffle state of the playlist. + // * + // * Public Accessor: Amplitude.getShufflePlaylist( playlist ) + // * + // * @access public + // * @param {string} playlist - The key representing the playlist ID to see if it's shuffled or not. + // */ + // function getShufflePlaylist(playlist) { + // return config.playlists[playlist].shuffle; + // } + + // /** + // * Sets the shuffle state for the player. + // * + // * Public Accessor: Amplitude.setShuffle() + // * + // * @param {boolean} shuffle - True when we are shuffling the songs, false when we turn off shuffle. + // * + // * @access public + // */ + // function setShuffle(shuffle) { + // Shuffler.setShuffle(shuffle); + + // ShuffleElements.syncMain(); + // } + + // /** + // * Sets the shuffle state for the playlist + // * + // * Public Accessor: Amplitude.setShufflePlaylist( playlist ) + // * + // * @access public + // * @param {string} playlist - The key representing the playlist ID to to shuffle the playlist. + // * @param {boolean} shuffle - True when we are shuffling the playlist, false when we turn off shuffle. + // */ + // function setShufflePlaylist(playlist, shuffle) { + // Shuffler.setShufflePlaylist(playlist, shuffle); + + // ShuffleElements.syncMain(); + // ShuffleElements.syncPlaylist(playlist); + // } + + /** + * Sets the repeat state for the player. + * + * Public Accessor: Amplitude.setRepeat() + * + * @access public + * @param {boolean} repeatState - The state you want the repeat song to be in. + */ + function setRepeat(repeatState) { + Repeater.setRepeat(repeatState); + RepeatElements.syncRepeat(); + } + + /** + * Sets the repeat state for a playlist. + * + * Public Accessor: Amplitude.setRepeatPlaylist( playlistKey ) + * + * @access public + * @param {string} playlist - The key representing the playlist ID to to shuffle the playlist. + * @param {boolean} repeatState - The state you want the repeat playlist to be in. + */ + function setRepeatPlaylist(playlist, repeatState) { + Repeater.setRepeatPlaylist(repeatState, playlist); + RepeatElements.syncRepeatPlaylist(playlist); + } + + /** + * Sets the repeat state for the song. + * + * Public Accessor: Amplitude.setRepeatSong() + * + * @access public + * @param {boolean} repeatState - The state you want the repeat song status to be in. + */ + function setRepeatSong(repeatState) { + if (!config.is_touch_moving) { + /* + Sets repeat to the opposite of what it was set to + */ + Repeater.setRepeatSong(!config.repeat_song); + + /* + Visually sync repeat song + */ + RepeatElements.syncRepeatSong(); + } + } + + // /** + // * Gets the default album art for the player + // * + // * Public Accessor: Amplitude.getDefaultAlbumArt() + // * + // * @access public + // */ + // function getDefaultAlbumArt() { + // return config.default_album_art; + // } + + // /** + // * Gets the default playlist art for the playlists + // * + // * Public Accessor: Amplitude.getDefaultPlaylistArt() + // * + // * @access public + // */ + // function getDefaultPlaylistArt() { + // return config.default_playlist_art; + // } + + // /** + // * Sets the default album art for the player + // * + // * Public Accessor: Amplitude.setDefaultAlbumArt( url ) + // * + // * @access public + // * @param {string} url - A string representing the URL of the new default album art. + // */ + // function setDefaultAlbumArt(url) { + // config.default_album_art = url; + // } + + // /** + // * Sets the default playlist art for the player + // * + // * Public Accessor: Amplitude.setDefaultPlaylistArt( url ) + // * + // * @access public + // * @param {string} url - A string representing the URL of the new default playlist art. + // */ + // function setDefaultPlaylistArt(url) { + // config.default_plalist_art = url; + // } + + // /** + // * Allows the user to get the percentage of the song played. + // * + // * Public Accessor: Amplitude.getSongPlayedPercentage(); + // * + // * @access public + // */ + // function getSongPlayedPercentage() { + // /* + // Returns the percentage of the song played. + // */ + // return (config.audio.currentTime / config.audio.duration) * 100; + // } + + // /** + // * Allows the user to get the amount of seconds the song has played. + // * + // * Public Accessor: Amplitude.getSongPlayed(); + // * + // * @access public + // */ + // function getSongPlayedSeconds() { + // /* + // Returns the amount of seconds the song has played. + // */ + // return config.audio.currentTime; + // } + + // /** + // * Allows the user to get the duration of the current song + // * + // * Public Accessor: Amplitude.getSongPlayed(); + // * + // * @access public + // */ + // function getSongDuration() { + // /* + // Returns the duration of the current song + // */ + // return config.audio.duration; + // } + + // /** + // * Allows the user to set how far into the song they want to be. This is + // * helpful for implementing custom range sliders. Only works on the current song. + // * + // * Public Accessor: Amplitude.setSongPlayedPercentage( float ); + // * + // * @access public + // * @param {number} percentage - The percentage of the song played + // */ + // function setSongPlayedPercentage(percentage) { + // /* + // Ensures the percentage is a number and is between 0 and 100. + // */ + // if (typeof percentage == "number" && (percentage > 0 && percentage < 100)) { + // /* + // Sets the current time of the song to the percentage. + // */ + // config.audio.currentTime = config.audio.duration * (percentage / 100); + // } + // } + + // /** + // * Allows the user to turn on debugging. + // * + // * Public Accessor: Amplitude.setDebug( bool ); + // * + // * @access public + // * @param {boolean} state - Turns debugging on and off. + // */ + // function setDebug(state) { + // /* + // Sets the global config debug on or off. + // */ + // config.debug = state; + // } + + // /** + // * Returns the active song meta data for the user to do what is + // * needed. + // * + // * Public Accessor: Amplitude.getActiveSongMetadata(); + // * + // * @access public + // * @returns {object} JSON Object with the active song information + // */ + // function getActiveSongMetadata() { + // return config.active_metadata; + // } + + // /** + // * Returns the active playlist meta data for the for the user to use. + // * + // * Public Accessor: Amplitude.getActivePlaylistMetadata(); + // * + // * @access public + // * @returns {object} JSON representation for the active playlist + // */ + // function getActivePlaylistMetadata() { + // return config.playlists[config.active_playlist]; + // } + + // /** + // * Returns a song in the songs array at that index + // * + // * Public Accessor: Amplitude.getSongAtIndex( song_index ) + // * + // * @access public + // * @param {number} index - The integer for the index of the song in the songs array. + // * @returns {object} JSON representation for the song at a specific index. + // */ + // function getSongAtIndex(index) { + // return config.songs[index]; + // } + + // /** + // * Returns a song at a playlist index + // * + // * Public Accessor: Amplitude.getSongAtPlaylistIndex( playlist, index + // * + // * @access public + // * @param {number} index - The integer for the index of the song in the playlist. + // * @param {string} playlist - The key of the playlist we are getting the song at the index for + // * @returns {object} JSON representation for the song at a specific index. + // */ + // function getSongAtPlaylistIndex(playlist, index) { + // let song = config.playlists[playlist].songs[index]; + + // return song; + // } + + // /** + // * Adds a song to the end of the config array. This will allow Amplitude + // * to play the song in a playlist type setting. + // * + // * Public Accessor: Amplitude.addSong( song_json ) + // * + // * @access public + // * @param {object} song - JSON representation of a song. + // * @returns {number} New index of the song. + // */ + // function addSong(song) { + // /* + // Ensures we have a songs array to push to. + // */ + // if (config.songs == undefined) { + // config.songs = []; + // } + + // config.songs.push(song); + + // if (config.shuffle_on) { + // config.shuffle_list.push(song); + // } + + // if (SoundCloud.isSoundCloudURL(song.url)) { + // SoundCloud.resolveIndividualStreamableURL( + // song.url, + // null, + // config.songs.length - 1, + // config.shuffle_on + // ); + // } + + // return config.songs.length - 1; + // } + + // /** + // * Adds a song to the beginning of the config array. + // * This will allow Amplitude to play the song in a + // * playlist type setting. + // * + // * Public Accessor: Amplitude.addSong( song_json ) + // * + // * @access public + // * @param {object} song - JSON representation of a song. + // * @returns {number} New index of the song (0) + // */ + // function prependSong(song) { + // /* + // Ensures we have a songs array to push to. + // */ + // if (config.songs == undefined) { + // config.songs = []; + // } + + // config.songs.unshift(song); + + // if (config.shuffle_on) { + // config.shuffle_list.unshift(song); + // } + + // if (SoundCloud.isSoundCloudURL(song.url)) { + // SoundCloud.resolveIndividualStreamableURL( + // song.url, + // null, + // config.songs.length - 1, + // config.shuffle_on + // ); + // } + + // return 0; + // } + + /** + * Adds a song to a playlist. This will allow Amplitude to play the song in the + * playlist + * + * Public Accessor: Amplitude.addSongToPlaylist( song_json, playlist_key ) + * + * @access public + * @param {object} song - JSON representation of a song. + * @param {string} playlist - Playlist we are adding the song to. + * @returns {mixed} New index of song in playlist or null if no playlist exists + */ + function addSongToPlaylist(song, playlist) { + if (config.playlists[playlist] != undefined) { + config.playlists[playlist].songs.push(song); + + if (config.playlists[playlist].shuffle) { + config.playlists[playlist].shuffle_list.push(song); + } + + if (SoundCloud.isSoundCloudURL(song.url)) { + SoundCloud.resolveIndividualStreamableURL( + song.url, + playlist, + config.playlists[playlist].songs.length - 1, + config.playlists[playlist].shuffle + ); + } + + return config.playlists[playlist].songs.length - 1; + } else { + Debug.writeMessage("Playlist doesn't exist!"); + return null; + } + } + + /** + * Adds a playlist to Amplitude. + * + * @param {string} key - The key of the playlist we are adding. + * @param {object} data - The data relating to the playlist + * @param {array} songs - The songs to add to the playlist + */ + function addPlaylist(key, data, songs) { + /* + Ensures the playlist is not already defined. + */ + if (config.playlists[key] == undefined) { + /* + Initialize the new playlist object. + */ + config.playlists[key] = {}; + + /* + Define the ignored keys that we don't want to copy over. + */ + let ignoredKeys = ["repeat", "shuffle", "shuffle_list", "songs", "src"]; + + /* + Iterate over all of the keys defined by the user and + set them on the playlist. + */ + for (let dataKey in data) { + if (ignoredKeys.indexOf(dataKey) < 0) { + config.playlists[key][dataKey] = data[dataKey]; + } + } + + /* + Initialize the default parameters for the playlist and set the songs. + */ + config.playlists[key].songs = songs; + config.playlists[key].active_index = null; + config.playlists[key].repeat = false; + config.playlists[key].shuffle = false; + config.playlists[key].shuffle_list = []; + + return config.playlists[key]; + } else { + Debug.writeMessage("A playlist already exists with that key!"); + return null; + } + } + + /** + * Removes a song from the song array + * + * Public Accessor: Amplitude.removeSong( index ) + * + * @access public + * @param {integer} index - Index of the song being removed + * @returns {boolean} True if removed false if not. + */ + function removeSong(index) { + config.songs.splice(index, 1); + } + + /** + * Removes a song from the playlist + * + * Public Accessor: Amplitude.removeSongFromPlaylist( index, playlist ) + * + * @access public + * @param {integer} index - Index of the song being removed from the playlist. + * @param {string} playlist - Playlist we are removing the song from. + * @returns {boolean} True if removed false if not. + */ + function removeSongFromPlaylist(index, playlist) { + if (config.playlists[playlist] != undefined) { + config.playlists[playlist].songs.splice(index, 1); + } + } + + /** + * When you pass a song object it plays that song right awawy. It sets + * the active song in the config to the song you pass in and synchronizes + * the visuals. + * + * Public Accessor: Amplitude.playNow( song ) + * + * @access public + * @param {object} song - JSON representation of a song. + */ + function playNow(song) { + /* + Makes sure the song object has a URL associated with it + or there will be nothing to play. + */ + if (song.url) { + config.audio.src = song.url; + config.active_metadata = song; + config.active_album = song.album; + } else { + /* + Write error message since the song passed in doesn't + have a URL. + */ + Debug.writeMessage("The song needs to have a URL!"); + } + + /* + Plays the song. + */ + Core.play(); + + /* + Sets the main song control status visual + */ + PlayPauseElements.sync(); + + /* + Update the song meta data + */ + MetaDataElements.displayMetaData(); + + /* + Reset the song sliders, song progress bar info, and + reset times. This ensures everything stays in sync. + */ + SongSliderElements.resetElements(); + + /* + Reset the song played progress elements. + */ + SongPlayedProgressElements.resetElements(); + + /* + Reset all of the current time elements. + */ + TimeElements.resetCurrentTimes(); + + /* + Reset all of the duration time elements. + */ + TimeElements.resetDurationTimes(); + + } + + /** + * Plays a song at the index passed in from the songs array. + * + * Public Accessor: Amplitude.playSongAtIndex( index ) + * + * @access public + * @param {number} index - The number representing the song in the songs array. + */ + function playSongAtIndex(index) { + /* + Stop the current song. + */ + Core.stop(); + + /* + Determine if there is a new playlist, if so set the active playlist and change the song. + */ + if (Checks.newPlaylist(null)) { + AudioNavigation.setActivePlaylist(null); + + AudioNavigation.changeSong(config.songs[index], index); + } + + /* + Check if the song is new. If so, change the song. + */ + if (Checks.newSong(null, index)) { + AudioNavigation.changeSong(config.songs[index], index); + } + + /* + Play the song + */ + Core.play(); + + /* + Sync all of the play pause buttons. + */ + PlayPauseElements.sync(); + } + + /** + * Plays a song at the index passed in for the playlist provided. The index passed + * in should be the index of the song in the playlist and not the songs array. + * + * @access public + * @param {number} index - The number representing the song in the playlist array. + * @param {string} playlist - The key string representing the playlist we are playing the song from. + * + */ + function playPlaylistSongAtIndex(index, playlist) { + Core.stop(); + + /* + Determine if there is a new playlist, if so set the active playlist and change the song. + */ + if (Checks.newPlaylist(playlist)) { + AudioNavigation.setActivePlaylist(playlist); + + AudioNavigation.changeSongPlaylist( + playlist, + config.playlists[playlist].songs[index], + index + ); + } + + /* + Check if the song is new. If so, change the song. + */ + if (Checks.newSong(playlist, index)) { + AudioNavigation.changeSongPlaylist( + playlist, + config.playlists[playlist].songs[index], + index + ); + } + + /* + Sync all of the play pause buttons. + */ + PlayPauseElements.sync(); + + /* + Play the song + */ + Core.play(); + } + + /** + * Allows the user to play whatever the active song is directly + * through Javascript. Normally ALL of Amplitude functions that access + * the core features are called through event handlers. + * + * Public Accessor: Amplitude.play(); + * + * @access public + */ + function play() { + Core.play(); + } + + /** + * Allows the user to pause whatever the active song is directly + * through Javascript. Normally ALL of Amplitude functions that access + * the core features are called through event handlers. + * + * Public Accessor: Amplitude.pause(); + * + * @access public + */ + function pause() { + Core.pause(); + } + + /** + * Allows the user to stop whatever the active song is directly + * through Javascript. + * + * Public Accessor: Amplitude.stop(); + * + * @access public + */ + function stop() { + Core.stop(); + } + + /** + * Returns the audio object used to play the audio + * + * Public Accessor: Amplitude.getAudio(); + * + * @access public + */ + function getAudio() { + return config.audio; + } + + /** + * Returns the Web Audio API ANalyser used for visualizations. + * + * Public Accessor: Amplitude.getAnalyser() + * + * @access public + */ + function getAnalyser() { + return config.analyser; + } + + /** + * Plays the next song either in the playlist or globally. + * + * Public Accessor: Amplitude.next( playlist ); + * + * @access public + * @param {string} [playlist = null - The playlist key + */ + function next(playlist = null) { + let nextData = {}; + /* + If the playlist is empty or null, then we check the active + playlist + */ + if (playlist == "" || playlist == null) { + /* + If the active playlist is null, then we set the next global + song or we set the next in the playlist. + */ + if (config.active_playlist == null || config.active_playlist == "") { + AudioNavigation.setNext(); + } else { + AudioNavigation.setNextPlaylist(config.active_playlist); + } + } else { + AudioNavigation.setNextPlaylist(playlist); + } + } + + /** + * Plays the prev song either in the playlist or globally. + * + * Public Accessor: Amplitude.prev( playlist ); + * + * @access public + * @param {string} [playlist = null] - The playlist key + */ + function prev(playlist = null) { + let prevData = {}; + + /* + If the playlist is empty or null, then we check the active + playlist + */ + if (playlist == "" || playlist == null) { + /* + If the active playlist is null, then we set the prev global + song or we set the prev in the playlist. + */ + if (config.active_playlist == null || config.active_playlist == "") { + AudioNavigation.setPrevious(); + } else { + AudioNavigation.setPreviousPlaylist(config.active_playlist); + } + } else { + AudioNavigation.setPreviousPlaylist(playlist); + } + } + + /** + * Gets all of the songs in the songs array + * + * Public Accessor: Amplitude.getSongs( ); + * + * @access public + */ + function getSongs() { + return config.songs; + } + + /** + * Gets all of the songs in a playlist + * + * Public Accessor: Amplitude.getSongsInPlaylist( playlist ); + * + * @access public + * @param {string} playlist - The playlist key + */ + function getSongsInPlaylist(playlist) { + return config.playlists[playlist].songs; + } + + /** + * Get current state of songs. If shuffled, this will return the shuffled + * songs. + * + * Public Accessor: Amplitude.getSongsState(); + * + * @access public + */ + function getSongsState() { + if (config.shuffle_on) { + return config.shuffle_list; + } else { + return config.songs; + } + } + + /** + * Get current state of songs in playlist. If shuffled, this will return the + * shuffled songs. + * + * Public Accessor: Amplitude.getSongsStatePlaylist( playlist ); + * + * @access public + * @param {string} playlist - The playlist key + */ + function getSongsStatePlaylist(playlist) { + if (config.playlists[playlist].shuffle) { + return config.playlists[playlist].shuffle_list; + } else { + return config.playlists[playlist].songs; + } + } + + /** + * Gets the active index of the player + * + * Public Accessor: Amplitude.getActiveIndex() + * + * @access public + */ + function getActiveIndex() { + return parseInt(config.active_index); + } + + /** + * Get the version of AmplitudeJS + * + * Public Accessor: Amplitude.getVersion() + * + * @access public + */ + function getVersion() { + return config.version; + } + + /** + * Get the buffered amount for the current song + * + * Public Accessor: Amplitude.getBuffered() + * + * @access public + */ + function getBuffered() { + return config.buffered; + } + + /** + * Skip to a certain location in a selected song. + * + * Public Accessor: Amplitude.getBuffered() + * + * @access public + * @param {number} seconds - The amount of seconds we should skip to in the song. + * @param {number} songIndex - The index of the song in the songs array. + * @param {string} [playlist = null] - The playlist the song we are skipping to belogns to. + */ + function skipTo(seconds, songIndex, playlist = null) { + seconds = parseInt(seconds); + + if (playlist != null) { + /* + Checks if we are skipping to a new playlist + */ + if (Checks.newPlaylist(playlist)) { + AudioNavigation.setActivePlaylist(playlist); + } + + /* + Changes the song to where it's being skipped and then + play the song. + */ + AudioNavigation.changeSongPlaylist( + playlist, + config.playlists[playlist].songs[songIndex], + songIndex + ); + Core.play(); + + /* + Sync all of the play pause elements. + */ + PlayPauseElements.syncGlobal(); + PlayPauseElements.syncPlaylist(); + PlayPauseElements.syncSong(); + + /* + Skip to the location in the song. + */ + Core.skipToLocation(seconds); + } else { + /* + Changes the song to where it's being skipped and then + play the song. + */ + AudioNavigation.changeSong(config.songs[songIndex], songIndex); + Core.play(); + + /* + Syncs all of the play pause buttons now that we've skipped. + */ + PlayPauseElements.syncGlobal(); + PlayPauseElements.syncSong(); + + /* + Skip to the location in the song. + */ + Core.skipToLocation(seconds); + } + } + + /** + * Sets the meta data for a song in the songs array. This will set any + * meta data for a song besides the URL. The URL could cause issues if the + * song was playing. + * + * Public Accessor: Amplitude.setSongMetaData() + * + * @access public + * @param {number} index - The index of the song in the songs array. + * @param {object} metaData - The object containing the meta data we are updating. + * @param {string} playlist - The playlist we are updating the song meta data for. + */ + function setSongMetaData(index, metaData, playlist = null) { + /* + Update the meta data for a song in a playlist. + */ + if ( + playlist != "" && + playlist != null && + config.playlists[playlist] != undefined + ) { + /* + Set all of the defined meta data properties + */ + for (var key in metaData) { + if (metaData.hasOwnProperty(key)) { + if (key != "url" && key != "URL" && key != "live" && key != "LIVE") { + config.playlists[playlist].songs[index][key] = metaData[key]; + } + } + } + } else { + /* + Update the meta data for a song. + */ + for (var key in metaData) { + if (metaData.hasOwnProperty(key)) { + if (key != "url" && key != "URL" && key != "live" && key != "LIVE") { + config.songs[index][key] = metaData[key]; + } + } + } + } + + /* + Display the updates on the screen. + */ + MetaDataElements.displayMetaData(); + MetaDataElements.syncMetaData(); + } + + function setPlaylistMetaData(playlist, metaData) { + if (config.playlists[playlist] != undefined) { + /* + These are the ignored keys that we won't be worrying about displaying. + Every other key in the playlist object can be displayed. + */ + let ignoredKeys = ["repeat", "shuffle", "shuffle_list", "songs", "src"]; + + for (var key in metaData) { + if (metaData.hasOwnProperty(key)) { + if (ignoredKeys.indexOf(key) < 0) { + config.playlists[playlist][key] = metaData[key]; + } + } + } + + MetaDataElements.displayPlaylistMetaData(); + } else { + Debug.writeMessage("You must provide a valid playlist key!"); + } + } + + /** + * Sets the delay between the songs when they are finished. + * + * Public Accessor: Amplitude.setDelay() + * + * @access public + * @param {number} delay - The millisecond delay time between songs + */ + function setDelay(time) { + config.delay = time; + } + + /** + * Returns the current delay between songs. + * + * Public Accessor: Amplitude.getDelay() + * + * @access public + */ + function getDelay() { + return config.delay; + } + + /** + * Returns the state of the player. + * + * Public Accessor: Amplitude.getPlayerState(); + */ + function getPlayerState() { + return config.player_state; + } + + /** + * Registers a visualization and sets that visualization's + * preferences. When creating a visualization, you can set certain + * preferences that the user can overwrite similar to Amplitude. + * Public Accessor: Amplitude.registerVisualization( visualization, preferences ) + * + * @param {object} visualzation A visualization object that gets registered + * with Amplitude + * + * @param {object} preferences A JSON object of preferences relating to the + * visualization + */ + function registerVisualization(visualization, preferences) { + Visualizations.register(visualization, preferences); + } + + /** + * Set the visualization for the playlist + * + * @param {string} playlist - The playlist we are setting the visualization for. + * @param {string} visualizationKey - The key of the visualization we are adding to the playlist. + */ + function setPlaylistVisualization(playlist, visualizationKey) { + if (config.playlists[playlist] != undefined) { + if (config.visualizations.available[visualizationKey] != undefined) { + config.playlists[playlist].visualization = visualizationKey; + } else { + Debug.writeMessage( + "A visualization does not exist for the key provided." + ); + } + } else { + Debug.writeMessage("The playlist for the key provided does not exist"); + } + } + + /** + * Set a visualization for the song. + * + * @param {number} songIndex - The index of the song in the songs array we are setting the visualization for. + * @param {string} visualizationKey - The key of the visualization we are adding to the playlist. + */ + function setSongVisualization(songIndex, visualizationKey) { + if (config.songs[songIndex]) { + if (config.visualizations.available[visualizationKey] != undefined) { + config.songs[songIndex].visualization = visualizationKey; + } else { + Debug.writeMessage( + "A visualization does not exist for the key provided." + ); + } + } else { + Debug.writeMessage("A song at that index is undefined"); + } + } + + /** + * Set song in playlist visualization. + * + * @param {string} playlist - The playlist we are setting the song visualization for. + * @param {number} songIndex - The index we are setting the visualization for. + * @param {strong} visualizationKey - The key of the visualization we are adding to the song in the playlist. + */ + function setSongInPlaylistVisualization( + playlist, + songIndex, + visualizationKey + ) { + if (config.playlists[playlist].songs[songIndex] != undefined) { + if (config.visualizations.available[visualizationKey] != undefined) { + config.playlists[playlist].songs[ + songIndex + ].visualization = visualizationKey; + } else { + Debug.writeMessage( + "A visualization does not exist for the key provided." + ); + } + } else { + Debug.writeMessage("The song in the playlist at that key is not defined"); + } + } + + /** + * Sets the global visualization default. + */ + function setGlobalVisualization(visualizationKey) { + if (config.visualizations.available[visualizationKey] != undefined) { + config.visualization = visualizationKey; + } else { + Debug.writeMessage( + "A visualization does not exist for the key provided." + ); + } + } + + /** + * Sets the active volume. + * @param {number} volumeLevel - A number between 1 and 100 as a percentage of + * min to max for a volume level. + */ + function setVolume(volumeLevel) { + Core.setVolume(volumeLevel); + } + + /** + * Gets the active volume. + */ + function getVolume() { + return config.volume; + } + + /* + Returns all of the publically accesible methods. + */ + return { + init: init, + getConfig: getConfig, + bindNewElements: bindNewElements, + getActivePlaylist: getActivePlaylist, + getPlaybackSpeed: getPlaybackSpeed, + setPlaybackSpeed: setPlaybackSpeed, + getRepeat: getRepeat, + getRepeatPlaylist: getRepeatPlaylist, + getShuffle: getShuffle, + getShufflePlaylist: getShufflePlaylist, + setShuffle: setShuffle, + setShufflePlaylist: setShufflePlaylist, + setRepeat: setRepeat, + setRepeatSong: setRepeatSong, + setRepeatPlaylist: setRepeatPlaylist, + getDefaultAlbumArt: getDefaultAlbumArt, + setDefaultAlbumArt: setDefaultAlbumArt, + getDefaultPlaylistArt: getDefaultPlaylistArt, + setDefaultPlaylistArt: setDefaultPlaylistArt, + getSongPlayedPercentage: getSongPlayedPercentage, + setSongPlayedPercentage: setSongPlayedPercentage, + getSongPlayedSeconds: getSongPlayedSeconds, + getSongDuration: getSongDuration, + setDebug: setDebug, + getActiveSongMetadata: getActiveSongMetadata, + getActivePlaylistMetadata: getActivePlaylistMetadata, + getSongAtIndex: getSongAtIndex, + getSongAtPlaylistIndex: getSongAtPlaylistIndex, + addSong: addSong, + prependSong: prependSong, + addSongToPlaylist: addSongToPlaylist, + removeSong: removeSong, + removeSongFromPlaylist: removeSongFromPlaylist, + playNow: playNow, + playSongAtIndex: playSongAtIndex, + playPlaylistSongAtIndex: playPlaylistSongAtIndex, + play: play, + pause: pause, + stop: stop, + getAudio: getAudio, + getAnalyser: getAnalyser, + next: next, + prev: prev, + getSongs: getSongs, + getSongsInPlaylist: getSongsInPlaylist, + getSongsState: getSongsState, + getSongsStatePlaylist: getSongsStatePlaylist, + getActiveIndex: getActiveIndex, + getVersion: getVersion, + getBuffered: getBuffered, + skipTo: skipTo, + setSongMetaData: setSongMetaData, + setPlaylistMetaData: setPlaylistMetaData, + setDelay: setDelay, + getDelay: getDelay, + getPlayerState: getPlayerState, + addPlaylist: addPlaylist, + registerVisualization: registerVisualization, + setPlaylistVisualization: setPlaylistVisualization, + setSongVisualization: setSongVisualization, + setSongInPlaylistVisualization: setSongInPlaylistVisualization, + setGlobalVisualization: setGlobalVisualization, + getVolume: getVolume, + setVolume: setVolume + }; +})(); + +export default Amplitude; diff --git a/src/index.js b/src/index.js index 8f8082eb..0a8ddc20 100644 --- a/src/index.js +++ b/src/index.js @@ -1,1414 +1,34 @@ /** - * @name AmplitudeJS - * @author Dan Pastori (Server Side Up) + * @name AmplitudeJS + * @author Dan Pastori (Server Side Up) */ -/** - * AmplitudeJS Initializer Module - * - * @module init/AmplitudeInitializer - */ -import Initializer from "./init/init.js"; -/**************************************************** - * Config - ****************************************************/ -/** - * Imports the config module - * @module config - */ -import config from "./config.js"; +import * as artMethods from "@/methods/art.js"; +import * as audioMethods from "@/methods/audio.js"; +import * as collectionMethods from "@/methods/collections.js"; +import * as configMethods from "@/methods/config.js"; +import * as eventListenerMethods from "@/methods/eventListeners.js"; +import * as initMethods from "@/methods/init.js"; +import * as playbackSpeedMethods from "@/methods/playbackSpeed.js"; -/**************************************************** - * Core - ****************************************************/ /** - * AmplitudeJS Core Module - * - * @module core/Core - */ -import Core from "./core/core.js"; - -/**************************************************** - * Utilities - ****************************************************/ -/** - * Shuffler Module - * @module utilities/Shuffler - */ -import Shuffler from "./utilities/shuffler.js"; - -/** - * Imports the config state module. - * @module ConfigState - */ -import ConfigState from "./utilities/configState.js"; - -/** - * Imports the audio navigation - * @module utilities/AudioNavigation - */ -import AudioNavigation from "./utilities/audioNavigation.js"; - -/** - * Repeater Module - * - * @module utilities/Repeater - */ -import Repeater from "./utilities/repeater.js"; - -/** - * Imports the checks - * @module utilities/Checks - */ -import Checks from "./utilities/checks.js"; - -/**************************************************** - * FX Modules - ****************************************************/ -/** - * Imports the visualizations module - * @module fx/Visualizations - */ -import Visualizations from "./fx/visualizations.js"; - -/**************************************************** - * Elements - ****************************************************/ -/** - * Visual Shuffle Elements - * @module visual/ShuffleElements - */ -import ShuffleElements from "./visual/shuffleElements.js"; - -/** - * Visual Repeat Elements - * @module visual/RepeatElements - */ -import RepeatElements from "./visual/repeatElements.js"; - -/** - * Song Slider Elements - * @module visual/SongSliderElements - */ -import SongSliderElements from "./visual/songSliderElements.js"; - -/** - * Song Played Progress Elements - * @module visual/SongPlayedProgressElements - */ -import SongPlayedProgressElements from "./visual/songPlayedProgressElements.js"; - -/** - * Time Elements - * @module visual/TimeElements - */ -import TimeElements from "./visual/timeElements.js"; - -/** - * Play Pause Elements - * @module visual/PlayPauseElements - */ -import PlayPauseElements from "./visual/playPauseElements.js"; - -/** - * Meta Data Elements - * @module visual/MetaDataElements - */ -import MetaDataElements from "./visual/metaDataElements.js"; - -/** - * Playback Speed Elements - * @module visual/PlaybackSpeedElements - */ -import PlaybackSpeedElements from "./visual/playbackSpeedElements.js"; - -import Debug from "./utilities/debug.js"; - -import SoundCloud from "./soundcloud/soundcloud.js"; - -/** - * Amplitude should just be an interface to the public functions. - * Everything else should be handled by other objects + * Amplitude is an interface to the public methods. + * All public methods are in the /methods directory. + * These methods use clases to perform functionality. + * The state is stored in /config.js * * @module Amplitude */ -let Amplitude = (function() { - /** - * The main init function. The user will call this through - * Amplitude.init({}) and pass in their settings. - * - * Public Accessor: Amplitude.init( user_config_json ); - * - * @access public - * @param {object} userConfig - A JSON object of user defined values that helps configure and initialize AmplitudeJS. - */ - function init(userConfig) { - Initializer.initialize(userConfig); - } - - /** - * Returns the current config for AmplitudeJS - */ - function getConfig() { - return config; - } - - /** - * Binds new elements that were added to the page. - * - * Public Accessor: Amplitude.bindNewElements() - * - * @access public - */ - function bindNewElements() { - Initializer.rebindDisplay(); - } - - /** - * Returns the active playlist. - * - * Public Accessor: Amplitude.getActivePlaylist() - * - * @access public - */ - function getActivePlaylist() { - return config.active_playlist; - } - - /** - * Returns the current playback speed. - * - * Public Accessor: Amplitude.getPlaybackSpeed() - * - * @access public - */ - function getPlaybackSpeed() { - return config.playback_speed; - } - - /** - * Sets the playback speed - * - * Public Accessor: Amplitude.setPlaybackSpeed( speed ) - * - * @access public - */ - function setPlaybackSpeed(speed) { - /* - Increments are set in .5 We only accept values - 1, 1.5, 2 - - 1 -> Regular Speed - 1.5 -> 50% faster - 2 -> Twice as fast - */ - Core.setPlaybackSpeed(speed); - - /* - Visually sync the playback speed. - */ - PlaybackSpeedElements.sync(); - } - - /** - * Gets the repeat state of the player. - * - * Public Accessor: Amplitude.getRepeat() - * - * @access public - */ - function getRepeat() { - return config.repeat; - } - - /** - * Gets the repeat state for a playlist - * - * Public Accessor: Amplitude.getRepeatPlaylist() - * - * @access public - */ - function getRepeatPlaylist(playlistKey) { - return config.playlists[playlistKey].repeat; - } - - /** - * Returns the shuffle state of the player. - * - * Public Accessor: Amplitude.getShuffle() - * - * @access public - */ - function getShuffle() { - return config.shuffle_on; - } - - /** - * Returns the shuffle state of the playlist. - * - * Public Accessor: Amplitude.getShufflePlaylist( playlist ) - * - * @access public - * @param {string} playlist - The key representing the playlist ID to see if it's shuffled or not. - */ - function getShufflePlaylist(playlist) { - return config.playlists[playlist].shuffle; - } - - /** - * Sets the shuffle state for the player. - * - * Public Accessor: Amplitude.setShuffle() - * - * @param {boolean} shuffle - True when we are shuffling the songs, false when we turn off shuffle. - * - * @access public - */ - function setShuffle(shuffle) { - Shuffler.setShuffle(shuffle); - - ShuffleElements.syncMain(); - } - - /** - * Sets the shuffle state for the playlist - * - * Public Accessor: Amplitude.setShufflePlaylist( playlist ) - * - * @access public - * @param {string} playlist - The key representing the playlist ID to to shuffle the playlist. - * @param {boolean} shuffle - True when we are shuffling the playlist, false when we turn off shuffle. - */ - function setShufflePlaylist(playlist, shuffle) { - Shuffler.setShufflePlaylist(playlist, shuffle); - - ShuffleElements.syncMain(); - ShuffleElements.syncPlaylist(playlist); - } - - /** - * Sets the repeat state for the player. - * - * Public Accessor: Amplitude.setRepeat() - * - * @access public - * @param {boolean} repeatState - The state you want the repeat song to be in. - */ - function setRepeat(repeatState) { - Repeater.setRepeat(repeatState); - RepeatElements.syncRepeat(); - } - - /** - * Sets the repeat state for a playlist. - * - * Public Accessor: Amplitude.setRepeatPlaylist( playlistKey ) - * - * @access public - * @param {string} playlist - The key representing the playlist ID to to shuffle the playlist. - * @param {boolean} repeatState - The state you want the repeat playlist to be in. - */ - function setRepeatPlaylist(playlist, repeatState) { - Repeater.setRepeatPlaylist(repeatState, playlist); - RepeatElements.syncRepeatPlaylist(playlist); - } - - /** - * Sets the repeat state for the song. - * - * Public Accessor: Amplitude.setRepeatSong() - * - * @access public - * @param {boolean} repeatState - The state you want the repeat song status to be in. - */ - function setRepeatSong(repeatState) { - if (!config.is_touch_moving) { - /* - Sets repeat to the opposite of what it was set to - */ - Repeater.setRepeatSong(!config.repeat_song); - - /* - Visually sync repeat song - */ - RepeatElements.syncRepeatSong(); +const Amplitude = (function(){ + return { + ...artMethods, + ...audioMethods, + ...collectionMethods, + ...configMethods, + ...eventListenerMethods, + ...initMethods, + ...playbackSpeedMethods } - } - - /** - * Gets the default album art for the player - * - * Public Accessor: Amplitude.getDefaultAlbumArt() - * - * @access public - */ - function getDefaultAlbumArt() { - return config.default_album_art; - } - - /** - * Gets the default playlist art for the playlists - * - * Public Accessor: Amplitude.getDefaultPlaylistArt() - * - * @access public - */ - function getDefaultPlaylistArt() { - return config.default_playlist_art; - } - - /** - * Sets the default album art for the player - * - * Public Accessor: Amplitude.setDefaultAlbumArt( url ) - * - * @access public - * @param {string} url - A string representing the URL of the new default album art. - */ - function setDefaultAlbumArt(url) { - config.default_album_art = url; - } - - /** - * Sets the default playlist art for the player - * - * Public Accessor: Amplitude.setDefaultPlaylistArt( url ) - * - * @access public - * @param {string} url - A string representing the URL of the new default playlist art. - */ - function setDefaultPlaylistArt(url) { - config.default_plalist_art = url; - } - - /** - * Allows the user to get the percentage of the song played. - * - * Public Accessor: Amplitude.getSongPlayedPercentage(); - * - * @access public - */ - function getSongPlayedPercentage() { - /* - Returns the percentage of the song played. - */ - return (config.audio.currentTime / config.audio.duration) * 100; - } - - /** - * Allows the user to get the amount of seconds the song has played. - * - * Public Accessor: Amplitude.getSongPlayed(); - * - * @access public - */ - function getSongPlayedSeconds() { - /* - Returns the amount of seconds the song has played. - */ - return config.audio.currentTime; - } - - /** - * Allows the user to get the duration of the current song - * - * Public Accessor: Amplitude.getSongPlayed(); - * - * @access public - */ - function getSongDuration() { - /* - Returns the duration of the current song - */ - return config.audio.duration; - } - - /** - * Allows the user to set how far into the song they want to be. This is - * helpful for implementing custom range sliders. Only works on the current song. - * - * Public Accessor: Amplitude.setSongPlayedPercentage( float ); - * - * @access public - * @param {number} percentage - The percentage of the song played - */ - function setSongPlayedPercentage(percentage) { - /* - Ensures the percentage is a number and is between 0 and 100. - */ - if (typeof percentage == "number" && (percentage > 0 && percentage < 100)) { - /* - Sets the current time of the song to the percentage. - */ - config.audio.currentTime = config.audio.duration * (percentage / 100); - } - } - - /** - * Allows the user to turn on debugging. - * - * Public Accessor: Amplitude.setDebug( bool ); - * - * @access public - * @param {boolean} state - Turns debugging on and off. - */ - function setDebug(state) { - /* - Sets the global config debug on or off. - */ - config.debug = state; - } - - /** - * Returns the active song meta data for the user to do what is - * needed. - * - * Public Accessor: Amplitude.getActiveSongMetadata(); - * - * @access public - * @returns {object} JSON Object with the active song information - */ - function getActiveSongMetadata() { - return config.active_metadata; - } - - /** - * Returns the active playlist meta data for the for the user to use. - * - * Public Accessor: Amplitude.getActivePlaylistMetadata(); - * - * @access public - * @returns {object} JSON representation for the active playlist - */ - function getActivePlaylistMetadata() { - return config.playlists[config.active_playlist]; - } - - /** - * Returns a song in the songs array at that index - * - * Public Accessor: Amplitude.getSongAtIndex( song_index ) - * - * @access public - * @param {number} index - The integer for the index of the song in the songs array. - * @returns {object} JSON representation for the song at a specific index. - */ - function getSongAtIndex(index) { - return config.songs[index]; - } - - /** - * Returns a song at a playlist index - * - * Public Accessor: Amplitude.getSongAtPlaylistIndex( playlist, index - * - * @access public - * @param {number} index - The integer for the index of the song in the playlist. - * @param {string} playlist - The key of the playlist we are getting the song at the index for - * @returns {object} JSON representation for the song at a specific index. - */ - function getSongAtPlaylistIndex(playlist, index) { - let song = config.playlists[playlist].songs[index]; - - return song; - } - - /** - * Adds a song to the end of the config array. This will allow Amplitude - * to play the song in a playlist type setting. - * - * Public Accessor: Amplitude.addSong( song_json ) - * - * @access public - * @param {object} song - JSON representation of a song. - * @returns {number} New index of the song. - */ - function addSong(song) { - /* - Ensures we have a songs array to push to. - */ - if (config.songs == undefined) { - config.songs = []; - } - - config.songs.push(song); - - if (config.shuffle_on) { - config.shuffle_list.push(song); - } - - if (SoundCloud.isSoundCloudURL(song.url)) { - SoundCloud.resolveIndividualStreamableURL( - song.url, - null, - config.songs.length - 1, - config.shuffle_on - ); - } - - return config.songs.length - 1; - } - - /** - * Adds a song to the beginning of the config array. - * This will allow Amplitude to play the song in a - * playlist type setting. - * - * Public Accessor: Amplitude.addSong( song_json ) - * - * @access public - * @param {object} song - JSON representation of a song. - * @returns {number} New index of the song (0) - */ - function prependSong(song) { - /* - Ensures we have a songs array to push to. - */ - if (config.songs == undefined) { - config.songs = []; - } - - config.songs.unshift(song); - - if (config.shuffle_on) { - config.shuffle_list.unshift(song); - } - - if (SoundCloud.isSoundCloudURL(song.url)) { - SoundCloud.resolveIndividualStreamableURL( - song.url, - null, - config.songs.length - 1, - config.shuffle_on - ); - } - - return 0; - } - - /** - * Adds a song to a playlist. This will allow Amplitude to play the song in the - * playlist - * - * Public Accessor: Amplitude.addSongToPlaylist( song_json, playlist_key ) - * - * @access public - * @param {object} song - JSON representation of a song. - * @param {string} playlist - Playlist we are adding the song to. - * @returns {mixed} New index of song in playlist or null if no playlist exists - */ - function addSongToPlaylist(song, playlist) { - if (config.playlists[playlist] != undefined) { - config.playlists[playlist].songs.push(song); - - if (config.playlists[playlist].shuffle) { - config.playlists[playlist].shuffle_list.push(song); - } - - if (SoundCloud.isSoundCloudURL(song.url)) { - SoundCloud.resolveIndividualStreamableURL( - song.url, - playlist, - config.playlists[playlist].songs.length - 1, - config.playlists[playlist].shuffle - ); - } - - return config.playlists[playlist].songs.length - 1; - } else { - Debug.writeMessage("Playlist doesn't exist!"); - return null; - } - } - - /** - * Adds a playlist to Amplitude. - * - * @param {string} key - The key of the playlist we are adding. - * @param {object} data - The data relating to the playlist - * @param {array} songs - The songs to add to the playlist - */ - function addPlaylist(key, data, songs) { - /* - Ensures the playlist is not already defined. - */ - if (config.playlists[key] == undefined) { - /* - Initialize the new playlist object. - */ - config.playlists[key] = {}; - - /* - Define the ignored keys that we don't want to copy over. - */ - let ignoredKeys = ["repeat", "shuffle", "shuffle_list", "songs", "src"]; - - /* - Iterate over all of the keys defined by the user and - set them on the playlist. - */ - for (let dataKey in data) { - if (ignoredKeys.indexOf(dataKey) < 0) { - config.playlists[key][dataKey] = data[dataKey]; - } - } - - /* - Initialize the default parameters for the playlist and set the songs. - */ - config.playlists[key].songs = songs; - config.playlists[key].active_index = null; - config.playlists[key].repeat = false; - config.playlists[key].shuffle = false; - config.playlists[key].shuffle_list = []; - - return config.playlists[key]; - } else { - Debug.writeMessage("A playlist already exists with that key!"); - return null; - } - } - - /** - * Removes a song from the song array - * - * Public Accessor: Amplitude.removeSong( index ) - * - * @access public - * @param {integer} index - Index of the song being removed - * @returns {boolean} True if removed false if not. - */ - function removeSong(index) { - config.songs.splice(index, 1); - } - - /** - * Removes a song from the playlist - * - * Public Accessor: Amplitude.removeSongFromPlaylist( index, playlist ) - * - * @access public - * @param {integer} index - Index of the song being removed from the playlist. - * @param {string} playlist - Playlist we are removing the song from. - * @returns {boolean} True if removed false if not. - */ - function removeSongFromPlaylist(index, playlist) { - if (config.playlists[playlist] != undefined) { - config.playlists[playlist].songs.splice(index, 1); - } - } - - /** - * When you pass a song object it plays that song right awawy. It sets - * the active song in the config to the song you pass in and synchronizes - * the visuals. - * - * Public Accessor: Amplitude.playNow( song ) - * - * @access public - * @param {object} song - JSON representation of a song. - */ - function playNow(song) { - /* - Makes sure the song object has a URL associated with it - or there will be nothing to play. - */ - if (song.url) { - config.audio.src = song.url; - config.active_metadata = song; - config.active_album = song.album; - } else { - /* - Write error message since the song passed in doesn't - have a URL. - */ - Debug.writeMessage("The song needs to have a URL!"); - } - - /* - Plays the song. - */ - Core.play(); - - /* - Sets the main song control status visual - */ - PlayPauseElements.sync(); - - /* - Update the song meta data - */ - MetaDataElements.displayMetaData(); - - /* - Reset the song sliders, song progress bar info, and - reset times. This ensures everything stays in sync. - */ - SongSliderElements.resetElements(); - - /* - Reset the song played progress elements. - */ - SongPlayedProgressElements.resetElements(); - - /* - Reset all of the current time elements. - */ - TimeElements.resetCurrentTimes(); - - /* - Reset all of the duration time elements. - */ - TimeElements.resetDurationTimes(); - - } - - /** - * Plays a song at the index passed in from the songs array. - * - * Public Accessor: Amplitude.playSongAtIndex( index ) - * - * @access public - * @param {number} index - The number representing the song in the songs array. - */ - function playSongAtIndex(index) { - /* - Stop the current song. - */ - Core.stop(); - - /* - Determine if there is a new playlist, if so set the active playlist and change the song. - */ - if (Checks.newPlaylist(null)) { - AudioNavigation.setActivePlaylist(null); - - AudioNavigation.changeSong(config.songs[index], index); - } - - /* - Check if the song is new. If so, change the song. - */ - if (Checks.newSong(null, index)) { - AudioNavigation.changeSong(config.songs[index], index); - } - - /* - Play the song - */ - Core.play(); - - /* - Sync all of the play pause buttons. - */ - PlayPauseElements.sync(); - } - - /** - * Plays a song at the index passed in for the playlist provided. The index passed - * in should be the index of the song in the playlist and not the songs array. - * - * @access public - * @param {number} index - The number representing the song in the playlist array. - * @param {string} playlist - The key string representing the playlist we are playing the song from. - * - */ - function playPlaylistSongAtIndex(index, playlist) { - Core.stop(); - - /* - Determine if there is a new playlist, if so set the active playlist and change the song. - */ - if (Checks.newPlaylist(playlist)) { - AudioNavigation.setActivePlaylist(playlist); - - AudioNavigation.changeSongPlaylist( - playlist, - config.playlists[playlist].songs[index], - index - ); - } - - /* - Check if the song is new. If so, change the song. - */ - if (Checks.newSong(playlist, index)) { - AudioNavigation.changeSongPlaylist( - playlist, - config.playlists[playlist].songs[index], - index - ); - } - - /* - Sync all of the play pause buttons. - */ - PlayPauseElements.sync(); - - /* - Play the song - */ - Core.play(); - } - - /** - * Allows the user to play whatever the active song is directly - * through Javascript. Normally ALL of Amplitude functions that access - * the core features are called through event handlers. - * - * Public Accessor: Amplitude.play(); - * - * @access public - */ - function play() { - Core.play(); - } - - /** - * Allows the user to pause whatever the active song is directly - * through Javascript. Normally ALL of Amplitude functions that access - * the core features are called through event handlers. - * - * Public Accessor: Amplitude.pause(); - * - * @access public - */ - function pause() { - Core.pause(); - } - - /** - * Allows the user to stop whatever the active song is directly - * through Javascript. - * - * Public Accessor: Amplitude.stop(); - * - * @access public - */ - function stop() { - Core.stop(); - } - - /** - * Returns the audio object used to play the audio - * - * Public Accessor: Amplitude.getAudio(); - * - * @access public - */ - function getAudio() { - return config.audio; - } - - /** - * Returns the Web Audio API ANalyser used for visualizations. - * - * Public Accessor: Amplitude.getAnalyser() - * - * @access public - */ - function getAnalyser() { - return config.analyser; - } - - /** - * Plays the next song either in the playlist or globally. - * - * Public Accessor: Amplitude.next( playlist ); - * - * @access public - * @param {string} [playlist = null - The playlist key - */ - function next(playlist = null) { - let nextData = {}; - /* - If the playlist is empty or null, then we check the active - playlist - */ - if (playlist == "" || playlist == null) { - /* - If the active playlist is null, then we set the next global - song or we set the next in the playlist. - */ - if (config.active_playlist == null || config.active_playlist == "") { - AudioNavigation.setNext(); - } else { - AudioNavigation.setNextPlaylist(config.active_playlist); - } - } else { - AudioNavigation.setNextPlaylist(playlist); - } - } - - /** - * Plays the prev song either in the playlist or globally. - * - * Public Accessor: Amplitude.prev( playlist ); - * - * @access public - * @param {string} [playlist = null] - The playlist key - */ - function prev(playlist = null) { - let prevData = {}; - - /* - If the playlist is empty or null, then we check the active - playlist - */ - if (playlist == "" || playlist == null) { - /* - If the active playlist is null, then we set the prev global - song or we set the prev in the playlist. - */ - if (config.active_playlist == null || config.active_playlist == "") { - AudioNavigation.setPrevious(); - } else { - AudioNavigation.setPreviousPlaylist(config.active_playlist); - } - } else { - AudioNavigation.setPreviousPlaylist(playlist); - } - } - - /** - * Gets all of the songs in the songs array - * - * Public Accessor: Amplitude.getSongs( ); - * - * @access public - */ - function getSongs() { - return config.songs; - } - - /** - * Gets all of the songs in a playlist - * - * Public Accessor: Amplitude.getSongsInPlaylist( playlist ); - * - * @access public - * @param {string} playlist - The playlist key - */ - function getSongsInPlaylist(playlist) { - return config.playlists[playlist].songs; - } - - /** - * Get current state of songs. If shuffled, this will return the shuffled - * songs. - * - * Public Accessor: Amplitude.getSongsState(); - * - * @access public - */ - function getSongsState() { - if (config.shuffle_on) { - return config.shuffle_list; - } else { - return config.songs; - } - } - - /** - * Get current state of songs in playlist. If shuffled, this will return the - * shuffled songs. - * - * Public Accessor: Amplitude.getSongsStatePlaylist( playlist ); - * - * @access public - * @param {string} playlist - The playlist key - */ - function getSongsStatePlaylist(playlist) { - if (config.playlists[playlist].shuffle) { - return config.playlists[playlist].shuffle_list; - } else { - return config.playlists[playlist].songs; - } - } - - /** - * Gets the active index of the player - * - * Public Accessor: Amplitude.getActiveIndex() - * - * @access public - */ - function getActiveIndex() { - return parseInt(config.active_index); - } - - /** - * Get the version of AmplitudeJS - * - * Public Accessor: Amplitude.getVersion() - * - * @access public - */ - function getVersion() { - return config.version; - } - - /** - * Get the buffered amount for the current song - * - * Public Accessor: Amplitude.getBuffered() - * - * @access public - */ - function getBuffered() { - return config.buffered; - } - - /** - * Skip to a certain location in a selected song. - * - * Public Accessor: Amplitude.getBuffered() - * - * @access public - * @param {number} seconds - The amount of seconds we should skip to in the song. - * @param {number} songIndex - The index of the song in the songs array. - * @param {string} [playlist = null] - The playlist the song we are skipping to belogns to. - */ - function skipTo(seconds, songIndex, playlist = null) { - seconds = parseInt(seconds); - - if (playlist != null) { - /* - Checks if we are skipping to a new playlist - */ - if (Checks.newPlaylist(playlist)) { - AudioNavigation.setActivePlaylist(playlist); - } - - /* - Changes the song to where it's being skipped and then - play the song. - */ - AudioNavigation.changeSongPlaylist( - playlist, - config.playlists[playlist].songs[songIndex], - songIndex - ); - Core.play(); - - /* - Sync all of the play pause elements. - */ - PlayPauseElements.syncGlobal(); - PlayPauseElements.syncPlaylist(); - PlayPauseElements.syncSong(); - - /* - Skip to the location in the song. - */ - Core.skipToLocation(seconds); - } else { - /* - Changes the song to where it's being skipped and then - play the song. - */ - AudioNavigation.changeSong(config.songs[songIndex], songIndex); - Core.play(); - - /* - Syncs all of the play pause buttons now that we've skipped. - */ - PlayPauseElements.syncGlobal(); - PlayPauseElements.syncSong(); - - /* - Skip to the location in the song. - */ - Core.skipToLocation(seconds); - } - } - - /** - * Sets the meta data for a song in the songs array. This will set any - * meta data for a song besides the URL. The URL could cause issues if the - * song was playing. - * - * Public Accessor: Amplitude.setSongMetaData() - * - * @access public - * @param {number} index - The index of the song in the songs array. - * @param {object} metaData - The object containing the meta data we are updating. - * @param {string} playlist - The playlist we are updating the song meta data for. - */ - function setSongMetaData(index, metaData, playlist = null) { - /* - Update the meta data for a song in a playlist. - */ - if ( - playlist != "" && - playlist != null && - config.playlists[playlist] != undefined - ) { - /* - Set all of the defined meta data properties - */ - for (var key in metaData) { - if (metaData.hasOwnProperty(key)) { - if (key != "url" && key != "URL" && key != "live" && key != "LIVE") { - config.playlists[playlist].songs[index][key] = metaData[key]; - } - } - } - } else { - /* - Update the meta data for a song. - */ - for (var key in metaData) { - if (metaData.hasOwnProperty(key)) { - if (key != "url" && key != "URL" && key != "live" && key != "LIVE") { - config.songs[index][key] = metaData[key]; - } - } - } - } - - /* - Display the updates on the screen. - */ - MetaDataElements.displayMetaData(); - MetaDataElements.syncMetaData(); - } - - function setPlaylistMetaData(playlist, metaData) { - if (config.playlists[playlist] != undefined) { - /* - These are the ignored keys that we won't be worrying about displaying. - Every other key in the playlist object can be displayed. - */ - let ignoredKeys = ["repeat", "shuffle", "shuffle_list", "songs", "src"]; - - for (var key in metaData) { - if (metaData.hasOwnProperty(key)) { - if (ignoredKeys.indexOf(key) < 0) { - config.playlists[playlist][key] = metaData[key]; - } - } - } - - MetaDataElements.displayPlaylistMetaData(); - } else { - Debug.writeMessage("You must provide a valid playlist key!"); - } - } - - /** - * Sets the delay between the songs when they are finished. - * - * Public Accessor: Amplitude.setDelay() - * - * @access public - * @param {number} delay - The millisecond delay time between songs - */ - function setDelay(time) { - config.delay = time; - } - - /** - * Returns the current delay between songs. - * - * Public Accessor: Amplitude.getDelay() - * - * @access public - */ - function getDelay() { - return config.delay; - } - - /** - * Returns the state of the player. - * - * Public Accessor: Amplitude.getPlayerState(); - */ - function getPlayerState() { - return config.player_state; - } - - /** - * Registers a visualization and sets that visualization's - * preferences. When creating a visualization, you can set certain - * preferences that the user can overwrite similar to Amplitude. - * Public Accessor: Amplitude.registerVisualization( visualization, preferences ) - * - * @param {object} visualzation A visualization object that gets registered - * with Amplitude - * - * @param {object} preferences A JSON object of preferences relating to the - * visualization - */ - function registerVisualization(visualization, preferences) { - Visualizations.register(visualization, preferences); - } - - /** - * Set the visualization for the playlist - * - * @param {string} playlist - The playlist we are setting the visualization for. - * @param {string} visualizationKey - The key of the visualization we are adding to the playlist. - */ - function setPlaylistVisualization(playlist, visualizationKey) { - if (config.playlists[playlist] != undefined) { - if (config.visualizations.available[visualizationKey] != undefined) { - config.playlists[playlist].visualization = visualizationKey; - } else { - Debug.writeMessage( - "A visualization does not exist for the key provided." - ); - } - } else { - Debug.writeMessage("The playlist for the key provided does not exist"); - } - } - - /** - * Set a visualization for the song. - * - * @param {number} songIndex - The index of the song in the songs array we are setting the visualization for. - * @param {string} visualizationKey - The key of the visualization we are adding to the playlist. - */ - function setSongVisualization(songIndex, visualizationKey) { - if (config.songs[songIndex]) { - if (config.visualizations.available[visualizationKey] != undefined) { - config.songs[songIndex].visualization = visualizationKey; - } else { - Debug.writeMessage( - "A visualization does not exist for the key provided." - ); - } - } else { - Debug.writeMessage("A song at that index is undefined"); - } - } - - /** - * Set song in playlist visualization. - * - * @param {string} playlist - The playlist we are setting the song visualization for. - * @param {number} songIndex - The index we are setting the visualization for. - * @param {strong} visualizationKey - The key of the visualization we are adding to the song in the playlist. - */ - function setSongInPlaylistVisualization( - playlist, - songIndex, - visualizationKey - ) { - if (config.playlists[playlist].songs[songIndex] != undefined) { - if (config.visualizations.available[visualizationKey] != undefined) { - config.playlists[playlist].songs[ - songIndex - ].visualization = visualizationKey; - } else { - Debug.writeMessage( - "A visualization does not exist for the key provided." - ); - } - } else { - Debug.writeMessage("The song in the playlist at that key is not defined"); - } - } - - /** - * Sets the global visualization default. - */ - function setGlobalVisualization(visualizationKey) { - if (config.visualizations.available[visualizationKey] != undefined) { - config.visualization = visualizationKey; - } else { - Debug.writeMessage( - "A visualization does not exist for the key provided." - ); - } - } - - /** - * Sets the active volume. - * @param {number} volumeLevel - A number between 1 and 100 as a percentage of - * min to max for a volume level. - */ - function setVolume(volumeLevel) { - Core.setVolume(volumeLevel); - } - - /** - * Gets the active volume. - */ - function getVolume() { - return config.volume; - } - - /* - Returns all of the publically accesible methods. - */ - return { - init: init, - getConfig: getConfig, - bindNewElements: bindNewElements, - getActivePlaylist: getActivePlaylist, - getPlaybackSpeed: getPlaybackSpeed, - setPlaybackSpeed: setPlaybackSpeed, - getRepeat: getRepeat, - getRepeatPlaylist: getRepeatPlaylist, - getShuffle: getShuffle, - getShufflePlaylist: getShufflePlaylist, - setShuffle: setShuffle, - setShufflePlaylist: setShufflePlaylist, - setRepeat: setRepeat, - setRepeatSong: setRepeatSong, - setRepeatPlaylist: setRepeatPlaylist, - getDefaultAlbumArt: getDefaultAlbumArt, - setDefaultAlbumArt: setDefaultAlbumArt, - getDefaultPlaylistArt: getDefaultPlaylistArt, - setDefaultPlaylistArt: setDefaultPlaylistArt, - getSongPlayedPercentage: getSongPlayedPercentage, - setSongPlayedPercentage: setSongPlayedPercentage, - getSongPlayedSeconds: getSongPlayedSeconds, - getSongDuration: getSongDuration, - setDebug: setDebug, - getActiveSongMetadata: getActiveSongMetadata, - getActivePlaylistMetadata: getActivePlaylistMetadata, - getSongAtIndex: getSongAtIndex, - getSongAtPlaylistIndex: getSongAtPlaylistIndex, - addSong: addSong, - prependSong: prependSong, - addSongToPlaylist: addSongToPlaylist, - removeSong: removeSong, - removeSongFromPlaylist: removeSongFromPlaylist, - playNow: playNow, - playSongAtIndex: playSongAtIndex, - playPlaylistSongAtIndex: playPlaylistSongAtIndex, - play: play, - pause: pause, - stop: stop, - getAudio: getAudio, - getAnalyser: getAnalyser, - next: next, - prev: prev, - getSongs: getSongs, - getSongsInPlaylist: getSongsInPlaylist, - getSongsState: getSongsState, - getSongsStatePlaylist: getSongsStatePlaylist, - getActiveIndex: getActiveIndex, - getVersion: getVersion, - getBuffered: getBuffered, - skipTo: skipTo, - setSongMetaData: setSongMetaData, - setPlaylistMetaData: setPlaylistMetaData, - setDelay: setDelay, - getDelay: getDelay, - getPlayerState: getPlayerState, - addPlaylist: addPlaylist, - registerVisualization: registerVisualization, - setPlaylistVisualization: setPlaylistVisualization, - setSongVisualization: setSongVisualization, - setSongInPlaylistVisualization: setSongInPlaylistVisualization, - setGlobalVisualization: setGlobalVisualization, - getVolume: getVolume, - setVolume: setVolume - }; })(); -export default Amplitude; +export default Amplitude; \ No newline at end of file diff --git a/src/init/Audio.js b/src/init/Audio.js new file mode 100644 index 00000000..4936d01d --- /dev/null +++ b/src/init/Audio.js @@ -0,0 +1,126 @@ +import { config } from "../config"; +import { Checks as AudioChecks } from "@/services/Audio/Checks"; +import { Checks as CollectionChecks } from "@/services/Collections/Checks"; +import { ConfigState } from "@/services/ConfigState"; +import { Debug } from "@/services/Debug"; +import { Navigation as AudioNavigation } from "@/services/Audio/Navigation"; +import { Navigation as CollectionNavigation } from "@/services/Collections/Navigation"; + +export class Audio{ + #state; + + initializeAudio(){ + if( this.#userDefinedStartingAudio() ){ + this.#setStartingCollection(); + this.#setStartingAudio(); + }else{ + this.#determineInitialPlayerState(); + this.#determineStartingAudioFile(); + } + } + + /** + * Determines if the user defined starting audio meaning + * they provided a starting audio index or starting collection key + */ + #userDefinedStartingAudio(){ + if( config.starting.audio_index != '' || config.starting.collection_key != '' ){ + return true; + }else{ + return false; + } + } + + /** + * If the user defined a starting collection, we set that here, + * otherwise we do nothing and try to set a starting audio. + */ + #setStartingCollection(){ + let collectionKey = ConfigState.getStartingCollectionKey(); + + if( CollectionChecks.collectionExists( collectionKey ) ){ + let collectionAudioIndex = ConfigState.getStartingCollectionAudioIndex(); + + this.#setCollectionAudioFile( collectionKey, collectionAudioIndex ); + }else{ + Debug.writeMessage( 'Starting collection with index "'+collectionKey+'" does not exist!'); + } + } + + /** + * If the user did not define a starting collection, they must have defined + * a starting audio file. We set that here. + */ + #setStartingAudio(){ + if( config.starting_collection_index == '' ){ + let audioIndex = config.starting.audio_index; + + if( AudioChecks.audioExists( audioIndex ) ){ + this.#setAudioFile( audioIndex ); + }else{ + Debug.writeMessage( 'Starting audio with index "'+audioIndex+'" does not exist!'); + } + } + } + + #determineInitialPlayerState(){ + if( config.collections.length == 0 && config.audio.length > 0 ){ + this.#state = 'audio'; + } + + if( config.collections.length > 0 && config.audio.length == 0 ){ + this.#state = 'collections'; + } + + if( config.collections.length > 0 && config.audio.length > 0 ){ + this.#state = 'audio-and-collections'; + } + + if( config.collections.length == 0 && config.audio.length == 0 ){ + this.#state = 'empty'; + } + } + + /** + * @todo Ensure starting selections are recognized + */ + #determineStartingAudioFile(){ + switch( this.#state ){ + case 'audio': + let startingAudio = config.starting.audio_index != null ? config.starting.audio_index : 0; + this.#setAudioFile( startingAudio ); + break; + case 'collections': + this.#setCollectionAudioFile( 0, 0 ); + break; + case 'audio-and-collections': + if( config.starting.audio_index == null && config.starting.collection_key == '' ){ + Debug.writeMessage('AmplitudeJS has been initialized with both audio and collections. Please define a starting audio file or starting collection and audio file.'); + }else{ + if( config.starting.audio_index != null ){ + this.#setAudioFile( config.starting.audio_index ); + } + + if( config.starting.collection_key != '' ){ + let collectionIndex = ConfigState.getCollectionIntegerIndex( config.starting.collection_key ); + } + } + break; + case 'empty': + // Set defaults (like album art, etc) + break; + } + } + + #setAudioFile( audioIndex ){ + let audioNavigator = new AudioNavigation(); + audioNavigator.changeAudio( config.audio[ audioIndex ], audioIndex ); + } + + #setCollectionAudioFile( collectionIndex, audioIndex ){ + let collectionNavigator = new CollectionNavigation(); + collectionNavigator.changeCollectionAudio( collectionIndex, config.collections[ collectionIndex ].audio[ audioIndex ], audioIndex ); + } +} + + \ No newline at end of file diff --git a/src/init/Collections.js b/src/init/Collections.js new file mode 100644 index 00000000..97bb2101 --- /dev/null +++ b/src/init/Collections.js @@ -0,0 +1,97 @@ +import { config } from '@/config.js'; + +export class Collections{ + constructor(){ + + } + + initializeCollections(){ + if( config.collections.length > 0 ){ + this.#syncSoundCloudData(); + this.#setActiveIndexes(); + this.#initializeShuffle(); + this.#initializeRepeat(); + this.#setDefaultArt(); + } + } + + /** + * @todo Implement Sound Cloud + */ + #syncSoundCloudData(){ + // /* + // Iterate over all of the config's playlists + // */ + // for (let key in config.playlists) { + // /* + // Checks if the playlist key is accurate. + // */ + // if (config.playlists.hasOwnProperty(key)) { + // /* + // Checks if the playlist has songs. + // */ + // if (config.playlists[key].songs) { + // /* + // Iterate over all of the songs in the playlist + // */ + // for (let i = 0; i < config.playlists[key].songs.length; i++) { + // if (Checks.isInt(config.playlists[key].songs[i])) { + // config.playlists[key].songs[i] = + // config.songs[config.playlists[key].songs[i]]; + + // config.playlists[key].songs[i].index = i; + // } + // /* + // Check to see if the index for the song in the playlist + // exists in the songs config. + // */ + // if ( + // Checks.isInt(config.playlists[key].songs[i]) && + // !config.songs[config.playlists[key].songs[i]] + // ) { + // Debug.writeMessage( + // "The song index: " + + // config.playlists[key].songs[i] + + // " in playlist with key: " + + // key + + // " is not defined in your songs array!" + // ); + // } + + // /* + // If not an int, then is a dedicated song, just set the index. + // */ + // if (!Checks.isInt(config.playlists[key].songs[i]) ){ + // config.playlists[key].songs[i].index = i; + // } + // } + // } + // } + // } + } + + #setActiveIndexes(){ + config.collections.forEach( ( collection ) => { + collection.active_index = null; + } ); + } + + #initializeShuffle(){ + config.collections.forEach( ( collection ) => { + collection.shuffled = false; + collection.shuffle_list = []; + } ); + } + + #initializeRepeat(){ + config.collections.forEach( ( collection ) => { + collection.repeat = false; + } ); + } + + #setDefaultArt(){ + config.collections.forEach( ( collection ) => { + collection.default_art = collection.default_art ? collection.default_art : config.default_collection_art; + } ); + } +} \ No newline at end of file diff --git a/src/init/Elements.js b/src/init/Elements.js new file mode 100644 index 00000000..03376316 --- /dev/null +++ b/src/init/Elements.js @@ -0,0 +1,131 @@ +import { NextElement } from "@/elements/NextElement"; +import { MetaDataElement } from "@/elements/MetaDataElement"; +import { MuteElement } from "@/elements/MuteElement"; +import { PauseElement } from "@/elements/PauseElement"; +import { PlayElement } from "@/elements/PlayElement"; +import { PlaybackSpeedElement } from "@/elements/PlaybackSpeedElement"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; +import { PreviousElement } from "@/elements/PreviousElement"; +import { ShuffleElement } from "@/elements/ShuffleElement"; +import { SkipToElement } from "@/elements/SkipToElement"; +import { StopElement } from "@/elements/StopElement"; +import { TrackerElement } from "@/elements/TrackerElement"; +import { VolumeDownElement } from "@/elements/VolumeDownElement"; +import { VolumeSliderElement } from "@/elements/VolumeSliderElement"; +import { VolumeUpElement } from "@/elements/VolumeUpElement"; + +export class Elements{ + initializeElements(){ + this.#initializeMetaData(); + this.#initializePlayElement(); + this.#initializePauseElement(); + this.#initializePlayPauseElement(); + this.#initializeNextElement(); + this.#initializePreviousElement(); + this.#initializeMuteElement(); + this.#initializeVolumeSliderElement(); + this.#initializePlaybackSpeedElement(); + this.#initializeStopElement(); + this.#initializeVolumeDownElement(); + this.#initializeVolumeUpElement(); + this.#initializeShuffleElement(); + this.#initializeSkipToElement(); + this.#initializeTrackerElement(); + this.#initializeCollectionRepeatElement(); + this.#initializeAudioRepeatElement(); + } + + #initializeMetaData(){ + let metaDataElement = new MetaDataElement(); + metaDataElement.syncMetaData(); + metaDataElement.syncInitialCollectionAudioData(); + } + + #initializePlayElement(){ + let playElement = new PlayElement(); + playElement.setUp(); + } + + #initializePauseElement(){ + let pauseElement = new PauseElement(); + pauseElement.setUp(); + } + + #initializePlayPauseElement(){ + let playPauseElement = new PlayPauseElement(); + playPauseElement.setUp(); + + PlayPauseElement.syncAll(); + } + + #initializeNextElement(){ + let nextElement = new NextElement(); + nextElement.setUp(); + } + + #initializePreviousElement(){ + let previousElement = new PreviousElement(); + previousElement.setUp(); + } + + #initializeMuteElement(){ + let muteElement = new MuteElement(); + muteElement.setUp(); + + MuteElement.syncElements(); + } + + #initializeVolumeSliderElement(){ + let volumeSliderElement = new VolumeSliderElement(); + volumeSliderElement.setUp(); + + VolumeSliderElement.syncElements(); + } + + #initializePlaybackSpeedElement(){ + let playbackSpeedElement = new PlaybackSpeedElement(); + playbackSpeedElement.setUp(); + + PlaybackSpeedElement.syncElements(); + } + + #initializeStopElement(){ + let stopElement = new StopElement(); + stopElement.setUp(); + } + + #initializeVolumeDownElement(){ + let volumeDownElement = new VolumeDownElement(); + volumeDownElement.setUp(); + } + + #initializeVolumeUpElement(){ + let volumeUpElement = new VolumeUpElement(); + volumeUpElement.setUp(); + } + + #initializeShuffleElement(){ + let shuffleElement = new ShuffleElement(); + shuffleElement.setUp(); + + ShuffleElement.syncAll(); + } + + #initializeSkipToElement(){ + let skipToElement = new SkipToElement(); + skipToElement.setUp(); + } + + #initializeTrackerElement(){ + let trackerElement = new TrackerElement(); + trackerElement.setUp(); + } + + #initializeCollectionRepeatElement(){ + + } + + #initializeAudioRepeatElement(){ + + } +} \ No newline at end of file diff --git a/src/init/Events.js b/src/init/Events.js new file mode 100644 index 00000000..bac5b349 --- /dev/null +++ b/src/init/Events.js @@ -0,0 +1,55 @@ +import { ProgressEvent } from "@/events/ProgressEvent"; +import { AudioEndedEvent } from "@/events/AudioEndedEvent"; +import { KeyBindingEvents } from "@/events/KeyBindingEvents"; +import { TimeUpdateEvent } from "@/events/TimeUpdateEvent"; +import { Debug } from "@/services/Debug"; +import { config } from "@/config.js"; + +export class Events{ + initializeAllEvents(){ + Debug.writeMessage("Starting initialization of event handlers..."); + + this.#bindTouchEvents(); + this.#bindTimeUpdateEvents(); + this.#bindKeyBindingEvents(); + this.#bindAudioEndedEvent(); + this.#bindProgressEvent(); + this.#bindAudioElementEventCallbacks(); + } + + #bindTouchEvents(){ + document.addEventListener("touchmove", () => { + config.is_touch_moving = true; + }); + + document.addEventListener("touchend", () => { + if( !config.is_touch_moving ){ + config.is_touch_moving = false; + } + }) + } + + #bindTimeUpdateEvents(){ + let timeUpdateEvent = new TimeUpdateEvent(); + timeUpdateEvent.bind(); + } + + #bindKeyBindingEvents(){ + let keyBindingEvents = new KeyBindingEvents(); + keyBindingEvents.bind(); + } + + #bindAudioEndedEvent(){ + let audioEndedEvent = new AudioEndedEvent(); + audioEndedEvent.bind(); + } + + #bindProgressEvent(){ + let progressEvent = new ProgressEvent(); + progressEvent.bind(); + } + + #bindAudioElementEventCallbacks(){ + + } +} \ No newline at end of file diff --git a/src/init/Initializer.js b/src/init/Initializer.js new file mode 100644 index 00000000..25697454 --- /dev/null +++ b/src/init/Initializer.js @@ -0,0 +1,186 @@ +import { Audio } from "@/init/Audio"; +import { Collections } from "@/init/Collections"; +import { Debug } from "@/services/Debug"; +import { ConfigState } from "@/services/ConfigState"; +import { Elements } from "@/init/Elements.js"; +import { Events } from "@/init/Events.js"; +import { UserConfig } from "@/init/UserConfig"; +import { config } from "../config"; +import { Callbacks } from "@/services/Callbacks"; + +export class Initializer{ + #element; + #userConfig; + #configState; + #ready = false; + + constructor( userConfig, element ){ + this.#userConfig = userConfig; + this.#element = element; + } + + setup(){ + this.#setMobile(); + + if( this.#isValidUrl( this.#userConfig ) ){ + this.#loadUserConfig(); + }else{ + this.#prepareAmplitude(); + } + } + + #setMobile(){ + this.#configState = new ConfigState(); + this.#configState.setIsMobile(); + } + + #isValidUrl(url){ + try { + new URL(url); + } catch (e) { + return false; + } + + return true; + } + + #loadUserConfig(){ + fetch( this.#userConfig ) + .then( ( response ) => { + if( response.status != 200 ){ + throw response.status; + }else{ + return response.json(); + } + }) + .then( ( data ) => { + this.#userConfig = data; + this.#prepareAmplitude(); + }) + .catch( ( error ) => { + Debug.writeMessage( error ); + }) + } + + #prepareAmplitude(){ + this.#resetConfig(); + this.#copyUserConfig(); + this.#initializeFx(); + this.#initializeCollections(); + this.#initializeAudio(); + this.#initializeEvents(); + this.#initializeElements(); + this.#initializeCallbacks(); + } + + // Ensure we have a blank slate on initialization. + #resetConfig(){ + this.#configState.resetConfig(); + } + + #copyUserConfig(){ + let userConfigInit = new UserConfig(); + userConfigInit.copyUserSettings( this.#userConfig ); + userConfigInit.applyConfig(); + } + + #initializeFx(){ + /** + * @todo Below is the old initialization for Fx + * We need to improve this and make it more effective and up-to-date + */ + // if (Fx.webAudioAPIAvailable()) { + // if (Fx.determineUsingAnyFX()) { + // /* + // Configure the Web Audio API If It's available. + // */ + // Fx.configureWebAudioAPI(); + + // /* + // Activates the audio context after an event for the user. + // */ + // document.documentElement.addEventListener("mousedown", function() { + // if (config.context.state !== "running") { + // config.context.resume(); + // } + // }); + + // document.documentElement.addEventListener("keydown", function() { + // if (config.context.state !== "running") { + // config.context.resume(); + // } + // }); + + // document.documentElement.addEventListener("keyup", function() { + // if (config.context.state !== "running") { + // config.context.resume(); + // } + // }); + + // /* + // Set the user waveform settings if provided. + // */ + // if ( + // userConfig.waveforms != undefined && + // userConfig.waveforms.sample_rate != undefined + // ) { + // config.waveforms.sample_rate = userConfig.waveforms.sample_rate; + // } + + // /* + // Initialize the waveform. + // */ + // WaveForm.init(); + + // /* + // If the user is registering visualizations on init, + // we set them right away. + // */ + // if ( + // userConfig.visualizations != undefined && + // userConfig.visualizations.length > 0 + // ) { + // /* + // Iterate over all of the visualizations and + // register them in our player. + // */ + // for (let i = 0; i < userConfig.visualizations.length; i++) { + // Visualizations.register( + // userConfig.visualizations[i].object, + // userConfig.visualizations[i].params + // ); + // } + // } + // } + // } else { + // Debug.writeMessage( + // "The Web Audio API is not available on this platform. We are using your defined backups!" + // ); + // } + } + + #initializeCollections(){ + let collections = new Collections(); + collections.initializeCollections(); + } + + #initializeAudio(){ + let audio = new Audio(); + audio.initializeAudio(); + } + + #initializeEvents(){ + let events = new Events(); + events.initializeAllEvents(); + } + + #initializeElements(){ + let elements = new Elements(); + elements.initializeElements(); + } + + #initializeCallbacks(){ + let callbacks = new Callbacks(); + callbacks.handleNativeAudioElementEvents(); + } +} \ No newline at end of file diff --git a/src/init/UserConfig.js b/src/init/UserConfig.js new file mode 100644 index 00000000..23285d00 --- /dev/null +++ b/src/init/UserConfig.js @@ -0,0 +1,111 @@ +import { config } from '@/config.js'; +import { Audio } from '@/core/Audio'; +import { Debug } from '@/services/Debug'; +import { PlaybackSpeedElement } from '@/elements/PlaybackSpeedElement'; +import { VolumeSliderElement } from '@/elements/VolumeSliderElement'; + +export class UserConfig { + copyUserSettings( userConfig ){ + this.setAudio( userConfig.audio ); + this.setCollections( userConfig.collections ); + this.setVolume( userConfig.volume ); + this.setDebug( userConfig.debug ); + this.setDefaultArtwork( userConfig.art ); + this.setPlaybackSpeed( userConfig.playback_speed ); + this.setCallbacks( userConfig.callbacks ); + this.setDelay( userConfig.delay ); + this.setStarting( userConfig.starting ); + this.setContinueNext( userConfig.continue_next ); + this.setPreload( userConfig.preload ); + this.setKeyBindings( userConfig.key_bindings ); + } + + setAudio( value ){ + config.audio = value != undefined ? value : []; + + this.#setDefaultLiveSettings(); + this.#setDefaultAudioIndices(); + } + + #setDefaultLiveSettings(){ + config.audio.forEach( ( audio, index ) => { + if( audio.live == undefined ){ + audio.live = false; + } + }); + } + + #setDefaultAudioIndices(){ + config.audio.forEach( ( audio, index ) => { + audio.index = index; + }); + } + + setCollections( userCollections ){ + config.collections = userCollections; + } + + setVolume( volume ){ + config.volume.current = volume && volume.default ? volume.default : 50; + config.volume.increment = volume && volume.increment ? volume.increment : 5; + config.volume.decrement = volume && volume.decrement ? volume.decrement : 5; + } + + setDebug( value ){ + config.debug = value != undefined ? value : false; + } + + setDefaultArtwork( value ){ + config.art.default_audio_art = value && value.default_audio_art ? value.default_audio_art : ''; + config.art.default_collection_art = value && value.default_collection_art ? value.default_collection_art : ''; + } + + setPlaybackSpeed( speed ){ + config.playback_speed = speed != undefined ? speed : 1.0; + } + + setCallbacks( callbacks ){ + config.callbacks = callbacks != undefined ? callbacks : []; + } + + setDelay( delay ){ + config.delay = delay != undefined ? delay : 0; + } + + setStarting( starting ){ + config.starting.audio_index = starting && starting.audio_index != undefined ? parseInt( starting.audio_index ) : ''; + config.starting.collection_key = starting && starting.collection_key ? starting.collection_key : ''; + config.starting.collection_audio_index = starting && starting.collection_audio_index ? starting.collection_audio_index : ''; + config.starting.collection_shuffled = starting && starting.collection_shuffled ? starting.collection_shuffled : false; + } + + setContinueNext( continueNext ){ + config.continue_next = continueNext != undefined ? continueNext : true; + } + + setPreload( preload ){ + config.audio.preload = preload != undefined ? preload : "auto"; + } + + setKeyBindings( keyBindings ){ + config.key_bindings = keyBindings != undefined ? keyBindings : {}; + } + + applyConfig(){ + this.#applyPlaybackSpeed(); + this.#applyVolume(); + + Debug.writeMessage("Initialized With: "); + Debug.writeMessage(config); + } + + #applyPlaybackSpeed(){ + let audio = new Audio(); + audio.setPlaybackSpeed( config.playback_speed ); + } + + #applyVolume(){ + let audio = new Audio(); + audio.setVolume( config.volume.current ); + } +} \ No newline at end of file diff --git a/src/init/init.js b/src/init/init.js index f75928db..5802054a 100644 --- a/src/init/init.js +++ b/src/init/init.js @@ -2,7 +2,7 @@ * Imports the config module * @module config */ -import config from "../config.js"; +import { config } from "@/config.js"; /** * AmplitudeJS Core Module @@ -16,14 +16,14 @@ import Core from "../core/core.js"; */ import SoundCloud from "../soundcloud/soundcloud.js"; -/** - * Imports the utilities used by the main module. - */ -/** - * AmplitudeJS Config State Module - * @module utilities/ConfigState - */ -import ConfigState from "../utilities/configState.js"; +// /** +// * Imports the utilities used by the main module. +// */ +// /** +// * AmplitudeJS Config State Module +// * @module utilities/ConfigState +// */ +// import ConfigState from "../utilities/configState.js"; /** * AmplitudeJS Debug Module @@ -140,154 +140,178 @@ import RepeatElements from "../visual/repeatElements.js"; * @module init/Initializer */ let Initializer = (function() { - /** - * The main init function. The user will call this through - * Amplitude.init({}) and pass in their settings. - * - * Public Accessor: Amplitude.init( user_config_json ) - * @access public - * @param {object} userConfig - A JSON object of user defined values that help configure and initialize AmplitudeJS. - */ - function initialize(userConfig) { - let ready = false; - - /* - Reset the config on init so we have a clean slate. This is if the - user has to re-init. - */ - ConfigState.resetConfig(); + // /** + // * The main init function. The user will call this through + // * Amplitude.init({}) and pass in their settings. + // * + // * Public Accessor: Amplitude.init( user_config_json ) + // * @access public + // * @param {object|url} userConfig - A JSON object of user defined values that help configure and initialize AmplitudeJS. + // */ + // function initialize(userConfig) { + // if( typeof userConfig == 'string' ){ + // loadUserConfig(userConfig); + // }else{ + // setUserConfig( userConfig ); + // } + // } + + // function loadUserConfig(userConfig){ + // fetch(userConfig).then( function( response ){ + // if( response.status != 200 ){ + // throw response.status; + // }else{ + // return response.json(); + // } + // }.bind(this)) + // .then( function( data ){ + // setUserConfig(data); + // }.bind(this)) + // .catch( function( error ){ + // Debug.writeMessage(error); + // }.bind(this)); + // } + + function setUserConfig( userConfig ) { + // let ready = false; + + // /* + // Reset the config on init so we have a clean slate. This is if the + // user has to re-init. + // */ + // ConfigState.resetConfig(); /* Initialize event handlers on init. This will clear any old event handlers on the amplitude element and re-bind what is necessary. */ - Events.initialize(); + // Events.initialize(); /* Initialize the callbacks we listen to for the audio object. */ - Callbacks.initialize(); + // Callbacks.initialize(); - /* - Initializes debugging right away so we can use it for the rest - of the configuration. - */ - config.debug = userConfig.debug != undefined ? userConfig.debug : false; + // /* + // Initializes debugging right away so we can use it for the rest + // of the configuration. + // */ + // config.debug = userConfig.debug != undefined ? userConfig.debug : false; - /* - Set default artwork, if specified. - */ - setArt(userConfig); + // /* + // Set default artwork, if specified. + // */ + // setArt(userConfig); /* Checks to see if the user has songs defined. */ - if (userConfig.songs) { - /* - Checks to see if the user has some songs in the songs array. - */ - if (userConfig.songs.length != 0) { - /* - Copies over the user defined songs. and prepares - Amplitude for the rest of the configuration. - */ - config.songs = userConfig.songs; - /* - Flag amplitude as ready. - */ - ready = true; - } else { - Debug.writeMessage("Please add some songs, to your songs object!"); - } - } else { - Debug.writeMessage( - "Please provide a songs object for AmplitudeJS to run!" - ); - } + // if (userConfig.songs) { + // /* + // Checks to see if the user has some songs in the songs array. + // */ + // if (userConfig.songs.length != 0) { + // /* + // Copies over the user defined songs. and prepares + // Amplitude for the rest of the configuration. + // */ + // config.songs = userConfig.songs; + // /* + // Flag amplitude as ready. + // */ + // ready = true; + // } else { + // Debug.writeMessage("Please add some songs, to your songs object!"); + // } + // } else { + // Debug.writeMessage( + // "Please provide a songs object for AmplitudeJS to run!" + // ); + // } /* Initializes the audio context. In this method it checks to see if the user wants to use visualizations or not before proceeding. */ - if (Fx.webAudioAPIAvailable()) { - if (Fx.determineUsingAnyFX()) { - /* - Configure the Web Audio API If It's available. - */ - Fx.configureWebAudioAPI(); - - /* - Activates the audio context after an event for the user. - */ - document.documentElement.addEventListener("mousedown", function() { - if (config.context.state !== "running") { - config.context.resume(); - } - }); - - document.documentElement.addEventListener("keydown", function() { - if (config.context.state !== "running") { - config.context.resume(); - } - }); - - document.documentElement.addEventListener("keyup", function() { - if (config.context.state !== "running") { - config.context.resume(); - } - }); - - /* - Set the user waveform settings if provided. - */ - if ( - userConfig.waveforms != undefined && - userConfig.waveforms.sample_rate != undefined - ) { - config.waveforms.sample_rate = userConfig.waveforms.sample_rate; - } - - /* - Initialize the waveform. - */ - WaveForm.init(); - - /* - If the user is registering visualizations on init, - we set them right away. - */ - if ( - userConfig.visualizations != undefined && - userConfig.visualizations.length > 0 - ) { - /* - Iterate over all of the visualizations and - register them in our player. - */ - for (let i = 0; i < userConfig.visualizations.length; i++) { - Visualizations.register( - userConfig.visualizations[i].object, - userConfig.visualizations[i].params - ); - } - } - } - } else { - Debug.writeMessage( - "The Web Audio API is not available on this platform. We are using your defined backups!" - ); - } - - /* - Initialize default live settings - */ - initializeDefaultLiveSettings(); - - /* - Initialize default song indexes - */ - initializeDefaultSongIndexes(); + // if (Fx.webAudioAPIAvailable()) { + // if (Fx.determineUsingAnyFX()) { + // /* + // Configure the Web Audio API If It's available. + // */ + // Fx.configureWebAudioAPI(); + + // /* + // Activates the audio context after an event for the user. + // */ + // document.documentElement.addEventListener("mousedown", function() { + // if (config.context.state !== "running") { + // config.context.resume(); + // } + // }); + + // document.documentElement.addEventListener("keydown", function() { + // if (config.context.state !== "running") { + // config.context.resume(); + // } + // }); + + // document.documentElement.addEventListener("keyup", function() { + // if (config.context.state !== "running") { + // config.context.resume(); + // } + // }); + + // /* + // Set the user waveform settings if provided. + // */ + // if ( + // userConfig.waveforms != undefined && + // userConfig.waveforms.sample_rate != undefined + // ) { + // config.waveforms.sample_rate = userConfig.waveforms.sample_rate; + // } + + // /* + // Initialize the waveform. + // */ + // WaveForm.init(); + + // /* + // If the user is registering visualizations on init, + // we set them right away. + // */ + // if ( + // userConfig.visualizations != undefined && + // userConfig.visualizations.length > 0 + // ) { + // /* + // Iterate over all of the visualizations and + // register them in our player. + // */ + // for (let i = 0; i < userConfig.visualizations.length; i++) { + // Visualizations.register( + // userConfig.visualizations[i].object, + // userConfig.visualizations[i].params + // ); + // } + // } + // } + // } else { + // Debug.writeMessage( + // "The Web Audio API is not available on this platform. We are using your defined backups!" + // ); + // } + + // /* + // Initialize default live settings + // */ + // initializeDefaultLiveSettings(); + + // /* + // Initialize default song indexes + // */ + // initializeDefaultSongIndexes(); /* When the preliminary config is ready, we are ready to proceed. @@ -339,11 +363,11 @@ let Initializer = (function() { } } - /* - Debug out what was initialized with AmplitudeJS. - */ - Debug.writeMessage("Initialized With: "); - Debug.writeMessage(config); + // /* + // Debug out what was initialized with AmplitudeJS. + // */ + // Debug.writeMessage("Initialized With: "); + // Debug.writeMessage(config); } /** @@ -378,30 +402,30 @@ let Initializer = (function() { Checks if the user has any playlists defined. If they do we have to initialize the functionality for the playlists. */ - if (userConfig.playlists && countPlaylists(userConfig.playlists) > 0) { - PlaylistsInitializer.initialize(userConfig.playlists); - } + // if (userConfig.playlists && countPlaylists(userConfig.playlists) > 0) { + // PlaylistsInitializer.initialize(userConfig.playlists); + // } /* Check to see if the user entered a start song */ - if (userConfig.start_song != undefined && !userConfig.starting_playlist) { - /* - Ensure what has been entered is an integer. - */ - if (Checks.isInt(userConfig.start_song)) { - AudioNavigation.changeSong( - config.songs[userConfig.start_song], - userConfig.start_song - ); - } else { - Debug.writeMessage( - "You must enter an integer index for the start song." - ); - } - } else { - AudioNavigation.changeSong(config.songs[0], 0); - } + // if (userConfig.start_song != undefined && !userConfig.starting_playlist) { + // /* + // Ensure what has been entered is an integer. + // */ + // if (Checks.isInt(userConfig.start_song)) { + // AudioNavigation.changeSong( + // config.songs[userConfig.start_song], + // userConfig.start_song + // ); + // } else { + // Debug.writeMessage( + // "You must enter an integer index for the start song." + // ); + // } + // } else { + // AudioNavigation.changeSong(config.songs[0], 0); + // } /* If the shuffle is on by default, shuffle the songs and @@ -419,84 +443,84 @@ let Initializer = (function() { when the current song finishes or not. In any scenario that's not a playlist, contining to the next song may not be desired. */ - config.continue_next = - userConfig.continue_next != undefined ? userConfig.continue_next : true; + // config.continue_next = + // userConfig.continue_next != undefined ? userConfig.continue_next : true; - /* - If the user defined a playback speed, we copy over their - preference here, otherwise we default to normal playback - speed of 1.0. - */ - config.playback_speed = - userConfig.playback_speed != undefined ? userConfig.playback_speed : 1.0; + // /* + // If the user defined a playback speed, we copy over their + // preference here, otherwise we default to normal playback + // speed of 1.0. + // */ + // config.playback_speed = + // userConfig.playback_speed != undefined ? userConfig.playback_speed : 1.0; - /* - Sets the audio playback speed. - */ - Core.setPlaybackSpeed(config.playback_speed); + // /* + // Sets the audio playback speed. + // */ + // Core.setPlaybackSpeed(config.playback_speed); /* If the user wants the song to be pre-loaded for instant playback, they set it to true. By default it's set to just load the metadata. */ - config.audio.preload = - userConfig.preload != undefined ? userConfig.preload : "auto"; + // config.audio.preload = + // userConfig.preload != undefined ? userConfig.preload : "auto"; - /* - Initializes the user defined callbacks. This should be a JSON - object that contains a key->value store of the callback name - and the name of the function the user needs to call. - */ - config.callbacks = - userConfig.callbacks != undefined ? userConfig.callbacks : {}; + // /* + // Initializes the user defined callbacks. This should be a JSON + // object that contains a key->value store of the callback name + // and the name of the function the user needs to call. + // */ + // config.callbacks = + // userConfig.callbacks != undefined ? userConfig.callbacks : {}; /* Initializes the user defined key bindings. This should be a JSON object that contains a key->value store of the key event number pressed and the method to be run. */ - config.bindings = - userConfig.bindings != undefined ? userConfig.bindings : {}; - - /* - The user can define a starting volume in a range of 0-100 with - 0 being muted and 100 being the loudest. After the config is set - Amplitude sets the active song's volume to the volume defined - by the user. - */ - config.volume = userConfig.volume != undefined ? userConfig.volume : 50; - - /* - Sets the delay between songs if the user has it set. This should be in MS. - */ - config.delay = userConfig.delay != undefined ? userConfig.delay : 0; - - /* - The user can set the volume increment and decrement values between 1 and 100 - for when the volume up or down button is pressed. The default is an increase - or decrease of 5. - */ - config.volume_increment = - userConfig.volume_increment != undefined - ? userConfig.volume_increment - : 5; - - config.volume_decrement = - userConfig.volume_decrement != undefined - ? userConfig.volume_decrement - : 5; - - /* - Set the volume to what is defined in the config. The user can define this, - so we should set it up that way. - */ - Core.setVolume(config.volume); - - /* - Set default artwork, if specified - */ - setArt(userConfig); + // config.bindings = + // userConfig.bindings != undefined ? userConfig.bindings : {}; + + // /* + // The user can define a starting volume in a range of 0-100 with + // 0 being muted and 100 being the loudest. After the config is set + // Amplitude sets the active song's volume to the volume defined + // by the user. + // */ + // config.volume = userConfig.volume != undefined ? userConfig.volume : 50; + + // /* + // Sets the delay between songs if the user has it set. This should be in MS. + // */ + // config.delay = userConfig.delay != undefined ? userConfig.delay : 0; + + // /* + // The user can set the volume increment and decrement values between 1 and 100 + // for when the volume up or down button is pressed. The default is an increase + // or decrease of 5. + // */ + // config.volume_increment = + // userConfig.volume_increment != undefined + // ? userConfig.volume_increment + // : 5; + + // config.volume_decrement = + // userConfig.volume_decrement != undefined + // ? userConfig.volume_decrement + // : 5; + + // /* + // Set the volume to what is defined in the config. The user can define this, + // so we should set it up that way. + // */ + // Core.setVolume(config.volume); + + // /* + // Set default artwork, if specified + // */ + // setArt(userConfig); /* Initialize the visual elements @@ -507,75 +531,75 @@ let Initializer = (function() { If the user has selected a starting playlist, we need to set the starting playlist and sync the visuals */ - if ( - userConfig.starting_playlist != undefined && - userConfig.starting_playlist != "" - ) { - /* - Set the active playlist to the starting playlist by the user - */ - config.active_playlist = userConfig.starting_playlist; - - /* - Check if the user defined a song to start with in the playlist. - */ - if ( - userConfig.starting_playlist_song != undefined && - userConfig.starting_playlist_song != "" - ) { - /* - Ensure the song is a valid index. - */ - if ( - typeof userConfig.playlists[userConfig.starting_playlist].songs[ - parseInt(userConfig.starting_playlist_song) - ] != undefined - ) { - /* - Set the player to the song defined by the user. - */ - AudioNavigation.changeSongPlaylist( - config.active_playlist, - userConfig.playlists[userConfig.starting_playlist].songs[ - parseInt(userConfig.starting_playlist_song) - ], - parseInt(userConfig.starting_playlist_song) - ); - } else { - /* - Set the player to the first song in the playlist - */ - AudioNavigation.changeSongPlaylist( - config.active_playlist, - userConfig.playlists[userConfig.starting_playlist].songs[0], - 0 - ); - /* - Debug that the song index doesn't exist - */ - Debug.writeMessage( - "The index of " + - userConfig.starting_playlist_song + - " does not exist in the playlist " + - userConfig.starting_playlist - ); - } - } else { - /* - Set the player to the first song in the playlist - */ - AudioNavigation.changeSong( - config.active_playlist, - userConfig.playlists[userConfig.starting_playlist].songs[0], - 0 - ); - } - - /* - Sync the main and song play pause buttons. - */ - PlayPauseElements.sync(); - } + // if ( + // userConfig.starting_playlist != undefined && + // userConfig.starting_playlist != "" + // ) { + // /* + // Set the active playlist to the starting playlist by the user + // */ + // config.active_playlist = userConfig.starting_playlist; + + // /* + // Check if the user defined a song to start with in the playlist. + // */ + // if ( + // userConfig.starting_playlist_song != undefined && + // userConfig.starting_playlist_song != "" + // ) { + // /* + // Ensure the song is a valid index. + // */ + // if ( + // typeof userConfig.playlists[userConfig.starting_playlist].songs[ + // parseInt(userConfig.starting_playlist_song) + // ] != undefined + // ) { + // /* + // Set the player to the song defined by the user. + // */ + // AudioNavigation.changeSongPlaylist( + // config.active_playlist, + // userConfig.playlists[userConfig.starting_playlist].songs[ + // parseInt(userConfig.starting_playlist_song) + // ], + // parseInt(userConfig.starting_playlist_song) + // ); + // } else { + // /* + // Set the player to the first song in the playlist + // */ + // AudioNavigation.changeSongPlaylist( + // config.active_playlist, + // userConfig.playlists[userConfig.starting_playlist].songs[0], + // 0 + // ); + // /* + // Debug that the song index doesn't exist + // */ + // Debug.writeMessage( + // "The index of " + + // userConfig.starting_playlist_song + + // " does not exist in the playlist " + + // userConfig.starting_playlist + // ); + // } + // } else { + // /* + // Set the player to the first song in the playlist + // */ + // AudioNavigation.changeSong( + // config.active_playlist, + // userConfig.playlists[userConfig.starting_playlist].songs[0], + // 0 + // ); + // } + + // /* + // Sync the main and song play pause buttons. + // */ + // PlayPauseElements.sync(); + // } /* Run after init callback @@ -583,34 +607,34 @@ let Initializer = (function() { Callbacks.run("initialized"); } - /** - * Sets the default_album_art and default_playlist_art from the - * user supplied configuration. - * - * @access public - * @param {object} userConfig - A JSON object of user defined values that help configure and initialize AmplitudeJS. - */ - function setArt(userConfig) { - /* - If the user defines default album art, this image will display if the active - song doesn't have album art defined. - */ - if (userConfig.default_album_art != undefined) { - config.default_album_art = userConfig.default_album_art; - } else { - config.default_album_art = ""; - } - - /* - If the user defines default playlist art, this image will display if the user - tries to set up a playlist meta data image tag but doesn't have one defined. - */ - if (userConfig.default_playlist_art != undefined) { - config.default_playlist_art = userConfig.default_playlist_art; - } else { - config.default_playlist_art = ""; - } - } + // /** + // * Sets the default_album_art and default_playlist_art from the + // * user supplied configuration. + // * + // * @access public + // * @param {object} userConfig - A JSON object of user defined values that help configure and initialize AmplitudeJS. + // */ + // function setArt(userConfig) { + // /* + // If the user defines default album art, this image will display if the active + // song doesn't have album art defined. + // */ + // if (userConfig.default_album_art != undefined) { + // config.default_album_art = userConfig.default_album_art; + // } else { + // config.default_album_art = ""; + // } + + // /* + // If the user defines default playlist art, this image will display if the user + // tries to set up a playlist meta data image tag but doesn't have one defined. + // */ + // if (userConfig.default_playlist_art != undefined) { + // config.default_playlist_art = userConfig.default_playlist_art; + // } else { + // config.default_playlist_art = ""; + // } + // } /** * Initializes all of the elements on the page to the default starting point @@ -627,17 +651,17 @@ let Initializer = (function() { /* Sync Mute Elements. */ - MuteElements.setMuted(config.volume == 0 ? true : false); + // MuteElements.setMuted(config.volume == 0 ? true : false); /* Sync Volume Slider Elements */ - VolumeSliderElements.sync(); + // VolumeSliderElements.sync(); /* Syncs all of the playback speed elements. */ - PlaybackSpeedElements.sync(); + // PlaybackSpeedElements.sync(); /* Syncs all of the visual time elements to 00. @@ -647,7 +671,7 @@ let Initializer = (function() { /* Sets all of the play pause buttons to pause. */ - PlayPauseElements.syncToPause(); + // PlayPauseElements.syncToPause(); /* Sets the meta data for the songs automatically. @@ -660,68 +684,68 @@ let Initializer = (function() { RepeatElements.syncRepeatSong(); } - /** - * Counts the number of playlists the user has configured. This ensures - * that the user has at least 1 playlist so we can validate the songs - * defined in the playlist are correct and they didn't enter an invalid - * ID. - * - * @access private - * @param {object} playlists - - */ - function countPlaylists(playlists) { - /* - Initialize the placeholders to iterate through the playlists - and find out how many we have to account for. - */ - let size = 0, - key; - - /* - Iterate over playlists and if the user has the playlist defined, - increment the size of playlists. - */ - for (key in playlists) { - if (playlists.hasOwnProperty(key)) { - size++; - } - } - - /* - Debug how many playlists are in the config. - */ - Debug.writeMessage("You have " + size + " playlist(s) in your config"); - - /* - Return the number of playlists in the config. - */ - return size; - } - - /** - * Intializes the default live settings for all of the songs. - * - * @access private - */ - function initializeDefaultLiveSettings() { - for (let i = 0; i < config.songs.length; i++) { - if (config.songs[i].live == undefined) { - config.songs[i].live = false; - } - } - } - - /** - * Initializes the index of the song in the songs array so - * we can reference it if needed - * - * @access private - */ - function initializeDefaultSongIndexes() { - for (let i = 0; i < config.songs.length; i++) { - config.songs[i].index = i; - } - } + // /** + // * Counts the number of playlists the user has configured. This ensures + // * that the user has at least 1 playlist so we can validate the songs + // * defined in the playlist are correct and they didn't enter an invalid + // * ID. + // * + // * @access private + // * @param {object} playlists - + // */ + // function countPlaylists(playlists) { + // /* + // Initialize the placeholders to iterate through the playlists + // and find out how many we have to account for. + // */ + // let size = 0, + // key; + + // /* + // Iterate over playlists and if the user has the playlist defined, + // increment the size of playlists. + // */ + // for (key in playlists) { + // if (playlists.hasOwnProperty(key)) { + // size++; + // } + // } + + // /* + // Debug how many playlists are in the config. + // */ + // Debug.writeMessage("You have " + size + " playlist(s) in your config"); + + // /* + // Return the number of playlists in the config. + // */ + // return size; + // } + + // /** + // * Intializes the default live settings for all of the songs. + // * + // * @access private + // */ + // function initializeDefaultLiveSettings() { + // for (let i = 0; i < config.songs.length; i++) { + // if (config.songs[i].live == undefined) { + // config.songs[i].live = false; + // } + // } + // } + + // /** + // * Initializes the index of the song in the songs array so + // * we can reference it if needed + // * + // * @access private + // */ + // function initializeDefaultSongIndexes() { + // for (let i = 0; i < config.songs.length; i++) { + // config.songs[i].index = i; + // } + // } /* Returns the publicly accessible methods diff --git a/src/init/playlists.js b/src/init/playlists.js index 72302904..3cd57f95 100644 --- a/src/init/playlists.js +++ b/src/init/playlists.js @@ -86,15 +86,15 @@ let PlaylistsInitializer = (function() { * * @access private */ - function initializePlaylistActiveIndexes() { - /* - Iterate over all of the playlists defined by the user - and add an active index. - */ - for (let key in config.playlists) { - config.playlists[key].active_index = null; - } - } + // function initializePlaylistActiveIndexes() { + // /* + // Iterate over all of the playlists defined by the user + // and add an active index. + // */ + // for (let key in config.playlists) { + // config.playlists[key].active_index = null; + // } + // } /** * Ensures the indexes in the playlists are valid indexes. The song has @@ -155,98 +155,98 @@ let PlaylistsInitializer = (function() { } } - /** - * Grabs the SoundCloud data for any song in the playlist that - * the user needs to grab data for. - * - * @access private - */ - function grabSoundCloudData() { - /* - Iterate over all of the config's playlists - */ - for (let key in config.playlists) { - /* - Checks if the playlist key is accurate. - */ - if (config.playlists.hasOwnProperty(key)) { - /* - Iterate over all of the songs in the playlist and see if - they need to grab the SoundCloud data for the song. - */ - for (let i = 0; i < config.playlists[key].songs.length; i++) { - /* - Only Grab the data if the URL is a SoundCloud URL. - */ - if (SoundCloud.isSoundCloudURL(config.playlists[key].songs[i].url)) { - /* - Only grab the data if the SoundCloud data has not already been - grabbed for the audio. This could happen if the user defined the - song in the songs array and was grabbed before. - */ - if (config.playlists[key].songs[i].soundcloud_data == undefined) { - SoundCloud.resolveIndividualStreamableURL( - config.playlists[key].songs[i].url, - key, - i - ); - } - } - } - } - } - } + // /** + // * Grabs the SoundCloud data for any song in the playlist that + // * the user needs to grab data for. + // * + // * @access private + // */ + // function grabSoundCloudData() { + // /* + // Iterate over all of the config's playlists + // */ + // for (let key in config.playlists) { + // /* + // Checks if the playlist key is accurate. + // */ + // if (config.playlists.hasOwnProperty(key)) { + // /* + // Iterate over all of the songs in the playlist and see if + // they need to grab the SoundCloud data for the song. + // */ + // for (let i = 0; i < config.playlists[key].songs.length; i++) { + // /* + // Only Grab the data if the URL is a SoundCloud URL. + // */ + // if (SoundCloud.isSoundCloudURL(config.playlists[key].songs[i].url)) { + // /* + // Only grab the data if the SoundCloud data has not already been + // grabbed for the audio. This could happen if the user defined the + // song in the songs array and was grabbed before. + // */ + // if (config.playlists[key].songs[i].soundcloud_data == undefined) { + // SoundCloud.resolveIndividualStreamableURL( + // config.playlists[key].songs[i].url, + // key, + // i + // ); + // } + // } + // } + // } + // } + // } - /** - * Initializes the shuffle statuses for each of the playlists. These will - * be referenced when we shuffle individual playlists. - * - * @access private - */ - function initializePlaylistShuffleStatuses() { - /* - Iterate over all of the playlists the user defined adding - the playlist key to the shuffled playlist array and creating - and empty object to house the statuses. - */ - for (let key in config.playlists) { - config.playlists[key].shuffle = false; - } - } + // /** + // * Initializes the shuffle statuses for each of the playlists. These will + // * be referenced when we shuffle individual playlists. + // * + // * @access private + // */ + // function initializePlaylistShuffleStatuses() { + // /* + // Iterate over all of the playlists the user defined adding + // the playlist key to the shuffled playlist array and creating + // and empty object to house the statuses. + // */ + // for (let key in config.playlists) { + // config.playlists[key].shuffle = false; + // } + // } - /** - * Initializes the repeat statuses for each of the playlists. These will - * be referenced when we repeat individual playlits. - * - * @access private - */ - function initializePlaylistsRepeatStatuses() { - /* - Iterate over all of the playlists the user defined adding - the playlist key to the repeated playlist array and creating - and empty object to house the statuses. - */ - for (let key in config.playlists) { - config.playlists[key].repeat = false; - } - } + // /** + // * Initializes the repeat statuses for each of the playlists. These will + // * be referenced when we repeat individual playlits. + // * + // * @access private + // */ + // function initializePlaylistsRepeatStatuses() { + // /* + // Iterate over all of the playlists the user defined adding + // the playlist key to the repeated playlist array and creating + // and empty object to house the statuses. + // */ + // for (let key in config.playlists) { + // config.playlists[key].repeat = false; + // } + // } - /** - * Initializes the shuffled playlist placeholders. These will be set for - * playlists that are shuffled and contain the shuffled songs. - * - * @access private - */ - function initializePlaylistShuffleLists() { - /* - Iterate over all of the playlists the user defined adding - the playlist key to the shuffled playlists array and creating - and empty object to house the shuffled playlists - */ - for (let key in config.playlists) { - config.playlists[key].shuffle_list = []; - } - } + // /** + // * Initializes the shuffled playlist placeholders. These will be set for + // * playlists that are shuffled and contain the shuffled songs. + // * + // * @access private + // */ + // function initializePlaylistShuffleLists() { + // /* + // Iterate over all of the playlists the user defined adding + // the playlist key to the shuffled playlists array and creating + // and empty object to house the shuffled playlists + // */ + // for (let key in config.playlists) { + // config.playlists[key].shuffle_list = []; + // } + // } /** * Intializes the display for the first song in the playlist meta data. diff --git a/src/methods/art.js b/src/methods/art.js new file mode 100644 index 00000000..fa30d9b2 --- /dev/null +++ b/src/methods/art.js @@ -0,0 +1,49 @@ +import { config } from "@/config.js"; + +/** + * Gets the default art for the player + * + * Public Accessor: Amplitude.getDefaultArt() + * + * @access public + * @returns {url} + */ +export function getDefaultArt() { + return config.default_art; +} + +/** + * Sets the default art for the player + * + * Public Accessor: Amplitude.setDefaultArt( url ) + * + * @access public + * @param {string} url - A string representing the URL of the new default art. + */ +export function setDefaultArt(url) { + config.default_art = url; +} + +/** + * Gets the default collection art + * + * Public Accessor: Amplitude.getDefaultCollectionArt() + * + * @access public + * @returns {url} + */ +export function getDefaultCollectionArt() { + return config.default_collection_art; +} + +/** + * Sets the default collection art for the player + * + * Public Accessor: Amplitude.setDefaultCollectionArt( url ) + * + * @access public + * @param {string} url - A string representing the URL of the new default collection art. + */ +export function setDefaultCollectionArt(url) { + config.default_collection_art = url; +} diff --git a/src/methods/audio.js b/src/methods/audio.js new file mode 100644 index 00000000..19cd8913 --- /dev/null +++ b/src/methods/audio.js @@ -0,0 +1,99 @@ +import { config } from "@/config.js"; + +/** + * Allows the user to get the percentage of the audio played. + * + * Public Accessor: Amplitude.getAudioPlayedPercentage(); + * + * @access public + */ +export function getAudioPlayedPercentage(){ + return ( config.audio_element.currentTime / config.audio_element.duration ) * 100; +} + +/** + * Allows the user to set how far into the audio they want to be. This is + * helpful for implementing custom range sliders. Only works on the current audio. + * + * Public Accessor: Amplitude.setAudioPlayedPercentage( float ); + * + * @access public + * @param {number} percentage - The percentage of the audio to skip + */ +export function setAudioPlayedPercentage(percentage) { + if (typeof percentage == "number" && (percentage > 0 && percentage < 100)) { + config.audio_element.currentTime = config.audio_element.duration * (percentage / 100); + } +} + +/** + * Allows the user to get the number of seconds the audio has played. + * + * Public Accessor: Amplitude.getAudioPlayedSeconds(); + * + * @access public + */ +export function getAudioPlayedSeconds() { + return config.audio_element.currentTime; +} + +/** + * Allows the user to get the duration of the current audio + * + * Public Accessor: Amplitude.getAudioDuration(); + * + * @access public + */ +export function getAudioDuration() { + return config.audio_element.duration; +} + +/** + * Returns the active audio meta data for the user to do what is + * needed. + * + * Public Accessor: Amplitude.getActiveAudioMetadata(); + * + * @access public + * @returns {object} JSON Object with the active audio information + */ +export function getActiveAudioMetadata() { + return config.active_metadata; +} + +/** + * Returns the audio at a specific index + * + * Public Accessor: Amplitude.getAudioAtIndex( index ) + * + * @access public + * @param {number} index - The integer for the index of the audio. + * @returns {object} JSON representation for the audio at a specific index. + */ +export function getAudioAtIndex(index) { + return config.audio[index]; +} + +/** + * Adds audio to the audio array. + * + * Public Accessor: Amplitude.addAudio( audio ) + * + * @access public + * @param {object} audio - JSON representation of a audio. + * @returns {number} New index of the audio. + */ +export function addaudio(audio) { + config.audio.push(audio); + + // if (SoundCloud.isSoundCloudURL(song.url)) { + // SoundCloud.resolveIndividualStreamableURL( + // song.url, + // null, + // config.songs.length - 1, + // config.shuffle_on + // ); + // } + + return config.audio.length - 1; +} \ No newline at end of file diff --git a/src/methods/collections.js b/src/methods/collections.js new file mode 100644 index 00000000..6af24fd0 --- /dev/null +++ b/src/methods/collections.js @@ -0,0 +1,112 @@ +import { config } from "@/config.js"; +import { ConfigState } from "@/services/ConfigState.js"; +import { Debug } from "@/services/Debug"; +import { Shuffle } from "@/services/Collections/Shuffle"; +import { ShuffleElement } from "@/elements/ShuffleElement"; + +/** + * Returns the key of the active collection + * + * Public Method: Amplitude.getActiveCollection() + * + * @access public + * @returns {string} + */ +export function getActiveCollection(){ + return config.active_collection; +} + +/** + * Returns the active collection meta data for the for the user to use. + * + * Public Accessor: Amplitude.getActiveCollectionMetadata(); + * + * @access public + * @returns {object} JSON representation for the active collection + */ +export function getActiveCollectionMetadata() { + let collectionIndex = ConfigState.getCollectionIntegerIndex( config.active_collection ); + return config.collections[collectionIndex]; +} + +/** + * Returns the audio at a collection index + * + * Public Accessor: Amplitude.getAudioAtCollectionIndex( collection, index ) + * + * @access public + * + * @param {string} collection - The key of the collection we are getting the audio at the index for + * @param {number} index - The integer for the index of the audio in the collection. + * + * @returns {object} JSON representation for the audio at a specific index. + */ +export function getAudioAtCollectionIndex(collectionKey, audioIndex) { + let collectionIndex = ConfigState.getCollectionIntegerIndex(collectionKey); + return config.collections[collectionIndex].audio[audioIndex]; +} + +/** + * Returns whether the active collection is shuffled or not + * + * Public Accessor: Amplitude.getActiveCollectionShuffled() + * + * @access public + * + * @returns {bool} True or false whether the active colleciton is shuffled + */ +export function getActiveCollectionShuffled(){ + let collectionKey = ConfigState.getActiveCollection(); + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + + return config.collections[collectionIndex].shuffled; +} + +/** + * Toggles the shuffle state on the active collection. + * + * Public Accessor: Amplitude.toggleActiveCollectionShuffle() + * + * @access public + */ +export function toggleActiveCollectionShuffle(){ + if( ConfigState.getScope() == 'collection' ){ + let collectionKey = ConfigState.getActiveCollection(); + + let shuffle = new Shuffle( collectionKey ); + shuffle.toggleShuffle(); + + ShuffleElement.syncAll(); + }else{ + Debug.writeMessage("You can only shuffle a collection if you are playing a collection."); + } +} + +/** + * Returns whether the specified collection is shuffled or not + * + * Public Accessor: Amplitude.getCollectionShuffled( collectionKey ) + * + * @param {string} collection - The key of the collection we are checking is shuffled + * + * @returns {bool} True or false whether the specified collection is shuffled. + */ +export function getCollectionShuffled( collectionKey ){ + let collectionIndex = ConfigState.getCollectionIntegerIndex(collectionKey); + return config.collections[collectionIndex].shuffled; +} + +/** + * Sets whether the specified collection is shuffled + * + * Public Accessor: Amplitude.setCollectionShuffled( collectionKey, shuffled ) + * + * @param {string} collection - The key of the collection we are shuffling. + * @param {bool} shuffled - Whether we are shuffling the collection or not. + */ +export function setCollectionShuffled( collectionKey, shuffled = true ){ + let shuffle = new Shuffle( collectionKey ); + shuffle.setShuffled( shuffled ); + + ShuffleElement.syncAll(); +} diff --git a/src/methods/config.js b/src/methods/config.js new file mode 100644 index 00000000..37b264dd --- /dev/null +++ b/src/methods/config.js @@ -0,0 +1,25 @@ +import { config } from "@/config.js"; + +/** + * Returns the current config for AmplitudeJS + * + * Public Method: Amplitude.getConfig() + * + * @access public + * @returns {object} + */ +export function getConfig(){ + return config; +} + +/** + * Allows the user to turn on debugging. + * + * Public Accessor: Amplitude.setDebug( bool ); + * + * @access public + * @param {boolean} state - Turns debugging on and off. + */ +export function setDebug(state) { + config.debug = state; +} \ No newline at end of file diff --git a/src/methods/eventListeners.js b/src/methods/eventListeners.js new file mode 100644 index 00000000..91b332b4 --- /dev/null +++ b/src/methods/eventListeners.js @@ -0,0 +1,43 @@ +import { config } from "@/config.js"; +import { Debug } from "@/services/Debug"; + +const validEventListeners = [ + 'abort', + 'error', + 'loadeddata', + 'loadedmetadata', + 'loadstart', + 'pause', + 'playing', + 'play', + 'progress', + 'ratechange', + 'seeked', + 'seeking', + 'stalled', + 'suspend', + 'timeupdate', + 'volumechange', + 'waiting', + 'canplay', + 'canplaythrough', + 'durationchange', + 'ended' +]; + +/** + * Binds an event listener to a native HTML 5 event + * emitted from the audio element. + * + * Public Accessor: Amplitude.addAudioEventListener( event, method ) + * @access public + * @param string event - The event name you want to bind a listener to. + * @param string method - The method you are binding to the event. + */ +export function addAudioEventListener( event, method ){ + if( validEventListeners.indexOf( event ) > -1 ){ + config.audio_element.addEventListener( event, method ); + }else{ + Debug.writeMessage( "Invalid event listener. Please see all valid events here: https://www.w3schools.com/tags/ref_av_dom.asp") + } +} \ No newline at end of file diff --git a/src/methods/init.js b/src/methods/init.js new file mode 100644 index 00000000..9359b3c4 --- /dev/null +++ b/src/methods/init.js @@ -0,0 +1,15 @@ +import { Initializer } from "@/init/Initializer"; + +/** + * The main init function. The user will call this through + * Amplitude.init() and pass in their settings. + * + * Public Accessor: Amplitude.init( user_config_json ) + * @access public + * @param {object|url} userConfig - A URL or JSON object of user defined values that help configure and initialize AmplitudeJS. + * @param {string|element} element - A unique identifier or DOM Element to bind Amplitude methods to. + */ +export function init( userConfig = {}, element = null ){ + let initializer = new Initializer( userConfig, element ); + initializer.setup(); +} \ No newline at end of file diff --git a/src/methods/playbackSpeed.js b/src/methods/playbackSpeed.js new file mode 100644 index 00000000..8700b88e --- /dev/null +++ b/src/methods/playbackSpeed.js @@ -0,0 +1,35 @@ +import { Audio } from "@/core/Audio.js"; +import { PlaybackSpeedElement } from '@/elements/PlaybackSpeedElement.js'; +import { config } from "@/config.js"; + +/** + * Returns the current playback speed. + * + * Public Accessor: Amplitude.getPlaybackSpeed() + * + * @access public + */ +export function getPlaybackSpeed(){ + return config.playback_speed; +} + +/** + * Sets the playback speed + * + * Increments are set in .5 We only accept values + * 1, 1.5, 2 + * + * 1 -> Regular Speed + * 1.5 -> 50% faster + * 2 -> Twice as fast + * + * Public Accessor: Amplitude.setPlaybackSpeed( speed ) + * + * @access public + */ +export function setPlaybackSpeed( speed ) { + let audio = new Audio(); + audio.setPlaybackSpeed( speed ); + + PlaybackSpeedElement.syncElements(); +} \ No newline at end of file diff --git a/src/services/Audio/Checks.js b/src/services/Audio/Checks.js new file mode 100644 index 00000000..7d40d35b --- /dev/null +++ b/src/services/Audio/Checks.js @@ -0,0 +1,35 @@ +import { config } from "@/config"; +import { ConfigState } from "@/services/ConfigState"; + +export class Checks { + static audioExists( index ){ + if( config.audio[ index ] ){ + return true; + }else{ + return false; + } + } + + static audioChanged( audioIndex, collectionKey = null ){ + if( config.active_collection != collectionKey ){ + return true; + }else{ + if( config.active_collection == null && collectionKey == null ){ + if( config.active_index != audioIndex ){ + return true; + }else{ + return false; + } + }else{ + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + + if( config.active_collection == collectionKey && + config.collections[ collectionIndex ].active_index != audioIndex ){ + return true; + }else{ + return false; + } + } + } + } +} \ No newline at end of file diff --git a/src/services/Audio/Navigation.js b/src/services/Audio/Navigation.js new file mode 100644 index 00000000..96e66d65 --- /dev/null +++ b/src/services/Audio/Navigation.js @@ -0,0 +1,69 @@ +import { Audio } from "@/core/Audio"; +import { config } from "@/config"; +import { Callbacks } from "@/services/Callbacks"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; +import { MetaDataElement } from "@/elements/MetaDataElement"; +import { ContainerElement } from "@/elements/ContainerElement"; + +export class Navigation { + /** + * Change audio in the audio array + * + * @prop {object} audio - The audio we are changing to. + * @prop {number} index - The index we are changing to. + * @prop {boolean} direct - Determines if it was a direct click on the song. + * We then don't care if shuffle is on or not. + */ + changeAudio( audio, index, direct = false ){ + this.#prepareAudioChange( audio ); + + this.#switchAudio( audio, index ); + + this.#afterAudioChange( direct ); + } + + #prepareAudioChange( audio ){ + let coreAudio = new Audio(); + coreAudio.stop(); + + // Sync elements + PlayPauseElement.syncAllToPause(); + /** + * @todo Song Slider Elements -> reset + * @todo Song Played Progress Elements -> reset + * @todo Time Elements -> reset + * ( See src/utilities/audioNavigation.js Line #528) + */ + /** + * @todo we don't have album change callback, make note. + */ + } + + #switchAudio( audio, index ){ + config.active_collection = null; + config.audio_element.src = audio.url; + config.active_metadata = audio; + /** + * @todo We don't have active_album. make note. + */ + config.active_index = parseInt( index ); + } + + #afterAudioChange( direct ){ + this.#updateMetaData(); + + let containerElements = new ContainerElement(); + containerElements.setActiveContainers( direct ); + + /** + * @todo time elements -> reset duration times + * ( see src/utilities/audioNavigation.js Line #558 ) + */ + Callbacks.run('audio_change'); + } + + #updateMetaData(){ + let metaData = new MetaDataElement(); + metaData.updateActiveMetaData(); + } +} \ No newline at end of file diff --git a/src/services/Callbacks.js b/src/services/Callbacks.js new file mode 100644 index 00000000..5a0ca56f --- /dev/null +++ b/src/services/Callbacks.js @@ -0,0 +1,55 @@ +import { config } from "../config"; +import { ConfigState } from "./ConfigState"; +import { Debug } from "./Debug"; + +export class Callbacks{ + #events = [ + 'abort', + 'error', + 'loadeddata', + 'loadedmetadata', + 'loadstart', + 'pause', + 'playing', + 'play', + 'progress', + 'ratechange', + 'seeked', + 'seeking', + 'stalled', + 'suspend', + 'timeupdate', + 'volumechange', + 'waiting', + 'canplay', + 'canplaythrough', + 'durationchange', + 'ended' + ]; + + handleNativeAudioElementEvents(){ + this.#events.forEach( function( event ){ + config.audio_element.addEventListener( event, function( ){ + Callbacks.run( event ); + } ); + }); + } + + static run( event ){ + let callback = ConfigState.getCallback( event ); + + if( callback ){ + Debug.writeMessage( "Running Callback for event '" + callback.event + "' with method '" + callback.handler + "'"); + + try { + window[callback.handler](); + } catch ( error ){ + if (error.message == "CANCEL EVENT") { + throw error; + }else{ + Debug.writeMessage( error.message ); + } + } + } + } +} \ No newline at end of file diff --git a/src/services/Collections/Checks.js b/src/services/Collections/Checks.js new file mode 100644 index 00000000..79d0bad3 --- /dev/null +++ b/src/services/Collections/Checks.js @@ -0,0 +1,27 @@ +import { config } from "@/config"; + +export class Checks { + static collectionExists( index ){ + if( config.collections[ index ] ){ + return true; + }else{ + return false; + } + } + + static collectionChanged( collection ){ + if (config.active_collection != collection) { + return true; + } else { + return false; + } + } + + static isCollectionShuffled( collection ){ + if( config.collections[ collection ].shuffle ){ + return true; + }else{ + return false; + } + } +} \ No newline at end of file diff --git a/src/services/Collections/Navigation.js b/src/services/Collections/Navigation.js new file mode 100644 index 00000000..19b89a7b --- /dev/null +++ b/src/services/Collections/Navigation.js @@ -0,0 +1,259 @@ +import { Audio } from "@/core/Audio"; +import { config } from "@/config"; +import { Callbacks } from "@/services/Callbacks"; +import { PlayPauseElement } from "@/elements/PlayPauseElement"; +import { MetaDataElement } from "@/elements/MetaDataElement"; +import { ContainerElement } from "@/elements/ContainerElement"; +import { ConfigState } from "@/services/ConfigState"; + +export class Navigation { + /** + * Sets the next song in a collection. + * + * @param {string} collectionKey - The collection to navigate. Defaults to the active collection. + * @param {boolean} audioEnded - If the audio ended, this is true to take in effect the repeat setting. + */ + next( collectionKey = null, audioEnded = false ){ + if( !collectionKey ){ + collectionKey = config.active_collection; + } + + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + let nextAudio = this.#findNextAudio( collectionIndex ); + + this.setActiveCollection( collectionKey, collectionIndex ); + this.changeCollectionAudio( collectionIndex, nextAudio.audio, nextAudio.index ); + this.#playNextAudio( nextAudio.end, audioEnded ) + + PlayPauseElement.syncAll(); + Callbacks.run("next"); + + if( config.repeat_audio ){ + Callbacks.run("audio_repeated"); + } + } + + #findNextAudio( collectionIndex ){ + if( config.repeat_audio ){ + return this.#repeatedAudio( collectionIndex ); + }else{ + if( config.collections[ collectionIndex ].shuffled ){ + return this.#nextShuffledAudio( collectionIndex ); + }else{ + return this.#nextCollectionAudio( collectionIndex ); + } + } + } + + #repeatedAudio( collectionIndex ){ + let index = config.collections[ collectionIndex ].active_index; + + return { + 'index': nextIndex, + 'audio': config.collections[ collectionIndex ].shuffle ? + config.collections[ collectionIndex ].shuffle_list[ index ] : + config.collections[ collectionIndex ].audio[ index ], + 'end': false + } + } + + #nextShuffledAudio( collectionIndex ){ + let nextIndex = null; + let endOfList = false; + + let activeIndex = config.collections[ collectionIndex ].active_index; + let shuffleCollectionLength = config.collections[ collectionIndex ].shuffle_list.length; + + if( parseInt( activeIndex + 1 ) < shuffleCollectionLength ){ + nextIndex = parseInt( activeIndex + 1 ); + }else{ + nextIndex = 0; + endOfList = true; + } + + return { + 'index': nextIndex, + 'audio': config.collections[ collectionIndex ].shuffle_list[ nextIndex ], + 'end': endOfList + } + } + + #nextCollectionAudio( collectionIndex ){ + let nextIndex = null; + let endOfList = false; + + let activeIndex = config.collections[ collectionIndex ].active_index; + let collectionLength = config.collections[ collectionIndex ].audio.length; + + if( parseInt( activeIndex + 1 ) < collectionLength ){ + nextIndex = parseInt( activeIndex + 1 ); + }else{ + nextIndex = 0; + endOfList = true; + } + + return { + 'index': nextIndex, + 'audio': config.collections[ collectionIndex ].audio[ nextIndex ], + 'end': endOfList + } + } + + #playNextAudio( endOfList, audioEnded ){ + // If it's the end of the collection and we aren't repeating, do nothing. + if( endOfList && !config.repeat_audio ){ + }else{ + if( !( audioEnded && !config.repeat_audio && endOfList ) ){ + let audio = new Audio(); + audio.play(); + } + } + } + + previous( collectionKey = null ){ + if( !collectionKey ){ + collectionKey = config.active_collection; + } + + let collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + let previousAudio = this.#findPreviousAudio( collectionIndex ); + + this.setActiveCollection( collectionKey, collectionIndex ); + this.changeCollectionAudio( collectionIndex, previousAudio.audio, previousAudio.index ); + + let audio = new Audio(); + audio.play(); + + PlayPauseElement.syncAll(); + Callbacks.run("previous"); + + if( config.repeat_audio ){ + Callbacks.run("audio_repeated"); + } + } + + #findPreviousAudio( collectionIndex ){ + if( config.repeat_audio ){ + return this.#repeatedAudio( collectionIndex ); + }else{ + if( config.collections[ collectionIndex ].shuffle ){ + return this.#previousShuffledAudio( collectionIndex ); + }else{ + return this.#previousCollectionAudio( collectionIndex ); + } + } + } + + #previousShuffledAudio( collectionIndex ){ + let previousIndex = null; + + let activeIndex = config.collections[ collectionIndex ].active_index; + let shuffleCollectionLength = config.collections[ collectionIndex ].shuffle_list.length; + + if( parseInt( activeIndex - 1 ) >= 0 ){ + previousIndex = parseInt( activeIndex - 1 ); + }else{ + previousIndex = parseInt( shuffleCollectionLength - 1 ); + } + + return { + 'index': previousIndex, + 'audio': config.collections[ collectionIndex ].shuffle_list[ previousIndex ] + } + } + + #previousCollectionAudio( collectionIndex ){ + let previousIndex = null; + + let activeIndex = config.collections[ collectionIndex ].active_index; + let collectionLength = config.collections[ collectionIndex ].audio.length; + + if( parseInt( activeIndex - 1 ) >= 0 ){ + previousIndex = parseInt( activeIndex - 1 ); + }else{ + previousIndex = parseInt( collectionLength - 1 ); + } + + return { + 'index': previousIndex, + 'audio': config.collections[ collectionIndex ].audio[ previousIndex ] + } + } + + setActiveCollection( collectionKey, collectionIndex ){ + if( config.active_collection != collectionKey ){ + + config.active_collection = collectionKey; + + Callbacks.run("collection_change"); + + if( collectionIndex != null ){ + config.collections[ collectionIndex ].active_index = 0; + } + } + } + + /** + * Handles audio change in a collection + * + * @prop {string} collectionIndex - The collection index we are changing the audio on. + * @prop {object} audio - The audio object we are changing to in the collection. + * @prop {number} audioIndex - The index of the audio we are changing to in the collection. + * @prop {boolean} direct - Determines if it was a direct click on the song. We + * then don't care if shuffle is on or not + */ + changeCollectionAudio( collectionIndex, audio, audioIndex, direct ){ + this.#prepareAudioChange( audio ); + + this.#switchAudio( collectionIndex, audio, audioIndex ); + + this.#afterAudioChange( direct ); + } + + #prepareAudioChange( audio ){ + let coreAudio = new Audio(); + coreAudio.stop(); + + // Sync elements + PlayPauseElement.syncAllToPause(); + /** + * @todo Song Slider Elements -> reset + * @todo Song Played Progress Elements -> reset + * @todo Time Elements -> reset + * ( See src/utilities/audioNavigation.js Line #528) + */ + /** + * @todo we don't have album change callback, make note. + */ + } + + #switchAudio( collectionIndex, audio, audioIndex ){ + config.audio_element.src = audio.url; + config.active_metadata = audio; + /** + * @todo We don't have active_album. make note. + */ + config.active_index = null; + config.active_collection = ConfigState.getCollectionKey( collectionIndex ); + config.collections[collectionIndex].active_index = parseInt( audioIndex ); + } + + #afterAudioChange( direct ){ + this.#updateMetaData(); + + let containerElements = new ContainerElement(); + containerElements.setActiveContainers( direct ); + + /** + + * @todo time elements -> reset duration times + * ( see src/utilities/audioNavigation.js Line #558 ) + */ + Callbacks.run('audio_change'); + } + + #updateMetaData(){ + let metaData = new MetaDataElement(); + metaData.updateActiveMetaData(); + } +} \ No newline at end of file diff --git a/src/services/Collections/Shuffle.js b/src/services/Collections/Shuffle.js new file mode 100644 index 00000000..f9bad75f --- /dev/null +++ b/src/services/Collections/Shuffle.js @@ -0,0 +1,57 @@ +import { ConfigState } from '@/services/ConfigState'; +import { config } from '@/config.js'; + +export class Shuffle { + #collectionKey + #collectionIndex + + constructor( collectionKey ){ + this.#collectionKey = collectionKey; + this.#collectionIndex = ConfigState.getCollectionIntegerIndex( collectionKey ); + } + + toggleShuffle(){ + let isShuffled = ConfigState.isCollectionShuffled( this.#collectionIndex ); + + if( isShuffled ){ + ConfigState.setCollectionShuffled( this.#collectionIndex, false, [] ); + }else{ + let shuffledAudio = this.#shuffleAudio( this.#collectionIndex ); + ConfigState.setCollectionShuffled( this.#collectionIndex, true, shuffledAudio ); + } + } + + setShuffled( shuffled = true ){ + if( shuffled ){ + ConfigState.setCollectionShuffled( this.#collectionIndex, false, [] ); + }else{ + let shuffledAudio = this.#shuffleAudio( this.#collectionIndex ); + ConfigState.setCollectionShuffled( this.#collectionIndex, true, shuffledAudio ); + } + } + + #shuffleAudio( collectionIndex ){ + let audio = ConfigState.getCollectionAudio( collectionIndex ); + let shuffleTemp = new Array( audio.length ); + + audio.forEach( ( audioFile, index ) => { + shuffleTemp[ index ] = audio[ index ] + }); + + for( let i = audio.length - 1; i > 0; i-- ){ + let randomNumber = Math.floor( + Math.random() * audio.length + 1 + ); + + this.#shuffleSwap( shuffleTemp, i, randomNumber - 1); + } + + return shuffleTemp; + } + + #shuffleSwap( list, original, random ){ + let temp = list[ original ]; + list[ original ] = list[ random ]; + list[ random ] = temp; + } +} \ No newline at end of file diff --git a/src/services/ConfigState.js b/src/services/ConfigState.js new file mode 100644 index 00000000..ad671cdc --- /dev/null +++ b/src/services/ConfigState.js @@ -0,0 +1,249 @@ +import { config } from '@/config.js'; + +export class ConfigState{ + setIsMobile(){ + if ( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ) ) { + config.mobile = true; + }else{ + config.mobile = false; + } + } + + static isIos(){ + return /iPhone|iPad|iPod/i.test( navigator.userAgent ); + } + + static isIE(){ + let ua = window.navigator.userAgent; + let msie = ua.indexOf("MSIE "); + + return ( msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./) ); + } + + static isMobile(){ + return config.mobile; + } + + static isTouchMoving(){ + return config.is_touch_moving; + } + + static getAudioState(){ + return config.audio_element.paused ? "paused" : "playing"; + } + + static getScope(){ + if( config.active_collection == '' || config.active_collection == null ){ + return 'audio'; + }else{ + return 'collection'; + } + } + + static getVolume(){ + return config.volume.current; + } + + static getVolumeIncrement(){ + return config.volume.increment; + } + + static getVolumeDecrement(){ + return config.volume.decrement; + } + + static getPreMuteVolume(){ + return config.volume.pre_mute_level; + } + + static setPreMuteVolume( level = null ){ + if( !level ){ + level = config.volume.current; + } + + config.volume.pre_mute_level = level; + } + + static getPlaybackSpeed(){ + return config.playback_speed; + } + + static isCollectionShuffled( collectionIndex ){ + if( config.collections[ collectionIndex ] && config.collections[ collectionIndex ].shuffled ){ + return true; + }else{ + return false; + } + } + + static setCollectionShuffled( collectionIndex, shuffled, audio ){ + config.collections[ collectionIndex ].shuffled = shuffled; + config.collections[ collectionIndex ].shuffle_list = audio; + } + + static getCollectionAudio( collectionIndex ){ + return config.collections[ collectionIndex ].audio; + } + + static getActiveCollection(){ + return config.active_collection; + } + + static getActiveAudioIndex(){ + return config.active_index; + } + + static getActiveCollectionAudioIndex(){ + if( ConfigState.getScope() == 'collection' ){ + let collectionIndex = ConfigState.getCollectionIntegerIndex( config.active_collection ); + return config.collections[ collectionIndex ].active_index; + } + } + + static getContinueNext(){ + return config.continue_next; + } + + static getCollectionIntegerIndex( key ){ + let index = null; + + if( isNaN( key ) ){ + config.collections.forEach( function( collection, collectionIndex ){ + if( collection.key == key ){ + index = collectionIndex; + } + }); + }else{ + index = key; + } + + return index; + } + + static getCollectionKey( index ){ + return config.collections[ index ].key; + } + + static getStartingCollectionKey(){ + return config.starting.collection_key != '' + ? ConfigState.getCollectionIntegerIndex( config.starting.collection_key ) + : ''; + } + + static getStartingCollectionAudioIndex(){ + return config.starting.collection_audio_index != '' + ? config.starting.collection_audio_index + : 0; + } + + static updateBufferedTime(){ + // Help from: http://jsbin.com/badimipi/1/edit?html,js,output + if( config.audio_element.buffered.length - 1 >= 0 ){ + let bufferedEnd = config.audio_element.buffered.end( + config.audio_element.buffered.length - 1 + ); + + let duration = config.audio_element.duration; + + config.buffered = ( bufferedEnd / duration ) * 100; + } + } + + static getBufferedPercentage(){ + return parseFloat( config.buffered ) / 100; + } + + static isLive(){ + return config.active_metadata.live; + } + + static getTimeFormat(){ + return config.time_format; + } + + static getCallback( name ){ + let callbackObject = false; + + config.callbacks.forEach( function( callback ){ + if( callback.event == name ){ + callbackObject = callback + } + }); + + return callbackObject; + } + + resetConfig(){ + config.audio_element = new Audio(); + + config.active_metadata = {}; + config.active_index = 0; + config.active_collection = null; + config.is_touch_moving = null; + + config.playback_speed = 1.0; + + config.audio = []; + config.start_audio = ""; + config.starting_playlist = ""; + config.starting_playlist_song = ""; + config.repeat = false; + config.shuffle_list = {}; + config.shuffle_on = false; + config.default_artwork = ""; + config.default_playlist_art = ""; + config.debug = true; + config.callbacks = []; + + config.art = { + default_audio_art: '', + default_collection_art: '' + }; + + config.volume = { + current: 50, + increment: 5, + decrement: 5, + pre_mute_level: 50 + }; + + config.soundcloud = { + client: '', + use_art: false, + audio_count: 0, + ready_count: 0 + }; + + /** + * @todo BREAKING CHANGE + */ + // config.soundcloud_client = ""; + // config.soundcloud_use_art = false; + // config.soundcloud_song_count = 0; + // config.soundcloud_songs_ready = 0; + config.continue_next = true; + + /** + * @todo rebind event handlers + */ + + } + + + static setPlayerState(){ + // If paused and the current time is 0 the player is stopped. + if (config.audio_element.paused && config.audio_element.currentTime == 0) { + config.player_state = "stopped"; + } + + // If paused and the current time is greater than 0 the player is paused. + if (config.audio_element.paused && config.audio_element.currentTime > 0) { + config.player_state = "paused"; + } + + // If playing, the current state is playing. + if (!config.audio_element.paused) { + config.player_state = "playing"; + } + } +} \ No newline at end of file diff --git a/src/services/Debug.js b/src/services/Debug.js new file mode 100644 index 00000000..04924019 --- /dev/null +++ b/src/services/Debug.js @@ -0,0 +1,9 @@ +import { config } from "@/config.js"; + +export class Debug{ + static writeMessage( message ){ + if( config.debug ){ + console.log( message ); + } + } +} \ No newline at end of file diff --git a/src/services/Time.js b/src/services/Time.js new file mode 100644 index 00000000..82458024 --- /dev/null +++ b/src/services/Time.js @@ -0,0 +1,111 @@ +import { config } from "@/config"; + +export class Time { + static percentageInSeconds( percentage ){ + return config.audio_element.duration * (percentage / 100); + } + + static computeTimeRemaining( currentTime, duration ){ + let totalCurrentSeconds = parseInt( currentTime.seconds ) + + ( parseInt( currentTime.minutes ) * 60 ) + + ( parseInt( currentTime.hours ) * 60 * 60 ); + + let totalDurationSeconds = parseInt( duration.seconds ) + + ( parseInt( duration.minutes ) * 60 ) + + ( parseInt( duration.hours ) * 60 * 60 ); + + if( !isNaN( totalCurrentSeconds ) && !isNaN( totalDurationSeconds ) ){ + let timeRemainingTotalSeconds = totalDurationSeconds - totalCurrentSeconds; + + let remainingHours = Math.floor( timeRemainingTotalSeconds / 3600 ); + let remainingMinutes = Math.floor( (timeRemainingTotalSeconds - remainingHours * 3600) / 60 ); + let remainingSeconds = timeRemainingTotalSeconds - ( remainingHours * 3600 ) - ( remainingMinutes * 60 ); + + return { + hours: remainingHours < 10 ? "0" + remainingHours : remainingHours, + minutes: remainingMinutes < 10 ? "0" + remainingMinutes : remainingMinutes, + seconds: remainingSeconds < 10 ? "0" + remainingSeconds : remainingSeconds + } + }else{ + return null; + } + } + + computeCurrentTimes(){ + let currentTime = {}; + + currentTime.seconds = this.#findCurrentSeconds(); + currentTime.minutes = this.#findCurrentMinutes(); + currentTime.hours = this.#findCurrentHours(); + + return currentTime; + } + + #findCurrentSeconds(){ + let seconds = ( Math.floor( config.audio_element.currentTime % 60 ) < 10 ? "0" : "" ) + + Math.floor( config.audio_element.currentTime % 60 ); + + return seconds; + } + + #findCurrentMinutes(){ + let minutes = Math.floor( config.audio_element.currentTime / 60 ); + + if( minutes < 10 ){ + minutes = "0"+minutes; + } + + return minutes; + } + + #findCurrentHours(){ + let hours = Math.floor( config.audio_element.currentTime / 3600 ); + + if( hours < 10 ){ + hours = "0"+hours; + } + + return hours; + } + + computeAudioCompletionPercentage(){ + return ( config.audio_element.currentTime / config.audio_element.duration ) * 100; + } + + computeAudioDuration(){ + let audioDuration = {}; + + audioDuration.seconds = this.#findAudioDurationSeconds(); + audioDuration.minutes = this.#findAudioDurationMinutes(); + audioDuration.hours = this.#findAudioDurationHours(); + + return audioDuration; + } + + #findAudioDurationSeconds(){ + let seconds = ( Math.floor( config.audio_element.duration % 60 ) < 10 ? "0" : "" ) + + Math.floor( config.audio_element.duration % 60 ); + + return seconds; + } + + #findAudioDurationMinutes(){ + let minutes = Math.floor( config.audio_element.duration / 60 ); + + if( minutes < 10 ){ + minutes = "0"+minutes; + } + + return minutes; + } + + #findAudioDurationHours(){ + let hours = Math.floor( config.audio_element.duration / 3600 ); + + if( hours < 10 ){ + hours = "0"+hours; + } + + return hours; + } +} \ No newline at end of file diff --git a/src/utilities/callbacks.js b/src/utilities/_migrated/callbacks.js similarity index 80% rename from src/utilities/callbacks.js rename to src/utilities/_migrated/callbacks.js index af75354e..7e55b88f 100644 --- a/src/utilities/callbacks.js +++ b/src/utilities/_migrated/callbacks.js @@ -189,44 +189,44 @@ let Callbacks = (function() { }); } - /** - * Runs a user defined callback method - * - * Public Accessor: Callbacks.run( callbackName ) - * - * @access public - * @param {string} callbackName - The name of the callback we are going to run. - */ - function run(callbackName) { - /* - Checks to see if a user defined a callback method for the - callback we are running. - */ - if (config.callbacks[callbackName]) { - /* - Build the callback function - */ - let callbackFunction = config.callbacks[callbackName]; - - /* - Write a debug message stating the callback we are running - */ - Debug.writeMessage("Running Callback: " + callbackName); - - /* - Run the callback function and catch any errors - */ - try { - callbackFunction(); - } catch (error) { - if (error.message == "CANCEL EVENT") { - throw error; - } else { - Debug.writeMessage("Callback error: " + error.message); - } - } - } - } + // /** + // * Runs a user defined callback method + // * + // * Public Accessor: Callbacks.run( callbackName ) + // * + // * @access public + // * @param {string} callbackName - The name of the callback we are going to run. + // */ + // function run(callbackName) { + // /* + // Checks to see if a user defined a callback method for the + // callback we are running. + // */ + // if (config.callbacks[callbackName]) { + // /* + // Build the callback function + // */ + // let callbackFunction = config.callbacks[callbackName]; + + // /* + // Write a debug message stating the callback we are running + // */ + // Debug.writeMessage("Running Callback: " + callbackName); + + // /* + // Run the callback function and catch any errors + // */ + // try { + // callbackFunction(); + // } catch (error) { + // if (error.message == "CANCEL EVENT") { + // throw error; + // } else { + // Debug.writeMessage("Callback error: " + error.message); + // } + // } + // } + // } return { initialize: initialize, diff --git a/src/utilities/_migrated/debug.js b/src/utilities/_migrated/debug.js new file mode 100644 index 00000000..d03e99a7 --- /dev/null +++ b/src/utilities/_migrated/debug.js @@ -0,0 +1,9 @@ +import { config } from "@/config.js"; + +export class Debug{ + static writeMessage( message ){ + if( config.debug ){ + console.log( message ); + } + } +} diff --git a/src/utilities/shuffler.js b/src/utilities/_migrated/shuffler.js similarity index 100% rename from src/utilities/shuffler.js rename to src/utilities/_migrated/shuffler.js diff --git a/src/utilities/audioNavigation.js b/src/utilities/audioNavigation.js index cd1e0853..0db31120 100644 --- a/src/utilities/audioNavigation.js +++ b/src/utilities/audioNavigation.js @@ -73,388 +73,388 @@ import ContainerElements from "../visual/containerElements.js"; * @module utilities/AudioNavigation */ let AudioNavigation = (function() { - /** - * Sets the next song - * - * @access public - * @param {boolean} [songEnded=false] If the song ended, this is set to true - * so we take into effect the repeat setting. - */ - function setNext(songEnded = false) { - /* - Initializes the next index variable. This will be the - index of the song that is next. - */ - let nextIndex = null; - let nextSong = {}; - - /* - Ensure we don't loop in the playlist if config.repeat is not true - */ - let endOfList = false; - - /* - Determines if we are repeating the song or not. If we are repeating, - the next song will be the same song index. - */ - if (config.repeat_song) { - /* - If the playlist is shuffled, get the now playing index. - */ - if (config.shuffle_on) { - nextIndex = config.shuffle_list[config.active_index].index; - nextSong = config.shuffle_list[nextIndex]; - } else { - nextIndex = config.active_index; - nextSong = config.songs[nextIndex]; - } - } else { - /* - If the shuffle is on, we use the shuffled list of - songs to determine our next song. - */ - if (config.shuffle_on) { - /* - If the active shuffle index + 1 is less than the length, then - we use the next shuffle otherwise we go to the beginning - of the shuffle list. - */ - if (parseInt(config.active_index) + 1 < config.shuffle_list.length) { - /* - Set the next index to be the index of the song in the shuffle list. - */ - nextIndex = parseInt(config.active_index) + 1; - } else { - nextIndex = 0; - endOfList = true; - } - - nextSong = config.shuffle_list[nextIndex]; - } else { - /* - If the active index + 1 is less than the length of the songs, then - we use the next song otherwise we go to the beginning of the - song list. - */ - if (parseInt(config.active_index) + 1 < config.songs.length) { - nextIndex = parseInt(config.active_index) + 1; - } else { - nextIndex = 0; - endOfList = true; - } - - /* - Sets the next index. - */ - nextSong = config.songs[nextIndex]; - } - } - - /* - Change the song after the next button has been pressed. - */ - changeSong(nextSong, nextIndex); - - /* - If it's the end of the list and repeat is not on, do nothing. - */ - if (endOfList && !config.repeat) { - } else { - /* - If the song has ended and repeat is on, play the song. - */ - if (!(songEnded && !config.repeat && endOfList)) { - Core.play(); - } - } - - /* - Sync the play pause elements and run the - after next callback. - */ - PlayPauseElements.sync(); - Callbacks.run("next"); - - /* - If we repeated the song, run the repeat song callback. - */ - if (config.repeat_song) { - Callbacks.run("song_repeated"); - } - } - - /** - * Sets the next song in a playlist - * - * @param {string} playlist - The playlist being shuffled - * @param {boolean} [songEnded=false] - If the song ended, this is set to true - * so we take into effect the repeat setting. - */ - function setNextPlaylist(playlist, songEnded = false) { - /* - Initializes the next index - */ - let nextIndex = null; - let nextSong = {}; - - /* - Ensure we don't loop in the playlist if config.repeat is not true - */ - let endOfList = false; - - /* - If we are repeating the song, then we just start the song over. - */ - if (config.repeat_song) { - /* - If the playlist is shuffled, get the now playing index. - */ - if (config.playlists[playlist].shuffle) { - nextIndex = config.playlists[playlist].active_index; - nextSong = config.playlists[playlist].shuffle_list[nextIndex]; - } else { - nextIndex = config.playlists[playlist].active_index; - nextSong = config.playlists[playlist].songs[nextIndex]; - } - } else { - /* - If the playlist is shuffled we get the next index of the playlist. - */ - if (config.playlists[playlist].shuffle) { - /* - If the active shuffle index + 1 is less than the length of the shuffle list, - then we use the next shuffle otherwise we go to the beginning of the shuffle list. - */ - if ( - parseInt(config.playlists[playlist].active_index) + 1 < - config.playlists[playlist].shuffle_list.length - ) { - /* - Set the next index to be the index of the song in the shuffle list. - */ - nextIndex = config.playlists[playlist].active_index + 1; - } else { - nextIndex = 0; - endOfList = true; - } - - nextSong = config.playlists[playlist].shuffle_list[nextIndex]; - } else { - /* - If the active index +1 is less than the length of the songs in the playlist, - then we use the next song otherwise we go to the beginning of the playlist. - */ - if ( - parseInt(config.playlists[playlist].active_index) + 1 < - config.playlists[playlist].songs.length - ) { - nextIndex = parseInt(config.playlists[playlist].active_index) + 1; - } else { - nextIndex = 0; - endOfList = true; - } - - /* - Sets the next song. - */ - nextSong = config.playlists[playlist].songs[nextIndex]; - } - } - - /* - Sets the active playlist to the playlist we are on. - */ - setActivePlaylist(playlist); - - /* - Change the song within the playlist. - */ - changeSongPlaylist(playlist, nextSong, nextIndex); - - /* - If it's the end of the playlist and we aren't repeating, do nothing. - */ - if (endOfList && !config.repeat) { - } else { - if (!(songEnded && !config.repeat && endOfList)) { - Core.play(); - } - } - - /* - Sync the play pause buttons. - */ - PlayPauseElements.sync(); - Callbacks.run("next"); - - /* - Repeat the song. - */ - if (config.repeat_song) { - Callbacks.run("song_repeated"); - } - } - - /** - * Sets the previous song on the global songs array. - * - * @access private - */ - function setPrevious() { - /* - Initializes the previous index - */ - let previousIndex = null; - let previousSong = {}; - - /* - If we are repeating the song, then we just start the song over. - */ - if (config.repeat_song) { - /* - If the config is shuffled, get the now playing index. - */ - if (config.shuffle_on) { - previousIndex = config.active_index; - previousSong = config.shuffle_list[previousIndex]; - } else { - previousIndex = config.active_index; - previousSong = config.songs[previousIndex]; - } - } else { - /* - Get the previous index. If the previous index will be less than 0, get the - last song of the array and continue. - */ - if (parseInt(config.active_index) - 1 >= 0) { - previousIndex = parseInt(config.active_index - 1); - } else { - previousIndex = parseInt(config.songs.length - 1); - } - - /* - If the config is shuffled, we grab the song from the shuffle list - */ - if (config.shuffle_on) { - /* - Grab song from the shuffle list - */ - previousSong = config.shuffle_list[previousIndex]; - } else { - /* - Grab song from the songs array - */ - previousSong = config.songs[previousIndex]; - } - } - /* - Change the song after the next button has been pressed. - */ - changeSong(previousSong, previousIndex); - - /* - Play the newest song. - */ - Core.play(); - - /* - Sync the play pause elements and run the - after next callback. - */ - PlayPauseElements.sync(); - Callbacks.run("prev"); - - /* - If we repeated the song, run the repeat song callback. - */ - if (config.repeat_song) { - Callbacks.run("song_repeated"); - } - } - - /** - * Sets the previous playlist song. - * - * @access private - * - * @prop {string} playlist - The playlist we are navigating in. - */ - function setPreviousPlaylist(playlist) { - /* - Initializes the previous index - */ - let previousIndex = null; - let previousSong = {}; - - /* - If we are repeating the song, then we just start the song over. - */ - if (config.repeat_song) { - /* - If the playlist is shuffled, get the now playing index. - */ - if (config.playlists[playlist].shuffle) { - previousIndex = config.playlists[playlist].active_index; - previousSong = config.playlists[playlist].shuffle_list[previousIndex]; - } else { - previousIndex = config.playlists[playlist].active_index; - previousSong = config.playlists[playlist].songs[previousIndex]; - } - } else { - /* - Get the previous index. If the previous index will be less than 0, get the - last song of the array and continue. - */ - if (parseInt(config.playlists[playlist].active_index) - 1 >= 0) { - previousIndex = parseInt(config.playlists[playlist].active_index - 1); - } else { - previousIndex = parseInt(config.playlists[playlist].songs.length - 1); - } - - /* - If the playlist is shuffled, we grab the song from the shuffle list - */ - if (config.playlists[playlist].shuffle) { - /* - Grab song from the shuffle list - */ - previousSong = config.playlists[playlist].shuffle_list[previousIndex]; - } else { - /* - Grab song from the songs array - */ - previousSong = config.playlists[playlist].songs[previousIndex]; - } - } - - /* - Sets the active playlist to the playlist we are on. - */ - setActivePlaylist(playlist); - - /* - Change the song within the playlist. - */ - changeSongPlaylist(playlist, previousSong, previousIndex); - - /* - Plays the song - */ - Core.play(); - - /* - Sync the play pause buttons. - */ - PlayPauseElements.sync(); - Callbacks.run("prev"); - - /* - Repeat the song. - */ - if (config.repeat_song) { - Callbacks.run("song_repeated"); - } - } + // /** + // * Sets the next song + // * + // * @access public + // * @param {boolean} [songEnded=false] If the song ended, this is set to true + // * so we take into effect the repeat setting. + // */ + // function setNext(songEnded = false) { + // /* + // Initializes the next index variable. This will be the + // index of the song that is next. + // */ + // let nextIndex = null; + // let nextSong = {}; + + // /* + // Ensure we don't loop in the playlist if config.repeat is not true + // */ + // let endOfList = false; + + // /* + // Determines if we are repeating the song or not. If we are repeating, + // the next song will be the same song index. + // */ + // if (config.repeat_song) { + // /* + // If the playlist is shuffled, get the now playing index. + // */ + // if (config.shuffle_on) { + // nextIndex = config.shuffle_list[config.active_index].index; + // nextSong = config.shuffle_list[nextIndex]; + // } else { + // nextIndex = config.active_index; + // nextSong = config.songs[nextIndex]; + // } + // } else { + // /* + // If the shuffle is on, we use the shuffled list of + // songs to determine our next song. + // */ + // if (config.shuffle_on) { + // /* + // If the active shuffle index + 1 is less than the length, then + // we use the next shuffle otherwise we go to the beginning + // of the shuffle list. + // */ + // if (parseInt(config.active_index) + 1 < config.shuffle_list.length) { + // /* + // Set the next index to be the index of the song in the shuffle list. + // */ + // nextIndex = parseInt(config.active_index) + 1; + // } else { + // nextIndex = 0; + // endOfList = true; + // } + + // nextSong = config.shuffle_list[nextIndex]; + // } else { + // /* + // If the active index + 1 is less than the length of the songs, then + // we use the next song otherwise we go to the beginning of the + // song list. + // */ + // if (parseInt(config.active_index) + 1 < config.songs.length) { + // nextIndex = parseInt(config.active_index) + 1; + // } else { + // nextIndex = 0; + // endOfList = true; + // } + + // /* + // Sets the next index. + // */ + // nextSong = config.songs[nextIndex]; + // } + // } + + // /* + // Change the song after the next button has been pressed. + // */ + // changeSong(nextSong, nextIndex); + + // /* + // If it's the end of the list and repeat is not on, do nothing. + // */ + // if (endOfList && !config.repeat) { + // } else { + // /* + // If the song has ended and repeat is on, play the song. + // */ + // if (!(songEnded && !config.repeat && endOfList)) { + // Core.play(); + // } + // } + + // /* + // Sync the play pause elements and run the + // after next callback. + // */ + // PlayPauseElements.sync(); + // Callbacks.run("next"); + + // /* + // If we repeated the song, run the repeat song callback. + // */ + // if (config.repeat_song) { + // Callbacks.run("song_repeated"); + // } + // } + + // /** + // * Sets the next song in a playlist + // * + // * @param {string} playlist - The playlist being shuffled + // * @param {boolean} [songEnded=false] - If the song ended, this is set to true + // * so we take into effect the repeat setting. + // */ + // function setNextPlaylist(playlist, songEnded = false) { + // /* + // Initializes the next index + // */ + // let nextIndex = null; + // let nextSong = {}; + + // /* + // Ensure we don't loop in the playlist if config.repeat is not true + // */ + // let endOfList = false; + + // /* + // If we are repeating the song, then we just start the song over. + // */ + // if (config.repeat_song) { + // // /* + // // If the playlist is shuffled, get the now playing index. + // // */ + // // if (config.playlists[playlist].shuffle) { + // // nextIndex = config.playlists[playlist].active_index; + // // nextSong = config.playlists[playlist].shuffle_list[nextIndex]; + // // } else { + // // nextIndex = config.playlists[playlist].active_index; + // // nextSong = config.playlists[playlist].songs[nextIndex]; + // // } + // } else { + // /* + // If the playlist is shuffled we get the next index of the playlist. + // */ + // if (config.playlists[playlist].shuffle) { + // // /* + // // If the active shuffle index + 1 is less than the length of the shuffle list, + // // then we use the next shuffle otherwise we go to the beginning of the shuffle list. + // // */ + // // if ( + // // parseInt(config.playlists[playlist].active_index) + 1 < + // // config.playlists[playlist].shuffle_list.length + // // ) { + // // /* + // // Set the next index to be the index of the song in the shuffle list. + // // */ + // // nextIndex = config.playlists[playlist].active_index + 1; + // // } else { + // // nextIndex = 0; + // // endOfList = true; + // // } + + // // nextSong = config.playlists[playlist].shuffle_list[nextIndex]; + // } else { + // // /* + // // If the active index +1 is less than the length of the songs in the playlist, + // // then we use the next song otherwise we go to the beginning of the playlist. + // // */ + // // if ( + // // parseInt(config.playlists[playlist].active_index) + 1 < + // // config.playlists[playlist].songs.length + // // ) { + // // nextIndex = parseInt(config.playlists[playlist].active_index) + 1; + // // } else { + // // nextIndex = 0; + // // endOfList = true; + // // } + + // // /* + // // Sets the next song. + // // */ + // // nextSong = config.playlists[playlist].songs[nextIndex]; + // // } + // } + + // /* + // Sets the active playlist to the playlist we are on. + // */ + // setActivePlaylist(playlist); + + // /* + // Change the song within the playlist. + // */ + // changeSongPlaylist(playlist, nextSong, nextIndex); + + // /* + // If it's the end of the playlist and we aren't repeating, do nothing. + // */ + // if (endOfList && !config.repeat) { + // } else { + // if (!(songEnded && !config.repeat && endOfList)) { + // Core.play(); + // } + // } + + // /* + // Sync the play pause buttons. + // */ + // PlayPauseElements.sync(); + // Callbacks.run("next"); + + // /* + // Repeat the song. + // */ + // if (config.repeat_song) { + // Callbacks.run("song_repeated"); + // } + // } + + // /** + // * Sets the previous song on the global songs array. + // * + // * @access private + // */ + // function setPrevious() { + // /* + // Initializes the previous index + // */ + // let previousIndex = null; + // let previousSong = {}; + + // /* + // If we are repeating the song, then we just start the song over. + // */ + // if (config.repeat_song) { + // /* + // If the config is shuffled, get the now playing index. + // */ + // if (config.shuffle_on) { + // previousIndex = config.active_index; + // previousSong = config.shuffle_list[previousIndex]; + // } else { + // previousIndex = config.active_index; + // previousSong = config.songs[previousIndex]; + // } + // } else { + // /* + // Get the previous index. If the previous index will be less than 0, get the + // last song of the array and continue. + // */ + // if (parseInt(config.active_index) - 1 >= 0) { + // previousIndex = parseInt(config.active_index - 1); + // } else { + // previousIndex = parseInt(config.songs.length - 1); + // } + + // /* + // If the config is shuffled, we grab the song from the shuffle list + // */ + // if (config.shuffle_on) { + // /* + // Grab song from the shuffle list + // */ + // previousSong = config.shuffle_list[previousIndex]; + // } else { + // /* + // Grab song from the songs array + // */ + // previousSong = config.songs[previousIndex]; + // } + // } + // /* + // Change the song after the next button has been pressed. + // */ + // changeSong(previousSong, previousIndex); + + // /* + // Play the newest song. + // */ + // Core.play(); + + // /* + // Sync the play pause elements and run the + // after next callback. + // */ + // PlayPauseElements.sync(); + // Callbacks.run("prev"); + + // /* + // If we repeated the song, run the repeat song callback. + // */ + // if (config.repeat_song) { + // Callbacks.run("song_repeated"); + // } + // } + + // /** + // * Sets the previous playlist song. + // * + // * @access private + // * + // * @prop {string} playlist - The playlist we are navigating in. + // */ + // function setPreviousPlaylist(playlist) { + // /* + // Initializes the previous index + // */ + // let previousIndex = null; + // let previousSong = {}; + + // /* + // If we are repeating the song, then we just start the song over. + // */ + // if (config.repeat_song) { + // /* + // If the playlist is shuffled, get the now playing index. + // */ + // if (config.playlists[playlist].shuffle) { + // previousIndex = config.playlists[playlist].active_index; + // previousSong = config.playlists[playlist].shuffle_list[previousIndex]; + // } else { + // previousIndex = config.playlists[playlist].active_index; + // previousSong = config.playlists[playlist].songs[previousIndex]; + // } + // } else { + // /* + // Get the previous index. If the previous index will be less than 0, get the + // last song of the array and continue. + // */ + // if (parseInt(config.playlists[playlist].active_index) - 1 >= 0) { + // previousIndex = parseInt(config.playlists[playlist].active_index - 1); + // } else { + // previousIndex = parseInt(config.playlists[playlist].songs.length - 1); + // } + + // /* + // If the playlist is shuffled, we grab the song from the shuffle list + // */ + // if (config.playlists[playlist].shuffle) { + // /* + // Grab song from the shuffle list + // */ + // previousSong = config.playlists[playlist].shuffle_list[previousIndex]; + // } else { + // /* + // Grab song from the songs array + // */ + // previousSong = config.playlists[playlist].songs[previousIndex]; + // } + // } + + // /* + // Sets the active playlist to the playlist we are on. + // */ + // setActivePlaylist(playlist); + + // /* + // Change the song within the playlist. + // */ + // changeSongPlaylist(playlist, previousSong, previousIndex); + + // /* + // Plays the song + // */ + // Core.play(); + + // /* + // Sync the play pause buttons. + // */ + // PlayPauseElements.sync(); + // Callbacks.run("prev"); + + // /* + // Repeat the song. + // */ + // if (config.repeat_song) { + // Callbacks.run("song_repeated"); + // } + // } /** * Change song in the songs array. @@ -489,6 +489,7 @@ let AudioNavigation = (function() { /** * Handles a song change in the playlist * + * @todo This is now CollectionNavigation.changeAudioCollection(); * @access private * @prop {string} playlist - The playlist we are changing the song on. * @prop {object} song - The song we are changing to in the playlist. @@ -496,27 +497,27 @@ let AudioNavigation = (function() { * @prop {boolean} direct - Determines if it was a direct click on the song. We * then don't care if shuffle is on or not */ - function changeSongPlaylist(playlist, song, index, direct = false) { - /* - Prepare the song change. - */ - prepareSongChange(song); - - /* - Change the song. - */ - config.audio.src = song.url; - config.active_metadata = song; - config.active_album = song.album; - config.active_index = null; - - config.playlists[playlist].active_index = parseInt(index); - - /* - Set new information now that the song has changed. - */ - afterSongChange(direct); - } + // function changeSongPlaylist(playlist, song, index, direct = false) { + // /* + // Prepare the song change. + // */ + // prepareSongChange(song); + + // /* + // Change the song. + // */ + // config.audio.src = song.url; + // config.active_metadata = song; + // config.active_album = song.album; + // config.active_index = null; + + // config.playlists[playlist].active_index = parseInt(index); + + // /* + // Set new information now that the song has changed. + // */ + // afterSongChange(direct); + // } /** * Prepares a song change @@ -555,7 +556,7 @@ let AudioNavigation = (function() { * @access private */ function afterSongChange(direct) { - MetaDataElements.displayMetaData(); + MetaDataElements.updateActiveMetaData(); ContainerElements.setActive(direct); TimeElements.resetDurationTimes(); @@ -565,30 +566,30 @@ let AudioNavigation = (function() { Callbacks.run("song_change"); } - /** - * Sets the active playlist - * - * @access public - * @param {string} playlist - The string of the playlist being set to active. - */ - function setActivePlaylist(playlist) { - /* - If the active playlist is different than the playlist being set, - we run the `playlist_changed` callback. - */ - if (config.active_playlist != playlist) { - Callbacks.run("playlist_changed"); - /* - Set the active playlist to the playlist parameter. Only need to - set if it's different. - */ - config.active_playlist = playlist; - - if (playlist != null) { - config.playlists[playlist].active_index = 0; - } - } - } + // /** + // * Sets the active playlist + // * + // * @access public + // * @param {string} playlist - The string of the playlist being set to active. + // */ + // function setActivePlaylist(playlist) { + // /* + // If the active playlist is different than the playlist being set, + // we run the `playlist_changed` callback. + // */ + // if (config.active_playlist != playlist) { + // Callbacks.run("playlist_changed"); + // /* + // Set the active playlist to the playlist parameter. Only need to + // set if it's different. + // */ + // config.active_playlist = playlist; + + // if (playlist != null) { + // config.playlists[playlist].active_index = 0; + // } + // } + // } /* Return the publically facing methods diff --git a/src/utilities/checks.js b/src/utilities/checks.js index 07c02248..3428b4a6 100644 --- a/src/utilities/checks.js +++ b/src/utilities/checks.js @@ -1,140 +1,149 @@ -/** - * Imports the config module - * @module config - */ -import config from "../config.js"; +import { config } from '@/config.js'; + +export class Checks{ + static audioExists( index ){ + + } + + static newAudio( grouping, index ){ + } +} /** - * AmplitudeJS Checks Module. Checks for new songs, albums, and playlists - * - * @module utilities/Checks + * @todo LOOK BELOW.. We need to refactor out the playlist information so that goes + * directly into the playlist check */ -let Checks = (function() { - /** - * Checks to see if the new song to be played is different than the song - * that is currently playing. To be true, the user would have selected - * play on a new song with a new index. To be false, the user would have - * clicked play/pause on the song that was playing. - * - * Public Accessor: Checks.newSong( playlist, songIndex ) - * @access public - * @param {string} playlist - The playlist we are checking the new song for. Could be null - * @param {number} songIndex - The index of the new song to be played. - * @returns {boolean} True if we are setting a new song, false if we are not setting a new song. - */ - function newSong(playlist, songIndex) { - /* - If the playlists don't match, then it's definitely a new song. - */ - if (config.active_playlist != playlist) { - return true; - } else { - /* - If we aren't in a playlist, we check the active index. - */ - if (config.active_playlist == null && playlist == null) { - /* - If the active indexes don't match, then it's a new song. - */ - if (config.active_index != songIndex) { - return true; - } else { - return false; - } - } else { - /* - If we are in a playlist, then we check to see if the - new song index matches the active index. - */ - if ( - config.active_playlist == playlist && - config.playlists[playlist].active_index != songIndex - ) { - return true; - } else { - return false; - } - } - } - } +// /** +// * AmplitudeJS Checks Module. Checks for new songs, albums, and playlists +// * +// * @module utilities/Checks +// */ +// let Checks = (function() { +// /** +// * Checks to see if the new song to be played is different than the song +// * that is currently playing. To be true, the user would have selected +// * play on a new song with a new index. To be false, the user would have +// * clicked play/pause on the song that was playing. +// * +// * Public Accessor: Checks.newSong( playlist, songIndex ) +// * @access public +// * @param {string} playlist - The playlist we are checking the new song for. Could be null +// * @param {number} songIndex - The index of the new song to be played. +// * @returns {boolean} True if we are setting a new song, false if we are not setting a new song. +// */ +// function newSong(playlist, songIndex) { +// /* +// If the playlists don't match, then it's definitely a new song. +// */ +// if (config.active_playlist != playlist) { +// return true; +// } else { +// /* +// If we aren't in a playlist, we check the active index. +// */ +// if (config.active_playlist == null && playlist == null) { +// /* +// If the active indexes don't match, then it's a new song. +// */ +// if (config.active_index != songIndex) { +// return true; +// } else { +// return false; +// } +// } else { +// /* +// If we are in a playlist, then we check to see if the +// new song index matches the active index. +// */ +// if ( +// config.active_playlist == playlist && +// config.playlists[playlist].active_index != songIndex +// ) { +// return true; +// } else { +// return false; +// } +// } +// } +// } - /** - * Checks to see if there is a new album - * - * Public Accessor: Checks.newAlbum( album ) - * - * @access public - * @param {string} album - Checks to see if the new song will have a new album. - * @returns {boolean} True if there is a new album, false if there is not a new ablum. - */ - function newAlbum(album) { - if (config.active_album != album) { - return true; - } else { - return false; - } - } +// /** +// * Checks to see if there is a new album +// * +// * Public Accessor: Checks.newAlbum( album ) +// * +// * @access public +// * @param {string} album - Checks to see if the new song will have a new album. +// * @returns {boolean} True if there is a new album, false if there is not a new ablum. +// */ +// function newAlbum(album) { +// if (config.active_album != album) { +// return true; +// } else { +// return false; +// } +// } - /** - * Checks to see if there is a new playlist - * - * Public Accessor: Checks.newPlaylist( playlist ) - * - * @access public - * @param {string} playlist - The playlist passed in to check against the active playlist. - * @returns {boolean} True if there is a new playlist, false if there is not a new playlist. - */ - function newPlaylist(playlist) { - if (config.active_playlist != playlist) { - return true; - } else { - return false; - } - } +// /** +// * Checks to see if there is a new playlist +// * +// * Public Accessor: Checks.newPlaylist( playlist ) +// * +// * @access public +// * @param {string} playlist - The playlist passed in to check against the active playlist. +// * @returns {boolean} True if there is a new playlist, false if there is not a new playlist. +// */ +// function newPlaylist(playlist) { +// if (config.active_playlist != playlist) { +// return true; +// } else { +// return false; +// } +// } - /** - * Determines if the string passed in is a URL or not - * - * Public Accessor: AmplitudeHelpers.isURL( url ) - * - * @access public - * @param {string} url - The string we are testing to see if it's a URL. - * @returns {boolean} True if the string is a url, false if it is not. - */ - function isURL(url) { - /* - Test the string against the URL pattern and return if it matches - */ - let pattern = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/; +// /** +// * Determines if the string passed in is a URL or not +// * +// * Public Accessor: AmplitudeHelpers.isURL( url ) +// * +// * @access public +// * @param {string} url - The string we are testing to see if it's a URL. +// * @returns {boolean} True if the string is a url, false if it is not. +// */ +// function isURL(url) { +// /* +// Test the string against the URL pattern and return if it matches +// */ +// let pattern = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/; - return pattern.test(url); - } +// return pattern.test(url); +// } - /** - * Determines if what is passed in is an integer or not. - * - * Public Accessor: AmplitudeHelpers.isInt( int ) - * - * @access public - * @param {string|number} int - The variable we are testing to see is an integer or not. - * @returns {boolean} If the variable is an integer or not. - */ - function isInt(int) { - return ( - !isNaN(int) && parseInt(Number(int)) == int && !isNaN(parseInt(int, 10)) - ); - } +// /** +// * Determines if what is passed in is an integer or not. +// * +// * Public Accessor: AmplitudeHelpers.isInt( int ) +// * +// * @access public +// * @param {string|number} int - The variable we are testing to see is an integer or not. +// * @returns {boolean} If the variable is an integer or not. +// */ +// function isInt(int) { +// return ( +// !isNaN(int) && parseInt(Number(int)) == int && !isNaN(parseInt(int, 10)) +// ); +// } - /** - * Returns public facing methods - */ - return { - newSong: newSong, - newAlbum: newAlbum, - newPlaylist: newPlaylist, - isURL: isURL, - isInt: isInt - }; -})(); +// /** +// * Returns public facing methods +// */ +// return { +// newSong: newSong, +// newAlbum: newAlbum, +// newPlaylist: newPlaylist, +// isURL: isURL, +// isInt: isInt +// }; +// })(); -export default Checks; +// export default Checks; diff --git a/src/utilities/configState.js b/src/utilities/configState.js deleted file mode 100644 index 19b74951..00000000 --- a/src/utilities/configState.js +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../config.js"; - -/** - * Handles the state of the config object. - * - * @module utilities/ConfigState - */ -let ConfigState = (function() { - /** - * Resets the config to the default state. This is called on initialize - * to ensure the user's config is what matters. - * - * Public Accessor: AmplitudeHelpers.resetConfig() - * - * @access public - */ - function resetConfig() { - config.audio = new Audio(); - config.active_metadata = {}; - config.active_album = ""; - config.active_index = 0; - config.active_playlist = null; - config.playback_speed = 1.0; - config.callbacks = {}; - config.songs = []; - config.playlists = {}; - config.start_song = ""; - config.starting_playlist = ""; - config.starting_playlist_song = ""; - config.repeat = false; - config.shuffle_list = {}; - config.shuffle_on = false; - config.default_album_art = ""; - config.default_playlist_art = ""; - config.debug = false; - config.volume = 0.5; - config.pre_mute_volume = 0.5; - config.volume_increment = 5; - config.volume_decrement = 5; - config.soundcloud_client = ""; - config.soundcloud_use_art = false; - config.soundcloud_song_count = 0; - config.soundcloud_songs_ready = 0; - config.continue_next = true; - } - - /** - * Sets the state of the player. - */ - function setPlayerState() { - /* - If paused and the current time is 0 the player is stopped. - */ - if (config.audio.paused && config.audio.currentTime == 0) { - config.player_state = "stopped"; - } - - /* - If paused and the current time is greater than 0 the player is - paused. - */ - if (config.audio.paused && config.audio.currentTime > 0) { - config.player_state = "paused"; - } - - /* - If playing, the current state is playing. - */ - if (!config.audio.paused) { - config.player_state = "playing"; - } - } - - /* - Returns the public facing methods - */ - return { - resetConfig: resetConfig, - setPlayerState: setPlayerState - }; -})(); - -export default ConfigState; diff --git a/src/utilities/debug.js b/src/utilities/debug.js deleted file mode 100644 index 55abc8bb..00000000 --- a/src/utilities/debug.js +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../config.js"; - -/** - * Handles the debugging of AmplitudeJS - * @module utilities/Debug - */ -let Debug = (function() { - /** - * Writes out debug message to the console if enabled. - * - * Public Accessor: Debug.writeMessage( message ) - * - * @access public - * @param {string} message - The string that gets printed to alert the user of a debugging error. - */ - function writeMessage(message) { - /* - If the user has flagged AmplitudeJS to debug, we print out a message - to the console. - */ - if (config.debug) { - console.log(message); - } - } - - /* - Returns the public facing methods - */ - return { - writeMessage: writeMessage - }; -})(); - -export default Debug; diff --git a/src/utilities/time.js b/src/utilities/time.js index ab29157b..113c0063 100644 --- a/src/utilities/time.js +++ b/src/utilities/time.js @@ -15,62 +15,62 @@ let Time = (function() { * * @access public */ - function computeCurrentTimes() { - /* - Initialize the current time object that will be returned. - */ - let currentTime = {}; - - /* - Computes the current seconds for the song. - */ - let currentSeconds = - (Math.floor(config.audio.currentTime % 60) < 10 ? "0" : "") + - Math.floor(config.audio.currentTime % 60); - - /* - Computes the current minutes for the song. - */ - let currentMinutes = Math.floor(config.audio.currentTime / 60); - - /* - Initialize the current hours variable. - */ - let currentHours = "00"; - - /* - If the current minutes is less than 10, we add a leading 0. - */ - if (currentMinutes < 10) { - currentMinutes = "0" + currentMinutes; - } - - /* - If the user is more than 60 minutes into the song, then - we extract the hours. - */ - if (currentMinutes >= 60) { - currentHours = Math.floor(currentMinutes / 60); - currentMinutes = currentMinutes % 60; - - /* - If the user is less than 10 minutes in, we append the - additional 0 to the minutes. - */ - if (currentMinutes < 10) { - currentMinutes = "0" + currentMinutes; - } - } - - /* - Build a clean current time object and send back the appropriate information. - */ - currentTime.seconds = currentSeconds; - currentTime.minutes = currentMinutes; - currentTime.hours = currentHours; - - return currentTime; - } + // function computeCurrentTimes() { + // /* + // Initialize the current time object that will be returned. + // */ + // let currentTime = {}; + + // /* + // Computes the current seconds for the song. + // */ + // let currentSeconds = + // (Math.floor(config.audio.currentTime % 60) < 10 ? "0" : "") + + // Math.floor(config.audio.currentTime % 60); + + // /* + // Computes the current minutes for the song. + // */ + // let currentMinutes = Math.floor(config.audio.currentTime / 60); + + // /* + // Initialize the current hours variable. + // */ + // let currentHours = "00"; + + // /* + // If the current minutes is less than 10, we add a leading 0. + // */ + // if (currentMinutes < 10) { + // currentMinutes = "0" + currentMinutes; + // } + + // /* + // If the user is more than 60 minutes into the song, then + // we extract the hours. + // */ + // if (currentMinutes >= 60) { + // currentHours = Math.floor(currentMinutes / 60); + // currentMinutes = currentMinutes % 60; + + // /* + // If the user is less than 10 minutes in, we append the + // additional 0 to the minutes. + // */ + // if (currentMinutes < 10) { + // currentMinutes = "0" + currentMinutes; + // } + // } + + // /* + // Build a clean current time object and send back the appropriate information. + // */ + // currentTime.seconds = currentSeconds; + // currentTime.minutes = currentMinutes; + // currentTime.hours = currentHours; + + // return currentTime; + // } /** * Computes the current song duration. Breaks down where the song is into @@ -141,33 +141,33 @@ let Time = (function() { return songDuration; } - /** - * Computes the song completion percentage. - * - * @access public - */ - function computeSongCompletionPercentage() { - return (config.audio.currentTime / config.audio.duration) * 100; - } - - /** - * Sets the current time for the audio. - * - * @access public - */ - function setCurrentTime(time) { - /* - If the song is not live, we can set the current time. - */ - if (!config.active_metadata.live) { - /* - Makes sure the number is finite to set the time. - */ - if (isFinite(time)) { - config.audio.currentTime = time; - } - } - } + // /** + // * Computes the song completion percentage. + // * + // * @access public + // */ + // function computeSongCompletionPercentage() { + // return (config.audio.currentTime / config.audio.duration) * 100; + // } + + // /** + // * Sets the current time for the audio. + // * + // * @access public + // */ + // function setCurrentTime(time) { + // /* + // If the song is not live, we can set the current time. + // */ + // if (!config.active_metadata.live) { + // /* + // Makes sure the number is finite to set the time. + // */ + // if (isFinite(time)) { + // config.audio.currentTime = time; + // } + // } + // } /** * Defines what is returned by the module diff --git a/src/visual/bufferedProgressElements.js b/src/visual/bufferedProgressElements.js deleted file mode 100644 index 7f74bcc2..00000000 --- a/src/visual/bufferedProgressElements.js +++ /dev/null @@ -1,180 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../config.js"; - -/** - * AmplitudeJS Visual Handler for Buffered Progress Elements - * - * @module visual/BufferedProgressElements - */ -let BufferedProgressElements = (function() { - /** - * Syncs the buffered progress bars to the current percentage in the config - * - * @access public - */ - function sync() { - syncGlobal(); - syncPlaylist(); - syncSong(); - syncSongInPlaylist(); - } - - /** - * Sync the global song buffered progress elements. - */ - function syncGlobal() { - /* - Gets all of the song buffered progress bars. - */ - const songBufferedProgressBars = document.getElementsByClassName( - "amplitude-buffered-progress" - ); - - /* - Iterate over all of the song buffered progress bar and - set them to 0 which is like re-setting them. - */ - for (let i = 0; i < songBufferedProgressBars.length; i++) { - let playlist = songBufferedProgressBars[i].getAttribute( - "data-amplitude-playlist" - ); - let song = songBufferedProgressBars[i].getAttribute( - "data-amplitude-song-index" - ); - - if (playlist == null && song == null && !isNaN(config.buffered)) { - songBufferedProgressBars[i].value = parseFloat( - parseFloat(config.buffered) / 100 - ); - } - } - } - - /** - * Sync the playlist song buffered progress elements. - */ - function syncPlaylist() { - /* - Gets all of the song buffered progress bars. - */ - const songBufferedProgressBarsPlaylist = document.querySelectorAll( - '.amplitude-buffered-progress[data-amplitude-playlist="' + - config.active_playlist + - '"]' - ); - - /* - Iterate over all of the song buffered progress bar and - set them to 0 which is like re-setting them. - */ - for (let i = 0; i < songBufferedProgressBarsPlaylist.length; i++) { - let song = songBufferedProgressBarsPlaylist[i].getAttribute( - "data-amplitude-song-index" - ); - - if (song == null && !isNaN(config.buffered)) { - songBufferedProgressBarsPlaylist[i].value = parseFloat( - parseFloat(config.buffered) / 100 - ); - } - } - } - - /** - * Sync the song song buffered progress elements. - */ - function syncSong() { - /* - Gets all of the song buffered progress bars. - */ - const songBufferedProgressBarsSongs = document.querySelectorAll( - '.amplitude-buffered-progress[data-amplitude-song-index="' + - config.active_index + - '"]' - ); - - /* - Iterate over all of the song buffered progress bar and - set them to 0 which is like re-setting them. - */ - for (let i = 0; i < songBufferedProgressBarsSongs.length; i++) { - let playlist = songBufferedProgressBarsSongs[i].getAttribute( - "data-amplitude-playlist" - ); - - if (playlist == null && !isNaN(config.buffered)) { - songBufferedProgressBarsSongs[i].value = parseFloat( - parseFloat(config.buffered) / 100 - ); - } - } - } - - /** - * Sync the song in playlist song buffered progress elements. - */ - function syncSongInPlaylist() { - let activePlaylistIndex = - config.active_playlist != null && config.active_playlist != "" - ? config.playlists[config.active_playlist].active_index - : null; - - /* - Gets all of the song buffered progress bars. - */ - const songBufferedProgressBarsSongsInPlaylist = document.querySelectorAll( - '.amplitude-buffered-progress[data-amplitude-song-index="' + - activePlaylistIndex + - '"][data-amplitude-playlist="' + - config.active_playlist + - '"]' - ); - - /* - Iterate over all of the song buffered progress bar and - set them to 0 which is like re-setting them. - */ - for (let i = 0; i < songBufferedProgressBarsSongsInPlaylist.length; i++) { - if (!isNaN(config.buffered)) { - songBufferedProgressBarsSongsInPlaylist[i].value = parseFloat( - parseFloat(config.buffered) / 100 - ); - } - } - } - - /** - * Sets all of the song buffered progress bars to 0 - * - * @access public - */ - function reset() { - /* - Gets all of the song buffered progress bars. - */ - let songBufferedProgressBars = document.getElementsByClassName( - "amplitude-buffered-progress" - ); - - /* - Iterate over all of the song buffered progress bar and - set them to 0 which is like re-setting them. - */ - for (let i = 0; i < songBufferedProgressBars.length; i++) { - songBufferedProgressBars[i].value = 0; - } - } - - /** - * Returns the public facing methods - */ - return { - sync: sync, - reset: reset - }; -})(); - -export default BufferedProgressElements; diff --git a/src/visual/containerElements.js b/src/visual/containerElements.js deleted file mode 100644 index bc9ee66c..00000000 --- a/src/visual/containerElements.js +++ /dev/null @@ -1,131 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../config.js"; - -/** - * Handles all of the container elements. - * - * @param visual/ContainerElements - */ -let ContainerElements = (function() { - /** - * Applies the class 'amplitude-active-song-container' to the element - * containing visual information regarding the active song. - * - * @prop {boolean} direct - Determines if it was a direct click on the song. We - * then don't care if shuffle is on or not. - * - * @access public - */ - function setActive(direct) { - /* - Gets all of the song container elements. - */ - let songContainers = document.getElementsByClassName( - "amplitude-song-container" - ); - - /* - Removes all of the active song containrs. - */ - for (let i = 0; i < songContainers.length; i++) { - songContainers[i].classList.remove("amplitude-active-song-container"); - } - - /* - Finds the active index and adds the active song container to the element - that represents the song at the index. - */ - if (config.active_playlist == "" || config.active_playlist == null) { - let activeIndex = ""; - - /* - If we click directly on the song element, we ignore - whether it's in shuffle or not. - */ - if (direct) { - activeIndex = config.active_index; - } else { - if (config.shuffle_on) { - activeIndex = config.shuffle_list[config.active_index].index; - } else { - activeIndex = config.active_index; - } - } - - if ( - document.querySelectorAll( - '.amplitude-song-container[data-amplitude-song-index="' + - activeIndex + - '"]' - ) - ) { - let songContainers = document.querySelectorAll( - '.amplitude-song-container[data-amplitude-song-index="' + - activeIndex + - '"]' - ); - - for (let i = 0; i < songContainers.length; i++) { - if (!songContainers[i].hasAttribute("data-amplitude-playlist")) { - songContainers[i].classList.add("amplitude-active-song-container"); - } - } - } - } else { - /* - If we have an active playlist or the action took place directly on the - song element, we ignore the shuffle. - */ - if ( - (config.active_playlist != null && config.active_playlist != "") || - direct - ) { - var activePlaylistIndex = - config.playlists[config.active_playlist].active_index; - } else { - var activePlaylistIndex = ""; - - if (config.playlists[config.active_playlist].shuffle) { - activePlaylistIndex = - config.playlists[config.active_playlist].shuffle_list[ - config.playlists[config.active_playlist].active_index - ].index; - } else { - activePlaylistIndex = - config.playlists[config.active_playlist].active_index; - } - } - - if ( - document.querySelectorAll( - '.amplitude-song-container[data-amplitude-song-index="' + - activePlaylistIndex + - '"][data-amplitude-playlist="' + - config.active_playlist + - '"]' - ) - ) { - let songContainers = document.querySelectorAll( - '.amplitude-song-container[data-amplitude-song-index="' + - activePlaylistIndex + - '"][data-amplitude-playlist="' + - config.active_playlist + - '"]' - ); - - for (let i = 0; i < songContainers.length; i++) { - songContainers[i].classList.add("amplitude-active-song-container"); - } - } - } - } - - return { - setActive: setActive - }; -})(); - -export default ContainerElements; diff --git a/src/visual/metaDataElements.js b/src/visual/metaDataElements.js deleted file mode 100644 index e57e88b3..00000000 --- a/src/visual/metaDataElements.js +++ /dev/null @@ -1,348 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../config.js"; - -/** - * These methods help display the audio's meta data - * - * @module visual/MetaDataElements - */ -let MetaDataElements = (function() { - /** - * Displays the active song's metadata. This is called after a song has - * been changed. This method takes the active song and displays the - * metadata. So once the new active song is set, we update all of the - * screen elements. - * - * @access public - */ - function displayMetaData() { - /* - Define the image meta data keys. These are managed separately - since we aren't actually changing the inner HTML of these elements. - */ - let imageMetaDataKeys = [ - "cover_art_url", - "station_art_url", - "podcast_episode_cover_art_url" - ]; - - /* - Get all of the song info elements - */ - let songInfoElements = document.querySelectorAll( - "[data-amplitude-song-info]" - ); - - /* - Iterate over all of the song info elements. We will either - set these to the new values, or clear them if the active song - doesn't have the info set. - */ - for (let i = 0; i < songInfoElements.length; i++) { - /* - Get the info so we can check if the active meta data has the - key. - */ - let info = songInfoElements[i].getAttribute("data-amplitude-song-info"); - - /* - Grab the playlist and song index. - */ - let playlist = songInfoElements[i].getAttribute( - "data-amplitude-playlist" - ); - let songIndex = songInfoElements[i].getAttribute( - "data-amplitude-song-index" - ); - - /* - Ensure that we don't set any individual elements now. We set this with the - sync meta data method. The reason we don't set them here is because - all individual songs would get the now playing artwork. If the playlists - match or the element is a main element meaning it doesn't - belong to a playlist or a song, then we set the song info. - */ - if ( - songIndex == null && - (config.active_playlist == playlist || - (playlist == null && songIndex == null)) - ) { - /* - If the active metadata has the key, then we set it, - otherwise we clear it. If it's an image element then - we default it to the default info if needed. - */ - let val = (config.active_metadata[info] != undefined) ? config.active_metadata[info] : null; - if (imageMetaDataKeys.indexOf(info) >= 0) { - val = val || config.default_album_art - songInfoElements[i].setAttribute( - "src", - val - ); - } else { - val = val || "" - songInfoElements[i].innerHTML = val; - } - } - } - } - - /** - * Displays the playlist meta data. - */ - function displayPlaylistMetaData() { - /* - Define the image meta data keys. These are managed separately - since we aren't actually changing the inner HTML of these elements. - */ - let imageMetaDataKeys = ["image_url"]; - - /* - Get all of the playlist info elements - */ - let playlistInfoElements = document.querySelectorAll( - "[data-amplitude-playlist-info]" - ); - - /* - Iterate over all of the playlist info elements. We will either - set these to the new values, or clear them if the active song - doesn't have the info set. - */ - for (let i = 0; i < playlistInfoElements.length; i++) { - /* - Get the info so we can check if the active meta data has the - key. - */ - let info = playlistInfoElements[i].getAttribute( - "data-amplitude-playlist-info" - ); - let playlist = playlistInfoElements[i].getAttribute( - "data-amplitude-playlist" - ); - - if (config.playlists[playlist][info] != undefined) { - if (imageMetaDataKeys.indexOf(info) >= 0) { - playlistInfoElements[i].setAttribute( - "src", - config.playlists[playlist][info] - ); - } else { - playlistInfoElements[i].innerHTML = config.playlists[playlist][info]; - } - } else { - /* - We look for the default album art because - the actual key didn't exist. If the default album - art doesn't exist then we set the src attribute - to null. - */ - if (imageMetaDataKeys.indexOf(info) >= 0) { - if (config.default_playlist_art != "") { - playlistInfoElements[i].setAttribute( - "src", - config.default_playlist_art - ); - } else { - playlistInfoElements[i].setAttribute("src", ""); - } - } else { - playlistInfoElements[i].innerHTML = ""; - } - } - } - } - - /** - * Sets the first song in the playlist. This is used to fill in the meta - * data in the playlist - * - * @param {object} song - The song we are setting to be the first song in the playlist - * @param {string} playlist - Key of the playlist we are setting the first song in - */ - function setFirstSongInPlaylist(song, playlist) { - /* - Define the image meta data keys. These are managed separately - since we aren't actually changing the inner HTML of these elements. - */ - let imageMetaDataKeys = [ - "cover_art_url", - "station_art_url", - "podcast_episode_cover_art_url" - ]; - - /* - Get all of the song info elements - */ - let songInfoElements = document.querySelectorAll( - '[data-amplitude-song-info][data-amplitude-playlist="' + playlist + '"]' - ); - - /* - Iterate over all of the song info elements. We will either - set these to the new values, or clear them if the active song - doesn't have the info set. - */ - for (let i = 0; i < songInfoElements.length; i++) { - /* - Get the info so we can check if the active meta data has the - key. - */ - let info = songInfoElements[i].getAttribute("data-amplitude-song-info"); - - /* - Get the song info element playlist. - */ - let elementPlaylist = songInfoElements[i].getAttribute( - "data-amplitude-playlist" - ); - - /* - If the playlists match or the element is a main element, then - we set the song info. - */ - if (elementPlaylist == playlist) { - /* - If the active metadata has the key, then we set it, - otherwise we clear it. If it's an image element then - we default it to the default info if needed. - */ - if (song[info] != undefined) { - if (imageMetaDataKeys.indexOf(info) >= 0) { - songInfoElements[i].setAttribute("src", song[info]); - } else { - songInfoElements[i].innerHTML = song[info]; - } - } else { - /* - We look for the default album art because - the actual key didn't exist. If the default album - art doesn't exist then we set the src attribute - to null. - */ - if (imageMetaDataKeys.indexOf(info) >= 0) { - if (song.default_album_art != "") { - songInfoElements[i].setAttribute("src", song.default_album_art); - } else { - songInfoElements[i].setAttribute("src", ""); - } - } else { - songInfoElements[i].innerHTML = ""; - } - } - } - } - } - - /** - * Sets the meta data for songs loaded in the songs array - */ - function syncMetaData() { - /* - Define the image meta data keys. These are managed separately - since we aren't actually changing the inner HTML of these elements. - */ - let imageMetaDataKeys = [ - "cover_art_url", - "station_art_url", - "podcast_episode_cover_art_url" - ]; - - /* - Get all of the song info elements - */ - let songInfoElements = document.querySelectorAll( - "[data-amplitude-song-info]" - ); - - /* - Iterate over all of the song info elements. We will either - set these to the new values, or clear them if the active song - doesn't have the info set. - */ - for (let i = 0; i < songInfoElements.length; i++) { - let songIndex = songInfoElements[i].getAttribute( - "data-amplitude-song-index" - ); - let playlist = songInfoElements[i].getAttribute( - "data-amplitude-playlist" - ); - - if (songIndex != null && playlist == null) { - let info = songInfoElements[i].getAttribute("data-amplitude-song-info"); - - /* - Get the song info value referenced on the element. Depending on the type of - element, we may need to fallback to another value when the direct value - we want isn't found. - i.e. - data-amplitude-song-info="cover_art_url" defaults to using the value - of "default_album_art" when "cover_art_url" is missing on the song. - */ - let val = config.songs[songIndex][info] != undefined ? config.songs[songIndex][info] : null; - /* - If it's an image meta data key, then we set the src attribute of - the element. Otherwise we set the inner HTML of the element. - */ - if (imageMetaDataKeys.indexOf(info) >= 0) { - /* - If this is an image meta data key and the individual song doesn't - have the key, use the default_album_art - */ - val = val || config.default_album_art - songInfoElements[i].setAttribute( - "src", - val - ); - } else { - songInfoElements[i].innerHTML = val; - } - } - - /* - If the song index and playlist are not null, continue. - */ - if (songIndex != null && playlist != null) { - /* - Get the info we are displaying. - */ - let info = songInfoElements[i].getAttribute("data-amplitude-song-info"); - - /* - Set the meta data accordingly. - */ - if (config.playlists[playlist].songs[songIndex][info] != undefined) { - if (imageMetaDataKeys.indexOf(info) >= 0) { - songInfoElements[i].setAttribute( - "src", - config.playlists[playlist].songs[songIndex][info] - ); - } else { - songInfoElements[i].innerHTML = - config.playlists[playlist].songs[songIndex][info]; - } - } - } - } - - /* - Display the playlist meta data. - */ - displayPlaylistMetaData(); - } - - /** - * Returns publically facing methods - */ - return { - displayMetaData: displayMetaData, - setFirstSongInPlaylist: setFirstSongInPlaylist, - syncMetaData: syncMetaData, - displayPlaylistMetaData: displayPlaylistMetaData - }; -})(); - -export default MetaDataElements; diff --git a/src/visual/muteElements.js b/src/visual/muteElements.js deleted file mode 100644 index c5017b18..00000000 --- a/src/visual/muteElements.js +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Handles the visual state for all of the mute elements. - * - * @module visual/MuteElements - */ -let MuteElements = (function() { - /** - * Syncs mute for all of the mute buttons. This represents the - * state of the player if it's muted or not. - * - * @access public - * @param {string} state - The muted state of the player. - */ - function setMuted(state) { - /* - Get all of the mute buttons. - */ - let muteClasses = document.getElementsByClassName("amplitude-mute"); - - /* - Iterate over all of the mute classes. If the state of the player - is not-muted then we add the amplitude-not-muted classe and remove - the amplitude muted class otherwise we do the opposite. - */ - for (let i = 0; i < muteClasses.length; i++) { - if (!state) { - muteClasses[i].classList.add("amplitude-not-muted"); - muteClasses[i].classList.remove("amplitude-muted"); - } else { - muteClasses[i].classList.remove("amplitude-not-muted"); - muteClasses[i].classList.add("amplitude-muted"); - } - } - } - - return { - setMuted: setMuted - }; -})(); - -export default MuteElements; diff --git a/src/visual/playPauseElements.js b/src/visual/playPauseElements.js deleted file mode 100644 index 8f94d5bb..00000000 --- a/src/visual/playPauseElements.js +++ /dev/null @@ -1,279 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../config.js"; - -/** - * Defines the visual representation of AmplitudeJS play pause elements. - * @module visual/PlayPauseElements - */ -let PlayPauseElements = (function() { - /** - * Syncs all play pause elements. - * - * @access public - */ - function sync() { - syncGlobal(); - syncPlaylist(); - syncSong(); - syncSongInPlaylist(); - } - - /** - * Syncs the global play pause buttons to the state of the active song. - * - * @access public - */ - function syncGlobal() { - /* - Get the active song state. - */ - let state = config.audio.paused ? "paused" : "playing"; - - /* - Get all play pause buttons. - */ - const playPauseElements = document.querySelectorAll( - ".amplitude-play-pause" - ); - - /* - Iterate over all of the play pause elements syncing the - display visually. - */ - for (let i = 0; i < playPauseElements.length; i++) { - /* - Grab the playlist and song attributes from the element. - */ - let playlist = playPauseElements[i].getAttribute( - "data-amplitude-playlist" - ); - let song = playPauseElements[i].getAttribute("data-amplitude-song-index"); - - /* - This method is responsible for only the global elements, - so we make sure there are no playlist or songs defined on - the element. - */ - if (playlist == null && song == null) { - /* - Determines what classes we should add and remove - from the elements. - */ - switch (state) { - case "playing": - setElementPlay(playPauseElements[i]); - break; - case "paused": - setElementPause(playPauseElements[i]); - break; - } - } - } - } - - /** - * Syncs the main playlist play pause buttons to the state of the active song. - * - * @access public - */ - function syncPlaylist() { - let state = config.audio.paused ? "paused" : "playing"; - - /* - Get all of the main playlist play pause elements - */ - const playlistPlayPauseElements = document.querySelectorAll( - '.amplitude-play-pause[data-amplitude-playlist="' + - config.active_playlist + - '"]' - ); - - /* - Iterate over the play pause elements, syncing the state accordingly. - */ - for (let i = 0; i < playlistPlayPauseElements.length; i++) { - /* - Grab the song attributes from the element. - */ - let song = playlistPlayPauseElements[i].getAttribute( - "data-amplitude-song-index" - ); - - /* - We want only the play pause elements for the main on a - playlist nothing else. We have another method for the - song in playlist play pause method. - */ - if (song == null) { - /* - Determines what classes we should add and remove - from the elements. - */ - switch (state) { - case "playing": - setElementPlay(playlistPlayPauseElements[i]); - break; - case "paused": - setElementPause(playlistPlayPauseElements[i]); - break; - } - } - } - } - - /** - * Syncs the song play pause buttons to the state of the active song. - * - * @access public - */ - function syncSong() { - let state = config.audio.paused ? "paused" : "playing"; - - /* - Get all of the individual song play pause buttons. These have an - amplitude-song-index that matches the active index attribute. - */ - let songPlayPauseElements = document.querySelectorAll( - '.amplitude-play-pause[data-amplitude-song-index="' + - config.active_index + - '"]' - ); - - /* - Iterate over all of the song play pause elements - */ - for (let i = 0; i < songPlayPauseElements.length; i++) { - /* - Grab the playlist attributes from the element. - */ - let playlist = songPlayPauseElements[i].getAttribute( - "data-amplitude-playlist" - ); - - /* - We want only the song play pause buttons, not ones scoped in a playlist. - */ - if (playlist == null) { - /* - Determines what classes we should add and remove - from the elements. - */ - switch (state) { - case "playing": - setElementPlay(songPlayPauseElements[i]); - break; - case "paused": - setElementPause(songPlayPauseElements[i]); - break; - } - } - } - } - - /** - * Syncs the song in playlist play pause buttons to the state of - * the active song. - * - * @access public - */ - function syncSongInPlaylist() { - let state = config.audio.paused ? "paused" : "playing"; - - let activePlaylistIndex = - config.active_playlist != "" && config.active_playlist != null - ? config.playlists[config.active_playlist].active_index - : null; - - /* - Get all of the individual song play pause buttons. These have an - amplitude-song-index attribute. Some have amplitude-playlist which - means they are individual songs within a playlist. - */ - let songInPlaylistPlayPauseElements = document.querySelectorAll( - '.amplitude-play-pause[data-amplitude-song-index="' + - activePlaylistIndex + - '"][data-amplitude-playlist="' + - config.active_playlist + - '"]' - ); - - /* - Iterate over all of the individual play pause elements for songs inspect - a playlist. - */ - for (let i = 0; i < songInPlaylistPlayPauseElements.length; i++) { - /* - Determines what classes we should add and remove - from the elements. - */ - switch (state) { - case "playing": - setElementPlay(songInPlaylistPlayPauseElements[i]); - break; - case "paused": - setElementPause(songInPlaylistPlayPauseElements[i]); - break; - } - } - } - - /** - * Sets all of the play pause buttons to paused. - * - * @access public - */ - function syncToPause() { - /* - Gets all of the play pause elements - */ - let playPauseElements = document.querySelectorAll(".amplitude-play-pause"); - - /* - Sets all of the elements to pause - */ - for (let i = 0; i < playPauseElements.length; i++) { - setElementPause(playPauseElements[i]); - } - } - - /** - * Sets an element to be playing by removing the 'amplitude-paused' class - * and adding the 'amplitude-playing' class - * - * @access public - * @param {element} element - The element getting the playing class added. - */ - function setElementPlay(element) { - element.classList.add("amplitude-playing"); - element.classList.remove("amplitude-paused"); - } - - /** - * Sets an element to be paused by adding the 'amplitude-paused' class - * and removing the 'amplitude-playing' class - * - * @access public - * @param {element} element - The element getting the paused class added. - */ - function setElementPause(element) { - element.classList.remove("amplitude-playing"); - element.classList.add("amplitude-paused"); - } - - /** - * Returns the public facing methods - */ - return { - sync: sync, - syncGlobal: syncGlobal, - syncPlaylist: syncPlaylist, - syncSong: syncSong, - syncSongInPlaylist: syncSongInPlaylist, - syncToPause: syncToPause - }; -})(); - -export default PlayPauseElements; diff --git a/src/visual/playbackSpeedElements.js b/src/visual/playbackSpeedElements.js deleted file mode 100644 index 666a836d..00000000 --- a/src/visual/playbackSpeedElements.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../config.js"; - -/** - * Defines the Playback Speed Visual Elements Handler - * @module visual/PlaybackSpeedElements - */ -let PlaybackSpeedElements = (function() { - /** - * Sets all of the visual playback speed buttons to have the right class - * to display the background image that represents the current playback - * speed. - * - * @access public - */ - function sync() { - /* - Gets all of the playback speed classes. - */ - let playbackSpeedClasses = document.getElementsByClassName( - "amplitude-playback-speed" - ); - - /* - Iterates over all of the playback speed classes - applying the right speed class for visual purposes. - */ - for (let i = 0; i < playbackSpeedClasses.length; i++) { - /* - Removes all of the old playback speed classes. - */ - playbackSpeedClasses[i].classList.remove("amplitude-playback-speed-10"); - playbackSpeedClasses[i].classList.remove("amplitude-playback-speed-15"); - playbackSpeedClasses[i].classList.remove("amplitude-playback-speed-20"); - - /* - Switch the current playback speed and apply the appropriate - speed class. - */ - switch (config.playback_speed) { - case 1: - playbackSpeedClasses[i].classList.add("amplitude-playback-speed-10"); - break; - case 1.5: - playbackSpeedClasses[i].classList.add("amplitude-playback-speed-15"); - break; - case 2: - playbackSpeedClasses[i].classList.add("amplitude-playback-speed-20"); - break; - } - } - } - - /** - * Returns the public facing methods - */ - return { - sync: sync - }; -})(); - -export default PlaybackSpeedElements; diff --git a/src/visual/songPlayedProgressElements.js b/src/visual/songPlayedProgressElements.js deleted file mode 100644 index 9ee88ff5..00000000 --- a/src/visual/songPlayedProgressElements.js +++ /dev/null @@ -1,200 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../config.js"; - -/** - * Handles the syncing of the song played progress elements. - * - * @module visual/SongPlayedProgressElements - */ -let SongPlayedProgressElements = (function() { - /** - * Syncs the song played progress bars. These are HTML5 progress elements. - * - * @access private - * @param {number} songPlayedPercentage - The percentage of the song that has been played. - */ - function sync(songPlayedPercentage) { - syncGlobal(songPlayedPercentage); - syncPlaylist(songPlayedPercentage); - syncSong(songPlayedPercentage); - syncSongInPlaylist(songPlayedPercentage); - } - - /** - * Sync how much has been played with a progress bar. This is the global progress bar. - * - * @access private - * @param {number} songPlayedPercentage - The percent of the song completed. - */ - function syncGlobal(percentage) { - /* - Ensure that the song completion percentage is a number - */ - if (!isNaN(percentage)) { - /* - Get all of the song progress bars - */ - let songPlayedProgressBars = document.querySelectorAll( - ".amplitude-song-played-progress" - ); - - for (let i = 0; i < songPlayedProgressBars.length; i++) { - let playlist = songPlayedProgressBars[i].getAttribute( - "data-amplitude-playlist" - ); - let songIndex = songPlayedProgressBars[i].getAttribute( - "data-amplitude-song-index" - ); - - if (playlist == null && songIndex == null) { - let max = songPlayedProgressBars[i].max; - - songPlayedProgressBars[i].value = (percentage / 100) * max; - } - } - } - } - - /** - * Sync how much has been played with a progress bar. This is the playlist progress bar. - * - * @access public - * @param {number} songPlayedPercentage - The percent of the song completed. - */ - function syncPlaylist(percentage) { - /* - Ensure that the song completion percentage is a number - */ - if (!isNaN(percentage)) { - /* - Get all of the song progress bars - */ - let songPlayedProgressBars = document.querySelectorAll( - '.amplitude-song-played-progress[data-amplitude-playlist="' + - config.active_playlist + - '"]' - ); - - for (let i = 0; i < songPlayedProgressBars.length; i++) { - let song = songPlayedProgressBars[i].getAttribute( - "data-amplitude-song-index" - ); - - if (song == null) { - let max = songPlayedProgressBars[i].max; - - songPlayedProgressBars[i].value = (percentage / 100) * max; - } - } - } - } - - /** - * Sync how much has been played with a progress bar. This is for an individual song. - * - * @access private - * @param {number} songPlayedPercentage - The percent of the song completed. - */ - function syncSong(percentage) { - if (config.active_playlist == null) { - /* - Ensure that the song completion percentage is a number - */ - if (!isNaN(percentage)) { - /* - Get all of the song progress bars - */ - let songPlayedProgressBars = document.querySelectorAll( - '.amplitude-song-played-progress[data-amplitude-song-index="' + - config.active_index + - '"]' - ); - - for (let i = 0; i < songPlayedProgressBars.length; i++) { - let playlist = songPlayedProgressBars[i].getAttribute( - "data-amplitude-playlist" - ); - - if (playlist == null) { - let max = songPlayedProgressBars[i].max; - - songPlayedProgressBars[i].value = (percentage / 100) * max; - } - } - } - } - } - - /** - * Sync how much has been played with a progress bar. This is for an individual song in playlist. - * - * @access private - * @param {number} songPlayedPercentage - The percent of the song completed. - */ - function syncSongInPlaylist(percentage) { - /* - Ensure that the song completion percentage is a number - */ - if (!isNaN(percentage)) { - let activePlaylistIndex = - config.active_playlist != "" && config.active_playlist != null - ? config.playlists[config.active_playlist].active_index - : null; - - /* - Get all of the song progress bars - */ - let songPlayedProgressBars = document.querySelectorAll( - '.amplitude-song-played-progress[data-amplitude-playlist="' + - config.active_playlist + - '"][data-amplitude-song-index="' + - activePlaylistIndex + - '"]' - ); - - /* - Iterates over all of the song played progress elements - and sets them accordingly. - */ - for (let i = 0; i < songPlayedProgressBars.length; i++) { - let playlist = songPlayedProgressBars[i].getAttribute( - "data-amplitude-playlist" - ); - let songIndex = songPlayedProgressBars[i].getAttribute( - "data-amplitude-song-index" - ); - - if (playlist != null && songIndex != null) { - let max = songPlayedProgressBars[i].max; - - songPlayedProgressBars[i].value = (percentage / 100) * max; - } - } - } - } - - /** - * Sets all of the song played progress bars to 0 - * - * @access public - */ - function resetElements() { - let songPlayedProgressBars = document.getElementsByClassName( - "amplitude-song-played-progress" - ); - - for (let i = 0; i < songPlayedProgressBars.length; i++) { - songPlayedProgressBars[i].value = 0; - } - } - - return { - sync: sync, - resetElements: resetElements - }; -})(); - -export default SongPlayedProgressElements; diff --git a/src/visual/time/currentHourElements.js b/src/visual/time/currentHourElements.js deleted file mode 100644 index 036701b5..00000000 --- a/src/visual/time/currentHourElements.js +++ /dev/null @@ -1,176 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../../config.js"; - -/** - * Handles all of the current time hour elements. - * - * @module visual/time/CurrentHourElements - */ -let CurrentHourElements = (function() { - function sync(hours) { - syncGlobal(hours); - syncPlaylist(hours); - syncSong(hours); - syncSongInPlaylist(hours); - } - - /** - * Updates any elements that display the current hour for the song. - * - * @access public - * @param {number} hours - An integer conaining how many hours into the song. - */ - function syncGlobal(hours) { - /* - Get all of the hour selectors - */ - const currentHourSelectors = document.querySelectorAll( - ".amplitude-current-hours" - ); - - /* - Set the current hour selector's inner html to hours passed in. - */ - for (let i = 0; i < currentHourSelectors.length; i++) { - let playlist = currentHourSelectors[i].getAttribute( - "data-amplitude-playlist" - ); - let songIndex = currentHourSelectors[i].getAttribute( - "data-amplitude-song-index" - ); - - /* - Updates the current hour selector for a global display. - */ - if (playlist == null && songIndex == null) { - currentHourSelectors[i].innerHTML = hours; - } - } - } - - /** - * Syncs the playlist current hour elements. - * - * @param {Integer} hour - The current audio hour. - */ - function syncPlaylist(hours) { - /* - Get all of the hour selectors - */ - const currentHourPlaylistSelectors = document.querySelectorAll( - '.amplitude-current-hours[data-amplitude-playlist="' + - config.active_playlist + - '"]' - ); - - /* - Set the current hour selector's inner html to hours passed in. - */ - for (let i = 0; i < currentHourPlaylistSelectors.length; i++) { - let songIndex = currentHourPlaylistSelectors[i].getAttribute( - "data-amplitude-song-index" - ); - - /* - Updates the current hour selector for a global display. - */ - if (songIndex == null) { - currentHourPlaylistSelectors[i].innerHTML = hours; - } - } - } - - /** - * Syncs the song hour elements. - * - * @param {Integer} hour - The current audio hour. - */ - function syncSong(hours) { - if (config.active_playlist == null) { - /* - Get all of the hour selectors - */ - const currentHourSongSelectors = document.querySelectorAll( - '.amplitude-current-hours[data-amplitude-song-index="' + - config.active_index + - '"]' - ); - - /* - Set the current hour selector's inner html to hours passed in. - */ - for (let i = 0; i < currentHourSongSelectors.length; i++) { - let playlist = currentHourSongSelectors[i].getAttribute( - "data-amplitude-playlist" - ); - - /* - Updates the current hour selector for a global display. - */ - if (playlist == null) { - currentHourSongSelectors[i].innerHTML = hours; - } - } - } - } - - /** - * Syncs the song in playlist song hour elements. - * - * @param {Integer} hour - The current audio hour. - */ - function syncSongInPlaylist(hours) { - let activePlaylistIndex = - config.active_playlist != "" && config.active_playlist != null - ? config.playlists[config.active_playlist].active_index - : null; - /* - Get all of the hour selectors - */ - const currentHourPlaylistSongSelectors = document.querySelectorAll( - '.amplitude-current-hours[data-amplitude-playlist="' + - config.active_playlist + - '"][data-amplitude-song-index="' + - activePlaylistIndex + - '"]' - ); - - /* - Set the current hour selector's inner html to hours passed in. - */ - for (let i = 0; i < currentHourPlaylistSongSelectors.length; i++) { - currentHourPlaylistSongSelectors[i].innerHTML = hours; - } - } - - /** - * Reset the current hour elements. - */ - function resetTimes() { - /* - Gets the hour display elements - */ - let hourSelectors = document.querySelectorAll(".amplitude-current-hours"); - - /* - Iterates over all of the hour selectors and sets the inner HTML - to 00. - */ - for (var i = 0; i < hourSelectors.length; i++) { - hourSelectors[i].innerHTML = "00"; - } - } - - /** - * Returns the publically facing methods. - */ - return { - sync: sync, - resetTimes: resetTimes - }; -})(); - -export default CurrentHourElements; diff --git a/src/visual/time/currentMinuteElements.js b/src/visual/time/currentMinuteElements.js deleted file mode 100644 index 0a854b49..00000000 --- a/src/visual/time/currentMinuteElements.js +++ /dev/null @@ -1,183 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../../config.js"; - -/** - * Handles all of the current time minutes elements. - * - * @module visual/time/CurrentMinuteElements - */ -let CurrentMinuteElements = (function() { - /** - * Syncs the current minutes elements. - * - * @param {Integer} minutes - The current audio minutes. - */ - function sync(minutes) { - syncGlobal(minutes); - syncPlaylist(minutes); - syncSong(minutes); - syncSongInPlaylist(minutes); - } - - /** - * Syncs the global current minutes elements. - * - * @param {Integer} minutes - The current audio minutes. - */ - function syncGlobal(minutes) { - /* - Get all of the minute selectors - */ - const currentMinuteSelectors = document.querySelectorAll( - ".amplitude-current-minutes" - ); - - /* - Set the current minute selector's inner html to minutes passed in. - */ - for (let i = 0; i < currentMinuteSelectors.length; i++) { - let playlist = currentMinuteSelectors[i].getAttribute( - "data-amplitude-playlist" - ); - let songIndex = currentMinuteSelectors[i].getAttribute( - "data-amplitude-song-index" - ); - - /* - Updates the current minute selector for a global display. - */ - if (playlist == null && songIndex == null) { - currentMinuteSelectors[i].innerHTML = minutes; - } - } - } - - /** - * Syncs the playlist minutes elements. - * - * @param {Integer} minutes - The current audio minutes. - */ - function syncPlaylist(minutes) { - /* - Get all of the minute selectors - */ - const currentMinutePlaylistSelectors = document.querySelectorAll( - '.amplitude-current-minutes[data-amplitude-playlist="' + - config.active_playlist + - '"]' - ); - - /* - Set the current minute selector's inner html to minutes passed in. - */ - for (let i = 0; i < currentMinutePlaylistSelectors.length; i++) { - let songIndex = currentMinutePlaylistSelectors[i].getAttribute( - "data-amplitude-song-index" - ); - - /* - Updates the current minute selector for a global display. - */ - if (songIndex == null) { - currentMinutePlaylistSelectors[i].innerHTML = minutes; - } - } - } - - /** - * Syncs the current song minutes elements. - * - * @param {Integer} minutes - The current audio minutes. - */ - function syncSong(minutes) { - if (config.active_playlist == null) { - /* - Get all of the minute selectors - */ - const currentMinuteSongSelectors = document.querySelectorAll( - '.amplitude-current-minutes[data-amplitude-song-index="' + - config.active_index + - '"]' - ); - - /* - Set the current minute selector's inner html to minutes passed in. - */ - for (let i = 0; i < currentMinuteSongSelectors.length; i++) { - let playlist = currentMinuteSongSelectors[i].getAttribute( - "data-amplitude-playlist" - ); - - /* - Updates the current minute selector for a global display. - */ - if (playlist == null) { - currentMinuteSongSelectors[i].innerHTML = minutes; - } - } - } - } - - /** - * Syncs the current song in playlist minutes elements. - * - * @param {Integer} minutes - The current audio minutes. - */ - function syncSongInPlaylist(minutes) { - let activePlaylistIndex = - config.active_playlist != "" && config.active_playlist != null - ? config.playlists[config.active_playlist].active_index - : null; - - /* - Get all of the minute selectors - */ - const currentMinutePlaylistSongSelectors = document.querySelectorAll( - '.amplitude-current-minutes[data-amplitude-playlist="' + - config.active_playlist + - '"][data-amplitude-song-index="' + - activePlaylistIndex + - '"]' - ); - - /* - Set the current minute selector's inner html to minutes passed in. - */ - for (let i = 0; i < currentMinutePlaylistSongSelectors.length; i++) { - currentMinutePlaylistSongSelectors[i].innerHTML = minutes; - } - } - - /** - * Reset the current times. - */ - function resetTimes() { - /* - Gets the minute display elements - */ - let minuteSelectors = document.querySelectorAll( - ".amplitude-current-minutes" - ); - - /* - Iterates over all of the minute selectors and sets the inner HTML - to 00. - */ - for (var i = 0; i < minuteSelectors.length; i++) { - minuteSelectors[i].innerHTML = "00"; - } - } - - /** - * Returns the publically facing methods. - */ - return { - sync: sync, - resetTimes: resetTimes - }; -})(); - -export default CurrentMinuteElements; diff --git a/src/visual/time/currentSecondElements.js b/src/visual/time/currentSecondElements.js deleted file mode 100644 index 7d40f620..00000000 --- a/src/visual/time/currentSecondElements.js +++ /dev/null @@ -1,182 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../../config.js"; - -/** - * Handles all of the current time seconds elements. - * - * @module visual/time/CurrentSecondElements - */ -let CurrentSecondElements = (function() { - /** - * Syncs the current seconds elements. - * - * @param {Integer} seconds - The current audio seconds. - */ - function sync(seconds) { - syncGlobal(seconds); - syncPlaylist(seconds); - syncSong(seconds); - syncSongInPlaylist(seconds); - } - - /** - * Syncs the global current seconds elements. - * - * @param {Integer} seconds - The current audio seconds. - */ - function syncGlobal(seconds) { - /* - Get all of the second selectors - */ - const currentSecondSelectors = document.querySelectorAll( - ".amplitude-current-seconds" - ); - - /* - Set the current second selector's inner html to seconds passed in. - */ - for (let i = 0; i < currentSecondSelectors.length; i++) { - let playlist = currentSecondSelectors[i].getAttribute( - "data-amplitude-playlist" - ); - let songIndex = currentSecondSelectors[i].getAttribute( - "data-amplitude-song-index" - ); - - /* - Updates the current second selector for a global display. - */ - if (playlist == null && songIndex == null) { - currentSecondSelectors[i].innerHTML = seconds; - } - } - } - - /** - * Syncs the playlist seconds elements. - * - * @param {Integer} seconds - The current audio seconds. - */ - function syncPlaylist(seconds) { - /* - Get all of the second selectors - */ - const currentSecondPlaylistSelectors = document.querySelectorAll( - '.amplitude-current-seconds[data-amplitude-playlist="' + - config.active_playlist + - '"]' - ); - - /* - Set the current second selector's inner html to seconds passed in. - */ - for (let i = 0; i < currentSecondPlaylistSelectors.length; i++) { - let songIndex = currentSecondPlaylistSelectors[i].getAttribute( - "data-amplitude-song-index" - ); - - /* - Updates the current second selector for a global display. - */ - if (songIndex == null) { - currentSecondPlaylistSelectors[i].innerHTML = seconds; - } - } - } - - /** - * Syncs the current song seconds elements. - * - * @param {Integer} seconds - The current audio seconds. - */ - function syncSong(seconds) { - if (config.active_playlist == null) { - /* - Get all of the second selectors - */ - const currentSecondSongSelectors = document.querySelectorAll( - '.amplitude-current-seconds[data-amplitude-song-index="' + - config.active_index + - '"]' - ); - - /* - Set the current second selector's inner html to seconds passed in. - */ - for (let i = 0; i < currentSecondSongSelectors.length; i++) { - let playlist = currentSecondSongSelectors[i].getAttribute( - "data-amplitude-playlist" - ); - - /* - Updates the current second selector for a global display. - */ - if (playlist == null) { - currentSecondSongSelectors[i].innerHTML = seconds; - } - } - } - } - - /** - * Syncs the current song in playlist seconds elements. - * - * @param {Integer} seconds - The current audio seconds. - */ - function syncSongInPlaylist(seconds) { - let activePlaylistIndex = - config.active_playlist != "" && config.active_playlist != null - ? config.playlists[config.active_playlist].active_index - : null; - /* - Get all of the second selectors - */ - const currentSecondPlaylistSongSelectors = document.querySelectorAll( - '.amplitude-current-seconds[data-amplitude-playlist="' + - config.active_playlist + - '"][data-amplitude-song-index="' + - activePlaylistIndex + - '"]' - ); - - /* - Set the current second selector's inner html to seconds passed in. - */ - for (let i = 0; i < currentSecondPlaylistSongSelectors.length; i++) { - currentSecondPlaylistSongSelectors[i].innerHTML = seconds; - } - } - - /** - * Reset the current seconds elements. - */ - function resetTimes() { - /* - Gets the second display elements - */ - let secondSelectors = document.querySelectorAll( - ".amplitude-current-seconds" - ); - - /* - Iterates over all of the second selectors and sets the inner HTML - to 00. - */ - for (var i = 0; i < secondSelectors.length; i++) { - secondSelectors[i].innerHTML = "00"; - } - } - - /** - * Returns the publically facing methods. - */ - return { - sync: sync, - resetTimes: resetTimes - }; -})(); - -export default CurrentSecondElements; diff --git a/src/visual/time/currentTimeElements.js b/src/visual/time/currentTimeElements.js deleted file mode 100644 index 07188aca..00000000 --- a/src/visual/time/currentTimeElements.js +++ /dev/null @@ -1,214 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../../config.js"; - -/** - * These methods help sync visual time elements. - * - * @module visual/CurrentTimeElements - */ -let CurrentTimeElements = (function() { - /** - * Visually displays the current time on the screen. This is called on - * time update for the current song. - * - * @access public - * @param {object} currentTime - An object containing the current time for the song in seconds, minutes, and hours. - */ - function sync(currentTime) { - /* - Set current time display. - */ - syncGlobal(currentTime); - syncPlaylist(currentTime); - syncSong(currentTime); - syncSongInPlaylist(currentTime); - } - - /** - * Updates any elements that display the current time for the song. This - * is a computed field that will be commonly used. - * - * @access public - * @param {object} time - A json object conaining the parts for the current time for the song. - */ - function syncGlobal(time) { - /* - Get all of the time selectors. - */ - let currentTimeSelectors = document.querySelectorAll( - ".amplitude-current-time" - ); - - /* - Set the time selector's inner html to the current time for the song. The current - time is computed by joining minutes and seconds. - */ - var timeText = time.minutes + ":" + time.seconds; - - if (time.hours > 0) { - timeText = time.hours + ":" + timeText; - } - - for (let i = 0; i < currentTimeSelectors.length; i++) { - let playlist = currentTimeSelectors[i].getAttribute( - "data-amplitude-playlist" - ); - let songIndex = currentTimeSelectors[i].getAttribute( - "data-amplitude-song-index" - ); - - if (playlist == null && songIndex == null) { - currentTimeSelectors[i].innerHTML = timeText; - } - } - } - - /** - * Updates any elements that display the current time for the song. This - * is a computed field that will be commonly used. - * - * @access public - * @param {object} time - A json object conaining the parts for the current time for the song. - */ - function syncPlaylist(time) { - /* - Get all of the time selectors. - */ - let currentTimeSelectors = document.querySelectorAll( - '.amplitude-current-time[data-amplitude-playlist="' + - config.active_playlist + - '"]' - ); - - /* - Set the time selector's inner html to the current time for the song. The current - time is computed by joining minutes and seconds. - */ - var timeText = time.minutes + ":" + time.seconds; - - if (time.hours > 0) { - timeText = time.hours + ":" + timeText; - } - - for (let i = 0; i < currentTimeSelectors.length; i++) { - let songIndex = currentTimeSelectors[i].getAttribute( - "data-amplitude-song-index" - ); - - if (songIndex == null) { - currentTimeSelectors[i].innerHTML = timeText; - } - } - } - - /** - * Updates any elements that display the current time for the song. This - * is a computed field that will be commonly used. - * - * @access public - * @param {object} time - A json object conaining the parts for the current time for the song. - */ - function syncSong(time) { - if (config.active_playlist == null) { - /* - Get all of the time selectors. - */ - let currentTimeSelectors = document.querySelectorAll( - '.amplitude-current-time[data-amplitude-song-index="' + - config.active_index + - '"]' - ); - - /* - Set the time selector's inner html to the current time for the song. The current - time is computed by joining minutes and seconds. - */ - var timeText = time.minutes + ":" + time.seconds; - - if (time.hours > 0) { - timeText = time.hours + ":" + timeText; - } - - for (let i = 0; i < currentTimeSelectors.length; i++) { - let playlist = currentTimeSelectors[i].getAttribute( - "data-amplitude-playlist" - ); - - if (playlist == null) { - currentTimeSelectors[i].innerHTML = timeText; - } - } - } - } - - /** - * Updates any elements that display the current time for the song. This - * is a computed field that will be commonly used. - * - * @access public - * @param {object} time - A json object conaining the parts for the current time for the song. - */ - function syncSongInPlaylist(time) { - let activePlaylistIndex = - config.active_playlist != "" && config.active_playlist != null - ? config.playlists[config.active_playlist].active_index - : null; - /* - Get all of the time selectors. - */ - let currentTimeSelectors = document.querySelectorAll( - '.amplitude-current-time[data-amplitude-playlist="' + - config.active_playlist + - '"][data-amplitude-song-index="' + - activePlaylistIndex + - '"]' - ); - - /* - Set the time selector's inner html to the current time for the song. The current - time is computed by joining minutes and seconds. - */ - var timeText = time.minutes + ":" + time.seconds; - - if (time.hours > 0) { - timeText = time.hours + ":" + timeText; - } - - for (let i = 0; i < currentTimeSelectors.length; i++) { - currentTimeSelectors[i].innerHTML = timeText; - } - } - - /** - * Resets the current time displays to 00:00 - * - * @access public - */ - function resetTimes() { - /* - Gets the time selector display elements - */ - let timeSelectors = document.querySelectorAll(".amplitude-current-time"); - - /* - Iterates over all of the time selectors and sets the inner HTML - to 00. - */ - for (let i = 0; i < timeSelectors.length; i++) { - timeSelectors[i].innerHTML = "00:00"; - } - } - - /** - * Returns the publically facing methods - */ - return { - sync: sync, - resetTimes: resetTimes - }; -})(); - -export default CurrentTimeElements; diff --git a/src/visual/volumeSliderElements.js b/src/visual/volumeSliderElements.js deleted file mode 100644 index cb2a8728..00000000 --- a/src/visual/volumeSliderElements.js +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Imports the config module - * @module config - */ -import config from "../config.js"; - -/** - * Keeps the volume slider elements in sync. - * @module visual/VolumeSliderElements - */ -let VolumeSliderElements = (function() { - /** - * Visually syncs the volume sliders so they are all the same if there - * are more than one. - * - * @access public - */ - function sync() { - let volumeSliders = document.getElementsByClassName( - "amplitude-volume-slider" - ); - - /* - Iterates over all of the volume sliders for the song, setting the value - to the config value. - */ - for (let i = 0; i < volumeSliders.length; i++) { - volumeSliders[i].value = config.audio.volume * 100; - } - } - - /** - * Returns the public facing methods - */ - return { - sync: sync - }; -})(); - -export default VolumeSliderElements; diff --git a/dist/visualizations/bar.js b/visualizations/bar.js similarity index 100% rename from dist/visualizations/bar.js rename to visualizations/bar.js diff --git a/dist/visualizations/circular-equalizer.js b/visualizations/circular-equalizer.js similarity index 100% rename from dist/visualizations/circular-equalizer.js rename to visualizations/circular-equalizer.js diff --git a/dist/visualizations/frequencyanalyzer.js b/visualizations/frequencyanalyzer.js similarity index 100% rename from dist/visualizations/frequencyanalyzer.js rename to visualizations/frequencyanalyzer.js diff --git a/dist/visualizations/michaelbromley.js b/visualizations/michaelbromley.js similarity index 100% rename from dist/visualizations/michaelbromley.js rename to visualizations/michaelbromley.js diff --git a/dist/visualizations/template.js b/visualizations/template.js similarity index 100% rename from dist/visualizations/template.js rename to visualizations/template.js diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 00000000..29dae797 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,25 @@ +// vite.config.js +import path from 'path' +import { defineConfig } from 'vite' + +export default defineConfig({ + build: { + lib: { + entry: path.resolve(__dirname, 'src/index.js'), + name: 'Amplitude', + // the proper extensions will be added + fileName: 'amplitude', + formats: ['es', 'cjs', 'umd'] + }, + rollupOptions: { + output: { + sourcemap: true + } + } + }, + resolve: { + alias: { + '@': path.resolve(__dirname, '/src'), + } + }, +}) \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index 86f6ad83..00000000 --- a/webpack.config.js +++ /dev/null @@ -1,29 +0,0 @@ -const webpack = require('webpack'); -const path = require('path'); -module.exports = { - entry: { - 'amplitude': './src/index.js', - 'amplitude.min': './src/index.js' - }, - output: { - path: path.resolve(__dirname, './dist'), - filename: '[name].js', - library: 'Amplitude', - libraryTarget: 'umd', - umdNamedDefine: true - }, - module: { - loaders: [{ - test: /\.js$/, - exclude: /node_modules/, - loader: 'babel-loader' - }] - }, - plugins: [ - new webpack.optimize.UglifyJsPlugin({ - include: /\.min\.js$/, - minimize: true - }) - ], - devtool: 'source-map' -} diff --git a/webpack.development.config.js b/webpack.development.config.js new file mode 100644 index 00000000..9aeb485c --- /dev/null +++ b/webpack.development.config.js @@ -0,0 +1,32 @@ +const path = require('path'); + +module.exports = { + mode: 'development', + watch: true, + entry: path.resolve(__dirname, "src/index.js"), + output: { + path: path.resolve(__dirname, './dist'), + filename: 'amplitude.js', + library: { + name: 'Amplitude', + type: 'umd', + umdNamedDefine: true, + export: 'default' + } + }, + module: { + rules: [ + { + test: /\.(js)$/, + exclude: /node_modules/, + use: "babel-loader", + }, + ], + }, + resolve: { + alias: { + '@': path.resolve(__dirname, 'src/'), + } + }, + devtool: 'source-map' +} diff --git a/webpack.production.config.js b/webpack.production.config.js new file mode 100644 index 00000000..eedbcab4 --- /dev/null +++ b/webpack.production.config.js @@ -0,0 +1,30 @@ +const path = require('path'); + +module.exports = { + mode: 'production', + entry: path.resolve(__dirname, "src/index.js"), + output: { + path: path.resolve(__dirname, './dist'), + filename: 'amplitude.min.js', + library: { + name: 'Amplitude', + type: 'umd', + umdNamedDefine: true + } + }, + module: { + rules: [ + { + test: /\.(js)$/, + exclude: /node_modules/, + use: "babel-loader", + }, + ], + }, + resolve: { + alias: { + '@': 'src', + } + }, + devtool: 'source-map' +}