summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bower.json6
-rw-r--r--dist/async.js2571
-rw-r--r--dist/async.min.js2
-rw-r--r--dist/async.min.map2
-rw-r--r--package.json2
5 files changed, 1384 insertions, 1199 deletions
diff --git a/bower.json b/bower.json
index c708594..59a175e 100644
--- a/bower.json
+++ b/bower.json
@@ -25,8 +25,7 @@
"chai": "^3.1.0",
"coveralls": "^2.11.2",
"es6-promise": "^2.3.0",
- "fs-extra": "^0.26.3",
- "gulp": "~3.9.0",
+ "fs-extra": "^0.26.7",
"jscs": "^1.13.1",
"jshint": "~2.8.0",
"karma": "^0.13.2",
@@ -41,12 +40,11 @@
"recursive-readdir": "^1.3.0",
"rimraf": "^2.5.0",
"rollup": "^0.25.0",
+ "rollup-plugin-node-resolve": "^1.5.0",
"rollup-plugin-npm": "~1.3.0",
"rsvp": "^3.0.18",
"semver": "^4.3.6",
"uglify-js": "~2.4.0",
- "vinyl-buffer": "~1.0.0",
- "vinyl-source-stream": "~1.1.0",
"yargs": "~3.9.1"
},
"moduleType": [
diff --git a/dist/async.js b/dist/async.js
index 5aa8490..2062bea 100644
--- a/dist/async.js
+++ b/dist/async.js
@@ -31,6 +31,7 @@
*
* @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`.
@@ -69,9 +70,11 @@
*
* @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`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isFunction(_);
@@ -88,6 +91,69 @@
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;
@@ -111,6 +177,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to process.
* @returns {number} Returns the number.
@@ -129,12 +196,18 @@
* // => 3
*/
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;
+ return value === 0 ? value : +value;
}
value = value.replace(reTrim, '');
var isBinary = reIsBinary.test(value);
@@ -148,10 +221,12 @@
/**
* Converts `value` to an integer.
*
- * **Note:** This function is loosely based on [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
+ * **Note:** This function 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.
@@ -190,12 +265,15 @@
/**
* Creates a function that invokes `func` with the `this` binding of the
- * created function and arguments from `start` and beyond provided as an array.
+ * 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).
+ * **Note:** This method is based on the
+ * [rest parameter](https://mdn.io/rest_parameters).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Function
* @param {Function} func The function to apply a rest parameter to.
* @param {number} [start=func.length-1] The start position of the rest parameter.
@@ -242,7 +320,7 @@
function initialParams (fn) {
return rest(function (args /*..., callback*/) {
var callback = args.pop();
- fn(args, callback);
+ fn.call(this, args, callback);
});
}
@@ -250,7 +328,7 @@
return rest(function (fns, args) {
var go = initialParams(function (args, callback) {
var that = this;
- return eachfn(fns, function (fn, _, cb) {
+ return eachfn(fns, function (fn, cb) {
fn.apply(that, args.concat([cb]));
}, callback);
});
@@ -268,6 +346,7 @@
*
* @static
* @memberOf _
+ * @since 2.3.0
* @category Util
* @example
*
@@ -280,61 +359,12 @@
// No operation performed.
}
- /** Used as the `TypeError` message for "Functions" methods. */
- var FUNC_ERROR_TEXT$1 = 'Expected a function';
-
- /**
- * Creates a function that invokes `func`, with the `this` binding and arguments
- * of the created function, while it's called less than `n` times. Subsequent
- * calls to the created function return the result of the last `func` invocation.
- *
- * @static
- * @memberOf _
- * @category Function
- * @param {number} n The number of calls at which `func` is no longer invoked.
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * jQuery(element).on('click', _.before(5, addContactToList));
- * // => 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);
- }
- n = toInteger(n);
- return function() {
- if (--n > 0) {
- result = func.apply(this, arguments);
- }
- if (n <= 1) {
- func = undefined;
- }
- return result;
- };
- }
-
- /**
- * Creates a function that is restricted to invoking `func` once. Repeat calls
- * to the function return the value of the first invocation. The `func` is
- * invoked with the `this` binding and arguments of the created function.
- *
- * @static
- * @memberOf _
- * @category Function
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * var initialize = _.once(createApplication);
- * initialize();
- * initialize();
- * // `initialize` invokes `createApplication` once
- */
- function once(func) {
- return before(2, func);
+ function once(fn) {
+ return function () {
+ if (fn === null) return;
+ fn.apply(this, arguments);
+ fn = null;
+ };
}
/**
@@ -353,8 +383,9 @@
/**
* Gets the "length" property value of `object`.
*
- * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
- * that affects Safari on at least iOS 8.1-8.3 ARM64.
+ * **Note:** This function is used to avoid a
+ * [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
+ * Safari on at least iOS 8.1-8.3 ARM64.
*
* @private
* @param {Object} object The object to query.
@@ -368,13 +399,16 @@
/**
* Checks if `value` is a valid array-like length.
*
- * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
+ * **Note:** This function is loosely based on
+ * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a valid length,
+ * else `false`.
* @example
*
* _.isLength(3);
@@ -401,6 +435,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
@@ -428,14 +463,25 @@
return iteratorSymbol && coll[iteratorSymbol] && coll[iteratorSymbol]();
}
+ /* Built-in method references for those with the same name as other `lodash` methods. */
+ var nativeGetPrototype = Object.getPrototypeOf;
+
+ /**
+ * Gets the `[[Prototype]]` of `value`.
+ *
+ * @private
+ * @param {*} value The value to query.
+ * @returns {null|Object} Returns the `[[Prototype]]`.
+ */
+ function getPrototype(value) {
+ return nativeGetPrototype(Object(value));
+ }
+
/** Used for built-in method references. */
- var objectProto$1 = Object.prototype;
+ var objectProto$2 = Object.prototype;
/** Used to check objects for own properties. */
- var hasOwnProperty = objectProto$1.hasOwnProperty;
-
- /** Built-in value references. */
- var getPrototypeOf = Object.getPrototypeOf;
+ var hasOwnProperty = objectProto$2.hasOwnProperty;
/**
* The base implementation of `_.has` without support for deep paths.
@@ -450,7 +496,7 @@
// that are composed entirely of index properties, return `false` for
// `hasOwnProperty` checks of them.
return hasOwnProperty.call(object, key) ||
- (typeof object == 'object' && key in object && getPrototypeOf(object) === null);
+ (typeof object == 'object' && key in object && getPrototype(object) === null);
}
/* Built-in method references for those with the same name as other `lodash` methods. */
@@ -488,41 +534,16 @@
}
/**
- * 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 _
- * @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.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array-like object, else `false`.
+ * @returns {boolean} Returns `true` if `value` is an array-like object,
+ * else `false`.
* @example
*
* _.isArrayLikeObject([1, 2, 3]);
@@ -545,28 +566,30 @@
var argsTag = '[object Arguments]';
/** Used for built-in method references. */
- var objectProto$2 = Object.prototype;
+ var objectProto$3 = Object.prototype;
/** Used to check objects for own properties. */
- var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
+ var hasOwnProperty$1 = objectProto$3.hasOwnProperty;
/**
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
- var objectToString$1 = objectProto$2.toString;
+ var objectToString$2 = objectProto$3.toString;
/** Built-in value references. */
- var propertyIsEnumerable = objectProto$2.propertyIsEnumerable;
+ var propertyIsEnumerable = objectProto$3.propertyIsEnumerable;
/**
* Checks if `value` is likely an `arguments` 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`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isArguments(function() { return arguments; }());
@@ -578,7 +601,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$1.call(value) == argsTag);
+ (!propertyIsEnumerable.call(value, 'callee') || objectToString$2.call(value) == argsTag);
}
/**
@@ -586,10 +609,12 @@
*
* @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 correctly classified,
+ * else `false`.
* @example
*
* _.isArray([1, 2, 3]);
@@ -610,22 +635,24 @@
var stringTag = '[object String]';
/** Used for built-in method references. */
- var objectProto$3 = Object.prototype;
+ var objectProto$4 = Object.prototype;
/**
* 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$3 = objectProto$4.toString;
/**
* Checks if `value` is classified as a `String` primitive or object.
*
* @static
+ * @since 0.1.0
* @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 correctly classified,
+ * else `false`.
* @example
*
* _.isString('abc');
@@ -636,7 +663,7 @@
*/
function isString(value) {
return typeof value == 'string' ||
- (!isArray(value) && isObjectLike(value) && objectToString$2.call(value) == stringTag);
+ (!isArray(value) && isObjectLike(value) && objectToString$3.call(value) == stringTag);
}
/**
@@ -677,7 +704,7 @@
}
/** Used for built-in method references. */
- var objectProto$4 = Object.prototype;
+ var objectProto$5 = Object.prototype;
/**
* Checks if `value` is likely a prototype object.
@@ -688,7 +715,7 @@
*/
function isPrototype(value) {
var Ctor = value && value.constructor,
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$4;
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$5;
return value === proto;
}
@@ -701,6 +728,7 @@
* for more details.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
@@ -819,23 +847,41 @@
};
}
- function eachOfLimit(obj, limit, iteratee, cb) {
- _eachOfLimit(limit)(obj, iteratee, cb);
+ function doParallelLimit(fn) {
+ return function (obj, limit, iteratee, callback) {
+ return fn(_eachOfLimit(limit), obj, iteratee, callback);
+ };
+ }
+
+ function _asyncMap(eachfn, arr, iteratee, callback) {
+ callback = once(callback || noop);
+ arr = arr || [];
+ var results = isArrayLike(arr) || getIterator(arr) ? [] : {};
+ eachfn(arr, function (value, index, callback) {
+ iteratee(value, function (err, v) {
+ results[index] = v;
+ callback(err);
+ });
+ }, function (err) {
+ callback(err, results);
+ });
}
+ var mapLimit = doParallelLimit(_asyncMap);
+
function doLimit(fn, limit) {
return function (iterable, iteratee, callback) {
return fn(iterable, limit, iteratee, callback);
};
}
- var eachOf = doLimit(eachOfLimit, Infinity);
+ var map = doLimit(mapLimit, Infinity);
- var applyEach = applyEach$1(eachOf);
+ var applyEach = applyEach$1(map);
- var eachOfSeries = doLimit(eachOfLimit, 1);
+ var mapSeries = doLimit(mapLimit, 1);
- var applyEachSeries = applyEach$1(eachOfSeries);
+ var applyEachSeries = applyEach$1(mapSeries);
var apply$1 = rest(function (fn, args) {
return rest(function (callArgs) {
@@ -886,37 +932,7 @@
}
/**
- * This method returns the first argument given to it.
- *
- * @static
- * @memberOf _
- * @category Util
- * @param {*} value Any value.
- * @returns {*} Returns `value`.
- * @example
- *
- * var object = { 'user': 'fred' };
- *
- * _.identity(object) === object;
- * // => true
- */
- function identity(value) {
- return value;
- }
-
- /**
- * Casts `value` to `identity` if it's not a function.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {Array} Returns the array-like object.
- */
- function baseCastFunction(value) {
- return typeof value == 'function' ? value : identity;
- }
-
- /**
- * Creates a base function for methods like `_.forIn`.
+ * Creates a base function for methods like `_.forIn` and `_.forOwn`.
*
* @private
* @param {boolean} [fromRight] Specify iterating from right to left.
@@ -940,10 +956,9 @@
}
/**
- * The base implementation of `baseForIn` and `baseForOwn` which iterates
- * over `object` properties returned by `keysFunc` invoking `iteratee` for
- * each property. Iteratee functions may exit iteration early by explicitly
- * returning `false`.
+ * The base implementation of `baseForOwn` which iterates over `object`
+ * properties returned by `keysFunc` invoking `iteratee` for each property.
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
*
* @private
* @param {Object} object The object to iterate over.
@@ -966,267 +981,6 @@
}
/**
- * Iterates over own enumerable properties of an object invoking `iteratee`
- * for each property. The iteratee is invoked with three arguments:
- * (value, key, object). Iteratee functions may exit iteration early by
- * explicitly returning `false`.
- *
- * @static
- * @memberOf _
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forOwn(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => logs 'a' then 'b' (iteration order is not guaranteed)
- */
- function forOwn(object, iteratee) {
- return object && baseForOwn(object, baseCastFunction(iteratee));
- }
-
- /**
- * Gets the index at which the first occurrence of `NaN` is found in `array`.
- *
- * @private
- * @param {Array} array The array to search.
- * @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`.
- */
- function indexOfNaN(array, fromIndex, fromRight) {
- var length = array.length,
- index = fromIndex + (fromRight ? 0 : -1);
-
- while ((fromRight ? index-- : ++index < length)) {
- var other = array[index];
- if (other !== other) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function baseIndexOf(array, value, fromIndex) {
- if (value !== value) {
- return indexOfNaN(array, fromIndex);
- }
- var index = fromIndex - 1,
- length = array.length;
-
- while (++index < length) {
- if (array[index] === value) {
- return index;
- }
- }
- return -1;
- }
-
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeMax$1 = Math.max;
-
- /**
- * Gets the index at which the first occurrence of `value` is found in `array`
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons. If `fromIndex` is negative, it's used as the offset
- * from the end of `array`.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.indexOf([1, 2, 1, 2], 2);
- * // => 1
- *
- * // Search from the `fromIndex`.
- * _.indexOf([1, 2, 1, 2], 2, 2);
- * // => 3
- */
- function indexOf(array, value, fromIndex) {
- var length = array ? array.length : 0;
- if (!length) {
- return -1;
- }
- fromIndex = toInteger(fromIndex);
- if (fromIndex < 0) {
- fromIndex = nativeMax$1(length + fromIndex, 0);
- }
- return baseIndexOf(array, value, fromIndex);
- }
-
- function auto (tasks, concurrency, callback) {
- if (typeof concurrency === 'function') {
- // concurrency is optional, shift the args.
- callback = concurrency;
- concurrency = null;
- }
- callback = once(callback || noop);
- var keys$$ = keys(tasks);
- var numTasks = keys$$.length;
- if (!numTasks) {
- return callback(null);
- }
- if (!concurrency) {
- concurrency = numTasks;
- }
-
- var results = {};
- var runningTasks = 0;
- var hasError = false;
-
- var listeners = {};
-
- var readyTasks = [];
-
- forOwn(tasks, function (task, key) {
- if (!isArray(task)) {
- // no dependencies
- enqueueTask(key, [task]);
- return;
- }
-
- var dependencies = task.slice(0, task.length - 1);
- var remainingDependencies = dependencies.length;
-
- checkForDeadlocks();
-
- function checkForDeadlocks() {
- var len = dependencies.length;
- var dep;
- while (len--) {
- if (!(dep = tasks[dependencies[len]])) {
- throw new Error('async.auto task `' + key + '` has non-existent dependency in ' + dependencies.join(', '));
- }
- if (isArray(dep) && indexOf(dep, key) >= 0) {
- throw new Error('async.auto task `' + key + '`Has cyclic dependencies');
- }
- }
- }
-
- arrayEach(dependencies, function (dependencyName) {
- addListener(dependencyName, function () {
- remainingDependencies--;
- if (remainingDependencies === 0) {
- enqueueTask(key, task);
- }
- });
- });
- });
-
- processQueue();
-
- function enqueueTask(key, task) {
- readyTasks.push(function () {
- runTask(key, task);
- });
- }
-
- function processQueue() {
- if (readyTasks.length === 0 && runningTasks === 0) {
- return callback(null, results);
- }
- while (readyTasks.length && runningTasks < concurrency) {
- var run = readyTasks.shift();
- run();
- }
- }
-
- function addListener(taskName, fn) {
- var taskListeners = listeners[taskName];
- if (!taskListeners) {
- taskListeners = listeners[taskName] = [];
- }
-
- taskListeners.push(fn);
- }
-
- function taskComplete(taskName) {
- var taskListeners = listeners[taskName] || [];
- arrayEach(taskListeners, function (fn) {
- fn();
- });
- processQueue();
- }
-
- function runTask(key, task) {
- if (hasError) return;
-
- var taskCallback = onlyOnce(rest(function (err, args) {
- runningTasks--;
- if (args.length <= 1) {
- args = args[0];
- }
- if (err) {
- var safeResults = {};
- forOwn(results, function (val, rkey) {
- safeResults[rkey] = val;
- });
- safeResults[key] = args;
- hasError = true;
- listeners = [];
-
- callback(err, safeResults);
- } else {
- results[key] = args;
- taskComplete(key);
- }
- }));
-
- runningTasks++;
- var taskFn = task[task.length - 1];
- if (task.length > 1) {
- taskFn(results, taskCallback);
- } else {
- taskFn(taskCallback);
- }
- }
- }
-
- /**
- * A specialized version of `_.map` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
- function arrayMap(array, iteratee) {
- var index = -1,
- length = array.length,
- result = Array(length);
-
- while (++index < length) {
- result[index] = iteratee(array[index], index, array);
- }
- return result;
- }
-
- /**
* Removes all key-value entries from the stack.
*
* @private
@@ -1238,11 +992,13 @@
}
/**
- * Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
+ * Performs a
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* comparison between two values to determine if they are equivalent.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
@@ -1272,8 +1028,7 @@
}
/**
- * Gets the index at which the first occurrence of `key` is found in `array`
- * of key-value pairs.
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
*
* @private
* @param {Array} array The array to search.
@@ -1300,7 +1055,7 @@
* Removes `key` and its value from the associative array.
*
* @private
- * @param {Array} array The array to query.
+ * @param {Array} array The array to modify.
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
@@ -1413,17 +1168,17 @@
/** Used to match `RegExp` [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns). */
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
- /** Used to detect host constructors (Safari > 5). */
+ /** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;
/** Used for built-in method references. */
- var objectProto$6 = Object.prototype;
+ var objectProto$7 = Object.prototype;
/** Used to resolve the decompiled source of functions. */
var funcToString = Function.prototype.toString;
/** Used to check objects for own properties. */
- var hasOwnProperty$2 = objectProto$6.hasOwnProperty;
+ var hasOwnProperty$2 = objectProto$7.hasOwnProperty;
/** Used to detect if a method is native. */
var reIsNative = RegExp('^' +
@@ -1436,9 +1191,11 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a native function, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a native function,
+ * else `false`.
* @example
*
* _.isNative(Array.prototype.push);
@@ -1475,7 +1232,7 @@
var nativeCreate = getNative(Object, 'create');
/** Used for built-in method references. */
- var objectProto$5 = Object.prototype;
+ var objectProto$6 = Object.prototype;
/**
* Creates an hash object.
@@ -1487,7 +1244,7 @@
function Hash() {}
// Avoid inheriting from `Object.prototype` when possible.
- Hash.prototype = nativeCreate ? nativeCreate(null) : objectProto$5;
+ Hash.prototype = nativeCreate ? nativeCreate(null) : objectProto$6;
/**
* Checks if `value` is a global object.
@@ -1557,10 +1314,10 @@
}
/** Used for built-in method references. */
- var objectProto$7 = Object.prototype;
+ var objectProto$8 = Object.prototype;
/** Used to check objects for own properties. */
- var hasOwnProperty$3 = objectProto$7.hasOwnProperty;
+ var hasOwnProperty$3 = objectProto$8.hasOwnProperty;
/**
* Checks if a hash value for `key` exists.
@@ -1620,10 +1377,10 @@
var HASH_UNDEFINED = '__lodash_hash_undefined__';
/** Used for built-in method references. */
- var objectProto$8 = Object.prototype;
+ var objectProto$9 = Object.prototype;
/** Used to check objects for own properties. */
- var hasOwnProperty$4 = objectProto$8.hasOwnProperty;
+ var hasOwnProperty$4 = objectProto$9.hasOwnProperty;
/**
* Gets the hash value for `key`.
@@ -1715,7 +1472,7 @@
* @memberOf MapCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
- * @returns {Object} Returns the map cache object.
+ * @returns {Object} Returns the map cache instance.
*/
function mapSet(key, value) {
var data = this.__data__;
@@ -1747,7 +1504,7 @@
}
}
- // Add functions to the `MapCache`.
+ // Add methods to `MapCache`.
MapCache.prototype.clear = mapClear;
MapCache.prototype['delete'] = mapDelete;
MapCache.prototype.get = mapGet;
@@ -1765,7 +1522,7 @@
* @memberOf Stack
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
- * @returns {Object} Returns the stack cache object.
+ * @returns {Object} Returns the stack cache instance.
*/
function stackSet(key, value) {
var data = this.__data__,
@@ -1804,155 +1561,332 @@
}
}
- // Add functions to the `Stack` cache.
+ // Add methods to `Stack`.
Stack.prototype.clear = stackClear;
Stack.prototype['delete'] = stackDelete;
Stack.prototype.get = stackGet;
Stack.prototype.has = stackHas;
Stack.prototype.set = stackSet;
- /** Used for built-in method references. */
- var objectProto$9 = Object.prototype;
-
- /** Used to check objects for own properties. */
- var hasOwnProperty$5 = objectProto$9.hasOwnProperty;
-
/**
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
+ * A specialized version of `_.some` for arrays without support for iteratee
+ * shorthands.
*
* @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
+ * @param {Array} array The array to iterate over.
+ * @param {Function} predicate The function invoked per iteration.
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
+ * else `false`.
*/
- function assignValue(object, key, value) {
- var objValue = object[key];
- if (!(hasOwnProperty$5.call(object, key) && eq(objValue, value)) ||
- (value === undefined && !(key in object))) {
- object[key] = value;
+ function arraySome(array, predicate) {
+ var index = -1,
+ length = array.length;
+
+ while (++index < length) {
+ if (predicate(array[index], index, array)) {
+ return true;
+ }
}
+ return false;
}
+ var UNORDERED_COMPARE_FLAG$1 = 1;
+ var PARTIAL_COMPARE_FLAG$2 = 2;
/**
- * This function is like `copyObject` except that it accepts a function to
- * customize copied values.
+ * A specialized version of `baseIsEqualDeep` for arrays with support for
+ * partial deep comparisons.
*
* @private
- * @param {Object} source The object to copy properties from.
- * @param {Array} props The property names to copy.
- * @param {Object} [object={}] The object to copy properties to.
- * @param {Function} [customizer] The function to customize copied values.
- * @returns {Object} Returns `object`.
+ * @param {Array} array The array to compare.
+ * @param {Array} other The other array to compare.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
+ * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
*/
- function copyObjectWith(source, props, object, customizer) {
- object || (object = {});
-
+ function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {
var index = -1,
- length = props.length;
-
- while (++index < length) {
- var key = props[index];
-
- var newValue = customizer
- ? customizer(object[key], source[key], key, object, source)
- : source[key];
+ isPartial = bitmask & PARTIAL_COMPARE_FLAG$2,
+ isUnordered = bitmask & UNORDERED_COMPARE_FLAG$1,
+ arrLength = array.length,
+ othLength = other.length;
- assignValue(object, key, newValue);
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
+ return false;
+ }
+ // Assume cyclic values are equal.
+ var stacked = stack.get(array);
+ if (stacked) {
+ return stacked == other;
+ }
+ var result = true;
+ stack.set(array, other);
+
+ // Ignore non-index properties.
+ while (++index < arrLength) {
+ var arrValue = array[index],
+ othValue = other[index];
+
+ if (customizer) {
+ var compared = isPartial
+ ? customizer(othValue, arrValue, index, other, array, stack)
+ : customizer(arrValue, othValue, index, array, other, stack);
+ }
+ if (compared !== undefined) {
+ if (compared) {
+ continue;
+ }
+ result = false;
+ break;
+ }
+ // Recursively compare arrays (susceptible to call stack limits).
+ if (isUnordered) {
+ if (!arraySome(other, function(othValue) {
+ return arrValue === othValue ||
+ equalFunc(arrValue, othValue, customizer, bitmask, stack);
+ })) {
+ result = false;
+ break;
+ }
+ } else if (!(
+ arrValue === othValue ||
+ equalFunc(arrValue, othValue, customizer, bitmask, stack)
+ )) {
+ result = false;
+ break;
+ }
}
- return object;
+ stack['delete'](array);
+ return result;
}
- /**
- * Copies properties of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy properties from.
- * @param {Array} props The property names to copy.
- * @param {Object} [object={}] The object to copy properties to.
- * @returns {Object} Returns `object`.
- */
- function copyObject(source, props, object) {
- return copyObjectWith(source, props, object);
- }
+ /** Built-in value references. */
+ var Symbol$1 = root.Symbol;
+
+ /** Built-in value references. */
+ var Uint8Array = root.Uint8Array;
/**
- * The base implementation of `_.assign` without support for multiple sources
- * or `customizer` functions.
+ * Converts `map` to an array.
*
* @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @returns {Object} Returns `object`.
+ * @param {Object} map The map to convert.
+ * @returns {Array} Returns the converted array.
*/
- function baseAssign(object, source) {
- return object && copyObject(source, keys(source), object);
+ function mapToArray(map) {
+ var index = -1,
+ result = Array(map.size);
+
+ map.forEach(function(value, key) {
+ result[++index] = [key, value];
+ });
+ return result;
}
/**
- * Creates a clone of `buffer`.
+ * Converts `set` to an array.
*
* @private
- * @param {Buffer} buffer The buffer to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Buffer} Returns the cloned buffer.
+ * @param {Object} set The set to convert.
+ * @returns {Array} Returns the converted array.
*/
- function cloneBuffer(buffer, isDeep) {
- if (isDeep) {
- return buffer.slice();
- }
- var result = new buffer.constructor(buffer.length);
- buffer.copy(result);
+ function setToArray(set) {
+ var index = -1,
+ result = Array(set.size);
+
+ set.forEach(function(value) {
+ result[++index] = value;
+ });
return result;
}
+ var UNORDERED_COMPARE_FLAG$2 = 1;
+ var PARTIAL_COMPARE_FLAG$3 = 2;
+ var boolTag = '[object Boolean]';
+ var dateTag = '[object Date]';
+ var errorTag = '[object Error]';
+ var mapTag = '[object Map]';
+ var numberTag = '[object Number]';
+ var regexpTag = '[object RegExp]';
+ var setTag = '[object Set]';
+ var stringTag$1 = '[object String]';
+ var symbolTag$1 = '[object Symbol]';
+ var arrayBufferTag = '[object ArrayBuffer]';
+ var dataViewTag = '[object DataView]';
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined;
+ var symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
/**
- * Copies the values of `source` to `array`.
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
+ * the same `toStringTag`.
+ *
+ * **Note:** This function only supports comparing values with tags of
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
*
* @private
- * @param {Array} source The array to copy values from.
- * @param {Array} [array=[]] The array to copy values to.
- * @returns {Array} Returns `array`.
+ * @param {Object} object The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {string} tag The `toStringTag` of the objects to compare.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
- function copyArray(source, array) {
- var index = -1,
- length = source.length;
+ function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
+ switch (tag) {
+ case dataViewTag:
+ if ((object.byteLength != other.byteLength) ||
+ (object.byteOffset != other.byteOffset)) {
+ return false;
+ }
+ object = object.buffer;
+ other = other.buffer;
- array || (array = Array(length));
- while (++index < length) {
- array[index] = source[index];
+ case arrayBufferTag:
+ if ((object.byteLength != other.byteLength) ||
+ !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
+ return false;
+ }
+ return true;
+
+ case boolTag:
+ case dateTag:
+ // Coerce dates and booleans to numbers, dates to milliseconds and
+ // booleans to `1` or `0` treating invalid dates coerced to `NaN` as
+ // not equal.
+ return +object == +other;
+
+ case errorTag:
+ return object.name == other.name && object.message == other.message;
+
+ case numberTag:
+ // Treat `NaN` vs. `NaN` as equal.
+ return (object != +object) ? other != +other : object == +other;
+
+ case regexpTag:
+ case stringTag$1:
+ // Coerce regexes to strings and treat strings, primitives and objects,
+ // as equal. See https://es5.github.io/#x15.10.6.4 for more details.
+ return object == (other + '');
+
+ case mapTag:
+ var convert = mapToArray;
+
+ case setTag:
+ var isPartial = bitmask & PARTIAL_COMPARE_FLAG$3;
+ convert || (convert = setToArray);
+
+ if (object.size != other.size && !isPartial) {
+ return false;
+ }
+ // Assume cyclic values are equal.
+ var stacked = stack.get(object);
+ if (stacked) {
+ return stacked == other;
+ }
+ bitmask |= UNORDERED_COMPARE_FLAG$2;
+ stack.set(object, other);
+
+ // Recursively compare objects (susceptible to call stack limits).
+ return equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack);
+
+ case symbolTag$1:
+ if (symbolValueOf) {
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
+ }
}
- return array;
+ return false;
}
- /** Built-in value references. */
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
+ /** Used to compose bitmasks for comparison styles. */
+ var PARTIAL_COMPARE_FLAG$4 = 2;
/**
- * Creates an array of the own symbol properties of `object`.
+ * A specialized version of `baseIsEqualDeep` for objects with support for
+ * partial deep comparisons.
*
* @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of symbols.
+ * @param {Object} object The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
- var getSymbols = getOwnPropertySymbols || function() {
- return [];
- };
-
- /**
- * Copies own symbol properties of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy symbols from.
- * @param {Object} [object={}] The object to copy symbols to.
- * @returns {Object} Returns `object`.
- */
- function copySymbols(source, object) {
- return copyObject(source, getSymbols(source), object);
+ function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
+ var isPartial = bitmask & PARTIAL_COMPARE_FLAG$4,
+ objProps = keys(object),
+ objLength = objProps.length,
+ othProps = keys(other),
+ othLength = othProps.length;
+
+ if (objLength != othLength && !isPartial) {
+ return false;
+ }
+ var index = objLength;
+ while (index--) {
+ var key = objProps[index];
+ if (!(isPartial ? key in other : baseHas(other, key))) {
+ return false;
+ }
+ }
+ // Assume cyclic values are equal.
+ var stacked = stack.get(object);
+ if (stacked) {
+ return stacked == other;
+ }
+ var result = true;
+ stack.set(object, other);
+
+ var skipCtor = isPartial;
+ while (++index < objLength) {
+ key = objProps[index];
+ var objValue = object[key],
+ othValue = other[key];
+
+ if (customizer) {
+ var compared = isPartial
+ ? customizer(othValue, objValue, key, other, object, stack)
+ : customizer(objValue, othValue, key, object, other, stack);
+ }
+ // Recursively compare objects (susceptible to call stack limits).
+ if (!(compared === undefined
+ ? (objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack))
+ : compared
+ )) {
+ result = false;
+ break;
+ }
+ skipCtor || (skipCtor = key == 'constructor');
+ }
+ if (result && !skipCtor) {
+ var objCtor = object.constructor,
+ othCtor = other.constructor;
+
+ // Non `Object` object instances with different constructors are not equal.
+ if (objCtor != othCtor &&
+ ('constructor' in object && 'constructor' in other) &&
+ !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
+ typeof othCtor == 'function' && othCtor instanceof othCtor)) {
+ result = false;
+ }
+ }
+ stack['delete'](object);
+ return result;
}
/* Built-in method references that are verified to be native. */
+ var DataView = getNative(root, 'DataView');
+
+ /* Built-in method references that are verified to be native. */
+ var Promise = getNative(root, 'Promise');
+
+ /* Built-in method references that are verified to be native. */
var Set = getNative(root, 'Set');
/* Built-in method references that are verified to be native. */
@@ -1960,10 +1894,13 @@
var mapTag$1 = '[object Map]';
var objectTag$1 = '[object Object]';
+ var promiseTag = '[object Promise]';
var setTag$1 = '[object Set]';
- var weakMapTag$1 = '[object WeakMap]';
+ var weakMapTag = '[object WeakMap]';
+ var dataViewTag$1 = '[object DataView]';
+
/** Used for built-in method references. */
- var objectProto$10 = Object.prototype;
+ var objectProto$11 = Object.prototype;
/** Used to resolve the decompiled source of functions. */
var funcToString$1 = Function.prototype.toString;
@@ -1972,10 +1909,12 @@
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
- var objectToString$3 = objectProto$10.toString;
+ var objectToString$4 = objectProto$11.toString;
/** Used to detect maps, sets, and weakmaps. */
+ var dataViewCtorString = DataView ? (DataView + '') : '';
var mapCtorString = Map ? funcToString$1.call(Map) : '';
+ var promiseCtorString = Promise ? funcToString$1.call(Promise) : '';
var setCtorString = Set ? funcToString$1.call(Set) : '';
var weakMapCtorString = WeakMap ? funcToString$1.call(WeakMap) : '';
/**
@@ -1986,23 +1925,28 @@
* @returns {string} Returns the `toStringTag`.
*/
function getTag(value) {
- return objectToString$3.call(value);
+ return objectToString$4.call(value);
}
- // Fallback for IE 11 providing `toStringTag` values for maps, sets, and weakmaps.
- if ((Map && getTag(new Map) != mapTag$1) ||
+ // Fallback for data views, maps, sets, and weak maps in IE 11,
+ // for data views in Edge, and promises in Node.js.
+ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$1) ||
+ (Map && getTag(new Map) != mapTag$1) ||
+ (Promise && getTag(Promise.resolve()) != promiseTag) ||
(Set && getTag(new Set) != setTag$1) ||
- (WeakMap && getTag(new WeakMap) != weakMapTag$1)) {
+ (WeakMap && getTag(new WeakMap) != weakMapTag)) {
getTag = function(value) {
- var result = objectToString$3.call(value),
+ var result = objectToString$4.call(value),
Ctor = result == objectTag$1 ? value.constructor : null,
ctorString = typeof Ctor == 'function' ? funcToString$1.call(Ctor) : '';
if (ctorString) {
switch (ctorString) {
+ case dataViewCtorString: return dataViewTag$1;
case mapCtorString: return mapTag$1;
+ case promiseCtorString: return promiseTag;
case setCtorString: return setTag$1;
- case weakMapCtorString: return weakMapTag$1;
+ case weakMapCtorString: return weakMapTag;
}
}
return result;
@@ -2011,467 +1955,962 @@
var getTag$1 = getTag;
+ var argsTag$2 = '[object Arguments]';
+ var arrayTag$1 = '[object Array]';
+ var boolTag$1 = '[object Boolean]';
+ var dateTag$1 = '[object Date]';
+ var errorTag$1 = '[object Error]';
+ var funcTag$1 = '[object Function]';
+ var mapTag$2 = '[object Map]';
+ var numberTag$1 = '[object Number]';
+ var objectTag$2 = '[object Object]';
+ var regexpTag$1 = '[object RegExp]';
+ var setTag$2 = '[object Set]';
+ var stringTag$2 = '[object String]';
+ var weakMapTag$1 = '[object WeakMap]';
+ var arrayBufferTag$1 = '[object ArrayBuffer]';
+ var dataViewTag$2 = '[object DataView]';
+ var float32Tag = '[object Float32Array]';
+ var float64Tag = '[object Float64Array]';
+ var int8Tag = '[object Int8Array]';
+ var int16Tag = '[object Int16Array]';
+ var int32Tag = '[object Int32Array]';
+ var uint8Tag = '[object Uint8Array]';
+ var uint8ClampedTag = '[object Uint8ClampedArray]';
+ var uint16Tag = '[object Uint16Array]';
+ var uint32Tag = '[object Uint32Array]';
+ /** Used to identify `toStringTag` values of typed arrays. */
+ var typedArrayTags = {};
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
+ typedArrayTags[uint32Tag] = true;
+ typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$1] =
+ typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] =
+ typedArrayTags[dataViewTag$2] = typedArrayTags[dateTag$1] =
+ typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] =
+ typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] =
+ typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$1] =
+ typedArrayTags[setTag$2] = typedArrayTags[stringTag$2] =
+ typedArrayTags[weakMapTag$1] = false;
+
/** Used for built-in method references. */
- var objectProto$11 = Object.prototype;
+ var objectProto$12 = Object.prototype;
+
+ /**
+ * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * of values.
+ */
+ var objectToString$5 = objectProto$12.toString;
+
+ /**
+ * Checks if `value` is classified as a typed array.
+ *
+ * @static
+ * @memberOf _
+ * @since 3.0.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
+ * @example
+ *
+ * _.isTypedArray(new Uint8Array);
+ * // => true
+ *
+ * _.isTypedArray([]);
+ * // => false
+ */
+ function isTypedArray(value) {
+ return isObjectLike(value) &&
+ isLength(value.length) && !!typedArrayTags[objectToString$5.call(value)];
+ }
+
+ /** Used to compose bitmasks for comparison styles. */
+ var PARTIAL_COMPARE_FLAG$1 = 2;
+
+ /** `Object#toString` result references. */
+ var argsTag$1 = '[object Arguments]';
+ var arrayTag = '[object Array]';
+ var objectTag = '[object Object]';
+ /** Used for built-in method references. */
+ var objectProto$10 = Object.prototype;
/** Used to check objects for own properties. */
- var hasOwnProperty$6 = objectProto$11.hasOwnProperty;
+ var hasOwnProperty$5 = objectProto$10.hasOwnProperty;
/**
- * Initializes an array clone.
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
+ * deep comparisons and tracks traversed objects enabling objects with circular
+ * references to be compared.
*
* @private
- * @param {Array} array The array to clone.
- * @returns {Array} Returns the initialized clone.
+ * @param {Object} object The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Function} [customizer] The function to customize comparisons.
+ * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
+ * @param {Object} [stack] Tracks traversed `object` and `other` objects.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
- function initCloneArray(array) {
- var length = array.length,
- result = array.constructor(length);
+ function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {
+ var objIsArr = isArray(object),
+ othIsArr = isArray(other),
+ objTag = arrayTag,
+ othTag = arrayTag;
+
+ if (!objIsArr) {
+ objTag = getTag$1(object);
+ objTag = objTag == argsTag$1 ? objectTag : objTag;
+ }
+ if (!othIsArr) {
+ othTag = getTag$1(other);
+ othTag = othTag == argsTag$1 ? objectTag : othTag;
+ }
+ var objIsObj = objTag == objectTag && !isHostObject(object),
+ othIsObj = othTag == objectTag && !isHostObject(other),
+ isSameTag = objTag == othTag;
+
+ if (isSameTag && !objIsObj) {
+ stack || (stack = new Stack);
+ return (objIsArr || isTypedArray(object))
+ ? equalArrays(object, other, equalFunc, customizer, bitmask, stack)
+ : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack);
+ }
+ if (!(bitmask & PARTIAL_COMPARE_FLAG$1)) {
+ var objIsWrapped = objIsObj && hasOwnProperty$5.call(object, '__wrapped__'),
+ othIsWrapped = othIsObj && hasOwnProperty$5.call(other, '__wrapped__');
- // Add properties assigned by `RegExp#exec`.
- if (length && typeof array[0] == 'string' && hasOwnProperty$6.call(array, 'index')) {
- result.index = array.index;
- result.input = array.input;
+ if (objIsWrapped || othIsWrapped) {
+ var objUnwrapped = objIsWrapped ? object.value() : object,
+ othUnwrapped = othIsWrapped ? other.value() : other;
+
+ stack || (stack = new Stack);
+ return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack);
+ }
}
- return result;
+ if (!isSameTag) {
+ return false;
+ }
+ stack || (stack = new Stack);
+ return equalObjects(object, other, equalFunc, customizer, bitmask, stack);
}
- /** Built-in value references. */
- var Uint8Array = root.Uint8Array;
+ /**
+ * The base implementation of `_.isEqual` which supports partial comparisons
+ * and tracks traversed objects.
+ *
+ * @private
+ * @param {*} value The value to compare.
+ * @param {*} other The other value to compare.
+ * @param {Function} [customizer] The function to customize comparisons.
+ * @param {boolean} [bitmask] The bitmask of comparison flags.
+ * The bitmask may be composed of the following flags:
+ * 1 - Unordered comparison
+ * 2 - Partial comparison
+ * @param {Object} [stack] Tracks traversed `value` and `other` objects.
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ */
+ function baseIsEqual(value, other, customizer, bitmask, stack) {
+ if (value === other) {
+ return true;
+ }
+ if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {
+ return value !== value && other !== other;
+ }
+ return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack);
+ }
+ var UNORDERED_COMPARE_FLAG = 1;
+ var PARTIAL_COMPARE_FLAG = 2;
/**
- * Creates a clone of `arrayBuffer`.
+ * The base implementation of `_.isMatch` without support for iteratee shorthands.
*
* @private
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
- * @returns {ArrayBuffer} Returns the cloned array buffer.
+ * @param {Object} object The object to inspect.
+ * @param {Object} source The object of property values to match.
+ * @param {Array} matchData The property names, values, and compare flags to match.
+ * @param {Function} [customizer] The function to customize comparisons.
+ * @returns {boolean} Returns `true` if `object` is a match, else `false`.
*/
- function cloneArrayBuffer(arrayBuffer) {
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
- return result;
+ function baseIsMatch(object, source, matchData, customizer) {
+ var index = matchData.length,
+ length = index,
+ noCustomizer = !customizer;
+
+ if (object == null) {
+ return !length;
+ }
+ object = Object(object);
+ while (index--) {
+ var data = matchData[index];
+ if ((noCustomizer && data[2])
+ ? data[1] !== object[data[0]]
+ : !(data[0] in object)
+ ) {
+ return false;
+ }
+ }
+ while (++index < length) {
+ data = matchData[index];
+ var key = data[0],
+ objValue = object[key],
+ srcValue = data[1];
+
+ if (noCustomizer && data[2]) {
+ if (objValue === undefined && !(key in object)) {
+ return false;
+ }
+ } else {
+ var stack = new Stack;
+ if (customizer) {
+ var result = customizer(objValue, srcValue, key, object, source, stack);
+ }
+ if (!(result === undefined
+ ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack)
+ : result
+ )) {
+ return false;
+ }
+ }
+ }
+ return true;
}
/**
- * Adds the key-value `pair` to `map`.
+ * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
*
* @private
- * @param {Object} map The map to modify.
- * @param {Array} pair The key-value pair to add.
- * @returns {Object} Returns `map`.
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` if suitable for strict
+ * equality comparisons, else `false`.
*/
- function addMapEntry(map, pair) {
- // Don't return `Map#set` because it doesn't return the map instance in IE 11.
- map.set(pair[0], pair[1]);
- return map;
+ function isStrictComparable(value) {
+ return value === value && !isObject(value);
}
/**
- * A specialized version of `_.reduce` for arrays without support for
- * iteratee shorthands.
+ * A specialized version of `_.map` for arrays without support for iteratee
+ * shorthands.
*
* @private
* @param {Array} array The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the first element of `array` as the initial value.
- * @returns {*} Returns the accumulated value.
+ * @returns {Array} Returns the new mapped array.
*/
- function arrayReduce(array, iteratee, accumulator, initAccum) {
+ function arrayMap(array, iteratee) {
var index = -1,
- length = array.length;
+ length = array.length,
+ result = Array(length);
- if (initAccum && length) {
- accumulator = array[++index];
- }
while (++index < length) {
- accumulator = iteratee(accumulator, array[index], index, array);
+ result[index] = iteratee(array[index], index, array);
}
- return accumulator;
+ return result;
}
/**
- * Converts `map` to an array.
+ * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
+ * of key-value pairs for `object` corresponding to the property names of `props`.
*
* @private
- * @param {Object} map The map to convert.
- * @returns {Array} Returns the converted array.
+ * @param {Object} object The object to query.
+ * @param {Array} props The property names to get values for.
+ * @returns {Object} Returns the new array of key-value pairs.
*/
- function mapToArray(map) {
- var index = -1,
- result = Array(map.size);
-
- map.forEach(function(value, key) {
- result[++index] = [key, value];
+ function baseToPairs(object, props) {
+ return arrayMap(props, function(key) {
+ return [key, object[key]];
});
- return result;
}
/**
- * Creates a clone of `map`.
+ * Creates an array of own enumerable string keyed-value pairs for `object`
+ * which can be consumed by `_.fromPairs`.
*
- * @private
- * @param {Object} map The map to clone.
- * @returns {Object} Returns the cloned map.
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @alias entries
+ * @category Object
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the new array of key-value pairs.
+ * @example
+ *
+ * function Foo() {
+ * this.a = 1;
+ * this.b = 2;
+ * }
+ *
+ * Foo.prototype.c = 3;
+ *
+ * _.toPairs(new Foo);
+ * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
*/
- function cloneMap(map) {
- return arrayReduce(mapToArray(map), addMapEntry, new map.constructor);
+ function toPairs(object) {
+ return baseToPairs(object, keys(object));
}
- /** Used to match `RegExp` flags from their coerced string values. */
- var reFlags = /\w*$/;
-
/**
- * Creates a clone of `regexp`.
+ * Gets the property names, values, and compare flags of `object`.
*
* @private
- * @param {Object} regexp The regexp to clone.
- * @returns {Object} Returns the cloned regexp.
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the match data of `object`.
*/
- function cloneRegExp(regexp) {
- var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
- result.lastIndex = regexp.lastIndex;
+ function getMatchData(object) {
+ var result = toPairs(object),
+ length = result.length;
+
+ while (length--) {
+ result[length][2] = isStrictComparable(result[length][1]);
+ }
return result;
}
/**
- * Adds `value` to `set`.
+ * The base implementation of `_.matches` which doesn't clone `source`.
*
* @private
- * @param {Object} set The set to modify.
- * @param {*} value The value to add.
- * @returns {Object} Returns `set`.
+ * @param {Object} source The object of property values to match.
+ * @returns {Function} Returns the new function.
*/
- function addSetEntry(set, value) {
- set.add(value);
- return set;
+ function baseMatches(source) {
+ var matchData = getMatchData(source);
+ if (matchData.length == 1 && matchData[0][2]) {
+ var key = matchData[0][0],
+ value = matchData[0][1];
+
+ return function(object) {
+ if (object == null) {
+ return false;
+ }
+ return object[key] === value &&
+ (value !== undefined || (key in Object(object)));
+ };
+ }
+ return function(object) {
+ return object === source || baseIsMatch(object, source, matchData);
+ };
}
+ /** Used as the `TypeError` message for "Functions" methods. */
+ var FUNC_ERROR_TEXT$1 = 'Expected a function';
+
/**
- * Converts `set` to an array.
+ * Creates a function that memoizes the result of `func`. If `resolver` is
+ * provided it determines the cache key for storing the result based on the
+ * arguments provided to the memoized function. By default, the first argument
+ * provided to the memoized function is used as the map cache key. The `func`
+ * is invoked with the `this` binding of the memoized function.
+ *
+ * **Note:** The cache is exposed as the `cache` property on the memoized
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
+ * constructor with one whose instances implement the
+ * [`Map`](http://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-map-prototype-object)
+ * method interface of `delete`, `get`, `has`, and `set`.
*
- * @private
- * @param {Object} set The set to convert.
- * @returns {Array} Returns the converted array.
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Function
+ * @param {Function} func The function to have its output memoized.
+ * @param {Function} [resolver] The function to resolve the cache key.
+ * @returns {Function} Returns the new memoizing function.
+ * @example
+ *
+ * var object = { 'a': 1, 'b': 2 };
+ * var other = { 'c': 3, 'd': 4 };
+ *
+ * var values = _.memoize(_.values);
+ * values(object);
+ * // => [1, 2]
+ *
+ * values(other);
+ * // => [3, 4]
+ *
+ * object.a = 2;
+ * values(object);
+ * // => [1, 2]
+ *
+ * // Modify the result cache.
+ * values.cache.set(object, ['a', 'b']);
+ * values(object);
+ * // => ['a', 'b']
+ *
+ * // Replace `_.memoize.Cache`.
+ * _.memoize.Cache = WeakMap;
*/
- function setToArray(set) {
- var index = -1,
- result = Array(set.size);
+ function memoize(func, resolver) {
+ if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
+ throw new TypeError(FUNC_ERROR_TEXT$1);
+ }
+ var memoized = function() {
+ var args = arguments,
+ key = resolver ? resolver.apply(this, args) : args[0],
+ cache = memoized.cache;
- set.forEach(function(value) {
- result[++index] = value;
- });
- return result;
+ if (cache.has(key)) {
+ return cache.get(key);
+ }
+ var result = func.apply(this, args);
+ memoized.cache = cache.set(key, result);
+ return result;
+ };
+ memoized.cache = new (memoize.Cache || MapCache);
+ return memoized;
}
+ // Assign cache to `_.memoize`.
+ memoize.Cache = MapCache;
+
+ /** Used as references for various `Number` constants. */
+ var INFINITY$1 = 1 / 0;
+
+ /** Used to convert symbols to primitives and strings. */
+ var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : undefined;
+ var symbolToString = symbolProto$1 ? symbolProto$1.toString : undefined;
/**
- * Creates a clone of `set`.
+ * Converts `value` to a string if it's not one. An empty string is returned
+ * for `null` and `undefined` values. The sign of `-0` is preserved.
*
- * @private
- * @param {Object} set The set to clone.
- * @returns {Object} Returns the cloned set.
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to process.
+ * @returns {string} Returns the string.
+ * @example
+ *
+ * _.toString(null);
+ * // => ''
+ *
+ * _.toString(-0);
+ * // => '-0'
+ *
+ * _.toString([1, 2, 3]);
+ * // => '1,2,3'
*/
- function cloneSet(set) {
- return arrayReduce(setToArray(set), addSetEntry, new set.constructor);
+ function toString(value) {
+ // Exit early for strings to avoid a performance hit in some environments.
+ if (typeof value == 'string') {
+ return value;
+ }
+ if (value == null) {
+ return '';
+ }
+ if (isSymbol(value)) {
+ return symbolToString ? symbolToString.call(value) : '';
+ }
+ var result = (value + '');
+ return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
}
- /** Built-in value references. */
- var Symbol$1 = root.Symbol;
+ /** Used to match property names within property paths. */
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g;
+
+ /** Used to match backslashes in property paths. */
+ var reEscapeChar = /\\(\\)?/g;
+
+ /**
+ * Converts `string` to a property path array.
+ *
+ * @private
+ * @param {string} string The string to convert.
+ * @returns {Array} Returns the property path array.
+ */
+ var stringToPath = memoize(function(string) {
+ var result = [];
+ toString(string).replace(rePropName, function(match, number, quote, string) {
+ result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
+ });
+ return result;
+ });
- var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined;
- var symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
/**
- * Creates a clone of the `symbol` object.
+ * Casts `value` to a path array if it's not one.
*
* @private
- * @param {Object} symbol The symbol object to clone.
- * @returns {Object} Returns the cloned symbol object.
+ * @param {*} value The value to inspect.
+ * @returns {Array} Returns the cast property path array.
*/
- function cloneSymbol(symbol) {
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
+ function baseCastPath(value) {
+ return isArray(value) ? value : stringToPath(value);
}
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
+ var reIsPlainProp = /^\w*$/;
/**
- * Creates a clone of `typedArray`.
+ * Checks if `value` is a property name and not a property path.
*
* @private
- * @param {Object} typedArray The typed array to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned typed array.
+ * @param {*} value The value to check.
+ * @param {Object} [object] The object to query keys on.
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
*/
- function cloneTypedArray(typedArray, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
+ function isKey(value, object) {
+ var type = typeof value;
+ if (type == 'number' || type == 'symbol') {
+ return true;
+ }
+ return !isArray(value) &&
+ (isSymbol(value) || reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
+ (object != null && value in Object(object)));
}
- var boolTag$1 = '[object Boolean]';
- var dateTag$1 = '[object Date]';
- var mapTag$2 = '[object Map]';
- var numberTag$1 = '[object Number]';
- var regexpTag$1 = '[object RegExp]';
- var setTag$2 = '[object Set]';
- var stringTag$2 = '[object String]';
- var symbolTag$1 = '[object Symbol]';
- var arrayBufferTag$1 = '[object ArrayBuffer]';
- var float32Tag$1 = '[object Float32Array]';
- var float64Tag$1 = '[object Float64Array]';
- var int8Tag$1 = '[object Int8Array]';
- var int16Tag$1 = '[object Int16Array]';
- var int32Tag$1 = '[object Int32Array]';
- var uint8Tag$1 = '[object Uint8Array]';
- var uint8ClampedTag$1 = '[object Uint8ClampedArray]';
- var uint16Tag$1 = '[object Uint16Array]';
- var uint32Tag$1 = '[object Uint32Array]';
- /**
- * Initializes an object clone based on its `toStringTag`.
- *
- * **Note:** This function only supports cloning values with tags of
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
+ /**
+ * The base implementation of `_.get` without support for default values.
*
* @private
- * @param {Object} object The object to clone.
- * @param {string} tag The `toStringTag` of the object to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the initialized clone.
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path of the property to get.
+ * @returns {*} Returns the resolved value.
*/
- function initCloneByTag(object, tag, isDeep) {
- var Ctor = object.constructor;
- switch (tag) {
- case arrayBufferTag$1:
- return cloneArrayBuffer(object);
+ function baseGet(object, path) {
+ path = isKey(path, object) ? [path] : baseCastPath(path);
- case boolTag$1:
- case dateTag$1:
- return new Ctor(+object);
+ var index = 0,
+ length = path.length;
- case float32Tag$1: case float64Tag$1:
- case int8Tag$1: case int16Tag$1: case int32Tag$1:
- case uint8Tag$1: case uint8ClampedTag$1: case uint16Tag$1: case uint32Tag$1:
- return cloneTypedArray(object, isDeep);
+ while (object != null && index < length) {
+ object = object[path[index++]];
+ }
+ return (index && index == length) ? object : undefined;
+ }
- case mapTag$2:
- return cloneMap(object);
+ /**
+ * Gets the value at `path` of `object`. If the resolved value is
+ * `undefined` the `defaultValue` is used in its place.
+ *
+ * @static
+ * @memberOf _
+ * @since 3.7.0
+ * @category Object
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path of the property to get.
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
+ * @returns {*} Returns the resolved value.
+ * @example
+ *
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
+ *
+ * _.get(object, 'a[0].b.c');
+ * // => 3
+ *
+ * _.get(object, ['a', '0', 'b', 'c']);
+ * // => 3
+ *
+ * _.get(object, 'a.b.c', 'default');
+ * // => 'default'
+ */
+ function get(object, path, defaultValue) {
+ var result = object == null ? undefined : baseGet(object, path);
+ return result === undefined ? defaultValue : result;
+ }
- case numberTag$1:
- case stringTag$2:
- return new Ctor(object);
+ /**
+ * The base implementation of `_.hasIn` without support for deep paths.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Array|string} key The key to check.
+ * @returns {boolean} Returns `true` if `key` exists, else `false`.
+ */
+ function baseHasIn(object, key) {
+ return key in Object(object);
+ }
- case regexpTag$1:
- return cloneRegExp(object);
+ /**
+ * Checks if `path` exists on `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path to check.
+ * @param {Function} hasFunc The function to check properties.
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
+ */
+ function hasPath(object, path, hasFunc) {
+ if (object == null) {
+ return false;
+ }
+ var result = hasFunc(object, path);
+ if (!result && !isKey(path)) {
+ path = baseCastPath(path);
- case setTag$2:
- return cloneSet(object);
+ var index = -1,
+ length = path.length;
- case symbolTag$1:
- return cloneSymbol(object);
+ while (object != null && ++index < length) {
+ var key = path[index];
+ if (!(result = hasFunc(object, key))) {
+ break;
+ }
+ object = object[key];
+ }
}
+ var length = object ? object.length : undefined;
+ return result || (
+ !!length && isLength(length) && isIndex(path, length) &&
+ (isArray(object) || isString(object) || isArguments(object))
+ );
}
- /** Built-in value references. */
- var objectCreate = Object.create;
-
/**
- * The base implementation of `_.create` without support for assigning
- * properties to the created object.
+ * Checks if `path` is a direct or inherited property of `object`.
*
- * @private
- * @param {Object} prototype The object to inherit from.
- * @returns {Object} Returns the new object.
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Object
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path to check.
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
+ * @example
+ *
+ * var object = _.create({ 'a': _.create({ 'b': _.create({ 'c': 3 }) }) });
+ *
+ * _.hasIn(object, 'a');
+ * // => true
+ *
+ * _.hasIn(object, 'a.b.c');
+ * // => true
+ *
+ * _.hasIn(object, ['a', 'b', 'c']);
+ * // => true
+ *
+ * _.hasIn(object, 'b');
+ * // => false
*/
- function baseCreate(proto) {
- return isObject(proto) ? objectCreate(proto) : {};
+ function hasIn(object, path) {
+ return hasPath(object, path, baseHasIn);
}
- /** Built-in value references. */
- var getPrototypeOf$1 = Object.getPrototypeOf;
-
+ var UNORDERED_COMPARE_FLAG$3 = 1;
+ var PARTIAL_COMPARE_FLAG$5 = 2;
/**
- * Initializes an object clone.
+ * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
*
* @private
- * @param {Object} object The object to clone.
- * @returns {Object} Returns the initialized clone.
+ * @param {string} path The path of the property to get.
+ * @param {*} srcValue The value to match.
+ * @returns {Function} Returns the new function.
*/
- function initCloneObject(object) {
- return (typeof object.constructor == 'function' && !isPrototype(object))
- ? baseCreate(getPrototypeOf$1(object))
- : {};
+ function baseMatchesProperty(path, srcValue) {
+ return function(object) {
+ var objValue = get(object, path);
+ return (objValue === undefined && objValue === srcValue)
+ ? hasIn(object, path)
+ : baseIsEqual(srcValue, objValue, undefined, UNORDERED_COMPARE_FLAG$3 | PARTIAL_COMPARE_FLAG$5);
+ };
}
/**
- * Creates a function that returns `value`.
+ * This method returns the first argument given to it.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
- * @param {*} value The value to return from the new function.
- * @returns {Function} Returns the new function.
+ * @param {*} value Any value.
+ * @returns {*} Returns `value`.
* @example
*
* var object = { 'user': 'fred' };
- * var getter = _.constant(object);
*
- * getter() === object;
+ * _.identity(object) === object;
* // => true
*/
- function constant(value) {
- return function() {
- return value;
- };
+ function identity(value) {
+ return value;
}
- /** Used to determine if values are of the language type `Object`. */
- var objectTypes$1 = {
- 'function': true,
- 'object': true
- };
-
- /** Detect free variable `exports`. */
- var freeExports$1 = (objectTypes$1[typeof exports] && exports && !exports.nodeType)
- ? exports
- : undefined;
-
- /** Detect free variable `module`. */
- var freeModule$1 = (objectTypes$1[typeof module] && module && !module.nodeType)
- ? module
- : undefined;
+ /**
+ * A specialized version of `baseProperty` which supports deep paths.
+ *
+ * @private
+ * @param {Array|string} path The path of the property to get.
+ * @returns {Function} Returns the new function.
+ */
+ function basePropertyDeep(path) {
+ return function(object) {
+ return baseGet(object, path);
+ };
+ }
- /** Detect the popular CommonJS extension `module.exports`. */
- var moduleExports = (freeModule$1 && freeModule$1.exports === freeExports$1)
- ? freeExports$1
- : undefined;
+ /**
+ * Creates a function that returns the value at `path` of a given object.
+ *
+ * @static
+ * @memberOf _
+ * @since 2.4.0
+ * @category Util
+ * @param {Array|string} path The path of the property to get.
+ * @returns {Function} Returns the new function.
+ * @example
+ *
+ * var objects = [
+ * { 'a': { 'b': { 'c': 2 } } },
+ * { 'a': { 'b': { 'c': 1 } } }
+ * ];
+ *
+ * _.map(objects, _.property('a.b.c'));
+ * // => [2, 1]
+ *
+ * _.map(_.sortBy(objects, _.property(['a', 'b', 'c'])), 'a.b.c');
+ * // => [1, 2]
+ */
+ function property(path) {
+ return isKey(path) ? baseProperty(path) : basePropertyDeep(path);
+ }
- /** Built-in value references. */
- var Buffer = moduleExports ? root.Buffer : undefined;
+ /**
+ * The base implementation of `_.iteratee`.
+ *
+ * @private
+ * @param {*} [value=_.identity] The value to convert to an iteratee.
+ * @returns {Function} Returns the iteratee.
+ */
+ function baseIteratee(value) {
+ // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
+ // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
+ if (typeof value == 'function') {
+ return value;
+ }
+ if (value == null) {
+ return identity;
+ }
+ if (typeof value == 'object') {
+ return isArray(value)
+ ? baseMatchesProperty(value[0], value[1])
+ : baseMatches(value);
+ }
+ return property(value);
+ }
/**
- * Checks if `value` is a buffer.
+ * Iterates over own enumerable string keyed properties of an object invoking
+ * `iteratee` for each property. The iteratee is invoked with three arguments:
+ * (value, key, object). Iteratee functions may exit iteration early by
+ * explicitly returning `false`.
*
* @static
* @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
+ * @since 0.3.0
+ * @category Object
+ * @param {Object} object The object to iterate over.
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
+ * @returns {Object} Returns `object`.
* @example
*
- * _.isBuffer(new Buffer(2));
- * // => true
+ * function Foo() {
+ * this.a = 1;
+ * this.b = 2;
+ * }
*
- * _.isBuffer(new Uint8Array(2));
- * // => false
+ * Foo.prototype.c = 3;
+ *
+ * _.forOwn(new Foo, function(value, key) {
+ * console.log(key);
+ * });
+ * // => Logs 'a' then 'b' (iteration order is not guaranteed).
*/
- var isBuffer = !Buffer ? constant(false) : function(value) {
- return value instanceof Buffer;
- };
+ function forOwn(object, iteratee) {
+ return object && baseForOwn(object, baseIteratee(iteratee));
+ }
- var argsTag$1 = '[object Arguments]';
- var arrayTag = '[object Array]';
- var boolTag = '[object Boolean]';
- var dateTag = '[object Date]';
- var errorTag = '[object Error]';
- var funcTag$1 = '[object Function]';
- var genTag$1 = '[object GeneratorFunction]';
- var mapTag = '[object Map]';
- var numberTag = '[object Number]';
- var objectTag = '[object Object]';
- var regexpTag = '[object RegExp]';
- var setTag = '[object Set]';
- var stringTag$1 = '[object String]';
- var symbolTag = '[object Symbol]';
- var weakMapTag = '[object WeakMap]';
- var arrayBufferTag = '[object ArrayBuffer]';
- var float32Tag = '[object Float32Array]';
- var float64Tag = '[object Float64Array]';
- var int8Tag = '[object Int8Array]';
- var int16Tag = '[object Int16Array]';
- var int32Tag = '[object Int32Array]';
- var uint8Tag = '[object Uint8Array]';
- var uint8ClampedTag = '[object Uint8ClampedArray]';
- var uint16Tag = '[object Uint16Array]';
- var uint32Tag = '[object Uint32Array]';
- /** Used to identify `toStringTag` values supported by `_.clone`. */
- var cloneableTags = {};
- cloneableTags[argsTag$1] = cloneableTags[arrayTag] =
- cloneableTags[arrayBufferTag] = cloneableTags[boolTag] =
- cloneableTags[dateTag] = cloneableTags[float32Tag] =
- cloneableTags[float64Tag] = cloneableTags[int8Tag] =
- cloneableTags[int16Tag] = cloneableTags[int32Tag] =
- cloneableTags[mapTag] = cloneableTags[numberTag] =
- cloneableTags[objectTag] = cloneableTags[regexpTag] =
- cloneableTags[setTag] = cloneableTags[stringTag$1] =
- cloneableTags[symbolTag] = cloneableTags[uint8Tag] =
- cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] =
- cloneableTags[uint32Tag] = true;
- cloneableTags[errorTag] = cloneableTags[funcTag$1] =
- cloneableTags[weakMapTag] = false;
-
- /**
- * The base implementation of `_.clone` and `_.cloneDeep` which tracks
- * traversed objects.
- *
- * @private
- * @param {*} value The value to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @param {boolean} [isFull] Specify a clone including symbols.
- * @param {Function} [customizer] The function to customize cloning.
- * @param {string} [key] The key of `value`.
- * @param {Object} [object] The parent object of `value`.
- * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
- * @returns {*} Returns the cloned value.
- */
- function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
- var result;
- if (customizer) {
- result = object ? customizer(value, key, object, stack) : customizer(value);
- }
- if (result !== undefined) {
- return result;
+ /**
+ * Gets the index at which the first occurrence of `NaN` is found in `array`.
+ *
+ * @private
+ * @param {Array} array The array to search.
+ * @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`.
+ */
+ function indexOfNaN(array, fromIndex, fromRight) {
+ var length = array.length,
+ index = fromIndex + (fromRight ? 0 : -1);
+
+ while ((fromRight ? index-- : ++index < length)) {
+ var other = array[index];
+ if (other !== other) {
+ return index;
+ }
}
- if (!isObject(value)) {
- return value;
+ return -1;
+ }
+
+ /**
+ * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
+ *
+ * @private
+ * @param {Array} array The array to search.
+ * @param {*} value The value to search for.
+ * @param {number} fromIndex The index to search from.
+ * @returns {number} Returns the index of the matched value, else `-1`.
+ */
+ function baseIndexOf(array, value, fromIndex) {
+ if (value !== value) {
+ return indexOfNaN(array, fromIndex);
}
- var isArr = isArray(value);
- if (isArr) {
- result = initCloneArray(value);
- if (!isDeep) {
- return copyArray(value, result);
+ var index = fromIndex - 1,
+ length = array.length;
+
+ while (++index < length) {
+ if (array[index] === value) {
+ return index;
}
- } else {
- var tag = getTag$1(value),
- isFunc = tag == funcTag$1 || tag == genTag$1;
+ }
+ return -1;
+ }
- if (isBuffer(value)) {
- return cloneBuffer(value, isDeep);
+ function auto (tasks, concurrency, callback) {
+ if (typeof concurrency === 'function') {
+ // concurrency is optional, shift the args.
+ callback = concurrency;
+ concurrency = null;
}
- if (tag == objectTag || tag == argsTag$1 || (isFunc && !object)) {
- if (isHostObject(value)) {
- return object ? value : {};
- }
- result = initCloneObject(isFunc ? {} : value);
- if (!isDeep) {
- result = baseAssign(result, value);
- return isFull ? copySymbols(value, result) : result;
- }
- } else {
- if (!cloneableTags[tag]) {
- return object ? value : {};
- }
- result = initCloneByTag(value, tag, isDeep);
+ callback = once(callback || noop);
+ var keys$$ = keys(tasks);
+ var numTasks = keys$$.length;
+ if (!numTasks) {
+ return callback(null);
+ }
+ if (!concurrency) {
+ concurrency = numTasks;
}
- }
- // Check for circular references and return its corresponding clone.
- stack || (stack = new Stack);
- var stacked = stack.get(value);
- if (stacked) {
- return stacked;
- }
- stack.set(value, result);
- // Recursively populate clone (susceptible to call stack limits).
- (isArr ? arrayEach : baseForOwn)(value, function(subValue, key) {
- assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));
- });
- return (isFull && !isArr) ? copySymbols(value, result) : result;
+ var results = {};
+ var runningTasks = 0;
+ var hasError = false;
+
+ var listeners = {};
+
+ var readyTasks = [];
+
+ forOwn(tasks, function (task, key) {
+ if (!isArray(task)) {
+ // no dependencies
+ enqueueTask(key, [task]);
+ return;
+ }
+
+ var dependencies = task.slice(0, task.length - 1);
+ var remainingDependencies = dependencies.length;
+
+ checkForDeadlocks();
+
+ function checkForDeadlocks() {
+ var len = dependencies.length;
+ var dep;
+ while (len--) {
+ if (!(dep = tasks[dependencies[len]])) {
+ throw new Error('async.auto task `' + key + '` has non-existent dependency in ' + dependencies.join(', '));
+ }
+ if (isArray(dep) && baseIndexOf(dep, key, 0) >= 0) {
+ throw new Error('async.auto task `' + key + '`Has cyclic dependencies');
+ }
+ }
+ }
+
+ arrayEach(dependencies, function (dependencyName) {
+ addListener(dependencyName, function () {
+ remainingDependencies--;
+ if (remainingDependencies === 0) {
+ enqueueTask(key, task);
+ }
+ });
+ });
+ });
+
+ processQueue();
+
+ function enqueueTask(key, task) {
+ readyTasks.push(function () {
+ runTask(key, task);
+ });
+ }
+
+ function processQueue() {
+ if (readyTasks.length === 0 && runningTasks === 0) {
+ return callback(null, results);
+ }
+ while (readyTasks.length && runningTasks < concurrency) {
+ var run = readyTasks.shift();
+ run();
+ }
+ }
+
+ function addListener(taskName, fn) {
+ var taskListeners = listeners[taskName];
+ if (!taskListeners) {
+ taskListeners = listeners[taskName] = [];
+ }
+
+ taskListeners.push(fn);
+ }
+
+ function taskComplete(taskName) {
+ var taskListeners = listeners[taskName] || [];
+ arrayEach(taskListeners, function (fn) {
+ fn();
+ });
+ processQueue();
+ }
+
+ function runTask(key, task) {
+ if (hasError) return;
+
+ var taskCallback = onlyOnce(rest(function (err, args) {
+ runningTasks--;
+ if (args.length <= 1) {
+ args = args[0];
+ }
+ if (err) {
+ var safeResults = {};
+ forOwn(results, function (val, rkey) {
+ safeResults[rkey] = val;
+ });
+ safeResults[key] = args;
+ hasError = true;
+ listeners = [];
+
+ callback(err, safeResults);
+ } else {
+ results[key] = args;
+ taskComplete(key);
+ }
+ }));
+
+ runningTasks++;
+ var taskFn = task[task.length - 1];
+ if (task.length > 1) {
+ taskFn(results, taskCallback);
+ } else {
+ taskFn(taskCallback);
+ }
+ }
+ }
+
+ /**
+ * Copies the values of `source` to `array`.
+ *
+ * @private
+ * @param {Array} source The array to copy values from.
+ * @param {Array} [array=[]] The array to copy values to.
+ * @returns {Array} Returns `array`.
+ */
+ function copyArray(source, array) {
+ var index = -1,
+ length = source.length;
+
+ array || (array = Array(length));
+ while (++index < length) {
+ array[index] = source[index];
+ }
+ return array;
}
var argsRegex = /^function\s*[^\(]*\(\s*([^\)]*)\)/m;
@@ -2487,7 +2926,7 @@
var params;
if (isArray(taskFn)) {
- params = baseClone(taskFn);
+ params = copyArray(taskFn);
taskFn = params.pop();
newTasks[key] = params.concat(newTask);
@@ -2512,7 +2951,23 @@
}
});
- auto(newTasks, callback);
+ auto(newTasks, function (err, results) {
+ var params;
+ if (isArray(callback)) {
+ params = copyArray(callback);
+ callback = params.pop();
+ } else {
+ params = parseParams(callback);
+ params.shift();
+ }
+
+ params = arrayMap(params, function (name) {
+ return results[name];
+ });
+
+ params.unshift(err);
+ callback.apply(null, params);
+ });
}
var _setImmediate = typeof setImmediate === 'function' && setImmediate;
@@ -2675,6 +3130,12 @@
return queue(worker, 1, payload);
}
+ function eachOfLimit(obj, limit, iteratee, cb) {
+ _eachOfLimit(limit)(obj, iteratee, cb);
+ }
+
+ var eachOfSeries = doLimit(eachOfLimit, 1);
+
function reduce(arr, memo, iteratee, cb) {
eachOfSeries(arr, function (x, i, cb) {
iteratee(memo, x, function (err, v) {
@@ -2726,6 +3187,8 @@
});
}
+ var eachOf = doLimit(eachOfLimit, Infinity);
+
function doParallel(fn) {
return function (obj, iteratee, callback) {
return fn(eachOf, obj, iteratee, callback);
@@ -2742,7 +3205,7 @@
var concatSeries = doSeries(concat$1);
- var constant$1 = rest(function (values) {
+ var constant = rest(function (values) {
var args = [null].concat(values);
return initialParams(function (ignoredArgs, callback) {
return callback.apply(this, args);
@@ -2776,9 +3239,11 @@
});
}
if (arguments.length > 3) {
+ cb = cb || noop;
eachfn(arr, limit, wrappedIteratee, done);
} else {
cb = iteratee;
+ cb = cb || noop;
iteratee = limit;
eachfn(arr, wrappedIteratee, done);
}
@@ -2935,12 +3400,6 @@
});
}
- function doParallelLimit(fn) {
- return function (obj, limit, iteratee, callback) {
- return fn(_eachOfLimit(limit), obj, iteratee, callback);
- };
- }
-
var filterLimit = doParallelLimit(_filter);
var filter = doLimit(filterLimit, Infinity);
@@ -2976,320 +3435,11 @@
var log = consoleFunc('log');
- function _asyncMap(eachfn, arr, iteratee, callback) {
- callback = once(callback || noop);
- arr = arr || [];
- var results = isArrayLike(arr) || getIterator(arr) ? [] : {};
- eachfn(arr, function (value, index, callback) {
- iteratee(value, function (err, v) {
- results[index] = v;
- callback(err);
- });
- }, function (err) {
- callback(err, results);
- });
- }
-
- var mapLimit = doParallelLimit(_asyncMap);
-
- var map = doLimit(mapLimit, Infinity);
-
- var mapSeries = doLimit(mapLimit, 1);
-
- /** `Object#toString` result references. */
- var symbolTag$2 = '[object Symbol]';
-
- /** Used for built-in method references. */
- var objectProto$12 = Object.prototype;
-
- /**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
- * of values.
- */
- var objectToString$4 = objectProto$12.toString;
-
- /**
- * Checks if `value` is classified as a `Symbol` primitive or object.
- *
- * @static
- * @memberOf _
- * @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$4.call(value) == symbolTag$2);
- }
-
- /** Used as references for various `Number` constants. */
- var INFINITY$1 = 1 / 0;
-
- /** Used to convert symbols to primitives and strings. */
- var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : undefined;
- var symbolToString = symbolProto$1 ? symbolProto$1.toString : undefined;
- /**
- * Converts `value` to a string if it's not one. An empty string is returned
- * for `null` and `undefined` values. The sign of `-0` is preserved.
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to process.
- * @returns {string} Returns the string.
- * @example
- *
- * _.toString(null);
- * // => ''
- *
- * _.toString(-0);
- * // => '-0'
- *
- * _.toString([1, 2, 3]);
- * // => '1,2,3'
- */
- function toString(value) {
- // Exit early for strings to avoid a performance hit in some environments.
- if (typeof value == 'string') {
- return value;
- }
- if (value == null) {
- return '';
- }
- if (isSymbol(value)) {
- return symbolToString ? symbolToString.call(value) : '';
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
- }
-
- /** Used to match property names within property paths. */
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g;
-
- /** Used to match backslashes in property paths. */
- var reEscapeChar = /\\(\\)?/g;
-
- /**
- * Converts `string` to a property path array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the property path array.
- */
- function stringToPath(string) {
- var result = [];
- toString(string).replace(rePropName, function(match, number, quote, string) {
- result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
- });
- return result;
- }
-
- /**
- * Casts `value` to a path array if it's not one.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {Array} Returns the cast property path array.
- */
- function baseCastPath(value) {
- return isArray(value) ? value : stringToPath(value);
- }
-
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
- var reIsPlainProp = /^\w*$/;
- /**
- * Checks if `value` is a property name and not a property path.
- *
- * @private
- * @param {*} value The value to check.
- * @param {Object} [object] The object to query keys on.
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
- */
- function isKey(value, object) {
- if (typeof value == 'number') {
- return true;
- }
- return !isArray(value) &&
- (reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
- (object != null && value in Object(object)));
- }
-
- /**
- * Gets the last element of `array`.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The array to query.
- * @returns {*} Returns the last element of `array`.
- * @example
- *
- * _.last([1, 2, 3]);
- * // => 3
- */
- function last(array) {
- var length = array ? array.length : 0;
- return length ? array[length - 1] : undefined;
- }
-
- /**
- * The base implementation of `_.slice` without an iteratee call guard.
- *
- * @private
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
- function baseSlice(array, start, end) {
- var index = -1,
- length = array.length;
-
- if (start < 0) {
- start = -start > length ? 0 : (length + start);
- }
- end = end > length ? length : end;
- if (end < 0) {
- end += length;
- }
- length = start > end ? 0 : ((end - start) >>> 0);
- start >>>= 0;
-
- var result = Array(length);
- while (++index < length) {
- result[index] = array[index + start];
- }
- return result;
- }
-
- /**
- * The base implementation of `_.get` without support for default values.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @returns {*} Returns the resolved value.
- */
- function baseGet(object, path) {
- path = isKey(path, object) ? [path + ''] : baseCastPath(path);
-
- var index = 0,
- length = path.length;
-
- while (object != null && index < length) {
- object = object[path[index++]];
- }
- return (index && index == length) ? object : undefined;
+ function has(obj, key) {
+ return key in obj;
}
- /**
- * Gets the value at `path` of `object`. If the resolved value is
- * `undefined` the `defaultValue` is used in its place.
- *
- * @static
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @param {*} [defaultValue] The value returned if the resolved value is `undefined`.
- * @returns {*} Returns the resolved value.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.get(object, 'a[0].b.c');
- * // => 3
- *
- * _.get(object, ['a', '0', 'b', 'c']);
- * // => 3
- *
- * _.get(object, 'a.b.c', 'default');
- * // => 'default'
- */
- function get(object, path, defaultValue) {
- var result = object == null ? undefined : baseGet(object, path);
- return result === undefined ? defaultValue : result;
- }
-
- /**
- * Gets the parent value at `path` of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} path The path to get the parent value of.
- * @returns {*} Returns the parent value.
- */
- function parent(object, path) {
- return path.length == 1 ? object : get(object, baseSlice(path, 0, -1));
- }
-
- /**
- * Checks if `path` exists on `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @param {Function} hasFunc The function to check properties.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- */
- function hasPath(object, path, hasFunc) {
- if (object == null) {
- return false;
- }
- var result = hasFunc(object, path);
- if (!result && !isKey(path)) {
- path = baseCastPath(path);
- object = parent(object, path);
- if (object != null) {
- path = last(path);
- result = hasFunc(object, path);
- }
- }
- var length = object ? object.length : undefined;
- return result || (
- !!length && isLength(length) && isIndex(path, length) &&
- (isArray(object) || isString(object) || isArguments(object))
- );
- }
-
- /**
- * Checks if `path` is a direct property of `object`.
- *
- * @static
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = { 'a': { 'b': { 'c': 3 } } };
- * var other = _.create({ 'a': _.create({ 'b': _.create({ 'c': 3 }) }) });
- *
- * _.has(object, 'a');
- * // => true
- *
- * _.has(object, 'a.b.c');
- * // => true
- *
- * _.has(object, ['a', 'b', 'c']);
- * // => true
- *
- * _.has(other, 'a');
- * // => false
- */
- function has(object, path) {
- return hasPath(object, path, baseHas);
- }
-
- function memoize(fn, hasher) {
+ function memoize$1(fn, hasher) {
var memo = Object.create(null);
var queues = Object.create(null);
hasher = hasher || identity;
@@ -3457,12 +3607,13 @@
* The iteratee is invoked with three arguments: (value, index|key, collection).
* Iteratee functions may exit iteration early by explicitly returning `false`.
*
- * **Note:** As with other "Collections" methods, objects with a "length" property
- * are iterated like arrays. To avoid this behavior use `_.forIn` or `_.forOwn`
- * for object iteration.
+ * **Note:** As with other "Collections" methods, objects with a "length"
+ * property are iterated like arrays. To avoid this behavior use `_.forIn`
+ * or `_.forOwn` for object iteration.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @alias each
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
@@ -3473,17 +3624,17 @@
* _([1, 2]).forEach(function(value) {
* console.log(value);
* });
- * // => logs `1` then `2`
+ * // => Logs `1` then `2`.
*
* _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
* console.log(key);
* });
- * // => logs 'a' then 'b' (iteration order is not guaranteed)
+ * // => Logs 'a' then 'b' (iteration order is not guaranteed).
*/
function forEach(collection, iteratee) {
return (typeof iteratee == 'function' && isArray(collection))
? arrayEach(collection, iteratee)
- : baseEach(collection, baseCastFunction(iteratee));
+ : baseEach(collection, baseIteratee(iteratee));
}
function race(tasks, cb) {
@@ -3502,6 +3653,30 @@
reduce(reversed, memo, iteratee, cb);
}
+ function reflect(fn) {
+ return initialParams(function reflectOn(args, reflectCallback) {
+ args.push(rest(function callback(err, cbArgs) {
+ if (err) {
+ reflectCallback(null, {
+ error: err
+ });
+ } else {
+ var value = null;
+ if (cbArgs.length === 1) {
+ value = cbArgs[0];
+ } else if (cbArgs.length > 1) {
+ value = cbArgs;
+ }
+ reflectCallback(null, {
+ value: value
+ });
+ }
+ }));
+
+ return fn.apply(this, args);
+ });
+ }
+
function reject$1(eachfn, arr, iteratee, callback) {
_filter(eachfn, arr, function (value, cb) {
iteratee(value, function (err, v) {
@@ -3518,6 +3693,10 @@
var reject = doLimit(rejectLimit, Infinity);
+ function reflectAll(tasks) {
+ return tasks.map(reflect);
+ }
+
var rejectSeries = doLimit(rejectLimit, 1);
function series(tasks, cb) {
@@ -3628,7 +3807,7 @@
}
}
- function timeout(asyncFn, miliseconds) {
+ function timeout(asyncFn, miliseconds, info) {
var originalCallback, timer;
var timedOut = false;
@@ -3640,8 +3819,12 @@
}
function timeoutCallback() {
- var error = new Error('Callback function timed out.');
+ var name = asyncFn.name || 'anonymous';
+ var error = new Error('Callback function "' + name + '" timed out.');
error.code = 'ETIMEDOUT';
+ if (info) {
+ error.info = info;
+ }
timedOut = true;
originalCallback(error);
}
@@ -3656,7 +3839,7 @@
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeCeil = Math.ceil;
- var nativeMax$2 = Math.max;
+ var nativeMax$1 = Math.max;
/**
* The base implementation of `_.range` and `_.rangeRight` which doesn't
* coerce arguments to numbers.
@@ -3670,7 +3853,7 @@
*/
function baseRange(start, end, step, fromRight) {
var index = -1,
- length = nativeMax$2(nativeCeil((end - start) / (step || 1)), 0),
+ length = nativeMax$1(nativeCeil((end - start) / (step || 1)), 0),
result = Array(length);
while (length--) {
@@ -3752,7 +3935,7 @@
compose: compose,
concat: concat,
concatSeries: concatSeries,
- constant: constant$1,
+ constant: constant,
detect: detect,
detectLimit: detectLimit,
detectSeries: detectSeries,
@@ -3780,7 +3963,7 @@
map: map,
mapLimit: mapLimit,
mapSeries: mapSeries,
- memoize: memoize,
+ memoize: memoize$1,
nextTick: setImmediate$1,
parallel: parallel,
parallelLimit: parallelLimit,
@@ -3789,6 +3972,8 @@
race: race,
reduce: reduce,
reduceRight: reduceRight,
+ reflect: reflect,
+ reflectAll: reflectAll,
reject: reject,
rejectLimit: rejectLimit,
rejectSeries: rejectSeries,
@@ -3840,7 +4025,7 @@
exports.compose = compose;
exports.concat = concat;
exports.concatSeries = concatSeries;
- exports.constant = constant$1;
+ exports.constant = constant;
exports.detect = detect;
exports.detectLimit = detectLimit;
exports.detectSeries = detectSeries;
@@ -3868,7 +4053,7 @@
exports.map = map;
exports.mapLimit = mapLimit;
exports.mapSeries = mapSeries;
- exports.memoize = memoize;
+ exports.memoize = memoize$1;
exports.nextTick = setImmediate$1;
exports.parallel = parallel;
exports.parallelLimit = parallelLimit;
@@ -3877,6 +4062,8 @@
exports.race = race;
exports.reduce = reduce;
exports.reduceRight = reduceRight;
+ exports.reflect = reflect;
+ exports.reflectAll = reflectAll;
exports.reject = reject;
exports.rejectLimit = rejectLimit;
exports.rejectSeries = rejectSeries;
diff --git a/dist/async.min.js b/dist/async.min.js
index 9e8eaf4..4798cc7 100644
--- a/dist/async.min.js
+++ b/dist/async.min.js
@@ -1,2 +1,2 @@
-!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.async=t.async||{})}(this,function(t){"use strict";function n(t,n,r){var e=r.length;switch(e){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}function r(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function e(t){var n=r(t)?Zn.call(t):"";return n==Vn||n==Xn}function o(t){if(r(t)){var n=e(t.valueOf)?t.valueOf():t;t=r(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(nr,"");var o=er.test(t);return o||or.test(t)?ur(t.slice(2),o?2:8):rr.test(t)?tr:+t}function u(t){if(!t)return 0===t?t:0;if(t=o(t),t===ir||t===-ir){var n=0>t?-1:1;return n*cr}var r=t%1;return t===t?r?t-r:t:0}function i(t,r){if("function"!=typeof t)throw new TypeError(ar);return r=fr(void 0===r?t.length-1:u(r),0),function(){for(var e=arguments,o=-1,u=fr(e.length-r,0),i=Array(u);++o<u;)i[o]=e[r+o];switch(r){case 0:return t.call(this,i);case 1:return t.call(this,e[0],i);case 2:return t.call(this,e[0],e[1],i)}var c=Array(r+1);for(o=-1;++o<r;)c[o]=e[o];return c[r]=i,n(t,this,c)}}function c(t){return i(function(n){var r=n.pop();t(n,r)})}function a(t){return i(function(n,r){var e=c(function(r,e){var o=this;return t(n,function(t,n,e){t.apply(o,r.concat([e]))},e)});return r.length?e.apply(this,r):e})}function f(){}function l(t,n){var r;if("function"!=typeof n)throw new TypeError(lr);return t=u(t),function(){return--t>0&&(r=n.apply(this,arguments)),1>=t&&(n=void 0),r}}function s(t){return l(2,t)}function p(t){return function(n){return null==n?void 0:n[t]}}function y(t){return"number"==typeof t&&t>-1&&t%1==0&&pr>=t}function h(t){return null!=t&&y(sr(t))&&!e(t)}function v(t){return yr&&t[yr]&&t[yr]()}function d(t,n){return vr.call(t,n)||"object"==typeof t&&n in t&&null===dr(t)}function m(t){return mr(Object(t))}function g(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}function b(t){return!!t&&"object"==typeof t}function j(t){return b(t)&&h(t)}function w(t){return j(t)&&jr.call(t,"callee")&&(!Or.call(t,"callee")||wr.call(t)==gr)}function O(t){return"string"==typeof t||!Sr(t)&&b(t)&&Er.call(t)==_r}function S(t){var n=t?t.length:void 0;return y(n)&&(Sr(t)||O(t)||w(t))?g(n,String):null}function _(t,n){return t="number"==typeof t||xr.test(t)?+t:-1,n=null==n?Ar:n,t>-1&&t%1==0&&n>t}function k(t){var n=t&&t.constructor,r="function"==typeof n&&n.prototype||Lr;return t===r}function E(t){var n=k(t);if(!n&&!h(t))return m(t);var r=S(t),e=!!r,o=r||[],u=o.length;for(var i in t)!d(t,i)||e&&("length"==i||_(i,u))||n&&"constructor"==i||o.push(i);return o}function A(t){var n,r=-1;if(h(t))return n=t.length,function(){return r++,n>r?{value:t[r],key:r}:null};var e=v(t);if(e)return function(){var t=e.next();return t.done?null:(r++,{value:t.value,key:r})};var o=E(t);return n=o.length,function(){r++;var e=o[r];return n>r?{value:t[e],key:e}:null}}function x(t){return function(){if(null===t)throw new Error("Callback was already called.");t.apply(this,arguments),t=null}}function L(t){return function(n,r,e){e=s(e||f),n=n||[];var o=A(n);if(0>=t)return e(null);var u=!1,i=0,c=!1;!function a(){if(u&&0>=i)return e(null);for(;t>i&&!c;){var n=o();if(null===n)return u=!0,void(0>=i&&e(null));i+=1,r(n.value,n.key,x(function(t){i-=1,t?(e(t),c=!0):a()}))}}()}}function I(t,n,r,e){L(n)(t,r,e)}function T(t,n){return function(r,e,o){return t(r,n,e,o)}}function F(t){return c(function(n,e){var o;try{o=t.apply(this,n)}catch(u){return e(u)}r(o)&&"function"==typeof o.then?o.then(function(t){e(null,t)})["catch"](function(t){e(t.message?t:new Error(t))}):e(null,o)})}function M(t,n){for(var r=-1,e=t.length;++r<e&&n(t[r],r,t)!==!1;);return t}function $(t){return t}function U(t){return"function"==typeof t?t:$}function P(t){return function(n,r,e){for(var o=-1,u=Object(n),i=e(n),c=i.length;c--;){var a=i[t?c:++o];if(r(u[a],a,u)===!1)break}return n}}function z(t,n){return t&&Ur(t,n,E)}function B(t,n){return t&&z(t,U(n))}function C(t,n,r){for(var e=t.length,o=n+(r?0:-1);r?o--:++o<e;){var u=t[o];if(u!==u)return o}return-1}function q(t,n,r){if(n!==n)return C(t,r);for(var e=r-1,o=t.length;++e<o;)if(t[e]===n)return e;return-1}function D(t,n,r){var e=t?t.length:0;return e?(r=u(r),0>r&&(r=Pr(e+r,0)),q(t,n,r)):-1}function R(t,n,r){function e(t,n){m.push(function(){a(t,n)})}function o(){if(0===m.length&&0===h)return r(null,y);for(;m.length&&n>h;){var t=m.shift();t()}}function u(t,n){var r=d[t];r||(r=d[t]=[]),r.push(n)}function c(t){var n=d[t]||[];M(n,function(t){t()}),o()}function a(t,n){if(!v){var e=x(i(function(n,e){if(h--,e.length<=1&&(e=e[0]),n){var o={};B(y,function(t,n){o[n]=t}),o[t]=e,v=!0,d=[],r(n,o)}else y[t]=e,c(t)}));h++;var o=n[n.length-1];n.length>1?o(y,e):o(e)}}"function"==typeof n&&(r=n,n=null),r=s(r||f);var l=E(t),p=l.length;if(!p)return r(null);n||(n=p);var y={},h=0,v=!1,d={},m=[];B(t,function(n,r){function o(){for(var n,e=i.length;e--;){if(!(n=t[i[e]]))throw new Error("async.auto task `"+r+"` has non-existent dependency in "+i.join(", "));if(Sr(n)&&D(n,r)>=0)throw new Error("async.auto task `"+r+"`Has cyclic dependencies")}}if(!Sr(n))return void e(r,[n]);var i=n.slice(0,n.length-1),c=i.length;o(),M(i,function(t){u(t,function(){c--,0===c&&e(r,n)})})}),o()}function W(t,n){for(var r=-1,e=t.length,o=Array(e);++r<e;)o[r]=n(t[r],r,t);return o}function N(){this.__data__={array:[],map:null}}function G(t,n){return t===n||t!==t&&n!==n}function Q(t,n){for(var r=t.length;r--;)if(G(t[r][0],n))return r;return-1}function H(t,n){var r=Q(t,n);if(0>r)return!1;var e=t.length-1;return r==e?t.pop():Br.call(t,r,1),!0}function J(t){var n=this.__data__,r=n.array;return r?H(r,t):n.map["delete"](t)}function K(t,n){var r=Q(t,n);return 0>r?void 0:t[r][1]}function V(t){var n=this.__data__,r=n.array;return r?K(r,t):n.map.get(t)}function X(t,n){return Q(t,n)>-1}function Y(t){var n=this.__data__,r=n.array;return r?X(r,t):n.map.has(t)}function Z(t){var n=!1;if(null!=t&&"function"!=typeof t.toString)try{n=!!(t+"")}catch(r){}return n}function tt(t){return null==t?!1:e(t)?Nr.test(Rr.call(t)):b(t)&&(Z(t)?Nr:qr).test(t)}function nt(t,n){var r=t[n];return tt(r)?r:void 0}function rt(){}function et(t){return t&&t.Object===Object?t:null}function ot(){this.__data__={hash:new rt,map:ne?new ne:[],string:new rt}}function ut(t,n){return Gr?void 0!==t[n]:ee.call(t,n)}function it(t,n){return ut(t,n)&&delete t[n]}function ct(t){var n=typeof t;return"number"==n||"boolean"==n||"string"==n&&"__proto__"!=t||null==t}function at(t){var n=this.__data__;return ct(t)?it("string"==typeof t?n.string:n.hash,t):ne?n.map["delete"](t):H(n.map,t)}function ft(t,n){if(Gr){var r=t[n];return r===oe?void 0:r}return ie.call(t,n)?t[n]:void 0}function lt(t){var n=this.__data__;return ct(t)?ft("string"==typeof t?n.string:n.hash,t):ne?n.map.get(t):K(n.map,t)}function st(t){var n=this.__data__;return ct(t)?ut("string"==typeof t?n.string:n.hash,t):ne?n.map.has(t):X(n.map,t)}function pt(t,n,r){var e=Q(t,n);0>e?t.push([n,r]):t[e][1]=r}function yt(t,n,r){t[n]=Gr&&void 0===r?ce:r}function ht(t,n){var r=this.__data__;return ct(t)?yt("string"==typeof t?r.string:r.hash,t,n):ne?r.map.set(t,n):pt(r.map,t,n),this}function vt(t){var n=-1,r=t?t.length:0;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function dt(t,n){var r=this.__data__,e=r.array;e&&(e.length<ae-1?pt(e,t,n):(r.array=null,r.map=new vt(e)));var o=r.map;return o&&o.set(t,n),this}function mt(t){var n=-1,r=t?t.length:0;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function gt(t,n,r){var e=t[n];le.call(t,n)&&G(e,r)&&(void 0!==r||n in t)||(t[n]=r)}function bt(t,n,r,e){r||(r={});for(var o=-1,u=n.length;++o<u;){var i=n[o],c=e?e(r[i],t[i],i,r,t):t[i];gt(r,i,c)}return r}function jt(t,n,r){return bt(t,n,r)}function wt(t,n){return t&&jt(n,E(n),t)}function Ot(t,n){if(n)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function St(t,n){var r=-1,e=t.length;for(n||(n=Array(e));++r<e;)n[r]=t[r];return n}function _t(t,n){return jt(t,pe(t),n)}function kt(t){return we.call(t)}function Et(t){var n=t.length,r=t.constructor(n);return n&&"string"==typeof t[0]&&Ae.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function At(t){var n=new t.constructor(t.byteLength);return new xe(n).set(new xe(t)),n}function xt(t,n){return t.set(n[0],n[1]),t}function Lt(t,n,r,e){var o=-1,u=t.length;for(e&&u&&(r=t[++o]);++o<u;)r=n(r,t[o],o,t);return r}function It(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}function Tt(t){return Lt(It(t),xt,new t.constructor)}function Ft(t){var n=new t.constructor(t.source,Le.exec(t));return n.lastIndex=t.lastIndex,n}function Mt(t,n){return t.add(n),t}function $t(t){var n=-1,r=Array(t.size);return t.forEach(function(t){r[++n]=t}),r}function Ut(t){return Lt($t(t),Mt,new t.constructor)}function Pt(t){return Fe?Object(Fe.call(t)):{}}function zt(t,n){var r=n?At(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Bt(t,n,r){var e=t.constructor;switch(n){case De:return At(t);case Me:case $e:return new e(+t);case Re:case We:case Ne:case Ge:case Qe:case He:case Je:case Ke:case Ve:return zt(t,r);case Ue:return Tt(t);case Pe:case Ce:return new e(t);case ze:return Ft(t);case Be:return Ut(t);case qe:return Pt(t)}}function Ct(t){return r(t)?Xe(t):{}}function qt(t){return"function"!=typeof t.constructor||k(t)?{}:Ct(Ye(t))}function Dt(t){return function(){return t}}function Rt(t,n,e,o,u,i,c){var a;if(o&&(a=i?o(t,u,i,c):o(t)),void 0!==a)return a;if(!r(t))return t;var f=Sr(t);if(f){if(a=Et(t),!n)return St(t,a)}else{var l=ke(t),s=l==lo||l==so;if(oo(t))return Ot(t,n);if(l==ho||l==uo||s&&!i){if(Z(t))return i?t:{};if(a=qt(s?{}:t),!n)return a=wt(a,t),e?_t(t,a):a}else{if(!To[l])return i?t:{};a=Bt(t,l,n)}}c||(c=new mt);var p=c.get(t);return p?p:(c.set(t,a),(f?M:z)(t,function(r,u){gt(a,u,Rt(r,n,e,o,u,t,c))}),e&&!f?_t(t,a):a)}function Wt(t){return t.toString().match(Mo)[1].split(/\s*\,\s*/)}function Nt(t,n){var r={};B(t,function(t,n){function e(n,r){var e=W(o,function(t){return n[t]});e.push(r),t.apply(null,e)}var o;if(Sr(t))o=Rt(t),t=o.pop(),r[n]=o.concat(e);else{if(0===t.length)throw new Error("autoInject task functions require explicit parameters.");1===t.length?r[n]=t:(o=Wt(t),o.pop(),r[n]=o.concat(e))}}),R(r,n)}function Gt(t,n,r){function e(t,n,r,e){if(null!=e&&"function"!=typeof e)throw new Error("task callback must be a function");return t.started=!0,Sr(n)||(n=[n]),0===n.length&&t.idle()?Uo(function(){t.drain()}):(M(n,function(n){var o={data:n,callback:e||f};r?t.tasks.unshift(o):t.tasks.push(o)}),void Uo(t.process))}function o(t,n){return function(){u-=1;var r=!1,e=arguments;M(n,function(t){M(i,function(n,e){n!==t||r||(i.splice(e,1),r=!0)}),t.callback.apply(t,e)}),u<=t.concurrency-t.buffer&&t.unsaturated(),t.tasks.length+u===0&&t.drain(),t.process()}}if(null==n)n=1;else if(0===n)throw new Error("Concurrency must not be zero");var u=0,i=[],c={tasks:[],concurrency:n,payload:r,saturated:f,unsaturated:f,buffer:n/4,empty:f,drain:f,started:!1,paused:!1,push:function(t,n){e(c,t,!1,n)},kill:function(){c.drain=f,c.tasks=[]},unshift:function(t,n){e(c,t,!0,n)},process:function(){for(;!c.paused&&u<c.concurrency&&c.tasks.length;){var n=c.payload?c.tasks.splice(0,c.payload):c.tasks.splice(0,c.tasks.length),r=W(n,p("data"));0===c.tasks.length&&c.empty(),u+=1,i.push(n[0]),u===c.concurrency&&c.saturated();var e=x(o(c,n));t(r,e)}},length:function(){return c.tasks.length},running:function(){return u},workersList:function(){return i},idle:function(){return c.tasks.length+u===0},pause:function(){c.paused=!0},resume:function(){if(c.paused!==!1){c.paused=!1;for(var t=Math.min(c.concurrency,c.tasks.length),n=1;t>=n;n++)Uo(c.process)}}};return c}function Qt(t,n){return Gt(t,1,n)}function Ht(t,n,r,e){Fr(t,function(t,e,o){r(n,t,function(t,r){n=r,o(t)})},function(t){e(t,n)})}function Jt(){var t=arguments;return i(function(n){var r=this,e=n[n.length-1];"function"==typeof e?n.pop():e=f,Ht(t,n,function(t,n,e){n.apply(r,t.concat([i(function(t,n){e(t,n)})]))},function(t,n){e.apply(r,[t].concat(n))})})}function Kt(){return Jt.apply(null,Po.call(arguments))}function Vt(t,n,r,e){var o=[];t(n,function(t,n,e){r(t,function(t,n){o=o.concat(n||[]),e(t)})},function(t){e(t,o)})}function Xt(t){return function(n,r,e){return t(Ir,n,r,e)}}function Yt(t){return function(n,r,e){return t(Fr,n,r,e)}}function Zt(t,n,r){return function(e,o,u,i){function c(t){i&&(t?i(t):i(null,r(!1)))}function a(t,e,o){return i?void u(t,function(e,c){i&&(e?(i(e),i=u=!1):n(c)&&(i(null,r(!0,t)),i=u=!1)),o()}):o()}arguments.length>3?t(e,o,a,c):(i=u,u=o,t(e,a,c))}}function tn(t,n){return n}function nn(t){return i(function(n,r){n.apply(null,r.concat([i(function(n,r){"object"==typeof console&&(n?console.error&&console.error(n):console[t]&&M(r,function(n){console[t](n)}))})]))})}function rn(t,n,r){r=r||f;var e=i(function(n,e){n?r(n):(e.push(o),t.apply(this,e))}),o=function(t,o){return t?r(t):o?void n(e):r(null)};t(o)}function en(t,n,r){var e=0;rn(function(t){return e++<1?t(null,!0):void n.apply(this,arguments)},t,r)}function on(t,n,r){if(r=r||f,!t())return r(null);var e=i(function(o,u){return o?r(o):t.apply(this,u)?n(e):void r.apply(null,[null].concat(u))});n(e)}function un(t,n,r){var e=0;return on(function(){return++e<=1||n.apply(this,arguments)},t,r)}function cn(t,n,r){return un(t,function(){return!n.apply(this,arguments)},r)}function an(t){return function(n,r,e){return t(n,e)}}function fn(t,n,r,e){return L(n)(t,an(r),e)}function ln(t){return c(function(n,r){var e=!0;n.push(function(){var t=arguments;e?Uo(function(){r.apply(null,t)}):r.apply(null,t)}),t.apply(this,n),e=!1})}function sn(t){return!t}function pn(t,n,r,e){var o=[];t(n,function(t,n,e){r(t,function(r,u){r?e(r):(u&&o.push({index:n,value:t}),e())})},function(t){t?e(t):e(null,W(o.sort(function(t,n){return t.index-n.index}),p("value")))})}function yn(t){return function(n,r,e,o){return t(L(r),n,e,o)}}function hn(t,n){function r(t){return t?e(t):void o(r)}var e=x(n||f),o=ln(t);r()}function vn(t){function n(r){function e(){return t.length&&t[r].apply(null,arguments),e.next()}return e.next=function(){return r<t.length-1?n(r+1):null},e}return n(0)}function dn(t,n,r,e){e=s(e||f),n=n||[];var o=h(n)||v(n)?[]:{};t(n,function(t,n,e){r(t,function(t,r){o[n]=r,e(t)})},function(t){e(t,o)})}function mn(t){return"symbol"==typeof t||b(t)&&ou.call(t)==ru}function gn(t){if("string"==typeof t)return t;if(null==t)return"";if(mn(t))return cu?cu.call(t):"";var n=t+"";return"0"==n&&1/t==-uu?"-0":n}function bn(t){var n=[];return gn(t).replace(au,function(t,r,e,o){n.push(e?o.replace(fu,"$1"):r||t)}),n}function jn(t){return Sr(t)?t:bn(t)}function wn(t,n){return"number"==typeof t?!0:!Sr(t)&&(su.test(t)||!lu.test(t)||null!=n&&t in Object(n))}function On(t){var n=t?t.length:0;return n?t[n-1]:void 0}function Sn(t,n,r){var e=-1,o=t.length;0>n&&(n=-n>o?0:o+n),r=r>o?o:r,0>r&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var u=Array(o);++e<o;)u[e]=t[e+n];return u}function _n(t,n){n=wn(n,t)?[n+""]:jn(n);for(var r=0,e=n.length;null!=t&&e>r;)t=t[n[r++]];return r&&r==e?t:void 0}function kn(t,n,r){var e=null==t?void 0:_n(t,n);return void 0===e?r:e}function En(t,n){return 1==n.length?t:kn(t,Sn(n,0,-1))}function An(t,n,r){if(null==t)return!1;var e=r(t,n);e||wn(n)||(n=jn(n),t=En(t,n),null!=t&&(n=On(n),e=r(t,n)));var o=t?t.length:void 0;return e||!!o&&y(o)&&_(n,o)&&(Sr(t)||O(t)||w(t))}function xn(t,n){return An(t,n,d)}function Ln(t,n){var r=Object.create(null),e=Object.create(null);n=n||$;var o=c(function(o,u){var c=n.apply(null,o);xn(r,c)?Uo(function(){u.apply(null,r[c])}):xn(e,c)?e[c].push(u):(e[c]=[u],t.apply(null,o.concat([i(function(t){r[c]=t;var n=e[c];delete e[c];for(var o=0,u=n.length;u>o;o++)n[o].apply(null,t)})])))});return o.memo=r,o.unmemoized=t,o}function In(t,n,r){r=r||f;var e=h(n)?[]:{};t(n,function(t,n,r){t(i(function(t,o){o.length<=1&&(o=o[0]),e[n]=o,r(t)}))},function(t){r(t,e)})}function Tn(t,n,r){return In(L(n),t,r)}function Fn(t,n){return Gt(function(n,r){t(n[0],r)},n,1)}function Mn(t,n){function r(t,n){return t.priority-n.priority}function e(t,n,r){for(var e=-1,o=t.length-1;o>e;){var u=e+(o-e+1>>>1);r(n,t[u])>=0?e=u:o=u-1}return e}function o(t,n,o,u){if(null!=u&&"function"!=typeof u)throw new Error("task callback must be a function");return t.started=!0,Sr(n)||(n=[n]),0===n.length?Uo(function(){t.drain()}):void M(n,function(n){var i={data:n,priority:o,callback:"function"==typeof u?u:f};t.tasks.splice(e(t.tasks,i,r)+1,0,i),t.tasks.length===t.concurrency&&t.saturated(),t.tasks.length<=t.concurrency-t.buffer&&t.unsaturated(),Uo(t.process)})}var u=Fn(t,n);return u.push=function(t,n,r){o(u,t,n,r)},delete u.unshift,u}function $n(t,n){return function(r,e){if(null==r)return r;if(!h(r))return t(r,e);for(var o=r.length,u=n?o:-1,i=Object(r);(n?u--:++u<o)&&e(i[u],u,i)!==!1;);return r}}function Un(t,n){return"function"==typeof n&&Sr(t)?M(t,n):yu(t,U(n))}function Pn(t,n){return n=s(n||f),Sr(t)?t.length?void Un(t,function(t){t(n)}):n():n(new TypeError("First argument to race must be an array of functions"))}function zn(t,n,r,e){var o=hu.call(t).reverse();Ht(o,n,r,e)}function Bn(t,n,r,e){pn(t,n,function(t,n){r(t,function(t,r){t?n(t):n(null,!r)})},e)}function Cn(t,n){return In(Fr,t,n)}function qn(t,n,r){function e(t,n){if("object"==typeof n)t.times=+n.times||i,t.interval=+n.interval||c;else{if("number"!=typeof n&&"string"!=typeof n)throw new Error("Invalid arguments for async.retry");t.times=+n||i}}function o(t){return function(r){n(function(n,e){r(!n||t,{err:n,result:e})})}}function u(t){return function(n){setTimeout(function(){n(null)},t)}}var i=5,c=0,a={times:i,interval:c};if(arguments.length<3&&"function"==typeof t?(r=n||f,n=t):(e(a,t),r=r||f),"function"!=typeof n)throw new Error("Invalid arguments for async.retry");for(var l=[];a.times;){var s=!(a.times-=1);l.push(o(s)),!s&&a.interval>0&&l.push(u(a.interval))}Cn(l,function(t,n){n=n[n.length-1],r(n.err,n.result)})}function Dn(t,n){return n||(n=t,t=null),c(function(r,e){function o(t){n.apply(null,r.concat([t]))}t?qn(t,o,e):qn(o,e)})}function Rn(t,n,r){function e(t,n){var r=t.criteria,e=n.criteria;return e>r?-1:r>e?1:0}tu(t,function(t,r){n(t,function(n,e){return n?r(n):void r(null,{value:t,criteria:e})})},function(t,n){return t?r(t):void r(null,W(n.sort(e),p("value")))})}function Wn(t,n){function r(){i||(o.apply(null,arguments),clearTimeout(u))}function e(){var t=new Error("Callback function timed out.");t.code="ETIMEDOUT",i=!0,o(t)}var o,u,i=!1;return c(function(i,c){o=c,u=setTimeout(e,n),t.apply(null,i.concat(r))})}function Nn(t,n,r,e){for(var o=-1,u=Ou(wu((n-t)/(r||1)),0),i=Array(u);u--;)i[e?u:++o]=t,t+=r;return i}function Gn(t,n,r,e){return Zo(Nn(0,t,1),n,r,e)}function Qn(t,n,r,e){3===arguments.length&&(e=r,r=n,n=Sr(t)?[]:{}),Ir(t,function(t,e,o){r(n,t,e,o)},function(t){e(t,n)})}function Hn(t){return function(){return(t.unmemoized||t).apply(null,arguments)}}function Jn(t,n,r){return on(function(){return!t.apply(this,arguments)},n,r)}function Kn(t,n){function r(o){if(e===t.length)return n.apply(null,[null].concat(o));var u=x(i(function(t,e){return t?n.apply(null,[t].concat(e)):void r(e)}));o.push(u);var c=t[e++];c.apply(null,o)}if(n=s(n||f),!Sr(t))return n(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return n();var e=0;r([])}var Vn="[object Function]",Xn="[object GeneratorFunction]",Yn=Object.prototype,Zn=Yn.toString,tr=NaN,nr=/^\s+|\s+$/g,rr=/^[-+]0x[0-9a-f]+$/i,er=/^0b[01]+$/i,or=/^0o[0-7]+$/i,ur=parseInt,ir=1/0,cr=1.7976931348623157e308,ar="Expected a function",fr=Math.max,lr="Expected a function",sr=p("length"),pr=9007199254740991,yr="function"==typeof Symbol&&Symbol.iterator,hr=Object.prototype,vr=hr.hasOwnProperty,dr=Object.getPrototypeOf,mr=Object.keys,gr="[object Arguments]",br=Object.prototype,jr=br.hasOwnProperty,wr=br.toString,Or=br.propertyIsEnumerable,Sr=Array.isArray,_r="[object String]",kr=Object.prototype,Er=kr.toString,Ar=9007199254740991,xr=/^(?:0|[1-9]\d*)$/,Lr=Object.prototype,Ir=T(I,1/0),Tr=a(Ir),Fr=T(I,1),Mr=a(Fr),$r=i(function(t,n){return i(function(r){return t.apply(null,n.concat(r))})}),Ur=P(),Pr=Math.max,zr=Array.prototype,Br=zr.splice,Cr=/[\\^$.*+?()[\]{}|]/g,qr=/^\[object .+?Constructor\]$/,Dr=Object.prototype,Rr=Function.prototype.toString,Wr=Dr.hasOwnProperty,Nr=RegExp("^"+Rr.call(Wr).replace(Cr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gr=nt(Object,"create"),Qr=Object.prototype;rt.prototype=Gr?Gr(null):Qr;var Hr={"function":!0,object:!0},Jr=Hr[typeof t]&&t&&!t.nodeType?t:void 0,Kr=Hr[typeof module]&&module&&!module.nodeType?module:void 0,Vr=et(Jr&&Kr&&"object"==typeof global&&global),Xr=et(Hr[typeof self]&&self),Yr=et(Hr[typeof window]&&window),Zr=et(Hr[typeof this]&&this),te=Vr||Yr!==(Zr&&Zr.window)&&Yr||Xr||Zr||Function("return this")(),ne=nt(te,"Map"),re=Object.prototype,ee=re.hasOwnProperty,oe="__lodash_hash_undefined__",ue=Object.prototype,ie=ue.hasOwnProperty,ce="__lodash_hash_undefined__";vt.prototype.clear=ot,vt.prototype["delete"]=at,vt.prototype.get=lt,vt.prototype.has=st,vt.prototype.set=ht;var ae=200;mt.prototype.clear=N,mt.prototype["delete"]=J,mt.prototype.get=V,mt.prototype.has=Y,mt.prototype.set=dt;var fe=Object.prototype,le=fe.hasOwnProperty,se=Object.getOwnPropertySymbols,pe=se||function(){return[]},ye=nt(te,"Set"),he=nt(te,"WeakMap"),ve="[object Map]",de="[object Object]",me="[object Set]",ge="[object WeakMap]",be=Object.prototype,je=Function.prototype.toString,we=be.toString,Oe=ne?je.call(ne):"",Se=ye?je.call(ye):"",_e=he?je.call(he):"";(ne&&kt(new ne)!=ve||ye&&kt(new ye)!=me||he&&kt(new he)!=ge)&&(kt=function(t){var n=we.call(t),r=n==de?t.constructor:null,e="function"==typeof r?je.call(r):"";if(e)switch(e){case Oe:return ve;case Se:return me;case _e:return ge}return n});var ke=kt,Ee=Object.prototype,Ae=Ee.hasOwnProperty,xe=te.Uint8Array,Le=/\w*$/,Ie=te.Symbol,Te=Ie?Ie.prototype:void 0,Fe=Te?Te.valueOf:void 0,Me="[object Boolean]",$e="[object Date]",Ue="[object Map]",Pe="[object Number]",ze="[object RegExp]",Be="[object Set]",Ce="[object String]",qe="[object Symbol]",De="[object ArrayBuffer]",Re="[object Float32Array]",We="[object Float64Array]",Ne="[object Int8Array]",Ge="[object Int16Array]",Qe="[object Int32Array]",He="[object Uint8Array]",Je="[object Uint8ClampedArray]",Ke="[object Uint16Array]",Ve="[object Uint32Array]",Xe=Object.create,Ye=Object.getPrototypeOf,Ze={"function":!0,object:!0},to=Ze[typeof t]&&t&&!t.nodeType?t:void 0,no=Ze[typeof module]&&module&&!module.nodeType?module:void 0,ro=no&&no.exports===to?to:void 0,eo=ro?te.Buffer:void 0,oo=eo?function(t){return t instanceof eo}:Dt(!1),uo="[object Arguments]",io="[object Array]",co="[object Boolean]",ao="[object Date]",fo="[object Error]",lo="[object Function]",so="[object GeneratorFunction]",po="[object Map]",yo="[object Number]",ho="[object Object]",vo="[object RegExp]",mo="[object Set]",go="[object String]",bo="[object Symbol]",jo="[object WeakMap]",wo="[object ArrayBuffer]",Oo="[object Float32Array]",So="[object Float64Array]",_o="[object Int8Array]",ko="[object Int16Array]",Eo="[object Int32Array]",Ao="[object Uint8Array]",xo="[object Uint8ClampedArray]",Lo="[object Uint16Array]",Io="[object Uint32Array]",To={};To[uo]=To[io]=To[wo]=To[co]=To[ao]=To[Oo]=To[So]=To[_o]=To[ko]=To[Eo]=To[po]=To[yo]=To[ho]=To[vo]=To[mo]=To[go]=To[bo]=To[Ao]=To[xo]=To[Lo]=To[Io]=!0,To[fo]=To[lo]=To[jo]=!1;var Fo,Mo=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,$o="function"==typeof setImmediate&&setImmediate;Fo=$o?$o:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:function(t){setTimeout(t,0)};var Uo=i(function(t,n){Fo(function(){t.apply(null,n)})}),Po=Array.prototype.reverse,zo=Xt(Vt),Bo=Yt(Vt),Co=i(function(t){var n=[null].concat(t);return c(function(t,r){return r.apply(this,n)})}),qo=Zt(Ir,$,tn),Do=Zt(I,$,tn),Ro=Zt(Fr,$,tn),Wo=nn("dir"),No=T(fn,1/0),Go=T(fn,1),Qo=Zt(I,sn,sn),Ho=T(Qo,1/0),Jo=T(Qo,1),Ko=yn(pn),Vo=T(Ko,1/0),Xo=T(Ko,1),Yo=nn("log"),Zo=yn(dn),tu=T(Zo,1/0),nu=T(Zo,1),ru="[object Symbol]",eu=Object.prototype,ou=eu.toString,uu=1/0,iu=Ie?Ie.prototype:void 0,cu=iu?iu.toString:void 0,au=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,fu=/\\(\\)?/g,lu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,su=/^\w*$/,pu=T(Tn,1/0),yu=$n(z),hu=Array.prototype.slice,vu=yn(Bn),du=T(vu,1/0),mu=T(vu,1),gu=Zt(I,Boolean,$),bu=T(gu,1/0),ju=T(gu,1),wu=Math.ceil,Ou=Math.max,Su=T(Gn,1/0),_u=T(Gn,1),ku={applyEach:Tr,applyEachSeries:Mr,apply:$r,asyncify:F,auto:R,autoInject:Nt,cargo:Qt,compose:Kt,concat:zo,concatSeries:Bo,constant:Co,detect:qo,detectLimit:Do,detectSeries:Ro,dir:Wo,doDuring:en,doUntil:cn,doWhilst:un,during:rn,each:No,eachLimit:fn,eachOf:Ir,eachOfLimit:I,eachOfSeries:Fr,eachSeries:Go,ensureAsync:ln,every:Ho,everyLimit:Qo,everySeries:Jo,filter:Vo,filterLimit:Ko,filterSeries:Xo,forever:hn,iterator:vn,log:Yo,map:tu,mapLimit:Zo,mapSeries:nu,memoize:Ln,nextTick:Uo,parallel:pu,parallelLimit:Tn,priorityQueue:Mn,queue:Fn,race:Pn,reduce:Ht,reduceRight:zn,reject:du,rejectLimit:vu,rejectSeries:mu,retry:qn,retryable:Dn,seq:Jt,series:Cn,setImmediate:Uo,some:bu,someLimit:gu,someSeries:ju,sortBy:Rn,timeout:Wn,times:Su,timesLimit:Gn,timesSeries:_u,transform:Qn,unmemoize:Hn,until:Jn,waterfall:Kn,whilst:on,all:Ho,any:bu,forEach:No,forEachSeries:Go,forEachLimit:fn,forEachOf:Ir,forEachOfSeries:Fr,forEachOfLimit:I,inject:Ht,foldl:Ht,foldr:zn,select:Vo,selectLimit:Ko,selectSeries:Xo,wrapSync:F};t["default"]=ku,t.applyEach=Tr,t.applyEachSeries=Mr,t.apply=$r,t.asyncify=F,t.auto=R,t.autoInject=Nt,t.cargo=Qt,t.compose=Kt,t.concat=zo,t.concatSeries=Bo,t.constant=Co,t.detect=qo,t.detectLimit=Do,t.detectSeries=Ro,t.dir=Wo,t.doDuring=en,t.doUntil=cn,t.doWhilst=un,t.during=rn,t.each=No,t.eachLimit=fn,t.eachOf=Ir,t.eachOfLimit=I,t.eachOfSeries=Fr,t.eachSeries=Go,t.ensureAsync=ln,t.every=Ho,t.everyLimit=Qo,t.everySeries=Jo,t.filter=Vo,t.filterLimit=Ko,t.filterSeries=Xo,t.forever=hn,t.iterator=vn,t.log=Yo,t.map=tu,t.mapLimit=Zo,t.mapSeries=nu,t.memoize=Ln,t.nextTick=Uo,t.parallel=pu,t.parallelLimit=Tn,t.priorityQueue=Mn,t.queue=Fn,t.race=Pn,t.reduce=Ht,t.reduceRight=zn,t.reject=du,t.rejectLimit=vu,t.rejectSeries=mu,t.retry=qn,t.retryable=Dn,t.seq=Jt,t.series=Cn,t.setImmediate=Uo,t.some=bu,t.someLimit=gu,t.someSeries=ju,t.sortBy=Rn,t.timeout=Wn,t.times=Su,t.timesLimit=Gn,t.timesSeries=_u,t.transform=Qn,t.unmemoize=Hn,t.until=Jn,t.waterfall=Kn,t.whilst=on,t.all=Ho,t.allLimit=Qo,t.allSeries=Jo,t.any=bu,t.anyLimit=gu,t.anySeries=ju,t.find=qo,t.findLimit=Do,t.findSeries=Ro,t.forEach=No,t.forEachSeries=Go,t.forEachLimit=fn,t.forEachOf=Ir,t.forEachOfSeries=Fr,t.forEachOfLimit=I,t.inject=Ht,t.foldl=Ht,t.foldr=zn,t.select=Vo,t.selectLimit=Ko,t.selectSeries=Xo,t.wrapSync=F});
+!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,r){var e=r.length;switch(e){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function r(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function e(n){var t=r(n)?Ht.call(n):"";return t==Vt||t==Qt}function o(n){return!!n&&"object"==typeof n}function u(n){return"symbol"==typeof n||o(n)&&Xt.call(n)==Jt}function i(n){if("number"==typeof n)return n;if(u(n))return Yt;if(r(n)){var t=e(n.valueOf)?n.valueOf():n;n=r(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(Zt,"");var o=tr.test(n);return o||rr.test(n)?er(n.slice(2),o?2:8):nr.test(n)?Yt:+n}function c(n){if(!n)return 0===n?n:0;if(n=i(n),n===or||n===-or){var t=0>n?-1:1;return t*ur}var r=n%1;return n===n?r?n-r:n:0}function a(n,r){if("function"!=typeof n)throw new TypeError(ir);return r=cr(void 0===r?n.length-1:c(r),0),function(){for(var e=arguments,o=-1,u=cr(e.length-r,0),i=Array(u);++o<u;)i[o]=e[r+o];switch(r){case 0:return n.call(this,i);case 1:return n.call(this,e[0],i);case 2:return n.call(this,e[0],e[1],i)}var c=Array(r+1);for(o=-1;++o<r;)c[o]=e[o];return c[r]=i,t(n,this,c)}}function f(n){return a(function(t){var r=t.pop();n.call(this,t,r)})}function l(n){return a(function(t,r){var e=f(function(r,e){var o=this;return n(t,function(n,t){n.apply(o,r.concat([t]))},e)});return r.length?e.apply(this,r):e})}function s(){}function p(n){return function(){null!==n&&(n.apply(this,arguments),n=null)}}function y(n){return function(t){return null==t?void 0:t[n]}}function v(n){return"number"==typeof n&&n>-1&&n%1==0&&fr>=n}function h(n){return null!=n&&v(ar(n))&&!e(n)}function m(n){return lr&&n[lr]&&n[lr]()}function d(n){return sr(Object(n))}function g(n,t){return yr.call(n,t)||"object"==typeof n&&t in n&&null===d(n)}function b(n){return vr(Object(n))}function j(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function w(n){return o(n)&&h(n)}function _(n){return w(n)&&dr.call(n,"callee")&&(!br.call(n,"callee")||gr.call(n)==hr)}function O(n){return"string"==typeof n||!jr(n)&&o(n)&&Or.call(n)==wr}function S(n){var t=n?n.length:void 0;return v(t)&&(jr(n)||O(n)||_(n))?j(t,String):null}function k(n,t){return n="number"==typeof n||kr.test(n)?+n:-1,t=null==t?Sr:t,n>-1&&n%1==0&&t>n}function E(n){var t=n&&n.constructor,r="function"==typeof t&&t.prototype||Er;return n===r}function A(n){var t=E(n);if(!t&&!h(n))return b(n);var r=S(n),e=!!r,o=r||[],u=o.length;for(var i in n)!g(n,i)||e&&("length"==i||k(i,u))||t&&"constructor"==i||o.push(i);return o}function L(n){var t,r=-1;if(h(n))return t=n.length,function(){return r++,t>r?{value:n[r],key:r}:null};var e=m(n);if(e)return function(){var n=e.next();return n.done?null:(r++,{value:n.value,key:r})};var o=A(n);return t=o.length,function(){r++;var e=o[r];return t>r?{value:n[e],key:e}:null}}function x(n){return function(){if(null===n)throw new Error("Callback was already called.");n.apply(this,arguments),n=null}}function I(n){return function(t,r,e){e=p(e||s),t=t||[];var o=L(t);if(0>=n)return e(null);var u=!1,i=0,c=!1;!function a(){if(u&&0>=i)return e(null);for(;n>i&&!c;){var t=o();if(null===t)return u=!0,void(0>=i&&e(null));i+=1,r(t.value,t.key,x(function(n){i-=1,n?(e(n),c=!0):a()}))}}()}}function T(n){return function(t,r,e,o){return n(I(r),t,e,o)}}function M(n,t,r,e){e=p(e||s),t=t||[];var o=h(t)||m(t)?[]:{};n(t,function(n,t,e){r(n,function(n,r){o[t]=r,e(n)})},function(n){e(n,o)})}function $(n,t){return function(r,e,o){return n(r,t,e,o)}}function z(n){return f(function(t,e){var o;try{o=n.apply(this,t)}catch(u){return e(u)}r(o)&&"function"==typeof o.then?o.then(function(n){e(null,n)})["catch"](function(n){e(n.message?n:new Error(n))}):e(null,o)})}function F(n,t){for(var r=-1,e=n.length;++r<e&&t(n[r],r,n)!==!1;);return n}function P(n){return function(t,r,e){for(var o=-1,u=Object(t),i=e(t),c=i.length;c--;){var a=i[n?c:++o];if(r(u[a],a,u)===!1)break}return t}}function D(n,t){return n&&$r(n,t,A)}function B(){this.__data__={array:[],map:null}}function U(n,t){return n===t||n!==n&&t!==t}function C(n,t){for(var r=n.length;r--;)if(U(n[r][0],t))return r;return-1}function q(n,t){var r=C(n,t);if(0>r)return!1;var e=n.length-1;return r==e?n.pop():Fr.call(n,r,1),!0}function R(n){var t=this.__data__,r=t.array;return r?q(r,n):t.map["delete"](n)}function W(n,t){var r=C(n,t);return 0>r?void 0:n[r][1]}function N(n){var t=this.__data__,r=t.array;return r?W(r,n):t.map.get(n)}function V(n,t){return C(n,t)>-1}function Q(n){var t=this.__data__,r=t.array;return r?V(r,n):t.map.has(n)}function G(n){var t=!1;if(null!=n&&"function"!=typeof n.toString)try{t=!!(n+"")}catch(r){}return t}function H(n){return null==n?!1:e(n)?qr.test(Ur.call(n)):o(n)&&(G(n)?qr:Dr).test(n)}function J(n,t){var r=n[t];return H(r)?r:void 0}function K(){}function X(n){return n&&n.Object===Object?n:null}function Y(){this.__data__={hash:new K,map:Yr?new Yr:[],string:new K}}function Z(n,t){return Rr?void 0!==n[t]:ne.call(n,t)}function nn(n,t){return Z(n,t)&&delete n[t]}function tn(n){var t=typeof n;return"number"==t||"boolean"==t||"string"==t&&"__proto__"!=n||null==n}function rn(n){var t=this.__data__;return tn(n)?nn("string"==typeof n?t.string:t.hash,n):Yr?t.map["delete"](n):q(t.map,n)}function en(n,t){if(Rr){var r=n[t];return r===te?void 0:r}return ee.call(n,t)?n[t]:void 0}function on(n){var t=this.__data__;return tn(n)?en("string"==typeof n?t.string:t.hash,n):Yr?t.map.get(n):W(t.map,n)}function un(n){var t=this.__data__;return tn(n)?Z("string"==typeof n?t.string:t.hash,n):Yr?t.map.has(n):V(t.map,n)}function cn(n,t,r){var e=C(n,t);0>e?n.push([t,r]):n[e][1]=r}function an(n,t,r){n[t]=Rr&&void 0===r?oe:r}function fn(n,t){var r=this.__data__;return tn(n)?an("string"==typeof n?r.string:r.hash,n,t):Yr?r.map.set(n,t):cn(r.map,n,t),this}function ln(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function sn(n,t){var r=this.__data__,e=r.array;e&&(e.length<ue-1?cn(e,n,t):(r.array=null,r.map=new ln(e)));var o=r.map;return o&&o.set(n,t),this}function pn(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function yn(n,t){for(var r=-1,e=n.length;++r<e;)if(t(n[r],r,n))return!0;return!1}function vn(n,t,r,e,o,u){var i=-1,c=o&ce,a=o&ie,f=n.length,l=t.length;if(f!=l&&!(c&&l>f))return!1;var s=u.get(n);if(s)return s==t;var p=!0;for(u.set(n,t);++i<f;){var y=n[i],v=t[i];if(e)var h=c?e(v,y,i,t,n,u):e(y,v,i,n,t,u);if(void 0!==h){if(h)continue;p=!1;break}if(a){if(!yn(t,function(n){return y===n||r(y,n,e,o,u)})){p=!1;break}}else if(y!==v&&!r(y,v,e,o,u)){p=!1;break}}return u["delete"](n),p}function hn(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n]}),r}function mn(n){var t=-1,r=Array(n.size);return n.forEach(function(n){r[++t]=n}),r}function dn(n,t,r,e,o,u,i){switch(r){case _e:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case we:return n.byteLength==t.byteLength&&e(new fe(n),new fe(t))?!0:!1;case pe:case ye:return+n==+t;case ve:return n.name==t.name&&n.message==t.message;case me:return n!=+n?t!=+t:n==+t;case de:case be:return n==t+"";case he:var c=hn;case ge:var a=u&se;if(c||(c=mn),n.size!=t.size&&!a)return!1;var f=i.get(n);return f?f==t:(u|=le,i.set(n,t),vn(c(n),c(t),e,o,u,i));case je:if(Se)return Se.call(n)==Se.call(t)}return!1}function gn(n,t,r,e,o,u){var i=o&ke,c=A(n),a=c.length,f=A(t),l=f.length;if(a!=l&&!i)return!1;for(var s=a;s--;){var p=c[s];if(!(i?p in t:g(t,p)))return!1}var y=u.get(n);if(y)return y==t;var v=!0;u.set(n,t);for(var h=i;++s<a;){p=c[s];var m=n[p],d=t[p];if(e)var b=i?e(d,m,p,t,n,u):e(m,d,p,n,t,u);if(!(void 0===b?m===d||r(m,d,e,o,u):b)){v=!1;break}h||(h="constructor"==p)}if(v&&!h){var j=n.constructor,w=t.constructor;j!=w&&"constructor"in n&&"constructor"in t&&!("function"==typeof j&&j instanceof j&&"function"==typeof w&&w instanceof w)&&(v=!1)}return u["delete"](n),v}function bn(n){return Be.call(n)}function jn(n){return o(n)&&v(n.length)&&!!ho[go.call(n)]}function wn(n,t,r,e,o,u){var i=jr(n),c=jr(t),a=wo,f=wo;i||(a=Ne(n),a=a==jo?_o:a),c||(f=Ne(t),f=f==jo?_o:f);var l=a==_o&&!G(n),s=f==_o&&!G(t),p=a==f;if(p&&!l)return u||(u=new pn),i||jn(n)?vn(n,t,r,e,o,u):dn(n,t,a,r,e,o,u);if(!(o&bo)){var y=l&&So.call(n,"__wrapped__"),v=s&&So.call(t,"__wrapped__");if(y||v){var h=y?n.value():n,m=v?t.value():t;return u||(u=new pn),r(h,m,e,o,u)}}return p?(u||(u=new pn),gn(n,t,r,e,o,u)):!1}function _n(n,t,e,u,i){return n===t?!0:null==n||null==t||!r(n)&&!o(t)?n!==n&&t!==t:wn(n,t,_n,e,u,i)}function On(n,t,r,e){var o=r.length,u=o,i=!e;if(null==n)return!u;for(n=Object(n);o--;){var c=r[o];if(i&&c[2]?c[1]!==n[c[0]]:!(c[0]in n))return!1}for(;++o<u;){c=r[o];var a=c[0],f=n[a],l=c[1];if(i&&c[2]){if(void 0===f&&!(a in n))return!1}else{var s=new pn;if(e)var p=e(f,l,a,n,t,s);if(!(void 0===p?_n(l,f,e,ko|Eo,s):p))return!1}}return!0}function Sn(n){return n===n&&!r(n)}function kn(n,t){for(var r=-1,e=n.length,o=Array(e);++r<e;)o[r]=t(n[r],r,n);return o}function En(n,t){return kn(t,function(t){return[t,n[t]]})}function An(n){return En(n,A(n))}function Ln(n){for(var t=An(n),r=t.length;r--;)t[r][2]=Sn(t[r][1]);return t}function xn(n){var t=Ln(n);if(1==t.length&&t[0][2]){var r=t[0][0],e=t[0][1];return function(n){return null==n?!1:n[r]===e&&(void 0!==e||r in Object(n))}}return function(r){return r===n||On(r,n,t)}}function In(n,t){if("function"!=typeof n||t&&"function"!=typeof t)throw new TypeError(Ao);var r=function(){var e=arguments,o=t?t.apply(this,e):e[0],u=r.cache;if(u.has(o))return u.get(o);var i=n.apply(this,e);return r.cache=u.set(o,i),i};return r.cache=new(In.Cache||ln),r}function Tn(n){if("string"==typeof n)return n;if(null==n)return"";if(u(n))return To?To.call(n):"";var t=n+"";return"0"==t&&1/n==-xo?"-0":t}function Mn(n){return jr(n)?n:zo(n)}function $n(n,t){var r=typeof n;return"number"==r||"symbol"==r?!0:!jr(n)&&(u(n)||Po.test(n)||!Fo.test(n)||null!=t&&n in Object(t))}function zn(n,t){t=$n(t,n)?[t]:Mn(t);for(var r=0,e=t.length;null!=n&&e>r;)n=n[t[r++]];return r&&r==e?n:void 0}function Fn(n,t,r){var e=null==n?void 0:zn(n,t);return void 0===e?r:e}function Pn(n,t){return t in Object(n)}function Dn(n,t,r){if(null==n)return!1;var e=r(n,t);if(!e&&!$n(t)){t=Mn(t);for(var o=-1,u=t.length;null!=n&&++o<u;){var i=t[o];if(!(e=r(n,i)))break;n=n[i]}}var u=n?n.length:void 0;return e||!!u&&v(u)&&k(t,u)&&(jr(n)||O(n)||_(n))}function Bn(n,t){return Dn(n,t,Pn)}function Un(n,t){return function(r){var e=Fn(r,n);return void 0===e&&e===t?Bn(r,n):_n(t,e,void 0,Do|Bo)}}function Cn(n){return n}function qn(n){return function(t){return zn(t,n)}}function Rn(n){return $n(n)?y(n):qn(n)}function Wn(n){return"function"==typeof n?n:null==n?Cn:"object"==typeof n?jr(n)?Un(n[0],n[1]):xn(n):Rn(n)}function Nn(n,t){return n&&D(n,Wn(t))}function Vn(n,t,r){for(var e=n.length,o=t+(r?0:-1);r?o--:++o<e;){var u=n[o];if(u!==u)return o}return-1}function Qn(n,t,r){if(t!==t)return Vn(n,r);for(var e=r-1,o=n.length;++e<o;)if(n[e]===t)return e;return-1}function Gn(n,t,r){function e(n,t){d.push(function(){c(n,t)})}function o(){if(0===d.length&&0===v)return r(null,y);for(;d.length&&t>v;){var n=d.shift();n()}}function u(n,t){var r=m[n];r||(r=m[n]=[]),r.push(t)}function i(n){var t=m[n]||[];F(t,function(n){n()}),o()}function c(n,t){if(!h){var e=x(a(function(t,e){if(v--,e.length<=1&&(e=e[0]),t){var o={};Nn(y,function(n,t){o[t]=n}),o[n]=e,h=!0,m=[],r(t,o)}else y[n]=e,i(n)}));v++;var o=t[t.length-1];t.length>1?o(y,e):o(e)}}"function"==typeof t&&(r=t,t=null),r=p(r||s);var f=A(n),l=f.length;if(!l)return r(null);t||(t=l);var y={},v=0,h=!1,m={},d=[];Nn(n,function(t,r){function o(){for(var t,e=i.length;e--;){if(!(t=n[i[e]]))throw new Error("async.auto task `"+r+"` has non-existent dependency in "+i.join(", "));if(jr(t)&&Qn(t,r,0)>=0)throw new Error("async.auto task `"+r+"`Has cyclic dependencies")}}if(!jr(t))return void e(r,[t]);var i=t.slice(0,t.length-1),c=i.length;o(),F(i,function(n){u(n,function(){c--,0===c&&e(r,t)})})}),o()}function Hn(n,t){var r=-1,e=n.length;for(t||(t=Array(e));++r<e;)t[r]=n[r];return t}function Jn(n){return n.toString().match(Uo)[1].split(/\s*\,\s*/)}function Kn(n,t){var r={};Nn(n,function(n,t){function e(t,r){var e=kn(o,function(n){return t[n]});e.push(r),n.apply(null,e)}var o;if(jr(n))o=Hn(n),n=o.pop(),r[t]=o.concat(e);else{if(0===n.length)throw new Error("autoInject task functions require explicit parameters.");1===n.length?r[t]=n:(o=Jn(n),o.pop(),r[t]=o.concat(e))}}),Gn(r,function(n,r){var e;jr(t)?(e=Hn(t),t=e.pop()):(e=Jn(t),e.shift()),e=kn(e,function(n){return r[n]}),e.unshift(n),t.apply(null,e)})}function Xn(n,t,r){function e(n,t,r,e){if(null!=e&&"function"!=typeof e)throw new Error("task callback must be a function");return n.started=!0,jr(t)||(t=[t]),0===t.length&&n.idle()?qo(function(){n.drain()}):(F(t,function(t){var o={data:t,callback:e||s};r?n.tasks.unshift(o):n.tasks.push(o)}),void qo(n.process))}function o(n,t){return function(){u-=1;var r=!1,e=arguments;F(t,function(n){F(i,function(t,e){t!==n||r||(i.splice(e,1),r=!0)}),n.callback.apply(n,e)}),u<=n.concurrency-n.buffer&&n.unsaturated(),n.tasks.length+u===0&&n.drain(),n.process()}}if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var u=0,i=[],c={tasks:[],concurrency:t,payload:r,saturated:s,unsaturated:s,buffer:t/4,empty:s,drain:s,started:!1,paused:!1,push:function(n,t){e(c,n,!1,t)},kill:function(){c.drain=s,c.tasks=[]},unshift:function(n,t){e(c,n,!0,t)},process:function(){for(;!c.paused&&u<c.concurrency&&c.tasks.length;){var t=c.payload?c.tasks.splice(0,c.payload):c.tasks.splice(0,c.tasks.length),r=kn(t,y("data"));0===c.tasks.length&&c.empty(),u+=1,i.push(t[0]),u===c.concurrency&&c.saturated();var e=x(o(c,t));n(r,e)}},length:function(){return c.tasks.length},running:function(){return u},workersList:function(){return i},idle:function(){return c.tasks.length+u===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++)qo(c.process)}}};return c}function Yn(n,t){return Xn(n,1,t)}function Zn(n,t,r,e){I(t)(n,r,e)}function nt(n,t,r,e){Ro(n,function(n,e,o){r(t,n,function(n,r){t=r,o(n)})},function(n){e(n,t)})}function tt(){var n=arguments;return a(function(t){var r=this,e=t[t.length-1];"function"==typeof e?t.pop():e=s,nt(n,t,function(n,t,e){t.apply(r,n.concat([a(function(n,t){e(n,t)})]))},function(n,t){e.apply(r,[n].concat(t))})})}function rt(){return tt.apply(null,Wo.call(arguments))}function et(n,t,r,e){var o=[];n(t,function(n,t,e){r(n,function(n,t){o=o.concat(t||[]),e(n)})},function(n){e(n,o)})}function ot(n){return function(t,r,e){return n(No,t,r,e)}}function ut(n){return function(t,r,e){return n(Ro,t,r,e)}}function it(n,t,r){return function(e,o,u,i){function c(n){i&&(n?i(n):i(null,r(!1)))}function a(n,e,o){return i?void u(n,function(e,c){i&&(e?(i(e),i=u=!1):t(c)&&(i(null,r(!0,n)),i=u=!1)),o()}):o()}arguments.length>3?(i=i||s,n(e,o,a,c)):(i=u,i=i||s,u=o,n(e,a,c))}}function ct(n,t){return t}function at(n){return a(function(t,r){t.apply(null,r.concat([a(function(t,r){"object"==typeof console&&(t?console.error&&console.error(t):console[n]&&F(r,function(t){console[n](t)}))})]))})}function ft(n,t,r){r=r||s;var e=a(function(t,e){t?r(t):(e.push(o),n.apply(this,e))}),o=function(n,o){return n?r(n):o?void t(e):r(null)};n(o)}function lt(n,t,r){var e=0;ft(function(n){return e++<1?n(null,!0):void t.apply(this,arguments)},n,r)}function st(n,t,r){if(r=r||s,!n())return r(null);var e=a(function(o,u){return o?r(o):n.apply(this,u)?t(e):void r.apply(null,[null].concat(u))});t(e)}function pt(n,t,r){var e=0;return st(function(){return++e<=1||t.apply(this,arguments)},n,r)}function yt(n,t,r){return pt(n,function(){return!t.apply(this,arguments)},r)}function vt(n){return function(t,r,e){return n(t,e)}}function ht(n,t,r,e){return I(t)(n,vt(r),e)}function mt(n){return f(function(t,r){var e=!0;t.push(function(){var n=arguments;e?qo(function(){r.apply(null,n)}):r.apply(null,n)}),n.apply(this,t),e=!1})}function dt(n){return!n}function gt(n,t,r,e){var o=[];n(t,function(n,t,e){r(n,function(r,u){r?e(r):(u&&o.push({index:t,value:n}),e())})},function(n){n?e(n):e(null,kn(o.sort(function(n,t){return n.index-t.index}),y("value")))})}function bt(n,t){function r(n){return n?e(n):void o(r)}var e=x(t||s),o=mt(n);r()}function jt(n){function t(r){function e(){return n.length&&n[r].apply(null,arguments),e.next()}return e.next=function(){return r<n.length-1?t(r+1):null},e}return t(0)}function wt(n,t){return t in n}function _t(n,t){var r=Object.create(null),e=Object.create(null);t=t||Cn;var o=f(function(o,u){var i=t.apply(null,o);wt(r,i)?qo(function(){u.apply(null,r[i])}):wt(e,i)?e[i].push(u):(e[i]=[u],n.apply(null,o.concat([a(function(n){r[i]=n;var t=e[i];delete e[i];for(var o=0,u=t.length;u>o;o++)t[o].apply(null,n)})])))});return o.memo=r,o.unmemoized=n,o}function Ot(n,t,r){r=r||s;var e=h(t)?[]:{};n(t,function(n,t,r){n(a(function(n,o){o.length<=1&&(o=o[0]),e[t]=o,r(n)}))},function(n){r(n,e)})}function St(n,t,r){return Ot(I(t),n,r)}function kt(n,t){return Xn(function(t,r){n(t[0],r)},t,1)}function Et(n,t){function r(n,t){return n.priority-t.priority}function e(n,t,r){for(var e=-1,o=n.length-1;o>e;){var u=e+(o-e+1>>>1);r(t,n[u])>=0?e=u:o=u-1}return e}function o(n,t,o,u){if(null!=u&&"function"!=typeof u)throw new Error("task callback must be a function");return n.started=!0,jr(t)||(t=[t]),0===t.length?qo(function(){n.drain()}):void F(t,function(t){var i={data:t,priority:o,callback:"function"==typeof u?u:s};n.tasks.splice(e(n.tasks,i,r)+1,0,i),n.tasks.length===n.concurrency&&n.saturated(),n.tasks.length<=n.concurrency-n.buffer&&n.unsaturated(),qo(n.process)})}var u=kt(n,t);return u.push=function(n,t,r){o(u,n,t,r)},delete u.unshift,u}function At(n,t){return function(r,e){if(null==r)return r;if(!h(r))return n(r,e);for(var o=r.length,u=t?o:-1,i=Object(r);(t?u--:++u<o)&&e(i[u],u,i)!==!1;);return r}}function Lt(n,t){return"function"==typeof t&&jr(n)?F(n,t):au(n,Wn(t))}function xt(n,t){return t=p(t||s),jr(n)?n.length?void Lt(n,function(n){n(t)}):t():t(new TypeError("First argument to race must be an array of functions"))}function It(n,t,r,e){var o=fu.call(n).reverse();nt(o,t,r,e)}function Tt(n){return f(function(t,r){return t.push(a(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 Mt(n,t,r,e){gt(n,t,function(n,t){r(n,function(n,r){n?t(n):t(null,!r)})},e)}function $t(n){return n.map(Tt)}function zt(n,t){return Ot(Ro,n,t)}function Ft(n,t,r){function e(n,t){if("object"==typeof t)n.times=+t.times||i,n.interval=+t.interval||c;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");n.times=+t||i}}function o(n){return function(r){t(function(t,e){r(!t||n,{err:t,result:e})})}}function u(n){return function(t){setTimeout(function(){t(null)},n)}}var i=5,c=0,a={times:i,interval:c};if(arguments.length<3&&"function"==typeof n?(r=t||s,t=n):(e(a,n),r=r||s),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");for(var f=[];a.times;){var l=!(a.times-=1);f.push(o(l)),!l&&a.interval>0&&f.push(u(a.interval))}zt(f,function(n,t){t=t[t.length-1],r(t.err,t.result)})}function Pt(n,t){return t||(t=n,n=null),f(function(r,e){function o(n){t.apply(null,r.concat([n]))}n?Ft(n,o,e):Ft(o,e)})}function Dt(n,t,r){function e(n,t){var r=n.criteria,e=t.criteria;return e>r?-1:r>e?1:0}Lr(n,function(n,r){t(n,function(t,e){return t?r(t):void r(null,{value:n,criteria:e})})},function(n,t){return n?r(n):void r(null,kn(t.sort(e),y("value")))})}function Bt(n,t,r){function e(){c||(u.apply(null,arguments),clearTimeout(i))}function o(){var t=n.name||"anonymous",e=new Error('Callback function "'+t+'" timed out.');e.code="ETIMEDOUT",r&&(e.info=r),c=!0,u(e)}var u,i,c=!1;return f(function(r,c){u=c,i=setTimeout(o,t),n.apply(null,r.concat(e))})}function Ut(n,t,r,e){for(var o=-1,u=du(mu((t-n)/(r||1)),0),i=Array(u);u--;)i[e?u:++o]=n,n+=r;return i}function Ct(n,t,r,e){return Ar(Ut(0,n,1),t,r,e)}function qt(n,t,r,e){3===arguments.length&&(e=r,r=t,t=jr(n)?[]:{}),No(n,function(n,e,o){r(t,n,e,o)},function(n){e(n,t)})}function Rt(n){return function(){return(n.unmemoized||n).apply(null,arguments)}}function Wt(n,t,r){return st(function(){return!n.apply(this,arguments)},t,r)}function Nt(n,t){function r(o){if(e===n.length)return t.apply(null,[null].concat(o));var u=x(a(function(n,e){return n?t.apply(null,[n].concat(e)):void r(e)}));o.push(u);var i=n[e++];i.apply(null,o)}if(t=p(t||s),!jr(n))return t(new Error("First argument to waterfall must be an array of functions"));if(!n.length)return t();var e=0;r([])}var Vt="[object Function]",Qt="[object GeneratorFunction]",Gt=Object.prototype,Ht=Gt.toString,Jt="[object Symbol]",Kt=Object.prototype,Xt=Kt.toString,Yt=NaN,Zt=/^\s+|\s+$/g,nr=/^[-+]0x[0-9a-f]+$/i,tr=/^0b[01]+$/i,rr=/^0o[0-7]+$/i,er=parseInt,or=1/0,ur=1.7976931348623157e308,ir="Expected a function",cr=Math.max,ar=y("length"),fr=9007199254740991,lr="function"==typeof Symbol&&Symbol.iterator,sr=Object.getPrototypeOf,pr=Object.prototype,yr=pr.hasOwnProperty,vr=Object.keys,hr="[object Arguments]",mr=Object.prototype,dr=mr.hasOwnProperty,gr=mr.toString,br=mr.propertyIsEnumerable,jr=Array.isArray,wr="[object String]",_r=Object.prototype,Or=_r.toString,Sr=9007199254740991,kr=/^(?:0|[1-9]\d*)$/,Er=Object.prototype,Ar=T(M),Lr=$(Ar,1/0),xr=l(Lr),Ir=$(Ar,1),Tr=l(Ir),Mr=a(function(n,t){return a(function(r){return n.apply(null,t.concat(r))})}),$r=P(),zr=Array.prototype,Fr=zr.splice,Pr=/[\\^$.*+?()[\]{}|]/g,Dr=/^\[object .+?Constructor\]$/,Br=Object.prototype,Ur=Function.prototype.toString,Cr=Br.hasOwnProperty,qr=RegExp("^"+Ur.call(Cr).replace(Pr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rr=J(Object,"create"),Wr=Object.prototype;K.prototype=Rr?Rr(null):Wr;var Nr={"function":!0,object:!0},Vr=Nr[typeof n]&&n&&!n.nodeType?n:void 0,Qr=Nr[typeof module]&&module&&!module.nodeType?module:void 0,Gr=X(Vr&&Qr&&"object"==typeof global&&global),Hr=X(Nr[typeof self]&&self),Jr=X(Nr[typeof window]&&window),Kr=X(Nr[typeof this]&&this),Xr=Gr||Jr!==(Kr&&Kr.window)&&Jr||Hr||Kr||Function("return this")(),Yr=J(Xr,"Map"),Zr=Object.prototype,ne=Zr.hasOwnProperty,te="__lodash_hash_undefined__",re=Object.prototype,ee=re.hasOwnProperty,oe="__lodash_hash_undefined__";ln.prototype.clear=Y,ln.prototype["delete"]=rn,ln.prototype.get=on,ln.prototype.has=un,ln.prototype.set=fn;var ue=200;pn.prototype.clear=B,pn.prototype["delete"]=R,pn.prototype.get=N,pn.prototype.has=Q,pn.prototype.set=sn;var ie=1,ce=2,ae=Xr.Symbol,fe=Xr.Uint8Array,le=1,se=2,pe="[object Boolean]",ye="[object Date]",ve="[object Error]",he="[object Map]",me="[object Number]",de="[object RegExp]",ge="[object Set]",be="[object String]",je="[object Symbol]",we="[object ArrayBuffer]",_e="[object DataView]",Oe=ae?ae.prototype:void 0,Se=Oe?Oe.valueOf:void 0,ke=2,Ee=J(Xr,"DataView"),Ae=J(Xr,"Promise"),Le=J(Xr,"Set"),xe=J(Xr,"WeakMap"),Ie="[object Map]",Te="[object Object]",Me="[object Promise]",$e="[object Set]",ze="[object WeakMap]",Fe="[object DataView]",Pe=Object.prototype,De=Function.prototype.toString,Be=Pe.toString,Ue=Ee?Ee+"":"",Ce=Yr?De.call(Yr):"",qe=Ae?De.call(Ae):"",Re=Le?De.call(Le):"",We=xe?De.call(xe):"";(Ee&&bn(new Ee(new ArrayBuffer(1)))!=Fe||Yr&&bn(new Yr)!=Ie||Ae&&bn(Ae.resolve())!=Me||Le&&bn(new Le)!=$e||xe&&bn(new xe)!=ze)&&(bn=function(n){var t=Be.call(n),r=t==Te?n.constructor:null,e="function"==typeof r?De.call(r):"";if(e)switch(e){case Ue:return Fe;case Ce:return Ie;case qe:return Me;case Re:return $e;case We:return ze}return t});var Ne=bn,Ve="[object Arguments]",Qe="[object Array]",Ge="[object Boolean]",He="[object Date]",Je="[object Error]",Ke="[object Function]",Xe="[object Map]",Ye="[object Number]",Ze="[object Object]",no="[object RegExp]",to="[object Set]",ro="[object String]",eo="[object WeakMap]",oo="[object ArrayBuffer]",uo="[object DataView]",io="[object Float32Array]",co="[object Float64Array]",ao="[object Int8Array]",fo="[object Int16Array]",lo="[object Int32Array]",so="[object Uint8Array]",po="[object Uint8ClampedArray]",yo="[object Uint16Array]",vo="[object Uint32Array]",ho={};ho[io]=ho[co]=ho[ao]=ho[fo]=ho[lo]=ho[so]=ho[po]=ho[yo]=ho[vo]=!0,ho[Ve]=ho[Qe]=ho[oo]=ho[Ge]=ho[uo]=ho[He]=ho[Je]=ho[Ke]=ho[Xe]=ho[Ye]=ho[Ze]=ho[no]=ho[to]=ho[ro]=ho[eo]=!1;var mo=Object.prototype,go=mo.toString,bo=2,jo="[object Arguments]",wo="[object Array]",_o="[object Object]",Oo=Object.prototype,So=Oo.hasOwnProperty,ko=1,Eo=2,Ao="Expected a function";In.Cache=ln;var Lo,xo=1/0,Io=ae?ae.prototype:void 0,To=Io?Io.toString:void 0,Mo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,$o=/\\(\\)?/g,zo=In(function(n){var t=[];return Tn(n).replace(Mo,function(n,r,e,o){t.push(e?o.replace($o,"$1"):r||n)}),t}),Fo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Po=/^\w*$/,Do=1,Bo=2,Uo=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,Co="function"==typeof setImmediate&&setImmediate;Lo=Co?Co:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:function(n){setTimeout(n,0)};var qo=a(function(n,t){Lo(function(){n.apply(null,t)})}),Ro=$(Zn,1),Wo=Array.prototype.reverse,No=$(Zn,1/0),Vo=ot(et),Qo=ut(et),Go=a(function(n){var t=[null].concat(n);return f(function(n,r){return r.apply(this,t)})}),Ho=it(No,Cn,ct),Jo=it(Zn,Cn,ct),Ko=it(Ro,Cn,ct),Xo=at("dir"),Yo=$(ht,1/0),Zo=$(ht,1),nu=it(Zn,dt,dt),tu=$(nu,1/0),ru=$(nu,1),eu=T(gt),ou=$(eu,1/0),uu=$(eu,1),iu=at("log"),cu=$(St,1/0),au=At(D),fu=Array.prototype.slice,lu=T(Mt),su=$(lu,1/0),pu=$(lu,1),yu=it(Zn,Boolean,Cn),vu=$(yu,1/0),hu=$(yu,1),mu=Math.ceil,du=Math.max,gu=$(Ct,1/0),bu=$(Ct,1),ju={applyEach:xr,applyEachSeries:Tr,apply:Mr,asyncify:z,auto:Gn,autoInject:Kn,cargo:Yn,compose:rt,concat:Vo,concatSeries:Qo,constant:Go,detect:Ho,detectLimit:Jo,detectSeries:Ko,dir:Xo,doDuring:lt,doUntil:yt,doWhilst:pt,during:ft,each:Yo,eachLimit:ht,eachOf:No,eachOfLimit:Zn,eachOfSeries:Ro,eachSeries:Zo,ensureAsync:mt,every:tu,everyLimit:nu,everySeries:ru,filter:ou,filterLimit:eu,filterSeries:uu,forever:bt,iterator:jt,log:iu,map:Lr,mapLimit:Ar,mapSeries:Ir,memoize:_t,nextTick:qo,parallel:cu,parallelLimit:St,priorityQueue:Et,queue:kt,race:xt,reduce:nt,reduceRight:It,reflect:Tt,reflectAll:$t,reject:su,rejectLimit:lu,rejectSeries:pu,retry:Ft,retryable:Pt,seq:tt,series:zt,setImmediate:qo,some:vu,someLimit:yu,someSeries:hu,sortBy:Dt,timeout:Bt,times:gu,timesLimit:Ct,timesSeries:bu,transform:qt,unmemoize:Rt,until:Wt,waterfall:Nt,whilst:st,all:tu,any:vu,forEach:Yo,forEachSeries:Zo,forEachLimit:ht,forEachOf:No,forEachOfSeries:Ro,forEachOfLimit:Zn,inject:nt,foldl:nt,foldr:It,select:ou,selectLimit:eu,selectSeries:uu,wrapSync:z};n["default"]=ju,n.applyEach=xr,n.applyEachSeries=Tr,n.apply=Mr,n.asyncify=z,n.auto=Gn,n.autoInject=Kn,n.cargo=Yn,n.compose=rt,n.concat=Vo,n.concatSeries=Qo,n.constant=Go,n.detect=Ho,n.detectLimit=Jo,n.detectSeries=Ko,n.dir=Xo,n.doDuring=lt,n.doUntil=yt,n.doWhilst=pt,n.during=ft,n.each=Yo,n.eachLimit=ht,n.eachOf=No,n.eachOfLimit=Zn,n.eachOfSeries=Ro,n.eachSeries=Zo,n.ensureAsync=mt,n.every=tu,n.everyLimit=nu,n.everySeries=ru,n.filter=ou,n.filterLimit=eu,n.filterSeries=uu,n.forever=bt,n.iterator=jt,n.log=iu,n.map=Lr,n.mapLimit=Ar,n.mapSeries=Ir,n.memoize=_t,n.nextTick=qo,n.parallel=cu,n.parallelLimit=St,n.priorityQueue=Et,n.queue=kt,n.race=xt,n.reduce=nt,n.reduceRight=It,n.reflect=Tt,n.reflectAll=$t,n.reject=su,n.rejectLimit=lu,n.rejectSeries=pu,n.retry=Ft,n.retryable=Pt,n.seq=tt,n.series=zt,n.setImmediate=qo,n.some=vu,n.someLimit=yu,n.someSeries=hu,n.sortBy=Dt,n.timeout=Bt,n.times=gu,n.timesLimit=Ct,n.timesSeries=bu,n.transform=qt,n.unmemoize=Rt,n.until=Wt,n.waterfall=Nt,n.whilst=st,n.all=tu,n.allLimit=nu,n.allSeries=ru,n.any=vu,n.anyLimit=yu,n.anySeries=hu,n.find=Ho,n.findLimit=Jo,n.findSeries=Ko,n.forEach=Yo,n.forEachSeries=Zo,n.forEachLimit=ht,n.forEachOf=No,n.forEachOfSeries=Ro,n.forEachOfLimit=Zn,n.inject=nt,n.foldl=nt,n.foldr=It,n.select=ou,n.selectLimit=eu,n.selectSeries=uu,n.wrapSync=z});
//# sourceMappingURL=dist/async.min.map \ No newline at end of file
diff --git a/dist/async.min.map b/dist/async.min.map
index f6fc563..c2e73cd 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","toNumber","other","valueOf","replace","reTrim","isBinary","reIsBinary","test","reIsOctal","freeParseInt","slice","reIsBadHex","NAN","toInteger","INFINITY","sign","MAX_INTEGER","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","noop","before","n","result","FUNC_ERROR_TEXT$1","once","baseProperty","key","object","isLength","MAX_SAFE_INTEGER","isArrayLike","getLength","getIterator","coll","iteratorSymbol","baseHas","hasOwnProperty","getPrototypeOf","baseKeys","nativeKeys","Object","baseTimes","iteratee","isObjectLike","isArrayLikeObject","isArguments","hasOwnProperty$1","propertyIsEnumerable","objectToString$1","argsTag","isString","isArray","objectToString$2","stringTag","indexKeys","String","isIndex","reIsUint","MAX_SAFE_INTEGER$1","isPrototype","Ctor","constructor","proto","prototype","objectProto$4","keys","isProto","indexes","skipIndexes","push","iterator","len","i","iterate","item","next","done","okeys","onlyOnce","Error","_eachOfLimit","limit","obj","nextElem","running","errored","replenish","elem","err","eachOfLimit","doLimit","iterable","asyncify","e","then","message","arrayEach","identity","baseCastFunction","createBaseFor","fromRight","keysFunc","props","baseForOwn","baseFor","forOwn","indexOfNaN","fromIndex","baseIndexOf","indexOf","nativeMax$1","auto","tasks","concurrency","enqueueTask","task","readyTasks","runTask","processQueue","runningTasks","results","run","shift","addListener","taskName","taskListeners","listeners","taskComplete","hasError","taskCallback","safeResults","val","rkey","taskFn","keys$$","numTasks","checkForDeadlocks","dep","dependencies","join","remainingDependencies","dependencyName","arrayMap","stackClear","__data__","map","eq","assocIndexOf","assocDelete","lastIndex","splice","stackDelete","data","assocGet","stackGet","get","assocHas","stackHas","has","isHostObject","toString","isNative","reIsNative","funcToString","reIsHostCtor","getNative","Hash","checkGlobal","mapClear","hash","Map","string","hashHas","nativeCreate","hasOwnProperty$3","hashDelete","isKeyable","mapDelete","hashGet","HASH_UNDEFINED","hasOwnProperty$4","mapGet","mapHas","assocSet","hashSet","HASH_UNDEFINED$1","mapSet","set","MapCache","values","clear","entry","stackSet","LARGE_ARRAY_SIZE","Stack","assignValue","objValue","hasOwnProperty$5","copyObjectWith","source","customizer","newValue","copyObject","baseAssign","cloneBuffer","buffer","isDeep","copy","copyArray","copySymbols","getSymbols","getTag","objectToString$3","initCloneArray","hasOwnProperty$6","input","cloneArrayBuffer","arrayBuffer","byteLength","Uint8Array","addMapEntry","pair","arrayReduce","accumulator","initAccum","mapToArray","size","forEach","cloneMap","cloneRegExp","regexp","reFlags","exec","addSetEntry","add","setToArray","cloneSet","cloneSymbol","symbol","symbolValueOf","cloneTypedArray","typedArray","byteOffset","initCloneByTag","arrayBufferTag$1","boolTag$1","dateTag$1","float32Tag$1","float64Tag$1","int8Tag$1","int16Tag$1","int32Tag$1","uint8Tag$1","uint8ClampedTag$1","uint16Tag$1","uint32Tag$1","mapTag$2","numberTag$1","stringTag$2","regexpTag$1","setTag$2","symbolTag$1","baseCreate","objectCreate","initCloneObject","getPrototypeOf$1","constant","baseClone","isFull","stack","isArr","getTag$1","isFunc","funcTag$1","genTag$1","isBuffer","objectTag","argsTag$1","cloneableTags","stacked","subValue","parseParams","match","argsRegex","split","autoInject","newTasks","newTask","taskCb","newArgs","params","name","queue","worker","payload","_insert","q","pos","started","idle","setImmediate$1","drain","unshift","process","_next","workers","removed","workersList","unsaturated","saturated","empty","paused","kill","pause","resume","resumeCount","Math","min","w","cargo","reduce","arr","memo","eachOfSeries","x","v","seq","newargs","nextargs","compose","reverse","concat$1","y","doParallel","eachOf","doSeries","_createTester","check","getResult","wrappedIteratee","_findGetResult","consoleFunc","console","error","during","truth","doDuring","calls","whilst","doWhilst","doUntil","_withoutIndex","eachLimit","ensureAsync","sync","innerArgs","notId","_filter","sort","a","b","doParallelLimit","forever","iterator$1","makeCallback","_asyncMap","isSymbol","objectToString$4","symbolTag$2","symbolToString","INFINITY$1","stringToPath","rePropName","number","quote","reEscapeChar","baseCastPath","isKey","reIsPlainProp","reIsDeepProp","last","baseSlice","end","baseGet","path","defaultValue","parent","hasPath","hasFunc","memoize","hasher","create","queues","memoized","l","unmemoized","_parallel","parallelLimit","queue$1","items","priorityQueue","_compareTasks","priority","_binarySearch","sequence","compare","beg","mid","createBaseEach","eachFunc","collection","baseEach","race","reduceRight","reversed","reject$1","series","retry","times","parseTimes","acc","t","DEFAULT_TIMES","interval","DEFAULT_INTERVAL","retryAttempt","isFinalAttempt","seriesCallback","retryInterval","setTimeout","opts","attempts","retryable","sortBy","comparator","left","right","criteria","timeout","asyncFn","miliseconds","injectedCallback","timedOut","originalCallback","clearTimeout","timer","timeoutCallback","code","origCallback","baseRange","step","nativeMax$2","nativeCeil","timeLimit","count","mapLimit","transform","k","unmemoize","until","waterfall","nextTask","taskIndex","objectProto","parseInt","max","Symbol","objectProto$1","objectProto$2","objectProto$3","Infinity","applyEach","applyEachSeries","apply$1","callArgs","arrayProto","reRegExpChar","objectProto$6","Function","hasOwnProperty$2","RegExp","objectProto$5","objectTypes","function","freeExports","nodeType","freeModule","freeGlobal","freeSelf","self","freeWindow","window","thisGlobal","root","objectProto$7","objectProto$8","objectProto$9","getOwnPropertySymbols","Set","WeakMap","mapTag$1","objectTag$1","setTag$1","weakMapTag$1","objectProto$10","funcToString$1","mapCtorString","setCtorString","weakMapCtorString","ctorString","objectProto$11","Symbol$1","symbolProto","objectTypes$1","freeExports$1","freeModule$1","moduleExports","Buffer","arrayTag","boolTag","dateTag","errorTag","mapTag","numberTag","regexpTag","setTag","stringTag$1","symbolTag","weakMapTag","arrayBufferTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","_defer","_setImmediate","setImmediate","nextTick","concatSeries","constant$1","ignoredArgs","detect","detectLimit","detectSeries","dir","each","eachSeries","everyLimit","every","everySeries","filterLimit","filter","filterSeries","log","mapSeries","objectProto$12","symbolProto$1","parallel","rejectLimit","reject","rejectSeries","someLimit","Boolean","some","someSeries","ceil","timesSeries","timesLimit","all","any","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,GAASD,EAAKC,MAClB,QAAQA,GACN,IAAK,GAAG,MAAOH,GAAKI,KAAKH,EACzB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B,IAAMN,GACdlmB,EAAQunB,SAAWvB,GACnBhmB,EAAQwnB,UAAYrB,GACpBnmB,EAAQynB,KAAO7C,GACf5kB,EAAQ0nB,UAAY7C,GACpB7kB,EAAQ2nB,WAAa7C,GACrB9kB,EAAQ6Q,QAAUmU,GAClBhlB,EAAQymB,cAAgBxB,GACxBjlB,EAAQ0mB,aAAehO,GACvB1Y,EAAQ2mB,UAAYnP,GACpBxX,EAAQ4mB,gBAAkB/P,GAC1B7W,EAAQ6mB,eAAiB1e,EACzBnI,EAAQ8mB,OAASpQ,GACjB1W,EAAQ+mB,MAAQrQ,GAChB1W,EAAQgnB,MAAQzK,GAChBvc,EAAQinB,OAAS3B,GACjBtlB,EAAQknB,YAAc7B,GACtBrlB,EAAQmnB,aAAe5B,GACvBvlB,EAAQonB,SAAW9e"} \ 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","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","toInteger","INFINITY","sign","MAX_INTEGER","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","noop","once","baseProperty","key","object","isLength","MAX_SAFE_INTEGER","isArrayLike","getLength","getIterator","coll","iteratorSymbol","getPrototype","nativeGetPrototype","Object","baseHas","hasOwnProperty","baseKeys","nativeKeys","baseTimes","n","iteratee","result","isArrayLikeObject","isArguments","hasOwnProperty$1","propertyIsEnumerable","objectToString$2","argsTag","isString","isArray","objectToString$3","stringTag","indexKeys","String","isIndex","reIsUint","MAX_SAFE_INTEGER$1","isPrototype","Ctor","constructor","proto","prototype","objectProto$5","keys","isProto","indexes","skipIndexes","push","iterator","len","i","iterate","item","next","done","okeys","onlyOnce","Error","_eachOfLimit","limit","obj","nextElem","running","errored","replenish","elem","err","doParallelLimit","_asyncMap","arr","results","v","doLimit","iterable","asyncify","e","then","message","arrayEach","createBaseFor","fromRight","keysFunc","props","baseForOwn","baseFor","stackClear","__data__","map","eq","assocIndexOf","assocDelete","lastIndex","splice","stackDelete","data","assocGet","stackGet","get","assocHas","stackHas","has","isHostObject","toString","isNative","reIsNative","funcToString","reIsHostCtor","getNative","Hash","checkGlobal","mapClear","hash","Map","string","hashHas","nativeCreate","hasOwnProperty$3","hashDelete","isKeyable","mapDelete","hashGet","HASH_UNDEFINED","hasOwnProperty$4","mapGet","mapHas","assocSet","hashSet","HASH_UNDEFINED$1","mapSet","set","MapCache","values","clear","entry","stackSet","LARGE_ARRAY_SIZE","Stack","arraySome","predicate","equalArrays","equalFunc","customizer","bitmask","stack","isPartial","PARTIAL_COMPARE_FLAG$2","isUnordered","UNORDERED_COMPARE_FLAG$1","arrLength","othLength","stacked","arrValue","othValue","compared","mapToArray","size","forEach","setToArray","equalByTag","dataViewTag","byteLength","byteOffset","buffer","arrayBufferTag","Uint8Array","boolTag","dateTag","errorTag","name","numberTag","regexpTag","stringTag$1","mapTag","convert","setTag","PARTIAL_COMPARE_FLAG$3","UNORDERED_COMPARE_FLAG$2","symbolTag$1","symbolValueOf","equalObjects","PARTIAL_COMPARE_FLAG$4","objProps","objLength","othProps","skipCtor","objValue","objCtor","othCtor","getTag","objectToString$4","isTypedArray","typedArrayTags","objectToString$5","baseIsEqualDeep","objIsArr","othIsArr","objTag","arrayTag","othTag","getTag$1","argsTag$1","objectTag","objIsObj","othIsObj","isSameTag","PARTIAL_COMPARE_FLAG$1","objIsWrapped","hasOwnProperty$5","othIsWrapped","objUnwrapped","othUnwrapped","baseIsEqual","baseIsMatch","source","matchData","noCustomizer","srcValue","UNORDERED_COMPARE_FLAG","PARTIAL_COMPARE_FLAG","isStrictComparable","arrayMap","baseToPairs","toPairs","getMatchData","baseMatches","memoize","resolver","FUNC_ERROR_TEXT$1","memoized","cache","Cache","symbolToString","INFINITY$1","baseCastPath","stringToPath","isKey","reIsPlainProp","reIsDeepProp","baseGet","path","defaultValue","baseHasIn","hasPath","hasFunc","hasIn","baseMatchesProperty","UNORDERED_COMPARE_FLAG$3","PARTIAL_COMPARE_FLAG$5","identity","basePropertyDeep","property","baseIteratee","forOwn","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","keys$$","numTasks","checkForDeadlocks","dep","dependencies","join","remainingDependencies","dependencyName","copyArray","parseParams","match","argsRegex","split","autoInject","newTasks","newTask","taskCb","newArgs","params","unshift","queue","worker","payload","_insert","q","pos","started","idle","setImmediate$1","drain","process","_next","workers","removed","workersList","unsaturated","saturated","empty","paused","kill","pause","resume","resumeCount","Math","min","w","cargo","eachOfLimit","reduce","memo","eachOfSeries","x","seq","newargs","nextargs","compose","reverse","concat$1","y","doParallel","eachOf","doSeries","_createTester","check","getResult","wrappedIteratee","_","_findGetResult","consoleFunc","console","error","during","truth","doDuring","calls","whilst","doWhilst","doUntil","_withoutIndex","eachLimit","ensureAsync","sync","innerArgs","notId","_filter","sort","a","b","forever","iterator$1","makeCallback","memoize$1","hasher","create","queues","l","unmemoized","_parallel","parallelLimit","queue$1","items","priorityQueue","_compareTasks","priority","_binarySearch","sequence","compare","beg","end","mid","createBaseEach","eachFunc","collection","baseEach","race","reduceRight","reversed","reflect","reflectCallback","cbArgs","reject$1","reflectAll","series","retry","times","parseTimes","acc","t","DEFAULT_TIMES","interval","DEFAULT_INTERVAL","retryAttempt","isFinalAttempt","seriesCallback","retryInterval","setTimeout","opts","attempts","retryable","sortBy","comparator","left","right","criteria","timeout","asyncFn","miliseconds","info","injectedCallback","timedOut","originalCallback","clearTimeout","timer","timeoutCallback","code","origCallback","baseRange","step","nativeMax$1","nativeCeil","timeLimit","count","mapLimit","transform","k","unmemoize","until","waterfall","nextTask","taskIndex","objectProto","objectProto$1","parseInt","max","Symbol","getPrototypeOf","objectProto$2","objectProto$3","objectProto$4","Infinity","applyEach","mapSeries","applyEachSeries","apply$1","callArgs","arrayProto","reRegExpChar","objectProto$7","Function","hasOwnProperty$2","RegExp","objectProto$6","objectTypes","function","freeExports","nodeType","freeModule","freeGlobal","freeSelf","self","freeWindow","window","thisGlobal","root","objectProto$8","objectProto$9","Symbol$1","symbolProto","DataView","Promise","Set","WeakMap","mapTag$1","objectTag$1","promiseTag","setTag$1","weakMapTag","dataViewTag$1","objectProto$11","funcToString$1","dataViewCtorString","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","ArrayBuffer","resolve","ctorString","argsTag$2","arrayTag$1","boolTag$1","dateTag$1","errorTag$1","funcTag$1","mapTag$2","numberTag$1","objectTag$2","regexpTag$1","setTag$2","stringTag$2","weakMapTag$1","arrayBufferTag$1","dataViewTag$2","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","objectProto$12","objectProto$10","_defer","symbolProto$1","rePropName","reEscapeChar","number","quote","_setImmediate","setImmediate","nextTick","concatSeries","constant","ignoredArgs","detect","detectLimit","detectSeries","dir","each","eachSeries","everyLimit","every","everySeries","filterLimit","filter","filterSeries","log","parallel","rejectLimit","reject","rejectSeries","someLimit","Boolean","some","someSeries","ceil","timesSeries","timesLimit","all","any","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,GAA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jBvY,EAAQioB,MAAQ1P,GAChBvY,EAAQkoB,MAAQxL,GAChB1c,EAAQmoB,OAASxB,GACjB3mB,EAAQooB,YAAc1B,GACtB1mB,EAAQqoB,aAAezB,GACvB5mB,EAAQsoB,SAAW3f"} \ No newline at end of file
diff --git a/package.json b/package.json
index 4d3c462..45fd5de 100644
--- a/package.json
+++ b/package.json
@@ -90,4 +90,4 @@
"tests"
]
}
-}
+} \ No newline at end of file