Update docs, dist builds, and fix build.

Former-commit-id: 95a2ae15735b2c98f24c20b8dc894c2832ac107b
This commit is contained in:
John-David Dalton
2013-08-03 19:26:05 -07:00
parent aa465a12aa
commit f623a4ecef
9 changed files with 244 additions and 223 deletions

View File

@@ -41,7 +41,7 @@ For more information check out these articles, screencasts, and other videos ove
- [Lo-Dashs approach to native method use](https://vimeo.com/48576012)
- [CascadiaJS: Lo-Dash for a better utility belt](http://www.youtube.com/watch?v=dpPy4f_SeEk)
## Features
## Features you wont find in Underscore
* AMD loader support ([RequireJS](http://requirejs.org/), [curl.js](https://github.com/cujojs/curl), [dojo](https://github.com/dojo/dojo), etc.)
* [_(…)](http://lodash.com/docs#_) supports intuitive chaining
@@ -58,7 +58,7 @@ For more information check out these articles, screencasts, and other videos ove
* [_.isPlainObject](http://lodash.com/docs#isPlainObject) checks if values are created by the `Object` constructor
* [_.merge](http://lodash.com/docs#merge) for a deep [_.extend](http://lodash.com/docs#extend)
* [_.parseInt](http://lodash.com/docs#parseInt) for consistent cross-environment behavior
* [_.partial](http://lodash.com/docs#partial) and [_.partialRight](http://lodash.com/docs#partialRight) for partial application without `this` binding
* [_.partialRight](http://lodash.com/docs#partialRight) and [friends](http://lodash.com/docs#partial) for partial application without `this` binding
* [_.runInContext](http://lodash.com/docs#runInContext) for easier mocking and extended environment support
* [_.support](http://lodash.com/docs#support) to flag environment features
* [_.template](http://lodash.com/docs#template) supports [*“imports”* options](http://lodash.com/docs#templateSettings_imports), [ES6 template delimiters](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6), and [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)

View File

@@ -172,6 +172,7 @@
'keys': ['isArguments', 'isObject', 'shimKeys'],
'last': ['createCallback', 'slice'],
'lastIndexOf': [],
'lodash': ['isArray', 'lodashWrapper'],
'map': ['baseEach', 'createCallback', 'isArray'],
'max': ['baseEach', 'charAtCallback', 'createCallback', 'isArray', 'isString'],
'memoize': [],
@@ -218,7 +219,7 @@
'wrap': [],
'wrapperChain': [],
'wrapperToString': [],
'wrapperValueOf': ['baseEach', 'forOwn', 'mixin', 'wrapperChain', 'wrapperToString'],
'wrapperValueOf': [],
'zip': ['max', 'pluck'],
'zipObject': [],
@@ -247,7 +248,6 @@
'getObject': [],
'isNode': [],
'iteratorTemplate': [],
'lodash': ['isArray', 'lodashWrapper'],
'lodashWrapper': [],
'noop': [],
'releaseArray': [],
@@ -1641,6 +1641,9 @@
function removeChaining(source) {
source = removeSpliceObjectsFix(source);
// remove `_.mixin` call
source = source.replace(/(?:\s*\/\/.*)*\s*mixin\(lodash\).+/, '');
// remove all `lodash.prototype` additions
source = source
.replace(/(?:\s*\/\/.*)*\n( *)forOwn\(lodash,[\s\S]+?\n\1}.+/g, '')
@@ -1654,7 +1657,7 @@
'}'
].join('\n'));
//replace `lodashWrapper` with `lodash` in `_.mixin`
// replace `lodashWrapper` with `lodash` in `_.mixin`
source = source.replace(matchFunction(source, 'mixin'), function(match) {
return match.replace(/\blodashWrapper\b/, 'lodash');
});
@@ -2800,6 +2803,23 @@
_.pull(deps, 'reNative');
});
}
if (isModularize) {
funcDepMap.lodash.push('support', 'baseEach', 'forOwn', 'mixin');
_.forOwn(funcDepMap, function(deps, funcName) {
if (_.contains(deps, 'getIndexOf')) {
_.pull(deps, 'getIndexOf').push('baseIndexOf');
}
});
}
else {
funcDepMap.chain.push('wrapperChain');
funcDepMap.wrapperValueOf.push('baseEach', 'chain', 'forOwn', 'lodash', 'mixin', 'wrapperChain', 'wrapperToString');
_.each(['lodashWrapper', 'tap', 'wrapperChain', 'wrapperToString'], function(funcName) {
funcDepMap[funcName].push('wrapperValueOf');
});
}
if (isMobile) {
_.each(['assign', 'defaults'], function(funcName) {
_.pull(funcDepMap[funcName], 'keys');
@@ -2957,7 +2977,7 @@
});
}
if (!isMobile) {
_.each(['baseClone', 'transform', 'wrapperValueOf'], function(funcName) {
_.each(['baseClone', 'lodash', 'transform', 'wrapperValueOf'], function(funcName) {
_.pull(funcDepMap[funcName], 'baseEach').push('forEach');
});
@@ -2978,17 +2998,6 @@
});
}
}
if (isModularize) {
_.pull(funcDepMap.wrapperValueOf, 'wrapperChain', 'wrapperToString');
push.apply(funcDepMap.lodash, ['support'].concat(funcDepMap.wrapperValueOf));
funcDepMap.wrapperValueOf.length = 0;
_.forOwn(funcDepMap, function(deps, funcName) {
if (_.contains(deps, 'getIndexOf')) {
_.pull(deps, 'getIndexOf').push('baseIndexOf');
}
});
}
// add function names explicitly
if (includeFuncs.length) {
result = includeFuncs;
@@ -3073,7 +3082,7 @@
return match.replace(/\bnativeIsArray\s*\|\|\s*/, '');
});
// replace `createObject` and `isArguments` with their forks
// replace `createObject` and `_.isArguments` with their forks
_.forOwn({
'createObject': [getCreateObjectFork, removeCreateObjectFork],
'isArguments': [getIsArgumentsFork, removeIsArgumentsFork]
@@ -3824,7 +3833,9 @@
// remove support for a `step` of `0` in `_.range`
if (!isLodash('range')) {
source = source.replace(matchFunction(source, 'range'), function(match) {
return match.replace(/typeof *step[^:]+:/, '+step ||');
return match
.replace(/typeof *step[^:]+:/, '+step ||')
.replace(/\(step.*\|\|.+?\)/, 'step')
});
}
@@ -4146,16 +4157,16 @@
// modify/remove references to removed functions/variables
if (!isTemplate) {
if (isExcluded('lodash')) {
source = removeChaining(source);
if (isExcluded(isNoDep ? 'lodash' : 'lodashWrapper')) {
// remove `lodashWrapper.prototype` assignment
source = source.replace(/(?:\s*\/\/.*)*\n *lodashWrapper\.prototype *=.+/, '');
}
if (isExcluded(isNoDep ? 'lodash' : 'mixin')) {
// remove `_.mixin` call
source = source.replace(/(?:\s*\/\/.*)*\s*mixin\(lodash\).+/, '');
}
if (isExcluded(isNoDep ? 'lodash' : 'lodashWrapper')) {
// remove `lodashWrapper.prototype` assignment
source = source.replace(/(?:\s*\/\/.*)*\n *lodashWrapper\.prototype *=.+/, '');
if (isExcluded(isNoDep ? 'lodash' : 'wrapperValueOf')) {
source = removeChaining(source);
}
if (!isNoDep) {
if (isExcluded('bind')) {
@@ -4221,9 +4232,7 @@
source = removeFunction(source, funcName);
if (!isNoDep) {
source = removeFromCreateIterator(source, funcName);
_.each(getAliases(funcName, funcDepMap).concat(funcName), function(funcName) {
source = source.replace(RegExp('^(?: *//.*\\s*)* *lodash(?:\\.prototype)?\\.' + funcName + ' *=[\\s\\S]+?;\\n', 'gm'), '');
});
source = source.replace(RegExp('^(?: *//.*\\s*)* *lodash(?:\\.prototype)?\\.\\w+ *= *' + funcName + ';\\n', 'gm'), '');
}
}
});

71
dist/lodash.compat.js vendored
View File

@@ -578,7 +578,7 @@
* `sortedIndex`, `runInContext`, `template`, `unescape`, `uniqueId`, and `value`
*
* The wrapper functions `first` and `last` return wrapped values when `n` is
* passed, otherwise they return unwrapped values.
* provided, otherwise they return unwrapped values.
*
* @name _
* @constructor
@@ -1386,14 +1386,14 @@
/**
* Creates a function that, when called, invokes `func` with the `this` binding
* of `thisArg` and prepends any `partialArgs` to the arguments passed to the
* of `thisArg` and prepends any `partialArgs` to the arguments provided to the
* bound function.
*
* @private
* @param {Function|String} func The function to bind or the method name.
* @param {Mixed} thisArg The `this` binding of `func`.
* @param {Array} partialArgs An array of arguments to be prepended to those passed to the new function.
* @param {Array} partialRightArgs An array of arguments to be appended to those passed to the new function.
* @param {Array} partialArgs An array of arguments to be prepended to those provided to the new function.
* @param {Array} partialRightArgs An array of arguments to be appended to those provided to the new function.
* @param {Boolean} [isPartial=false] A flag to indicate performing only partial application.
* @param {Boolean} [isAlt=false] A flag to indicate `_.bindKey` or `_.partialRight` behavior.
* @returns {Function} Returns the new bound function.
@@ -1932,7 +1932,7 @@
/**
* This method is like `_.findIndex`, except that it returns the key of the
* element that passes the callback check, instead of the element itself.
* first element that passes the callback check, instead of the element itself.
*
* @static
* @memberOf _
@@ -2996,7 +2996,7 @@
* per iteration. If a property name or object is provided, it will be used
* to create a "_.pluck" or "_.where" style callback, respectively.
* @param {Mixed} [thisArg] The `this` binding of `callback`.
* @returns {Boolean} Returns `true` if all elements pass the callback check,
* @returns {Boolean} Returns `true` if all elements passed the callback check,
* else `false`.
* @example
*
@@ -3359,7 +3359,7 @@
/**
* Invokes the method named by `methodName` on each element in the `collection`,
* returning an array of the results of each invoked method. Additional arguments
* will be passed to each invoked method. If `methodName` is a function, it will
* will be provided to each invoked method. If `methodName` is a function, it will
* be invoked for, and `this` bound to, each element in the `collection`.
*
* @static
@@ -3612,7 +3612,7 @@
* Reduces a `collection` to a value which is the accumulated result of running
* each element in the `collection` through the `callback`, where each successive
* `callback` execution consumes the return value of the previous execution.
* If `accumulator` is not passed, the first element of the `collection` will be
* If `accumulator` is not provided, the first element of the `collection` will be
* used as the initial `accumulator` value. The `callback` is bound to `thisArg`
* and invoked with four arguments; (accumulator, value, index|key, collection).
*
@@ -3871,7 +3871,7 @@
* per iteration. If a property name or object is provided, it will be used
* to create a "_.pluck" or "_.where" style callback, respectively.
* @param {Mixed} [thisArg] The `this` binding of `callback`.
* @returns {Boolean} Returns `true` if any element passes the callback check,
* @returns {Boolean} Returns `true` if any element passed the callback check,
* else `false`.
* @example
*
@@ -4050,8 +4050,8 @@
}
/**
* Creates an array excluding all values of the passed-in arrays using
* strict equality for comparisons, i.e. `===`.
* Creates an array excluding all values of the provided arrays using strict
* equality for comparisons, i.e. `===`.
*
* @static
* @memberOf _
@@ -4095,7 +4095,7 @@
}
/**
* This method is like `_.find`, except that it returns the index of the
* This method is like `_.find`, except that it returns the index of the first
* element that passes the callback check, instead of the element itself.
*
* @static
@@ -4403,7 +4403,7 @@
}
/**
* Creates an array of unique values present in all passed-in arrays using
* Creates an array of unique values present in all provided arrays using
* strict equality for comparisons, i.e. `===`.
*
* @static
@@ -4573,7 +4573,7 @@
}
/**
* Removes all passed values from the given array using strict equality for
* Removes all provided values from the given array using strict equality for
* comparisons, i.e. `===`.
*
* @static
@@ -4634,12 +4634,15 @@
* _.range(0, -10, -1);
* // => [0, -1, -2, -3, -4, -5, -6, -7, -8, -9]
*
* _.range(1, 4, 0);
* // => [1, 1, 1]
*
* _.range(0);
* // => []
*/
function range(start, end, step) {
start = +start || 0;
step = +step || 1;
step = typeof step == 'number' ? step : 1;
if (end == null) {
end = start;
@@ -4648,7 +4651,7 @@
// use `Array(length)` so engines, like Chakra and V8, avoid slower modes
// http://youtu.be/XAqIpGU8ZZk#t=17m25s
var index = -1,
length = nativeMax(0, ceil((end - start) / step)),
length = nativeMax(0, ceil((end - start) / (step || 1))),
result = Array(length);
while (++index < length) {
@@ -4798,8 +4801,8 @@
}
/**
* Creates an array of unique values, in order, of the passed-in arrays
* using strict equality for comparisons, i.e. `===`.
* Creates an array of unique values, in order, of the provided arrays using
* strict equality for comparisons, i.e. `===`.
*
* @static
* @memberOf _
@@ -4873,7 +4876,7 @@
}
/**
* Creates an array excluding all passed values using strict equality for
* Creates an array excluding all provided values using strict equality for
* comparisons, i.e. `===`.
*
* @static
@@ -4985,7 +4988,7 @@
/**
* Creates a function that, when called, invokes `func` with the `this`
* binding of `thisArg` and prepends any additional `bind` arguments to those
* passed to the bound function.
* provided to the bound function.
*
* @static
* @memberOf _
@@ -5046,7 +5049,7 @@
/**
* Creates a function that, when called, invokes the method at `object[key]`
* and prepends any additional `bindKey` arguments to those passed to the bound
* and prepends any additional `bindKey` arguments to those provided to the bound
* function. This method differs from `_.bind` by allowing bound functions to
* reference methods that will be redefined or don't yet exist.
* See http://michaux.ca/articles/lazy-function-definition-pattern.
@@ -5083,7 +5086,7 @@
}
/**
* Creates a function that is the composition of the passed functions,
* Creates a function that is the composition of the provided functions,
* where each function consumes the return value of the function that follows.
* For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`.
* Each function is executed with the `this` binding of the composed function.
@@ -5316,7 +5319,7 @@
/**
* Defers executing the `func` function until the current call stack has cleared.
* Additional arguments will be passed to `func` when it is invoked.
* Additional arguments will be provided to `func` when it is invoked.
*
* @static
* @memberOf _
@@ -5340,7 +5343,7 @@
/**
* Executes the `func` function after `wait` milliseconds. Additional arguments
* will be passed to `func` when it is invoked.
* will be provided to `func` when it is invoked.
*
* @static
* @memberOf _
@@ -5362,11 +5365,11 @@
/**
* Creates a function that memoizes the result of `func`. If `resolver` is
* passed, it will be used to determine the cache key for storing the result
* based on the arguments passed to the memoized function. By default, the first
* argument passed to the memoized function is used as the cache key. The `func`
* is executed with the `this` binding of the memoized function. The result
* cache is exposed as the `cache` property on the memoized function.
* provided, it will be used to determine 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 cache key.
* The `func` is executed with the `this` binding of the memoized function.
* The result cache is exposed as the `cache` property on the memoized function.
*
* @static
* @memberOf _
@@ -5429,7 +5432,7 @@
/**
* Creates a function that, when called, invokes `func` with any additional
* `partial` arguments prepended to those passed to the new function. This
* `partial` arguments prepended to those provided to the new function. This
* method is similar to `_.bind`, except it does **not** alter the `this` binding.
*
* @static
@@ -5451,7 +5454,7 @@
/**
* This method is like `_.partial`, except that `partial` arguments are
* appended to those passed to the new function.
* appended to those provided to the new function.
*
* @static
* @memberOf _
@@ -5533,8 +5536,8 @@
/**
* Creates a function that passes `value` to the `wrapper` function as its
* first argument. Additional arguments passed to the function are appended
* to those passed to the `wrapper` function. The `wrapper` is executed with
* first argument. Additional arguments provided to the function are appended
* to those provided to the `wrapper` function. The `wrapper` is executed with
* the `this` binding of the created function.
*
* @static
@@ -5581,7 +5584,7 @@
}
/**
* This method returns the first argument passed to it.
* This method returns the first argument provided to it.
*
* @static
* @memberOf _

View File

@@ -37,10 +37,10 @@ mt(/x/)&&(mt=function(n){return typeof n=="function"&&_e.call(n)==J});var Ze=ge?
v.push(y)}}for(;u--;)(m=i[u])&&g(m);return s(i),s(h),v},_.invert=yt,_.invoke=function(n,t){var e=Pe.call(arguments,2),r=-1,u=typeof t=="function",o=n?n.length:0,a=Ht(typeof o=="number"?o:0);return Et(n,function(n){a[++r]=(u?t:n[t]).apply(n,e)}),a},_.keys=Te,_.map=St,_.max=At,_.memoize=function(n,t){function e(){var r=e.cache,u=C+(t?t.apply(this,arguments):arguments[0]);return ve.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}return e.cache={},e},_.merge=function(n){var t=arguments,e=2;if(!dt(n))return n;
if("number"!=typeof t[2]&&(e=t.length),3<e&&"function"==typeof t[e-2])var r=Y(t[--e-1],t[e--],2);else 2<e&&"function"==typeof t[e-1]&&(r=t[--e]);for(var t=Pe.call(arguments,1,e),u=-1,o=f(),a=f();++u<e;)rt(n,t[u],r,o,a);return s(o),s(a),n},_.min=function(n,t,e){var r=1/0,o=r;if(!t&&ze(n)){e=-1;for(var a=n.length;++e<a;){var i=n[e];i<o&&(o=i)}}else t=!t&&_t(n)?u:_.createCallback(t,e,3),Ue(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,o=n)});return o},_.omit=function(n,t,e){var r=lt(),u=typeof t=="function",o={};
if(u)t=_.createCallback(t,e,3);else var a=Z(arguments,m,b,1);return Xe(n,function(n,e,i){(u?!t(n,e,i):0>r(a,e))&&(o[e]=n)}),o},_.once=function(n){var t,e;return function(){return t?e:(t=m,e=n.apply(this,arguments),n=d,e)}},_.pairs=function(n){for(var t=-1,e=Te(n),r=e.length,u=Ht(r);++t<r;){var o=e[t];u[t]=[o,n[o]]}return u},_.partial=function(n){return at(n,d,Pe.call(arguments,1),[],m)},_.partialRight=function(n){return at(n,d,[],Pe.call(arguments,1),m,m)},_.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=-1,o=Z(arguments,m,b,1),a=dt(n)?o.length:0;++u<a;){var i=o[u];
i in n&&(r[i]=n[i])}else t=_.createCallback(t,e,3),Xe(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},_.pluck=rr,_.pull=function(n){for(var t=arguments,e=0,r=t.length,u=n?n.length:0;++e<r;)for(var o=-1,a=t[e];++o<u;)n[o]===a&&(be.call(n,o--,1),u--);return n},_.range=function(n,t,e){n=+n||0,e=+e||1,t==d&&(t=n,n=0);var r=-1;t=Se(0,ce((t-n)/e));for(var u=Ht(t);++r<t;)u[r]=n,n+=e;return u},_.reject=function(n,t,e){return t=_.createCallback(t,e,3),xt(n,function(n,e,r){return!t(n,e,r)})},_.remove=function(n,t,e){var r=[];
if(t=_.createCallback(t,e,3),ze(n)){e=-1;for(var u=n.length;++e<u;){var o=n[e];t(o,e,n)&&(r.push(o),be.call(n,e--,1),u--)}}else Ue(n,function(n,e,u){t(n,e,u)&&(r.push(n),delete u[e])});return r},_.rest=Dt,_.shuffle=function(n){var t=-1,e=n?n.length:0,r=Ht(typeof e=="number"?e:0);return Et(n,function(n){var e=se(Be()*(++t+1));r[t]=r[e],r[e]=n}),r},_.sortBy=function(n,t,e){var r=-1,u=n?n.length:0,a=Ht(typeof u=="number"?u:0);for(t=_.createCallback(t,e,3),Et(n,function(n,e,u){var o=a[++r]=c();o.l=t(n,e,u),o.m=r,o.n=n
}),u=a.length,a.sort(o);u--;)n=a[u],a[u]=n.n,g(n);return a},_.tap=function(n,t){return t(n),n},_.throttle=function(n,t,e){var r=m,u=m;return e===false?r=b:dt(e)&&(r="leading"in e?e.leading:r,u="trailing"in e?e.trailing:u),e=c(),e.leading=r,e.maxWait=t,e.trailing=u,n=Kt(n,t,e),g(e),n},_.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Ht(n);for(t=Y(t,e,1);++r<n;)u[r]=t(r);return u},_.toArray=function(n){return n&&typeof n.length=="number"?$e.unindexedChars&&_t(n)?n.split(""):v(n):jt(n)},_.transform=function(n,t,e,r){var u=ze(n);
return t=Y(t,r,4),e==d&&(u?e=[]:(r=n&&n.constructor,e=ft(r&&r.prototype))),(u?Ue:Ye)(n,function(n,r,u){return t(e,n,r,u)}),e},_.union=function(){return ut(Z(arguments,m,m))},_.uniq=zt,_.values=jt,_.where=xt,_.without=function(n){return Nt(n,Pe.call(arguments,1))},_.wrap=function(n,t){return function(){var e=[n];return he.apply(e,arguments),t.apply(this,e)}},_.zip=Lt,_.zipObject=Tt,_.collect=St,_.drop=Dt,_.each=Et,_.extend=Ve,_.methods=ht,_.object=Tt,_.select=xt,_.tail=Dt,_.unique=zt,_.unzip=Lt,Jt(_),_.clone=function(n,t,e,r){return typeof t!="boolean"&&t!=d&&(r=e,e=t,t=b),O(n,t,typeof e=="function"&&Y(e,r,1))
i in n&&(r[i]=n[i])}else t=_.createCallback(t,e,3),Xe(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},_.pluck=rr,_.pull=function(n){for(var t=arguments,e=0,r=t.length,u=n?n.length:0;++e<r;)for(var o=-1,a=t[e];++o<u;)n[o]===a&&(be.call(n,o--,1),u--);return n},_.range=function(n,t,e){n=+n||0,e=typeof e=="number"?e:1,t==d&&(t=n,n=0);var r=-1;t=Se(0,ce((t-n)/(e||1)));for(var u=Ht(t);++r<t;)u[r]=n,n+=e;return u},_.reject=function(n,t,e){return t=_.createCallback(t,e,3),xt(n,function(n,e,r){return!t(n,e,r)
})},_.remove=function(n,t,e){var r=[];if(t=_.createCallback(t,e,3),ze(n)){e=-1;for(var u=n.length;++e<u;){var o=n[e];t(o,e,n)&&(r.push(o),be.call(n,e--,1),u--)}}else Ue(n,function(n,e,u){t(n,e,u)&&(r.push(n),delete u[e])});return r},_.rest=Dt,_.shuffle=function(n){var t=-1,e=n?n.length:0,r=Ht(typeof e=="number"?e:0);return Et(n,function(n){var e=se(Be()*(++t+1));r[t]=r[e],r[e]=n}),r},_.sortBy=function(n,t,e){var r=-1,u=n?n.length:0,a=Ht(typeof u=="number"?u:0);for(t=_.createCallback(t,e,3),Et(n,function(n,e,u){var o=a[++r]=c();
o.l=t(n,e,u),o.m=r,o.n=n}),u=a.length,a.sort(o);u--;)n=a[u],a[u]=n.n,g(n);return a},_.tap=function(n,t){return t(n),n},_.throttle=function(n,t,e){var r=m,u=m;return e===false?r=b:dt(e)&&(r="leading"in e?e.leading:r,u="trailing"in e?e.trailing:u),e=c(),e.leading=r,e.maxWait=t,e.trailing=u,n=Kt(n,t,e),g(e),n},_.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Ht(n);for(t=Y(t,e,1);++r<n;)u[r]=t(r);return u},_.toArray=function(n){return n&&typeof n.length=="number"?$e.unindexedChars&&_t(n)?n.split(""):v(n):jt(n)
},_.transform=function(n,t,e,r){var u=ze(n);return t=Y(t,r,4),e==d&&(u?e=[]:(r=n&&n.constructor,e=ft(r&&r.prototype))),(u?Ue:Ye)(n,function(n,r,u){return t(e,n,r,u)}),e},_.union=function(){return ut(Z(arguments,m,m))},_.uniq=zt,_.values=jt,_.where=xt,_.without=function(n){return Nt(n,Pe.call(arguments,1))},_.wrap=function(n,t){return function(){var e=[n];return he.apply(e,arguments),t.apply(this,e)}},_.zip=Lt,_.zipObject=Tt,_.collect=St,_.drop=Dt,_.each=Et,_.extend=Ve,_.methods=ht,_.object=Tt,_.select=xt,_.tail=Dt,_.unique=zt,_.unzip=Lt,Jt(_),_.clone=function(n,t,e,r){return typeof t!="boolean"&&t!=d&&(r=e,e=t,t=b),O(n,t,typeof e=="function"&&Y(e,r,1))
},_.cloneDeep=function(n,t,e){return O(n,m,typeof t=="function"&&Y(t,e,1))},_.contains=wt,_.escape=function(n){return n==d?"":te(n).replace(He,ct)},_.every=kt,_.find=Ct,_.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;for(t=_.createCallback(t,e,3);++r<u;)if(t(n[r],r,n))return r;return-1},_.findLast=function(n,t,e){var r;return t=_.createCallback(t,e),Ot(n,function(n,e,u){return t(n,e,u)?(r=n,b):void 0}),r},_.findLastIndex=function(n,t,e){var r=n?n.length:0;for(t=_.createCallback(t,e);r--&&!t(n[-1],-1,n););return-1
},_.findKey=function(n,t,e){var r;return t=_.createCallback(t,e,3),Ye(n,function(n,e,u){return t(n,e,u)?(r=e,b):void 0}),r},_.findLastKey=function(n,t,e){var r;return t=_.createCallback(t,e),vt(n,function(n,e,u){return t(n,e,u)?(r=e,b):void 0}),r},_.has=function(n,t){return n?ve.call(n,t):b},_.identity=Gt,_.indexOf=Rt,_.isArguments=gt,_.isArray=ze,_.isBoolean=function(n){return n===m||n===false||_e.call(n)==K},_.isDate=function(n){return n?typeof n=="object"&&_e.call(n)==W:b},_.isElement=function(n){return n?1===n.nodeType:b
},_.isEmpty=function(n){var t=m;if(!n)return t;var e=_e.call(n),r=n.length;return e==q||e==V||($e.argsClass?e==T:gt(n))||e==H&&typeof r=="number"&&mt(n.splice)?!r:(Ye(n,function(){return t=b}),t)},_.isEqual=function(n,t,e,r){return tt(n,t,typeof e=="function"&&Y(e,r,2))},_.isFinite=function(n){return Ce(n)&&!Ee(parseFloat(n))},_.isFunction=mt,_.isNaN=function(n){return bt(n)&&n!=+n},_.isNull=function(n){return n===d},_.isNumber=bt,_.isObject=dt,_.isPlainObject=Ze,_.isRegExp=function(n){return n&&X[typeof n]?_e.call(n)==U:b

71
dist/lodash.js vendored
View File

@@ -527,7 +527,7 @@
* `sortedIndex`, `runInContext`, `template`, `unescape`, `uniqueId`, and `value`
*
* The wrapper functions `first` and `last` return wrapped values when `n` is
* passed, otherwise they return unwrapped values.
* provided, otherwise they return unwrapped values.
*
* @name _
* @constructor
@@ -1130,14 +1130,14 @@
/**
* Creates a function that, when called, invokes `func` with the `this` binding
* of `thisArg` and prepends any `partialArgs` to the arguments passed to the
* of `thisArg` and prepends any `partialArgs` to the arguments provided to the
* bound function.
*
* @private
* @param {Function|String} func The function to bind or the method name.
* @param {Mixed} thisArg The `this` binding of `func`.
* @param {Array} partialArgs An array of arguments to be prepended to those passed to the new function.
* @param {Array} partialRightArgs An array of arguments to be appended to those passed to the new function.
* @param {Array} partialArgs An array of arguments to be prepended to those provided to the new function.
* @param {Array} partialRightArgs An array of arguments to be appended to those provided to the new function.
* @param {Boolean} [isPartial=false] A flag to indicate performing only partial application.
* @param {Boolean} [isAlt=false] A flag to indicate `_.bindKey` or `_.partialRight` behavior.
* @returns {Function} Returns the new bound function.
@@ -1598,7 +1598,7 @@
/**
* This method is like `_.findIndex`, except that it returns the key of the
* element that passes the callback check, instead of the element itself.
* first element that passes the callback check, instead of the element itself.
*
* @static
* @memberOf _
@@ -2673,7 +2673,7 @@
* per iteration. If a property name or object is provided, it will be used
* to create a "_.pluck" or "_.where" style callback, respectively.
* @param {Mixed} [thisArg] The `this` binding of `callback`.
* @returns {Boolean} Returns `true` if all elements pass the callback check,
* @returns {Boolean} Returns `true` if all elements passed the callback check,
* else `false`.
* @example
*
@@ -3035,7 +3035,7 @@
/**
* Invokes the method named by `methodName` on each element in the `collection`,
* returning an array of the results of each invoked method. Additional arguments
* will be passed to each invoked method. If `methodName` is a function, it will
* will be provided to each invoked method. If `methodName` is a function, it will
* be invoked for, and `this` bound to, each element in the `collection`.
*
* @static
@@ -3300,7 +3300,7 @@
* Reduces a `collection` to a value which is the accumulated result of running
* each element in the `collection` through the `callback`, where each successive
* `callback` execution consumes the return value of the previous execution.
* If `accumulator` is not passed, the first element of the `collection` will be
* If `accumulator` is not provided, the first element of the `collection` will be
* used as the initial `accumulator` value. The `callback` is bound to `thisArg`
* and invoked with four arguments; (accumulator, value, index|key, collection).
*
@@ -3560,7 +3560,7 @@
* per iteration. If a property name or object is provided, it will be used
* to create a "_.pluck" or "_.where" style callback, respectively.
* @param {Mixed} [thisArg] The `this` binding of `callback`.
* @returns {Boolean} Returns `true` if any element passes the callback check,
* @returns {Boolean} Returns `true` if any element passed the callback check,
* else `false`.
* @example
*
@@ -3737,8 +3737,8 @@
}
/**
* Creates an array excluding all values of the passed-in arrays using
* strict equality for comparisons, i.e. `===`.
* Creates an array excluding all values of the provided arrays using strict
* equality for comparisons, i.e. `===`.
*
* @static
* @memberOf _
@@ -3782,7 +3782,7 @@
}
/**
* This method is like `_.find`, except that it returns the index of the
* This method is like `_.find`, except that it returns the index of the first
* element that passes the callback check, instead of the element itself.
*
* @static
@@ -4090,7 +4090,7 @@
}
/**
* Creates an array of unique values present in all passed-in arrays using
* Creates an array of unique values present in all provided arrays using
* strict equality for comparisons, i.e. `===`.
*
* @static
@@ -4260,7 +4260,7 @@
}
/**
* Removes all passed values from the given array using strict equality for
* Removes all provided values from the given array using strict equality for
* comparisons, i.e. `===`.
*
* @static
@@ -4321,12 +4321,15 @@
* _.range(0, -10, -1);
* // => [0, -1, -2, -3, -4, -5, -6, -7, -8, -9]
*
* _.range(1, 4, 0);
* // => [1, 1, 1]
*
* _.range(0);
* // => []
*/
function range(start, end, step) {
start = +start || 0;
step = +step || 1;
step = typeof step == 'number' ? step : 1;
if (end == null) {
end = start;
@@ -4335,7 +4338,7 @@
// use `Array(length)` so engines, like Chakra and V8, avoid slower modes
// http://youtu.be/XAqIpGU8ZZk#t=17m25s
var index = -1,
length = nativeMax(0, ceil((end - start) / step)),
length = nativeMax(0, ceil((end - start) / (step || 1))),
result = Array(length);
while (++index < length) {
@@ -4485,8 +4488,8 @@
}
/**
* Creates an array of unique values, in order, of the passed-in arrays
* using strict equality for comparisons, i.e. `===`.
* Creates an array of unique values, in order, of the provided arrays using
* strict equality for comparisons, i.e. `===`.
*
* @static
* @memberOf _
@@ -4560,7 +4563,7 @@
}
/**
* Creates an array excluding all passed values using strict equality for
* Creates an array excluding all provided values using strict equality for
* comparisons, i.e. `===`.
*
* @static
@@ -4672,7 +4675,7 @@
/**
* Creates a function that, when called, invokes `func` with the `this`
* binding of `thisArg` and prepends any additional `bind` arguments to those
* passed to the bound function.
* provided to the bound function.
*
* @static
* @memberOf _
@@ -4733,7 +4736,7 @@
/**
* Creates a function that, when called, invokes the method at `object[key]`
* and prepends any additional `bindKey` arguments to those passed to the bound
* and prepends any additional `bindKey` arguments to those provided to the bound
* function. This method differs from `_.bind` by allowing bound functions to
* reference methods that will be redefined or don't yet exist.
* See http://michaux.ca/articles/lazy-function-definition-pattern.
@@ -4770,7 +4773,7 @@
}
/**
* Creates a function that is the composition of the passed functions,
* Creates a function that is the composition of the provided functions,
* where each function consumes the return value of the function that follows.
* For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`.
* Each function is executed with the `this` binding of the composed function.
@@ -5003,7 +5006,7 @@
/**
* Defers executing the `func` function until the current call stack has cleared.
* Additional arguments will be passed to `func` when it is invoked.
* Additional arguments will be provided to `func` when it is invoked.
*
* @static
* @memberOf _
@@ -5027,7 +5030,7 @@
/**
* Executes the `func` function after `wait` milliseconds. Additional arguments
* will be passed to `func` when it is invoked.
* will be provided to `func` when it is invoked.
*
* @static
* @memberOf _
@@ -5049,11 +5052,11 @@
/**
* Creates a function that memoizes the result of `func`. If `resolver` is
* passed, it will be used to determine the cache key for storing the result
* based on the arguments passed to the memoized function. By default, the first
* argument passed to the memoized function is used as the cache key. The `func`
* is executed with the `this` binding of the memoized function. The result
* cache is exposed as the `cache` property on the memoized function.
* provided, it will be used to determine 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 cache key.
* The `func` is executed with the `this` binding of the memoized function.
* The result cache is exposed as the `cache` property on the memoized function.
*
* @static
* @memberOf _
@@ -5116,7 +5119,7 @@
/**
* Creates a function that, when called, invokes `func` with any additional
* `partial` arguments prepended to those passed to the new function. This
* `partial` arguments prepended to those provided to the new function. This
* method is similar to `_.bind`, except it does **not** alter the `this` binding.
*
* @static
@@ -5138,7 +5141,7 @@
/**
* This method is like `_.partial`, except that `partial` arguments are
* appended to those passed to the new function.
* appended to those provided to the new function.
*
* @static
* @memberOf _
@@ -5220,8 +5223,8 @@
/**
* Creates a function that passes `value` to the `wrapper` function as its
* first argument. Additional arguments passed to the function are appended
* to those passed to the `wrapper` function. The `wrapper` is executed with
* first argument. Additional arguments provided to the function are appended
* to those provided to the `wrapper` function. The `wrapper` is executed with
* the `this` binding of the created function.
*
* @static
@@ -5268,7 +5271,7 @@
}
/**
* This method returns the first argument passed to it.
* This method returns the first argument provided to it.
*
* @static
* @memberOf _

68
dist/lodash.min.js vendored
View File

@@ -4,47 +4,47 @@
* Build: `lodash modern -o ./dist/lodash.js`
*/
;!function(n){function t(n,t,e){e=(e||0)-1;for(var r=n?n.length:0;++e<r;)if(n[e]===t)return e;return-1}function e(n,e){var r=typeof e;if(n=n.k,"boolean"==r||e==_)return n[e];"number"!=r&&"string"!=r&&(r="object");var u="number"==r?e:j+e;return n=n[r]||(n[r]={}),"object"==r?n[u]&&-1<t(n[u],e)?0:-1:n[u]?0:-1}function r(n){var t=this.k,e=typeof n;if("boolean"==e||n==_)t[n]=y;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?n:j+n,t=t[e]||(t[e]={});"object"==e?(t[r]||(t[r]=[])).push(n):t[r]=y
}}function u(n){return n.charCodeAt(0)}function a(n,t){var e=n.m,r=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return e<r?-1:1}function o(n){var t=-1,e=n.length,u=n[0],a=n[e-1];if(u&&typeof u=="object"&&a&&typeof a=="object")return m;for(u=c(),u["false"]=u["null"]=u["true"]=u.undefined=m,a=c(),a.b=n,a.k=u,a.push=r;++t<e;)a.push(n[t]);return a}function i(n){return"\\"+H[n]}function f(){return b.pop()||[]}function c(){return d.pop()||{b:_,k:_,configurable:m,l:_,enumerable:m,"false":m,m:0,leading:m,maxWait:0,"null":m,number:_,z:_,push:_,string:_,trailing:m,"true":m,undefined:m,n:_,writable:m}
}}function u(n){return n.charCodeAt(0)}function o(n,t){var e=n.m,r=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return e<r?-1:1}function a(n){var t=-1,e=n.length,u=n[0],o=n[e-1];if(u&&typeof u=="object"&&o&&typeof o=="object")return m;for(u=c(),u["false"]=u["null"]=u["true"]=u.undefined=m,o=c(),o.b=n,o.k=u,o.push=r;++t<e;)o.push(n[t]);return o}function i(n){return"\\"+H[n]}function f(){return b.pop()||[]}function c(){return d.pop()||{b:_,k:_,configurable:m,l:_,enumerable:m,"false":m,m:0,leading:m,maxWait:0,"null":m,number:_,z:_,push:_,string:_,trailing:m,"true":m,undefined:m,n:_,writable:m}
}function l(){}function p(n){n.length=0,b.length<x&&b.push(n)}function s(n){var t=n.k;t&&s(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=_,d.length<x&&d.push(n)}function v(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Array(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function g(r){function b(n){if(!n||be.call(n)!=L)return m;var t=n.valueOf,e=typeof t=="function"&&(e=ve(t))&&ve(e);return e?n==e||ve(n)==e:pt(n)}function d(n,t,e){if(!n||!G[typeof n])return n;t=t&&typeof e=="undefined"?t:et(t,e,3);
for(var r=-1,u=G[typeof n]&&ze(n),a=u?u.length:0;++r<a&&(e=u[r],!(t(n[e],e,n)===false)););return n}function x(n,t,e){var r;if(!n||!G[typeof n])return n;t=t&&typeof e=="undefined"?t:et(t,e,3);for(r in n)if(t(n[r],r,n)===false)break;return n}function H(n,t,e){var r,u=n,a=u;if(!u)return a;for(var o=arguments,i=0,f=typeof e=="number"?2:o.length;++i<f;)if((u=o[i])&&G[typeof u])for(var c=-1,l=G[typeof u]&&ze(u),p=l?l.length:0;++c<p;)r=l[c],"undefined"==typeof a[r]&&(a[r]=u[r]);return a}function J(n,t,e){var r,u=n,a=u;
if(!u)return a;var o=arguments,i=0,f=typeof e=="number"?2:o.length;if(3<f&&"function"==typeof o[f-2])var c=et(o[--f-1],o[f--],2);else 2<f&&"function"==typeof o[f-1]&&(c=o[--f]);for(;++i<f;)if((u=o[i])&&G[typeof u])for(var l=-1,p=G[typeof u]&&ze(u),s=p?p.length:0;++l<s;)r=p[l],a[r]=c?c(a[r],u[r]):u[r];return a}function X(n){var t,e=[];if(!n||!G[typeof n])return e;for(t in n)ge.call(n,t)&&e.push(t);return e}function Z(n){return n&&typeof n=="object"&&!Te(n)&&ge.call(n,"__wrapped__")?n:new nt(n)}function nt(n,t){this.__chain__=!!t,this.__wrapped__=n
}function tt(n,t,e,r,u){var a=n;if(e){if(a=e(a),typeof a!="undefined")return a;a=n}var o=mt(a);if(o){var i=be.call(a);if(!V[i])return a;var c=Te(a)}if(!o||!t)return o?c?v(a):J({},a):a;switch(o=$e[i],i){case q:case W:return new o(+a);case K:case U:return new o(a);case M:return o(a.source,A.exec(a))}i=!r,r||(r=f()),u||(u=f());for(var l=r.length;l--;)if(r[l]==n)return u[l];return a=c?o(a.length):{},c&&(ge.call(n,"index")&&(a.index=n.index),ge.call(n,"input")&&(a.input=n.input)),r.push(n),u.push(a),(c?Ot:d)(n,function(n,o){a[o]=tt(n,t,e,r,u)
}),i&&(p(r),p(u)),a}function et(n,t,e){if(typeof n!="function")return Ut;if(typeof t=="undefined")return n;var r=!n.name||n.__bindData__;if(typeof r=="undefined"&&(r=!$||$.test(se.call(n)),Fe(n,r)),r!==y&&(!r||!r[4]))return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,u){return n.call(t,e,r,u)};case 4:return function(e,r,u,a){return n.call(t,e,r,u,a)}}return Kt(n,t)}function rt(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,a=[];++r<u;){var o=n[r];
o&&typeof o=="object"&&(Te(o)||vt(o))?he.apply(a,t?o:rt(o,t,e)):e||a.push(o)}return a}function ut(n,t,e,r,u,a){if(e){var o=e(n,t);if(typeof o!="undefined")return!!o}if(n===t)return 0!==n||1/n==1/t;if(n===n&&(!n||!G[typeof n])&&(!t||!G[typeof t]))return m;if(n==_||t==_)return n===t;var i=be.call(n),c=be.call(t);if(i==T&&(i=L),c==T&&(c=L),i!=c)return m;switch(i){case q:case W:return+n==+t;case K:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case M:case U:return n==ee(t)}if(c=i==z,!c){if(ge.call(n,"__wrapped__")||ge.call(t,"__wrapped__"))return ut(n.__wrapped__||n,t.__wrapped__||t,e,r,u,a);
if(i!=L)return m;var i=n.constructor,l=t.constructor;if(i!=l&&(!_t(i)||!(i instanceof i&&_t(l)&&l instanceof l)))return m}for(l=!u,u||(u=f()),a||(a=f()),i=u.length;i--;)if(u[i]==n)return a[i]==t;var s=0,o=y;if(u.push(n),a.push(t),c){if(i=n.length,s=t.length,o=s==n.length,!o&&!r)return o;for(;s--;)if(c=i,l=t[s],r)for(;c--&&!(o=ut(n[c],l,e,r,u,a)););else if(!(o=ut(n[s],l,e,r,u,a)))break;return o}return x(t,function(t,i,f){return ge.call(f,i)?(s++,o=ge.call(n,i)&&ut(n[i],t,e,r,u,a)):void 0}),o&&!r&&x(n,function(n,t,e){return ge.call(e,t)?o=-1<--s:void 0
}),l&&(p(u),p(a)),o}function at(n,t,e,r,u){(Te(t)?Ot:d)(t,function(t,a){var o,i,f=t,c=n[a];if(t&&((i=Te(t))||b(t))){for(f=r.length;f--;)if(o=r[f]==t){c=u[f];break}if(!o){var l;e&&(f=e(c,t),l=typeof f!="undefined")&&(c=f),l||(c=i?Te(c)?c:[]:b(c)?c:{}),r.push(t),u.push(c),l||at(c,t,e,r,u)}}else e&&(f=e(c,t),typeof f=="undefined"&&(f=t)),typeof f!="undefined"&&(c=f);n[a]=c})}function ot(n,r,u){var a=-1,i=lt(),c=n?n.length:0,l=[],v=!r&&c>=k&&i===t,g=u||v?f():l;if(v){var h=o(g);h?(i=e,g=h):(v=m,g=u?g:(p(g),l))
}for(;++a<c;){var h=n[a],y=u?u(h,a,n):h;(r?!a||g[g.length-1]!==y:0>i(g,y))&&((u||v)&&g.push(y),l.push(h))}return v?(p(g.b),s(g)):u&&p(g),l}function it(n){return function(t,e,r){var u={};return e=Z.createCallback(e,r,3),Ot(t,function(t,r,a){r=ee(e(t,r,a)),n(u,t,r,a)}),u}}function ft(n,t,e,r,u,a){var o=a&&!u;if(!_t(n)&&!o)throw new re;var i=n.__bindData__;if(i)return he.apply(i[2],e),he.apply(i[3],r),!u&&i[4]&&(i[1]=t,i[4]=m,i[5]=a),ft.apply(_,i);if(u||a||r.length||!(De.fastBind||we&&e.length))f=function(){var a=arguments,i=u?this:t;
return o&&(n=t[c]),(e.length||r.length)&&(de.apply(a,e),he.apply(a,r)),this instanceof f?(i=mt(n.prototype)?je(n.prototype):{},a=n.apply(i,a),mt(a)?a:i):n.apply(i,a)};else{i=[n,t],he.apply(i,e);var f=we.call.apply(we,i)}if(i=Ne.call(arguments),o){var c=t;t=n}return Fe(f,i),f}function ct(n){return qe[n]}function lt(){var n=(n=Z.indexOf)===Ft?t:n;return n}function pt(n){var t,e;return n&&be.call(n)==L&&(t=n.constructor,!_t(t)||t instanceof t)?(x(n,function(n,t){e=t}),e===h||ge.call(n,e)):m}function st(n){return We[n]
}function vt(n){return n&&typeof n=="object"?be.call(n)==T:m}function gt(n,t,e){var r=ze(n),u=r.length;for(t=et(t,e,3);u--&&(e=r[u],!(t(n[e],e,n)===false)););return n}function ht(n){var t=[];return x(n,function(n,e){_t(n)&&t.push(e)}),t.sort()}function yt(n){for(var t=-1,e=ze(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function _t(n){return typeof n=="function"}function mt(n){return!(!n||!G[typeof n])}function bt(n){return typeof n=="number"||be.call(n)==K}function dt(n){return typeof n=="string"||be.call(n)==U
}function wt(n){for(var t=-1,e=ze(n),r=e.length,u=Ht(r);++t<r;)u[t]=n[e[t]];return u}function jt(n,t,e){var r=-1,u=lt(),a=n?n.length:0,o=m;return e=(0>e?Ee(0,a+e):e)||0,a&&typeof a=="number"?o=-1<(dt(n)?n.indexOf(t,e):u(n,t,e)):d(n,function(n){return++r<e?void 0:!(o=n===t)}),o}function kt(n,t,e){var r=y;t=Z.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&(r=!!t(n[e],e,n)););else d(n,function(n,e,u){return r=!!t(n,e,u)});return r}function xt(n,t,e){var r=[];t=Z.createCallback(t,e,3),e=-1;
var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var a=n[e];t(a,e,n)&&r.push(a)}else d(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function Ct(n,t,e){t=Z.createCallback(t,e,3),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return d(n,function(n,e,r){return t(n,e,r)?(u=n,m):void 0}),u}for(;++e<r;){var a=n[e];if(t(a,e,n))return a}}function Ot(n,t,e){var r=-1,u=n?n.length:0;if(t=t&&typeof e=="undefined"?t:et(t,e,3),typeof u=="number")for(;++r<u&&t(n[r],r,n)!==false;);else d(n,t);return n
}function Et(n,t,e){var r=n?n.length:0;if(typeof r!="number")var u=ze(n),r=u.length;return t=et(t,e,3),Ot(n,function(e,a,o){a=u?u[--r]:--r,t(n[a],a,o)}),n}function It(n,t,e){var r=-1,u=n?n.length:0;if(t=Z.createCallback(t,e,3),typeof u=="number")for(var a=Ht(u);++r<u;)a[r]=t(n[r],r,n);else a=[],d(n,function(n,e,u){a[++r]=t(n,e,u)});return a}function St(n,t,e){var r=-1/0,a=r;if(!t&&Te(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i>a&&(a=i)}}else t=!t&&dt(n)?u:Z.createCallback(t,e,3),Ot(n,function(n,e,u){e=t(n,e,u),e>r&&(r=e,a=n)
});return a}function At(n,t){var e=-1,r=n?n.length:0;if(typeof r=="number")for(var u=Ht(r);++e<r;)u[e]=n[e][t];return u||It(n,t)}function Nt(n,t,e,r){if(!n)return e;var u=3>arguments.length;t=et(t,r,4);var a=-1,o=n.length;if(typeof o=="number")for(u&&(e=n[++a]);++a<o;)e=t(e,n[a],a,n);else d(n,function(n,r,a){e=u?(u=m,n):t(e,n,r,a)});return e}function Rt(n,t,e,r){var u=3>arguments.length;return t=et(t,r,4),Et(n,function(n,r,a){e=u?(u=m,n):t(e,n,r,a)}),e}function Bt(n,t,e){var r;t=Z.createCallback(t,e,3),e=-1;
var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&!(r=t(n[e],e,n)););else d(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function $t(n){var r=-1,u=lt(),a=n?n.length:0,i=rt(arguments,y,y,1),f=[],c=a>=k&&u===t;if(c){var l=o(i);l?(u=e,i=l):c=m}for(;++r<a;)l=n[r],0>u(i,l)&&f.push(l);return c&&s(i),f}function Dt(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&t!=_){var a=-1;for(t=Z.createCallback(t,e,3);++a<u&&t(n[a],a,n);)r++}else if(r=t,r==_||e)return n[0];return v(n,0,Ie(Ee(0,r),u))}}function Ft(n,e,r){if(typeof r=="number"){var u=n?n.length:0;
r=0>r?Ee(0,u+r):r||0}else if(r)return r=zt(n,e),n[r]===e?r:-1;return n?t(n,e,r):-1}function Tt(n,t,e){if(typeof t!="number"&&t!=_){var r=0,u=-1,a=n?n.length:0;for(t=Z.createCallback(t,e,3);++u<a&&t(n[u],u,n);)r++}else r=t==_||e?1:Ee(0,t);return v(n,r)}function zt(n,t,e,r){var u=0,a=n?n.length:u;for(e=e?Z.createCallback(e,r,1):Ut,t=e(t);u<a;)r=u+a>>>1,e(n[r])<t?u=r+1:a=r;return u}function qt(n,t,e,r){return typeof t!="boolean"&&t!=_&&(r=e,e=r&&r[t]===n?h:t,t=m),e!=_&&(e=Z.createCallback(e,r,3)),ot(n,t,e)
}function Wt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?St(At(n,"length")):0,r=Ht(0>e?0:e);++t<e;)r[t]=At(n,t);return r}function Pt(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var a=n[e];t?u[a]=t[e]:a&&(u[a[0]]=a[1])}return u}function Kt(n,t){return ft(n,t,Ne.call(arguments,2),[])}function Lt(n,t,e){function r(){ce(s),ce(v),c=0,s=v=_}function u(){var t=g&&(!h||1<c);r(),t&&(p!==false&&(l=new Qt),i=n.apply(f,o))}function a(){r(),(g||p!==t)&&(l=new Qt,i=n.apply(f,o))}var o,i,f,c=0,l=0,p=m,s=_,v=_,g=y;
if(t=Ee(0,t||0),e===y)var h=y,g=m;else mt(e)&&(h=e.leading,p="maxWait"in e&&Ee(t,e.maxWait||0),g="trailing"in e?e.trailing:g);return function(){if(o=arguments,f=this,c++,ce(v),p===false)h&&2>c&&(i=n.apply(f,o));else{var e=new Qt;!s&&!h&&(l=e);var r=p-(e-l);0<r?s||(s=_e(a,r)):(ce(s),s=_,l=e,i=n.apply(f,o))}return t!==p&&(v=_e(u,t)),i}}function Mt(n){var t=Ne.call(arguments,1);return _e(function(){n.apply(h,t)},1)}function Ut(n){return n}function Vt(n,t){var e=n,r=!t||_t(e);t||(e=nt,t=n,n=Z),Ot(ht(t),function(u){var a=n[u]=t[u];
r&&(e.prototype[u]=function(){var t=this.__wrapped__,r=[t];return he.apply(r,arguments),r=a.apply(n,r),t&&typeof t=="object"&&t===r?this:new e(r)})})}function Gt(){return this.__wrapped__}r=r?Y.defaults(n.Object(),r,Y.pick(n,F)):n;var Ht=r.Array,Jt=r.Boolean,Qt=r.Date,Xt=r.Function,Yt=r.Math,Zt=r.Number,ne=r.Object,te=r.RegExp,ee=r.String,re=r.TypeError,ue=[],ae=ne.prototype,oe=r._,ie=te("^"+ee(ae.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),fe=Yt.ceil,ce=r.clearTimeout,le=ie.test(le=ne.defineProperty)&&le,pe=Yt.floor,se=Xt.prototype.toString,ve=ie.test(ve=ne.getPrototypeOf)&&ve,ge=ae.hasOwnProperty,he=ue.push,ye=r.setImmediate,_e=r.setTimeout,me=ue.splice,be=ae.toString,de=ue.unshift,we=ie.test(we=be.bind)&&we,je=ie.test(je=ne.create)&&je,ke=ie.test(ke=Ht.isArray)&&ke,xe=r.isFinite,Ce=r.isNaN,Oe=ie.test(Oe=ne.keys)&&Oe,Ee=Yt.max,Ie=Yt.min,Se=r.parseInt,Ae=Yt.random,Ne=ue.slice,Re=ie.test(r.attachEvent),Be=we&&!/\n|true/.test(we+Re),$e={};
for(var r=-1,u=G[typeof n]&&ze(n),o=u?u.length:0;++r<o&&(e=u[r],!(t(n[e],e,n)===false)););return n}function x(n,t,e){var r;if(!n||!G[typeof n])return n;t=t&&typeof e=="undefined"?t:et(t,e,3);for(r in n)if(t(n[r],r,n)===false)break;return n}function H(n,t,e){var r,u=n,o=u;if(!u)return o;for(var a=arguments,i=0,f=typeof e=="number"?2:a.length;++i<f;)if((u=a[i])&&G[typeof u])for(var c=-1,l=G[typeof u]&&ze(u),p=l?l.length:0;++c<p;)r=l[c],"undefined"==typeof o[r]&&(o[r]=u[r]);return o}function J(n,t,e){var r,u=n,o=u;
if(!u)return o;var a=arguments,i=0,f=typeof e=="number"?2:a.length;if(3<f&&"function"==typeof a[f-2])var c=et(a[--f-1],a[f--],2);else 2<f&&"function"==typeof a[f-1]&&(c=a[--f]);for(;++i<f;)if((u=a[i])&&G[typeof u])for(var l=-1,p=G[typeof u]&&ze(u),s=p?p.length:0;++l<s;)r=p[l],o[r]=c?c(o[r],u[r]):u[r];return o}function X(n){var t,e=[];if(!n||!G[typeof n])return e;for(t in n)ge.call(n,t)&&e.push(t);return e}function Z(n){return n&&typeof n=="object"&&!Te(n)&&ge.call(n,"__wrapped__")?n:new nt(n)}function nt(n,t){this.__chain__=!!t,this.__wrapped__=n
}function tt(n,t,e,r,u){var o=n;if(e){if(o=e(o),typeof o!="undefined")return o;o=n}var a=mt(o);if(a){var i=be.call(o);if(!V[i])return o;var c=Te(o)}if(!a||!t)return a?c?v(o):J({},o):o;switch(a=$e[i],i){case q:case W:return new a(+o);case K:case U:return new a(o);case M:return a(o.source,A.exec(o))}i=!r,r||(r=f()),u||(u=f());for(var l=r.length;l--;)if(r[l]==n)return u[l];return o=c?a(o.length):{},c&&(ge.call(n,"index")&&(o.index=n.index),ge.call(n,"input")&&(o.input=n.input)),r.push(n),u.push(o),(c?Ot:d)(n,function(n,a){o[a]=tt(n,t,e,r,u)
}),i&&(p(r),p(u)),o}function et(n,t,e){if(typeof n!="function")return Ut;if(typeof t=="undefined")return n;var r=!n.name||n.__bindData__;if(typeof r=="undefined"&&(r=!$||$.test(se.call(n)),Fe(n,r)),r!==y&&(!r||!r[4]))return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,u){return n.call(t,e,r,u)};case 4:return function(e,r,u,o){return n.call(t,e,r,u,o)}}return Kt(n,t)}function rt(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,o=[];++r<u;){var a=n[r];
a&&typeof a=="object"&&(Te(a)||vt(a))?he.apply(o,t?a:rt(a,t,e)):e||o.push(a)}return o}function ut(n,t,e,r,u,o){if(e){var a=e(n,t);if(typeof a!="undefined")return!!a}if(n===t)return 0!==n||1/n==1/t;if(n===n&&(!n||!G[typeof n])&&(!t||!G[typeof t]))return m;if(n==_||t==_)return n===t;var i=be.call(n),c=be.call(t);if(i==T&&(i=L),c==T&&(c=L),i!=c)return m;switch(i){case q:case W:return+n==+t;case K:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case M:case U:return n==ee(t)}if(c=i==z,!c){if(ge.call(n,"__wrapped__")||ge.call(t,"__wrapped__"))return ut(n.__wrapped__||n,t.__wrapped__||t,e,r,u,o);
if(i!=L)return m;var i=n.constructor,l=t.constructor;if(i!=l&&(!_t(i)||!(i instanceof i&&_t(l)&&l instanceof l)))return m}for(l=!u,u||(u=f()),o||(o=f()),i=u.length;i--;)if(u[i]==n)return o[i]==t;var s=0,a=y;if(u.push(n),o.push(t),c){if(i=n.length,s=t.length,a=s==n.length,!a&&!r)return a;for(;s--;)if(c=i,l=t[s],r)for(;c--&&!(a=ut(n[c],l,e,r,u,o)););else if(!(a=ut(n[s],l,e,r,u,o)))break;return a}return x(t,function(t,i,f){return ge.call(f,i)?(s++,a=ge.call(n,i)&&ut(n[i],t,e,r,u,o)):void 0}),a&&!r&&x(n,function(n,t,e){return ge.call(e,t)?a=-1<--s:void 0
}),l&&(p(u),p(o)),a}function ot(n,t,e,r,u){(Te(t)?Ot:d)(t,function(t,o){var a,i,f=t,c=n[o];if(t&&((i=Te(t))||b(t))){for(f=r.length;f--;)if(a=r[f]==t){c=u[f];break}if(!a){var l;e&&(f=e(c,t),l=typeof f!="undefined")&&(c=f),l||(c=i?Te(c)?c:[]:b(c)?c:{}),r.push(t),u.push(c),l||ot(c,t,e,r,u)}}else e&&(f=e(c,t),typeof f=="undefined"&&(f=t)),typeof f!="undefined"&&(c=f);n[o]=c})}function at(n,r,u){var o=-1,i=lt(),c=n?n.length:0,l=[],v=!r&&c>=k&&i===t,g=u||v?f():l;if(v){var h=a(g);h?(i=e,g=h):(v=m,g=u?g:(p(g),l))
}for(;++o<c;){var h=n[o],y=u?u(h,o,n):h;(r?!o||g[g.length-1]!==y:0>i(g,y))&&((u||v)&&g.push(y),l.push(h))}return v?(p(g.b),s(g)):u&&p(g),l}function it(n){return function(t,e,r){var u={};return e=Z.createCallback(e,r,3),Ot(t,function(t,r,o){r=ee(e(t,r,o)),n(u,t,r,o)}),u}}function ft(n,t,e,r,u,o){var a=o&&!u;if(!_t(n)&&!a)throw new re;var i=n.__bindData__;if(i)return he.apply(i[2],e),he.apply(i[3],r),!u&&i[4]&&(i[1]=t,i[4]=m,i[5]=o),ft.apply(_,i);if(u||o||r.length||!(De.fastBind||we&&e.length))f=function(){var o=arguments,i=u?this:t;
return a&&(n=t[c]),(e.length||r.length)&&(de.apply(o,e),he.apply(o,r)),this instanceof f?(i=mt(n.prototype)?je(n.prototype):{},o=n.apply(i,o),mt(o)?o:i):n.apply(i,o)};else{i=[n,t],he.apply(i,e);var f=we.call.apply(we,i)}if(i=Ne.call(arguments),a){var c=t;t=n}return Fe(f,i),f}function ct(n){return qe[n]}function lt(){var n=(n=Z.indexOf)===Ft?t:n;return n}function pt(n){var t,e;return n&&be.call(n)==L&&(t=n.constructor,!_t(t)||t instanceof t)?(x(n,function(n,t){e=t}),e===h||ge.call(n,e)):m}function st(n){return We[n]
}function vt(n){return n&&typeof n=="object"?be.call(n)==T:m}function gt(n,t,e){var r=ze(n),u=r.length;for(t=et(t,e,3);u--&&(e=r[u],!(t(n[e],e,n)===false)););return n}function ht(n){var t=[];return x(n,function(n,e){_t(n)&&t.push(e)}),t.sort()}function yt(n){for(var t=-1,e=ze(n),r=e.length,u={};++t<r;){var o=e[t];u[n[o]]=o}return u}function _t(n){return typeof n=="function"}function mt(n){return!(!n||!G[typeof n])}function bt(n){return typeof n=="number"||be.call(n)==K}function dt(n){return typeof n=="string"||be.call(n)==U
}function wt(n){for(var t=-1,e=ze(n),r=e.length,u=Ht(r);++t<r;)u[t]=n[e[t]];return u}function jt(n,t,e){var r=-1,u=lt(),o=n?n.length:0,a=m;return e=(0>e?Ee(0,o+e):e)||0,o&&typeof o=="number"?a=-1<(dt(n)?n.indexOf(t,e):u(n,t,e)):d(n,function(n){return++r<e?void 0:!(a=n===t)}),a}function kt(n,t,e){var r=y;t=Z.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&(r=!!t(n[e],e,n)););else d(n,function(n,e,u){return r=!!t(n,e,u)});return r}function xt(n,t,e){var r=[];t=Z.createCallback(t,e,3),e=-1;
var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var o=n[e];t(o,e,n)&&r.push(o)}else d(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function Ct(n,t,e){t=Z.createCallback(t,e,3),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return d(n,function(n,e,r){return t(n,e,r)?(u=n,m):void 0}),u}for(;++e<r;){var o=n[e];if(t(o,e,n))return o}}function Ot(n,t,e){var r=-1,u=n?n.length:0;if(t=t&&typeof e=="undefined"?t:et(t,e,3),typeof u=="number")for(;++r<u&&t(n[r],r,n)!==false;);else d(n,t);return n
}function Et(n,t,e){var r=n?n.length:0;if(typeof r!="number")var u=ze(n),r=u.length;return t=et(t,e,3),Ot(n,function(e,o,a){o=u?u[--r]:--r,t(n[o],o,a)}),n}function It(n,t,e){var r=-1,u=n?n.length:0;if(t=Z.createCallback(t,e,3),typeof u=="number")for(var o=Ht(u);++r<u;)o[r]=t(n[r],r,n);else o=[],d(n,function(n,e,u){o[++r]=t(n,e,u)});return o}function St(n,t,e){var r=-1/0,o=r;if(!t&&Te(n)){e=-1;for(var a=n.length;++e<a;){var i=n[e];i>o&&(o=i)}}else t=!t&&dt(n)?u:Z.createCallback(t,e,3),Ot(n,function(n,e,u){e=t(n,e,u),e>r&&(r=e,o=n)
});return o}function At(n,t){var e=-1,r=n?n.length:0;if(typeof r=="number")for(var u=Ht(r);++e<r;)u[e]=n[e][t];return u||It(n,t)}function Nt(n,t,e,r){if(!n)return e;var u=3>arguments.length;t=et(t,r,4);var o=-1,a=n.length;if(typeof a=="number")for(u&&(e=n[++o]);++o<a;)e=t(e,n[o],o,n);else d(n,function(n,r,o){e=u?(u=m,n):t(e,n,r,o)});return e}function Rt(n,t,e,r){var u=3>arguments.length;return t=et(t,r,4),Et(n,function(n,r,o){e=u?(u=m,n):t(e,n,r,o)}),e}function Bt(n,t,e){var r;t=Z.createCallback(t,e,3),e=-1;
var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&!(r=t(n[e],e,n)););else d(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function $t(n){var r=-1,u=lt(),o=n?n.length:0,i=rt(arguments,y,y,1),f=[],c=o>=k&&u===t;if(c){var l=a(i);l?(u=e,i=l):c=m}for(;++r<o;)l=n[r],0>u(i,l)&&f.push(l);return c&&s(i),f}function Dt(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&t!=_){var o=-1;for(t=Z.createCallback(t,e,3);++o<u&&t(n[o],o,n);)r++}else if(r=t,r==_||e)return n[0];return v(n,0,Ie(Ee(0,r),u))}}function Ft(n,e,r){if(typeof r=="number"){var u=n?n.length:0;
r=0>r?Ee(0,u+r):r||0}else if(r)return r=zt(n,e),n[r]===e?r:-1;return n?t(n,e,r):-1}function Tt(n,t,e){if(typeof t!="number"&&t!=_){var r=0,u=-1,o=n?n.length:0;for(t=Z.createCallback(t,e,3);++u<o&&t(n[u],u,n);)r++}else r=t==_||e?1:Ee(0,t);return v(n,r)}function zt(n,t,e,r){var u=0,o=n?n.length:u;for(e=e?Z.createCallback(e,r,1):Ut,t=e(t);u<o;)r=u+o>>>1,e(n[r])<t?u=r+1:o=r;return u}function qt(n,t,e,r){return typeof t!="boolean"&&t!=_&&(r=e,e=r&&r[t]===n?h:t,t=m),e!=_&&(e=Z.createCallback(e,r,3)),at(n,t,e)
}function Wt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?St(At(n,"length")):0,r=Ht(0>e?0:e);++t<e;)r[t]=At(n,t);return r}function Pt(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var o=n[e];t?u[o]=t[e]:o&&(u[o[0]]=o[1])}return u}function Kt(n,t){return ft(n,t,Ne.call(arguments,2),[])}function Lt(n,t,e){function r(){ce(s),ce(v),c=0,s=v=_}function u(){var t=g&&(!h||1<c);r(),t&&(p!==false&&(l=new Qt),i=n.apply(f,a))}function o(){r(),(g||p!==t)&&(l=new Qt,i=n.apply(f,a))}var a,i,f,c=0,l=0,p=m,s=_,v=_,g=y;
if(t=Ee(0,t||0),e===y)var h=y,g=m;else mt(e)&&(h=e.leading,p="maxWait"in e&&Ee(t,e.maxWait||0),g="trailing"in e?e.trailing:g);return function(){if(a=arguments,f=this,c++,ce(v),p===false)h&&2>c&&(i=n.apply(f,a));else{var e=new Qt;!s&&!h&&(l=e);var r=p-(e-l);0<r?s||(s=_e(o,r)):(ce(s),s=_,l=e,i=n.apply(f,a))}return t!==p&&(v=_e(u,t)),i}}function Mt(n){var t=Ne.call(arguments,1);return _e(function(){n.apply(h,t)},1)}function Ut(n){return n}function Vt(n,t){var e=n,r=!t||_t(e);t||(e=nt,t=n,n=Z),Ot(ht(t),function(u){var o=n[u]=t[u];
r&&(e.prototype[u]=function(){var t=this.__wrapped__,r=[t];return he.apply(r,arguments),r=o.apply(n,r),t&&typeof t=="object"&&t===r?this:new e(r)})})}function Gt(){return this.__wrapped__}r=r?Y.defaults(n.Object(),r,Y.pick(n,F)):n;var Ht=r.Array,Jt=r.Boolean,Qt=r.Date,Xt=r.Function,Yt=r.Math,Zt=r.Number,ne=r.Object,te=r.RegExp,ee=r.String,re=r.TypeError,ue=[],oe=ne.prototype,ae=r._,ie=te("^"+ee(oe.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),fe=Yt.ceil,ce=r.clearTimeout,le=ie.test(le=ne.defineProperty)&&le,pe=Yt.floor,se=Xt.prototype.toString,ve=ie.test(ve=ne.getPrototypeOf)&&ve,ge=oe.hasOwnProperty,he=ue.push,ye=r.setImmediate,_e=r.setTimeout,me=ue.splice,be=oe.toString,de=ue.unshift,we=ie.test(we=be.bind)&&we,je=ie.test(je=ne.create)&&je,ke=ie.test(ke=Ht.isArray)&&ke,xe=r.isFinite,Ce=r.isNaN,Oe=ie.test(Oe=ne.keys)&&Oe,Ee=Yt.max,Ie=Yt.min,Se=r.parseInt,Ae=Yt.random,Ne=ue.slice,Re=ie.test(r.attachEvent),Be=we&&!/\n|true/.test(we+Re),$e={};
$e[z]=Ht,$e[q]=Jt,$e[W]=Qt,$e[P]=Xt,$e[L]=ne,$e[K]=Zt,$e[M]=te,$e[U]=ee,nt.prototype=Z.prototype;var De=Z.support={};De.fastBind=we&&!Be,Z.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:N,variable:"",imports:{_:Z}};var Fe=le?function(n,t){var e=c();e.value=t,le(n,"__bindData__",e),s(e)}:l,Te=ke,ze=Oe?function(n){return mt(n)?Oe(n):[]}:X,qe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},We=yt(qe),Pe=te("("+ze(We).join("|")+")","g"),Ke=te("["+ze(qe).join("")+"]","g"),Le=it(function(n,t,e){ge.call(n,e)?n[e]++:n[e]=1
}),Me=it(function(n,t,e){(ge.call(n,e)?n[e]:n[e]=[]).push(t)}),Ue=it(function(n,t,e){n[e]=t});Be&&Q&&typeof ye=="function"&&(Mt=Kt(ye,r));var Ve=8==Se(C+"08")?Se:function(n,t){return Se(dt(n)?n.replace(R,""):n,t||0)};return Z.after=function(n,t){return function(){return 1>--n?t.apply(this,arguments):void 0}},Z.assign=J,Z.at=function(n){for(var t=-1,e=rt(arguments,y,m,1),r=e.length,u=Ht(r);++t<r;)u[t]=n[e[t]];return u},Z.bind=Kt,Z.bindAll=function(n){for(var t=1<arguments.length?rt(arguments,y,m,1):ht(n),e=-1,r=t.length;++e<r;){var u=t[e];
n[u]=Kt(n[u],n)}return n},Z.bindKey=function(n,t){return ft(n,t,Ne.call(arguments,2),[],m,y)},Z.chain=function(n){return n=new nt(n),n.__chain__=y,n},Z.compact=function(n){for(var t=-1,e=n?n.length:0,r=[];++t<e;){var u=n[t];u&&r.push(u)}return r},Z.compose=function(){var n=arguments;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]}},Z.countBy=Le,Z.createCallback=function(n,t,e){var r=typeof n;if(n==_||"function"==r)return et(n,t,e);if("object"!=r)return function(t){return t[n]
};var u=ze(n),a=u[0],o=n[a];return 1!=u.length||o!==o||mt(o)?function(t){for(var e=u.length,r=m;e--&&(r=ut(t[u[e]],n[u[e]],_,y)););return r}:function(n){return n=n[a],o===n&&(0!==o||1/o==1/n)}},Z.debounce=Lt,Z.defaults=H,Z.defer=Mt,Z.delay=function(n,t){var e=Ne.call(arguments,2);return _e(function(){n.apply(h,e)},t)},Z.difference=$t,Z.filter=xt,Z.flatten=function(n,t,e,r){return typeof t!="boolean"&&t!=_&&(r=e,e=r&&r[t]===n?h:t,t=m),e!=_&&(n=It(n,e,r)),rt(n,t)},Z.forEach=Ot,Z.forEachRight=Et,Z.forIn=x,Z.forInRight=function(n,t,e){var r=-1,u=[];
x(n,function(n,t){u.push(n,t)});var a=u.length;for(t=et(t,e,3);++r<a&&t(u[r],u[++r],n)!==false;);return n},Z.forOwn=d,Z.forOwnRight=gt,Z.functions=ht,Z.groupBy=Me,Z.indexBy=Ue,Z.initial=function(n,t,e){if(!n)return[];var r=0,u=n.length;if(typeof t!="number"&&t!=_){var a=u;for(t=Z.createCallback(t,e,3);a--&&t(n[a],a,n);)r++}else r=t==_||e?1:t||r;return v(n,0,Ie(Ee(0,u-r),u))},Z.intersection=function(n){for(var r=arguments,u=r.length,a=-1,i=f(),c=-1,l=lt(),v=n?n.length:0,g=[],h=f();++a<u;){var y=r[a];
i[a]=l===t&&(y?y.length:0)>=k&&o(a?r[a]:h)}n:for(;++c<v;){var _=i[0],y=n[c];if(0>(_?e(_,y):l(h,y))){for(a=u,(_||h).push(y);--a;)if(_=i[a],0>(_?e(_,y):l(r[a],y)))continue n;g.push(y)}}for(;u--;)(_=i[u])&&s(_);return p(i),p(h),g},Z.invert=yt,Z.invoke=function(n,t){var e=Ne.call(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=Ht(typeof a=="number"?a:0);return Ot(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},Z.keys=ze,Z.map=It,Z.max=St,Z.memoize=function(n,t){function e(){var r=e.cache,u=j+(t?t.apply(this,arguments):arguments[0]);
return ge.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}return e.cache={},e},Z.merge=function(n){var t=arguments,e=2;if(!mt(n))return n;if("number"!=typeof t[2]&&(e=t.length),3<e&&"function"==typeof t[e-2])var r=et(t[--e-1],t[e--],2);else 2<e&&"function"==typeof t[e-1]&&(r=t[--e]);for(var t=Ne.call(arguments,1,e),u=-1,a=f(),o=f();++u<e;)at(n,t[u],r,a,o);return p(a),p(o),n},Z.min=function(n,t,e){var r=1/0,a=r;if(!t&&Te(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i<a&&(a=i)}}else t=!t&&dt(n)?u:Z.createCallback(t,e,3),Ot(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,a=n)
});return a},Z.omit=function(n,t,e){var r=lt(),u=typeof t=="function",a={};if(u)t=Z.createCallback(t,e,3);else var o=rt(arguments,y,m,1);return x(n,function(n,e,i){(u?!t(n,e,i):0>r(o,e))&&(a[e]=n)}),a},Z.once=function(n){var t,e;return function(){return t?e:(t=y,e=n.apply(this,arguments),n=_,e)}},Z.pairs=function(n){for(var t=-1,e=ze(n),r=e.length,u=Ht(r);++t<r;){var a=e[t];u[t]=[a,n[a]]}return u},Z.partial=function(n){return ft(n,_,Ne.call(arguments,1),[],y)},Z.partialRight=function(n){return ft(n,_,[],Ne.call(arguments,1),y,y)
},Z.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=-1,a=rt(arguments,y,m,1),o=mt(n)?a.length:0;++u<o;){var i=a[u];i in n&&(r[i]=n[i])}else t=Z.createCallback(t,e,3),x(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},Z.pluck=At,Z.pull=function(n){for(var t=arguments,e=0,r=t.length,u=n?n.length:0;++e<r;)for(var a=-1,o=t[e];++a<u;)n[a]===o&&(me.call(n,a--,1),u--);return n},Z.range=function(n,t,e){n=+n||0,e=+e||1,t==_&&(t=n,n=0);var r=-1;t=Ee(0,fe((t-n)/e));for(var u=Ht(t);++r<t;)u[r]=n,n+=e;
return u},Z.reject=function(n,t,e){return t=Z.createCallback(t,e,3),xt(n,function(n,e,r){return!t(n,e,r)})},Z.remove=function(n,t,e){var r=[];t=Z.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var a=n[e];t(a,e,n)&&(r.push(a),me.call(n,e--,1),u--)}else d(n,function(n,e,u){t(n,e,u)&&(r.push(n),delete u[e])});return r},Z.rest=Tt,Z.shuffle=function(n){var t=-1,e=n?n.length:0,r=Ht(typeof e=="number"?e:0);return Ot(n,function(n){var e=pe(Ae()*(++t+1));r[t]=r[e],r[e]=n}),r
},Z.sortBy=function(n,t,e){var r=-1,u=n?n.length:0,o=Ht(typeof u=="number"?u:0);for(t=Z.createCallback(t,e,3),Ot(n,function(n,e,u){var a=o[++r]=c();a.l=t(n,e,u),a.m=r,a.n=n}),u=o.length,o.sort(a);u--;)n=o[u],o[u]=n.n,s(n);return o},Z.tap=function(n,t){return t(n),n},Z.throttle=function(n,t,e){var r=y,u=y;return e===false?r=m:mt(e)&&(r="leading"in e?e.leading:r,u="trailing"in e?e.trailing:u),e=c(),e.leading=r,e.maxWait=t,e.trailing=u,n=Lt(n,t,e),s(e),n},Z.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Ht(n);
for(t=et(t,e,1);++r<n;)u[r]=t(r);return u},Z.toArray=function(n){return n&&typeof n.length=="number"?v(n):wt(n)},Z.transform=function(n,t,e,r){var u=Te(n);return t=et(t,r,4),e==_&&(u?e=[]:(r=n&&n.constructor,e=mt(r&&r.prototype)?je(r&&r.prototype):{})),(u?Ot:d)(n,function(n,r,u){return t(e,n,r,u)}),e},Z.union=function(){return ot(rt(arguments,y,y))},Z.uniq=qt,Z.values=wt,Z.where=xt,Z.without=function(n){return $t(n,Ne.call(arguments,1))},Z.wrap=function(n,t){return function(){var e=[n];return he.apply(e,arguments),t.apply(this,e)
};var u=ze(n),o=u[0],a=n[o];return 1!=u.length||a!==a||mt(a)?function(t){for(var e=u.length,r=m;e--&&(r=ut(t[u[e]],n[u[e]],_,y)););return r}:function(n){return n=n[o],a===n&&(0!==a||1/a==1/n)}},Z.debounce=Lt,Z.defaults=H,Z.defer=Mt,Z.delay=function(n,t){var e=Ne.call(arguments,2);return _e(function(){n.apply(h,e)},t)},Z.difference=$t,Z.filter=xt,Z.flatten=function(n,t,e,r){return typeof t!="boolean"&&t!=_&&(r=e,e=r&&r[t]===n?h:t,t=m),e!=_&&(n=It(n,e,r)),rt(n,t)},Z.forEach=Ot,Z.forEachRight=Et,Z.forIn=x,Z.forInRight=function(n,t,e){var r=-1,u=[];
x(n,function(n,t){u.push(n,t)});var o=u.length;for(t=et(t,e,3);++r<o&&t(u[r],u[++r],n)!==false;);return n},Z.forOwn=d,Z.forOwnRight=gt,Z.functions=ht,Z.groupBy=Me,Z.indexBy=Ue,Z.initial=function(n,t,e){if(!n)return[];var r=0,u=n.length;if(typeof t!="number"&&t!=_){var o=u;for(t=Z.createCallback(t,e,3);o--&&t(n[o],o,n);)r++}else r=t==_||e?1:t||r;return v(n,0,Ie(Ee(0,u-r),u))},Z.intersection=function(n){for(var r=arguments,u=r.length,o=-1,i=f(),c=-1,l=lt(),v=n?n.length:0,g=[],h=f();++o<u;){var y=r[o];
i[o]=l===t&&(y?y.length:0)>=k&&a(o?r[o]:h)}n:for(;++c<v;){var _=i[0],y=n[c];if(0>(_?e(_,y):l(h,y))){for(o=u,(_||h).push(y);--o;)if(_=i[o],0>(_?e(_,y):l(r[o],y)))continue n;g.push(y)}}for(;u--;)(_=i[u])&&s(_);return p(i),p(h),g},Z.invert=yt,Z.invoke=function(n,t){var e=Ne.call(arguments,2),r=-1,u=typeof t=="function",o=n?n.length:0,a=Ht(typeof o=="number"?o:0);return Ot(n,function(n){a[++r]=(u?t:n[t]).apply(n,e)}),a},Z.keys=ze,Z.map=It,Z.max=St,Z.memoize=function(n,t){function e(){var r=e.cache,u=j+(t?t.apply(this,arguments):arguments[0]);
return ge.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}return e.cache={},e},Z.merge=function(n){var t=arguments,e=2;if(!mt(n))return n;if("number"!=typeof t[2]&&(e=t.length),3<e&&"function"==typeof t[e-2])var r=et(t[--e-1],t[e--],2);else 2<e&&"function"==typeof t[e-1]&&(r=t[--e]);for(var t=Ne.call(arguments,1,e),u=-1,o=f(),a=f();++u<e;)ot(n,t[u],r,o,a);return p(o),p(a),n},Z.min=function(n,t,e){var r=1/0,o=r;if(!t&&Te(n)){e=-1;for(var a=n.length;++e<a;){var i=n[e];i<o&&(o=i)}}else t=!t&&dt(n)?u:Z.createCallback(t,e,3),Ot(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,o=n)
});return o},Z.omit=function(n,t,e){var r=lt(),u=typeof t=="function",o={};if(u)t=Z.createCallback(t,e,3);else var a=rt(arguments,y,m,1);return x(n,function(n,e,i){(u?!t(n,e,i):0>r(a,e))&&(o[e]=n)}),o},Z.once=function(n){var t,e;return function(){return t?e:(t=y,e=n.apply(this,arguments),n=_,e)}},Z.pairs=function(n){for(var t=-1,e=ze(n),r=e.length,u=Ht(r);++t<r;){var o=e[t];u[t]=[o,n[o]]}return u},Z.partial=function(n){return ft(n,_,Ne.call(arguments,1),[],y)},Z.partialRight=function(n){return ft(n,_,[],Ne.call(arguments,1),y,y)
},Z.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=-1,o=rt(arguments,y,m,1),a=mt(n)?o.length:0;++u<a;){var i=o[u];i in n&&(r[i]=n[i])}else t=Z.createCallback(t,e,3),x(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},Z.pluck=At,Z.pull=function(n){for(var t=arguments,e=0,r=t.length,u=n?n.length:0;++e<r;)for(var o=-1,a=t[e];++o<u;)n[o]===a&&(me.call(n,o--,1),u--);return n},Z.range=function(n,t,e){n=+n||0,e=typeof e=="number"?e:1,t==_&&(t=n,n=0);var r=-1;t=Ee(0,fe((t-n)/(e||1)));for(var u=Ht(t);++r<t;)u[r]=n,n+=e;
return u},Z.reject=function(n,t,e){return t=Z.createCallback(t,e,3),xt(n,function(n,e,r){return!t(n,e,r)})},Z.remove=function(n,t,e){var r=[];t=Z.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var o=n[e];t(o,e,n)&&(r.push(o),me.call(n,e--,1),u--)}else d(n,function(n,e,u){t(n,e,u)&&(r.push(n),delete u[e])});return r},Z.rest=Tt,Z.shuffle=function(n){var t=-1,e=n?n.length:0,r=Ht(typeof e=="number"?e:0);return Ot(n,function(n){var e=pe(Ae()*(++t+1));r[t]=r[e],r[e]=n}),r
},Z.sortBy=function(n,t,e){var r=-1,u=n?n.length:0,a=Ht(typeof u=="number"?u:0);for(t=Z.createCallback(t,e,3),Ot(n,function(n,e,u){var o=a[++r]=c();o.l=t(n,e,u),o.m=r,o.n=n}),u=a.length,a.sort(o);u--;)n=a[u],a[u]=n.n,s(n);return a},Z.tap=function(n,t){return t(n),n},Z.throttle=function(n,t,e){var r=y,u=y;return e===false?r=m:mt(e)&&(r="leading"in e?e.leading:r,u="trailing"in e?e.trailing:u),e=c(),e.leading=r,e.maxWait=t,e.trailing=u,n=Lt(n,t,e),s(e),n},Z.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Ht(n);
for(t=et(t,e,1);++r<n;)u[r]=t(r);return u},Z.toArray=function(n){return n&&typeof n.length=="number"?v(n):wt(n)},Z.transform=function(n,t,e,r){var u=Te(n);return t=et(t,r,4),e==_&&(u?e=[]:(r=n&&n.constructor,e=mt(r&&r.prototype)?je(r&&r.prototype):{})),(u?Ot:d)(n,function(n,r,u){return t(e,n,r,u)}),e},Z.union=function(){return at(rt(arguments,y,y))},Z.uniq=qt,Z.values=wt,Z.where=xt,Z.without=function(n){return $t(n,Ne.call(arguments,1))},Z.wrap=function(n,t){return function(){var e=[n];return he.apply(e,arguments),t.apply(this,e)
}},Z.zip=Wt,Z.zipObject=Pt,Z.collect=It,Z.drop=Tt,Z.each=Ot,Z.extend=J,Z.methods=ht,Z.object=Pt,Z.select=xt,Z.tail=Tt,Z.unique=qt,Z.unzip=Wt,Vt(Z),Z.clone=function(n,t,e,r){return typeof t!="boolean"&&t!=_&&(r=e,e=t,t=m),tt(n,t,typeof e=="function"&&et(e,r,1))},Z.cloneDeep=function(n,t,e){return tt(n,y,typeof t=="function"&&et(t,e,1))},Z.contains=jt,Z.escape=function(n){return n==_?"":ee(n).replace(Ke,ct)},Z.every=kt,Z.find=Ct,Z.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;for(t=Z.createCallback(t,e,3);++r<u;)if(t(n[r],r,n))return r;
return-1},Z.findLast=function(n,t,e){var r;return t=Z.createCallback(t,e),Et(n,function(n,e,u){return t(n,e,u)?(r=n,m):void 0}),r},Z.findLastIndex=function(n,t,e){var r=n?n.length:0;for(t=Z.createCallback(t,e);r--&&!t(n[-1],-1,n););return-1},Z.findKey=function(n,t,e){var r;return t=Z.createCallback(t,e,3),d(n,function(n,e,u){return t(n,e,u)?(r=e,m):void 0}),r},Z.findLastKey=function(n,t,e){var r;return t=Z.createCallback(t,e),gt(n,function(n,e,u){return t(n,e,u)?(r=e,m):void 0}),r},Z.has=function(n,t){return n?ge.call(n,t):m
},Z.identity=Ut,Z.indexOf=Ft,Z.isArguments=vt,Z.isArray=Te,Z.isBoolean=function(n){return n===y||n===false||be.call(n)==q},Z.isDate=function(n){return n?typeof n=="object"&&be.call(n)==W:m},Z.isElement=function(n){return n?1===n.nodeType:m},Z.isEmpty=function(n){var t=y;if(!n)return t;var e=be.call(n),r=n.length;return e==z||e==U||e==T||e==L&&typeof r=="number"&&_t(n.splice)?!r:(d(n,function(){return t=m}),t)},Z.isEqual=function(n,t,e,r){return ut(n,t,typeof e=="function"&&et(e,r,2))},Z.isFinite=function(n){return xe(n)&&!Ce(parseFloat(n))
},Z.isFunction=_t,Z.isNaN=function(n){return bt(n)&&n!=+n},Z.isNull=function(n){return n===_},Z.isNumber=bt,Z.isObject=mt,Z.isPlainObject=b,Z.isRegExp=function(n){return n?typeof n=="object"&&be.call(n)==M:m},Z.isString=dt,Z.isUndefined=function(n){return typeof n=="undefined"},Z.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?Ee(0,r+e):Ie(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},Z.mixin=Vt,Z.noConflict=function(){return r._=oe,this},Z.parseInt=Ve,Z.random=function(n,t){n==_&&t==_&&(t=1),n=+n||0,t==_?(t=n,n=0):t=+t||0;
var e=Ae();return n%1||t%1?n+Ie(e*(t-n+parseFloat("1e-"+((e+"").length-1))),t):n+pe(e*(t-n+1))},Z.reduce=Nt,Z.reduceRight=Rt,Z.result=function(n,t){var e=n?n[t]:h;return _t(e)?n[t]():e},Z.runInContext=g,Z.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:ze(n).length},Z.some=Bt,Z.sortedIndex=zt,Z.template=function(n,t,e){var r=Z.templateSettings;n||(n=""),e=H({},e,r);var u,a=H({},e.imports,r.imports),r=ze(a),a=wt(a),o=0,f=e.interpolate||B,c="__p+='",f=te((e.escape||B).source+"|"+f.source+"|"+(f===N?S:B).source+"|"+(e.evaluate||B).source+"|$","g");
n.replace(f,function(t,e,r,a,f,l){return r||(r=a),c+=n.slice(o,l).replace(D,i),e&&(c+="'+__e("+e+")+'"),f&&(u=y,c+="';"+f+";__p+='"),r&&(c+="'+((__t=("+r+"))==null?'':__t)+'"),o=l+t.length,t}),c+="';\n",f=e=e.variable,f||(e="obj",c="with("+e+"){"+c+"}"),c=(u?c.replace(O,""):c).replace(E,"$1").replace(I,"$1;"),c="function("+e+"){"+(f?"":e+"||("+e+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var l=Xt(r,"return "+c).apply(h,a)
}catch(p){throw p.source=c,p}return t?l(t):(l.source=c,l)},Z.unescape=function(n){return n==_?"":ee(n).replace(Pe,st)},Z.uniqueId=function(n){var t=++w;return ee(n==_?"":n)+t},Z.all=kt,Z.any=Bt,Z.detect=Ct,Z.findWhere=Ct,Z.foldl=Nt,Z.foldr=Rt,Z.include=jt,Z.inject=Nt,d(Z,function(n,t){Z.prototype[t]||(Z.prototype[t]=function(){var t=[this.__wrapped__],e=this.__chain__;return he.apply(t,arguments),t=n.apply(Z,t),e?new nt(t,e):t})}),Z.first=Dt,Z.last=function(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&t!=_){var a=u;
for(t=Z.createCallback(t,e,3);a--&&t(n[a],a,n);)r++}else if(r=t,r==_||e)return n[u-1];return v(n,Ee(0,u-r))}},Z.take=Dt,Z.head=Dt,d(Z,function(n,t){Z.prototype[t]||(Z.prototype[t]=function(t,e){var r=this.__chain__,u=n(this.__wrapped__,t,e);return!r&&(t==_||e&&typeof t!="function")?u:new nt(u,r)})}),Z.VERSION="1.3.1",Z.prototype.chain=function(){return this.__chain__=y,this},Z.prototype.toString=function(){return ee(this.__wrapped__)},Z.prototype.value=Gt,Z.prototype.valueOf=Gt,Ot(["join","pop","shift"],function(n){var t=ue[n];
},Z.isFunction=_t,Z.isNaN=function(n){return bt(n)&&n!=+n},Z.isNull=function(n){return n===_},Z.isNumber=bt,Z.isObject=mt,Z.isPlainObject=b,Z.isRegExp=function(n){return n?typeof n=="object"&&be.call(n)==M:m},Z.isString=dt,Z.isUndefined=function(n){return typeof n=="undefined"},Z.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?Ee(0,r+e):Ie(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},Z.mixin=Vt,Z.noConflict=function(){return r._=ae,this},Z.parseInt=Ve,Z.random=function(n,t){n==_&&t==_&&(t=1),n=+n||0,t==_?(t=n,n=0):t=+t||0;
var e=Ae();return n%1||t%1?n+Ie(e*(t-n+parseFloat("1e-"+((e+"").length-1))),t):n+pe(e*(t-n+1))},Z.reduce=Nt,Z.reduceRight=Rt,Z.result=function(n,t){var e=n?n[t]:h;return _t(e)?n[t]():e},Z.runInContext=g,Z.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:ze(n).length},Z.some=Bt,Z.sortedIndex=zt,Z.template=function(n,t,e){var r=Z.templateSettings;n||(n=""),e=H({},e,r);var u,o=H({},e.imports,r.imports),r=ze(o),o=wt(o),a=0,f=e.interpolate||B,c="__p+='",f=te((e.escape||B).source+"|"+f.source+"|"+(f===N?S:B).source+"|"+(e.evaluate||B).source+"|$","g");
n.replace(f,function(t,e,r,o,f,l){return r||(r=o),c+=n.slice(a,l).replace(D,i),e&&(c+="'+__e("+e+")+'"),f&&(u=y,c+="';"+f+";__p+='"),r&&(c+="'+((__t=("+r+"))==null?'':__t)+'"),a=l+t.length,t}),c+="';\n",f=e=e.variable,f||(e="obj",c="with("+e+"){"+c+"}"),c=(u?c.replace(O,""):c).replace(E,"$1").replace(I,"$1;"),c="function("+e+"){"+(f?"":e+"||("+e+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var l=Xt(r,"return "+c).apply(h,o)
}catch(p){throw p.source=c,p}return t?l(t):(l.source=c,l)},Z.unescape=function(n){return n==_?"":ee(n).replace(Pe,st)},Z.uniqueId=function(n){var t=++w;return ee(n==_?"":n)+t},Z.all=kt,Z.any=Bt,Z.detect=Ct,Z.findWhere=Ct,Z.foldl=Nt,Z.foldr=Rt,Z.include=jt,Z.inject=Nt,d(Z,function(n,t){Z.prototype[t]||(Z.prototype[t]=function(){var t=[this.__wrapped__],e=this.__chain__;return he.apply(t,arguments),t=n.apply(Z,t),e?new nt(t,e):t})}),Z.first=Dt,Z.last=function(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&t!=_){var o=u;
for(t=Z.createCallback(t,e,3);o--&&t(n[o],o,n);)r++}else if(r=t,r==_||e)return n[u-1];return v(n,Ee(0,u-r))}},Z.take=Dt,Z.head=Dt,d(Z,function(n,t){Z.prototype[t]||(Z.prototype[t]=function(t,e){var r=this.__chain__,u=n(this.__wrapped__,t,e);return!r&&(t==_||e&&typeof t!="function")?u:new nt(u,r)})}),Z.VERSION="1.3.1",Z.prototype.chain=function(){return this.__chain__=y,this},Z.prototype.toString=function(){return ee(this.__wrapped__)},Z.prototype.value=Gt,Z.prototype.valueOf=Gt,Ot(["join","pop","shift"],function(n){var t=ue[n];
Z.prototype[n]=function(){var n=this.__chain__,e=t.apply(this.__wrapped__,arguments);return n?new nt(e,n):e}}),Ot(["push","reverse","sort","unshift"],function(n){var t=ue[n];Z.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),Ot(["concat","slice","splice"],function(n){var t=ue[n];Z.prototype[n]=function(){return new nt(t.apply(this.__wrapped__,arguments),this.__chain__)}}),Z}var h,y=!0,_=null,m=!1,b=[],d=[],w=0,j=+new Date+"",k=75,x=40,C=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",O=/\b__p\+='';/g,E=/\b(__p\+=)''\+/g,I=/(__e\(.*?\)|\b__t\))\+'';/g,S=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,A=/\w*$/,N=/<%=([\s\S]+?)%>/g,R=RegExp("^["+C+"]*0+(?=.$)"),B=/($^)/,$=($=/\bthis\b/)&&$.test(g)&&$,D=/['\n\r\t\u2028\u2029\\]/g,F="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),T="[object Arguments]",z="[object Array]",q="[object Boolean]",W="[object Date]",P="[object Function]",K="[object Number]",L="[object Object]",M="[object RegExp]",U="[object String]",V={};
V[P]=m,V[T]=V[z]=V[q]=V[W]=V[K]=V[L]=V[M]=V[U]=y;var G={"boolean":m,"function":y,object:y,number:m,string:m,undefined:m},H={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},J=G[typeof exports]&&exports,Q=G[typeof module]&&module&&module.exports==J&&module,X=G[typeof global]&&global;!X||X.global!==X&&X.window!==X||(n=X);var Y=g();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=Y, define(function(){return Y})):J&&!J.nodeType?Q?(Q.exports=Y)._=Y:J._=Y:n._=Y
}(this);

