Comparing version 3.5.0 to 4.0.0
865
index.js
/*! | ||
* AsyncAF (async/await fun) | ||
* async-af v4.0.0 | ||
* | ||
* async-af v3.5.0 | ||
* AsyncAF (Async/Await Fun) | ||
* (https://async-af.js.org/AsyncAF) | ||
* | ||
* Copyright (c) 2017-present, Scott Rudiger (https://github.com/ScottRudiger) | ||
* | ||
* This source code is licensed under the MIT license found in this library's GitHub repository (https://github.com/AsyncAF/AsyncAF/blob/master/LICENSE). | ||
* This source code is licensed under the MIT license found in this library's | ||
* GitHub repository (https://github.com/AsyncAF/AsyncAF/blob/master/LICENSE). | ||
*/ | ||
@@ -14,7 +16,7 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
else if(typeof define === 'function' && define.amd) | ||
define("async-af", [], factory); | ||
define("AsyncAF", [], factory); | ||
else if(typeof exports === 'object') | ||
exports["async-af"] = factory(); | ||
exports["AsyncAF"] = factory(); | ||
else | ||
root["async-af"] = root["async-af"] || {}, root["async-af"]["async-af"] = factory(); | ||
root["AsyncAF"] = factory(); | ||
})(typeof self !== 'undefined' ? self : this, function() { | ||
@@ -98,5 +100,102 @@ return /******/ (function(modules) { // webpackBootstrap | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony import */ var _AsyncAfWrapper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/classes/AsyncAfWrapper.js"); | ||
/* harmony import */ var _packageList__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./packageList.js"); | ||
// EXTERNAL MODULE: ./lib/classes/AsyncAfWrapper.js + 1 modules | ||
var AsyncAfWrapper = __webpack_require__("./lib/classes/AsyncAfWrapper.js"); | ||
// EXTERNAL MODULE: ./lib/methods/other/logAF.js + 2 modules | ||
var logAF = __webpack_require__("./lib/methods/other/logAF.js"); | ||
// EXTERNAL MODULE: ./lib/methods/arrays/mapAF.js | ||
var mapAF = __webpack_require__("./lib/methods/arrays/mapAF.js"); | ||
// EXTERNAL MODULE: ./lib/methods/arrays/forEachAF.js | ||
var forEachAF = __webpack_require__("./lib/methods/arrays/forEachAF.js"); | ||
// EXTERNAL MODULE: ./lib/methods/arrays/filterAF.js | ||
var filterAF = __webpack_require__("./lib/methods/arrays/filterAF.js"); | ||
// EXTERNAL MODULE: ./lib/methods/arrays/reduceAF.js + 1 modules | ||
var reduceAF = __webpack_require__("./lib/methods/arrays/reduceAF.js"); | ||
// EXTERNAL MODULE: ./lib/methods/arrays/everyAF.js | ||
var everyAF = __webpack_require__("./lib/methods/arrays/everyAF.js"); | ||
// EXTERNAL MODULE: ./lib/methods/arrays/someAF.js | ||
var someAF = __webpack_require__("./lib/methods/arrays/someAF.js"); | ||
// EXTERNAL MODULE: ./lib/methods/arrays/includesAF.js | ||
var includesAF = __webpack_require__("./lib/methods/arrays/includesAF.js"); | ||
// EXTERNAL MODULE: ./lib/methods/arrays/findAF.js | ||
var findAF = __webpack_require__("./lib/methods/arrays/findAF.js"); | ||
// EXTERNAL MODULE: ./lib/methods/arrays/findIndexAF.js | ||
var findIndexAF = __webpack_require__("./lib/methods/arrays/findIndexAF.js"); | ||
// EXTERNAL MODULE: ./lib/methods/arrays/indexOfAF.js | ||
var indexOfAF = __webpack_require__("./lib/methods/arrays/indexOfAF.js"); | ||
// EXTERNAL MODULE: ./lib/methods/arrays/lastIndexOfAF.js | ||
var lastIndexOfAF = __webpack_require__("./lib/methods/arrays/lastIndexOfAF.js"); | ||
// EXTERNAL MODULE: ./lib/methods/arrays/joinAF.js | ||
var joinAF = __webpack_require__("./lib/methods/arrays/joinAF.js"); | ||
// CONCATENATED MODULE: ./packageList.js | ||
/* eslint-disable import/first */ | ||
const libName = 'async-af'; | ||
const libPath = './lib/'; | ||
const makeScoped = name => `@${libName}/${name.replace(/(AsyncAf|AF)/g, '').toLowerCase()}`; | ||
/* ____________________________ | ||
| CLASSES | | ||
|____________________________| */ | ||
const classPath = `${libPath}classes/`; | ||
const classes = [[{ | ||
name: 'AsyncAF' | ||
}, `${classPath}AsyncAF`, libName], [{ | ||
name: 'AsyncAfWrapper' | ||
}, `${classPath}AsyncAfWrapper`, makeScoped('AsyncAfWrapper')]]; | ||
/* ____________________________ | ||
| STATIC METHODS | | ||
|____________________________| */ | ||
const staticMethods = [logAF["default"]].map(method => [method, `${libPath}methods/other/${method.name}`, makeScoped(method.name)]); | ||
/* ____________________________ | ||
| PROTOTYPE METHODS | | ||
|____________________________| */ | ||
// Arrays: | ||
const arrayMethods = [mapAF["default"], forEachAF["default"], filterAF["default"], reduceAF["default"], everyAF["default"], someAF["default"], includesAF["default"], findAF["default"], findIndexAF["default"], indexOfAF["default"], lastIndexOfAF["default"], joinAF["default"]].map(method => [method, `${libPath}methods/arrays/${method.name}`, makeScoped(method.name)]); | ||
const prototypeMethods = [...arrayMethods]; | ||
/* ____________________________ | ||
| COLLECTIONS | | ||
|____________________________| */ | ||
// import arrays from './lib/collections/arrays'; | ||
const collections = [// arrays, | ||
]; | ||
/* harmony default export */ var packageList = ([...classes, ...staticMethods, ...prototypeMethods, ...collections]); | ||
const pluckMethods = packages => packages.map(([method]) => method); | ||
const staticMethodsOnly = pluckMethods(staticMethods); | ||
const prototypeMethodsOnly = pluckMethods(prototypeMethods); | ||
// CONCATENATED MODULE: ./lib/classes/AsyncAF.js | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } | ||
@@ -113,5 +212,5 @@ | ||
class AsyncAF extends _AsyncAfWrapper__WEBPACK_IMPORTED_MODULE_0__["AsyncAfWrapperProto"] {} | ||
class AsyncAF_AsyncAF extends AsyncAfWrapper["AsyncAfWrapperProto"] {} | ||
const AsyncAfCreator = AsyncAF; | ||
const AsyncAfCreator = AsyncAF_AsyncAF; | ||
/** | ||
@@ -136,9 +235,9 @@ * class that holds all the AsyncAF methods | ||
AsyncAF = function AsyncAF(data) { | ||
AsyncAF_AsyncAF = function AsyncAF(data) { | ||
return new AsyncAfCreator(data); | ||
}; | ||
AsyncAF.prototype = AsyncAfCreator.prototype; | ||
Object.setPrototypeOf(AsyncAF, AsyncAfCreator); | ||
AsyncAF.prototype.constructor = AsyncAF; | ||
AsyncAF_AsyncAF.prototype = AsyncAfCreator.prototype; | ||
Object.setPrototypeOf(AsyncAF_AsyncAF, AsyncAfCreator); | ||
AsyncAF_AsyncAF.prototype.constructor = AsyncAF_AsyncAF; | ||
@@ -164,5 +263,5 @@ const prepForDefine = methods => methods.reduce((methods, method) => { | ||
Object.defineProperties(_AsyncAfWrapper__WEBPACK_IMPORTED_MODULE_0__["AsyncAfWrapperProto"], prepForDefine(_packageList__WEBPACK_IMPORTED_MODULE_1__["staticMethods"])); | ||
Object.defineProperties(_AsyncAfWrapper__WEBPACK_IMPORTED_MODULE_0__["AsyncAfWrapperProto"].prototype, prepForDefine(_packageList__WEBPACK_IMPORTED_MODULE_1__["prototypeMethods"])); | ||
/* harmony default export */ __webpack_exports__["default"] = (AsyncAF); | ||
Object.defineProperties(AsyncAfWrapper["AsyncAfWrapperProto"], prepForDefine(staticMethodsOnly)); | ||
Object.defineProperties(AsyncAfWrapper["AsyncAfWrapperProto"].prototype, prepForDefine(prototypeMethodsOnly)); | ||
/* harmony default export */ var classes_AsyncAF = __webpack_exports__["default"] = (AsyncAF_AsyncAF); | ||
@@ -175,5 +274,92 @@ /***/ }), | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
// CONCATENATED MODULE: ./lib/methods/other/use.js | ||
/** | ||
* adds prototype/static methods to AsyncAF or AsyncAfWrapper | ||
* | ||
* see {@link AsyncAfWrapper AsyncAfWrapper} for an example of how to cherry-pick AsyncAF methods you'd like to use rather than pulling in the entire AsyncAF library; | ||
* | ||
* for something different, the following shows how to add custom methods to AsyncAF & AsyncAfWrapper | ||
* | ||
* **Example** | ||
* | ||
* say you want to extend AsyncAF with your own prototype method that acts on an array of numbers or promises that resolve to numbers and naively adds them up | ||
* | ||
* let's call it sumAF; here's some code: | ||
* | ||
* ```js | ||
* // sumAF.js | ||
* | ||
* const sumAF = function () { | ||
* return this.then(numbers => numbers.reduce((sum, num) => sum + num)); | ||
* }; | ||
* | ||
* export default sumAF; | ||
* ``` | ||
* | ||
* pull in {@link AsyncAF AsyncAF} or {@link AsyncAfWrapper AsyncAfWrapper} and `sumAF` to the file you'd like to use it in: | ||
* | ||
* ```js | ||
* // otherFile.js | ||
* | ||
* import AsyncAF from 'async-af'; // or import AsyncAF from '@async-af/wrapper'; | ||
* import sumAF from './sumAF'; | ||
* ``` | ||
* | ||
* then, call `use` on `AsyncAF` and pass in `sumAF` wrapped in an object to the first parameter, `prototypeMethods`: | ||
* | ||
* ```js | ||
* // otherFile.js | ||
* // ... | ||
* | ||
* AsyncAF.use({sumAF}); | ||
* ``` | ||
* | ||
* ready! now your custom prototype method will be available on AsyncAF | ||
* | ||
* ```js | ||
* // otherFile.js | ||
* // ... | ||
* | ||
* const promises = [1, 2, 3].map(n => Promise.resolve(n)); | ||
* | ||
* const sum = AsyncAF(promises).sumAF() | ||
* | ||
* AsyncAF.logAF(sum); | ||
* // @otherFile.js:10:9: | ||
* // 6 | ||
* // in 0.001 secs | ||
* ``` | ||
* | ||
* if you'd like to add a static method to AsyncAF, `use` accepts a second optional argument `staticMethods`; for example: | ||
* | ||
* ```js | ||
* const staticNoop = () => {}; | ||
* | ||
* AsyncAF.use({}, {staticNoop}); | ||
* | ||
* AsyncAF.staticNoop(); // noop | ||
* ``` | ||
* | ||
* @static | ||
* @param {Object} prototypeMethods an Object containing the prototype methods you'd like to use | ||
* @param {Object=} staticMethods an Object containing the static methods you'd like to use | ||
* @returns {undefined} adds prototype/static methods to AsyncAF or AsyncAfWrapper | ||
* @since 3.0.0 | ||
* @see AsyncAF | ||
* @see AsyncAfWrapper | ||
* @see {@tutorial TOO_MANY_IMPORTS} | ||
* @memberof AsyncAfWrapper | ||
* @alias AsyncAfWrapper#use | ||
*/ | ||
const use = function use(prototypeMethods, staticMethods = {}) { | ||
if (typeof prototypeMethods !== 'object') throw TypeError('prototypeMethods param accepts an Object containing the prototypeMethods you\'d like to add to the AsyncAF prototype, or an empty Object'); | ||
if (typeof staticMethods !== 'object') throw TypeError('staticMethods param accepts an Object containing the staticMethods you\'d like to add to AsyncAF'); | ||
Object.assign(this.prototype, prototypeMethods); | ||
Object.assign(this, staticMethods); | ||
}; | ||
/* harmony default export */ var other_use = (use); | ||
// CONCATENATED MODULE: ./lib/classes/AsyncAfWrapper.js | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncAfWrapperProto", function() { return AsyncAfWrapperProto; }); | ||
/* harmony import */ var _methods_other_use__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/methods/other/use.js"); | ||
@@ -202,7 +388,7 @@ | ||
* | ||
* AsyncAfWrapper is one option for cherry-picking only the methods you'd like to use in your code; {@link AsyncAfWrapper#use use} is the only method initially available on the AsyncAfWrapper prototype; see example below | ||
* AsyncAfWrapper is one option for cherry-picking only the methods you'd like to use in your code; {@link AsyncAfWrapper#use use} is the only method initially available on AsyncAfWrapper; see example below | ||
* | ||
* **Note:** while AsyncAfWrapper is a class, it can create instances with or without the `new` keyword | ||
* | ||
* **Example:** | ||
* **Example** | ||
* | ||
@@ -228,16 +414,15 @@ * say you only want to use {@link AsyncAF#mapAF mapAF}, {@link AsyncAF#filterAF filterAF}, {@link AsyncAF#forEachAF forEachAF}, and {@link AsyncAF#logAF logAF} instead of pulling in the entire AsyncAF library | ||
* | ||
* and call {@link AsyncAfWrapper#use use}, including all prototype methods you'd like to add to AsyncAfWrapper's prototype | ||
* _if you'd like to save some vertical screen real estate and cut the imports down to one line, see_ {@tutorial TOO_MANY_IMPORTS} | ||
* | ||
* then call {@link AsyncAfWrapper#use use}, including all prototype methods you'd like to add to AsyncAfWrapper's prototype in the first argument, `prototypeMethods` and all static methods you'd like to add to AsyncAfWrapper in the second optional argument, `staticMethods` | ||
* ```js | ||
* AsyncAF.use({ | ||
* AsyncAF.use({ // prototype methods go in the first argument | ||
* mapAF, | ||
* filterAF, | ||
* forEachAF | ||
* }, { // static methods go in the second argument | ||
* logAF | ||
* }); | ||
* ``` | ||
* | ||
* {@link AsyncAF#logAF logAF} is a static method, so you should not use {@link AsyncAfWrapper#use use}; simply use regular property assignment to add it | ||
* ```js | ||
* AsyncAF.logAF = logAF; | ||
* ``` | ||
* | ||
* ready to go! | ||
@@ -262,2 +447,3 @@ * ```js | ||
* @see {@link AsyncAfWrapper#use use} | ||
* @see {@tutorial TOO_MANY_IMPORTS} | ||
* @class AsyncAfWrapper | ||
@@ -274,5 +460,5 @@ */ | ||
AsyncAfWrapper.prototype.constructor = AsyncAfWrapper; | ||
AsyncAfWrapperProto.use = _methods_other_use__WEBPACK_IMPORTED_MODULE_0__["default"]; | ||
AsyncAfWrapperProto.use = other_use; | ||
/* harmony default export */ __webpack_exports__["default"] = (AsyncAfWrapper); | ||
/* harmony default export */ var classes_AsyncAfWrapper = __webpack_exports__["default"] = (AsyncAfWrapper); | ||
@@ -300,3 +486,3 @@ /***/ }), | ||
/***/ "./lib/methods/_internal/logging.js": | ||
/***/ "./lib/methods/_internal/permissiveIsArrayLike.js": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
@@ -306,37 +492,10 @@ | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrappedLog", function() { return wrappedLog; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrappedWarn", function() { return wrappedWarn; }); | ||
/* eslint-disable no-console */ | ||
const wrappedLog = (...args) => { | ||
console && console.log && console.log(...args); | ||
const permissiveIsArrayLike = function permissiveIsArrayLike(obj) { | ||
return Array.isArray(obj) || obj != null && obj.length != null; | ||
}; | ||
const wrappedWarn = (...args) => { | ||
console && console.warn && console.warn(...args); | ||
}; | ||
/* harmony default export */ __webpack_exports__["default"] = (permissiveIsArrayLike); | ||
/***/ }), | ||
/***/ "./lib/methods/_internal/reduceCallback.js": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
/* eslint-disable no-unused-vars, valid-jsdoc */ | ||
/** | ||
* @typedef {callback} _ | ||
* @param {?} accumulator | ||
* @param {?} currentValue | ||
* @param {Number=} index | ||
* @param {[]=} array | ||
*/ | ||
function callback(accumulator, currentValue, index, array) {} | ||
/* harmony default export */ __webpack_exports__["default"] = (callback); | ||
/***/ }), | ||
/***/ "./lib/methods/arrays/everyAF.js": | ||
@@ -348,4 +507,6 @@ /***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
/* harmony import */ var _internal_commonCallback__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/methods/_internal/commonCallback.js"); | ||
/* harmony import */ var _internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./lib/methods/_internal/permissiveIsArrayLike.js"); | ||
// eslint-disable-line no-unused-vars | ||
/** | ||
@@ -397,5 +558,4 @@ * tests whether all elements in the array pass the test implemented by the provided callback function | ||
return this.then(arr => { | ||
if (!arr) throw TypeError(`Cannot read property 'everyAF' of ${arr}`); | ||
if (!Array.isArray(arr)) throw TypeError(`${arr}.everyAF is not a function`); | ||
return arr.every(callback, thisArg); | ||
if (!Object(_internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__["default"])(arr)) throw TypeError(`everyAF cannot be called on ${arr}, only on an Array or array-like Object`); | ||
return Array.prototype.every.call(arr, callback, thisArg); | ||
}); | ||
@@ -414,4 +574,6 @@ }; | ||
/* harmony import */ var _internal_commonCallback__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/methods/_internal/commonCallback.js"); | ||
/* harmony import */ var _internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./lib/methods/_internal/permissiveIsArrayLike.js"); | ||
// eslint-disable-line no-unused-vars | ||
/** | ||
@@ -462,3 +624,6 @@ * creates a new `Array` with all elements that pass the test implemented by the provided callback function | ||
const filterAF = function filterAF(callback, thisArg = undefined) { | ||
return this.then(arr => arr.filter(callback, thisArg)); | ||
return this.then(arr => { | ||
if (!Object(_internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__["default"])(arr)) throw TypeError(`filterAF cannot be called on ${arr}, only on an Array or array-like Object`); | ||
return Array.prototype.filter.call(arr, callback, thisArg); | ||
}); | ||
}; | ||
@@ -476,4 +641,6 @@ | ||
/* harmony import */ var _internal_commonCallback__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/methods/_internal/commonCallback.js"); | ||
/* harmony import */ var _internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./lib/methods/_internal/permissiveIsArrayLike.js"); | ||
// eslint-disable-line no-unused-vars | ||
/** | ||
@@ -507,4 +674,4 @@ * returns the value of the first element in the array that satisfies the provided callback function; otherwise, `undefined` | ||
return this.then(arr => { | ||
if (!Array.isArray(arr)) throw TypeError(`findAF called on ${arr}; findAF can only be called on an array`); | ||
return arr.find(callback, thisArg); | ||
if (!Object(_internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__["default"])(arr)) throw TypeError(`findAF cannot be called on ${arr}, only on an Array or array-like Object`); | ||
return Array.prototype.find.call(arr, callback, thisArg); | ||
}); | ||
@@ -523,4 +690,6 @@ }; | ||
/* harmony import */ var _internal_commonCallback__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/methods/_internal/commonCallback.js"); | ||
/* harmony import */ var _internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./lib/methods/_internal/permissiveIsArrayLike.js"); | ||
// eslint-disable-line no-unused-vars | ||
/** | ||
@@ -554,4 +723,4 @@ * returns the index of the first element in the array that satisfies the provided callback function; otherwise, `-1` | ||
return this.then(arr => { | ||
if (!Array.isArray(arr)) throw TypeError(`findIndexAF called on ${arr}; findIndexAF can only be called on an array`); | ||
return arr.findIndex(callback, thisArg); | ||
if (!Object(_internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__["default"])(arr)) throw TypeError(`findIndexAF cannot be called on ${arr}, only on an Array or array-like Object`); | ||
return Array.prototype.findIndex.call(arr, callback, thisArg); | ||
}); | ||
@@ -570,4 +739,6 @@ }; | ||
/* harmony import */ var _internal_commonCallback__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/methods/_internal/commonCallback.js"); | ||
/* harmony import */ var _internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./lib/methods/_internal/permissiveIsArrayLike.js"); | ||
// eslint-disable-line no-unused-vars | ||
/** | ||
@@ -600,3 +771,6 @@ * executes a callback function on each element in an array | ||
const forEachAF = function forEachAF(callback, thisArg = undefined) { | ||
return this.then(arr => arr.forEach(callback, thisArg)); | ||
return this.then(arr => { | ||
if (!Object(_internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__["default"])(arr)) throw TypeError(`forEachAF cannot be called on ${arr}, only on an Array or array-like Object`); | ||
return Array.prototype.forEach.call(arr, callback, thisArg); | ||
}); | ||
}; | ||
@@ -613,2 +787,4 @@ | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony import */ var _internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/methods/_internal/permissiveIsArrayLike.js"); | ||
/** | ||
@@ -655,6 +831,6 @@ * determines whether an array, string, or array-like object includes a certain element or string, returning true or false as appropriate | ||
*/ | ||
const includesAF = function includesAF(searchItem, fromIndex = 0) { | ||
return this.then(arrOrStr => { | ||
// eslint-disable-next-line curly | ||
if (arrOrStr == null || arrOrStr.length == null || typeof arrOrStr === 'function') throw TypeError(`includesAF cannot be called on ${arrOrStr}, only on an Array, String, or array-like Object`); | ||
if (!Object(_internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_0__["default"])(arrOrStr)) throw TypeError(`includesAF cannot be called on ${arrOrStr}, only on an Array, String, or array-like Object`); | ||
return (typeof arrOrStr === 'string' ? String : Array).prototype.includes.call(arrOrStr, searchItem, fromIndex); | ||
@@ -673,2 +849,4 @@ }); | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony import */ var _internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/methods/_internal/permissiveIsArrayLike.js"); | ||
/** | ||
@@ -715,6 +893,6 @@ * returns the first index of the specified element or string in an array, string, or array-like object, starting the search at `fromIndex`; if the value is not found, returns `-1` | ||
*/ | ||
const indexOfAF = function indexOfAF(searchItem, fromIndex = 0) { | ||
return this.then(arrOrStr => { | ||
// eslint-disable-next-line curly | ||
if (arrOrStr == null || arrOrStr.length == null || typeof arrOrStr === 'function') throw TypeError(`indexOfAF cannot be called on ${arrOrStr}, only on an Array, String, or array-like Object`); | ||
if (!Object(_internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_0__["default"])(arrOrStr)) throw TypeError(`indexOfAF cannot be called on ${arrOrStr}, only on an Array, String, or array-like Object`); | ||
return (typeof arrOrStr === 'string' ? String : Array).prototype.indexOf.call(arrOrStr, searchItem, fromIndex); | ||
@@ -728,2 +906,118 @@ }); | ||
/***/ "./lib/methods/arrays/joinAF.js": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony import */ var _internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/methods/_internal/permissiveIsArrayLike.js"); | ||
/** | ||
* joins all elements of an array or array-like object into a string and returns that string | ||
* | ||
* @param {any} separator the string that separates each element in the resulting string; defaults to `','`; non-string separators will be converted to strings if necessary; if `separator` is an empty string `''`, the array elements are joined without any characters between them | ||
* @returns {Promise.<String>} `Promise` that resolves to a string with all array elements joined; if array.length is `0`, an empty string `''` is returned | ||
* @example | ||
* | ||
* const animals = ['cow', 'chicken', 'cat', 'dog'].map(a => Promise.resolve(a)); | ||
* | ||
* // joinAF separator defaults to ',' | ||
* AsyncAF(animals).joinAF(); // Promise that resolves to 'cow,chicken,cat,dog' | ||
* | ||
* // specifying separator | ||
* AsyncAF(animals).joinAF(' & '); // Promise that resolves to 'cow & chicken & cat & dog' | ||
* | ||
* // a non-string separator will be converted to a string | ||
* AsyncAF(animals).joinAF(2); // Promise that resolves to 'cow2chicken2cat2dog' | ||
* | ||
* // empty string separator | ||
* AsyncAF(animals).joinAF(''); // Promise that resolves to 'cowchickencatdog' | ||
* | ||
* // joining an empty array returns an empty string | ||
* AsyncAF([]).joinAF('+'); // Promise that resolves to '' | ||
* | ||
* // joinAF on an array-like object | ||
* (async function () { | ||
* const list = await AsyncAF(arguments).joinAF(' - '); | ||
* console.log(`Shopping List: ${list}`); | ||
* })('eggs', 'milk', 'butter', 'pancake mix'); | ||
* // Shopping List: eggs - milk - butter - pancake mix | ||
* | ||
* @since 3.6.0 | ||
* @see join | ||
* @memberof AsyncAF# | ||
*/ | ||
const joinAF = function joinAF(separator = ',') { | ||
return this.then(arr => { | ||
if (!Object(_internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_0__["default"])(arr)) throw TypeError(`joinAF cannot be called on ${arr}, only on an Array or array-like Object`); | ||
return Array.prototype.join.call(arr, separator); | ||
}); | ||
}; | ||
Object.defineProperty(joinAF, 'length', { | ||
value: 1 | ||
}); | ||
/* harmony default export */ __webpack_exports__["default"] = (joinAF); | ||
/***/ }), | ||
/***/ "./lib/methods/arrays/lastIndexOfAF.js": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony import */ var _internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/methods/_internal/permissiveIsArrayLike.js"); | ||
/** | ||
* returns the last index of the specified element or string, searching backwards in an array, string, or array-like object; `fromIndex` offsets the start of the search; if the value is not found, returns `-1` | ||
* | ||
* @param {any} searchItem the element or string to search for | ||
* @param {Number=} fromIndex the index at which to begin searching backwards for `searchItem`; a negative value searches from the index of `array/string.length - fromIndex`; defaults to `array/string.length - 1` | ||
* @returns {Promise.<Number>} `Promise` that resolves to the last index of `searchItem` if found; otherwise, `-1` | ||
* @example | ||
* | ||
* // lastIndexOfAF on an array of promises | ||
* const nums = [1, 1, 2, 2, 3, 3].map(n => Promise.resolve(n)); | ||
* | ||
* AsyncAF(nums).lastIndexOfAF(2); // Promise that resolves to 3 | ||
* | ||
* AsyncAF(nums).lastIndexOfAF(5); // Promise that resolves to -1 | ||
* | ||
* AsyncAF(nums).lastIndexOfAF(2, -4); // Promise that resolves to 2 | ||
* | ||
* AsyncAF(nums).lastIndexOfAF(3, -3); // Promise that resolves to -1 | ||
* | ||
* // lastIndexOfAF on a promise-wrapped string | ||
* const string = Promise.resolve('test string to test'); | ||
* | ||
* AsyncAF(string).lastIndexOfAF('test'); // Promise that resolves to 15 | ||
* | ||
* AsyncAF(string).lastIndexOfAF('nope'); // Promise that resolves to -1 | ||
* | ||
* AsyncAF(string).lastIndexOfAF('test', -5); // Promise that resolves to 0 | ||
* | ||
* AsyncAF(string).lastIndexOfAF('to', -7); // Promise that resolves to -1 | ||
* | ||
* // lastIndexOfAF on an array-like object | ||
* (async function () { | ||
* const lastIndexOf2 = await AsyncAF(arguments).lastIndexOfAF(2); | ||
* console.log(`the last index of 2 in the arguments array-like object is ${lastIndexOf2}`) | ||
* })(1, 1, 2, 2, 3, 3); // the last index of 2 in the arguments array-like object is 3 | ||
* | ||
* @since 3.6.0 | ||
* @see lastIndexOf | ||
* @memberof AsyncAF# | ||
*/ | ||
const lastIndexOfAF = function lastIndexOfAF(searchItem, fromIndex = undefined) { | ||
return this.then(arrOrStr => { | ||
if (!Object(_internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_0__["default"])(arrOrStr)) throw TypeError(`lastIndexOfAF cannot be called on ${arrOrStr}, only on an Array, String, or array-like Object`); | ||
return (typeof arrOrStr === 'string' ? String : Array).prototype.lastIndexOf.call(arrOrStr, searchItem, fromIndex || arrOrStr.length - 1); | ||
}); | ||
}; | ||
/* harmony default export */ __webpack_exports__["default"] = (lastIndexOfAF); | ||
/***/ }), | ||
/***/ "./lib/methods/arrays/mapAF.js": | ||
@@ -735,4 +1029,6 @@ /***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
/* harmony import */ var _internal_commonCallback__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/methods/_internal/commonCallback.js"); | ||
/* harmony import */ var _internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./lib/methods/_internal/permissiveIsArrayLike.js"); | ||
// eslint-disable-line no-unused-vars | ||
/** | ||
@@ -783,3 +1079,6 @@ * creates a new `Array` with the results of calling a provided function on every element in the original array | ||
const mapAF = function mapAF(callback, thisArg = undefined) { | ||
return this.then(arr => arr.map(callback, thisArg)); | ||
return this.then(arr => { | ||
if (!Object(_internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__["default"])(arr)) throw TypeError(`mapAF cannot be called on ${arr}, only on an Array or array-like Object`); | ||
return Array.prototype.map.call(arr, callback, thisArg); | ||
}); | ||
}; | ||
@@ -795,6 +1094,23 @@ | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony import */ var _internal_reduceCallback__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/methods/_internal/reduceCallback.js"); | ||
// CONCATENATED MODULE: ./lib/methods/_internal/reduceCallback.js | ||
/* eslint-disable no-unused-vars, valid-jsdoc */ | ||
/** | ||
* @typedef {callback} _ | ||
* @param {?} accumulator | ||
* @param {?} currentValue | ||
* @param {Number=} index | ||
* @param {[]=} array | ||
*/ | ||
function reduceCallback_callback(accumulator, currentValue, index, array) {} | ||
/* harmony default export */ var reduceCallback = (reduceCallback_callback); | ||
// EXTERNAL MODULE: ./lib/methods/_internal/permissiveIsArrayLike.js | ||
var permissiveIsArrayLike = __webpack_require__("./lib/methods/_internal/permissiveIsArrayLike.js"); | ||
// CONCATENATED MODULE: ./lib/methods/arrays/reduceAF.js | ||
// eslint-disable-line no-unused-vars | ||
/** | ||
@@ -847,12 +1163,11 @@ * applies a function against an accumulator and each element in an array (from left to right) to reduce it to a single value | ||
const reduceAF = function reduceAF(callback, initialValue = null) { | ||
const reduceAF_reduceAF = function reduceAF(callback, initialValue = null) { | ||
return this.then(arr => { | ||
if (!arr) throw TypeError(`Cannot read property 'reduceAF' of ${arr}`); | ||
if (!Array.isArray(arr)) throw TypeError(`${arr}.reduceAF is not a function`); | ||
if (!arr.length && initialValue === null) throw TypeError('reduceAF of empty array with no initial value'); | ||
return arr.reduce(callback, initialValue); | ||
if (!Object(permissiveIsArrayLike["default"])(arr)) throw TypeError(`reduceAF cannot be called on ${arr}, only on an Array or array-like Object`); | ||
if (!arr.length && initialValue === null) throw TypeError('reduceAF cannot be called on an empty array without an initial value'); | ||
return Array.prototype.reduce.call(arr, callback, initialValue); | ||
}); | ||
}; | ||
/* harmony default export */ __webpack_exports__["default"] = (reduceAF); | ||
/* harmony default export */ var arrays_reduceAF = __webpack_exports__["default"] = (reduceAF_reduceAF); | ||
@@ -867,4 +1182,6 @@ /***/ }), | ||
/* harmony import */ var _internal_commonCallback__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/methods/_internal/commonCallback.js"); | ||
/* harmony import */ var _internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./lib/methods/_internal/permissiveIsArrayLike.js"); | ||
// eslint-disable-line no-unused-vars | ||
/** | ||
@@ -916,5 +1233,4 @@ * tests whether at least one element in the array passes the test implemented by the provided callback function | ||
return this.then(arr => { | ||
if (!arr) throw TypeError(`Cannot read property 'someAF' of ${arr}`); | ||
if (!Array.isArray(arr)) throw TypeError(`${arr}.someAF is not a function`); | ||
return arr.some(callback, thisArg); | ||
if (!Object(_internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__["default"])(arr)) throw TypeError(`someAF cannot be called on ${arr}, only on an Array or array-like Object`); | ||
return Array.prototype.some.call(arr, callback, thisArg); | ||
}); | ||
@@ -931,111 +1247,16 @@ }; | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony import */ var _internal_logging__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/methods/_internal/logging.js"); | ||
/* harmony import */ var _logAfHelpers_logAfOptions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./lib/methods/other/logAfHelpers/logAfOptions.js"); | ||
/* harmony import */ var _logAfHelpers_setFormat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./lib/methods/other/logAfHelpers/setFormat.js"); | ||
// CONCATENATED MODULE: ./lib/methods/_internal/logging.js | ||
/* eslint-disable no-console */ | ||
const wrappedLog = (...args) => { | ||
console && console.log && console.log(...args); | ||
}; | ||
/** | ||
* logs items to the console in the order given | ||
* | ||
* if any items are a promise, they will first be resolved in parallel and then logged | ||
* | ||
* ```js | ||
* import { logAF } from 'async-af'; | ||
* | ||
* const promise = new Promise(resolve => setTimeout( | ||
* () => resolve(2), 1000) | ||
* ); | ||
* | ||
* logAF(1, promise, 3); | ||
* | ||
* // @filename.js:6:12: | ||
* // 1 2 3 | ||
* // in 0.998 secs | ||
* ``` | ||
* | ||
* **Note:** since logAF returns a promise, the items in the previous example would be logged *after* any synchronous calls to `console.log` | ||
* | ||
* to produce in-order logging with any surrounding calls to `console.log`, `await` logAF: | ||
* ```js | ||
* logAF.options({ label: false, duration: false }); | ||
* | ||
* (async () => { | ||
* console.log(1); | ||
* // ...some code | ||
* await logAF(promise); | ||
* // ...some more code | ||
* console.log(3); | ||
* })(); | ||
* | ||
* // 1 | ||
* // 2 | ||
* // 3 | ||
* ``` | ||
* | ||
* **experimental feature**: the label may not work correctly in all environments; to turn the label off, set `label` to `false` in {@link AsyncAF#logAF_options logAF.options}, where you can also change the label's format | ||
* | ||
* @static | ||
* @param {any} items The items to print (log to the console) | ||
* @returns {Promise<undefined>} returns a `Promise` that logs items to the console | ||
* @see log | ||
* @see {@link AsyncAF#logAF_options logAF.options} to turn the label off or change its format | ||
* @see logAF.options.reset to reset options to default | ||
* @since 3.0.0 | ||
* @memberof AsyncAF | ||
* @alias AsyncAF#logAF | ||
*/ | ||
const logAF = function logAF(...items) { | ||
if (logAF.label) { | ||
items.unshift(logAF.setFormat()); | ||
} | ||
const start = Date.now(); | ||
return Promise.all(items).then(toLog => { | ||
if (logAF.duration) { | ||
const end = Date.now(); | ||
const numberOf = ((end - start) / 1000).toFixed(3); | ||
toLog.push(`\nin ${numberOf} secs`); | ||
} | ||
logAF.wrappedLog(...toLog); | ||
}); | ||
const wrappedWarn = (...args) => { | ||
console && console.warn && console.warn(...args); | ||
}; | ||
Object.defineProperties(logAF, { | ||
wrappedLog: { | ||
value: _internal_logging__WEBPACK_IMPORTED_MODULE_0__["wrappedLog"], | ||
writable: true | ||
}, | ||
wrappedWarn: { | ||
value: _internal_logging__WEBPACK_IMPORTED_MODULE_0__["wrappedWarn"], | ||
writable: true | ||
}, | ||
setFormat: { | ||
value: _logAfHelpers_setFormat__WEBPACK_IMPORTED_MODULE_2__["default"], | ||
writable: true | ||
}, | ||
options: { | ||
value: _logAfHelpers_logAfOptions__WEBPACK_IMPORTED_MODULE_1__["default"], | ||
writable: true | ||
} | ||
}); | ||
(logAF.options.reset = function logAfOptionsReset() { | ||
logAF.label = true; | ||
logAF.labelFormat = 'file'; | ||
logAF.duration = true; | ||
})(); | ||
/* harmony default export */ __webpack_exports__["default"] = (logAF); | ||
/***/ }), | ||
// CONCATENATED MODULE: ./lib/methods/other/logAfHelpers/logAfOptions.js | ||
/***/ "./lib/methods/other/logAfHelpers/logAfOptions.js": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony import */ var _logAF__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/methods/other/logAF.js"); | ||
/** | ||
@@ -1176,8 +1397,8 @@ * Sets logging options for {@link AsyncAF#logAF logAF} | ||
const options = function logAfOptions(options = {}) { | ||
const logAfOptions_options = function logAfOptions(options = {}) { | ||
const label = options.label, | ||
duration = options.duration, | ||
labelFormat = options.labelFormat; | ||
if (typeof label === 'boolean') _logAF__WEBPACK_IMPORTED_MODULE_0__["default"].label = label; | ||
if (typeof duration === 'boolean') _logAF__WEBPACK_IMPORTED_MODULE_0__["default"].duration = duration; | ||
if (typeof label === 'boolean') other_logAF.label = label; | ||
if (typeof duration === 'boolean') other_logAF.duration = duration; | ||
@@ -1190,6 +1411,6 @@ if (labelFormat) { | ||
const msg = 'AsyncAF Warning: logAF labelFormat option must be set to \'file\' (default), \'path\', \'parent\', \'arrow\', or \'custom\''; | ||
_logAF__WEBPACK_IMPORTED_MODULE_0__["default"].wrappedWarn(msg); | ||
other_logAF.wrappedWarn(msg); | ||
} else { | ||
_logAF__WEBPACK_IMPORTED_MODULE_0__["default"].labelFormat = desiredFormat; | ||
_logAF__WEBPACK_IMPORTED_MODULE_0__["default"].fullFormat = labelFormat; | ||
other_logAF.labelFormat = desiredFormat; | ||
other_logAF.fullFormat = labelFormat; | ||
} | ||
@@ -1199,4 +1420,100 @@ } | ||
/* harmony default export */ __webpack_exports__["default"] = (options); | ||
/* harmony default export */ var logAfHelpers_logAfOptions = (logAfOptions_options); | ||
// EXTERNAL MODULE: ./lib/methods/other/logAfHelpers/setFormat.js | ||
var setFormat = __webpack_require__("./lib/methods/other/logAfHelpers/setFormat.js"); | ||
// CONCATENATED MODULE: ./lib/methods/other/logAF.js | ||
/** | ||
* logs items to the console in the order given | ||
* | ||
* if any items are a promise, they will first be resolved in parallel and then logged | ||
* | ||
* ```js | ||
* import { logAF } from 'async-af'; | ||
* | ||
* const promise = new Promise(resolve => setTimeout( | ||
* () => resolve(2), 1000) | ||
* ); | ||
* | ||
* logAF(1, promise, 3); | ||
* | ||
* // @filename.js:6:12: | ||
* // 1 2 3 | ||
* // in 0.998 secs | ||
* ``` | ||
* | ||
* **Note:** since logAF returns a promise, the items in the previous example would be logged *after* any synchronous calls to `console.log` | ||
* | ||
* to produce in-order logging with any surrounding calls to `console.log`, `await` logAF: | ||
* ```js | ||
* logAF.options({ label: false, duration: false }); | ||
* | ||
* (async () => { | ||
* console.log(1); | ||
* // ...some code | ||
* await logAF(promise); | ||
* // ...some more code | ||
* console.log(3); | ||
* })(); | ||
* | ||
* // 1 | ||
* // 2 | ||
* // 3 | ||
* ``` | ||
* | ||
* **experimental feature**: the label may not work correctly in all environments; to turn the label off, set `label` to `false` in {@link AsyncAF#logAF_options logAF.options}, where you can also change the label's format | ||
* | ||
* @static | ||
* @param {any} items The items to print (log to the console) | ||
* @returns {Promise<undefined>} returns a `Promise` that logs items to the console | ||
* @see log | ||
* @see {@link AsyncAF#logAF_options logAF.options} to turn the label off or change its format | ||
* @see logAF.options.reset to reset options to default | ||
* @since 3.0.0 | ||
* @memberof AsyncAF | ||
* @alias AsyncAF#logAF | ||
*/ | ||
const logAF = function logAF(...items) { | ||
if (logAF.label) items.unshift(logAF.setFormat()); | ||
const start = Date.now(); | ||
return Promise.all(items).then(toLog => { | ||
if (logAF.duration) { | ||
const end = Date.now(); | ||
const numberOf = ((end - start) / 1000).toFixed(3); | ||
toLog.push(`\nin ${numberOf} secs`); | ||
} | ||
logAF.wrappedLog(...toLog); | ||
}); | ||
}; | ||
Object.defineProperties(logAF, { | ||
wrappedLog: { | ||
value: wrappedLog, | ||
writable: true | ||
}, | ||
wrappedWarn: { | ||
value: wrappedWarn, | ||
writable: true | ||
}, | ||
setFormat: { | ||
value: setFormat["default"], | ||
writable: true | ||
}, | ||
options: { | ||
value: logAfHelpers_logAfOptions, | ||
writable: true | ||
} | ||
}); | ||
(logAF.options.reset = function logAfOptionsReset() { | ||
logAF.label = true; | ||
logAF.labelFormat = 'file'; | ||
logAF.duration = true; | ||
})(); | ||
/* harmony default export */ var other_logAF = __webpack_exports__["default"] = (logAF); | ||
/***/ }), | ||
@@ -1279,156 +1596,2 @@ | ||
/***/ }), | ||
/***/ "./lib/methods/other/use.js": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
/** | ||
* adds prototype methods to AsyncAF or AsyncAfWrapper | ||
* | ||
* see {@link AsyncAfWrapper AsyncAfWrapper} for an example of how to cherry-pick AsyncAF methods you'd like to use rather than pulling in the entire AsyncAF library; | ||
* | ||
* for something different, the following shows how to add custom prototype methods to AsyncAF & AsyncAfWrapper | ||
* | ||
* **Example:** | ||
* | ||
* say you want to extend AsyncAF with your own method that acts on an array of non-promises or promises that resolve to numbers and naively adds them up | ||
* | ||
* let's call it sumAF; here's some code: | ||
* | ||
* ```js | ||
* // sumAF.js | ||
* | ||
* const sumAF = function () { | ||
* return this.then(numbers => numbers.reduce((sum, num) => sum + num)); | ||
* }; | ||
* | ||
* export default sumAF; | ||
* ``` | ||
* | ||
* pull in {@link AsyncAF AsyncAF} or {@link AsyncAfWrapper AsyncAfWrapper} and sumAF to the file you'd like to use it in: | ||
* | ||
* ```js | ||
* // otherFile.js | ||
* | ||
* import AsyncAF from 'async-af'; | ||
* import sumAF from './sumAF'; | ||
* ``` | ||
* | ||
* then, call `use` on {@link AsyncAF AsyncAF} and pass in sumAF wrapped in an object: | ||
* | ||
* ```js | ||
* // otherFile.js | ||
* // ... | ||
* | ||
* AsyncAF.use({sumAF}); | ||
* ``` | ||
* | ||
* ready! now your custom prototype method will be available on {@link AsyncAF AsyncAF} | ||
* | ||
* ```js | ||
* // otherFile.js | ||
* // ... | ||
* | ||
* const promises = [1, 2, 3].map(n => Promise.resolve(n)); | ||
* | ||
* const sum = AsyncAF(promises).sumAF() | ||
* | ||
* AsyncAF.logAF(sum); | ||
* // @otherFile.js:10:9: | ||
* // 6 | ||
* // in 0.001 secs | ||
* ``` | ||
* | ||
* @static | ||
* @param {Object} methods an Object containing the prototype methods you'd like to use | ||
* @returns {undefined} adds prototype methods to AsyncAF or AsyncAfWrapper | ||
* @since 3.0.0 | ||
* @see AsyncAF | ||
* @see AsyncAfWrapper | ||
* @memberof AsyncAfWrapper | ||
* @alias AsyncAfWrapper#use | ||
*/ | ||
const use = function use(methods) { | ||
if (typeof methods !== 'object') { | ||
throw new TypeError('use method accepts an Object containing the methods you\'d like to add to the AsyncAF prototype'); | ||
} | ||
Object.assign(this.prototype, methods); | ||
}; | ||
/* harmony default export */ __webpack_exports__["default"] = (use); | ||
/***/ }), | ||
/***/ "./packageList.js": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticMethods", function() { return staticMethodsOnly; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prototypeMethods", function() { return prototypeMethodsOnly; }); | ||
/* harmony import */ var _lib_classes_AsyncAfWrapper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./lib/classes/AsyncAfWrapper.js"); | ||
/* harmony import */ var _lib_methods_other_logAF__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./lib/methods/other/logAF.js"); | ||
/* harmony import */ var _lib_methods_arrays_mapAF__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./lib/methods/arrays/mapAF.js"); | ||
/* harmony import */ var _lib_methods_arrays_forEachAF__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./lib/methods/arrays/forEachAF.js"); | ||
/* harmony import */ var _lib_methods_arrays_filterAF__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./lib/methods/arrays/filterAF.js"); | ||
/* harmony import */ var _lib_methods_arrays_reduceAF__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./lib/methods/arrays/reduceAF.js"); | ||
/* harmony import */ var _lib_methods_arrays_everyAF__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./lib/methods/arrays/everyAF.js"); | ||
/* harmony import */ var _lib_methods_arrays_someAF__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./lib/methods/arrays/someAF.js"); | ||
/* harmony import */ var _lib_methods_arrays_includesAF__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./lib/methods/arrays/includesAF.js"); | ||
/* harmony import */ var _lib_methods_arrays_findAF__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./lib/methods/arrays/findAF.js"); | ||
/* harmony import */ var _lib_methods_arrays_findIndexAF__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./lib/methods/arrays/findIndexAF.js"); | ||
/* harmony import */ var _lib_methods_arrays_indexOfAF__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./lib/methods/arrays/indexOfAF.js"); | ||
/* eslint-disable import/first */ | ||
const libName = 'async-af'; | ||
const libPath = './lib/'; | ||
/* ____________________________ | ||
| CLASSES | | ||
|____________________________| */ | ||
const classPath = `${libPath}classes/`; | ||
const classes = [[`${libName}`, `${classPath}AsyncAF`], [`@${libName}/wrapper`, `${classPath}AsyncAfWrapper`, _lib_classes_AsyncAfWrapper__WEBPACK_IMPORTED_MODULE_0__["default"]]]; | ||
/* ____________________________ | ||
| COLLECTIONS | | ||
|____________________________| */ | ||
// import arrays from './lib/collections/arrays'; | ||
// const collectionPath = `${libPath}collections/`; | ||
const collections = [// [`@${libName}/arrays`, `${collectionPath}arrays`], | ||
]; | ||
/* ____________________________ | ||
| STATIC METHODS | | ||
|____________________________| */ | ||
const otherPath = `${libPath}methods/other/`; | ||
const staticMethods = [[`@${libName}/log`, `${otherPath}logAF`, _lib_methods_other_logAF__WEBPACK_IMPORTED_MODULE_1__["default"]]]; | ||
/* ____________________________ | ||
| PROTOTYPE METHODS | | ||
|____________________________| */ | ||
const arrayPath = `${libPath}methods/arrays/`; | ||
const prototypeMethods = [[`@${libName}/map`, `${arrayPath}mapAF`, _lib_methods_arrays_mapAF__WEBPACK_IMPORTED_MODULE_2__["default"]], [`@${libName}/forEach`, `${arrayPath}forEachAF`, _lib_methods_arrays_forEachAF__WEBPACK_IMPORTED_MODULE_3__["default"]], [`@${libName}/filter`, `${arrayPath}filterAF`, _lib_methods_arrays_filterAF__WEBPACK_IMPORTED_MODULE_4__["default"]], [`@${libName}/reduce`, `${arrayPath}reduceAF`, _lib_methods_arrays_reduceAF__WEBPACK_IMPORTED_MODULE_5__["default"]], [`@${libName}/every`, `${arrayPath}everyAF`, _lib_methods_arrays_everyAF__WEBPACK_IMPORTED_MODULE_6__["default"]], [`@${libName}/some`, `${arrayPath}someAF`, _lib_methods_arrays_someAF__WEBPACK_IMPORTED_MODULE_7__["default"]], [`@${libName}/includes`, `${arrayPath}includesAF`, _lib_methods_arrays_includesAF__WEBPACK_IMPORTED_MODULE_8__["default"]], [`@${libName}/find`, `${arrayPath}findAF`, _lib_methods_arrays_findAF__WEBPACK_IMPORTED_MODULE_9__["default"]], [`@${libName}/findIndex`, `${arrayPath}findIndexAF`, _lib_methods_arrays_findIndexAF__WEBPACK_IMPORTED_MODULE_10__["default"]], [`@${libName}/indexOf`, `${arrayPath}indexOfAF`, _lib_methods_arrays_indexOfAF__WEBPACK_IMPORTED_MODULE_11__["default"]]]; | ||
/* harmony default export */ __webpack_exports__["default"] = ([...classes, ...collections, ...staticMethods, ...prototypeMethods]); | ||
/* eslint-disable-next-line no-unused-vars */ | ||
const pluckMethods = packages => packages.map(([pkg, file, method]) => method); | ||
const staticMethodsOnly = pluckMethods(staticMethods); | ||
const prototypeMethodsOnly = pluckMethods(prototypeMethods); | ||
/***/ }) | ||
@@ -1435,0 +1598,0 @@ |
/*! | ||
* AsyncAF (async/await fun) | ||
* async-af/legacy/min v4.0.0 | ||
* | ||
* async-af v3.5.0 | ||
* AsyncAF (Async/Await Fun) | ||
* (https://async-af.js.org/AsyncAF) | ||
* | ||
* Copyright (c) 2017-present, Scott Rudiger (https://github.com/ScottRudiger) | ||
* | ||
* This source code is licensed under the MIT license found in this library's GitHub repository (https://github.com/AsyncAF/AsyncAF/blob/master/LICENSE). | ||
* This source code is licensed under the MIT license found in this library's | ||
* GitHub repository (https://github.com/AsyncAF/AsyncAF/blob/master/LICENSE). | ||
*/ | ||
!function webpackUniversalModuleDefinition(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("async-af",[],e):"object"==typeof exports?exports["async-af"]=e():(t["async-af"]=t["async-af"]||{},t["async-af"]["async-af"]=e())}("undefined"!=typeof self?self:this,function(){return function(t){var e={};function __webpack_require__(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}return __webpack_require__.m=t,__webpack_require__.c=e,__webpack_require__.d=function(t,e,r){__webpack_require__.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},__webpack_require__.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.n=function(t){var e=t&&t.__esModule?function getDefault(){return t.default}:function getModuleExports(){return t};return __webpack_require__.d(e,"a",e),e},__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=149)}([function(t,e){var r=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(33)("wks"),o=r(20),i=r(2).Symbol,c="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=c&&i[t]||(c?i:o)("Symbol."+t))}).store=n},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var n=r(5);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,r){var n=r(2),o=r(0),i=r(13),c=r(9),a=r(10),u=function(t,e,r){var f,s,l,p=t&u.F,_=t&u.G,y=t&u.S,h=t&u.P,v=t&u.B,d=t&u.W,m=_?o:o[e]||(o[e]={}),b=m.prototype,g=_?n:y?n[e]:(n[e]||{}).prototype;for(f in _&&(r=e),r)(s=!p&&g&&void 0!==g[f])&&a(m,f)||(l=s?g[f]:r[f],m[f]=_&&"function"!=typeof g[f]?r[f]:v&&s?i(l,n):d&&g[f]==l?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((m.virtual||(m.virtual={}))[f]=l,t&u.R&&b&&!b[f]&&c(b,f,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){t.exports=!r(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(3),o=r(62),i=r(39),c=Object.defineProperty;e.f=r(6)?Object.defineProperty:function defineProperty(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(36),o=r(129);t.exports=function _taggedTemplateLiteral(t,e){return e||(e=t.slice(0)),o(n(t,{raw:{value:o(e)}}))}},function(t,e,r){var n=r(7),o=r(16);t.exports=r(6)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e){t.exports={}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(17);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(59),o=r(27);t.exports=function(t){return n(o(t))}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){"use strict";var n=r(83)(!0);r(48)(String,"String",function(t){this._t=t+"",this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},function(t,e,r){var n=r(7).f,o=r(10),i=r(1)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){t.exports=!0},function(t,e,r){"use strict";var n=r(17);t.exports.f=function(t){return new function PromiseCapability(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=n(e),this.reject=n(r)}(t)}},function(t,e,r){r(87);for(var n=r(2),o=r(9),i=r(11),c=r(1)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var f=a[u],s=n[f],l=s&&s.prototype;l&&!l[c]&&o(l,c,f),i[f]=i.Array}},function(t,e,r){var n=r(27);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(33)("keys"),o=r(20);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(60),o=r(32);t.exports=Object.keys||function keys(t){return n(t,o)}},function(t,e,r){var n=r(5),o=r(2).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,r){var n=r(126),o=r(125),i=r(121);t.exports=function _slicedToArray(t,e){return n(t)||o(t,e)||i()}},function(t,e,r){var n=r(15),o=r(1)("toStringTag"),i="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?r:i?n(e):"Object"==(c=n(e))&&"function"==typeof e.callee?"Arguments":c}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(2),o=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,r){var n=r(26),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){t.exports=r(80)},function(t,e,r){t.exports=r(136)},function(t,e,r){var n=r(31),o=r(1)("iterator"),i=r(11);t.exports=r(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[n(t)]}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){var n=r(5);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){t.exports=r(120)},function(t,e){t.exports=function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";r.r(e);var n=r(36),o=r.n(n),i=r(90),c=r.n(i),a=r(35),u=r.n(a),f=r(147),s=function logAF(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];logAF.label&&e.unshift(logAF.setFormat());var n=Date.now();return u.a.all(e).then(function(t){if(logAF.duration){var e=((Date.now()-n)/1e3).toFixed(3);t.push("\nin ".concat(e," secs"))}logAF.wrappedLog.apply(logAF,c()(t))})};o()(s,{wrappedLog:{value:function wrappedLog(){var t;console&&console.log&&(t=console).log.apply(t,arguments)},writable:!0},wrappedWarn:{value:function wrappedWarn(){var t;console&&console.warn&&(t=console).warn.apply(t,arguments)},writable:!0},setFormat:{value:f.a,writable:!0},options:{value:function logAfOptions(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.label,r=t.duration,n=t.labelFormat;if("boolean"==typeof e&&(l.label=e),"boolean"==typeof r&&(l.duration=r),n){var o=n.slice(0,6);["file","path","parent","arrow","custom"].includes(o)?(l.labelFormat=o,l.fullFormat=n):l.wrappedWarn("AsyncAF Warning: logAF labelFormat option must be set to 'file' (default), 'path', 'parent', 'arrow', or 'custom'")}},writable:!0}}),(s.options.reset=function logAfOptionsReset(){s.label=!0,s.labelFormat="file",s.duration=!0})();var l=e.default=s},function(t,e,r){var n=r(3),o=r(5),i=r(22);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){var n,o,i,c=r(13),a=r(76),u=r(47),f=r(29),s=r(2),l=s.process,p=s.setImmediate,_=s.clearImmediate,y=s.MessageChannel,h=s.Dispatch,v=0,d={},m=function(){var t=+this;if(d.hasOwnProperty(t)){var e=d[t];delete d[t],e()}},b=function(t){m.call(t.data)};p&&_||(p=function setImmediate(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return d[++v]=function(){a("function"==typeof t?t:Function(t),e)},n(v),v},_=function clearImmediate(t){delete d[t]},"process"==r(15)(l)?n=function(t){l.nextTick(c(m,t,1))}:h&&h.now?n=function(t){h.now(c(m,t,1))}:y?(i=(o=new y).port2,o.port1.onmessage=b,n=c(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(n=function(t){s.postMessage(t+"","*")},s.addEventListener("message",b,!1)):n="onreadystatechange"in f("script")?function(t){u.appendChild(f("script")).onreadystatechange=function(){u.removeChild(this),m.call(t)}}:function(t){setTimeout(c(m,t,1),0)}),t.exports={set:p,clear:_}},function(t,e,r){var n=r(3),o=r(17),i=r(1)("species");t.exports=function(t,e){var r,c=n(t).constructor;return void 0===c||void 0==(r=n(c)[i])?e:o(r)}},function(t,e,r){var n=r(2).document;t.exports=n&&n.documentElement},function(t,e,r){"use strict";var n=r(21),o=r(4),i=r(57),c=r(9),a=r(11),u=r(84),f=r(19),s=r(55),l=r(1)("iterator"),p=!([].keys&&"next"in[].keys()),_=function(){return this};t.exports=function(t,e,r,y,h,v,d){u(r,e,y);var m,b,g,O=function(t){if(!p&&t in P)return P[t];switch(t){case"keys":return function keys(){return new r(this,t)};case"values":return function values(){return new r(this,t)}}return function entries(){return new r(this,t)}},A=e+" Iterator",x="values"==h,w=!1,P=t.prototype,E=P[l]||P["@@iterator"]||h&&P[h],j=E||O(h),F=h?x?O("entries"):j:void 0,T="Array"==e&&P.entries||E;if(T&&(g=s(T.call(new t)))!==Object.prototype&&g.next&&(f(g,A,!0),n||"function"==typeof g[l]||c(g,l,_)),x&&E&&"values"!==E.name&&(w=!0,j=function values(){return E.call(this)}),n&&!d||!p&&!w&&P[l]||c(P,l,j),a[e]=j,a[A]=_,h)if(m={values:x?j:O("values"),keys:v?j:O("keys"),entries:F},d)for(b in m)b in P||i(P,b,m[b]);else o(o.P+o.F*(p||w),e,m);return m}},function(t,e,r){var n=r(1)("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],c=i[n]();c.next=function(){return{done:r=!0}},i[n]=function(){return c},t(i)}catch(t){}return r}},function(t,e,r){var n=r(11),o=r(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},function(t,e,r){var n=r(3);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},function(t,e){},function(t,e,r){var n=r(2),o=r(0),i=r(21),c=r(54),a=r(7).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:c.f(t)})}},function(t,e,r){e.f=r(1)},function(t,e,r){var n=r(10),o=r(24),i=r(25)("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,e,r){var n=r(3),o=r(61),i=r(32),c=r(25)("IE_PROTO"),a=function(){},u=function(){var t,e=r(29)("iframe"),n=i.length;for(e.style.display="none",r(47).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;n--;)delete u.prototype[i[n]];return u()};t.exports=Object.create||function create(t,e){var r;return null!==t?(a.prototype=n(t),r=new a,a.prototype=null,r[c]=t):r=u(),void 0===e?r:o(r,e)}},function(t,e,r){t.exports=r(9)},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(15);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){var n=r(10),o=r(14),i=r(89)(!1),c=r(25)("IE_PROTO");t.exports=function(t,e){var r,a=o(t),u=0,f=[];for(r in a)r!=c&&n(a,r)&&f.push(r);for(;e.length>u;)n(a,r=e[u++])&&(~i(f,r)||f.push(r));return f}},function(t,e,r){var n=r(7),o=r(3),i=r(28);t.exports=r(6)?Object.defineProperties:function defineProperties(t,e){o(t);for(var r,c=i(e),a=c.length,u=0;a>u;)n.f(t,r=c[u++],e[r]);return t}},function(t,e,r){t.exports=!r(6)&&!r(12)(function(){return 7!=Object.defineProperty(r(29)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(116),o=r(114);function _typeof2(t){return(_typeof2="function"==typeof o&&"symbol"==typeof n?function _typeof2(t){return typeof t}:function _typeof2(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t})(t)}function _typeof(e){return"function"==typeof o&&"symbol"===_typeof2(n)?t.exports=_typeof=function _typeof(t){return _typeof2(t)}:t.exports=_typeof=function _typeof(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":_typeof2(t)},_typeof(e)}t.exports=_typeof},function(t,e,r){var n=r(105);function _getPrototypeOf(e){return t.exports=_getPrototypeOf=n||function _getPrototypeOf(t){return t.__proto__},_getPrototypeOf(e)}t.exports=_getPrototypeOf},function(t,e,r){var n=r(63),o=r(106);t.exports=function _possibleConstructorReturn(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?o(t):e}},function(t,e,r){var n=r(117);t.exports=function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n(t.prototype,e&&e.prototype),e&&n(t,e)}},function(t,e,r){t.exports=r(132)},function(t,e,r){var n=r(4),o=r(0),i=r(12);t.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],c={};c[t]=e(r),n(n.S+n.F*i(function(){r(1)}),"Object",c)}},function(t,e,r){var n=r(20)("meta"),o=r(5),i=r(10),c=r(7).f,a=0,u=Object.isExtensible||function(){return!0},f=!r(12)(function(){return u(Object.preventExtensions({}))}),s=function(t){c(t,n,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!u(t))return"F";if(!e)return"E";s(t)}return t[n].i},getWeak:function(t,e){if(!i(t,n)){if(!u(t))return!0;if(!e)return!1;s(t)}return t[n].w},onFreeze:function(t){return f&&l.NEED&&u(t)&&!i(t,n)&&s(t),t}}},function(t,e,r){"use strict";r.r(e);var n=r(40),o=r.n(n),i=r(66),c=r.n(i),a=r(65),u=r.n(a),f=r(64),s=r.n(f),l=r(35),p=r.n(l),_=r(41),y=r.n(_),h=r(91),v=r.n(h),d=r(67),m=r.n(d),b=r(63),g=r.n(b);r.d(e,"AsyncAfWrapperProto",function(){return O});var O=function(){function AsyncAfWrapperProto(t){y()(this,AsyncAfWrapperProto),this.data=p.a[Array.isArray(t)?"all":"resolve"](t)}return v()(AsyncAfWrapperProto,[{key:"then",value:function then(t,e){return new this.constructor(this.data.then(t,e))}},{key:"catch",value:function _catch(t){return this.then(null,t)}}]),AsyncAfWrapperProto}(),A=function(t){function AsyncAfWrapper(){return y()(this,AsyncAfWrapper),u()(this,s()(AsyncAfWrapper).apply(this,arguments))}return c()(AsyncAfWrapper,t),AsyncAfWrapper}(O),x=A;(A=function AsyncAfWrapper(t){return new x(t)}).prototype=x.prototype,o()(A,x),A.prototype.constructor=A,O.use=function use(t){if("object"!==g()(t))throw new TypeError("use method accepts an Object containing the methods you'd like to add to the AsyncAF prototype");m()(this.prototype,t)},e.default=A},function(t,e,r){"use strict";var n=r(4),o=r(22),i=r(44);n(n.S,"Promise",{try:function(t){var e=o.f(this),r=i(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},function(t,e,r){"use strict";var n=r(4),o=r(0),i=r(2),c=r(46),a=r(43);n(n.P+n.R,"Promise",{finally:function(t){var e=c(this,o.Promise||i.Promise),r="function"==typeof t;return this.then(r?function(r){return a(e,t()).then(function(){return r})}:t,r?function(r){return a(e,t()).then(function(){throw r})}:t)}})},function(t,e,r){"use strict";var n=r(2),o=r(0),i=r(7),c=r(6),a=r(1)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:n[t];c&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(9);t.exports=function(t,e,r){for(var o in e)r&&t[o]?t[o]=e[o]:n(t,o,e[o]);return t}},function(t,e,r){var n=r(2),o=r(45).set,i=n.MutationObserver||n.WebKitMutationObserver,c=n.process,a=n.Promise,u="process"==r(15)(c);t.exports=function(){var t,e,r,f=function(){var n,o;for(u&&(n=c.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(u)r=function(){c.nextTick(f)};else if(!i||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var s=a.resolve();r=function(){s.then(f)}}else r=function(){o.call(n,f)};else{var l=!0,p=document.createTextNode("");new i(f).observe(p,{characterData:!0}),r=function(){p.data=l=!l}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,r()),e=o}}},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){var n=r(13),o=r(51),i=r(50),c=r(3),a=r(34),u=r(37),f={},s={};(e=t.exports=function(t,e,r,l,p){var _,y,h,v,d=p?function(){return t}:u(t),m=n(r,l,e?2:1),b=0;if("function"!=typeof d)throw TypeError(t+" is not iterable!");if(i(d)){for(_=a(t.length);_>b;b++)if((v=e?m(c(y=t[b])[0],y[1]):m(t[b]))===f||v===s)return v}else for(h=d.call(t);!(y=h.next()).done;)if((v=o(h,m,y.value,e))===f||v===s)return v}).BREAK=f,e.RETURN=s},function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,e,r){"use strict";var n,o,i,c,a=r(21),u=r(2),f=r(13),s=r(31),l=r(4),p=r(5),_=r(17),y=r(78),h=r(77),v=r(46),d=r(45).set,m=r(75)(),b=r(22),g=r(44),O=r(43),A=u.TypeError,x=u.process,w=u.Promise,P="process"==s(x),E=function(){},j=o=b.f,F=!!function(){try{var t=w.resolve(1),e=(t.constructor={})[r(1)("species")]=function(t){t(E,E)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e}catch(t){}}(),T=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},S=function(t,e){if(!t._n){t._n=!0;var r=t._c;m(function(){for(var n=t._v,o=1==t._s,i=0,c=function(e){var r,i,c,a=o?e.ok:e.fail,u=e.resolve,f=e.reject,s=e.domain;try{a?(o||(2==t._h&&D(t),t._h=1),!0===a?r=n:(s&&s.enter(),r=a(n),s&&(s.exit(),c=!0)),r===e.promise?f(A("Promise-chain cycle")):(i=T(r))?i.call(r,u,f):u(r)):f(n)}catch(t){s&&!c&&s.exit(),f(t)}};r.length>i;)c(r[i++]);t._c=[],t._n=!1,e&&!t._h&&M(t)})}},M=function(t){d.call(u,function(){var e,r,n,o=t._v,i=L(t);if(i&&(e=g(function(){P?x.emit("unhandledRejection",o,t):(r=u.onunhandledrejection)?r({promise:t,reason:o}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=P||L(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},L=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){d.call(u,function(){var e;P?x.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},k=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),S(e,!0))},I=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw A("Promise can't be resolved itself");(e=T(t))?m(function(){var n={_w:r,_d:!1};try{e.call(t,f(I,n,1),f(k,n,1))}catch(t){k.call(n,t)}}):(r._v=t,r._s=1,S(r,!1))}catch(t){k.call({_w:r,_d:!1},t)}}};F||(w=function Promise(t){y(this,w,"Promise","_h"),_(t),n.call(this);try{t(f(I,this,1),f(k,this,1))}catch(t){k.call(this,t)}},(n=function Promise(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(74)(w.prototype,{then:function then(t,e){var r=j(v(this,w));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=P?x.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&S(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n;this.promise=t,this.resolve=f(I,t,1),this.reject=f(k,t,1)},b.f=j=function(t){return t===w||t===c?new i(t):o(t)}),l(l.G+l.W+l.F*!F,{Promise:w}),r(19)(w,"Promise"),r(73)("Promise"),c=r(0).Promise,l(l.S+l.F*!F,"Promise",{reject:function reject(t){var e=j(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(a||!F),"Promise",{resolve:function resolve(t){return O(a&&this===c?w:this,t)}}),l(l.S+l.F*!(F&&r(49)(function(t){w.all(t).catch(E)})),"Promise",{all:function all(t){var e=this,r=j(e),n=r.resolve,o=r.reject,i=g(function(){var r=[],i=0,c=1;h(t,!1,function(t){var a=i++,u=!1;r.push(void 0),c++,e.resolve(t).then(function(t){u||(u=!0,r[a]=t,--c||n(r))},o)}),--c||n(r)});return i.e&&o(i.v),r.promise},race:function race(t){var e=this,r=j(e),n=r.reject,o=g(function(){h(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},function(t,e,r){r(52),r(18),r(23),r(79),r(72),r(71),t.exports=r(0).Promise},function(t,e,r){var n=r(60),o=r(32).concat("length","prototype");e.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return n(t,o)}},function(t,e,r){var n=r(38),o=r(16),i=r(14),c=r(39),a=r(10),u=r(62),f=Object.getOwnPropertyDescriptor;e.f=r(6)?f:function getOwnPropertyDescriptor(t,e){if(t=i(t),e=c(e,!0),u)try{return f(t,e)}catch(t){}if(a(t,e))return o(!n.f.call(t,e),t[e])}},function(t,e,r){var n=r(26),o=r(27);t.exports=function(t){return function(e,r){var i,c,a=o(e)+"",u=n(r),f=a.length;return u<0||u>=f?t?"":void 0:(i=a.charCodeAt(u))<55296||i>56319||u+1===f||(c=a.charCodeAt(u+1))<56320||c>57343?t?a.charAt(u):i:t?a.slice(u,u+2):c-56320+(i-55296<<10)+65536}}},function(t,e,r){"use strict";var n=r(56),o=r(16),i=r(19),c={};r(9)(c,r(1)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(c,{next:o(1,r)}),i(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=function(){}},function(t,e,r){"use strict";var n=r(86),o=r(85),i=r(11),c=r(14);t.exports=r(48)(Array,"Array",function(t,e){this._t=c(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(t,e,r){var n=r(26),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=n(t))<0?o(t+e,0):i(t,e)}},function(t,e,r){var n=r(14),o=r(34),i=r(88);t.exports=function(t){return function(e,r,c){var a,u=n(e),f=o(u.length),s=i(c,f);if(t&&r!=r){for(;f>s;)if((a=u[s++])!=a)return!0}else for(;f>s;s++)if((t||s in u)&&u[s]===r)return t||s||0;return!t&&-1}}},function(t,e,r){var n=r(102),o=r(101),i=r(93);t.exports=function _toConsumableArray(t){return n(t)||o(t)||i()}},function(t,e,r){var n=r(92);function _defineProperties(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),n(t,o.key,o)}}t.exports=function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),t}},function(t,e,r){t.exports=r(134)},function(t,e){t.exports=function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t,e,r){var n=r(31),o=r(1)("iterator"),i=r(11);t.exports=r(0).isIterable=function(t){var e=Object(t);return void 0!==e[o]||"@@iterator"in e||i.hasOwnProperty(n(e))}},function(t,e,r){r(23),r(18),t.exports=r(94)},function(t,e,r){t.exports=r(95)},function(t,e,r){"use strict";var n=r(7),o=r(16);t.exports=function(t,e,r){e in t?n.f(t,e,o(0,r)):t[e]=r}},function(t,e,r){"use strict";var n=r(13),o=r(4),i=r(24),c=r(51),a=r(50),u=r(34),f=r(97),s=r(37);o(o.S+o.F*!r(49)(function(t){Array.from(t)}),"Array",{from:function from(t){var e,r,o,l,p=i(t),_="function"==typeof this?this:Array,y=arguments.length,h=y>1?arguments[1]:void 0,v=void 0!==h,d=0,m=s(p);if(v&&(h=n(h,y>2?arguments[2]:void 0,2)),void 0==m||_==Array&&a(m))for(r=new _(e=u(p.length));e>d;d++)f(r,d,v?h(p[d],d):p[d]);else for(l=m.call(p),r=new _;!(o=l.next()).done;d++)f(r,d,v?c(l,h,[o.value,d],!0):o.value);return r.length=d,r}})},function(t,e,r){r(18),r(98),t.exports=r(0).Array.from},function(t,e,r){t.exports=r(99)},function(t,e,r){var n=r(100),o=r(96);t.exports=function _iterableToArray(t){if(o(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return n(t)}},function(t,e){t.exports=function _arrayWithoutHoles(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}}},function(t,e,r){var n=r(24),o=r(55);r(68)("getPrototypeOf",function(){return function getPrototypeOf(t){return o(n(t))}})},function(t,e,r){r(103),t.exports=r(0).Object.getPrototypeOf},function(t,e,r){t.exports=r(104)},function(t,e){t.exports=function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,r){r(53)("observable")},function(t,e,r){r(53)("asyncIterator")},function(t,e,r){var n=r(14),o=r(81).f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function getOwnPropertyNames(t){return c&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return c.slice()}}(t):o(n(t))}},function(t,e,r){var n=r(15);t.exports=Array.isArray||function isArray(t){return"Array"==n(t)}},function(t,e,r){var n=r(28),o=r(58),i=r(38);t.exports=function(t){var e=n(t),r=o.f;if(r)for(var c,a=r(t),u=i.f,f=0;a.length>f;)u.call(t,c=a[f++])&&e.push(c);return e}},function(t,e,r){"use strict";var n=r(2),o=r(10),i=r(6),c=r(4),a=r(57),u=r(69).KEY,f=r(12),s=r(33),l=r(19),p=r(20),_=r(1),y=r(54),h=r(53),v=r(111),d=r(110),m=r(3),b=r(5),g=r(14),O=r(39),A=r(16),x=r(56),w=r(109),P=r(82),E=r(7),j=r(28),F=P.f,T=E.f,S=w.f,M=n.Symbol,L=n.JSON,D=L&&L.stringify,k=_("_hidden"),I=_("toPrimitive"),W={}.propertyIsEnumerable,C=s("symbol-registry"),R=s("symbols"),B=s("op-symbols"),K=Object.prototype,U="function"==typeof M,N=n.QObject,q=!N||!N.prototype||!N.prototype.findChild,G=i&&f(function(){return 7!=x(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=F(K,e);n&&delete K[e],T(t,e,r),n&&t!==K&&T(K,e,n)}:T,z=function(t){var e=R[t]=x(M.prototype);return e._k=t,e},H=U&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},V=function defineProperty(t,e,r){return t===K&&V(B,e,r),m(t),e=O(e,!0),m(r),o(R,e)?(r.enumerable?(o(t,k)&&t[k][e]&&(t[k][e]=!1),r=x(r,{enumerable:A(0,!1)})):(o(t,k)||T(t,k,A(1,{})),t[k][e]=!0),G(t,e,r)):T(t,e,r)},J=function defineProperties(t,e){m(t);for(var r,n=v(e=g(e)),o=0,i=n.length;i>o;)V(t,r=n[o++],e[r]);return t},Y=function propertyIsEnumerable(t){var e=W.call(this,t=O(t,!0));return!(this===K&&o(R,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(R,t)||o(this,k)&&this[k][t])||e)},Q=function getOwnPropertyDescriptor(t,e){if(t=g(t),e=O(e,!0),t!==K||!o(R,e)||o(B,e)){var r=F(t,e);return!r||!o(R,e)||o(t,k)&&t[k][e]||(r.enumerable=!0),r}},X=function getOwnPropertyNames(t){for(var e,r=S(g(t)),n=[],i=0;r.length>i;)o(R,e=r[i++])||e==k||e==u||n.push(e);return n},Z=function getOwnPropertySymbols(t){for(var e,r=t===K,n=S(r?B:g(t)),i=[],c=0;n.length>c;)!o(R,e=n[c++])||r&&!o(K,e)||i.push(R[e]);return i};U||(a((M=function Symbol(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(r){this===K&&e.call(B,r),o(this,k)&&o(this[k],t)&&(this[k][t]=!1),G(this,t,A(1,r))};return i&&q&&G(K,t,{configurable:!0,set:e}),z(t)}).prototype,"toString",function toString(){return this._k}),P.f=Q,E.f=V,r(81).f=w.f=X,r(38).f=Y,r(58).f=Z,i&&!r(21)&&a(K,"propertyIsEnumerable",Y,!0),y.f=function(t){return z(_(t))}),c(c.G+c.W+c.F*!U,{Symbol:M});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)_($[tt++]);for(var et=j(_.store),rt=0;et.length>rt;)h(et[rt++]);c(c.S+c.F*!U,"Symbol",{for:function(t){return o(C,t+="")?C[t]:C[t]=M(t)},keyFor:function keyFor(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in C)if(C[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),c(c.S+c.F*!U,"Object",{create:function create(t,e){return void 0===e?x(t):J(x(t),e)},defineProperty:V,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),L&&c(c.S+c.F*(!U||f(function(){var t=M();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))})),"JSON",{stringify:function stringify(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(b(e)||void 0!==t)&&!H(t))return d(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!H(e))return e}),n[1]=e,D.apply(L,n)}}),M.prototype[I]||r(9)(M.prototype,I,M.prototype.valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},function(t,e,r){r(112),r(52),r(108),r(107),t.exports=r(0).Symbol},function(t,e,r){t.exports=r(113)},function(t,e,r){r(18),r(23),t.exports=r(54).f("iterator")},function(t,e,r){t.exports=r(115)},function(t,e,r){var n=r(40);function _setPrototypeOf(e,r){return t.exports=_setPrototypeOf=n||function _setPrototypeOf(t,e){return t.__proto__=e,t},_setPrototypeOf(e,r)}t.exports=_setPrototypeOf},function(t,e,r){var n=r(5),o=r(3),i=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=r(13)(Function.call,r(82).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function setPrototypeOf(t,r){return i(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:i}},function(t,e,r){var n=r(4);n(n.S,"Object",{setPrototypeOf:r(118).set})},function(t,e,r){r(119),t.exports=r(0).Object.setPrototypeOf},function(t,e){t.exports=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,e,r){var n=r(3),o=r(37);t.exports=r(0).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},function(t,e,r){r(23),r(18),t.exports=r(122)},function(t,e,r){t.exports=r(123)},function(t,e,r){var n=r(124);t.exports=function _iterableToArrayLimit(t,e){var r=[],o=!0,i=!1,c=void 0;try{for(var a,u=n(t);!(o=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);o=!0);}catch(t){i=!0,c=t}finally{try{o||null==u.return||u.return()}finally{if(i)throw c}}return r}},function(t,e){t.exports=function _arrayWithHoles(t){if(Array.isArray(t))return t}},function(t,e,r){var n=r(5),o=r(69).onFreeze;r(68)("freeze",function(t){return function freeze(e){return t&&n(e)?t(o(e)):e}})},function(t,e,r){r(127),t.exports=r(0).Object.freeze},function(t,e,r){t.exports=r(128)},function(t,e,r){"use strict";var n=r(28),o=r(58),i=r(38),c=r(24),a=r(59),u=Object.assign;t.exports=!u||r(12)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[r]||Object.keys(u({},e)).join("")!=n})?function assign(t,e){for(var r=c(t),u=arguments.length,f=1,s=o.f,l=i.f;u>f;)for(var p,_=a(arguments[f++]),y=s?n(_).concat(s(_)):n(_),h=y.length,v=0;h>v;)l.call(_,p=y[v++])&&(r[p]=_[p]);return r}:u},function(t,e,r){var n=r(4);n(n.S+n.F,"Object",{assign:r(130)})},function(t,e,r){r(131),t.exports=r(0).Object.assign},function(t,e,r){var n=r(4);n(n.S+n.F*!r(6),"Object",{defineProperty:r(7).f})},function(t,e,r){r(133);var n=r(0).Object;t.exports=function defineProperty(t,e,r){return n.defineProperty(t,e,r)}},function(t,e,r){var n=r(4);n(n.S+n.F*!r(6),"Object",{defineProperties:r(61)})},function(t,e,r){r(135);var n=r(0).Object;t.exports=function defineProperties(t,e){return n.defineProperties(t,e)}},function(t,e,r){"use strict";r.r(e),e.default=function indexOfAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.then(function(r){if(null==r||null==r.length||"function"==typeof r)throw TypeError("indexOfAF cannot be called on ".concat(r,", only on an Array, String, or array-like Object"));return("string"==typeof r?String:Array).prototype.indexOf.call(r,t,e)})}},function(t,e,r){"use strict";r.r(e),e.default=function findIndexAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Array.isArray(r))throw TypeError("findIndexAF called on ".concat(r,"; findIndexAF can only be called on an array"));return r.findIndex(t,e)})}},function(t,e,r){"use strict";r.r(e),e.default=function findAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Array.isArray(r))throw TypeError("findAF called on ".concat(r,"; findAF can only be called on an array"));return r.find(t,e)})}},function(t,e,r){"use strict";r.r(e),e.default=function includesAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.then(function(r){if(null==r||null==r.length||"function"==typeof r)throw TypeError("includesAF cannot be called on ".concat(r,", only on an Array, String, or array-like Object"));return("string"==typeof r?String:Array).prototype.includes.call(r,t,e)})}},function(t,e,r){"use strict";r.r(e),e.default=function someAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!r)throw TypeError("Cannot read property 'someAF' of ".concat(r));if(!Array.isArray(r))throw TypeError("".concat(r,".someAF is not a function"));return r.some(t,e)})}},function(t,e,r){"use strict";r.r(e),e.default=function everyAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!r)throw TypeError("Cannot read property 'everyAF' of ".concat(r));if(!Array.isArray(r))throw TypeError("".concat(r,".everyAF is not a function"));return r.every(t,e)})}},function(t,e,r){"use strict";r.r(e),e.default=function reduceAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.then(function(r){if(!r)throw TypeError("Cannot read property 'reduceAF' of ".concat(r));if(!Array.isArray(r))throw TypeError("".concat(r,".reduceAF is not a function"));if(!r.length&&null===e)throw TypeError("reduceAF of empty array with no initial value");return r.reduce(t,e)})}},function(t,e,r){"use strict";r.r(e),e.default=function filterAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){return r.filter(t,e)})}},function(t,e,r){"use strict";r.r(e),e.default=function forEachAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){return r.forEach(t,e)})}},function(t,e,r){"use strict";r.r(e),e.default=function mapAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){return r.map(t,e)})}},function(module,__webpack_exports__,__webpack_require__){"use strict";var _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(8),_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(30),_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__),_logAF__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(42),_templateObject=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["\n"],["\\n"]),_templateObject2=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["("]),_templateObject3=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()([")"]),_templateObject4=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["/"]),_templateObject5=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["/"]),_templateObject6=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()([":"]),_templateObject7=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["/"]),_templateObject8=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["/"]),_templateObject9=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["/"]),_templateObject10=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["="]),setFormat=function setFormat(){var error=Error();if(!error.stack)return"";var _filter=error.stack.split(_templateObject).filter(function(t,e,r){return/logAF(\s+|\s+\[.+\]\s+)\(/.test(r[e?e-1:e])}),_filter2=_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_filter,1),targetLine=_filter2[0],fullPath=targetLine.slice(targetLine.indexOf(_templateObject2)+1,targetLine.indexOf(_templateObject3)),target=fullPath.lastIndexOf(_templateObject4),formats={file:function file(){return"@".concat(fullPath.slice(target+1),":\n")},path:function path(){return"@".concat(fullPath,":\n")},parent:function parent(){var t=fullPath.slice(0,target).lastIndexOf(_templateObject5)+1;return"@".concat(fullPath.slice(t),":\n")},arrow:function arrow(){return"========================>"},custom:function custom(format){var _ref=fullPath.split(_templateObject6),_ref2=_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_ref,3),path=_ref2[0],line=_ref2[1],col=_ref2[2];path=path.split(_templateObject7);var file=path.pop();path=path.join(_templateObject8);var parent="".concat(path.split(_templateObject9).pop(),"/");path+="/";var arrow=formats.arrow();return eval(format.toString())}};if("custom"===_logAF__WEBPACK_IMPORTED_MODULE_2__.default.labelFormat){var format=_logAF__WEBPACK_IMPORTED_MODULE_2__.default.fullFormat;return formats.custom(format.slice(format.indexOf(_templateObject10)+1))}return formats[_logAF__WEBPACK_IMPORTED_MODULE_2__.default.labelFormat]()};__webpack_exports__.a=setFormat},function(t,e,r){var n=r(92);t.exports=function _defineProperty(t,e,r){return e in t?n(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";r.r(e);var n=r(36),o=r.n(n),i=r(148),c=r.n(i),a=r(67),u=r.n(a),f=r(8),s=r.n(f),l=r(30),p=r.n(l),_=r(40),y=r.n(_),h=r(41),v=r.n(h),d=r(66),m=r.n(d),b=r(65),g=r.n(b),O=r(64),A=r.n(O),x=r(70),w=r(42),P=r(146),E=r(145),j=r(144),F=r(143),T=r(142),S=r(141),M=r(140),L=r(139),D=r(138),k=r(137),I="".concat("./lib/","classes/"),W=[["".concat("async-af"),"".concat(I,"AsyncAF")],["@async-af/wrapper","".concat(I,"AsyncAfWrapper"),x.default]],C=[["@async-af/log","".concat("".concat("./lib/","methods/other/"),"logAF"),w.default]],R="".concat("./lib/","methods/arrays/"),B=[["@async-af/map","".concat(R,"mapAF"),P.default],["@async-af/forEach","".concat(R,"forEachAF"),E.default],["@async-af/filter","".concat(R,"filterAF"),j.default],["@async-af/reduce","".concat(R,"reduceAF"),F.default],["@async-af/every","".concat(R,"everyAF"),T.default],["@async-af/some","".concat(R,"someAF"),S.default],["@async-af/includes","".concat(R,"includesAF"),M.default],["@async-af/find","".concat(R,"findAF"),L.default],["@async-af/findIndex","".concat(R,"findIndexAF"),D.default],["@async-af/indexOf","".concat(R,"indexOfAF"),k.default]],K=(W.concat([],C,B),function pluckMethods(t){return t.map(function(t){var e=p()(t,3);return e[0],e[1],e[2]})}),U=K(C),N=K(B),q=s()(["AF"]),G=function(t){function AsyncAF(){return v()(this,AsyncAF),g()(this,A()(AsyncAF).apply(this,arguments))}return m()(AsyncAF,t),AsyncAF}(x.AsyncAfWrapperProto),z=G;(G=function AsyncAF(t){return new z(t)}).prototype=z.prototype,y()(G,z),G.prototype.constructor=G;var H=function prepForDefine(t){return t.reduce(function(t,e){var r=e.name.split(q)||[e.name],n=p()(r,1)[0];return u()(t,c()({},e.name,{value:e}),c()({},n,{value:e}))},{})};o()(x.AsyncAfWrapperProto,H(U)),o()(x.AsyncAfWrapperProto.prototype,H(N)),e.default=G}]).default}); | ||
!function webpackUniversalModuleDefinition(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("AsyncAF",[],e):"object"==typeof exports?exports.AsyncAF=e():t.AsyncAF=e()}("undefined"!=typeof self?self:this,function(){return function(t){var e={};function __webpack_require__(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}return __webpack_require__.m=t,__webpack_require__.c=e,__webpack_require__.d=function(t,e,r){__webpack_require__.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},__webpack_require__.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.n=function(t){var e=t&&t.__esModule?function getDefault(){return t.default}:function getModuleExports(){return t};return __webpack_require__.d(e,"a",e),e},__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=152)}([function(t,e){var r=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(34)("wks"),o=r(21),i=r(2).Symbol,a="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=n},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){"use strict";e.a=function permissiveIsArrayLike(t){return Array.isArray(t)||null!=t&&null!=t.length}},function(t,e,r){var n=r(6);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,r){var n=r(2),o=r(0),i=r(14),a=r(10),c=r(11),u=function(t,e,r){var f,s,l,p=t&u.F,_=t&u.G,y=t&u.S,v=t&u.P,h=t&u.B,d=t&u.W,b=_?o:o[e]||(o[e]={}),m=b.prototype,g=_?n:y?n[e]:(n[e]||{}).prototype;for(f in _&&(r=e),r)(s=!p&&g&&void 0!==g[f])&&c(b,f)||(l=s?g[f]:r[f],b[f]=_&&"function"!=typeof g[f]?r[f]:h&&s?i(l,n):d&&g[f]==l?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((b.virtual||(b.virtual={}))[f]=l,t&u.R&&m&&!m[f]&&a(m,f,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){t.exports=!r(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(4),o=r(66),i=r(40),a=Object.defineProperty;e.f=r(7)?Object.defineProperty:function defineProperty(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(37),o=r(130);t.exports=function _taggedTemplateLiteral(t,e){return e||(e=t.slice(0)),o(n(t,{raw:{value:o(e)}}))}},function(t,e,r){var n=r(8),o=r(17);t.exports=r(7)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e){t.exports={}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(18);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(63),o=r(28);t.exports=function(t){return n(o(t))}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){"use strict";var n=r(84)(!0);r(52)(String,"String",function(t){this._t=t+"",this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},function(t,e,r){var n=r(8).f,o=r(11),i=r(1)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){t.exports=!0},function(t,e,r){"use strict";var n=r(18);t.exports.f=function(t){return new function PromiseCapability(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=n(e),this.reject=n(r)}(t)}},function(t,e,r){r(88);for(var n=r(2),o=r(10),i=r(12),a=r(1)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<c.length;u++){var f=c[u],s=n[f],l=s&&s.prototype;l&&!l[a]&&o(l,a,f),i[f]=i.Array}},function(t,e,r){var n=r(28);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(34)("keys"),o=r(21);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(64),o=r(33);t.exports=Object.keys||function keys(t){return n(t,o)}},function(t,e,r){var n=r(6),o=r(2).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,r){var n=r(127),o=r(126),i=r(122);t.exports=function _slicedToArray(t,e){return n(t)||o(t,e)||i()}},function(t,e,r){var n=r(16),o=r(1)("toStringTag"),i="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?r:i?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(2),o=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,r){var n=r(27),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){t.exports=r(81)},function(t,e,r){t.exports=r(137)},function(t,e,r){var n=r(32),o=r(1)("iterator"),i=r(12);t.exports=r(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[n(t)]}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){var n=r(6);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){t.exports=r(121)},function(t,e,r){var n=r(117),o=r(115);function _typeof2(t){return(_typeof2="function"==typeof o&&"symbol"==typeof n?function _typeof2(t){return typeof t}:function _typeof2(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t})(t)}function _typeof(e){return"function"==typeof o&&"symbol"===_typeof2(n)?t.exports=_typeof=function _typeof(t){return _typeof2(t)}:t.exports=_typeof=function _typeof(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":_typeof2(t)},_typeof(e)}t.exports=_typeof},function(t,e,r){var n=r(103),o=r(102),i=r(94);t.exports=function _toConsumableArray(t){return n(t)||o(t)||i()}},function(t,e){t.exports=function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){t.exports=r(133)},function(t,e,r){"use strict";r.r(e);var n=r(37),o=r.n(n),i=r(43),a=r.n(i),c=r(36),u=r.n(c),f=r(150),s=function logAF(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];logAF.label&&e.unshift(logAF.setFormat());var n=Date.now();return u.a.all(e).then(function(t){if(logAF.duration){var e=((Date.now()-n)/1e3).toFixed(3);t.push("\nin ".concat(e," secs"))}logAF.wrappedLog.apply(logAF,a()(t))})};o()(s,{wrappedLog:{value:function wrappedLog(){var t;console&&console.log&&(t=console).log.apply(t,arguments)},writable:!0},wrappedWarn:{value:function wrappedWarn(){var t;console&&console.warn&&(t=console).warn.apply(t,arguments)},writable:!0},setFormat:{value:f.a,writable:!0},options:{value:function logAfOptions(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.label,r=t.duration,n=t.labelFormat;if("boolean"==typeof e&&(l.label=e),"boolean"==typeof r&&(l.duration=r),n){var o=n.slice(0,6);["file","path","parent","arrow","custom"].includes(o)?(l.labelFormat=o,l.fullFormat=n):l.wrappedWarn("AsyncAF Warning: logAF labelFormat option must be set to 'file' (default), 'path', 'parent', 'arrow', or 'custom'")}},writable:!0}}),(s.options.reset=function logAfOptionsReset(){s.label=!0,s.labelFormat="file",s.duration=!0})();var l=e.default=s},function(t,e,r){var n=r(4),o=r(6),i=r(23);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){var n,o,i,a=r(14),c=r(77),u=r(51),f=r(30),s=r(2),l=s.process,p=s.setImmediate,_=s.clearImmediate,y=s.MessageChannel,v=s.Dispatch,h=0,d={},b=function(){var t=+this;if(d.hasOwnProperty(t)){var e=d[t];delete d[t],e()}},m=function(t){b.call(t.data)};p&&_||(p=function setImmediate(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return d[++h]=function(){c("function"==typeof t?t:Function(t),e)},n(h),h},_=function clearImmediate(t){delete d[t]},"process"==r(16)(l)?n=function(t){l.nextTick(a(b,t,1))}:v&&v.now?n=function(t){v.now(a(b,t,1))}:y?(i=(o=new y).port2,o.port1.onmessage=m,n=a(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(n=function(t){s.postMessage(t+"","*")},s.addEventListener("message",m,!1)):n="onreadystatechange"in f("script")?function(t){u.appendChild(f("script")).onreadystatechange=function(){u.removeChild(this),b.call(t)}}:function(t){setTimeout(a(b,t,1),0)}),t.exports={set:p,clear:_}},function(t,e,r){var n=r(4),o=r(18),i=r(1)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[i])?e:o(r)}},function(t,e,r){var n=r(2).document;t.exports=n&&n.documentElement},function(t,e,r){"use strict";var n=r(22),o=r(5),i=r(61),a=r(10),c=r(12),u=r(85),f=r(20),s=r(59),l=r(1)("iterator"),p=!([].keys&&"next"in[].keys()),_=function(){return this};t.exports=function(t,e,r,y,v,h,d){u(r,e,y);var b,m,g,O=function(t){if(!p&&t in P)return P[t];switch(t){case"keys":return function keys(){return new r(this,t)};case"values":return function values(){return new r(this,t)}}return function entries(){return new r(this,t)}},A=e+" Iterator",x="values"==v,w=!1,P=t.prototype,j=P[l]||P["@@iterator"]||v&&P[v],E=j||O(v),T=v?x?O("entries"):E:void 0,F="Array"==e&&P.entries||j;if(F&&(g=s(F.call(new t)))!==Object.prototype&&g.next&&(f(g,A,!0),n||"function"==typeof g[l]||a(g,l,_)),x&&j&&"values"!==j.name&&(w=!0,E=function values(){return j.call(this)}),n&&!d||!p&&!w&&P[l]||a(P,l,E),c[e]=E,c[A]=_,v)if(b={values:x?E:O("values"),keys:h?E:O("keys"),entries:T},d)for(m in b)m in P||i(P,m,b[m]);else o(o.P+o.F*(p||w),e,b);return b}},function(t,e,r){var n=r(1)("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],a=i[n]();a.next=function(){return{done:r=!0}},i[n]=function(){return a},t(i)}catch(t){}return r}},function(t,e,r){var n=r(12),o=r(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},function(t,e,r){var n=r(4);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},function(t,e){},function(t,e,r){var n=r(2),o=r(0),i=r(22),a=r(58),c=r(8).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:a.f(t)})}},function(t,e,r){e.f=r(1)},function(t,e,r){var n=r(11),o=r(25),i=r(26)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,r){var n=r(4),o=r(65),i=r(33),a=r(26)("IE_PROTO"),c=function(){},u=function(){var t,e=r(30)("iframe"),n=i.length;for(e.style.display="none",r(51).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;n--;)delete u.prototype[i[n]];return u()};t.exports=Object.create||function create(t,e){var r;return null!==t?(c.prototype=n(t),r=new c,c.prototype=null,r[a]=t):r=u(),void 0===e?r:o(r,e)}},function(t,e,r){t.exports=r(10)},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(16);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){var n=r(11),o=r(15),i=r(90)(!1),a=r(26)("IE_PROTO");t.exports=function(t,e){var r,c=o(t),u=0,f=[];for(r in c)r!=a&&n(c,r)&&f.push(r);for(;e.length>u;)n(c,r=e[u++])&&(~i(f,r)||f.push(r));return f}},function(t,e,r){var n=r(8),o=r(4),i=r(29);t.exports=r(7)?Object.defineProperties:function defineProperties(t,e){o(t);for(var r,a=i(e),c=a.length,u=0;c>u;)n.f(t,r=a[u++],e[r]);return t}},function(t,e,r){t.exports=!r(7)&&!r(13)(function(){return 7!=Object.defineProperty(r(30)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(106);function _getPrototypeOf(e){return t.exports=_getPrototypeOf=n||function _getPrototypeOf(t){return t.__proto__},_getPrototypeOf(e)}t.exports=_getPrototypeOf},function(t,e,r){var n=r(42),o=r(107);t.exports=function _possibleConstructorReturn(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?o(t):e}},function(t,e,r){var n=r(118);t.exports=function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n(t.prototype,e&&e.prototype),e&&n(t,e)}},function(t,e,r){var n=r(5),o=r(0),i=r(13);t.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*i(function(){r(1)}),"Object",a)}},function(t,e,r){var n=r(21)("meta"),o=r(6),i=r(11),a=r(8).f,c=0,u=Object.isExtensible||function(){return!0},f=!r(13)(function(){return u(Object.preventExtensions({}))}),s=function(t){a(t,n,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!u(t))return"F";if(!e)return"E";s(t)}return t[n].i},getWeak:function(t,e){if(!i(t,n)){if(!u(t))return!0;if(!e)return!1;s(t)}return t[n].w},onFreeze:function(t){return f&&l.NEED&&u(t)&&!i(t,n)&&s(t),t}}},function(t,e,r){"use strict";var n=r(5),o=r(23),i=r(48);n(n.S,"Promise",{try:function(t){var e=o.f(this),r=i(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},function(t,e,r){"use strict";var n=r(5),o=r(0),i=r(2),a=r(50),c=r(47);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),r="function"==typeof t;return this.then(r?function(r){return c(e,t()).then(function(){return r})}:t,r?function(r){return c(e,t()).then(function(){throw r})}:t)}})},function(t,e,r){"use strict";var n=r(2),o=r(0),i=r(8),a=r(7),c=r(1)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:n[t];a&&e&&!e[c]&&i.f(e,c,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(10);t.exports=function(t,e,r){for(var o in e)r&&t[o]?t[o]=e[o]:n(t,o,e[o]);return t}},function(t,e,r){var n=r(2),o=r(49).set,i=n.MutationObserver||n.WebKitMutationObserver,a=n.process,c=n.Promise,u="process"==r(16)(a);t.exports=function(){var t,e,r,f=function(){var n,o;for(u&&(n=a.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(f)};else if(!i||n.navigator&&n.navigator.standalone)if(c&&c.resolve){var s=c.resolve();r=function(){s.then(f)}}else r=function(){o.call(n,f)};else{var l=!0,p=document.createTextNode("");new i(f).observe(p,{characterData:!0}),r=function(){p.data=l=!l}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,r()),e=o}}},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){var n=r(14),o=r(55),i=r(54),a=r(4),c=r(35),u=r(38),f={},s={};(e=t.exports=function(t,e,r,l,p){var _,y,v,h,d=p?function(){return t}:u(t),b=n(r,l,e?2:1),m=0;if("function"!=typeof d)throw TypeError(t+" is not iterable!");if(i(d)){for(_=c(t.length);_>m;m++)if((h=e?b(a(y=t[m])[0],y[1]):b(t[m]))===f||h===s)return h}else for(v=d.call(t);!(y=v.next()).done;)if((h=o(v,b,y.value,e))===f||h===s)return h}).BREAK=f,e.RETURN=s},function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,e,r){"use strict";var n,o,i,a,c=r(22),u=r(2),f=r(14),s=r(32),l=r(5),p=r(6),_=r(18),y=r(79),v=r(78),h=r(50),d=r(49).set,b=r(76)(),m=r(23),g=r(48),O=r(47),A=u.TypeError,x=u.process,w=u.Promise,P="process"==s(x),j=function(){},E=o=m.f,T=!!function(){try{var t=w.resolve(1),e=(t.constructor={})[r(1)("species")]=function(t){t(j,j)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(j)instanceof e}catch(t){}}(),F=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},S=function(t,e){if(!t._n){t._n=!0;var r=t._c;b(function(){for(var n=t._v,o=1==t._s,i=0,a=function(e){var r,i,a,c=o?e.ok:e.fail,u=e.resolve,f=e.reject,s=e.domain;try{c?(o||(2==t._h&&k(t),t._h=1),!0===c?r=n:(s&&s.enter(),r=c(n),s&&(s.exit(),a=!0)),r===e.promise?f(A("Promise-chain cycle")):(i=F(r))?i.call(r,u,f):u(r)):f(n)}catch(t){s&&!a&&s.exit(),f(t)}};r.length>i;)a(r[i++]);t._c=[],t._n=!1,e&&!t._h&&M(t)})}},M=function(t){d.call(u,function(){var e,r,n,o=t._v,i=L(t);if(i&&(e=g(function(){P?x.emit("unhandledRejection",o,t):(r=u.onunhandledrejection)?r({promise:t,reason:o}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=P||L(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},L=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){d.call(u,function(){var e;P?x.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},D=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),S(e,!0))},I=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw A("Promise can't be resolved itself");(e=F(t))?b(function(){var n={_w:r,_d:!1};try{e.call(t,f(I,n,1),f(D,n,1))}catch(t){D.call(n,t)}}):(r._v=t,r._s=1,S(r,!1))}catch(t){D.call({_w:r,_d:!1},t)}}};T||(w=function Promise(t){y(this,w,"Promise","_h"),_(t),n.call(this);try{t(f(I,this,1),f(D,this,1))}catch(t){D.call(this,t)}},(n=function Promise(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(75)(w.prototype,{then:function then(t,e){var r=E(h(this,w));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=P?x.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&S(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n;this.promise=t,this.resolve=f(I,t,1),this.reject=f(D,t,1)},m.f=E=function(t){return t===w||t===a?new i(t):o(t)}),l(l.G+l.W+l.F*!T,{Promise:w}),r(20)(w,"Promise"),r(74)("Promise"),a=r(0).Promise,l(l.S+l.F*!T,"Promise",{reject:function reject(t){var e=E(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(c||!T),"Promise",{resolve:function resolve(t){return O(c&&this===a?w:this,t)}}),l(l.S+l.F*!(T&&r(53)(function(t){w.all(t).catch(j)})),"Promise",{all:function all(t){var e=this,r=E(e),n=r.resolve,o=r.reject,i=g(function(){var r=[],i=0,a=1;v(t,!1,function(t){var c=i++,u=!1;r.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,r[c]=t,--a||n(r))},o)}),--a||n(r)});return i.e&&o(i.v),r.promise},race:function race(t){var e=this,r=E(e),n=r.reject,o=g(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},function(t,e,r){r(56),r(19),r(24),r(80),r(73),r(72),t.exports=r(0).Promise},function(t,e,r){var n=r(64),o=r(33).concat("length","prototype");e.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return n(t,o)}},function(t,e,r){var n=r(39),o=r(17),i=r(15),a=r(40),c=r(11),u=r(66),f=Object.getOwnPropertyDescriptor;e.f=r(7)?f:function getOwnPropertyDescriptor(t,e){if(t=i(t),e=a(e,!0),u)try{return f(t,e)}catch(t){}if(c(t,e))return o(!n.f.call(t,e),t[e])}},function(t,e,r){var n=r(27),o=r(28);t.exports=function(t){return function(e,r){var i,a,c=o(e)+"",u=n(r),f=c.length;return u<0||u>=f?t?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===f||(a=c.charCodeAt(u+1))<56320||a>57343?t?c.charAt(u):i:t?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},function(t,e,r){"use strict";var n=r(60),o=r(17),i=r(20),a={};r(10)(a,r(1)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(a,{next:o(1,r)}),i(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=function(){}},function(t,e,r){"use strict";var n=r(87),o=r(86),i=r(12),a=r(15);t.exports=r(52)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(t,e,r){var n=r(27),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=n(t))<0?o(t+e,0):i(t,e)}},function(t,e,r){var n=r(15),o=r(35),i=r(89);t.exports=function(t){return function(e,r,a){var c,u=n(e),f=o(u.length),s=i(a,f);if(t&&r!=r){for(;f>s;)if((c=u[s++])!=c)return!0}else for(;f>s;s++)if((t||s in u)&&u[s]===r)return t||s||0;return!t&&-1}}},function(t,e,r){var n=r(93);function _defineProperties(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),n(t,o.key,o)}}t.exports=function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),t}},function(t,e,r){"use strict";r.r(e);var n=r(41),o=r.n(n),i=r(69),a=r.n(i),c=r(68),u=r.n(c),f=r(67),s=r.n(f),l=r(36),p=r.n(l),_=r(44),y=r.n(_),v=r(91),h=r.n(v),d=r(45),b=r.n(d),m=r(42),g=r.n(m);r.d(e,"AsyncAfWrapperProto",function(){return O});var O=function(){function AsyncAfWrapperProto(t){y()(this,AsyncAfWrapperProto),this.data=p.a[Array.isArray(t)?"all":"resolve"](t)}return h()(AsyncAfWrapperProto,[{key:"then",value:function then(t,e){return new this.constructor(this.data.then(t,e))}},{key:"catch",value:function _catch(t){return this.then(null,t)}}]),AsyncAfWrapperProto}(),A=function(t){function AsyncAfWrapper(){return y()(this,AsyncAfWrapper),u()(this,s()(AsyncAfWrapper).apply(this,arguments))}return a()(AsyncAfWrapper,t),AsyncAfWrapper}(O),x=A;(A=function AsyncAfWrapper(t){return new x(t)}).prototype=x.prototype,o()(A,x),A.prototype.constructor=A,O.use=function use(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!==g()(t))throw TypeError("prototypeMethods param accepts an Object containing the prototypeMethods you'd like to add to the AsyncAF prototype, or an empty Object");if("object"!==g()(e))throw TypeError("staticMethods param accepts an Object containing the staticMethods you'd like to add to AsyncAF");b()(this.prototype,t),b()(this,e)},e.default=A},function(t,e,r){t.exports=r(135)},function(t,e){t.exports=function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t,e,r){var n=r(32),o=r(1)("iterator"),i=r(12);t.exports=r(0).isIterable=function(t){var e=Object(t);return void 0!==e[o]||"@@iterator"in e||i.hasOwnProperty(n(e))}},function(t,e,r){r(24),r(19),t.exports=r(95)},function(t,e,r){t.exports=r(96)},function(t,e,r){"use strict";var n=r(8),o=r(17);t.exports=function(t,e,r){e in t?n.f(t,e,o(0,r)):t[e]=r}},function(t,e,r){"use strict";var n=r(14),o=r(5),i=r(25),a=r(55),c=r(54),u=r(35),f=r(98),s=r(38);o(o.S+o.F*!r(53)(function(t){Array.from(t)}),"Array",{from:function from(t){var e,r,o,l,p=i(t),_="function"==typeof this?this:Array,y=arguments.length,v=y>1?arguments[1]:void 0,h=void 0!==v,d=0,b=s(p);if(h&&(v=n(v,y>2?arguments[2]:void 0,2)),void 0==b||_==Array&&c(b))for(r=new _(e=u(p.length));e>d;d++)f(r,d,h?v(p[d],d):p[d]);else for(l=b.call(p),r=new _;!(o=l.next()).done;d++)f(r,d,h?a(l,v,[o.value,d],!0):o.value);return r.length=d,r}})},function(t,e,r){r(19),r(99),t.exports=r(0).Array.from},function(t,e,r){t.exports=r(100)},function(t,e,r){var n=r(101),o=r(97);t.exports=function _iterableToArray(t){if(o(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return n(t)}},function(t,e){t.exports=function _arrayWithoutHoles(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}}},function(t,e,r){var n=r(25),o=r(59);r(70)("getPrototypeOf",function(){return function getPrototypeOf(t){return o(n(t))}})},function(t,e,r){r(104),t.exports=r(0).Object.getPrototypeOf},function(t,e,r){t.exports=r(105)},function(t,e){t.exports=function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,r){r(57)("observable")},function(t,e,r){r(57)("asyncIterator")},function(t,e,r){var n=r(15),o=r(82).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function getOwnPropertyNames(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(n(t))}},function(t,e,r){var n=r(16);t.exports=Array.isArray||function isArray(t){return"Array"==n(t)}},function(t,e,r){var n=r(29),o=r(62),i=r(39);t.exports=function(t){var e=n(t),r=o.f;if(r)for(var a,c=r(t),u=i.f,f=0;c.length>f;)u.call(t,a=c[f++])&&e.push(a);return e}},function(t,e,r){"use strict";var n=r(2),o=r(11),i=r(7),a=r(5),c=r(61),u=r(71).KEY,f=r(13),s=r(34),l=r(20),p=r(21),_=r(1),y=r(58),v=r(57),h=r(112),d=r(111),b=r(4),m=r(6),g=r(15),O=r(40),A=r(17),x=r(60),w=r(110),P=r(83),j=r(8),E=r(29),T=P.f,F=j.f,S=w.f,M=n.Symbol,L=n.JSON,k=L&&L.stringify,D=_("_hidden"),I=_("toPrimitive"),W={}.propertyIsEnumerable,C=s("symbol-registry"),R=s("symbols"),B=s("op-symbols"),K=Object.prototype,U="function"==typeof M,N=n.QObject,q=!N||!N.prototype||!N.prototype.findChild,G=i&&f(function(){return 7!=x(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=T(K,e);n&&delete K[e],F(t,e,r),n&&t!==K&&F(K,e,n)}:F,z=function(t){var e=R[t]=x(M.prototype);return e._k=t,e},H=U&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},V=function defineProperty(t,e,r){return t===K&&V(B,e,r),b(t),e=O(e,!0),b(r),o(R,e)?(r.enumerable?(o(t,D)&&t[D][e]&&(t[D][e]=!1),r=x(r,{enumerable:A(0,!1)})):(o(t,D)||F(t,D,A(1,{})),t[D][e]=!0),G(t,e,r)):F(t,e,r)},J=function defineProperties(t,e){b(t);for(var r,n=h(e=g(e)),o=0,i=n.length;i>o;)V(t,r=n[o++],e[r]);return t},Y=function propertyIsEnumerable(t){var e=W.call(this,t=O(t,!0));return!(this===K&&o(R,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(R,t)||o(this,D)&&this[D][t])||e)},Q=function getOwnPropertyDescriptor(t,e){if(t=g(t),e=O(e,!0),t!==K||!o(R,e)||o(B,e)){var r=T(t,e);return!r||!o(R,e)||o(t,D)&&t[D][e]||(r.enumerable=!0),r}},X=function getOwnPropertyNames(t){for(var e,r=S(g(t)),n=[],i=0;r.length>i;)o(R,e=r[i++])||e==D||e==u||n.push(e);return n},Z=function getOwnPropertySymbols(t){for(var e,r=t===K,n=S(r?B:g(t)),i=[],a=0;n.length>a;)!o(R,e=n[a++])||r&&!o(K,e)||i.push(R[e]);return i};U||(c((M=function Symbol(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(r){this===K&&e.call(B,r),o(this,D)&&o(this[D],t)&&(this[D][t]=!1),G(this,t,A(1,r))};return i&&q&&G(K,t,{configurable:!0,set:e}),z(t)}).prototype,"toString",function toString(){return this._k}),P.f=Q,j.f=V,r(82).f=w.f=X,r(39).f=Y,r(62).f=Z,i&&!r(22)&&c(K,"propertyIsEnumerable",Y,!0),y.f=function(t){return z(_(t))}),a(a.G+a.W+a.F*!U,{Symbol:M});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)_($[tt++]);for(var et=E(_.store),rt=0;et.length>rt;)v(et[rt++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return o(C,t+="")?C[t]:C[t]=M(t)},keyFor:function keyFor(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in C)if(C[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!U,"Object",{create:function create(t,e){return void 0===e?x(t):J(x(t),e)},defineProperty:V,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),L&&a(a.S+a.F*(!U||f(function(){var t=M();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))})),"JSON",{stringify:function stringify(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(m(e)||void 0!==t)&&!H(t))return d(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!H(e))return e}),n[1]=e,k.apply(L,n)}}),M.prototype[I]||r(10)(M.prototype,I,M.prototype.valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},function(t,e,r){r(113),r(56),r(109),r(108),t.exports=r(0).Symbol},function(t,e,r){t.exports=r(114)},function(t,e,r){r(19),r(24),t.exports=r(58).f("iterator")},function(t,e,r){t.exports=r(116)},function(t,e,r){var n=r(41);function _setPrototypeOf(e,r){return t.exports=_setPrototypeOf=n||function _setPrototypeOf(t,e){return t.__proto__=e,t},_setPrototypeOf(e,r)}t.exports=_setPrototypeOf},function(t,e,r){var n=r(6),o=r(4),i=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=r(14)(Function.call,r(83).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function setPrototypeOf(t,r){return i(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:i}},function(t,e,r){var n=r(5);n(n.S,"Object",{setPrototypeOf:r(119).set})},function(t,e,r){r(120),t.exports=r(0).Object.setPrototypeOf},function(t,e){t.exports=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,e,r){var n=r(4),o=r(38);t.exports=r(0).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},function(t,e,r){r(24),r(19),t.exports=r(123)},function(t,e,r){t.exports=r(124)},function(t,e,r){var n=r(125);t.exports=function _iterableToArrayLimit(t,e){var r=[],o=!0,i=!1,a=void 0;try{for(var c,u=n(t);!(o=(c=u.next()).done)&&(r.push(c.value),!e||r.length!==e);o=!0);}catch(t){i=!0,a=t}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}return r}},function(t,e){t.exports=function _arrayWithHoles(t){if(Array.isArray(t))return t}},function(t,e,r){var n=r(6),o=r(71).onFreeze;r(70)("freeze",function(t){return function freeze(e){return t&&n(e)?t(o(e)):e}})},function(t,e,r){r(128),t.exports=r(0).Object.freeze},function(t,e,r){t.exports=r(129)},function(t,e,r){"use strict";var n=r(29),o=r(62),i=r(39),a=r(25),c=r(63),u=Object.assign;t.exports=!u||r(13)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[r]||Object.keys(u({},e)).join("")!=n})?function assign(t,e){for(var r=a(t),u=arguments.length,f=1,s=o.f,l=i.f;u>f;)for(var p,_=c(arguments[f++]),y=s?n(_).concat(s(_)):n(_),v=y.length,h=0;v>h;)l.call(_,p=y[h++])&&(r[p]=_[p]);return r}:u},function(t,e,r){var n=r(5);n(n.S+n.F,"Object",{assign:r(131)})},function(t,e,r){r(132),t.exports=r(0).Object.assign},function(t,e,r){var n=r(5);n(n.S+n.F*!r(7),"Object",{defineProperty:r(8).f})},function(t,e,r){r(134);var n=r(0).Object;t.exports=function defineProperty(t,e,r){return n.defineProperty(t,e,r)}},function(t,e,r){var n=r(5);n(n.S+n.F*!r(7),"Object",{defineProperties:r(65)})},function(t,e,r){r(136);var n=r(0).Object;t.exports=function defineProperties(t,e){return n.defineProperties(t,e)}},function(t,e,r){"use strict";r.r(e);var n=r(3),o=function joinAF(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return this.then(function(e){if(!Object(n.a)(e))throw TypeError("joinAF cannot be called on ".concat(e,", only on an Array or array-like Object"));return Array.prototype.join.call(e,t)})};Object.defineProperty(o,"length",{value:1}),e.default=o},function(t,e,r){"use strict";r.r(e);var n=r(3);e.default=function lastIndexOfAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(n.a)(r))throw TypeError("lastIndexOfAF cannot be called on ".concat(r,", only on an Array, String, or array-like Object"));return("string"==typeof r?String:Array).prototype.lastIndexOf.call(r,t,e||r.length-1)})}},function(t,e,r){"use strict";r.r(e);var n=r(3);e.default=function indexOfAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.then(function(r){if(!Object(n.a)(r))throw TypeError("indexOfAF cannot be called on ".concat(r,", only on an Array, String, or array-like Object"));return("string"==typeof r?String:Array).prototype.indexOf.call(r,t,e)})}},function(t,e,r){"use strict";r.r(e);var n=r(3);e.default=function findIndexAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(n.a)(r))throw TypeError("findIndexAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.findIndex.call(r,t,e)})}},function(t,e,r){"use strict";r.r(e);var n=r(3);e.default=function findAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(n.a)(r))throw TypeError("findAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.find.call(r,t,e)})}},function(t,e,r){"use strict";r.r(e);var n=r(3);e.default=function includesAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.then(function(r){if(!Object(n.a)(r))throw TypeError("includesAF cannot be called on ".concat(r,", only on an Array, String, or array-like Object"));return("string"==typeof r?String:Array).prototype.includes.call(r,t,e)})}},function(t,e,r){"use strict";r.r(e);var n=r(3);e.default=function someAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(n.a)(r))throw TypeError("someAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.some.call(r,t,e)})}},function(t,e,r){"use strict";r.r(e);var n=r(3);e.default=function everyAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(n.a)(r))throw TypeError("everyAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.every.call(r,t,e)})}},function(t,e,r){"use strict";r.r(e);var n=r(3);e.default=function reduceAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.then(function(r){if(!Object(n.a)(r))throw TypeError("reduceAF cannot be called on ".concat(r,", only on an Array or array-like Object"));if(!r.length&&null===e)throw TypeError("reduceAF cannot be called on an empty array without an initial value");return Array.prototype.reduce.call(r,t,e)})}},function(t,e,r){"use strict";r.r(e);var n=r(3);e.default=function filterAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(n.a)(r))throw TypeError("filterAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.filter.call(r,t,e)})}},function(t,e,r){"use strict";r.r(e);var n=r(3);e.default=function forEachAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(n.a)(r))throw TypeError("forEachAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.forEach.call(r,t,e)})}},function(t,e,r){"use strict";r.r(e);var n=r(3);e.default=function mapAF(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(n.a)(r))throw TypeError("mapAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.map.call(r,t,e)})}},function(module,__webpack_exports__,__webpack_require__){"use strict";var _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9),_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(31),_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__),_logAF__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(46),_templateObject=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["\n"],["\\n"]),_templateObject2=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["("]),_templateObject3=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()([")"]),_templateObject4=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["/"]),_templateObject5=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["/"]),_templateObject6=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()([":"]),_templateObject7=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["/"]),_templateObject8=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["/"]),_templateObject9=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["/"]),_templateObject10=_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["="]),setFormat=function setFormat(){var error=Error();if(!error.stack)return"";var _filter=error.stack.split(_templateObject).filter(function(t,e,r){return/logAF(\s+|\s+\[.+\]\s+)\(/.test(r[e?e-1:e])}),_filter2=_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_filter,1),targetLine=_filter2[0],fullPath=targetLine.slice(targetLine.indexOf(_templateObject2)+1,targetLine.indexOf(_templateObject3)),target=fullPath.lastIndexOf(_templateObject4),formats={file:function file(){return"@".concat(fullPath.slice(target+1),":\n")},path:function path(){return"@".concat(fullPath,":\n")},parent:function parent(){var t=fullPath.slice(0,target).lastIndexOf(_templateObject5)+1;return"@".concat(fullPath.slice(t),":\n")},arrow:function arrow(){return"========================>"},custom:function custom(format){var _ref=fullPath.split(_templateObject6),_ref2=_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_ref,3),path=_ref2[0],line=_ref2[1],col=_ref2[2];path=path.split(_templateObject7);var file=path.pop();path=path.join(_templateObject8);var parent="".concat(path.split(_templateObject9).pop(),"/");path+="/";var arrow=formats.arrow();return eval(format.toString())}};if("custom"===_logAF__WEBPACK_IMPORTED_MODULE_2__.default.labelFormat){var format=_logAF__WEBPACK_IMPORTED_MODULE_2__.default.fullFormat;return formats.custom(format.slice(format.indexOf(_templateObject10)+1))}return formats[_logAF__WEBPACK_IMPORTED_MODULE_2__.default.labelFormat]()};__webpack_exports__.a=setFormat},function(t,e,r){var n=r(93);t.exports=function _defineProperty(t,e,r){return e in t?n(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";r.r(e);var n=r(37),o=r.n(n),i=r(151),a=r.n(i),c=r(45),u=r.n(c),f=r(9),s=r.n(f),l=r(31),p=r.n(l),_=r(41),y=r.n(_),v=r(44),h=r.n(v),d=r(69),b=r.n(d),m=r(68),g=r.n(m),O=r(67),A=r.n(O),x=r(92),w=r(43),P=r.n(w),j=r(46),E=r(149),T=r(148),F=r(147),S=r(146),M=r(145),L=r(144),k=r(143),D=r(142),I=r(141),W=r(140),C=r(139),R=r(138),B=function makeScoped(t){return"@async-af/".concat(t.replace(/(AsyncAf|AF)/g,"").toLowerCase())},K="".concat("./lib/","classes/"),U=[[{name:"AsyncAF"},"".concat(K,"AsyncAF"),"async-af"],[{name:"AsyncAfWrapper"},"".concat(K,"AsyncAfWrapper"),B("AsyncAfWrapper")]],N=[j.default].map(function(t){return[t,"".concat("./lib/","methods/other/").concat(t.name),B(t.name)]}),q=[E.default,T.default,F.default,S.default,M.default,L.default,k.default,D.default,I.default,W.default,C.default,R.default].map(function(t){return[t,"".concat("./lib/","methods/arrays/").concat(t.name),B(t.name)]}),G=P()(q),z=(U.concat(P()(N),P()(G),[]),function pluckMethods(t){return t.map(function(t){return p()(t,1)[0]})}),H=z(N),V=z(G),J=s()(["AF"]),Y=function(t){function AsyncAF(){return h()(this,AsyncAF),g()(this,A()(AsyncAF).apply(this,arguments))}return b()(AsyncAF,t),AsyncAF}(x.AsyncAfWrapperProto),Q=Y;(Y=function AsyncAF(t){return new Q(t)}).prototype=Q.prototype,y()(Y,Q),Y.prototype.constructor=Y;var X=function prepForDefine(t){return t.reduce(function(t,e){var r=e.name.split(J)||[e.name],n=p()(r,1)[0];return u()(t,a()({},e.name,{value:e}),a()({},n,{value:e}))},{})};o()(x.AsyncAfWrapperProto,X(H)),o()(x.AsyncAfWrapperProto.prototype,X(V)),e.default=Y}]).default}); | ||
//# sourceMappingURL=min.js.map |
10
min.js
/*! | ||
* AsyncAF (async/await fun) | ||
* async-af/min v4.0.0 | ||
* | ||
* async-af v3.5.0 | ||
* AsyncAF (Async/Await Fun) | ||
* (https://async-af.js.org/AsyncAF) | ||
* | ||
* Copyright (c) 2017-present, Scott Rudiger (https://github.com/ScottRudiger) | ||
* | ||
* This source code is licensed under the MIT license found in this library's GitHub repository (https://github.com/AsyncAF/AsyncAF/blob/master/LICENSE). | ||
* This source code is licensed under the MIT license found in this library's | ||
* GitHub repository (https://github.com/AsyncAF/AsyncAF/blob/master/LICENSE). | ||
*/ | ||
!function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("async-af",[],t):"object"==typeof exports?exports["async-af"]=t():(e["async-af"]=e["async-af"]||{},e["async-af"]["async-af"]=t())}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function __webpack_require__(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}return __webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.d=function(e,t,r){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},__webpack_require__.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.n=function(e){var t=e&&e.__esModule?function getDefault(){return e.default}:function getModuleExports(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=13)}([function(e,t,r){"use strict";r.r(t);var n=r(12);const o=function logAF(...e){logAF.label&&e.unshift(logAF.setFormat());const t=Date.now();return Promise.all(e).then(e=>{if(logAF.duration){const r=((Date.now()-t)/1e3).toFixed(3);e.push(`\nin ${r} secs`)}logAF.wrappedLog(...e)})};Object.defineProperties(o,{wrappedLog:{value:(...e)=>{console&&console.log&&console.log(...e)},writable:!0},wrappedWarn:{value:(...e)=>{console&&console.warn&&console.warn(...e)},writable:!0},setFormat:{value:n.a,writable:!0},options:{value:function logAfOptions(e={}){const t=e.label,r=e.duration,n=e.labelFormat;if("boolean"==typeof t&&(a.label=t),"boolean"==typeof r&&(a.duration=r),n){const e=["file","path","parent","arrow","custom"],t=n.slice(0,6);if(e.includes(t))a.labelFormat=t,a.fullFormat=n;else{const e="AsyncAF Warning: logAF labelFormat option must be set to 'file' (default), 'path', 'parent', 'arrow', or 'custom'";a.wrappedWarn(e)}}},writable:!0}}),(o.options.reset=function logAfOptionsReset(){o.label=!0,o.labelFormat="file",o.duration=!0})();var a=t.default=o},function(e,t,r){"use strict";r.r(t);r.d(t,"AsyncAfWrapperProto",function(){return n});class n{constructor(e){this.data=Promise[Array.isArray(e)?"all":"resolve"](e)}then(e,t){return new this.constructor(this.data.then(e,t))}catch(e){return this.then(null,e)}}class o extends n{}const a=o;(o=function AsyncAfWrapper(e){return new a(e)}).prototype=a.prototype,Object.setPrototypeOf(o,a),o.prototype.constructor=o,n.use=function use(e){if("object"!=typeof e)throw new TypeError("use method accepts an Object containing the methods you'd like to add to the AsyncAF prototype");Object.assign(this.prototype,e)},t.default=o},function(e,t,r){"use strict";r.r(t),t.default=function indexOfAF(e,t=0){return this.then(r=>{if(null==r||null==r.length||"function"==typeof r)throw TypeError(`indexOfAF cannot be called on ${r}, only on an Array, String, or array-like Object`);return("string"==typeof r?String:Array).prototype.indexOf.call(r,e,t)})}},function(e,t,r){"use strict";r.r(t),t.default=function findIndexAF(e,t){return this.then(r=>{if(!Array.isArray(r))throw TypeError(`findIndexAF called on ${r}; findIndexAF can only be called on an array`);return r.findIndex(e,t)})}},function(e,t,r){"use strict";r.r(t),t.default=function findAF(e,t){return this.then(r=>{if(!Array.isArray(r))throw TypeError(`findAF called on ${r}; findAF can only be called on an array`);return r.find(e,t)})}},function(e,t,r){"use strict";r.r(t),t.default=function includesAF(e,t=0){return this.then(r=>{if(null==r||null==r.length||"function"==typeof r)throw TypeError(`includesAF cannot be called on ${r}, only on an Array, String, or array-like Object`);return("string"==typeof r?String:Array).prototype.includes.call(r,e,t)})}},function(e,t,r){"use strict";r.r(t),t.default=function someAF(e,t){return this.then(r=>{if(!r)throw TypeError(`Cannot read property 'someAF' of ${r}`);if(!Array.isArray(r))throw TypeError(`${r}.someAF is not a function`);return r.some(e,t)})}},function(e,t,r){"use strict";r.r(t),t.default=function everyAF(e,t){return this.then(r=>{if(!r)throw TypeError(`Cannot read property 'everyAF' of ${r}`);if(!Array.isArray(r))throw TypeError(`${r}.everyAF is not a function`);return r.every(e,t)})}},function(e,t,r){"use strict";r.r(t),t.default=function reduceAF(e,t=null){return this.then(r=>{if(!r)throw TypeError(`Cannot read property 'reduceAF' of ${r}`);if(!Array.isArray(r))throw TypeError(`${r}.reduceAF is not a function`);if(!r.length&&null===t)throw TypeError("reduceAF of empty array with no initial value");return r.reduce(e,t)})}},function(e,t,r){"use strict";r.r(t),t.default=function filterAF(e,t){return this.then(r=>r.filter(e,t))}},function(e,t,r){"use strict";r.r(t),t.default=function forEachAF(e,t){return this.then(r=>r.forEach(e,t))}},function(e,t,r){"use strict";r.r(t),t.default=function mapAF(e,t){return this.then(r=>r.map(e,t))}},function(module,__webpack_exports__,__webpack_require__){"use strict";var _logAF__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0);function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}function _arrayWithHoles(e){if(Array.isArray(e))return e}const setFormat=function setFormat(){const error=Error();if(!error.stack)return"";const _filter=error.stack.split`\n`.filter((e,t,r)=>/logAF(\s+|\s+\[.+\]\s+)\(/.test(r[t?t-1:t])),_filter2=_slicedToArray(_filter,1),targetLine=_filter2[0],fullPath=targetLine.slice(targetLine.indexOf`(`+1,targetLine.indexOf`)`),target=fullPath.lastIndexOf`/`,formats={file:()=>`@${fullPath.slice(target+1)}:\n`,path:()=>`@${fullPath}:\n`,parent(){const e=fullPath.slice(0,target).lastIndexOf`/`+1;return`@${fullPath.slice(e)}:\n`},arrow:()=>"========================>",custom(format){let _ref=fullPath.split`:`,_ref2=_slicedToArray(_ref,3),path=_ref2[0],line=_ref2[1],col=_ref2[2];path=path.split`/`;const file=path.pop();path=path.join`/`;const parent=`${path.split`/`.pop()}/`;path+="/";const arrow=formats.arrow();return eval(format.toString())}};if("custom"===_logAF__WEBPACK_IMPORTED_MODULE_0__.default.labelFormat){const e=_logAF__WEBPACK_IMPORTED_MODULE_0__.default.fullFormat;return formats.custom(e.slice(e.indexOf`=`+1))}return formats[_logAF__WEBPACK_IMPORTED_MODULE_0__.default.labelFormat]()};__webpack_exports__.a=setFormat},function(e,t,r){"use strict";r.r(t);var n=r(1),o=r(0),a=r(11),i=r(10),l=r(9),u=r(8),f=r(7),c=r(6),s=r(5),p=r(4),_=r(3),d=r(2);n.default;const y=[["@async-af/log","./lib/methods/other/logAF",o.default]],A="./lib/methods/arrays/",h=[["@async-af/map",`${A}mapAF`,a.default],["@async-af/forEach",`${A}forEachAF`,i.default],["@async-af/filter",`${A}filterAF`,l.default],["@async-af/reduce",`${A}reduceAF`,u.default],["@async-af/every",`${A}everyAF`,f.default],["@async-af/some",`${A}someAF`,c.default],["@async-af/includes",`${A}includesAF`,s.default],["@async-af/find",`${A}findAF`,p.default],["@async-af/findIndex",`${A}findIndexAF`,_.default],["@async-af/indexOf",`${A}indexOfAF`,d.default]],b=e=>e.map(([e,t,r])=>r),F=b(y),m=b(h);class w extends n.AsyncAfWrapperProto{}const g=w;(w=function AsyncAF(e){return new g(e)}).prototype=g.prototype,Object.setPrototypeOf(w,g),w.prototype.constructor=w;const O=e=>e.reduce((e,t)=>{const r=function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(t.name.split`AF`||[t.name],1)[0];return Object.assign(e,{[t.name]:{value:t}},{[r]:{value:t}})},{});Object.defineProperties(n.AsyncAfWrapperProto,O(F)),Object.defineProperties(n.AsyncAfWrapperProto.prototype,O(m)),t.default=w}]).default}); | ||
!function webpackUniversalModuleDefinition(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("AsyncAF",[],r):"object"==typeof exports?exports.AsyncAF=r():t.AsyncAF=r()}("undefined"!=typeof self?self:this,function(){return function(t){var r={};function __webpack_require__(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}return __webpack_require__.m=t,__webpack_require__.c=r,__webpack_require__.d=function(t,r,e){__webpack_require__.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},__webpack_require__.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.n=function(t){var r=t&&t.__esModule?function getDefault(){return t.default}:function getModuleExports(){return t};return __webpack_require__.d(r,"a",r),r},__webpack_require__.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=16)}([function(t,r,e){"use strict";r.a=function permissiveIsArrayLike(t){return Array.isArray(t)||null!=t&&null!=t.length}},function(t,r,e){"use strict";e.r(r);var n=e(15);const o=function logAF(...t){logAF.label&&t.unshift(logAF.setFormat());const r=Date.now();return Promise.all(t).then(t=>{if(logAF.duration){const e=((Date.now()-r)/1e3).toFixed(3);t.push(`\nin ${e} secs`)}logAF.wrappedLog(...t)})};Object.defineProperties(o,{wrappedLog:{value:(...t)=>{console&&console.log&&console.log(...t)},writable:!0},wrappedWarn:{value:(...t)=>{console&&console.warn&&console.warn(...t)},writable:!0},setFormat:{value:n.a,writable:!0},options:{value:function logAfOptions(t={}){const r=t.label,e=t.duration,n=t.labelFormat;if("boolean"==typeof r&&(a.label=r),"boolean"==typeof e&&(a.duration=e),n){const t=["file","path","parent","arrow","custom"],r=n.slice(0,6);if(t.includes(r))a.labelFormat=r,a.fullFormat=n;else{const t="AsyncAF Warning: logAF labelFormat option must be set to 'file' (default), 'path', 'parent', 'arrow', or 'custom'";a.wrappedWarn(t)}}},writable:!0}}),(o.options.reset=function logAfOptionsReset(){o.label=!0,o.labelFormat="file",o.duration=!0})();var a=r.default=o},function(t,r,e){"use strict";e.r(r);e.d(r,"AsyncAfWrapperProto",function(){return n});class n{constructor(t){this.data=Promise[Array.isArray(t)?"all":"resolve"](t)}then(t,r){return new this.constructor(this.data.then(t,r))}catch(t){return this.then(null,t)}}class o extends n{}const a=o;(o=function AsyncAfWrapper(t){return new a(t)}).prototype=a.prototype,Object.setPrototypeOf(o,a),o.prototype.constructor=o,n.use=function use(t,r={}){if("object"!=typeof t)throw TypeError("prototypeMethods param accepts an Object containing the prototypeMethods you'd like to add to the AsyncAF prototype, or an empty Object");if("object"!=typeof r)throw TypeError("staticMethods param accepts an Object containing the staticMethods you'd like to add to AsyncAF");Object.assign(this.prototype,t),Object.assign(this,r)},r.default=o},function(t,r,e){"use strict";e.r(r);var n=e(0);const o=function joinAF(t=","){return this.then(r=>{if(!Object(n.a)(r))throw TypeError(`joinAF cannot be called on ${r}, only on an Array or array-like Object`);return Array.prototype.join.call(r,t)})};Object.defineProperty(o,"length",{value:1}),r.default=o},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function lastIndexOfAF(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`lastIndexOfAF cannot be called on ${e}, only on an Array, String, or array-like Object`);return("string"==typeof e?String:Array).prototype.lastIndexOf.call(e,t,r||e.length-1)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function indexOfAF(t,r=0){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`indexOfAF cannot be called on ${e}, only on an Array, String, or array-like Object`);return("string"==typeof e?String:Array).prototype.indexOf.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function findIndexAF(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`findIndexAF cannot be called on ${e}, only on an Array or array-like Object`);return Array.prototype.findIndex.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function findAF(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`findAF cannot be called on ${e}, only on an Array or array-like Object`);return Array.prototype.find.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function includesAF(t,r=0){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`includesAF cannot be called on ${e}, only on an Array, String, or array-like Object`);return("string"==typeof e?String:Array).prototype.includes.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function someAF(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`someAF cannot be called on ${e}, only on an Array or array-like Object`);return Array.prototype.some.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function everyAF(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`everyAF cannot be called on ${e}, only on an Array or array-like Object`);return Array.prototype.every.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function reduceAF(t,r=null){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`reduceAF cannot be called on ${e}, only on an Array or array-like Object`);if(!e.length&&null===r)throw TypeError("reduceAF cannot be called on an empty array without an initial value");return Array.prototype.reduce.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function filterAF(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`filterAF cannot be called on ${e}, only on an Array or array-like Object`);return Array.prototype.filter.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function forEachAF(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`forEachAF cannot be called on ${e}, only on an Array or array-like Object`);return Array.prototype.forEach.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function mapAF(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`mapAF cannot be called on ${e}, only on an Array or array-like Object`);return Array.prototype.map.call(e,t,r)})}},function(module,__webpack_exports__,__webpack_require__){"use strict";var _logAF__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1);function _slicedToArray(t,r){return _arrayWithHoles(t)||_iterableToArrayLimit(t,r)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(t,r){var e=[],n=!0,o=!1,a=void 0;try{for(var l,i=t[Symbol.iterator]();!(n=(l=i.next()).done)&&(e.push(l.value),!r||e.length!==r);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return e}function _arrayWithHoles(t){if(Array.isArray(t))return t}const setFormat=function setFormat(){const error=Error();if(!error.stack)return"";const _filter=error.stack.split`\n`.filter((t,r,e)=>/logAF(\s+|\s+\[.+\]\s+)\(/.test(e[r?r-1:r])),_filter2=_slicedToArray(_filter,1),targetLine=_filter2[0],fullPath=targetLine.slice(targetLine.indexOf`(`+1,targetLine.indexOf`)`),target=fullPath.lastIndexOf`/`,formats={file:()=>`@${fullPath.slice(target+1)}:\n`,path:()=>`@${fullPath}:\n`,parent(){const t=fullPath.slice(0,target).lastIndexOf`/`+1;return`@${fullPath.slice(t)}:\n`},arrow:()=>"========================>",custom(format){let _ref=fullPath.split`:`,_ref2=_slicedToArray(_ref,3),path=_ref2[0],line=_ref2[1],col=_ref2[2];path=path.split`/`;const file=path.pop();path=path.join`/`;const parent=`${path.split`/`.pop()}/`;path+="/";const arrow=formats.arrow();return eval(format.toString())}};if("custom"===_logAF__WEBPACK_IMPORTED_MODULE_0__.default.labelFormat){const t=_logAF__WEBPACK_IMPORTED_MODULE_0__.default.fullFormat;return formats.custom(t.slice(t.indexOf`=`+1))}return formats[_logAF__WEBPACK_IMPORTED_MODULE_0__.default.labelFormat]()};__webpack_exports__.a=setFormat},function(t,r,e){"use strict";e.r(r);var n=e(2),o=e(1),a=e(14),l=e(13),i=e(12),c=e(11),u=e(10),s=e(9),f=e(8),p=e(7),y=e(6),_=e(5),d=e(4),A=e(3);const b=t=>`@async-af/${t.replace(/(AsyncAf|AF)/g,"").toLowerCase()}`,h=(b("AsyncAfWrapper"),[o.default].map(t=>[t,`./lib/methods/other/${t.name}`,b(t.name)])),m=[...[a.default,l.default,i.default,c.default,u.default,s.default,f.default,p.default,y.default,_.default,d.default,A.default].map(t=>[t,`./lib/methods/arrays/${t.name}`,b(t.name)])],O=t=>t.map(([t])=>t),w=O(h),F=O(m);class g extends n.AsyncAfWrapperProto{}const j=g;(g=function AsyncAF(t){return new j(t)}).prototype=j.prototype,Object.setPrototypeOf(g,j),g.prototype.constructor=g;const v=t=>t.reduce((t,r)=>{const e=function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var e=[],n=!0,o=!1,a=void 0;try{for(var l,i=t[Symbol.iterator]();!(n=(l=i.next()).done)&&(e.push(l.value),!r||e.length!==r);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return e}(t,r)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(r.name.split`AF`||[r.name],1)[0];return Object.assign(t,{[r.name]:{value:r}},{[e]:{value:r}})},{});Object.defineProperties(n.AsyncAfWrapperProto,v(w)),Object.defineProperties(n.AsyncAfWrapperProto.prototype,v(F)),r.default=g}]).default}); | ||
//# sourceMappingURL=min.js.map |
{ | ||
"name": "async-af", | ||
"description": "async/await fun", | ||
"description": "Async/Await Fun", | ||
"author": "Scott Rudiger (https://github.com/ScottRudiger)", | ||
"license": "MIT", | ||
"version": "3.5.0", | ||
"version": "4.0.0", | ||
"homepage": "https://async-af.js.org", | ||
@@ -21,2 +21,4 @@ "bugs": { | ||
"async/await", | ||
"Promise", | ||
"Promises", | ||
"library", | ||
@@ -40,6 +42,6 @@ "array", | ||
"shift", | ||
"splice", | ||
"toString" | ||
"splice" | ||
], | ||
"main": "index.js", | ||
"module": "esm/index.js", | ||
"files": [ | ||
@@ -49,2 +51,3 @@ "index*", | ||
"legacy/**", | ||
"esm/**", | ||
"README.md" | ||
@@ -51,0 +54,0 @@ ], |
@@ -1,3 +0,1 @@ | ||
# AsyncAF | ||
![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/async-af.svg?style=for-the-badge&label=size&colorB=466EF1) | ||
@@ -11,5 +9,9 @@ [![npm version](https://img.shields.io/npm/v/async-af.svg?style=for-the-badge&colorB=cb3837)](https://www.npmjs.com/package/async-af) | ||
<p align=center><a href="https://async-af.js.org" target=_blank><img src="https://cdn.rawgit.com/AsyncAF/AsyncAF/1ce388a7/docs/custom/assets/async-af-logo.png"></a></p> | ||
<br> | ||
README in progress...come back another time to lay eyes on the most beautiful documentation you've ever seen! 😍 | ||
In the meantime, <a href="https://async-af.js.org/AsyncAF.html" target="_blank"> | ||
In the meantime, <a href="https://async-af.js.org/AsyncAF" target="_blank"> | ||
check out the docs! | ||
@@ -20,2 +22,59 @@ </a> 🚀 | ||
## Installation 💾 | ||
Easy peazy, just `$ npm install --save async-af`, right? | ||
⚠️ Not so fast; there's actually several ways to include AsyncAF in your project/production site from easy to more complex: | ||
<details open><summary>Easy 👍</summary><br> | ||
🔹 <strong>npm:</strong> <code>$ npm install --save async-af</code> | ||
🔸 <strong>yarn:</strong> <code>$ yarn add async-af</code> | ||
🔹 <strong>bower:</strong> <code>async-af</code> is no longer published to bower. To continue using it with bower, look into <a href=https://github.com/mjeanroy/bower-npm-resolver><code>bower-npm-resolver</code></a>. | ||
🔸 <strong>cdn:</strong> See the table for which script tag to use: | ||
<table align=left><th>mode</th><th>browsers</th><th>script tag</th> | ||
<tr><td>development</td><td>modern (ES6+)</td><td><code class=language-html><script src="https://unpkg.com/async-af/index.js"></script></code></td></tr> | ||
<tr><td>development</td><td>legacy (ES5+)</td><td><code class=language-html><script src="https://unpkg.com/async-af/legacy/index.js"></script></code></td></tr> | ||
<tr><td>production</td><td>modern (ES6+)</td><td><code class=language-html><script src="https://unpkg.com/async-af/min.js"></script></code></td></tr> | ||
<tr><td>production</td><td>legacy (ES5+)</td><td><code class=language-html><script src="https://unpkg.com/async-af/legacy/min.js"></script></code></td></tr> | ||
</table><br> | ||
</details> | ||
<br> | ||
<details open><summary>More Complex 🤔</summary><br> | ||
🔹 <strong>scoped packages:</strong> | ||
>Instead of pulling in the entire AsyncAF library, you can install smaller standalone packages for each of the AsyncAF methods you intend to use; for example, <code>@async-af/map</code> and/or <code>@async-af/filter</code>; see further instructions in the documentation for <a href="https://async-af.js.org/AsyncAfWrapper" target=_blank>AsyncAfWrapper</a> and <a href="https://async-af.js.org/AsyncAfWrapper#use" target=_blank>AsyncAfWrapper.use</a>. | ||
🔸 <strong>scoped packages + `babel-plugin-transform-imports`:</strong> | ||
>If you use more than a few AsyncAF scoped packages in a file, you might start to build a wall of `import` statements to pull them all in. If this is an eyesore for you, look into <a href="https://www.npmjs.com/package/babel-plugin-transform-imports" target="_blank"><code>babel-plugin-transform-imports</code></a> and condense that ugly wall down to a single `import` statement! See <a href="https://async-af.js.org/tutorial-TOO_MANY_IMPORTS" target=_blank>Wrapper/Use: Too Many 🤬 Imports!?</a> for a tutorial. | ||
🔹 <strong>es modules:</strong> | ||
>AsyncAF as well as its scoped packages are also published as es modules. This gives an opportunity to conditionally load `async-af` with ES6+ features in modern browsers and `async-af` with ES5-compatible features in legacy browsers. | ||
> | ||
>Using the cdn scripts as an example: | ||
> | ||
><pre class=prettyprint> | ||
<code><code class=language-html><script type="module" src="https://unpkg.com/async-af/esm/index.js"></script></code> | ||
<code class=language-html><script nomodule src="https://unpkg.com/async-af/legacy/index.js"></script></code></code> | ||
</pre> | ||
> | ||
>or minimized for production: | ||
> | ||
><pre class=prettyprint> | ||
<code><code class=language-html><script type="module" src="https://unpkg.com/async-af/esm/min.js"></script></code> | ||
<code class=language-html><script nomodule src="https://unpkg.com/async-af/legacy/min.js"></script></code></code> | ||
</pre> | ||
>The script with <code class="language-html prettyprint"><script type="module"></code> will load in any browser capable of loading es modules, while the script with <code class="language-html prettyprint"><script nomodule></code> will act as a fallback for legacy browsers. | ||
> | ||
>See <a href="https://philipwalton.com/articles/deploying-es2015-code-in-production-today/" target=_blank>here</a> and <a href="https://jakearchibald.com/2017/es-modules-in-browsers/" target=_blank>here</a> for further reading on this strategy. | ||
</details> | ||
<br> | ||
## License | ||
@@ -22,0 +81,0 @@ AsyncAF is licensed under the [MIT License](https://choosealicense.com/licenses/mit/), so you can pretty much use it however you want |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
910099
14
6700
84