diff options
-rw-r--r-- | dist/async.js | 724 | ||||
-rw-r--r-- | dist/async.min.js | 2 | ||||
-rw-r--r-- | dist/async.min.map | 2 | ||||
-rw-r--r-- | lib/apply.js | 2 | ||||
-rw-r--r-- | lib/auto.js | 2 | ||||
-rw-r--r-- | lib/compose.js | 2 | ||||
-rw-r--r-- | lib/constant.js | 2 | ||||
-rw-r--r-- | lib/doDuring.js | 2 | ||||
-rw-r--r-- | lib/doWhilst.js | 2 | ||||
-rw-r--r-- | lib/internal/applyEach.js | 2 | ||||
-rw-r--r-- | lib/internal/consoleFunc.js | 2 | ||||
-rw-r--r-- | lib/internal/initialParams.js | 2 | ||||
-rw-r--r-- | lib/internal/parallel.js | 2 | ||||
-rw-r--r-- | lib/internal/queue.js | 2 | ||||
-rw-r--r-- | lib/internal/setImmediate.js | 2 | ||||
-rw-r--r-- | lib/memoize.js | 2 | ||||
-rw-r--r-- | lib/reflect.js | 2 | ||||
-rw-r--r-- | lib/seq.js | 2 | ||||
-rw-r--r-- | lib/waterfall.js | 2 | ||||
-rw-r--r-- | lib/whilst.js | 2 | ||||
-rw-r--r-- | package.json | 4 |
21 files changed, 370 insertions, 396 deletions
diff --git a/dist/async.js b/dist/async.js index 609d9cd..10a5c1e 100644 --- a/dist/async.js +++ b/dist/async.js @@ -15,8 +15,7 @@ * @returns {*} Returns the result of `func`. */ function apply(func, thisArg, args) { - var length = args.length; - switch (length) { + switch (args.length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); case 2: return func.call(thisArg, args[0], args[1]); @@ -25,306 +24,19 @@ return func.apply(thisArg, args); } - /** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ - function isObject(value) { - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); - } - - var funcTag = '[object Function]'; - var genTag = '[object GeneratorFunction]'; - /** Used for built-in method references. */ - var objectProto = Object.prototype; - - /** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) - * of values. - */ - var objectToString = objectProto.toString; - - /** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ - function isFunction(value) { - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 8 which returns 'object' for typed array and weak map constructors, - // and PhantomJS 1.9 which returns 'function' for `NodeList` instances. - var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag; - } - - /** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ - function isObjectLike(value) { - return !!value && typeof value == 'object'; - } - - /** `Object#toString` result references. */ - var symbolTag = '[object Symbol]'; - - /** Used for built-in method references. */ - var objectProto$1 = Object.prototype; - - /** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) - * of values. - */ - var objectToString$1 = objectProto$1.toString; - - /** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ - function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString$1.call(value) == symbolTag); - } - - /** Used as references for various `Number` constants. */ - var NAN = 0 / 0; - - /** Used to match leading and trailing whitespace. */ - var reTrim = /^\s+|\s+$/g; - - /** Used to detect bad signed hexadecimal string values. */ - var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; - - /** Used to detect binary string values. */ - var reIsBinary = /^0b[01]+$/i; - - /** Used to detect octal string values. */ - var reIsOctal = /^0o[0-7]+$/i; - - /** Built-in method references without a dependency on `root`. */ - var freeParseInt = parseInt; - - /** - * Converts `value` to a number. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {number} Returns the number. - * @example - * - * _.toNumber(3.2); - * // => 3.2 - * - * _.toNumber(Number.MIN_VALUE); - * // => 5e-324 - * - * _.toNumber(Infinity); - * // => Infinity - * - * _.toNumber('3.2'); - * // => 3.2 - */ - function toNumber(value) { - if (typeof value == 'number') { - return value; - } - if (isSymbol(value)) { - return NAN; - } - if (isObject(value)) { - var other = isFunction(value.valueOf) ? value.valueOf() : value; - value = isObject(other) ? (other + '') : other; - } - if (typeof value != 'string') { - return value === 0 ? value : +value; - } - value = value.replace(reTrim, ''); - var isBinary = reIsBinary.test(value); - return (isBinary || reIsOctal.test(value)) - ? freeParseInt(value.slice(2), isBinary ? 2 : 8) - : (reIsBadHex.test(value) ? NAN : +value); - } - - var INFINITY = 1 / 0; - var MAX_INTEGER = 1.7976931348623157e+308; - /** - * Converts `value` to a finite number. - * - * @static - * @memberOf _ - * @since 4.12.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted number. - * @example - * - * _.toFinite(3.2); - * // => 3.2 - * - * _.toFinite(Number.MIN_VALUE); - * // => 5e-324 - * - * _.toFinite(Infinity); - * // => 1.7976931348623157e+308 - * - * _.toFinite('3.2'); - * // => 3.2 - */ - function toFinite(value) { - if (!value) { - return value === 0 ? value : 0; - } - value = toNumber(value); - if (value === INFINITY || value === -INFINITY) { - var sign = (value < 0 ? -1 : 1); - return sign * MAX_INTEGER; - } - return value === value ? value : 0; - } - - /** - * Converts `value` to an integer. - * - * **Note:** This method is loosely based on - * [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted integer. - * @example - * - * _.toInteger(3.2); - * // => 3 - * - * _.toInteger(Number.MIN_VALUE); - * // => 0 - * - * _.toInteger(Infinity); - * // => 1.7976931348623157e+308 - * - * _.toInteger('3.2'); - * // => 3 - */ - function toInteger(value) { - var result = toFinite(value), - remainder = result % 1; - - return result === result ? (remainder ? result - remainder : result) : 0; - } - - /** Used as the `TypeError` message for "Functions" methods. */ - var FUNC_ERROR_TEXT = 'Expected a function'; - /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; /** - * Creates a function that invokes `func` with the `this` binding of the - * created function and arguments from `start` and beyond provided as - * an array. - * - * **Note:** This method is based on the - * [rest parameter](https://mdn.io/rest_parameters). + * The base implementation of `_.rest` which doesn't validate or coerce arguments. * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Function + * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @returns {Function} Returns the new function. - * @example - * - * var say = _.rest(function(what, names) { - * return what + ' ' + _.initial(names).join(', ') + - * (_.size(names) > 1 ? ', & ' : '') + _.last(names); - * }); - * - * say('hello', 'fred', 'barney', 'pebbles'); - * // => 'hello fred, barney, & pebbles' */ - function rest(func, start) { - if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - start = nativeMax(start === undefined ? (func.length - 1) : toInteger(start), 0); + function baseRest(func, start) { + start = nativeMax(start === undefined ? (func.length - 1) : start, 0); return function() { var args = arguments, index = -1, @@ -334,13 +46,8 @@ while (++index < length) { array[index] = args[start + index]; } - switch (start) { - case 0: return func.call(this, array); - case 1: return func.call(this, args[0], array); - case 2: return func.call(this, args[0], args[1], array); - } - var otherArgs = Array(start + 1); index = -1; + var otherArgs = Array(start + 1); while (++index < start) { otherArgs[index] = args[index]; } @@ -350,14 +57,14 @@ } function initialParams (fn) { - return rest(function (args /*..., callback*/) { + return baseRest(function (args /*..., callback*/) { var callback = args.pop(); fn.call(this, args, callback); }); } function applyEach$1(eachfn) { - return rest(function (fns, args) { + return baseRest(function (fns, args) { var go = initialParams(function (args, callback) { var that = this; return eachfn(fns, function (fn, cb) { @@ -398,6 +105,73 @@ */ var getLength = baseProperty('length'); + /** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ + function isObject(value) { + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); + } + + var funcTag = '[object Function]'; + var genTag = '[object GeneratorFunction]'; + /** Used for built-in method references. */ + var objectProto = Object.prototype; + + /** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * of values. + */ + var objectToString = objectProto.toString; + + /** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ + function isFunction(value) { + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 8 which returns 'object' for typed array and weak map constructors, + // and PhantomJS 1.9 which returns 'function' for `NodeList` instances. + var tag = isObject(value) ? objectToString.call(value) : ''; + return tag == funcTag || tag == genTag; + } + /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; @@ -463,7 +237,7 @@ } /** - * A method that returns `undefined`. + * This method returns `undefined`. * * @static * @memberOf _ @@ -493,6 +267,20 @@ return iteratorSymbol && coll[iteratorSymbol] && coll[iteratorSymbol](); } + /** + * Creates a function that invokes `func` with its first argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ + function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; + } + /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetPrototype = Object.getPrototypeOf; @@ -503,15 +291,13 @@ * @param {*} value The value to query. * @returns {null|Object} Returns the `[[Prototype]]`. */ - function getPrototype(value) { - return nativeGetPrototype(Object(value)); - } + var getPrototype = overArg(nativeGetPrototype, Object); /** Used for built-in method references. */ - var objectProto$2 = Object.prototype; + var objectProto$1 = Object.prototype; /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto$2.hasOwnProperty; + var hasOwnProperty = objectProto$1.hasOwnProperty; /** * The base implementation of `_.has` without support for deep paths. @@ -541,9 +327,7 @@ * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ - function baseKeys(object) { - return nativeKeys(Object(object)); - } + var baseKeys = overArg(nativeKeys, Object); /** * The base implementation of `_.times` without support for iteratee shorthands @@ -565,6 +349,34 @@ } /** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ + function isObjectLike(value) { + return !!value && typeof value == 'object'; + } + + /** * This method is like `_.isArrayLike` except that it also checks if `value` * is an object. * @@ -597,20 +409,20 @@ var argsTag = '[object Arguments]'; /** Used for built-in method references. */ - var objectProto$3 = Object.prototype; + var objectProto$2 = Object.prototype; /** Used to check objects for own properties. */ - var hasOwnProperty$1 = objectProto$3.hasOwnProperty; + var hasOwnProperty$1 = objectProto$2.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) * of values. */ - var objectToString$2 = objectProto$3.toString; + var objectToString$1 = objectProto$2.toString; /** Built-in value references. */ - var propertyIsEnumerable = objectProto$3.propertyIsEnumerable; + var propertyIsEnumerable = objectProto$2.propertyIsEnumerable; /** * Checks if `value` is likely an `arguments` object. @@ -620,7 +432,7 @@ * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, + * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * @@ -633,7 +445,7 @@ function isArguments(value) { // Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode. return isArrayLikeObject(value) && hasOwnProperty$1.call(value, 'callee') && - (!propertyIsEnumerable.call(value, 'callee') || objectToString$2.call(value) == argsTag); + (!propertyIsEnumerable.call(value, 'callee') || objectToString$1.call(value) == argsTag); } /** @@ -642,11 +454,9 @@ * @static * @memberOf _ * @since 0.1.0 - * @type {Function} * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); @@ -667,14 +477,14 @@ var stringTag = '[object String]'; /** Used for built-in method references. */ - var objectProto$4 = Object.prototype; + var objectProto$3 = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) * of values. */ - var objectToString$3 = objectProto$4.toString; + var objectToString$2 = objectProto$3.toString; /** * Checks if `value` is classified as a `String` primitive or object. @@ -684,8 +494,7 @@ * @memberOf _ * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a string, else `false`. * @example * * _.isString('abc'); @@ -696,7 +505,7 @@ */ function isString(value) { return typeof value == 'string' || - (!isArray(value) && isObjectLike(value) && objectToString$3.call(value) == stringTag); + (!isArray(value) && isObjectLike(value) && objectToString$2.call(value) == stringTag); } /** @@ -738,7 +547,7 @@ } /** Used for built-in method references. */ - var objectProto$5 = Object.prototype; + var objectProto$4 = Object.prototype; /** * Checks if `value` is likely a prototype object. @@ -749,7 +558,7 @@ */ function isPrototype(value) { var Ctor = value && value.constructor, - proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$5; + proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$4; return value === proto; } @@ -921,8 +730,175 @@ }; } + /** `Object#toString` result references. */ + var symbolTag = '[object Symbol]'; + + /** Used for built-in method references. */ + var objectProto$5 = Object.prototype; + + /** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * of values. + */ + var objectToString$3 = objectProto$5.toString; + + /** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */ + function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && objectToString$3.call(value) == symbolTag); + } + + /** Used as references for various `Number` constants. */ + var NAN = 0 / 0; + + /** Used to match leading and trailing whitespace. */ + var reTrim = /^\s+|\s+$/g; + + /** Used to detect bad signed hexadecimal string values. */ + var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; + + /** Used to detect binary string values. */ + var reIsBinary = /^0b[01]+$/i; + + /** Used to detect octal string values. */ + var reIsOctal = /^0o[0-7]+$/i; + + /** Built-in method references without a dependency on `root`. */ + var freeParseInt = parseInt; + + /** + * Converts `value` to a number. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to process. + * @returns {number} Returns the number. + * @example + * + * _.toNumber(3.2); + * // => 3.2 + * + * _.toNumber(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toNumber(Infinity); + * // => Infinity + * + * _.toNumber('3.2'); + * // => 3.2 + */ + function toNumber(value) { + if (typeof value == 'number') { + return value; + } + if (isSymbol(value)) { + return NAN; + } + if (isObject(value)) { + var other = isFunction(value.valueOf) ? value.valueOf() : value; + value = isObject(other) ? (other + '') : other; + } + if (typeof value != 'string') { + return value === 0 ? value : +value; + } + value = value.replace(reTrim, ''); + var isBinary = reIsBinary.test(value); + return (isBinary || reIsOctal.test(value)) + ? freeParseInt(value.slice(2), isBinary ? 2 : 8) + : (reIsBadHex.test(value) ? NAN : +value); + } + + var INFINITY = 1 / 0; + var MAX_INTEGER = 1.7976931348623157e+308; + /** + * Converts `value` to a finite number. + * + * @static + * @memberOf _ + * @since 4.12.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted number. + * @example + * + * _.toFinite(3.2); + * // => 3.2 + * + * _.toFinite(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toFinite(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toFinite('3.2'); + * // => 3.2 + */ + function toFinite(value) { + if (!value) { + return value === 0 ? value : 0; + } + value = toNumber(value); + if (value === INFINITY || value === -INFINITY) { + var sign = (value < 0 ? -1 : 1); + return sign * MAX_INTEGER; + } + return value === value ? value : 0; + } + + /** + * Converts `value` to an integer. + * + * **Note:** This method is loosely based on + * [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted integer. + * @example + * + * _.toInteger(3.2); + * // => 3 + * + * _.toInteger(Number.MIN_VALUE); + * // => 0 + * + * _.toInteger(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toInteger('3.2'); + * // => 3 + */ + function toInteger(value) { + var result = toFinite(value), + remainder = result % 1; + + return result === result ? (remainder ? result - remainder : result) : 0; + } + /** Used as the `TypeError` message for "Functions" methods. */ - var FUNC_ERROR_TEXT$1 = 'Expected a function'; + var FUNC_ERROR_TEXT = 'Expected a function'; /** * Creates a function that invokes `func`, with the `this` binding and arguments @@ -939,12 +915,12 @@ * @example * * jQuery(element).on('click', _.before(5, addContactToList)); - * // => allows adding up to 4 contacts to the list + * // => Allows adding up to 4 contacts to the list. */ function before(n, func) { var result; if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT$1); + throw new TypeError(FUNC_ERROR_TEXT); } n = toInteger(n); return function() { @@ -974,7 +950,7 @@ * var initialize = _.once(createApplication); * initialize(); * initialize(); - * // `initialize` invokes `createApplication` once + * // => `createApplication` is invoked once */ function once$1(func) { return before(2, func); @@ -1258,8 +1234,8 @@ * two * three */ - var apply$1 = rest(function (fn, args) { - return rest(function (callArgs) { + var apply$1 = baseRest(function (fn, args) { + return baseRest(function (callArgs) { return fn.apply(null, args.concat(callArgs)); }); }); @@ -1411,21 +1387,22 @@ } /** - * Gets the index at which the first occurrence of `NaN` is found in `array`. + * The base implementation of `_.findIndex` and `_.findLastIndex` without + * support for iteratee shorthands. * * @private * @param {Array} array The array to search. + * @param {Function} predicate The function invoked per iteration. * @param {number} fromIndex The index to search from. * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {number} Returns the index of the matched `NaN`, else `-1`. + * @returns {number} Returns the index of the matched value, else `-1`. */ - function indexOfNaN(array, fromIndex, fromRight) { + function baseFindIndex(array, predicate, fromIndex, fromRight) { var length = array.length, index = fromIndex + (fromRight ? 1 : -1); while ((fromRight ? index-- : ++index < length)) { - var other = array[index]; - if (other !== other) { + if (predicate(array[index], index, array)) { return index; } } @@ -1433,6 +1410,17 @@ } /** + * The base implementation of `_.isNaN` without support for number objects. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + */ + function baseIsNaN(value) { + return value !== value; + } + + /** * The base implementation of `_.indexOf` without `fromIndex` bounds checks. * * @private @@ -1443,7 +1431,7 @@ */ function baseIndexOf(array, value, fromIndex) { if (value !== value) { - return indexOfNaN(array, fromIndex); + return baseFindIndex(array, baseIsNaN, fromIndex); } var index = fromIndex - 1, length = array.length; @@ -1633,7 +1621,7 @@ function runTask(key, task) { if (hasError) return; - var taskCallback = onlyOnce(rest(function (err, args) { + var taskCallback = onlyOnce(baseRest(function (err, args) { runningTasks--; if (args.length <= 1) { args = args[0]; @@ -1734,28 +1722,14 @@ return array; } - /** - * Checks if `value` is a global object. - * - * @private - * @param {*} value The value to check. - * @returns {null|Object} Returns `value` if it's a global object, else `null`. - */ - function checkGlobal(value) { - return (value && value.Object === Object) ? value : null; - } - /** Detect free variable `global` from Node.js. */ - var freeGlobal = checkGlobal(typeof global == 'object' && global); + var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; /** Detect free variable `self`. */ - var freeSelf = checkGlobal(typeof self == 'object' && self); - - /** Detect `this` as the global object. */ - var thisGlobal = checkGlobal(typeof this == 'object' && this); + var freeSelf = typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ - var root = freeGlobal || freeSelf || thisGlobal || Function('return this')(); + var root = freeGlobal || freeSelf || Function('return this')(); /** Built-in value references. */ var Symbol$1 = root.Symbol; @@ -2104,7 +2078,7 @@ } function wrap(defer) { - return rest(function (fn, args) { + return baseRest(function (fn, args) { defer(function () { fn.apply(null, args); }); @@ -2217,7 +2191,7 @@ } function _next(tasks) { - return rest(function (args) { + return baseRest(function (args) { workers -= 1; arrayEach(tasks, function (task) { @@ -2520,8 +2494,8 @@ * }); * }); */ - var seq = rest(function seq(functions) { - return rest(function (args) { + var seq = baseRest(function seq(functions) { + return baseRest(function (args) { var that = this; var cb = args[args.length - 1]; @@ -2532,7 +2506,7 @@ } reduce(functions, args, function (newargs, fn, cb) { - fn.apply(that, newargs.concat([rest(function (err, nextargs) { + fn.apply(that, newargs.concat([baseRest(function (err, nextargs) { cb(err, nextargs); })])); }, function (err, results) { @@ -2576,7 +2550,7 @@ * // result now equals 15 * }); */ - var compose = rest(function (args) { + var compose = baseRest(function (args) { return seq.apply(null, args.reverse()); }); @@ -2690,7 +2664,7 @@ * //... * }, callback); */ - var constant = rest(function (values) { + var constant = baseRest(function (values) { var args = [null].concat(values); return initialParams(function (ignoredArgs, callback) { return callback.apply(this, args); @@ -2698,7 +2672,7 @@ }); /** - * This method returns the first argument given to it. + * This method returns the first argument it receives. * * @static * @since 0.1.0 @@ -2708,7 +2682,7 @@ * @returns {*} Returns `value`. * @example * - * var object = { 'user': 'fred' }; + * var object = { 'a': 1 }; * * console.log(_.identity(object) === object); * // => true @@ -2843,8 +2817,8 @@ var detectSeries = _createTester(eachOfSeries, identity, _findGetResult); function consoleFunc(name) { - return rest(function (fn, args) { - fn.apply(null, args.concat([rest(function (err, args) { + return baseRest(function (fn, args) { + fn.apply(null, args.concat([baseRest(function (err, args) { if (typeof console === 'object') { if (err) { if (console.error) { @@ -2914,7 +2888,7 @@ function doDuring(fn, test, callback) { callback = onlyOnce(callback || noop); - var next = rest(function (err, args) { + var next = baseRest(function (err, args) { if (err) return callback(err); args.push(check); test.apply(this, args); @@ -2954,7 +2928,7 @@ */ function doWhilst(iteratee, test, callback) { callback = onlyOnce(callback || noop); - var next = rest(function (err, args) { + var next = baseRest(function (err, args) { if (err) return callback(err); if (test.apply(this, args)) return iteratee(next); callback.apply(null, [null].concat(args)); @@ -3605,7 +3579,7 @@ queues[key].push(callback); } else { queues[key] = [callback]; - fn.apply(null, args.concat([rest(function (args) { + fn.apply(null, args.concat([baseRest(function (args) { memo[key] = args; var q = queues[key]; delete queues[key]; @@ -3668,7 +3642,7 @@ var results = isArrayLike(tasks) ? [] : {}; eachfn(tasks, function (task, key, callback) { - task(rest(function (err, args) { + task(baseRest(function (err, args) { if (args.length <= 1) { args = args[0]; } @@ -4069,7 +4043,7 @@ */ function reflect(fn) { return initialParams(function reflectOn(args, reflectCallback) { - args.push(rest(function callback(err, cbArgs) { + args.push(baseRest(function callback(err, cbArgs) { if (err) { reflectCallback(null, { error: err @@ -4695,7 +4669,7 @@ var nativeMax$1 = Math.max; /** * The base implementation of `_.range` and `_.rangeRight` which doesn't - * coerce arguments to numbers. + * coerce arguments. * * @private * @param {number} start The start of the range. @@ -4903,7 +4877,7 @@ function whilst(test, iteratee, callback) { callback = onlyOnce(callback || noop); if (!test()) return callback(null); - var next = rest(function (err, args) { + var next = baseRest(function (err, args) { if (err) return callback(err); if (test()) return iteratee(next); callback.apply(null, [null].concat(args)); @@ -5008,7 +4982,7 @@ return callback.apply(null, [null].concat(args)); } - var taskCallback = onlyOnce(rest(function (err, args) { + var taskCallback = onlyOnce(baseRest(function (err, args) { if (err) { return callback.apply(null, [err].concat(args)); } diff --git a/dist/async.min.js b/dist/async.min.js index 4d5d88a..b68afb9 100644 --- a/dist/async.min.js +++ b/dist/async.min.js @@ -1,2 +1,2 @@ -!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.async=n.async||{})}(this,function(n){"use strict";function t(n,t,e){var r=e.length;switch(r){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}function e(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function r(n){var t=e(n)?st.call(n):"";return t==ft||t==at}function u(n){return!!n&&"object"==typeof n}function i(n){return"symbol"==typeof n||u(n)&&vt.call(n)==pt}function o(n){if("number"==typeof n)return n;if(i(n))return yt;if(e(n)){var t=r(n.valueOf)?n.valueOf():n;n=e(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(mt,"");var u=gt.test(n);return u||bt.test(n)?St(n.slice(2),u?2:8):dt.test(n)?yt:+n}function c(n){if(!n)return 0===n?n:0;if(n=o(n),n===jt||n===-jt){var t=0>n?-1:1;return t*kt}return n===n?n:0}function f(n){var t=c(n),e=t%1;return t===t?e?t-e:t:0}function a(n,e){if("function"!=typeof n)throw new TypeError(wt);return e=Et(void 0===e?n.length-1:f(e),0),function(){for(var r=arguments,u=-1,i=Et(r.length-e,0),o=Array(i);++u<i;)o[u]=r[e+u];switch(e){case 0:return n.call(this,o);case 1:return n.call(this,r[0],o);case 2:return n.call(this,r[0],r[1],o)}var c=Array(e+1);for(u=-1;++u<e;)c[u]=r[u];return c[e]=o,t(n,this,c)}}function l(n){return a(function(t){var e=t.pop();n.call(this,t,e)})}function s(n){return a(function(t,e){var r=l(function(e,r){var u=this;return n(t,function(n,t){n.apply(u,e.concat([t]))},r)});return e.length?r.apply(this,e):r})}function p(n){return function(t){return null==t?void 0:t[n]}}function h(n){return"number"==typeof n&&n>-1&&n%1==0&&Lt>=n}function v(n){return null!=n&&h(xt(n))&&!r(n)}function y(){}function m(n){return function(){if(null!==n){var t=n;n=null,t.apply(this,arguments)}}}function d(n){return Ot&&n[Ot]&&n[Ot]()}function g(n){return At(Object(n))}function b(n,t){return null!=n&&(Tt.call(n,t)||"object"==typeof n&&t in n&&null===g(n))}function S(n){return _t(Object(n))}function j(n,t){for(var e=-1,r=Array(n);++e<n;)r[e]=t(e);return r}function k(n){return u(n)&&v(n)}function w(n){return k(n)&&zt.call(n,"callee")&&(!Mt.call(n,"callee")||Bt.call(n)==Ft)}function E(n){return"string"==typeof n||!Vt(n)&&u(n)&&Dt.call(n)==qt}function x(n){var t=n?n.length:void 0;return h(t)&&(Vt(n)||E(n)||w(n))?j(t,String):null}function L(n,t){return t=null==t?Pt:t,!!t&&("number"==typeof n||Rt.test(n))&&n>-1&&n%1==0&&t>n}function O(n){var t=n&&n.constructor,e="function"==typeof t&&t.prototype||Ut;return n===e}function A(n){var t=O(n);if(!t&&!v(n))return S(n);var e=x(n),r=!!e,u=e||[],i=u.length;for(var o in n)!b(n,o)||r&&("length"==o||L(o,i))||t&&"constructor"==o||u.push(o);return u}function I(n){var t=-1,e=n.length;return function(){return++t<e?{value:n[t],key:t}:null}}function T(n){var t=-1;return function(){var e=n.next();return e.done?null:(t++,{value:e.value,key:t})}}function _(n){var t=A(n),e=-1,r=t.length;return function(){var u=t[++e];return r>e?{value:n[u],key:u}:null}}function F(n){if(v(n))return I(n);var t=d(n);return t?T(t):_(n)}function $(n){return function(){if(null===n)throw new Error("Callback was already called.");var t=n;n=null,t.apply(this,arguments)}}function z(n){return function(t,e,r){function u(n){if(f-=1,n)c=!0,r(n);else{if(c&&0>=f)return r(null);i()}}function i(){for(;n>f&&!c;){var t=o();if(null===t)return c=!0,void(0>=f&&r(null));f+=1,e(t.value,t.key,$(u))}}if(r=m(r||y),0>=n||!t)return r(null);var o=F(t),c=!1,f=0;i()}}function B(n,t,e,r){z(t)(n,e,r)}function M(n,t){return function(e,r,u){return n(e,t,r,u)}}function V(n,t){var e;if("function"!=typeof t)throw new TypeError(Nt);return n=f(n),function(){return--n>0&&(e=t.apply(this,arguments)),1>=n&&(t=void 0),e}}function q(n){return V(2,n)}function C(n,t,e){function r(n){n?e(n):++i===o&&e(null)}e=q(e||y);var u=0,i=0,o=n.length;for(0===o&&e(null);o>u;u++)t(n[u],u,$(r))}function D(n,t,e){var r=v(n)?C:Qt;r(n,t,e)}function P(n){return function(t,e,r){return n(D,t,e,r)}}function R(n,t,e,r){r=m(r||y),t=t||[];var u=[],i=0;n(t,function(n,t,r){var o=i++;e(n,function(n,t){u[o]=t,r(n)})},function(n){r(n,u)})}function U(n){return function(t,e,r,u){return n(z(e),t,r,u)}}function N(n){return l(function(t,r){var u;try{u=n.apply(this,t)}catch(i){return r(i)}e(u)&&"function"==typeof u.then?u.then(function(n){r(null,n)},function(n){r(n.message?n:new Error(n))}):r(null,u)})}function Q(n,t){for(var e=-1,r=n?n.length:0;++e<r&&t(n[e],e,n)!==!1;);return n}function W(n){return function(t,e,r){for(var u=-1,i=Object(t),o=r(t),c=o.length;c--;){var f=o[n?c:++u];if(e(i[f],f,i)===!1)break}return t}}function G(n,t){return n&&Yt(n,t,A)}function H(n,t,e){for(var r=n.length,u=t+(e?1:-1);e?u--:++u<r;){var i=n[u];if(i!==i)return u}return-1}function J(n,t,e){if(t!==t)return H(n,e);for(var r=e-1,u=n.length;++r<u;)if(n[r]===t)return r;return-1}function K(n,t,e){function r(n,t){b.push(function(){c(n,t)})}function u(){if(0===b.length&&0===v)return e(null,h);for(;b.length&&t>v;){var n=b.shift();n()}}function i(n,t){var e=g[n];e||(e=g[n]=[]),e.push(t)}function o(n){var t=g[n]||[];Q(t,function(n){n()}),u()}function c(n,t){if(!d){var r=$(a(function(t,r){if(v--,r.length<=1&&(r=r[0]),t){var u={};G(h,function(n,t){u[t]=n}),u[n]=r,d=!0,g=[],e(t,u)}else h[n]=r,o(n)}));v++;var u=t[t.length-1];t.length>1?u(h,r):u(r)}}function f(){for(var n,t=0;S.length;)n=S.pop(),t++,Q(l(n),function(n){0===--j[n]&&S.push(n)});if(t!==p)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function l(t){var e=[];return G(n,function(n,r){Vt(n)&&J(n,t,0)>=0&&e.push(r)}),e}"function"==typeof t&&(e=t,t=null),e=m(e||y);var s=A(n),p=s.length;if(!p)return e(null);t||(t=p);var h={},v=0,d=!1,g={},b=[],S=[],j={};G(n,function(t,e){if(!Vt(t))return r(e,[t]),void S.push(e);var u=t.slice(0,t.length-1),o=u.length;return 0===o?(r(e,t),void S.push(e)):(j[e]=o,void Q(u,function(c){if(!n[c])throw new Error("async.auto task `"+e+"` has a non-existent dependency in "+u.join(", "));i(c,function(){o--,0===o&&r(e,t)})}))}),f(),u()}function X(n,t){for(var e=-1,r=n?n.length:0,u=Array(r);++e<r;)u[e]=t(n[e],e,n);return u}function Y(n,t){var e=-1,r=n.length;for(t||(t=Array(r));++e<r;)t[e]=n[e];return t}function Z(n){return n&&n.Object===Object?n:null}function nn(n){if("string"==typeof n)return n;if(i(n))return oe?oe.call(n):"";var t=n+"";return"0"==t&&1/n==-ue?"-0":t}function tn(n,t,e){var r=-1,u=n.length;0>t&&(t=-t>u?0:u+t),e=e>u?u:e,0>e&&(e+=u),u=t>e?0:e-t>>>0,t>>>=0;for(var i=Array(u);++r<u;)i[r]=n[r+t];return i}function en(n,t,e){var r=n.length;return e=void 0===e?r:e,!t&&e>=r?n:tn(n,t,e)}function rn(n,t){for(var e=n.length;e--&&J(t,n[e],0)>-1;);return e}function un(n,t){for(var e=-1,r=n.length;++e<r&&J(t,n[e],0)>-1;);return e}function on(n){return n.match(Ee)}function cn(n){return null==n?"":nn(n)}function fn(n,t,e){if(n=cn(n),n&&(e||void 0===t))return n.replace(xe,"");if(!n||!(t=nn(t)))return n;var r=on(n),u=on(t),i=un(r,u),o=rn(r,u)+1;return en(r,i,o).join("")}function an(n){return n=n.toString().replace(Ie,""),n=n.match(Le)[2].replace(" ",""),n=n?n.split(Oe):[],n=n.map(function(n){return fn(n.replace(Ae,""))})}function ln(n,t){var e={};G(n,function(n,t){function r(t,e){var r=X(u,function(n){return t[n]});r.push(e),n.apply(null,r)}var u;if(Vt(n))u=Y(n),n=u.pop(),e[t]=u.concat(u.length>0?r:n);else if(1===n.length)e[t]=n;else{if(u=an(n),0===n.length&&0===u.length)throw new Error("autoInject task functions require explicit parameters.");u.pop(),e[t]=u.concat(r)}}),K(e,t)}function sn(n){setTimeout(n,0)}function pn(n){return a(function(t,e){n(function(){t.apply(null,e)})})}function hn(){this.head=this.tail=null,this.length=0}function vn(n,t){n.length=1,n.head=n.tail=t}function yn(n,t,e){function r(n,t,e){if(null!=e&&"function"!=typeof e)throw new Error("task callback must be a function");return c.started=!0,Vt(n)||(n=[n]),0===n.length&&c.idle()?Fe(function(){c.drain()}):(Q(n,function(n){var r={data:n,callback:e||y};t?c._tasks.unshift(r):c._tasks.push(r)}),void Fe(c.process))}function u(n){return a(function(t){i-=1,Q(n,function(n){Q(o,function(t,e){return t===n?(o.splice(e,1),!1):void 0}),n.callback.apply(n,t),null!=t[0]&&c.error(t[0],n.data)}),i<=c.concurrency-c.buffer&&c.unsaturated(),c.idle()&&c.drain(),c.process()})}if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var i=0,o=[],c={_tasks:new hn,concurrency:t,payload:e,saturated:y,unsaturated:y,buffer:t/4,empty:y,drain:y,error:y,started:!1,paused:!1,push:function(n,t){r(n,!1,t)},kill:function(){c.drain=y,c._tasks.empty()},unshift:function(n,t){r(n,!0,t)},process:function(){for(;!c.paused&&i<c.concurrency&&c._tasks.length;){var t=[],e=[],r=c._tasks.length;c.payload&&(r=Math.min(r,c.payload));for(var f=0;r>f;f++){var a=c._tasks.shift();t.push(a),e.push(a.data)}0===c._tasks.length&&c.empty(),i+=1,o.push(t[0]),i===c.concurrency&&c.saturated();var l=$(u(t));n(e,l)}},length:function(){return c._tasks.length},running:function(){return i},workersList:function(){return o},idle:function(){return c._tasks.length+i===0},pause:function(){c.paused=!0},resume:function(){if(c.paused!==!1){c.paused=!1;for(var n=Math.min(c.concurrency,c._tasks.length),t=1;n>=t;t++)Fe(c.process)}}};return c}function mn(n,t){return yn(n,1,t)}function dn(n,t,e,r){r=m(r||y),ze(n,function(n,r,u){e(t,n,function(n,e){t=e,u(n)})},function(n){r(n,t)})}function gn(n,t,e,r){var u=[];n(t,function(n,t,r){e(n,function(n,t){u=u.concat(t||[]),r(n)})},function(n){r(n,u)})}function bn(n){return function(t,e,r){return n(ze,t,e,r)}}function Sn(n){return n}function jn(n,t,e){return function(r,u,i,o){function c(n){o&&(n?o(n):o(null,e(!1)))}function f(n,r,u){return o?void i(n,function(r,c){o&&(r?(o(r),o=i=!1):t(c)&&(o(null,e(!0,n)),o=i=!1)),u()}):u()}arguments.length>3?(o=o||y,n(r,u,f,c)):(o=i,o=o||y,i=u,n(r,f,c))}}function kn(n,t){return t}function wn(n){return a(function(t,e){t.apply(null,e.concat([a(function(t,e){"object"==typeof console&&(t?console.error&&console.error(t):console[n]&&Q(e,function(t){console[n](t)}))})]))})}function En(n,t,e){function r(t,r){return t?e(t):r?void n(u):e(null)}e=$(e||y);var u=a(function(n,u){return n?e(n):(u.push(r),void t.apply(this,u))});r(null,!0)}function xn(n,t,e){e=$(e||y);var r=a(function(u,i){return u?e(u):t.apply(this,i)?n(r):void e.apply(null,[null].concat(i))});n(r)}function Ln(n,t,e){xn(n,function(){return!t.apply(this,arguments)},e)}function On(n,t,e){function r(t){return t?e(t):void n(u)}function u(n,u){return n?e(n):u?void t(r):e(null)}e=$(e||y),n(u)}function An(n){return function(t,e,r){return n(t,r)}}function In(n,t,e){D(n,An(t),e)}function Tn(n,t,e,r){z(t)(n,An(e),r)}function _n(n){return l(function(t,e){var r=!0;t.push(function(){var n=arguments;r?Fe(function(){e.apply(null,n)}):e.apply(null,n)}),n.apply(this,t),r=!1})}function Fn(n){return!n}function $n(n,t,e,r){r=m(r||y);var u=[];n(t,function(n,t,r){e(n,function(e,i){e?r(e):(i&&u.push({index:t,value:n}),r())})},function(n){n?r(n):r(null,X(u.sort(function(n,t){return n.index-t.index}),p("value")))})}function zn(n,t){function e(n){return n?r(n):void u(e)}var r=$(t||y),u=_n(n);e()}function Bn(n,t,e,r){r=m(r||y);var u={};B(n,t,function(n,t,r){e(n,t,function(n,e){return n?r(n):(u[t]=e,void r())})},function(n){r(n,u)})}function Mn(n,t){return t in n}function Vn(n,t){var e=Object.create(null),r=Object.create(null);t=t||Sn;var u=l(function(u,i){var o=t.apply(null,u);Mn(e,o)?Fe(function(){i.apply(null,e[o])}):Mn(r,o)?r[o].push(i):(r[o]=[i],n.apply(null,u.concat([a(function(n){e[o]=n;var t=r[o];delete r[o];for(var u=0,i=t.length;i>u;u++)t[u].apply(null,n)})])))});return u.memo=e,u.unmemoized=n,u}function qn(n,t,e){e=e||y;var r=v(t)?[]:{};n(t,function(n,t,e){n(a(function(n,u){u.length<=1&&(u=u[0]),r[t]=u,e(n)}))},function(n){e(n,r)})}function Cn(n,t){qn(D,n,t)}function Dn(n,t,e){qn(z(t),n,e)}function Pn(n,t){return yn(function(t,e){n(t[0],e)},t,1)}function Rn(n,t){var e=Pn(n,t);return e.push=function(n,t,r){if(null==r&&(r=y),"function"!=typeof r)throw new Error("task callback must be a function");if(e.started=!0,Vt(n)||(n=[n]),0===n.length)return Fe(function(){e.drain()});t=t||0;for(var u=e._tasks.head;u&&t>=u.priority;)u=u.next;Q(n,function(n){var i={data:n,priority:t,callback:r};u?e._tasks.insertBefore(u,i):e._tasks.push(i)}),Fe(e.process)},delete e.unshift,e}function Un(n,t){return t=m(t||y),Vt(n)?n.length?void Q(n,function(n){n(t)}):t():t(new TypeError("First argument to race must be an array of functions"))}function Nn(n,t,e,r){var u=tr.call(n).reverse();dn(u,t,e,r)}function Qn(n){return l(function(t,e){return t.push(a(function(n,t){if(n)e(null,{error:n});else{var r=null;1===t.length?r=t[0]:t.length>1&&(r=t),e(null,{value:r})}})),n.apply(this,t)})}function Wn(n,t,e,r){$n(n,t,function(n,t){e(n,function(n,e){n?t(n):t(null,!e)})},r)}function Gn(n){var t;return Vt(n)?t=X(n,Qn):(t={},G(n,function(n,e){t[e]=Qn.call(this,n)})),t}function Hn(n){return function(){return n}}function Jn(n,t,e){function r(n,t){if("object"==typeof t)n.times=+t.times||i,n.intervalFunc="function"==typeof t.interval?t.interval:Hn(+t.interval||o);else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");n.times=+t||i}}function u(){t(function(n){n&&f++<c.times?setTimeout(u,c.intervalFunc(f)):e.apply(null,arguments)})}var i=5,o=0,c={times:i,intervalFunc:Hn(o)};if(arguments.length<3&&"function"==typeof n?(e=t||y,t=n):(r(c,n),e=e||y),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var f=1;u()}function Kn(n,t){return t||(t=n,n=null),l(function(e,r){function u(n){t.apply(null,e.concat([n]))}n?Jn(n,u,r):Jn(u,r)})}function Xn(n,t){qn(ze,n,t)}function Yn(n,t,e){function r(n,t){var e=n.criteria,r=t.criteria;return r>e?-1:e>r?1:0}Wt(n,function(n,e){t(n,function(t,r){return t?e(t):void e(null,{value:n,criteria:r})})},function(n,t){return n?e(n):void e(null,X(t.sort(r),p("value")))})}function Zn(n,t,e){function r(){c||(i.apply(null,arguments),clearTimeout(o))}function u(){var t=n.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",e&&(r.info=e),c=!0,i(r)}var i,o,c=!1;return l(function(e,c){i=c,o=setTimeout(u,t),n.apply(null,e.concat(r))})}function nt(n,t,e,r){for(var u=-1,i=ar(fr((t-n)/(e||1)),0),o=Array(i);i--;)o[r?i:++u]=n,n+=e;return o}function tt(n,t,e,r){Ht(nt(0,n,1),t,e,r)}function et(n,t,e,r){3===arguments.length&&(r=e,e=t,t=Vt(n)?[]:{}),r=m(r||y),D(n,function(n,r,u){e(t,n,r,u)},function(n){r(n,t)})}function rt(n){return function(){return(n.unmemoized||n).apply(null,arguments)}}function ut(n,t,e){if(e=$(e||y),!n())return e(null);var r=a(function(u,i){return u?e(u):n()?t(r):void e.apply(null,[null].concat(i))});t(r)}function it(n,t,e){ut(function(){return!n.apply(this,arguments)},t,e)}function ot(n,t){function e(u){if(r===n.length)return t.apply(null,[null].concat(u));var i=$(a(function(n,r){return n?t.apply(null,[n].concat(r)):void e(r)}));u.push(i);var o=n[r++];o.apply(null,u)}if(t=m(t||y),!Vt(n))return t(new Error("First argument to waterfall must be an array of functions"));if(!n.length)return t();var r=0;e([])}var ct,ft="[object Function]",at="[object GeneratorFunction]",lt=Object.prototype,st=lt.toString,pt="[object Symbol]",ht=Object.prototype,vt=ht.toString,yt=NaN,mt=/^\s+|\s+$/g,dt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,bt=/^0o[0-7]+$/i,St=parseInt,jt=1/0,kt=1.7976931348623157e308,wt="Expected a function",Et=Math.max,xt=p("length"),Lt=9007199254740991,Ot="function"==typeof Symbol&&Symbol.iterator,At=Object.getPrototypeOf,It=Object.prototype,Tt=It.hasOwnProperty,_t=Object.keys,Ft="[object Arguments]",$t=Object.prototype,zt=$t.hasOwnProperty,Bt=$t.toString,Mt=$t.propertyIsEnumerable,Vt=Array.isArray,qt="[object String]",Ct=Object.prototype,Dt=Ct.toString,Pt=9007199254740991,Rt=/^(?:0|[1-9]\d*)$/,Ut=Object.prototype,Nt="Expected a function",Qt=M(B,1/0),Wt=P(R),Gt=s(Wt),Ht=U(R),Jt=M(Ht,1),Kt=s(Jt),Xt=a(function(n,t){return a(function(e){return n.apply(null,t.concat(e))})}),Yt=W(),Zt=Z("object"==typeof global&&global),ne=Z("object"==typeof self&&self),te=Z("object"==typeof this&&this),ee=Zt||ne||te||Function("return this")(),re=ee.Symbol,ue=1/0,ie=re?re.prototype:void 0,oe=ie?ie.toString:void 0,ce="\\ud800-\\udfff",fe="\\u0300-\\u036f\\ufe20-\\ufe23",ae="\\u20d0-\\u20f0",le="\\ufe0e\\ufe0f",se="["+ce+"]",pe="["+fe+ae+"]",he="\\ud83c[\\udffb-\\udfff]",ve="(?:"+pe+"|"+he+")",ye="[^"+ce+"]",me="(?:\\ud83c[\\udde6-\\uddff]){2}",de="[\\ud800-\\udbff][\\udc00-\\udfff]",ge="\\u200d",be=ve+"?",Se="["+le+"]?",je="(?:"+ge+"(?:"+[ye,me,de].join("|")+")"+Se+be+")*",ke=Se+be+je,we="(?:"+[ye+pe+"?",pe,me,de,se].join("|")+")",Ee=RegExp(he+"(?="+he+")|"+we+ke,"g"),xe=/^\s+|\s+$/g,Le=/^(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,Oe=/,/,Ae=/(=.+)?(\s*)$/,Ie=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Te="function"==typeof setImmediate&&setImmediate,_e="object"==typeof process&&"function"==typeof process.nextTick;ct=Te?setImmediate:_e?process.nextTick:sn;var Fe=pn(ct);hn.prototype.removeLink=function(n){return n.prev?n.prev.next=n.next:this.head=n.next,n.next?n.next.prev=n.prev:this.tail=n.prev,n.prev=n.next=null,this.length-=1,n},hn.prototype.empty=hn,hn.prototype.insertAfter=function(n,t){t.prev=n,t.next=n.next,n.next?n.next.prev=t:this.tail=t,n.next=t,this.length+=1},hn.prototype.insertBefore=function(n,t){t.prev=n.prev,t.next=n,n.prev?n.prev.next=t:this.head=t,n.prev=t,this.length+=1},hn.prototype.unshift=function(n){this.head?this.insertBefore(this.head,n):vn(this,n)},hn.prototype.push=function(n){this.tail?this.insertAfter(this.tail,n):vn(this,n)},hn.prototype.shift=function(){return this.head&&this.removeLink(this.head)},hn.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)};var $e,ze=M(B,1),Be=a(function(n){return a(function(t){var e=this,r=t[t.length-1];"function"==typeof r?t.pop():r=y,dn(n,t,function(n,t,r){t.apply(e,n.concat([a(function(n,t){r(n,t)})]))},function(n,t){r.apply(e,[n].concat(t))})})}),Me=a(function(n){return Be.apply(null,n.reverse())}),Ve=P(gn),qe=bn(gn),Ce=a(function(n){var t=[null].concat(n);return l(function(n,e){return e.apply(this,t)})}),De=jn(D,Sn,kn),Pe=jn(B,Sn,kn),Re=jn(ze,Sn,kn),Ue=wn("dir"),Ne=M(Tn,1),Qe=jn(D,Fn,Fn),We=jn(B,Fn,Fn),Ge=M(We,1),He=P($n),Je=U($n),Ke=M(Je,1),Xe=wn("log"),Ye=M(Bn,1/0),Ze=M(Bn,1);$e=_e?process.nextTick:Te?setImmediate:sn;var nr=pn($e),tr=Array.prototype.slice,er=P(Wn),rr=U(Wn),ur=M(rr,1),ir=jn(D,Boolean,Sn),or=jn(B,Boolean,Sn),cr=M(or,1),fr=Math.ceil,ar=Math.max,lr=M(tt,1/0),sr=M(tt,1),pr={applyEach:Gt,applyEachSeries:Kt,apply:Xt,asyncify:N,auto:K,autoInject:ln,cargo:mn,compose:Me,concat:Ve,concatSeries:qe,constant:Ce,detect:De,detectLimit:Pe,detectSeries:Re,dir:Ue,doDuring:En,doUntil:Ln,doWhilst:xn,during:On,each:In,eachLimit:Tn,eachOf:D,eachOfLimit:B,eachOfSeries:ze,eachSeries:Ne,ensureAsync:_n,every:Qe,everyLimit:We,everySeries:Ge,filter:He,filterLimit:Je,filterSeries:Ke,forever:zn,log:Xe,map:Wt,mapLimit:Ht,mapSeries:Jt,mapValues:Ye,mapValuesLimit:Bn,mapValuesSeries:Ze,memoize:Vn,nextTick:nr,parallel:Cn,parallelLimit:Dn,priorityQueue:Rn,queue:Pn,race:Un,reduce:dn,reduceRight:Nn,reflect:Qn,reflectAll:Gn,reject:er,rejectLimit:rr,rejectSeries:ur,retry:Jn,retryable:Kn,seq:Be,series:Xn,setImmediate:Fe,some:ir,someLimit:or,someSeries:cr,sortBy:Yn,timeout:Zn,times:lr,timesLimit:tt,timesSeries:sr,transform:et,unmemoize:rt,until:it,waterfall:ot,whilst:ut,all:Qe,any:ir,forEach:In,forEachSeries:Ne,forEachLimit:Tn,forEachOf:D,forEachOfSeries:ze,forEachOfLimit:B,inject:dn,foldl:dn,foldr:Nn,select:He,selectLimit:Je,selectSeries:Ke,wrapSync:N};n["default"]=pr,n.applyEach=Gt,n.applyEachSeries=Kt,n.apply=Xt,n.asyncify=N,n.auto=K,n.autoInject=ln,n.cargo=mn,n.compose=Me,n.concat=Ve,n.concatSeries=qe,n.constant=Ce,n.detect=De,n.detectLimit=Pe,n.detectSeries=Re,n.dir=Ue,n.doDuring=En,n.doUntil=Ln,n.doWhilst=xn,n.during=On,n.each=In,n.eachLimit=Tn,n.eachOf=D,n.eachOfLimit=B,n.eachOfSeries=ze,n.eachSeries=Ne,n.ensureAsync=_n,n.every=Qe,n.everyLimit=We,n.everySeries=Ge,n.filter=He,n.filterLimit=Je,n.filterSeries=Ke,n.forever=zn,n.log=Xe,n.map=Wt,n.mapLimit=Ht,n.mapSeries=Jt,n.mapValues=Ye,n.mapValuesLimit=Bn,n.mapValuesSeries=Ze,n.memoize=Vn,n.nextTick=nr,n.parallel=Cn,n.parallelLimit=Dn,n.priorityQueue=Rn,n.queue=Pn,n.race=Un,n.reduce=dn,n.reduceRight=Nn,n.reflect=Qn,n.reflectAll=Gn,n.reject=er,n.rejectLimit=rr,n.rejectSeries=ur,n.retry=Jn,n.retryable=Kn,n.seq=Be,n.series=Xn,n.setImmediate=Fe,n.some=ir,n.someLimit=or,n.someSeries=cr,n.sortBy=Yn,n.timeout=Zn,n.times=lr,n.timesLimit=tt,n.timesSeries=sr,n.transform=et,n.unmemoize=rt,n.until=it,n.waterfall=ot,n.whilst=ut,n.all=Qe,n.allLimit=We,n.allSeries=Ge,n.any=ir,n.anyLimit=or,n.anySeries=cr,n.find=De,n.findLimit=Pe,n.findSeries=Re,n.forEach=In,n.forEachSeries=Ne,n.forEachLimit=Tn,n.forEachOf=D,n.forEachOfSeries=ze,n.forEachOfLimit=B,n.inject=dn,n.foldl=dn,n.foldr=Nn,n.select=He,n.selectLimit=Je,n.selectSeries=Ke,n.wrapSync=N}); +!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.async=n.async||{})}(this,function(n){"use strict";function t(n,t,e){switch(e.length){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}function e(n,e){return e=ct(void 0===e?n.length-1:e,0),function(){for(var r=arguments,u=-1,i=ct(r.length-e,0),o=Array(i);++u<i;)o[u]=r[e+u];u=-1;for(var c=Array(e+1);++u<e;)c[u]=r[u];return c[e]=o,t(n,this,c)}}function r(n){return e(function(t){var e=t.pop();n.call(this,t,e)})}function u(n){return e(function(t,e){var u=r(function(e,r){var u=this;return n(t,function(n,t){n.apply(u,e.concat([t]))},r)});return e.length?u.apply(this,e):u})}function i(n){return function(t){return null==t?void 0:t[n]}}function o(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function c(n){var t=o(n)?pt.call(n):"";return t==at||t==lt}function f(n){return"number"==typeof n&&n>-1&&n%1==0&&ht>=n}function a(n){return null!=n&&f(ft(n))&&!c(n)}function l(){}function s(n){return function(){if(null!==n){var t=n;n=null,t.apply(this,arguments)}}}function p(n){return vt&&n[vt]&&n[vt]()}function h(n,t){return function(e){return n(t(e))}}function v(n,t){return null!=n&&(gt.call(n,t)||"object"==typeof n&&t in n&&null===mt(n))}function y(n,t){for(var e=-1,r=Array(n);++e<n;)r[e]=t(e);return r}function m(n){return!!n&&"object"==typeof n}function d(n){return m(n)&&a(n)}function g(n){return d(n)&&wt.call(n,"callee")&&(!Lt.call(n,"callee")||Et.call(n)==jt)}function b(n){return"string"==typeof n||!Ot(n)&&m(n)&&It.call(n)==xt}function S(n){var t=n?n.length:void 0;return f(t)&&(Ot(n)||b(n)||g(n))?y(t,String):null}function j(n,t){return t=null==t?_t:t,!!t&&("number"==typeof n||Tt.test(n))&&n>-1&&n%1==0&&t>n}function k(n){var t=n&&n.constructor,e="function"==typeof t&&t.prototype||Ft;return n===e}function w(n){var t=k(n);if(!t&&!a(n))return St(n);var e=S(n),r=!!e,u=e||[],i=u.length;for(var o in n)!v(n,o)||r&&("length"==o||j(o,i))||t&&"constructor"==o||u.push(o);return u}function E(n){var t=-1,e=n.length;return function(){return++t<e?{value:n[t],key:t}:null}}function L(n){var t=-1;return function(){var e=n.next();return e.done?null:(t++,{value:e.value,key:t})}}function O(n){var t=w(n),e=-1,r=t.length;return function(){var u=t[++e];return r>e?{value:n[u],key:u}:null}}function x(n){if(a(n))return E(n);var t=p(n);return t?L(t):O(n)}function A(n){return function(){if(null===n)throw new Error("Callback was already called.");var t=n;n=null,t.apply(this,arguments)}}function I(n){return function(t,e,r){function u(n){if(f-=1,n)c=!0,r(n);else{if(c&&0>=f)return r(null);i()}}function i(){for(;n>f&&!c;){var t=o();if(null===t)return c=!0,void(0>=f&&r(null));f+=1,e(t.value,t.key,A(u))}}if(r=s(r||l),0>=n||!t)return r(null);var o=x(t),c=!1,f=0;i()}}function _(n,t,e,r){I(t)(n,e,r)}function T(n,t){return function(e,r,u){return n(e,t,r,u)}}function F(n){return"symbol"==typeof n||m(n)&&Bt.call(n)==$t}function $(n){if("number"==typeof n)return n;if(F(n))return Mt;if(o(n)){var t=c(n.valueOf)?n.valueOf():n;n=o(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(Vt,"");var e=Ct.test(n);return e||Dt.test(n)?Pt(n.slice(2),e?2:8):qt.test(n)?Mt:+n}function z(n){if(!n)return 0===n?n:0;if(n=$(n),n===Rt||n===-Rt){var t=0>n?-1:1;return t*Ut}return n===n?n:0}function B(n){var t=z(n),e=t%1;return t===t?e?t-e:t:0}function M(n,t){var e;if("function"!=typeof t)throw new TypeError(Nt);return n=B(n),function(){return--n>0&&(e=t.apply(this,arguments)),1>=n&&(t=void 0),e}}function V(n){return M(2,n)}function q(n,t,e){function r(n){n?e(n):++i===o&&e(null)}e=V(e||l);var u=0,i=0,o=n.length;for(0===o&&e(null);o>u;u++)t(n[u],u,A(r))}function C(n,t,e){var r=a(n)?q:Qt;r(n,t,e)}function D(n){return function(t,e,r){return n(C,t,e,r)}}function P(n,t,e,r){r=s(r||l),t=t||[];var u=[],i=0;n(t,function(n,t,r){var o=i++;e(n,function(n,t){u[o]=t,r(n)})},function(n){r(n,u)})}function R(n){return function(t,e,r,u){return n(I(e),t,r,u)}}function U(n){return r(function(t,e){var r;try{r=n.apply(this,t)}catch(u){return e(u)}o(r)&&"function"==typeof r.then?r.then(function(n){e(null,n)},function(n){e(n.message?n:new Error(n))}):e(null,r)})}function N(n,t){for(var e=-1,r=n?n.length:0;++e<r&&t(n[e],e,n)!==!1;);return n}function Q(n){return function(t,e,r){for(var u=-1,i=Object(t),o=r(t),c=o.length;c--;){var f=o[n?c:++u];if(e(i[f],f,i)===!1)break}return t}}function W(n,t){return n&&Yt(n,t,w)}function G(n,t,e,r){for(var u=n.length,i=e+(r?1:-1);r?i--:++i<u;)if(t(n[i],i,n))return i;return-1}function H(n){return n!==n}function J(n,t,e){if(t!==t)return G(n,H,e);for(var r=e-1,u=n.length;++r<u;)if(n[r]===t)return r;return-1}function K(n,t,r){function u(n,t){b.push(function(){f(n,t)})}function i(){if(0===b.length&&0===m)return r(null,y);for(;b.length&&t>m;){var n=b.shift();n()}}function o(n,t){var e=g[n];e||(e=g[n]=[]),e.push(t)}function c(n){var t=g[n]||[];N(t,function(n){n()}),i()}function f(n,t){if(!d){var u=A(e(function(t,e){if(m--,e.length<=1&&(e=e[0]),t){var u={};W(y,function(n,t){u[t]=n}),u[n]=e,d=!0,g=[],r(t,u)}else y[n]=e,c(n)}));m++;var i=t[t.length-1];t.length>1?i(y,u):i(u)}}function a(){for(var n,t=0;S.length;)n=S.pop(),t++,N(p(n),function(n){0===--j[n]&&S.push(n)});if(t!==v)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function p(t){var e=[];return W(n,function(n,r){Ot(n)&&J(n,t,0)>=0&&e.push(r)}),e}"function"==typeof t&&(r=t,t=null),r=s(r||l);var h=w(n),v=h.length;if(!v)return r(null);t||(t=v);var y={},m=0,d=!1,g={},b=[],S=[],j={};W(n,function(t,e){if(!Ot(t))return u(e,[t]),void S.push(e);var r=t.slice(0,t.length-1),i=r.length;return 0===i?(u(e,t),void S.push(e)):(j[e]=i,void N(r,function(c){if(!n[c])throw new Error("async.auto task `"+e+"` has a non-existent dependency in "+r.join(", "));o(c,function(){i--,0===i&&u(e,t)})}))}),a(),i()}function X(n,t){for(var e=-1,r=n?n.length:0,u=Array(r);++e<r;)u[e]=t(n[e],e,n);return u}function Y(n,t){var e=-1,r=n.length;for(t||(t=Array(r));++e<r;)t[e]=n[e];return t}function Z(n){if("string"==typeof n)return n;if(F(n))return ie?ie.call(n):"";var t=n+"";return"0"==t&&1/n==-re?"-0":t}function nn(n,t,e){var r=-1,u=n.length;0>t&&(t=-t>u?0:u+t),e=e>u?u:e,0>e&&(e+=u),u=t>e?0:e-t>>>0,t>>>=0;for(var i=Array(u);++r<u;)i[r]=n[r+t];return i}function tn(n,t,e){var r=n.length;return e=void 0===e?r:e,!t&&e>=r?n:nn(n,t,e)}function en(n,t){for(var e=n.length;e--&&J(t,n[e],0)>-1;);return e}function rn(n,t){for(var e=-1,r=n.length;++e<r&&J(t,n[e],0)>-1;);return e}function un(n){return n.match(we)}function on(n){return null==n?"":Z(n)}function cn(n,t,e){if(n=on(n),n&&(e||void 0===t))return n.replace(Ee,"");if(!n||!(t=Z(t)))return n;var r=un(n),u=un(t),i=rn(r,u),o=en(r,u)+1;return tn(r,i,o).join("")}function fn(n){return n=n.toString().replace(Ae,""),n=n.match(Le)[2].replace(" ",""),n=n?n.split(Oe):[],n=n.map(function(n){return cn(n.replace(xe,""))})}function an(n,t){var e={};W(n,function(n,t){function r(t,e){var r=X(u,function(n){return t[n]});r.push(e),n.apply(null,r)}var u;if(Ot(n))u=Y(n),n=u.pop(),e[t]=u.concat(u.length>0?r:n);else if(1===n.length)e[t]=n;else{if(u=fn(n),0===n.length&&0===u.length)throw new Error("autoInject task functions require explicit parameters.");u.pop(),e[t]=u.concat(r)}}),K(e,t)}function ln(n){setTimeout(n,0)}function sn(n){return e(function(t,e){n(function(){t.apply(null,e)})})}function pn(){this.head=this.tail=null,this.length=0}function hn(n,t){n.length=1,n.head=n.tail=t}function vn(n,t,r){function u(n,t,e){if(null!=e&&"function"!=typeof e)throw new Error("task callback must be a function");return f.started=!0,Ot(n)||(n=[n]),0===n.length&&f.idle()?Te(function(){f.drain()}):(N(n,function(n){var r={data:n,callback:e||l};t?f._tasks.unshift(r):f._tasks.push(r)}),void Te(f.process))}function i(n){return e(function(t){o-=1,N(n,function(n){N(c,function(t,e){return t===n?(c.splice(e,1),!1):void 0}),n.callback.apply(n,t),null!=t[0]&&f.error(t[0],n.data)}),o<=f.concurrency-f.buffer&&f.unsaturated(),f.idle()&&f.drain(),f.process()})}if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var o=0,c=[],f={_tasks:new pn,concurrency:t,payload:r,saturated:l,unsaturated:l,buffer:t/4,empty:l,drain:l,error:l,started:!1,paused:!1,push:function(n,t){u(n,!1,t)},kill:function(){f.drain=l,f._tasks.empty()},unshift:function(n,t){u(n,!0,t)},process:function(){for(;!f.paused&&o<f.concurrency&&f._tasks.length;){var t=[],e=[],r=f._tasks.length;f.payload&&(r=Math.min(r,f.payload));for(var u=0;r>u;u++){var a=f._tasks.shift();t.push(a),e.push(a.data)}0===f._tasks.length&&f.empty(),o+=1,c.push(t[0]),o===f.concurrency&&f.saturated();var l=A(i(t));n(e,l)}},length:function(){return f._tasks.length},running:function(){return o},workersList:function(){return c},idle:function(){return f._tasks.length+o===0},pause:function(){f.paused=!0},resume:function(){if(f.paused!==!1){f.paused=!1;for(var n=Math.min(f.concurrency,f._tasks.length),t=1;n>=t;t++)Te(f.process)}}};return f}function yn(n,t){return vn(n,1,t)}function mn(n,t,e,r){r=s(r||l),$e(n,function(n,r,u){e(t,n,function(n,e){t=e,u(n)})},function(n){r(n,t)})}function dn(n,t,e,r){var u=[];n(t,function(n,t,r){e(n,function(n,t){u=u.concat(t||[]),r(n)})},function(n){r(n,u)})}function gn(n){return function(t,e,r){return n($e,t,e,r)}}function bn(n){return n}function Sn(n,t,e){return function(r,u,i,o){function c(n){o&&(n?o(n):o(null,e(!1)))}function f(n,r,u){return o?void i(n,function(r,c){o&&(r?(o(r),o=i=!1):t(c)&&(o(null,e(!0,n)),o=i=!1)),u()}):u()}arguments.length>3?(o=o||l,n(r,u,f,c)):(o=i,o=o||l,i=u,n(r,f,c))}}function jn(n,t){return t}function kn(n){return e(function(t,r){t.apply(null,r.concat([e(function(t,e){"object"==typeof console&&(t?console.error&&console.error(t):console[n]&&N(e,function(t){console[n](t)}))})]))})}function wn(n,t,r){function u(t,e){return t?r(t):e?void n(i):r(null)}r=A(r||l);var i=e(function(n,e){return n?r(n):(e.push(u),void t.apply(this,e))});u(null,!0)}function En(n,t,r){r=A(r||l);var u=e(function(e,i){return e?r(e):t.apply(this,i)?n(u):void r.apply(null,[null].concat(i))});n(u)}function Ln(n,t,e){En(n,function(){return!t.apply(this,arguments)},e)}function On(n,t,e){function r(t){return t?e(t):void n(u)}function u(n,u){return n?e(n):u?void t(r):e(null)}e=A(e||l),n(u)}function xn(n){return function(t,e,r){return n(t,r)}}function An(n,t,e){C(n,xn(t),e)}function In(n,t,e,r){I(t)(n,xn(e),r)}function _n(n){return r(function(t,e){var r=!0;t.push(function(){var n=arguments;r?Te(function(){e.apply(null,n)}):e.apply(null,n)}),n.apply(this,t),r=!1})}function Tn(n){return!n}function Fn(n,t,e,r){r=s(r||l);var u=[];n(t,function(n,t,r){e(n,function(e,i){e?r(e):(i&&u.push({index:t,value:n}),r())})},function(n){n?r(n):r(null,X(u.sort(function(n,t){return n.index-t.index}),i("value")))})}function $n(n,t){function e(n){return n?r(n):void u(e)}var r=A(t||l),u=_n(n);e()}function zn(n,t,e,r){r=s(r||l);var u={};_(n,t,function(n,t,r){e(n,t,function(n,e){return n?r(n):(u[t]=e,void r())})},function(n){r(n,u)})}function Bn(n,t){return t in n}function Mn(n,t){var u=Object.create(null),i=Object.create(null);t=t||bn;var o=r(function(r,o){var c=t.apply(null,r);Bn(u,c)?Te(function(){o.apply(null,u[c])}):Bn(i,c)?i[c].push(o):(i[c]=[o],n.apply(null,r.concat([e(function(n){u[c]=n;var t=i[c];delete i[c];for(var e=0,r=t.length;r>e;e++)t[e].apply(null,n)})])))});return o.memo=u,o.unmemoized=n,o}function Vn(n,t,r){r=r||l;var u=a(t)?[]:{};n(t,function(n,t,r){n(e(function(n,e){e.length<=1&&(e=e[0]),u[t]=e,r(n)}))},function(n){r(n,u)})}function qn(n,t){Vn(C,n,t)}function Cn(n,t,e){Vn(I(t),n,e)}function Dn(n,t){return vn(function(t,e){n(t[0],e)},t,1)}function Pn(n,t){var e=Dn(n,t);return e.push=function(n,t,r){if(null==r&&(r=l),"function"!=typeof r)throw new Error("task callback must be a function");if(e.started=!0,Ot(n)||(n=[n]),0===n.length)return Te(function(){e.drain()});t=t||0;for(var u=e._tasks.head;u&&t>=u.priority;)u=u.next;N(n,function(n){var i={data:n,priority:t,callback:r};u?e._tasks.insertBefore(u,i):e._tasks.push(i)}),Te(e.process)},delete e.unshift,e}function Rn(n,t){return t=s(t||l),Ot(n)?n.length?void N(n,function(n){n(t)}):t():t(new TypeError("First argument to race must be an array of functions"))}function Un(n,t,e,r){var u=nr.call(n).reverse();mn(u,t,e,r)}function Nn(n){return r(function(t,r){return t.push(e(function(n,t){if(n)r(null,{error:n});else{var e=null;1===t.length?e=t[0]:t.length>1&&(e=t),r(null,{value:e})}})),n.apply(this,t)})}function Qn(n,t,e,r){Fn(n,t,function(n,t){e(n,function(n,e){n?t(n):t(null,!e)})},r)}function Wn(n){var t;return Ot(n)?t=X(n,Nn):(t={},W(n,function(n,e){t[e]=Nn.call(this,n)})),t}function Gn(n){return function(){return n}}function Hn(n,t,e){function r(n,t){if("object"==typeof t)n.times=+t.times||i,n.intervalFunc="function"==typeof t.interval?t.interval:Gn(+t.interval||o);else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");n.times=+t||i}}function u(){t(function(n){n&&f++<c.times?setTimeout(u,c.intervalFunc(f)):e.apply(null,arguments)})}var i=5,o=0,c={times:i,intervalFunc:Gn(o)};if(arguments.length<3&&"function"==typeof n?(e=t||l,t=n):(r(c,n),e=e||l),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var f=1;u()}function Jn(n,t){return t||(t=n,n=null),r(function(e,r){function u(n){t.apply(null,e.concat([n]))}n?Hn(n,u,r):Hn(u,r)})}function Kn(n,t){Vn($e,n,t)}function Xn(n,t,e){function r(n,t){var e=n.criteria,r=t.criteria;return r>e?-1:e>r?1:0}Wt(n,function(n,e){t(n,function(t,r){return t?e(t):void e(null,{value:n,criteria:r})})},function(n,t){return n?e(n):void e(null,X(t.sort(r),i("value")))})}function Yn(n,t,e){function u(){f||(o.apply(null,arguments),clearTimeout(c))}function i(){var t=n.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",e&&(r.info=e),f=!0,o(r)}var o,c,f=!1;return r(function(e,r){o=r,c=setTimeout(i,t),n.apply(null,e.concat(u))})}function Zn(n,t,e,r){for(var u=-1,i=fr(cr((t-n)/(e||1)),0),o=Array(i);i--;)o[r?i:++u]=n,n+=e;return o}function nt(n,t,e,r){Ht(Zn(0,n,1),t,e,r)}function tt(n,t,e,r){3===arguments.length&&(r=e,e=t,t=Ot(n)?[]:{}),r=s(r||l),C(n,function(n,r,u){e(t,n,r,u)},function(n){r(n,t)})}function et(n){return function(){return(n.unmemoized||n).apply(null,arguments)}}function rt(n,t,r){if(r=A(r||l),!n())return r(null);var u=e(function(e,i){return e?r(e):n()?t(u):void r.apply(null,[null].concat(i))});t(u)}function ut(n,t,e){rt(function(){return!n.apply(this,arguments)},t,e)}function it(n,t){function r(i){if(u===n.length)return t.apply(null,[null].concat(i));var o=A(e(function(n,e){return n?t.apply(null,[n].concat(e)):void r(e)}));i.push(o);var c=n[u++];c.apply(null,i)}if(t=s(t||l),!Ot(n))return t(new Error("First argument to waterfall must be an array of functions"));if(!n.length)return t();var u=0;r([])}var ot,ct=Math.max,ft=i("length"),at="[object Function]",lt="[object GeneratorFunction]",st=Object.prototype,pt=st.toString,ht=9007199254740991,vt="function"==typeof Symbol&&Symbol.iterator,yt=Object.getPrototypeOf,mt=h(yt,Object),dt=Object.prototype,gt=dt.hasOwnProperty,bt=Object.keys,St=h(bt,Object),jt="[object Arguments]",kt=Object.prototype,wt=kt.hasOwnProperty,Et=kt.toString,Lt=kt.propertyIsEnumerable,Ot=Array.isArray,xt="[object String]",At=Object.prototype,It=At.toString,_t=9007199254740991,Tt=/^(?:0|[1-9]\d*)$/,Ft=Object.prototype,$t="[object Symbol]",zt=Object.prototype,Bt=zt.toString,Mt=NaN,Vt=/^\s+|\s+$/g,qt=/^[-+]0x[0-9a-f]+$/i,Ct=/^0b[01]+$/i,Dt=/^0o[0-7]+$/i,Pt=parseInt,Rt=1/0,Ut=1.7976931348623157e308,Nt="Expected a function",Qt=T(_,1/0),Wt=D(P),Gt=u(Wt),Ht=R(P),Jt=T(Ht,1),Kt=u(Jt),Xt=e(function(n,t){return e(function(e){return n.apply(null,t.concat(e))})}),Yt=Q(),Zt="object"==typeof global&&global&&global.Object===Object&&global,ne="object"==typeof self&&self&&self.Object===Object&&self,te=Zt||ne||Function("return this")(),ee=te.Symbol,re=1/0,ue=ee?ee.prototype:void 0,ie=ue?ue.toString:void 0,oe="\\ud800-\\udfff",ce="\\u0300-\\u036f\\ufe20-\\ufe23",fe="\\u20d0-\\u20f0",ae="\\ufe0e\\ufe0f",le="["+oe+"]",se="["+ce+fe+"]",pe="\\ud83c[\\udffb-\\udfff]",he="(?:"+se+"|"+pe+")",ve="[^"+oe+"]",ye="(?:\\ud83c[\\udde6-\\uddff]){2}",me="[\\ud800-\\udbff][\\udc00-\\udfff]",de="\\u200d",ge=he+"?",be="["+ae+"]?",Se="(?:"+de+"(?:"+[ve,ye,me].join("|")+")"+be+ge+")*",je=be+ge+Se,ke="(?:"+[ve+se+"?",se,ye,me,le].join("|")+")",we=RegExp(pe+"(?="+pe+")|"+ke+je,"g"),Ee=/^\s+|\s+$/g,Le=/^(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,Oe=/,/,xe=/(=.+)?(\s*)$/,Ae=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ie="function"==typeof setImmediate&&setImmediate,_e="object"==typeof process&&"function"==typeof process.nextTick;ot=Ie?setImmediate:_e?process.nextTick:ln;var Te=sn(ot);pn.prototype.removeLink=function(n){return n.prev?n.prev.next=n.next:this.head=n.next,n.next?n.next.prev=n.prev:this.tail=n.prev,n.prev=n.next=null,this.length-=1,n},pn.prototype.empty=pn,pn.prototype.insertAfter=function(n,t){t.prev=n,t.next=n.next,n.next?n.next.prev=t:this.tail=t,n.next=t,this.length+=1},pn.prototype.insertBefore=function(n,t){t.prev=n.prev,t.next=n,n.prev?n.prev.next=t:this.head=t,n.prev=t,this.length+=1},pn.prototype.unshift=function(n){this.head?this.insertBefore(this.head,n):hn(this,n)},pn.prototype.push=function(n){this.tail?this.insertAfter(this.tail,n):hn(this,n)},pn.prototype.shift=function(){return this.head&&this.removeLink(this.head)},pn.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)};var Fe,$e=T(_,1),ze=e(function(n){return e(function(t){var r=this,u=t[t.length-1];"function"==typeof u?t.pop():u=l,mn(n,t,function(n,t,u){t.apply(r,n.concat([e(function(n,t){u(n,t)})]))},function(n,t){u.apply(r,[n].concat(t))})})}),Be=e(function(n){return ze.apply(null,n.reverse())}),Me=D(dn),Ve=gn(dn),qe=e(function(n){var t=[null].concat(n);return r(function(n,e){return e.apply(this,t)})}),Ce=Sn(C,bn,jn),De=Sn(_,bn,jn),Pe=Sn($e,bn,jn),Re=kn("dir"),Ue=T(In,1),Ne=Sn(C,Tn,Tn),Qe=Sn(_,Tn,Tn),We=T(Qe,1),Ge=D(Fn),He=R(Fn),Je=T(He,1),Ke=kn("log"),Xe=T(zn,1/0),Ye=T(zn,1);Fe=_e?process.nextTick:Ie?setImmediate:ln;var Ze=sn(Fe),nr=Array.prototype.slice,tr=D(Qn),er=R(Qn),rr=T(er,1),ur=Sn(C,Boolean,bn),ir=Sn(_,Boolean,bn),or=T(ir,1),cr=Math.ceil,fr=Math.max,ar=T(nt,1/0),lr=T(nt,1),sr={applyEach:Gt,applyEachSeries:Kt,apply:Xt,asyncify:U,auto:K,autoInject:an,cargo:yn,compose:Be,concat:Me,concatSeries:Ve,constant:qe,detect:Ce,detectLimit:De,detectSeries:Pe,dir:Re,doDuring:wn,doUntil:Ln,doWhilst:En,during:On,each:An,eachLimit:In,eachOf:C,eachOfLimit:_,eachOfSeries:$e,eachSeries:Ue,ensureAsync:_n,every:Ne,everyLimit:Qe,everySeries:We,filter:Ge,filterLimit:He,filterSeries:Je,forever:$n,log:Ke,map:Wt,mapLimit:Ht,mapSeries:Jt,mapValues:Xe,mapValuesLimit:zn,mapValuesSeries:Ye,memoize:Mn,nextTick:Ze,parallel:qn,parallelLimit:Cn,priorityQueue:Pn,queue:Dn,race:Rn,reduce:mn,reduceRight:Un,reflect:Nn,reflectAll:Wn,reject:tr,rejectLimit:er,rejectSeries:rr,retry:Hn,retryable:Jn,seq:ze,series:Kn,setImmediate:Te,some:ur,someLimit:ir,someSeries:or,sortBy:Xn,timeout:Yn,times:ar,timesLimit:nt,timesSeries:lr,transform:tt,unmemoize:et,until:ut,waterfall:it,whilst:rt,all:Ne,any:ur,forEach:An,forEachSeries:Ue,forEachLimit:In,forEachOf:C,forEachOfSeries:$e,forEachOfLimit:_,inject:mn,foldl:mn,foldr:Un,select:Ge,selectLimit:He,selectSeries:Je,wrapSync:U};n["default"]=sr,n.applyEach=Gt,n.applyEachSeries=Kt,n.apply=Xt,n.asyncify=U,n.auto=K,n.autoInject=an,n.cargo=yn,n.compose=Be,n.concat=Me,n.concatSeries=Ve,n.constant=qe,n.detect=Ce,n.detectLimit=De,n.detectSeries=Pe,n.dir=Re,n.doDuring=wn,n.doUntil=Ln,n.doWhilst=En,n.during=On,n.each=An,n.eachLimit=In,n.eachOf=C,n.eachOfLimit=_,n.eachOfSeries=$e,n.eachSeries=Ue,n.ensureAsync=_n,n.every=Ne,n.everyLimit=Qe,n.everySeries=We,n.filter=Ge,n.filterLimit=He,n.filterSeries=Je,n.forever=$n,n.log=Ke,n.map=Wt,n.mapLimit=Ht,n.mapSeries=Jt,n.mapValues=Xe,n.mapValuesLimit=zn,n.mapValuesSeries=Ye,n.memoize=Mn,n.nextTick=Ze,n.parallel=qn,n.parallelLimit=Cn,n.priorityQueue=Pn,n.queue=Dn,n.race=Rn,n.reduce=mn,n.reduceRight=Un,n.reflect=Nn,n.reflectAll=Wn,n.reject=tr,n.rejectLimit=er,n.rejectSeries=rr,n.retry=Hn,n.retryable=Jn,n.seq=ze,n.series=Kn,n.setImmediate=Te,n.some=ur,n.someLimit=ir,n.someSeries=or,n.sortBy=Xn,n.timeout=Yn,n.times=ar,n.timesLimit=nt,n.timesSeries=lr,n.transform=tt,n.unmemoize=et,n.until=ut,n.waterfall=it,n.whilst=rt,n.all=Ne,n.allLimit=Qe,n.allSeries=We,n.any=ur,n.anyLimit=ir,n.anySeries=or,n.find=Ce,n.findLimit=De,n.findSeries=Pe,n.forEach=An,n.forEachSeries=Ue,n.forEachLimit=In,n.forEachOf=C,n.forEachOfSeries=$e,n.forEachOfLimit=_,n.inject=mn,n.foldl=mn,n.foldr=Un,n.select=Ge,n.selectLimit=He,n.selectSeries=Je,n.wrapSync=U}); //# sourceMappingURL=async.min.map
\ No newline at end of file diff --git a/dist/async.min.map b/dist/async.min.map index 1aa0840..2f0bafc 100644 --- a/dist/async.min.map +++ b/dist/async.min.map @@ -1 +1 @@ -{"version":3,"file":"build/dist/async.min.js","sources":["build/dist/async.js"],"names":["global","factory","exports","module","define","amd","async","this","apply","func","thisArg","args","length","call","isObject","value","type","isFunction","tag","objectToString","funcTag","genTag","isObjectLike","isSymbol","objectToString$1","symbolTag","toNumber","NAN","other","valueOf","replace","reTrim","isBinary","reIsBinary","test","reIsOctal","freeParseInt","slice","reIsBadHex","toFinite","INFINITY","sign","MAX_INTEGER","toInteger","result","remainder","rest","start","TypeError","FUNC_ERROR_TEXT","nativeMax","undefined","arguments","index","array","Array","otherArgs","initialParams","fn","callback","pop","applyEach$1","eachfn","fns","go","that","cb","concat","baseProperty","key","object","isLength","MAX_SAFE_INTEGER","isArrayLike","getLength","noop","once","callFn","getIterator","coll","iteratorSymbol","getPrototype","nativeGetPrototype","Object","baseHas","hasOwnProperty","baseKeys","nativeKeys","baseTimes","n","iteratee","isArrayLikeObject","isArguments","hasOwnProperty$1","propertyIsEnumerable","objectToString$2","argsTag","isString","isArray","objectToString$3","stringTag","indexKeys","String","isIndex","MAX_SAFE_INTEGER$1","reIsUint","isPrototype","Ctor","constructor","proto","prototype","objectProto$5","keys","isProto","indexes","skipIndexes","push","createArrayIterator","i","len","createES2015Iterator","iterator","item","next","done","createObjectIterator","obj","okeys","onlyOnce","Error","_eachOfLimit","limit","iterateeCallback","err","running","replenish","elem","nextElem","eachOfLimit","doLimit","iterable","before","FUNC_ERROR_TEXT$1","once$1","eachOfArrayLike","iteratorCallback","completed","eachOf","eachOfImplementation","eachOfGeneric","doParallel","_asyncMap","arr","results","counter","_","v","doParallelLimit","asyncify","e","then","message","arrayEach","createBaseFor","fromRight","keysFunc","props","baseForOwn","baseFor","indexOfNaN","fromIndex","baseIndexOf","auto","tasks","concurrency","enqueueTask","task","readyTasks","runTask","processQueue","runningTasks","run","shift","addListener","taskName","taskListeners","listeners","taskComplete","hasError","taskCallback","safeResults","val","rkey","taskFn","checkForDeadlocks","currentTask","readyToCheck","getDependents","dependent","uncheckedDependencies","numTasks","keys$$","dependencies","remainingDependencies","dependencyName","join","arrayMap","copyArray","source","checkGlobal","baseToString","symbolToString","INFINITY$1","baseSlice","end","castSlice","charsEndIndex","strSymbols","chrSymbols","charsStartIndex","stringToArray","string","match","reComplexSymbol","toString","trim","chars","guard","reTrim$1","parseParams","STRIP_COMMENTS","FN_ARGS","split","FN_ARG_SPLIT","map","arg","FN_ARG","autoInject","newTasks","newTask","taskCb","newArgs","params","name","fallback","setTimeout","wrap","defer","DLL","head","tail","setInitial","dll","node","queue","worker","payload","_insert","data","insertAtFront","q","started","idle","setImmediate$1","drain","_tasks","unshift","process","_next","workers","workersList","splice","error","buffer","unsaturated","saturated","empty","paused","kill","l","Math","min","pause","resume","resumeCount","w","cargo","reduce","memo","eachOfSeries","x","concat$1","y","doSeries","identity","_createTester","check","getResult","wrappedIteratee","_findGetResult","consoleFunc","console","doDuring","truth","doWhilst","doUntil","during","_withoutIndex","eachLimit","eachLimit$1","ensureAsync","sync","innerArgs","notId","_filter","sort","a","b","forever","errback","mapValuesLimit","newObj","has","memoize","hasher","create","queues","memoized","unmemoized","_parallel","parallelLimit","parallelLimit$1","queue$1","items","priorityQueue","priority","nextNode","insertBefore","race","reduceRight","reversed","reverse","reflect","reflectCallback","cbArgs","reject$1","reflectAll","constant$1","retry","opts","parseTimes","acc","t","times","DEFAULT_TIMES","intervalFunc","interval","DEFAULT_INTERVAL","retryAttempt","attempt","options","retryable","series","sortBy","comparator","left","right","criteria","timeout","asyncFn","milliseconds","info","injectedCallback","timedOut","originalCallback","clearTimeout","timer","timeoutCallback","code","origCallback","baseRange","step","nativeMax$1","nativeCeil","timeLimit","count","mapLimit","transform","accumulator","k","unmemoize","whilst","until","waterfall","nextTask","taskIndex","_defer","objectProto","objectProto$1","parseInt","max","Symbol","getPrototypeOf","objectProto$2","objectProto$3","objectProto$4","Infinity","applyEach","mapSeries","applyEachSeries","apply$1","callArgs","freeGlobal","freeSelf","self","thisGlobal","root","Function","Symbol$1","symbolProto","rsAstralRange","rsComboMarksRange","rsComboSymbolsRange","rsVarRange","rsAstral","rsCombo","rsFitz","rsModifier","rsNonAstral","rsRegional","rsSurrPair","rsZWJ","reOptMod","rsOptVar","rsOptJoin","rsSeq","rsSymbol","RegExp","hasSetImmediate","setImmediate","hasNextTick","nextTick","removeLink","prev","insertAfter","newNode","_defer$1","seq","functions","newargs","nextargs","compose","concatSeries","constant","values","ignoredArgs","detect","detectLimit","detectSeries","dir","eachSeries","every","everyLimit","everySeries","filter","filterLimit","filterSeries","log","mapValues","mapValuesSeries","reject","rejectLimit","rejectSeries","some","Boolean","someLimit","someSeries","ceil","timesSeries","each","parallel","timesLimit","all","any","forEach","forEachSeries","forEachLimit","forEachOf","forEachOfSeries","forEachOfLimit","inject","foldl","foldr","select","selectLimit","selectSeries","wrapSync","allLimit","allSeries","anyLimit","anySeries","find","findLimit","findSeries"],"mappings":"CAAC,SAAUA,EAAQC,GACI,gBAAZC,UAA0C,mBAAXC,QAAyBF,EAAQC,SACrD,kBAAXE,SAAyBA,OAAOC,IAAMD,QAAQ,WAAYH,GAChEA,EAASD,EAAOM,MAAQN,EAAOM,YAClCC,KAAM,SAAUL,GAAW,YAYzB,SAASM,GAAMC,EAAMC,EAASC,GAC5B,GAAIC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EAAQiV,YAAcA,GACtBjV,EAAQoV,QAAUA,GAClBpV,EAAQwV,WAAaA,GACrBxV,EAAQod,OAASA,GACjBpd,EAAQqd,YAAcA,GACtBrd,EAAQsd,aAAeA,GACvBtd,EAAQ0V,MAAQA,GAChB1V,EAAQuW,UAAYA,GACpBvW,EAAQ6b,IAAMA,GACd7b,EAAQwW,OAASA,GACjBxW,EAAQqb,aAAehL,GACvBrQ,EAAQud,KAAOA,GACfvd,EAAQyd,UAAYA,GACpBzd,EAAQ0d,WAAaA,GACrB1d,EAAQyW,OAASA,GACjBzW,EAAQ8W,QAAUA,GAClB9W,EAAQ+V,MAAQA,GAChB/V,EAAQ+d,WAAajG,GACrB9X,EAAQ4d,YAAcA,GACtB5d,EAAQiY,UAAYA,GACpBjY,EAAQoY,UAAYA,GACpBpY,EAAQsY,MAAQA,GAChBtY,EAAQuY,UAAYA,GACpBvY,EAAQqY,OAASA,GACjBrY,EAAQge,IAAMrB,GACd3c,EAAQ+e,SAAWnC,GACnB5c,EAAQgf,UAAYnC,GACpB7c,EAAQie,IAAMV,GACdvd,EAAQif,SAAWxB,GACnBzd,EAAQkf,UAAYxB,GACpB1d,EAAQmf,KAAO7C,GACftc,EAAQof,UAAY7C,GACpBvc,EAAQqf,WAAa7C,GACrBxc,EAAQke,QAAUhL,GAClBlT,EAAQme,cAAgBzB,GACxB1c,EAAQoe,aAAejL,GACvBnT,EAAQqe,UAAYpV,EACpBjJ,EAAQse,gBAAkBvM,GAC1B/R,EAAQue,eAAiB/V,EACzBxI,EAAQwe,OAAS3M,GACjB7R,EAAQye,MAAQ5M,GAChB7R,EAAQ0e,MAAQzJ,GAChBjV,EAAQ2e,OAAS7B,GACjB9c,EAAQ4e,YAAc7B,GACtB/c,EAAQ6e,aAAe7B,GACvBhd,EAAQ8e,SAAWlV"}
\ No newline at end of file +{"version":3,"file":"build/dist/async.min.js","sources":["build/dist/async.js"],"names":["global","factory","exports","module","define","amd","async","this","apply","func","thisArg","args","length","call","baseRest","start","nativeMax","undefined","arguments","index","array","Array","otherArgs","initialParams","fn","callback","pop","applyEach$1","eachfn","fns","go","that","cb","concat","baseProperty","key","object","isObject","value","type","isFunction","tag","objectToString","funcTag","genTag","isLength","MAX_SAFE_INTEGER","isArrayLike","getLength","noop","once","callFn","getIterator","coll","iteratorSymbol","overArg","transform","arg","baseHas","hasOwnProperty","getPrototype","baseTimes","n","iteratee","result","isObjectLike","isArrayLikeObject","isArguments","hasOwnProperty$1","propertyIsEnumerable","objectToString$1","argsTag","isString","isArray","objectToString$2","stringTag","indexKeys","String","isIndex","MAX_SAFE_INTEGER$1","reIsUint","test","isPrototype","Ctor","constructor","proto","prototype","objectProto$4","keys","isProto","baseKeys","indexes","skipIndexes","push","createArrayIterator","i","len","createES2015Iterator","iterator","item","next","done","createObjectIterator","obj","okeys","onlyOnce","Error","_eachOfLimit","limit","iterateeCallback","err","running","replenish","elem","nextElem","eachOfLimit","doLimit","iterable","isSymbol","objectToString$3","symbolTag","toNumber","NAN","other","valueOf","replace","reTrim","isBinary","reIsBinary","reIsOctal","freeParseInt","slice","reIsBadHex","toFinite","INFINITY","sign","MAX_INTEGER","toInteger","remainder","before","TypeError","FUNC_ERROR_TEXT","once$1","eachOfArrayLike","iteratorCallback","completed","eachOf","eachOfImplementation","eachOfGeneric","doParallel","_asyncMap","arr","results","counter","_","v","doParallelLimit","asyncify","e","then","message","arrayEach","createBaseFor","fromRight","keysFunc","Object","props","baseForOwn","baseFor","baseFindIndex","predicate","fromIndex","baseIsNaN","baseIndexOf","auto","tasks","concurrency","enqueueTask","task","readyTasks","runTask","processQueue","runningTasks","run","shift","addListener","taskName","taskListeners","listeners","taskComplete","hasError","taskCallback","safeResults","val","rkey","taskFn","checkForDeadlocks","currentTask","readyToCheck","getDependents","dependent","uncheckedDependencies","numTasks","keys$$","dependencies","remainingDependencies","dependencyName","join","arrayMap","copyArray","source","baseToString","symbolToString","INFINITY$1","baseSlice","end","castSlice","charsEndIndex","strSymbols","chrSymbols","charsStartIndex","stringToArray","string","match","reComplexSymbol","toString","trim","chars","guard","reTrim$1","parseParams","STRIP_COMMENTS","FN_ARGS","split","FN_ARG_SPLIT","map","FN_ARG","autoInject","newTasks","newTask","taskCb","newArgs","params","name","fallback","setTimeout","wrap","defer","DLL","head","tail","setInitial","dll","node","queue","worker","payload","_insert","data","insertAtFront","q","started","idle","setImmediate$1","drain","_tasks","unshift","process","_next","workers","workersList","splice","error","buffer","unsaturated","saturated","empty","paused","kill","l","Math","min","pause","resume","resumeCount","w","cargo","reduce","memo","eachOfSeries","x","concat$1","y","doSeries","identity","_createTester","check","getResult","wrappedIteratee","_findGetResult","consoleFunc","console","doDuring","truth","doWhilst","doUntil","during","_withoutIndex","eachLimit","eachLimit$1","ensureAsync","sync","innerArgs","notId","_filter","sort","a","b","forever","errback","mapValuesLimit","newObj","has","memoize","hasher","create","queues","memoized","unmemoized","_parallel","parallelLimit","parallelLimit$1","queue$1","items","priorityQueue","priority","nextNode","insertBefore","race","reduceRight","reversed","reverse","reflect","reflectCallback","cbArgs","reject$1","reflectAll","constant$1","retry","opts","parseTimes","acc","t","times","DEFAULT_TIMES","intervalFunc","interval","DEFAULT_INTERVAL","retryAttempt","attempt","options","retryable","series","sortBy","comparator","left","right","criteria","timeout","asyncFn","milliseconds","info","injectedCallback","timedOut","originalCallback","clearTimeout","timer","timeoutCallback","code","origCallback","baseRange","step","nativeMax$1","nativeCeil","timeLimit","count","mapLimit","accumulator","k","unmemoize","whilst","until","waterfall","nextTask","taskIndex","_defer","max","objectProto","Symbol","nativeGetPrototype","getPrototypeOf","objectProto$1","nativeKeys","objectProto$2","objectProto$3","objectProto$5","parseInt","Infinity","applyEach","mapSeries","applyEachSeries","apply$1","callArgs","freeGlobal","freeSelf","self","root","Function","Symbol$1","symbolProto","rsAstralRange","rsComboMarksRange","rsComboSymbolsRange","rsVarRange","rsAstral","rsCombo","rsFitz","rsModifier","rsNonAstral","rsRegional","rsSurrPair","rsZWJ","reOptMod","rsOptVar","rsOptJoin","rsSeq","rsSymbol","RegExp","hasSetImmediate","setImmediate","hasNextTick","nextTick","removeLink","prev","insertAfter","newNode","_defer$1","seq","functions","newargs","nextargs","compose","concatSeries","constant","values","ignoredArgs","detect","detectLimit","detectSeries","dir","eachSeries","every","everyLimit","everySeries","filter","filterLimit","filterSeries","log","mapValues","mapValuesSeries","reject","rejectLimit","rejectSeries","some","Boolean","someLimit","someSeries","ceil","timesSeries","each","parallel","timesLimit","all","any","forEach","forEachSeries","forEachLimit","forEachOf","forEachOfSeries","forEachOfLimit","inject","foldl","foldr","select","selectLimit","selectSeries","wrapSync","allLimit","allSeries","anyLimit","anySeries","find","findLimit","findSeries"],"mappings":"CAAC,SAAUA,EAAQC,GACI,gBAAZC,UAA0C,mBAAXC,QAAyBF,EAAQC,SACrD,kBAAXE,SAAyBA,OAAOC,IAAMD,QAAQ,WAAYH,GAChEA,EAASD,EAAOM,MAAQN,EAAOM,YAClCC,KAAM,SAAUL,GAAW,YAYzB,SAASM,GAAMC,EAAMC,EAASC,GAC5B,OAAQA,EAAKC,QACX,IAAK,GAAG,MAAOH,GAAKI,KAAKH,EACzB,KAAK,GAAG,MAAOD,GAAKI,KAAKH,EAASC,EAAK,GACvC,KAAK,GAAG,MAAOF,GAAKI,KAAKH,EAASC,EAAK,GAAIA,EAAK,GAChD,KAAK,GAAG,MAAOF,GAAKI,KAAKH,EAASC,EAAK,GAAIA,EAAK,GAAIA,EAAK,IAE3D,MAAOF,GAAKD,MAAME,EAASC,GAc7B,QAASG,GAASL,EAAMM,GAEtB,MADAA,GAAQC,GAAoBC,SAAVF,EAAuBN,EAAKG,OAAS,EAAKG,EAAO,GAC5D,WAML,IALA,GAAIJ,GAAOO,UACPC,EAAQ,GACRP,EAASI,GAAUL,EAAKC,OAASG,EAAO,GACxCK,EAAQC,MAAMT,KAETO,EAAQP,GACfQ,EAAMD,GAASR,EAAKI,EAAQI,EAE9BA,GAAQ,EAER,KADA,GAAIG,GAAYD,MAAMN,EAAQ,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L,GACvBnT,EAAQqe,UAAYrV,EACpBhJ,EAAQse,gBAAkBvM,GAC1B/R,EAAQue,eAAiBtX,EACzBjH,EAAQwe,OAAS3M,GACjB7R,EAAQye,MAAQ5M,GAChB7R,EAAQ0e,MAAQzJ,GAChBjV,EAAQ2e,OAAS7B,GACjB9c,EAAQ4e,YAAc7B,GACtB/c,EAAQ6e,aAAe7B,GACvBhd,EAAQ8e,SAAWnV"}
\ No newline at end of file diff --git a/lib/apply.js b/lib/apply.js index 465ed10..9ec7e25 100644 --- a/lib/apply.js +++ b/lib/apply.js @@ -1,4 +1,4 @@ -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; /** * Creates a continuation function with some arguments already applied. diff --git a/lib/auto.js b/lib/auto.js index a7c00ae..85135a3 100644 --- a/lib/auto.js +++ b/lib/auto.js @@ -4,7 +4,7 @@ import indexOf from 'lodash/_baseIndexOf'; import isArray from 'lodash/isArray'; import okeys from 'lodash/keys'; import noop from 'lodash/noop'; -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; import once from './internal/once'; import onlyOnce from './internal/onlyOnce'; diff --git a/lib/compose.js b/lib/compose.js index 9cec3a5..abb0f20 100644 --- a/lib/compose.js +++ b/lib/compose.js @@ -1,5 +1,5 @@ import seq from './seq'; -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; /** * Creates a function which is a composition of the passed asynchronous diff --git a/lib/constant.js b/lib/constant.js index c7dd50f..9aa2273 100644 --- a/lib/constant.js +++ b/lib/constant.js @@ -1,4 +1,4 @@ -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; import initialParams from './internal/initialParams'; /** diff --git a/lib/doDuring.js b/lib/doDuring.js index c536f30..306f8a7 100644 --- a/lib/doDuring.js +++ b/lib/doDuring.js @@ -1,5 +1,5 @@ import noop from 'lodash/noop'; -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; import onlyOnce from './internal/onlyOnce'; /** diff --git a/lib/doWhilst.js b/lib/doWhilst.js index ee8f12a..a0ba5d1 100644 --- a/lib/doWhilst.js +++ b/lib/doWhilst.js @@ -1,5 +1,5 @@ import noop from 'lodash/noop'; -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; import onlyOnce from './internal/onlyOnce'; diff --git a/lib/internal/applyEach.js b/lib/internal/applyEach.js index 50c359e..1d7a0b6 100644 --- a/lib/internal/applyEach.js +++ b/lib/internal/applyEach.js @@ -1,4 +1,4 @@ -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; import initialParams from './initialParams'; export default function applyEach(eachfn) { diff --git a/lib/internal/consoleFunc.js b/lib/internal/consoleFunc.js index ee4f1f1..e2d6150 100644 --- a/lib/internal/consoleFunc.js +++ b/lib/internal/consoleFunc.js @@ -1,5 +1,5 @@ import arrayEach from 'lodash/_arrayEach'; -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; export default function consoleFunc(name) { return rest(function (fn, args) { diff --git a/lib/internal/initialParams.js b/lib/internal/initialParams.js index 55c4e12..304fd23 100644 --- a/lib/internal/initialParams.js +++ b/lib/internal/initialParams.js @@ -1,4 +1,4 @@ -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; export default function (fn) { return rest(function (args/*..., callback*/) { diff --git a/lib/internal/parallel.js b/lib/internal/parallel.js index f835365..1b91b60 100644 --- a/lib/internal/parallel.js +++ b/lib/internal/parallel.js @@ -1,6 +1,6 @@ import noop from 'lodash/noop'; import isArrayLike from 'lodash/isArrayLike'; -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; export default function _parallel(eachfn, tasks, callback) { callback = callback || noop; diff --git a/lib/internal/queue.js b/lib/internal/queue.js index 41d6c90..5b5883d 100644 --- a/lib/internal/queue.js +++ b/lib/internal/queue.js @@ -1,7 +1,7 @@ import arrayEach from 'lodash/_arrayEach'; import isArray from 'lodash/isArray'; import noop from 'lodash/noop'; -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; import onlyOnce from './onlyOnce'; import setImmediate from './setImmediate'; diff --git a/lib/internal/setImmediate.js b/lib/internal/setImmediate.js index 1efa1a3..228c45c 100644 --- a/lib/internal/setImmediate.js +++ b/lib/internal/setImmediate.js @@ -1,6 +1,6 @@ 'use strict'; -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; export var hasSetImmediate = typeof setImmediate === 'function' && setImmediate; export var hasNextTick = typeof process === 'object' && typeof process.nextTick === 'function'; diff --git a/lib/memoize.js b/lib/memoize.js index 31c041c..b273153 100644 --- a/lib/memoize.js +++ b/lib/memoize.js @@ -1,5 +1,5 @@ import identity from 'lodash/identity'; -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; import setImmediate from './internal/setImmediate'; import initialParams from './internal/initialParams'; diff --git a/lib/reflect.js b/lib/reflect.js index ac5345d..a5ab9d9 100644 --- a/lib/reflect.js +++ b/lib/reflect.js @@ -1,5 +1,5 @@ import initialParams from './internal/initialParams'; -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; /** * Wraps the function in another function that always returns data even when it @@ -1,5 +1,5 @@ import noop from 'lodash/noop'; -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; import reduce from './reduce'; /** diff --git a/lib/waterfall.js b/lib/waterfall.js index b3f0dbc..3d2ba55 100644 --- a/lib/waterfall.js +++ b/lib/waterfall.js @@ -1,7 +1,7 @@ import isArray from 'lodash/isArray'; import noop from 'lodash/noop'; import once from './internal/once'; -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; import onlyOnce from './internal/onlyOnce'; diff --git a/lib/whilst.js b/lib/whilst.js index 9012144..31c5c82 100644 --- a/lib/whilst.js +++ b/lib/whilst.js @@ -1,5 +1,5 @@ import noop from 'lodash/noop'; -import rest from 'lodash/rest'; +import rest from 'lodash/_baseRest'; import onlyOnce from './internal/onlyOnce'; diff --git a/package.json b/package.json index 8ef40c2..a85fa04 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ "utility" ], "dependencies": { - "lodash": "^4.8.0", - "lodash-es": "^4.8.0" + "lodash": "^4.14.0", + "lodash-es": "^4.14.0" }, "devDependencies": { "babel-core": "^6.3.26", |