View File

@@ -229,7 +229,7 @@
* `sortedIndex`, `runInContext`, `template`, `unescape`, `uniqueId`, and `value`
*
* The wrapper functions `first` and `last` return wrapped values when `n` is
* passed, otherwise they return unwrapped values.
* provided, otherwise they return unwrapped values.
*
* @name _
* @constructor
@@ -591,14 +591,14 @@
/**
* Creates a function that, when called, invokes `func` with the `this` binding
* of `thisArg` and prepends any `partialArgs` to the arguments passed to the
* of `thisArg` and prepends any `partialArgs` to the arguments provided to the
* bound function.
*
* @private
* @param {Function|String} func The function to bind or the method name.
* @param {Mixed} thisArg The `this` binding of `func`.
* @param {Array} partialArgs An array of arguments to be prepended to those passed to the new function.
* @param {Array} partialRightArgs An array of arguments to be appended to those passed to the new function.
* @param {Array} partialArgs An array of arguments to be prepended to those provided to the new function.
* @param {Array} partialRightArgs An array of arguments to be appended to those provided to the new function.
* @param {Boolean} [isPartial=false] A flag to indicate performing only partial application.
* @param {Boolean} [isAlt=false] A flag to indicate `_.bindKey` or `_.partialRight` behavior.
* @returns {Function} Returns the new bound function.
@@ -1661,7 +1661,7 @@
* per iteration. If a property name or object is provided, it will be used
* to create a "_.pluck" or "_.where" style callback, respectively.
* @param {Mixed} [thisArg] The `this` binding of `callback`.
* @returns {Boolean} Returns `true` if all elements pass the callback check,
* @returns {Boolean} Returns `true` if all elements passed the callback check,
* else `false`.
* @example
*
@@ -1974,7 +1974,7 @@
/**
* Invokes the method named by `methodName` on each element in the `collection`,
* returning an array of the results of each invoked method. Additional arguments
* will be passed to each invoked method. If `methodName` is a function, it will
* will be provided to each invoked method. If `methodName` is a function, it will
* be invoked for, and `this` bound to, each element in the `collection`.
*
* @static
@@ -2235,7 +2235,7 @@
* Reduces a `collection` to a value which is the accumulated result of running
* each element in the `collection` through the `callback`, where each successive
* `callback` execution consumes the return value of the previous execution.
* If `accumulator` is not passed, the first element of the `collection` will be
* If `accumulator` is not provided, the first element of the `collection` will be
* used as the initial `accumulator` value. The `callback` is bound to `thisArg`
* and invoked with four arguments; (accumulator, value, index|key, collection).
*
@@ -2436,7 +2436,7 @@
* per iteration. If a property name or object is provided, it will be used
* to create a "_.pluck" or "_.where" style callback, respectively.
* @param {Mixed} [thisArg] The `this` binding of `callback`.
* @returns {Boolean} Returns `true` if any element passes the callback check,
* @returns {Boolean} Returns `true` if any element passed the callback check,
* else `false`.
* @example
*
@@ -2619,8 +2619,8 @@
}
/**
* Creates an array excluding all values of the passed-in arrays using
* strict equality for comparisons, i.e. `===`.
* Creates an array excluding all values of the provided arrays using strict
* equality for comparisons, i.e. `===`.
*
* @static
* @memberOf _
@@ -2883,7 +2883,7 @@
}
/**
* Creates an array of unique values present in all passed-in arrays using
* Creates an array of unique values present in all provided arrays using
* strict equality for comparisons, i.e. `===`.
*
* @static
@@ -3057,6 +3057,9 @@
* _.range(0, -10, -1);
* // => [0, -1, -2, -3, -4, -5, -6, -7, -8, -9]
*
* _.range(1, 4, 0);
* // => [1, 1, 1]
*
* _.range(0);
* // => []
*/
@@ -3221,8 +3224,8 @@
}
/**
* Creates an array of unique values, in order, of the passed-in arrays
* using strict equality for comparisons, i.e. `===`.
* Creates an array of unique values, in order, of the provided arrays using
* strict equality for comparisons, i.e. `===`.
*
* @static
* @memberOf _
@@ -3296,7 +3299,7 @@
}
/**
* Creates an array excluding all passed values using strict equality for
* Creates an array excluding all provided values using strict equality for
* comparisons, i.e. `===`.
*
* @static
@@ -3407,7 +3410,7 @@
/**
* Creates a function that, when called, invokes `func` with the `this`
* binding of `thisArg` and prepends any additional `bind` arguments to those
* passed to the bound function.
* provided to the bound function.
*
* @static
* @memberOf _
@@ -3467,7 +3470,7 @@
}
/**
* Creates a function that is the composition of the passed functions,
* Creates a function that is the composition of the provided functions,
* where each function consumes the return value of the function that follows.
* For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`.
* Each function is executed with the `this` binding of the composed function.
@@ -3688,7 +3691,7 @@
/**
* Defers executing the `func` function until the current call stack has cleared.
* Additional arguments will be passed to `func` when it is invoked.
* Additional arguments will be provided to `func` when it is invoked.
*
* @static
* @memberOf _
@@ -3708,7 +3711,7 @@
/**
* Executes the `func` function after `wait` milliseconds. Additional arguments
* will be passed to `func` when it is invoked.
* will be provided to `func` when it is invoked.
*
* @static
* @memberOf _
@@ -3730,11 +3733,11 @@
/**
* Creates a function that memoizes the result of `func`. If `resolver` is
* passed, it will be used to determine the cache key for storing the result
* based on the arguments passed to the memoized function. By default, the first
* argument passed to the memoized function is used as the cache key. The `func`
* is executed with the `this` binding of the memoized function. The result
* cache is exposed as the `cache` property on the memoized function.
* provided, it will be used to determine 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 cache key.
* The `func` is executed with the `this` binding of the memoized function.
* The result cache is exposed as the `cache` property on the memoized function.
*
* @static
* @memberOf _
@@ -3794,7 +3797,7 @@
/**
* Creates a function that, when called, invokes `func` with any additional
* `partial` arguments prepended to those passed to the new function. This
* `partial` arguments prepended to those provided to the new function. This
* method is similar to `_.bind`, except it does **not** alter the `this` binding.
*
* @static
@@ -3865,8 +3868,8 @@
/**
* Creates a function that passes `value` to the `wrapper` function as its
* first argument. Additional arguments passed to the function are appended
* to those passed to the `wrapper` function. The `wrapper` is executed with
* first argument. Additional arguments provided to the function are appended
* to those provided to the `wrapper` function. The `wrapper` is executed with
* the `this` binding of the created function.
*
* @static
@@ -3913,7 +3916,7 @@
}
/**
* This method returns the first argument passed to it.
* This method returns the first argument provided to it.
*
* @static
* @memberOf _

View File

@@ -255,7 +255,7 @@ _.compact([0, 1, false, 2, '', 3]);
### <a id="_differencearray--array1-array2-"></a>`_.difference(array [, array1, array2, ...])`
<a href="#_differencearray--array1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4115 "View in source") [&#x24C9;][1]
Creates an array excluding all values of the passed-in arrays using strict equality for comparisons, i.e. `===`.
Creates an array excluding all values of the provided arrays using strict equality for comparisons, i.e. `===`.
#### Arguments
1. `array` *(Array)*: The array to process.
@@ -280,7 +280,7 @@ _.difference([1, 2, 3, 4, 5], [5, 2, 10]);
### <a id="_findindexarray--callbackidentity-thisarg"></a>`_.findIndex(array [, callback=identity, thisArg])`
<a href="#_findindexarray--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4165 "View in source") [&#x24C9;][1]
This method is like `_.find`, except that it returns the index of the element that passes the callback check, instead of the element itself.
This method is like `_.find`, except that it returns the index of the first element that passes the callback check, instead of the element itself.
#### Arguments
1. `array` *(Array)*: The array to search.
@@ -528,7 +528,7 @@ _.initial(food, { 'type': 'vegetable' });
### <a id="_intersectionarray1-array2-"></a>`_.intersection([array1, array2, ...])`
<a href="#_intersectionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4467 "View in source") [&#x24C9;][1]
Creates an array of unique values present in all passed-in arrays using strict equality for comparisons, i.e. `===`.
Creates an array of unique values present in all provided arrays using strict equality for comparisons, i.e. `===`.
#### Arguments
1. `[array1, array2, ...]` *(Array)*: The arrays to inspect.
@@ -638,7 +638,7 @@ _.lastIndexOf([1, 2, 3, 1, 2, 3], 2, 3);
### <a id="_pullarray--value1-value2-"></a>`_.pull(array [, value1, value2, ...])`
<a href="#_pullarray--value1-value2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4640 "View in source") [&#x24C9;][1]
Removes all passed values from the given array using strict equality for comparisons, i.e. `===`.
Removes all provided values from the given array using strict equality for comparisons, i.e. `===`.
#### Arguments
1. `array` *(Array)*: The array to modify.
@@ -663,7 +663,7 @@ console.log(array);
<!-- div -->
### <a id="_rangestart0-end--step1"></a>`_.range([start=0], end [, step=1])`
<a href="#_rangestart0-end--step1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4688 "View in source") [&#x24C9;][1]
<a href="#_rangestart0-end--step1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4691 "View in source") [&#x24C9;][1]
Creates an array of numbers *(positive and/or negative)* progressing from `start` up to but not including `end`. If `start` is less than `stop` a zero-length range is created unless a negative `step` is specified.
@@ -689,6 +689,9 @@ _.range(0, 30, 5);
_.range(0, -10, -1);
// => [0, -1, -2, -3, -4, -5, -6, -7, -8, -9]
_.range(1, 4, 0);
// => [1, 1, 1]
_.range(0);
// => []
```
@@ -701,7 +704,7 @@ _.range(0);
<!-- div -->
### <a id="_restarray--callbackn1-thisarg"></a>`_.rest(array [, callback|n=1, thisArg])`
<a href="#_restarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4767 "View in source") [&#x24C9;][1]
<a href="#_restarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4770 "View in source") [&#x24C9;][1]
The opposite of `_.initial`, this method gets all but the first value of `array`. If a number `n` is provided, the first `n` values are excluded from the result. If a `callback` function is provided, elements at the beginning of the array are excluded from the result as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -761,7 +764,7 @@ _.rest(food, { 'type': 'fruit' });
<!-- div -->
### <a id="_sortedindexarray-value--callbackidentity-thisarg"></a>`_.sortedIndex(array, value [, callback=identity, thisArg])`
<a href="#_sortedindexarray-value--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4831 "View in source") [&#x24C9;][1]
<a href="#_sortedindexarray-value--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4834 "View in source") [&#x24C9;][1]
Uses a binary search to determine the smallest index at which the `value` should be inserted into `array` in order to maintain the sort order of the sorted `array`. If `callback` is provided, it will be executed for `value` and each element in `array` to compute their sort ranking. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -810,9 +813,9 @@ _.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) {
<!-- div -->
### <a id="_unionarray1-array2-"></a>`_.union([array1, array2, ...])`
<a href="#_unionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4862 "View in source") [&#x24C9;][1]
<a href="#_unionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4865 "View in source") [&#x24C9;][1]
Creates an array of unique values, in order, of the passed-in arrays using strict equality for comparisons, i.e. `===`.
Creates an array of unique values, in order, of the provided arrays using strict equality for comparisons, i.e. `===`.
#### Arguments
1. `[array1, array2, ...]` *(Array)*: The arrays to inspect.
@@ -834,7 +837,7 @@ _.union([1, 2, 3], [101, 2, 1, 10], [2, 1]);
<!-- div -->
### <a id="_uniqarray--issortedfalse-callbackidentity-thisarg"></a>`_.uniq(array [, isSorted=false, callback=identity, thisArg])`
<a href="#_uniqarray--issortedfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4910 "View in source") [&#x24C9;][1]
<a href="#_uniqarray--issortedfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4913 "View in source") [&#x24C9;][1]
Creates a duplicate-value-free version of the `array` using strict equality for comparisons, i.e. `===`. If the `array` is already sorted, passing `true` for `isSorted` will run a faster algorithm. If `callback` is provided, each element of `array` is provided through the `callback` before uniqueness is computed. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -881,9 +884,9 @@ _.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
<!-- div -->
### <a id="_withoutarray--value1-value2-"></a>`_.without(array [, value1, value2, ...])`
<a href="#_withoutarray--value1-value2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4938 "View in source") [&#x24C9;][1]
<a href="#_withoutarray--value1-value2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4941 "View in source") [&#x24C9;][1]
Creates an array excluding all passed values using strict equality for comparisons, i.e. `===`.
Creates an array excluding all provided values using strict equality for comparisons, i.e. `===`.
#### Arguments
1. `array` *(Array)*: The array to filter.
@@ -906,7 +909,7 @@ _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
<!-- div -->
### <a id="_ziparray1-array2-"></a>`_.zip([array1, array2, ...])`
<a href="#_ziparray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4958 "View in source") [&#x24C9;][1]
<a href="#_ziparray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4961 "View in source") [&#x24C9;][1]
Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on.
@@ -933,7 +936,7 @@ _.zip(['moe', 'larry'], [30, 40], [true, false]);
<!-- div -->
### <a id="_zipobjectkeys--values"></a>`_.zipObject(keys [, values=[]])`
<a href="#_zipobjectkeys--values">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4988 "View in source") [&#x24C9;][1]
<a href="#_zipobjectkeys--values">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4991 "View in source") [&#x24C9;][1]
Creates an object composed from arrays of `keys` and `values`. Pass either a single two dimensional array, i.e. `[[key1, value1], [key2, value2]]`, or two arrays, one of `keys` and one of corresponding `values`.
@@ -983,7 +986,7 @@ The chainable wrapper functions are:<br>
The non-chainable wrapper functions are:<br>
`clone`, `cloneDeep`, `contains`, `escape`, `every`, `find`, `has`, `identity`, `indexOf`, `isArguments`, `isArray`, `isBoolean`, `isDate`, `isElement`, `isEmpty`, `isEqual`, `isFinite`, `isFunction`, `isNaN`, `isNull`, `isNumber`, `isObject`, `isPlainObject`, `isRegExp`, `isString`, `isUndefined`, `join`, `lastIndexOf`, `mixin`, `noConflict`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`, `result`, `shift`, `size`, `some`, `sortedIndex`, `runInContext`, `template`, `unescape`, `uniqueId`, and `value`
The wrapper functions `first` and `last` return wrapped values when `n` is passed, otherwise they return unwrapped values.
The wrapper functions `first` and `last` return wrapped values when `n` is provided, otherwise they return unwrapped values.
#### Arguments
1. `value` *(Mixed)*: The value to wrap in a `lodash` instance.
@@ -1021,7 +1024,7 @@ _.isArray(squares.value());
<!-- div -->
### <a id="_chainvalue"></a>`_.chain(value)`
<a href="#_chainvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6093 "View in source") [&#x24C9;][1]
<a href="#_chainvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6096 "View in source") [&#x24C9;][1]
Creates a `lodash` object that wraps the given `value`.
@@ -1054,7 +1057,7 @@ var youngest = _.chain(stooges)
<!-- div -->
### <a id="_tapvalue-interceptor"></a>`_.tap(value, interceptor)`
<a href="#_tapvalue-interceptor">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6120 "View in source") [&#x24C9;][1]
<a href="#_tapvalue-interceptor">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6123 "View in source") [&#x24C9;][1]
Invokes `interceptor` with the `value` as the first argument, and then returns `value`. The purpose of this method is to "tap into" a method chain, in order to perform operations on intermediate results within the chain.
@@ -1084,7 +1087,7 @@ _([1, 2, 3, 4])
<!-- div -->
### <a id="_prototypechain"></a>`_.prototype.chain()`
<a href="#_prototypechain">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6140 "View in source") [&#x24C9;][1]
<a href="#_prototypechain">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6143 "View in source") [&#x24C9;][1]
Enables method chaining on the wrapper object.
@@ -1108,7 +1111,7 @@ var sum = _([1, 2, 3])
<!-- div -->
### <a id="_prototypetostring"></a>`_.prototype.toString()`
<a href="#_prototypetostring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6157 "View in source") [&#x24C9;][1]
<a href="#_prototypetostring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6160 "View in source") [&#x24C9;][1]
Produces the `toString` result of the wrapped value.
@@ -1129,7 +1132,7 @@ _([1, 2, 3]).toString();
<!-- div -->
### <a id="_prototypevalueof"></a>`_.prototype.valueOf()`
<a href="#_prototypevalueof">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6174 "View in source") [&#x24C9;][1]
<a href="#_prototypevalueof">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6177 "View in source") [&#x24C9;][1]
Extracts the wrapped value.
@@ -1279,7 +1282,7 @@ If an object is provided for `callback`, the created "_.where" style callback wi
3. `[thisArg]` *(Mixed)*: The `this` binding of `callback`.
#### Returns
*(Boolean)*: Returns `true` if all elements pass the callback check, else `false`.
*(Boolean)*: Returns `true` if all elements passed the callback check, else `false`.
#### Example
```js
@@ -1572,7 +1575,7 @@ _.indexBy(stooges, function(key) { this.fromCharCode(key.code); }, String);
### <a id="_invokecollection-methodname--arg1-arg2-"></a>`_.invoke(collection, methodName [, arg1, arg2, ...])`
<a href="#_invokecollection-methodname--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3429 "View in source") [&#x24C9;][1]
Invokes the method named by `methodName` on each element in the `collection`, returning an array of the results of each invoked method. Additional arguments will be passed to each invoked method. If `methodName` is a function, it will be invoked for, and `this` bound to, each element in the `collection`.
Invokes the method named by `methodName` on each element in the `collection`, returning an array of the results of each invoked method. Additional arguments will be provided to each invoked method. If `methodName` is a function, it will be invoked for, and `this` bound to, each element in the `collection`.
#### Arguments
1. `collection` *(Array|Object|String)*: The collection to iterate over.
@@ -1760,7 +1763,7 @@ _.pluck(stooges, 'name');
### <a id="_reducecollection--callbackidentity-accumulator-thisarg"></a>`_.reduce(collection [, callback=identity, accumulator, thisArg])`
<a href="#_reducecollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3689 "View in source") [&#x24C9;][1]
Reduces a `collection` to a value which is the accumulated result of running each element in the `collection` through the `callback`, where each successive `callback` execution consumes the return value of the previous execution. If `accumulator` is not passed, the first element of the `collection` will be used as the initial `accumulator` value. The `callback` is bound to `thisArg` and invoked with four arguments; *(accumulator, value, index|key, collection)*.
Reduces a `collection` to a value which is the accumulated result of running each element in the `collection` through the `callback`, where each successive `callback` execution consumes the return value of the previous execution. If `accumulator` is not provided, the first element of the `collection` will be used as the initial `accumulator` value. The `callback` is bound to `thisArg` and invoked with four arguments; *(accumulator, value, index|key, collection)*.
#### Aliases
*foldl, inject*
@@ -1977,7 +1980,7 @@ If an object is provided for `callback`, the created "_.where" style callback wi
3. `[thisArg]` *(Mixed)*: The `this` binding of `callback`.
#### Returns
*(Boolean)*: Returns `true` if any element passes the callback check, else `false`.
*(Boolean)*: Returns `true` if any element passed the callback check, else `false`.
#### Example
```js
@@ -2107,7 +2110,7 @@ _.where(stooges, { 'quotes': ['Poifect!'] });
<!-- div -->
### <a id="_aftern-func"></a>`_.after(n, func)`
<a href="#_aftern-func">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5025 "View in source") [&#x24C9;][1]
<a href="#_aftern-func">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5028 "View in source") [&#x24C9;][1]
Creates a function this is restricted to executing `func`, with the `this` binding and arguments of the created function, only after it is called `n` times.
@@ -2135,9 +2138,9 @@ _.forEach(notes, function(note) {
<!-- div -->
### <a id="_bindfunc--thisarg-arg1-arg2-"></a>`_.bind(func [, thisArg, arg1, arg2, ...])`
<a href="#_bindfunc--thisarg-arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5055 "View in source") [&#x24C9;][1]
<a href="#_bindfunc--thisarg-arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5058 "View in source") [&#x24C9;][1]
Creates a function that, when called, invokes `func` with the `this` binding of `thisArg` and prepends any additional `bind` arguments to those passed to the bound function.
Creates a function that, when called, invokes `func` with the `this` binding of `thisArg` and prepends any additional `bind` arguments to those provided to the bound function.
#### Arguments
1. `func` *(Function)*: The function to bind.
@@ -2166,7 +2169,7 @@ func();
<!-- div -->
### <a id="_bindallobject--methodname1-methodname2-"></a>`_.bindAll(object [, methodName1, methodName2, ...])`
<a href="#_bindallobject--methodname1-methodname2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5083 "View in source") [&#x24C9;][1]
<a href="#_bindallobject--methodname1-methodname2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5086 "View in source") [&#x24C9;][1]
Binds methods on `object` to `object`, overwriting the existing method. Method names may be specified as individual arguments or as arrays of method names. If no method names are provided, all the function properties of `object` will be bound.
@@ -2197,9 +2200,9 @@ jQuery('#docs').on('click', view.onClick);
<!-- div -->
### <a id="_bindkeyobject-key--arg1-arg2-"></a>`_.bindKey(object, key [, arg1, arg2, ...])`
<a href="#_bindkeyobject-key--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5129 "View in source") [&#x24C9;][1]
<a href="#_bindkeyobject-key--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5132 "View in source") [&#x24C9;][1]
Creates a function that, when called, invokes the method at `object[key]` and prepends any additional `bindKey` arguments to those passed to the bound function. This method differs from `_.bind` by allowing bound functions to reference methods that will be redefined or don't yet exist. See http://michaux.ca/articles/lazy-function-definition-pattern.
Creates a function that, when called, invokes the method at `object[key]` and prepends any additional `bindKey` arguments to those provided to the bound function. This method differs from `_.bind` by allowing bound functions to reference methods that will be redefined or don't yet exist. See http://michaux.ca/articles/lazy-function-definition-pattern.
#### Arguments
1. `object` *(Object)*: The object the method belongs to.
@@ -2238,9 +2241,9 @@ func();
<!-- div -->
### <a id="_composefunc1-func2-"></a>`_.compose([func1, func2, ...])`
<a href="#_composefunc1-func2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5163 "View in source") [&#x24C9;][1]
<a href="#_composefunc1-func2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5166 "View in source") [&#x24C9;][1]
Creates a function that is the composition of the passed functions, where each function consumes the return value of the function that follows. For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`. Each function is executed with the `this` binding of the composed function.
Creates a function that is the composition of the provided functions, where each function consumes the return value of the function that follows. For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`. Each function is executed with the `this` binding of the composed function.
#### Arguments
1. `[func1, func2, ...]` *(Function)*: Functions to compose.
@@ -2276,7 +2279,7 @@ welcome('curly');
<!-- div -->
### <a id="_createcallbackfuncidentity-thisarg-argcount"></a>`_.createCallback([func=identity, thisArg, argCount])`
<a href="#_createcallbackfuncidentity-thisarg-argcount">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5207 "View in source") [&#x24C9;][1]
<a href="#_createcallbackfuncidentity-thisarg-argcount">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5210 "View in source") [&#x24C9;][1]
Produces a callback bound to an optional `thisArg`. If `func` is a property name, the created callback will return the property value for a given element. If `func` is an object, the created callback will return `true` for elements that contain the equivalent object properties, otherwise it will return `false`.
@@ -2315,7 +2318,7 @@ _.filter(stooges, 'age__gt45');
<!-- div -->
### <a id="_debouncefunc-wait-options"></a>`_.debounce(func, wait, options)`
<a href="#_debouncefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5283 "View in source") [&#x24C9;][1]
<a href="#_debouncefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5286 "View in source") [&#x24C9;][1]
Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Pass an `options` object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced function will return the result of the last `func` call.
@@ -2356,9 +2359,9 @@ source.addEventListener('message', _.debounce(batchLog, 250, {
<!-- div -->
### <a id="_deferfunc--arg1-arg2-"></a>`_.defer(func [, arg1, arg2, ...])`
<a href="#_deferfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5380 "View in source") [&#x24C9;][1]
<a href="#_deferfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5383 "View in source") [&#x24C9;][1]
Defers executing the `func` function until the current call stack has cleared. Additional arguments will be passed to `func` when it is invoked.
Defers executing the `func` function until the current call stack has cleared. Additional arguments will be provided to `func` when it is invoked.
#### Arguments
1. `func` *(Function)*: The function to defer.
@@ -2381,9 +2384,9 @@ _.defer(function() { console.log('deferred'); });
<!-- div -->
### <a id="_delayfunc-wait--arg1-arg2-"></a>`_.delay(func, wait [, arg1, arg2, ...])`
<a href="#_delayfunc-wait--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5406 "View in source") [&#x24C9;][1]
<a href="#_delayfunc-wait--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5409 "View in source") [&#x24C9;][1]
Executes the `func` function after `wait` milliseconds. Additional arguments will be passed to `func` when it is invoked.
Executes the `func` function after `wait` milliseconds. Additional arguments will be provided to `func` when it is invoked.
#### Arguments
1. `func` *(Function)*: The function to delay.
@@ -2408,9 +2411,9 @@ _.delay(log, 1000, 'logged later');
<!-- div -->
### <a id="_memoizefunc--resolver"></a>`_.memoize(func [, resolver])`
<a href="#_memoizefunc--resolver">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5431 "View in source") [&#x24C9;][1]
<a href="#_memoizefunc--resolver">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5434 "View in source") [&#x24C9;][1]
Creates a function that memoizes the result of `func`. If `resolver` is passed, it will be used to determine the cache key for storing the result based on the arguments passed to the memoized function. By default, the first argument passed to the memoized function is used as the cache key. The `func` is executed with the `this` binding of the memoized function. The result cache is exposed as the `cache` property on the memoized function.
Creates a function that memoizes the result of `func`. If `resolver` is provided, it will be used to determine 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 cache key. The `func` is executed with the `this` binding of the memoized function. The result cache is exposed as the `cache` property on the memoized function.
#### Arguments
1. `func` *(Function)*: The function to have its output memoized.
@@ -2434,7 +2437,7 @@ var fibonacci = _.memoize(function(n) {
<!-- div -->
### <a id="_oncefunc"></a>`_.once(func)`
<a href="#_oncefunc">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5461 "View in source") [&#x24C9;][1]
<a href="#_oncefunc">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5464 "View in source") [&#x24C9;][1]
Creates a function that is restricted to execute `func` once. Repeat calls to the function will return the value of the first call. The `func` is executed with the `this` binding of the created function.
@@ -2460,9 +2463,9 @@ initialize();
<!-- div -->
### <a id="_partialfunc--arg1-arg2-"></a>`_.partial(func [, arg1, arg2, ...])`
<a href="#_partialfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5496 "View in source") [&#x24C9;][1]
<a href="#_partialfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5499 "View in source") [&#x24C9;][1]
Creates a function that, when called, invokes `func` with any additional `partial` arguments prepended to those passed to the new function. This method is similar to `_.bind`, except it does **not** alter the `this` binding.
Creates a function that, when called, invokes `func` with any additional `partial` arguments prepended to those provided to the new function. This method is similar to `_.bind`, except it does **not** alter the `this` binding.
#### Arguments
1. `func` *(Function)*: The function to partially apply arguments to.
@@ -2487,9 +2490,9 @@ hi('moe');
<!-- div -->
### <a id="_partialrightfunc--arg1-arg2-"></a>`_.partialRight(func [, arg1, arg2, ...])`
<a href="#_partialrightfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5527 "View in source") [&#x24C9;][1]
<a href="#_partialrightfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5530 "View in source") [&#x24C9;][1]
This method is like `_.partial`, except that `partial` arguments are appended to those passed to the new function.
This method is like `_.partial`, except that `partial` arguments are appended to those provided to the new function.
#### Arguments
1. `func` *(Function)*: The function to partially apply arguments to.
@@ -2524,7 +2527,7 @@ options.imports
<!-- div -->
### <a id="_throttlefunc-wait-options"></a>`_.throttle(func, wait, options)`
<a href="#_throttlefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5562 "View in source") [&#x24C9;][1]
<a href="#_throttlefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5565 "View in source") [&#x24C9;][1]
Creates a function that, when executed, will only call the `func` function at most once per every `wait` milliseconds. Pass an `options` object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the throttled function will return the result of the last `func` call.
@@ -2558,9 +2561,9 @@ jQuery('.interactive').on('click', _.throttle(renewToken, 300000, {
<!-- div -->
### <a id="_wrapvalue-wrapper"></a>`_.wrap(value, wrapper)`
<a href="#_wrapvalue-wrapper">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5603 "View in source") [&#x24C9;][1]
<a href="#_wrapvalue-wrapper">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5606 "View in source") [&#x24C9;][1]
Creates a function that passes `value` to the `wrapper` function as its first argument. Additional arguments passed to the function are appended to those passed to the `wrapper` function. The `wrapper` is executed with the `this` binding of the created function.
Creates a function that passes `value` to the `wrapper` function as its first argument. Additional arguments provided to the function are appended to those provided to the `wrapper` function. The `wrapper` is executed with the `this` binding of the created function.
#### Arguments
1. `value` *(Mixed)*: The value to wrap.
@@ -2753,7 +2756,7 @@ _.defaults(food, { 'name': 'banana', 'type': 'fruit' });
### <a id="_findkeyobject--callbackidentity-thisarg"></a>`_.findKey(object [, callback=identity, thisArg])`
<a href="#_findkeyobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2001 "View in source") [&#x24C9;][1]
This method is like `_.findIndex`, except that it returns the key of the element that passes the callback check, instead of the element itself.
This method is like `_.findIndex`, except that it returns the key of the first element that passes the callback check, instead of the element itself.
#### Arguments
1. `object` *(Object)*: The object to search.
@@ -3733,7 +3736,7 @@ _.values({ 'one': 1, 'two': 2, 'three': 3 });
<!-- div -->
### <a id="_escapestring"></a>`_.escape(string)`
<a href="#_escapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5627 "View in source") [&#x24C9;][1]
<a href="#_escapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5630 "View in source") [&#x24C9;][1]
Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding HTML entities.
@@ -3757,9 +3760,9 @@ _.escape('Moe, Larry & Curly');
<!-- div -->
### <a id="_identityvalue"></a>`_.identity(value)`
<a href="#_identityvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5645 "View in source") [&#x24C9;][1]
<a href="#_identityvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5648 "View in source") [&#x24C9;][1]
This method returns the first argument passed to it.
This method returns the first argument provided to it.
#### Arguments
1. `value` *(Mixed)*: Any value.
@@ -3782,7 +3785,7 @@ moe === _.identity(moe);
<!-- div -->
### <a id="_mixinobject"></a>`_.mixin(object)`
<a href="#_mixinobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5671 "View in source") [&#x24C9;][1]
<a href="#_mixinobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5674 "View in source") [&#x24C9;][1]
Adds functions properties of `object` to the `lodash` function and chainable wrapper.
@@ -3812,7 +3815,7 @@ _('moe').capitalize();
<!-- div -->
### <a id="_noconflict"></a>`_.noConflict()`
<a href="#_noconflict">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5709 "View in source") [&#x24C9;][1]
<a href="#_noconflict">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5712 "View in source") [&#x24C9;][1]
Reverts the '_' variable to its previous value and returns a reference to the `lodash` function.
@@ -3832,7 +3835,7 @@ var lodash = _.noConflict();
<!-- div -->
### <a id="_parseintvalue--radix"></a>`_.parseInt(value [, radix])`
<a href="#_parseintvalue--radix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5733 "View in source") [&#x24C9;][1]
<a href="#_parseintvalue--radix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5736 "View in source") [&#x24C9;][1]
Converts the given `value` into an integer of the specified `radix`. If `radix` is `undefined` or `0`, a `radix` of `10` is used unless the `value` is a hexadecimal, in which case a `radix` of `16` is used.
@@ -3859,7 +3862,7 @@ _.parseInt('08');
<!-- div -->
### <a id="_randommin0-max1"></a>`_.random([min=0, max=1])`
<a href="#_randommin0-max1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5757 "View in source") [&#x24C9;][1]
<a href="#_randommin0-max1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5760 "View in source") [&#x24C9;][1]
Produces a random number between `min` and `max` *(inclusive)*. If only one argument is provided, a number between `0` and the given number will be returned.
@@ -3887,7 +3890,7 @@ _.random(5);
<!-- div -->
### <a id="_resultobject-property"></a>`_.result(object, property)`
<a href="#_resultobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5801 "View in source") [&#x24C9;][1]
<a href="#_resultobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5804 "View in source") [&#x24C9;][1]
Resolves the value of `property` on `object`. If `property` is a function, it will be invoked with the `this` binding of `object` and its result returned, else the property value is returned. If `object` is falsey, then `undefined` is returned.
@@ -3940,7 +3943,7 @@ Create a new `lodash` function using the given `context` object.
<!-- div -->
### <a id="_templatetext-data-options"></a>`_.template(text, data, options)`
<a href="#_templatetext-data-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5892 "View in source") [&#x24C9;][1]
<a href="#_templatetext-data-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5895 "View in source") [&#x24C9;][1]
A micro-templating method that handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code.
@@ -4028,7 +4031,7 @@ fs.writeFileSync(path.join(cwd, 'jst.js'), '\
<!-- div -->
### <a id="_timesn-callback--thisarg"></a>`_.times(n, callback [, thisArg])`
<a href="#_timesn-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6017 "View in source") [&#x24C9;][1]
<a href="#_timesn-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6020 "View in source") [&#x24C9;][1]
Executes the `callback` function `n` times, returning an array of the results of each `callback` execution. The `callback` is bound to `thisArg` and invoked with one argument; *(index)*.
@@ -4060,7 +4063,7 @@ _.times(3, function(n) { this.cast(n); }, mage);
<!-- div -->
### <a id="_unescapestring"></a>`_.unescape(string)`
<a href="#_unescapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6044 "View in source") [&#x24C9;][1]
<a href="#_unescapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6047 "View in source") [&#x24C9;][1]
The inverse of `_.escape`, this method converts the HTML entities `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to their corresponding characters.
@@ -4084,7 +4087,7 @@ _.unescape('Moe, Larry &amp; Curly');
<!-- div -->
### <a id="_uniqueidprefix"></a>`_.uniqueId([prefix])`
<a href="#_uniqueidprefix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6064 "View in source") [&#x24C9;][1]
<a href="#_uniqueidprefix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6067 "View in source") [&#x24C9;][1]
Generates a unique ID. If `prefix` is provided, the ID will be appended to it.
@@ -4137,7 +4140,7 @@ A reference to the `lodash` function.
<!-- div -->
### <a id="_version"></a>`_.VERSION`
<a href="#_version">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6368 "View in source") [&#x24C9;][1]
<a href="#_version">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L6371 "View in source") [&#x24C9;][1]
*(String)*: The semantic version number.

View File

@@ -1290,7 +1290,7 @@
vm.runInContext(data.source, context);
var lodash = context._;
ok(lodash([1]) instanceof lodash, basename);
equal(lodash([1]) instanceof lodash, false, basename);
deepEqual(_.keys(lodash.prototype), [], basename);
start();
});