Update builds and docs.

Former-commit-id: 57709d874ed5b6855daf536c2a0977738665c3c1
This commit is contained in:
John-David Dalton
2013-02-28 02:53:09 -08:00
parent 4b9ee81a78
commit 67a269b89c
7 changed files with 235 additions and 261 deletions

47
dist/lodash.compat.js vendored
View File

@@ -62,8 +62,15 @@
/** Used to match unescaped characters in compiled string literals */
var reUnescapedString = /['\n\r\t\u2028\u2029\\]/g;
/** Used to assign default `context` object properties */
var contextProps = [
'Array', 'Boolean', 'Date', 'Function', 'Math', 'Number', 'Object', 'RegExp',
'String', '_', 'attachEvent', 'clearTimeout', 'isFinite', 'isNaN', 'parseInt',
'setImmediate', 'setTimeout', 'toString'
];
/** Used to fix the JScript [[DontEnum]] bug */
var shadowed = [
var shadowedProps = [
'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable',
'toLocaleString', 'toString', 'valueOf'
];
@@ -123,7 +130,7 @@
* @returns {Function} Returns the `lodash` function.
*/
function runInContext(context) {
context = context ? _.extend(createObject(window), context) : window;
context = context ? _.defaults({}, context, _.pick(window, contextProps)) : window;
/** Native constructor references */
var Array = context.Array,
@@ -174,7 +181,7 @@
nativeRandom = Math.random;
/** Detect various environments */
var isIeOpera = !!context.attachEvent,
var isIeOpera = reNative.test(context.attachEvent),
isJSC = !/\n{2,}/.test(Function()),
isV8 = nativeBind && !/\n|true/.test(nativeBind + isIeOpera);
@@ -454,9 +461,9 @@
__p += '\n\n var ctor = iterable.constructor;\n ';
for (var k = 0; k < 7; k++) {
__p += '\n index = \'' +
(obj.shadowed[k] ) +
(obj.shadowedProps[k] ) +
'\';\n if (';
if (obj.shadowed[k] == 'constructor') {
if (obj.shadowedProps[k] == 'constructor') {
__p += '!(ctor && ctor.prototype === iterable) && ';
} ;
__p += 'hasOwnProperty.call(iterable, index)) {\n ' +
@@ -626,7 +633,9 @@
}
if (this instanceof bound) {
// ensure `new bound` is an instance of `func`
thisBinding = createObject(func.prototype);
noop.prototype = func.prototype;
thisBinding = new noop;
noop.prototype = null;
// mimic the constructor's `return` behavior
// http://es5.github.com/#x13.2.2
@@ -707,7 +716,6 @@
* top - A string of code to execute before the iteration branches.
* loop - A string of code to execute in the object loop.
* bottom - A string of code to execute after the iteration branches.
*
* @returns {Function} Returns the compiled function.
*/
function createIterator() {
@@ -718,7 +726,7 @@
'isKeysFast': isKeysFast,
'nonEnumArgs': nonEnumArgs,
'noCharByIndex': noCharByIndex,
'shadowed': shadowed,
'shadowedProps': shadowedProps,
// iterator options
'arrays': 'isArray(iterable)',
@@ -750,20 +758,6 @@
);
}
/**
* Creates a new object that inherits from the given `prototype` object.
*
* @private
* @param {Object} prototype The prototype object.
* @returns {Object} Returns the new object.
*/
function createObject(prototype) {
noop.prototype = prototype;
var result = new noop;
noop.prototype = null;
return result;
}
/**
* A function compiled to iterate `arguments` objects, arrays, objects, and
* strings consistenly across environments, executing the `callback` for each
@@ -2110,9 +2104,9 @@
}
/**
* Parses the given `value` into an integer of the specified `radix`.
* Converts the given `value` into an integer of the specified `radix`.
*
* Note: This method avoids differences in ES3 and ES5 `parseInt`
* Note: This method avoids differences in native ES3 and ES5 `parseInt`
* implementations. See http://es5.github.com/#E.
*
* @static
@@ -2126,7 +2120,7 @@
* // => 8
*/
var parseInt = nativeParseInt('08') == 8 ? nativeParseInt : function(value, radix) {
// Firefox and Opera have not changed to the ES5 specified implementation of `parseInt`
// Firefox and Opera still follow the ES3 specified implementation of `parseInt`
return nativeParseInt(isString(value) ? value.replace(/^0+(?=.$)/, '') : value, radix || 0);
};
@@ -4681,7 +4675,6 @@
* interpolate - The "interpolate" delimiter regexp.
* sourceURL - The sourceURL of the template's compiled source.
* variable - The data object variable name.
*
* @returns {Function|String} Returns a compiled function when no `data` object
* is given, else it returns the interpolated text.
* @example
@@ -5214,7 +5207,7 @@
});
}
// check for `exports` after `define` in case a build optimizer adds an `exports` object
else if (freeExports) {
else if (freeExports && !freeExports.nodeType) {
// in Node.js or RingoJS v0.8.0+
if (freeModule) {
(freeModule.exports = _)._ = _;

View File

@@ -4,40 +4,41 @@
* Build: `lodash -o ./dist/lodash.compat.js`
* Underscore.js 1.4.4 underscorejs.org/LICENSE
*/
;(function(n){function t(i){function a(n){return n&&typeof n=="object"&&n.__wrapped__?n:this instanceof a?(this.__wrapped__=n,void 0):new a(n)}function P(n,t,r){t||(t=0);var e=n.length,u=e-t>=(r||p);if(u){var o={};for(r=t-1;++r<e;){var i=n[r]+"";(Wt.call(o,i)?o[i]:o[i]=[]).push(n[r])}}return function(r){if(u){var e=r+"";return Wt.call(o,e)&&-1<bt(o[e],r)}return-1<bt(n,r,t)}}function D(n){return n.charCodeAt(0)}function z(n,t){var r=n.b,e=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;
if(n<t||typeof t=="undefined")return-1}return r<e?-1:1}function C(n,t,r,e){function u(){var a=arguments,c=i?this:t;return o||(n=t[f]),r.length&&(a=a.length?(a=H(a),e?a.concat(r):r.concat(a)):r),this instanceof u?(c=L(n.prototype),a=n.apply(c,a),et(a)?a:c):n.apply(c,a)}var o=rt(n),i=!r,f=t;return i&&(r=t),o||(t=n),u}function T(n,t,r){if(n==u)return kt;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var i=$r(n);return function(t){for(var r=i.length,e=o;r--&&(e=tt(t[i[r]],n[i[r]],l)););return e
}}return typeof t!="undefined"?1===r?function(r){return n.call(t,r)}:2===r?function(r,e){return n.call(t,r,e)}:4===r?function(r,e,u,o){return n.call(t,r,e,u,o)}:function(r,e,u){return n.call(t,r,e,u)}:n}function K(){for(var n,t={e:At,f:$t,g:gr,i:yr,j:_r,k:w,b:"l(n)",c:"",h:"",l:"",m:e},r=0;n=arguments[r];r++)for(var u in n)t[u]=n[u];if(n=t.a,t.d=/^[^,]+/.exec(n)[0],r="var j,n="+t.d+",u=n;if(!n)return u;"+t.l+";",t.b?(r+="var o=n.length;j=-1;if("+t.b+"){",t.j&&(r+="if(m(n)){n=n.split('')}"),r+="while(++j<o){"+t.h+"}}else{"):t.i&&(r+="var o=n.length;j=-1;if(o&&k(n)){while(++j<o){j+='';"+t.h+"}}else{"),t.f&&(r+="var v=typeof n=='function';"),t.g&&t.m?(r+="var s=-1,t=r[typeof n]?p(n):[],o=t.length;while(++s<o){j=t[s];",t.f&&(r+="if(!(v&&j=='prototype')){"),r+=t.h+"",t.f&&(r+="}")):(r+="for(j in n){",(t.f||t.m)&&(r+="if(",t.f&&(r+="!(v&&j=='prototype')"),t.f&&t.m&&(r+="&&"),t.m&&(r+="i.call(n,j)"),r+="){"),r+=t.h+";",(t.f||t.m)&&(r+="}")),r+="}",t.e)for(r+="var g=n.constructor;",u=0;7>u;u++)r+="j='"+t.k[u]+"';if(","constructor"==t.k[u]&&(r+="!(g&&g.prototype===n)&&"),r+="i.call(n,j)){"+t.h+"}";
return(t.b||t.i)&&(r+="}"),r+=t.c+";return u",Rt("f,i,k,l,m,r,p","return function("+n+"){"+r+"}")(T,Wt,Q,Ar,ot,B,or)}function L(n){return G.prototype=n,n=new G,G.prototype=u,n}function M(n){return"\\"+F[n]}function U(n){return Nr[n]}function V(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function G(){}function H(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=qt(0>r?0:r);++e<r;)u[e]=n[t+e];return u}function J(n){return qr[n]}function Q(n){return nr.call(n)==x
}function W(n){var t=o;if(!n||typeof n!="object"||Q(n))return t;var r=n.constructor;return!rt(r)&&(!br||!V(n))||r instanceof r?Nt?(Er(n,function(n,r,e){return t=!Wt.call(e,r),o}),t===o):(Er(n,function(n,r){t=r}),t===o||Wt.call(n,t)):t}function X(n){var t=[];return Ir(n,function(n,r){t.push(r)}),t}function Y(n,t,e,u,i,f){var a=n;if(typeof t=="function"&&(u=e,e=t,t=o),typeof e=="function"){e=typeof u=="undefined"?e:T(e,u,1);var a=e(a),c=typeof a!="undefined";c||(a=n)}if(u=et(a)){var l=nr.call(a);if(!q[l]||br&&V(a))return a;
var p=Ar(a)}if(!u||!t)return u&&!c?p?H(a):Br({},a):a;switch(u=wr[l],l){case S:case k:return c?a:new u(+a);case I:case N:return c?a:new u(a);case $:return c?a:u(a.source,y.exec(a))}for(i||(i=[]),f||(f=[]),l=i.length;l--;)if(i[l]==n)return f[l];return c||(a=p?u(a.length):{},p&&(Wt.call(n,"index")&&(a.index=n.index),Wt.call(n,"input")&&(a.input=n.input))),i.push(n),f.push(a),(p?st:Ir)(c?a:n,function(n,u){a[u]=Y(n,t,e,r,i,f)}),a}function Z(n){var t=[];return Er(n,function(n,r){rt(n)&&t.push(r)}),t.sort()
}function nt(n){for(var t=-1,r=$r(n),e=r.length,u={};++t<e;){var o=r[t];u[n[o]]=o}return u}function tt(n,t,r,i,f,a){var c=r===l;if(r&&!c){r=typeof i=="undefined"?r:T(r,i,2);var p=r(n,t);if(typeof p!="undefined")return!!p}if(n===t)return 0!==n||1/n==1/t;var s=typeof n,v=typeof t;if(n===n&&(!n||"function"!=s&&"object"!=s)&&(!t||"function"!=v&&"object"!=v))return o;if(n==u||t==u)return n===t;if(v=nr.call(n),s=nr.call(t),v==x&&(v=A),s==x&&(s=A),v!=s)return o;switch(v){case S:case k:return+n==+t;case I:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;
case $:case N:return n==t+""}if(s=v==O,!s){if(n.__wrapped__||t.__wrapped__)return tt(n.__wrapped__||n,t.__wrapped__||t,r,i,f,a);if(v!=A||br&&(V(n)||V(t)))return o;var v=!mr&&Q(n)?zt:n.constructor,g=!mr&&Q(t)?zt:t.constructor;if(v!=g&&(!rt(v)||!(v instanceof v&&rt(g)&&g instanceof g)))return o}for(f||(f=[]),a||(a=[]),v=f.length;v--;)if(f[v]==n)return a[v]==t;var h=0,p=e;if(f.push(n),a.push(t),s){if(v=n.length,h=t.length,p=h==n.length,!p&&!c)return p;for(;h--;)if(s=v,g=t[h],c)for(;s--&&!(p=tt(n[s],g,r,i,f,a)););else if(!(p=tt(n[h],g,r,i,f,a)))break;
return p}return Er(t,function(t,e,u){return Wt.call(u,e)?(h++,p=Wt.call(n,e)&&tt(n[e],t,r,i,f,a)):void 0}),p&&!c&&Er(n,function(n,t,r){return Wt.call(r,t)?p=-1<--h:void 0}),p}function rt(n){return typeof n=="function"}function et(n){return n?B[typeof n]:o}function ut(n){return typeof n=="number"||nr.call(n)==I}function ot(n){return typeof n=="string"||nr.call(n)==N}function it(n,t,r){var e=arguments,u=0,o=2;if(!et(n))return n;if(r===l)var i=e[3],f=e[4],a=e[5];else f=[],a=[],typeof r!="number"&&(o=e.length),3<o&&"function"==typeof e[o-2]?i=T(e[--o-1],e[o--],2):2<o&&"function"==typeof e[o-1]&&(i=e[--o]);
for(;++u<o;)(Ar(e[u])?st:Ir)(e[u],function(t,r){var e,u,o=t,c=n[r];if(t&&((u=Ar(t))||Rr(t))){for(o=f.length;o--;)if(e=f[o]==t){c=a[o];break}e||(c=u?Ar(c)?c:[]:Rr(c)?c:{},i&&(o=i(c,t),typeof o!="undefined"&&(c=o)),f.push(t),a.push(c),i||(c=it(c,t,l,i,f,a)))}else i&&(o=i(c,t),typeof o=="undefined"&&(o=t)),typeof o!="undefined"&&(c=o);n[r]=c});return n}function ft(n){for(var t=-1,r=$r(n),e=r.length,u=qt(e);++t<e;)u[t]=n[r[t]];return u}function at(n,t,r){var e=-1,u=n?n.length:0,i=o;return r=(0>r?ir(0,u+r):r)||0,typeof u=="number"?i=-1<(ot(n)?n.indexOf(t,r):bt(n,t,r)):kr(n,function(n){return++e<r?void 0:!(i=n===t)
}),i}function ct(n,t,r){var u=e;if(t=T(t,r),Ar(n)){r=-1;for(var o=n.length;++r<o&&(u=!!t(n[r],r,n)););}else kr(n,function(n,r,e){return u=!!t(n,r,e)});return u}function lt(n,t,r){var e=[];if(t=T(t,r),Ar(n)){r=-1;for(var u=n.length;++r<u;){var o=n[r];t(o,r,n)&&e.push(o)}}else kr(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function pt(n,t,r){var e;return t=T(t,r),st(n,function(n,r,u){return t(n,r,u)?(e=n,o):void 0}),e}function st(n,t,r){if(t&&typeof r=="undefined"&&Ar(n)){r=-1;for(var e=n.length;++r<e&&t(n[r],r,n)!==o;);}else kr(n,t,r);
return n}function vt(n,t,r){var e=-1,u=n?n.length:0,o=qt(typeof u=="number"?u:0);if(t=T(t,r),Ar(n))for(;++e<u;)o[e]=t(n[e],e,n);else kr(n,function(n,r,u){o[++e]=t(n,r,u)});return o}function gt(n,t,r){var e=-1/0,u=e;if(!t&&Ar(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];i>u&&(u=i)}}else t=!t&&ot(n)?D:T(t,r),kr(n,function(n,r,o){r=t(n,r,o),r>e&&(e=r,u=n)});return u}function ht(n,t,r,e){var u=3>arguments.length;if(t=T(t,e,4),Ar(n)){var i=-1,f=n.length;for(u&&(r=n[++i]);++i<f;)r=t(r,n[i],i,n)}else kr(n,function(n,e,i){r=u?(u=o,n):t(r,n,e,i)
});return r}function yt(n,t,r,e){var u=n,i=n?n.length:0,f=3>arguments.length;if(typeof i!="number")var a=$r(n),i=a.length;else _r&&ot(n)&&(u=n.split(""));return t=T(t,e,4),st(n,function(n,e,c){e=a?a[--i]:--i,r=f?(f=o,u[e]):t(r,u[e],e,c)}),r}function mt(n,t,r){var e;if(t=T(t,r),Ar(n)){r=-1;for(var u=n.length;++r<u&&!(e=t(n[r],r,n)););}else kr(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function dt(n,t,r){if(n){var e=0,o=n.length;if(typeof t!="number"&&t!=u){var i=-1;for(t=T(t,r);++i<o&&t(n[i],i,n);)e++
}else if(e=t,e==u||r)return n[0];return H(n,0,fr(ir(0,e),o))}}function _t(n,t){for(var r=-1,e=n?n.length:0,u=[];++r<e;){var o=n[r];Ar(o)?Xt.apply(u,t?o:_t(o)):u.push(o)}return u}function bt(n,t,r){var e=-1,u=n?n.length:0;if(typeof r=="number")e=(0>r?ir(0,u+r):r||0)-1;else if(r)return e=wt(n,t),n[e]===t?e:-1;for(;++e<u;)if(n[e]===t)return e;return-1}function jt(n,t,r){if(typeof t!="number"&&t!=u){var e=0,o=-1,i=n?n.length:0;for(t=T(t,r);++o<i&&t(n[o],o,n);)e++}else e=t==u||r?1:ir(0,t);return H(n,e)
}function wt(n,t,r,e){var u=0,o=n?n.length:u;for(r=r?T(r,e,1):kt,t=r(t);u<o;)e=u+o>>>1,r(n[e])<t?u=e+1:o=e;return u}function xt(n,t,r,e){var u=-1,i=n?n.length:0,f=[],a=f;typeof t=="function"&&(e=r,r=t,t=o);var c=!t&&75<=i;if(c)var l={};for(r&&(a=[],r=T(r,e));++u<i;){e=n[u];var p=r?r(e,u,n):e;if(c)var s=p+"",s=Wt.call(l,s)?!(a=l[s]):a=l[s]=[];(t?!u||a[a.length-1]!==p:s||0>bt(a,p))&&((r||c)&&a.push(p),f.push(e))}return f}function Ot(n,t){return vr||tr&&2<arguments.length?tr.call.apply(tr,arguments):C(n,t,H(arguments,2))
}function St(n){var t=H(arguments,1);return Zt(function(){n.apply(r,t)},1)}function kt(n){return n}function Et(n){st(Z(n),function(t){var r=a[t]=n[t];a.prototype[t]=function(){var n=[this.__wrapped__];return Xt.apply(n,arguments),new a(r.apply(a,n))}})}function It(){return this.__wrapped__}i=i?R.extend(L(n),i):n;var At,$t,Nt,qt=i.Array,Bt=i.Boolean,Ft=i.Date,Rt=i.Function,Pt=i.Math,Dt=i.Number,zt=i.Object,Ct=i.RegExp,Tt=i.String,Kt=qt(),Lt=zt(),Mt=i._,Ut=Ct("^"+(Lt.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),Vt=Pt.ceil,Gt=i.clearTimeout,Ht=Kt.concat,Jt=Pt.floor,Qt=Ut.test(Qt=zt.getPrototypeOf)&&Qt,Wt=Lt.hasOwnProperty,Xt=Kt.push,Yt=i.setImmediate,Zt=i.setTimeout,nr=Lt.toString,tr=Ut.test(tr=H.bind)&&tr,rr=Ut.test(rr=qt.isArray)&&rr,er=i.isFinite,ur=i.isNaN,or=Ut.test(or=zt.keys)&&or,ir=Pt.max,fr=Pt.min,ar=i.parseInt,cr=Pt.random,lr=!!i.attachEvent,pr=!/\n{2,}/.test(Rt()),sr=tr&&!/\n|true/.test(tr+lr),vr=tr&&!sr,gr=or&&(lr||sr||!pr),hr=(hr={0:1,length:1},Kt.splice.call(hr,0,1),hr[0]),yr=e;
(function(){function n(){this.x=1}var t=[];n.prototype={valueOf:1,y:1};for(var r in new n)t.push(r);for(r in arguments)yr=!r;At=!/valueOf/.test(t),$t=n.propertyIsEnumerable("prototype"),Nt="x"!=t[0]})(1);var mr=arguments.constructor==zt,dr=!Q(arguments),_r="xx"!="x"[0]+zt("x")[0];try{var br=nr.call(document)==A&&!({toString:0}+"")}catch(jr){}var wr={};wr[O]=qt,wr[S]=Bt,wr[k]=Ft,wr[A]=zt,wr[I]=Dt,wr[$]=Ct,wr[N]=Tt,a.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:d,variable:"",imports:{_:a}};
var xr={a:"q,w,h",l:"var a=arguments,b=0,c=typeof h=='number'?2:a.length;while(++b<c){n=a[b];if(n&&r[typeof n]){",h:"if(typeof u[j]=='undefined')u[j]=n[j]",c:"}}"},Or={a:"e,d,x",l:"d=d&&typeof x=='undefined'?d:f(d,x)",b:"typeof o=='number'",h:"if(d(n[j],j,e)===false)return u"},Sr={l:"if(!r[typeof n])return u;"+Or.l,b:o},kr=K(Or);dr&&(Q=function(n){return n?Wt.call(n,"callee"):o});var Er=K(Or,Sr,{m:o}),Ir=K(Or,Sr),Ar=rr||function(n){return mr&&n instanceof qt||nr.call(n)==O},$r=or?function(n){return et(n)?$t&&typeof n=="function"||yr&&n.length&&Q(n)?X(n):or(n):[]
}:X,Nr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},qr=nt(Nr),Br=K(xr,{l:xr.l.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=f(a[--c-1],a[c--],2);}else if(c>2&&typeof a[c-1]=='function'){d=a[--c];}"),h:"u[j]=d?d(u[j],n[j]):n[j]"}),Fr=K(xr);rt(/x/)&&(rt=function(n){return n instanceof Rt||nr.call(n)==E});var Rr=Qt?function(n){if(!n||typeof n!="object")return o;var t=n.valueOf,r=typeof t=="function"&&(r=Qt(t))&&Qt(r);return r?n==r||Qt(n)==r&&!Q(n):W(n)}:W,Pr=8==ar("08")?ar:function(n,t){return ar(ot(n)?n.replace(/^0+(?=.$)/,""):n,t||0)
},Dr=vt,zr=lt;return sr&&f&&typeof Yt=="function"&&(St=Ot(Yt,i)),a.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},a.assign=Br,a.at=function(n){var t=-1,r=Ht.apply(Kt,H(arguments,1)),e=r.length,u=qt(e);for(_r&&ot(n)&&(n=n.split(""));++t<e;)u[t]=n[r[t]];return u},a.bind=Ot,a.bindAll=function(n){for(var t=Ht.apply(Kt,arguments),r=1<t.length?0:(t=Z(n),-1),e=t.length;++r<e;){var u=t[r];n[u]=Ot(n[u],n)}return n},a.bindKey=function(n,t){return C(n,t,H(arguments,2))
},a.compact=function(n){for(var t=-1,r=n?n.length:0,e=[];++t<r;){var u=n[t];u&&e.push(u)}return e},a.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];return t[0]}},a.countBy=function(n,t,r){var e={};return t=T(t,r),st(n,function(n,r,u){r=t(n,r,u)+"",Wt.call(e,r)?e[r]++:e[r]=1}),e},a.debounce=function(n,t,r){function e(){a=u,r||(i=n.apply(f,o))}var o,i,f,a;return function(){var u=r&&!a;return o=arguments,f=this,Gt(a),a=Zt(e,t),u&&(i=n.apply(f,o)),i
}},a.defaults=Fr,a.defer=St,a.delay=function(n,t){var e=H(arguments,2);return Zt(function(){n.apply(r,e)},t)},a.difference=function(n){for(var t=-1,r=n?n.length:0,e=Ht.apply(Kt,arguments),e=P(e,r),u=[];++t<r;){var o=n[t];e(o)||u.push(o)}return u},a.filter=lt,a.flatten=_t,a.forEach=st,a.forIn=Er,a.forOwn=Ir,a.functions=Z,a.groupBy=function(n,t,r){var e={};return t=T(t,r),st(n,function(n,r,u){r=t(n,r,u)+"",(Wt.call(e,r)?e[r]:e[r]=[]).push(n)}),e},a.initial=function(n,t,r){if(!n)return[];var e=0,o=n.length;
if(typeof t!="number"&&t!=u){var i=o;for(t=T(t,r);i--&&t(n[i],i,n);)e++}else e=t==u||r?1:t||e;return H(n,0,fr(ir(0,o-e),o))},a.intersection=function(n){var t=arguments,r=t.length,e={0:{}},u=-1,o=n?n.length:0,i=100<=o,f=[],a=f;n:for(;++u<o;){var c=n[u];if(i)var l=c+"",l=Wt.call(e[0],l)?!(a=e[0][l]):a=e[0][l]=[];if(l||0>bt(a,c)){i&&a.push(c);for(var p=r;--p;)if(!(e[p]||(e[p]=P(t[p],0,100)))(c))continue n;f.push(c)}}return f},a.invert=nt,a.invoke=function(n,t){var r=H(arguments,2),e=-1,u=typeof t=="function",o=n?n.length:0,i=qt(typeof o=="number"?o:0);
return st(n,function(n){i[++e]=(u?t:n[t]).apply(n,r)}),i},a.keys=$r,a.map=vt,a.max=gt,a.memoize=function(n,t){var r={};return function(){var e=(t?t.apply(this,arguments):arguments[0])+"";return Wt.call(r,e)?r[e]:r[e]=n.apply(this,arguments)}},a.merge=it,a.min=function(n,t,r){var e=1/0,u=e;if(!t&&Ar(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];i<u&&(u=i)}}else t=!t&&ot(n)?D:T(t,r),kr(n,function(n,r,o){r=t(n,r,o),r<e&&(e=r,u=n)});return u},a.object=function(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var o=n[r];
t?u[o]=t[r]:u[o[0]]=o[1]}return u},a.omit=function(n,t,r){var e=typeof t=="function",u={};if(e)t=T(t,r);else var o=Ht.apply(Kt,arguments);return Er(n,function(n,r,i){(e?!t(n,r,i):0>bt(o,r,1))&&(u[r]=n)}),u},a.once=function(n){var t,r;return function(){return t?r:(t=e,r=n.apply(this,arguments),n=u,r)}},a.pairs=function(n){for(var t=-1,r=$r(n),e=r.length,u=qt(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},a.partial=function(n){return C(n,H(arguments,1))},a.partialRight=function(n){return C(n,H(arguments,1),u,l)
},a.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=0,o=Ht.apply(Kt,arguments),i=et(n)?o.length:0;++u<i;){var f=o[u];f in n&&(e[f]=n[f])}else t=T(t,r),Er(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e},a.pluck=Dr,a.range=function(n,t,r){n=+n||0,r=+r||1,t==u&&(t=n,n=0);var e=-1;t=ir(0,Vt((t-n)/r));for(var o=qt(t);++e<t;)o[e]=n,n+=r;return o},a.reject=function(n,t,r){return t=T(t,r),lt(n,function(n,r,e){return!t(n,r,e)})},a.rest=jt,a.shuffle=function(n){var t=-1,r=n?n.length:0,e=qt(typeof r=="number"?r:0);
return st(n,function(n){var r=Jt(cr()*(++t+1));e[t]=e[r],e[r]=n}),e},a.sortBy=function(n,t,r){var e=-1,u=n?n.length:0,o=qt(typeof u=="number"?u:0);for(t=T(t,r),st(n,function(n,r,u){o[++e]={a:t(n,r,u),b:e,c:n}}),u=o.length,o.sort(z);u--;)o[u]=o[u].c;return o},a.tap=function(n,t){return t(n),n},a.throttle=function(n,t){function r(){a=new Ft,f=u,o=n.apply(i,e)}var e,o,i,f,a=0;return function(){var c=new Ft,l=t-(c-a);return e=arguments,i=this,0<l?f||(f=Zt(r,l)):(Gt(f),f=u,a=c,o=n.apply(i,e)),o}},a.times=function(n,t,r){n=+n||0;
for(var e=-1,u=qt(n);++e<n;)u[e]=t.call(r,e);return u},a.toArray=function(n){return n&&typeof n.length=="number"?_r&&ot(n)?n.split(""):H(n):ft(n)},a.union=function(){return xt(Ht.apply(Kt,arguments))},a.uniq=xt,a.values=ft,a.where=zr,a.without=function(n){for(var t=-1,r=n?n.length:0,e=P(arguments,1),u=[];++t<r;){var o=n[t];e(o)||u.push(o)}return u},a.wrap=function(n,t){return function(){var r=[n];return Xt.apply(r,arguments),t.apply(this,r)}},a.zip=function(n){for(var t=-1,r=n?gt(Dr(arguments,"length")):0,e=qt(r);++t<r;)e[t]=Dr(arguments,t);
return e},a.collect=vt,a.drop=jt,a.each=st,a.extend=Br,a.methods=Z,a.select=lt,a.tail=jt,a.unique=xt,Et(a),a.clone=Y,a.cloneDeep=function(n,t,r){return Y(n,e,t,r)},a.contains=at,a.escape=function(n){return n==u?"":(n+"").replace(b,U)},a.every=ct,a.find=pt,a.has=function(n,t){return n?Wt.call(n,t):o},a.identity=kt,a.indexOf=bt,a.isArguments=Q,a.isArray=Ar,a.isBoolean=function(n){return n===e||n===o||nr.call(n)==S},a.isDate=function(n){return n instanceof Ft||nr.call(n)==k},a.isElement=function(n){return n?1===n.nodeType:o
},a.isEmpty=function(n){var t=e;if(!n)return t;var r=nr.call(n),u=n.length;return r==O||r==N||r==x||dr&&Q(n)||r==A&&typeof u=="number"&&rt(n.splice)?!u:(Ir(n,function(){return t=o}),t)},a.isEqual=tt,a.isFinite=function(n){return er(n)&&!ur(parseFloat(n))},a.isFunction=rt,a.isNaN=function(n){return ut(n)&&n!=+n},a.isNull=function(n){return n===u},a.isNumber=ut,a.isObject=et,a.isPlainObject=Rr,a.isRegExp=function(n){return n instanceof Ct||nr.call(n)==$},a.isString=ot,a.isUndefined=function(n){return typeof n=="undefined"
},a.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?ir(0,e+r):fr(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},a.mixin=Et,a.noConflict=function(){return i._=Mt,this},a.parseInt=Pr,a.random=function(n,t){return n==u&&t==u&&(t=1),n=+n||0,t==u&&(t=n,n=0),n+Jt(cr()*((+t||0)-n+1))},a.reduce=ht,a.reduceRight=yt,a.result=function(n,t){var e=n?n[t]:r;return rt(e)?n[t]():e},a.runInContext=t,a.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:$r(n).length},a.some=mt,a.sortedIndex=wt,a.template=function(n,t,u){var o=a.templateSettings;
n||(n=""),u=Fr({},u,o);var i,f=Fr({},u.imports,o.imports),o=$r(f),f=ft(f),c=0,l=u.interpolate||_,p="__p+='",l=Ct((u.escape||_).source+"|"+l.source+"|"+(l===d?m:_).source+"|"+(u.evaluate||_).source+"|$","g");n.replace(l,function(t,r,u,o,f,a){return u||(u=o),p+=n.slice(c,a).replace(j,M),r&&(p+="'+__e("+r+")+'"),f&&(i=e,p+="';"+f+";__p+='"),u&&(p+="'+((__t=("+u+"))==null?'':__t)+'"),c=a+t.length,t}),p+="';\n",l=u=u.variable,l||(u="obj",p="with("+u+"){"+p+"}"),p=(i?p.replace(v,""):p).replace(g,"$1").replace(h,"$1;"),p="function("+u+"){"+(l?"":u+"||("+u+"={});")+"var __t,__p='',__e=_.escape"+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+p+"return __p}";
try{var s=Rt(o,"return "+p).apply(r,f)}catch(y){throw y.source=p,y}return t?s(t):(s.source=p,s)},a.unescape=function(n){return n==u?"":(n+"").replace(s,J)},a.uniqueId=function(n){var t=++c;return(n==u?"":n+"")+t},a.all=ct,a.any=mt,a.detect=pt,a.foldl=ht,a.foldr=yt,a.include=at,a.inject=ht,Ir(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(){var t=[this.__wrapped__];return Xt.apply(t,arguments),n.apply(a,t)})}),a.first=dt,a.last=function(n,t,r){if(n){var e=0,o=n.length;if(typeof t!="number"&&t!=u){var i=o;
for(t=T(t,r);i--&&t(n[i],i,n);)e++}else if(e=t,e==u||r)return n[o-1];return H(n,ir(0,o-e))}},a.take=dt,a.head=dt,Ir(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(t,r){var e=n(this.__wrapped__,t,r);return t==u||r&&typeof t!="function"?e:new a(e)})}),a.VERSION="1.0.1",a.prototype.toString=function(){return this.__wrapped__+""},a.prototype.value=It,a.prototype.valueOf=It,kr(["join","pop","shift"],function(n){var t=Kt[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}
}),kr(["push","reverse","sort","unshift"],function(n){var t=Kt[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),kr(["concat","slice","splice"],function(n){var t=Kt[n];a.prototype[n]=function(){return new a(t.apply(this.__wrapped__,arguments))}}),hr&&kr(["pop","shift","splice"],function(n){var t=Kt[n],r="splice"==n;a.prototype[n]=function(){var n=this.__wrapped__,e=t.apply(n,arguments);return 0===n.length&&delete n[0],r?new a(e):e}}),a}var r,e=!0,u=null,o=!1,i=typeof exports=="object"&&exports,f=typeof module=="object"&&module&&module.exports==i&&module,a=typeof global=="object"&&global;
a.global===a&&(n=a);var c=0,l={},p=30,s=/&(?:amp|lt|gt|quot|#39);/g,v=/\b__p\+='';/g,g=/\b(__p\+=)''\+/g,h=/(__e\(.*?\)|\b__t\))\+'';/g,y=/\w*$/,m=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,d=/<%=([\s\S]+?)%>/g,_=/($^)/,b=/[&<>"']/g,j=/['\n\r\t\u2028\u2029\\]/g,w="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),x="[object Arguments]",O="[object Array]",S="[object Boolean]",k="[object Date]",E="[object Function]",I="[object Number]",A="[object Object]",$="[object RegExp]",N="[object String]",q={};
q[E]=o,q[x]=q[O]=q[S]=q[k]=q[I]=q[A]=q[$]=q[N]=e;var B={"boolean":o,"function":e,object:e,number:o,string:o,undefined:o},F={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},R=t();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=R,define(function(){return R})):i?f?(f.exports=R)._=R:i._=R:n._=R})(this);
;(function(n){function t(e){function o(n){return n&&typeof n=="object"&&n.__wrapped__?n:this instanceof o?(this.__wrapped__=n,void 0):new o(n)}function B(n,t,r){t||(t=0);var e=n.length,u=e-t>=(r||a);if(u){var o={};for(r=t-1;++r<e;){var i=n[r]+"";(Ht.call(o,i)?o[i]:o[i]=[]).push(n[r])}}return function(r){if(u){var e=r+"";return Ht.call(o,e)&&-1<mt(o[e],r)}return-1<mt(n,r,t)}}function R(n){return n.charCodeAt(0)}function T(n,t){var r=n.b,e=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;
if(n<t||typeof t=="undefined")return-1}return r<e?-1:1}function D(n,t,r,e){function u(){var a=arguments,c=i?this:t;return o||(n=t[f]),r.length&&(a=a.length?(a=U(a),e?a.concat(r):r.concat(a)):r),this instanceof u?(L.prototype=n.prototype,c=new L,L.prototype=null,a=n.apply(c,a),nt(a)?a:c):n.apply(c,a)}var o=Z(n),i=!r,f=t;return i&&(r=t),o||(t=n),u}function P(n,t,r){if(null==n)return xt;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=Er(n);return function(t){for(var r=u.length,e=!1;r--&&(e=Y(t[u[r]],n[u[r]],f)););return e
}}return typeof t!="undefined"?1===r?function(r){return n.call(t,r)}:2===r?function(r,e){return n.call(t,r,e)}:4===r?function(r,e,u,o){return n.call(t,r,e,u,o)}:function(r,e,u){return n.call(t,r,e,u)}:n}function z(){for(var n,t={e:kt,f:Et,g:pr,i:vr,j:yr,k:b,b:"l(n)",c:"",h:"",l:"",m:!0},r=0;n=arguments[r];r++)for(var e in n)t[e]=n[e];if(n=t.a,t.d=/^[^,]+/.exec(n)[0],r=Ft,e="var j,n="+t.d+",u=n;if(!n)return u;"+t.l+";",t.b?(e+="var o=n.length;j=-1;if("+t.b+"){",t.j&&(e+="if(m(n)){n=n.split('')}"),e+="while(++j<o){"+t.h+"}}else{"):t.i&&(e+="var o=n.length;j=-1;if(o&&k(n)){while(++j<o){j+='';"+t.h+"}}else{"),t.f&&(e+="var v=typeof n=='function';"),t.g&&t.m?(e+="var s=-1,t=r[typeof n]?p(n):[],o=t.length;while(++s<o){j=t[s];",t.f&&(e+="if(!(v&&j=='prototype')){"),e+=t.h+"",t.f&&(e+="}")):(e+="for(j in n){",(t.f||t.m)&&(e+="if(",t.f&&(e+="!(v&&j=='prototype')"),t.f&&t.m&&(e+="&&"),t.m&&(e+="i.call(n,j)"),e+="){"),e+=t.h+";",(t.f||t.m)&&(e+="}")),e+="}",t.e){e+="var g=n.constructor;";
for(var u=0;7>u;u++)e+="j='"+t.k[u]+"';if(","constructor"==t.k[u]&&(e+="!(g&&g.prototype===n)&&"),e+="i.call(n,j)){"+t.h+"}"}return(t.b||t.i)&&(e+="}"),e+=t.c+";return u",r("f,i,k,l,m,r,p","return function("+n+"){"+e+"}")(P,Ht,G,kr,rt,$,rr)}function C(n){return"\\"+F[n]}function M(n){return Ir[n]}function K(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function L(){}function U(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=Nt(0>r?0:r);++e<r;)u[e]=n[t+e];
return u}function V(n){return Nr[n]}function G(n){return Xt.call(n)==j}function H(n){var t=!1;if(!n||typeof n!="object"||G(n))return t;var r=n.constructor;return!Z(r)&&(!mr||!K(n))||r instanceof r?It?(Or(n,function(n,r,e){return t=!Ht.call(e,r),!1}),!1===t):(Or(n,function(n,r){t=r}),!1===t||Ht.call(n,t)):t}function J(n){var t=[];return Sr(n,function(n,r){t.push(r)}),t}function Q(n,t,e,u,o,i){var f=n;if(typeof t=="function"&&(u=e,e=t,t=!1),typeof e=="function"){e=typeof u=="undefined"?e:P(e,u,1);var f=e(f),a=typeof f!="undefined";
a||(f=n)}if(u=nt(f)){var c=Xt.call(f);if(!A[c]||mr&&K(f))return f;var l=kr(f)}if(!u||!t)return u&&!a?l?U(f):Ar({},f):f;switch(u=_r[c],c){case x:case O:return a?f:new u(+f);case k:case N:return a?f:new u(f);case I:return a?f:u(f.source,v.exec(f))}for(o||(o=[]),i||(i=[]),c=o.length;c--;)if(o[c]==n)return i[c];return a||(f=l?u(f.length):{},l&&(Ht.call(n,"index")&&(f.index=n.index),Ht.call(n,"input")&&(f.input=n.input))),o.push(n),i.push(f),(l?ct:Sr)(a?f:n,function(n,u){f[u]=Q(n,t,e,r,o,i)}),f}function W(n){var t=[];
return Or(n,function(n,r){Z(n)&&t.push(r)}),t.sort()}function X(n){for(var t=-1,r=Er(n),e=r.length,u={};++t<e;){var o=r[t];u[n[o]]=o}return u}function Y(n,t,r,e,u,o){var i=r===f;if(r&&!i){r=typeof e=="undefined"?r:P(r,e,2);var a=r(n,t);if(typeof a!="undefined")return!!a}if(n===t)return 0!==n||1/n==1/t;var c=typeof n,l=typeof t;if(n===n&&(!n||"function"!=c&&"object"!=c)&&(!t||"function"!=l&&"object"!=l))return!1;if(null==n||null==t)return n===t;if(l=Xt.call(n),c=Xt.call(t),l==j&&(l=E),c==j&&(c=E),l!=c)return!1;
switch(l){case x:case O:return+n==+t;case k:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case I:case N:return n==t+""}if(c=l==w,!c){if(n.__wrapped__||t.__wrapped__)return Y(n.__wrapped__||n,t.__wrapped__||t,r,e,u,o);if(l!=E||mr&&(K(n)||K(t)))return!1;var l=!gr&&G(n)?Rt:n.constructor,p=!gr&&G(t)?Rt:t.constructor;if(l!=p&&(!Z(l)||!(l instanceof l&&Z(p)&&p instanceof p)))return!1}for(u||(u=[]),o||(o=[]),l=u.length;l--;)if(u[l]==n)return o[l]==t;var s=0,a=!0;if(u.push(n),o.push(t),c){if(l=n.length,s=t.length,a=s==n.length,!a&&!i)return a;
for(;s--;)if(c=l,p=t[s],i)for(;c--&&!(a=Y(n[c],p,r,e,u,o)););else if(!(a=Y(n[s],p,r,e,u,o)))break;return a}return Or(t,function(t,i,f){return Ht.call(f,i)?(s++,a=Ht.call(n,i)&&Y(n[i],t,r,e,u,o)):void 0}),a&&!i&&Or(n,function(n,t,r){return Ht.call(r,t)?a=-1<--s:void 0}),a}function Z(n){return typeof n=="function"}function nt(n){return n?$[typeof n]:!1}function tt(n){return typeof n=="number"||Xt.call(n)==k}function rt(n){return typeof n=="string"||Xt.call(n)==N}function et(n,t,r){var e=arguments,u=0,o=2;
if(!nt(n))return n;if(r===f)var i=e[3],a=e[4],c=e[5];else a=[],c=[],typeof r!="number"&&(o=e.length),3<o&&"function"==typeof e[o-2]?i=P(e[--o-1],e[o--],2):2<o&&"function"==typeof e[o-1]&&(i=e[--o]);for(;++u<o;)(kr(e[u])?ct:Sr)(e[u],function(t,r){var e,u,o=t,l=n[r];if(t&&((u=kr(t))||Fr(t))){for(o=a.length;o--;)if(e=a[o]==t){l=c[o];break}e||(l=u?kr(l)?l:[]:Fr(l)?l:{},i&&(o=i(l,t),typeof o!="undefined"&&(l=o)),a.push(t),c.push(l),i||(l=et(l,t,f,i,a,c)))}else i&&(o=i(l,t),typeof o=="undefined"&&(o=t)),typeof o!="undefined"&&(l=o);
n[r]=l});return n}function ut(n){for(var t=-1,r=Er(n),e=r.length,u=Nt(e);++t<e;)u[t]=n[r[t]];return u}function ot(n,t,r){var e=-1,u=n?n.length:0,o=!1;return r=(0>r?er(0,u+r):r)||0,typeof u=="number"?o=-1<(rt(n)?n.indexOf(t,r):mt(n,t,r)):xr(n,function(n){return++e<r?void 0:!(o=n===t)}),o}function it(n,t,r){var e=!0;if(t=P(t,r),kr(n)){r=-1;for(var u=n.length;++r<u&&(e=!!t(n[r],r,n)););}else xr(n,function(n,r,u){return e=!!t(n,r,u)});return e}function ft(n,t,r){var e=[];if(t=P(t,r),kr(n)){r=-1;for(var u=n.length;++r<u;){var o=n[r];
t(o,r,n)&&e.push(o)}}else xr(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function at(n,t,r){var e;return t=P(t,r),ct(n,function(n,r,u){return t(n,r,u)?(e=n,!1):void 0}),e}function ct(n,t,r){if(t&&typeof r=="undefined"&&kr(n)){r=-1;for(var e=n.length;++r<e&&!1!==t(n[r],r,n););}else xr(n,t,r);return n}function lt(n,t,r){var e=-1,u=n?n.length:0,o=Nt(typeof u=="number"?u:0);if(t=P(t,r),kr(n))for(;++e<u;)o[e]=t(n[e],e,n);else xr(n,function(n,r,u){o[++e]=t(n,r,u)});return o}function pt(n,t,r){var e=-1/0,u=e;
if(!t&&kr(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];i>u&&(u=i)}}else t=!t&&rt(n)?R:P(t,r),xr(n,function(n,r,o){r=t(n,r,o),r>e&&(e=r,u=n)});return u}function st(n,t,r,e){var u=3>arguments.length;if(t=P(t,e,4),kr(n)){var o=-1,i=n.length;for(u&&(r=n[++o]);++o<i;)r=t(r,n[o],o,n)}else xr(n,function(n,e,o){r=u?(u=!1,n):t(r,n,e,o)});return r}function vt(n,t,r,e){var u=n,o=n?n.length:0,i=3>arguments.length;if(typeof o!="number")var f=Er(n),o=f.length;else yr&&rt(n)&&(u=n.split(""));return t=P(t,e,4),ct(n,function(n,e,a){e=f?f[--o]:--o,r=i?(i=!1,u[e]):t(r,u[e],e,a)
}),r}function gt(n,t,r){var e;if(t=P(t,r),kr(n)){r=-1;for(var u=n.length;++r<u&&!(e=t(n[r],r,n)););}else xr(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function ht(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&null!=t){var o=-1;for(t=P(t,r);++o<u&&t(n[o],o,n);)e++}else if(e=t,null==e||r)return n[0];return U(n,0,ur(er(0,e),u))}}function yt(n,t){for(var r=-1,e=n?n.length:0,u=[];++r<e;){var o=n[r];kr(o)?Jt.apply(u,t?o:yt(o)):u.push(o)}return u}function mt(n,t,r){var e=-1,u=n?n.length:0;
if(typeof r=="number")e=(0>r?er(0,u+r):r||0)-1;else if(r)return e=_t(n,t),n[e]===t?e:-1;for(;++e<u;)if(n[e]===t)return e;return-1}function dt(n,t,r){if(typeof t!="number"&&null!=t){var e=0,u=-1,o=n?n.length:0;for(t=P(t,r);++u<o&&t(n[u],u,n);)e++}else e=null==t||r?1:er(0,t);return U(n,e)}function _t(n,t,r,e){var u=0,o=n?n.length:u;for(r=r?P(r,e,1):xt,t=r(t);u<o;)e=u+o>>>1,r(n[e])<t?u=e+1:o=e;return u}function bt(n,t,r,e){var u=-1,o=n?n.length:0,i=[],f=i;typeof t=="function"&&(e=r,r=t,t=!1);var a=!t&&75<=o;
if(a)var c={};for(r&&(f=[],r=P(r,e));++u<o;){e=n[u];var l=r?r(e,u,n):e;if(a)var p=l+"",p=Ht.call(c,p)?!(f=c[p]):f=c[p]=[];(t?!u||f[f.length-1]!==l:p||0>mt(f,l))&&((r||a)&&f.push(l),i.push(e))}return i}function jt(n,t){return lr||Yt&&2<arguments.length?Yt.call.apply(Yt,arguments):D(n,t,U(arguments,2))}function wt(n){var t=U(arguments,1);return Wt(function(){n.apply(r,t)},1)}function xt(n){return n}function Ot(n){ct(W(n),function(t){var r=o[t]=n[t];o.prototype[t]=function(){var n=[this.__wrapped__];
return Jt.apply(n,arguments),new o(r.apply(o,n))}})}function St(){return this.__wrapped__}e=e?q.defaults({},e,q.pick(n,_)):n;var kt,Et,It,Nt=e.Array,At=e.Boolean,$t=e.Date,Ft=e.Function,qt=e.Math,Bt=e.Number,Rt=e.Object,Tt=e.RegExp,Dt=e.String,Pt=Nt(),zt=Rt(),Ct=e._,Mt=Tt("^"+(zt.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),Kt=qt.ceil,Lt=e.clearTimeout,Ut=Pt.concat,Vt=qt.floor,Gt=Mt.test(Gt=Rt.getPrototypeOf)&&Gt,Ht=zt.hasOwnProperty,Jt=Pt.push,Qt=e.setImmediate,Wt=e.setTimeout,Xt=zt.toString,Yt=Mt.test(Yt=U.bind)&&Yt,Zt=Mt.test(Zt=Nt.isArray)&&Zt,nr=e.isFinite,tr=e.isNaN,rr=Mt.test(rr=Rt.keys)&&rr,er=qt.max,ur=qt.min,or=e.parseInt,ir=qt.random,fr=Mt.test(e.attachEvent),ar=!/\n{2,}/.test(Ft()),cr=Yt&&!/\n|true/.test(Yt+fr),lr=Yt&&!cr,pr=rr&&(fr||cr||!ar),sr=(sr={0:1,length:1},Pt.splice.call(sr,0,1),sr[0]),vr=!0;
(function(){function n(){this.x=1}var t=[];n.prototype={valueOf:1,y:1};for(var r in new n)t.push(r);for(r in arguments)vr=!r;kt=!/valueOf/.test(t),Et=n.propertyIsEnumerable("prototype"),It="x"!=t[0]})(1);var gr=arguments.constructor==Rt,hr=!G(arguments),yr="xx"!="x"[0]+Rt("x")[0];try{var mr=Xt.call(document)==E&&!({toString:0}+"")}catch(dr){}var _r={};_r[w]=Nt,_r[x]=At,_r[O]=$t,_r[E]=Rt,_r[k]=Bt,_r[I]=Tt,_r[N]=Dt,o.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:h,variable:"",imports:{_:o}};
var br={a:"q,w,h",l:"var a=arguments,b=0,c=typeof h=='number'?2:a.length;while(++b<c){n=a[b];if(n&&r[typeof n]){",h:"if(typeof u[j]=='undefined')u[j]=n[j]",c:"}}"},jr={a:"e,d,x",l:"d=d&&typeof x=='undefined'?d:f(d,x)",b:"typeof o=='number'",h:"if(d(n[j],j,e)===false)return u"},wr={l:"if(!r[typeof n])return u;"+jr.l,b:!1},xr=z(jr);hr&&(G=function(n){return n?Ht.call(n,"callee"):!1});var Or=z(jr,wr,{m:!1}),Sr=z(jr,wr),kr=Zt||function(n){return gr&&n instanceof Nt||Xt.call(n)==w},Er=rr?function(n){return nt(n)?Et&&typeof n=="function"||vr&&n.length&&G(n)?J(n):rr(n):[]
}:J,Ir={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Nr=X(Ir),Ar=z(br,{l:br.l.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=f(a[--c-1],a[c--],2);}else if(c>2&&typeof a[c-1]=='function'){d=a[--c];}"),h:"u[j]=d?d(u[j],n[j]):n[j]"}),$r=z(br);Z(/x/)&&(Z=function(n){return n instanceof Ft||Xt.call(n)==S});var Fr=Gt?function(n){if(!n||typeof n!="object")return!1;var t=n.valueOf,r=typeof t=="function"&&(r=Gt(t))&&Gt(r);return r?n==r||Gt(n)==r&&!G(n):H(n)}:H,qr=8==or("08")?or:function(n,t){return or(rt(n)?n.replace(/^0+(?=.$)/,""):n,t||0)
},Br=lt,Rr=ft;return cr&&u&&typeof Qt=="function"&&(wt=jt(Qt,e)),o.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},o.assign=Ar,o.at=function(n){var t=-1,r=Ut.apply(Pt,U(arguments,1)),e=r.length,u=Nt(e);for(yr&&rt(n)&&(n=n.split(""));++t<e;)u[t]=n[r[t]];return u},o.bind=jt,o.bindAll=function(n){for(var t=Ut.apply(Pt,arguments),r=1<t.length?0:(t=W(n),-1),e=t.length;++r<e;){var u=t[r];n[u]=jt(n[u],n)}return n},o.bindKey=function(n,t){return D(n,t,U(arguments,2))
},o.compact=function(n){for(var t=-1,r=n?n.length:0,e=[];++t<r;){var u=n[t];u&&e.push(u)}return e},o.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];return t[0]}},o.countBy=function(n,t,r){var e={};return t=P(t,r),ct(n,function(n,r,u){r=t(n,r,u)+"",Ht.call(e,r)?e[r]++:e[r]=1}),e},o.debounce=function(n,t,r){function e(){f=null,r||(o=n.apply(i,u))}var u,o,i,f;return function(){var a=r&&!f;return u=arguments,i=this,Lt(f),f=Wt(e,t),a&&(o=n.apply(i,u)),o
}},o.defaults=$r,o.defer=wt,o.delay=function(n,t){var e=U(arguments,2);return Wt(function(){n.apply(r,e)},t)},o.difference=function(n){for(var t=-1,r=n?n.length:0,e=Ut.apply(Pt,arguments),e=B(e,r),u=[];++t<r;){var o=n[t];e(o)||u.push(o)}return u},o.filter=ft,o.flatten=yt,o.forEach=ct,o.forIn=Or,o.forOwn=Sr,o.functions=W,o.groupBy=function(n,t,r){var e={};return t=P(t,r),ct(n,function(n,r,u){r=t(n,r,u)+"",(Ht.call(e,r)?e[r]:e[r]=[]).push(n)}),e},o.initial=function(n,t,r){if(!n)return[];var e=0,u=n.length;
if(typeof t!="number"&&null!=t){var o=u;for(t=P(t,r);o--&&t(n[o],o,n);)e++}else e=null==t||r?1:t||e;return U(n,0,ur(er(0,u-e),u))},o.intersection=function(n){var t=arguments,r=t.length,e={0:{}},u=-1,o=n?n.length:0,i=100<=o,f=[],a=f;n:for(;++u<o;){var c=n[u];if(i)var l=c+"",l=Ht.call(e[0],l)?!(a=e[0][l]):a=e[0][l]=[];if(l||0>mt(a,c)){i&&a.push(c);for(var p=r;--p;)if(!(e[p]||(e[p]=B(t[p],0,100)))(c))continue n;f.push(c)}}return f},o.invert=X,o.invoke=function(n,t){var r=U(arguments,2),e=-1,u=typeof t=="function",o=n?n.length:0,i=Nt(typeof o=="number"?o:0);
return ct(n,function(n){i[++e]=(u?t:n[t]).apply(n,r)}),i},o.keys=Er,o.map=lt,o.max=pt,o.memoize=function(n,t){var r={};return function(){var e=(t?t.apply(this,arguments):arguments[0])+"";return Ht.call(r,e)?r[e]:r[e]=n.apply(this,arguments)}},o.merge=et,o.min=function(n,t,r){var e=1/0,u=e;if(!t&&kr(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];i<u&&(u=i)}}else t=!t&&rt(n)?R:P(t,r),xr(n,function(n,r,o){r=t(n,r,o),r<e&&(e=r,u=n)});return u},o.object=function(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var o=n[r];
t?u[o]=t[r]:u[o[0]]=o[1]}return u},o.omit=function(n,t,r){var e=typeof t=="function",u={};if(e)t=P(t,r);else var o=Ut.apply(Pt,arguments);return Or(n,function(n,r,i){(e?!t(n,r,i):0>mt(o,r,1))&&(u[r]=n)}),u},o.once=function(n){var t,r;return function(){return t?r:(t=!0,r=n.apply(this,arguments),n=null,r)}},o.pairs=function(n){for(var t=-1,r=Er(n),e=r.length,u=Nt(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},o.partial=function(n){return D(n,U(arguments,1))},o.partialRight=function(n){return D(n,U(arguments,1),null,f)
},o.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=0,o=Ut.apply(Pt,arguments),i=nt(n)?o.length:0;++u<i;){var f=o[u];f in n&&(e[f]=n[f])}else t=P(t,r),Or(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e},o.pluck=Br,o.range=function(n,t,r){n=+n||0,r=+r||1,null==t&&(t=n,n=0);var e=-1;t=er(0,Kt((t-n)/r));for(var u=Nt(t);++e<t;)u[e]=n,n+=r;return u},o.reject=function(n,t,r){return t=P(t,r),ft(n,function(n,r,e){return!t(n,r,e)})},o.rest=dt,o.shuffle=function(n){var t=-1,r=n?n.length:0,e=Nt(typeof r=="number"?r:0);
return ct(n,function(n){var r=Vt(ir()*(++t+1));e[t]=e[r],e[r]=n}),e},o.sortBy=function(n,t,r){var e=-1,u=n?n.length:0,o=Nt(typeof u=="number"?u:0);for(t=P(t,r),ct(n,function(n,r,u){o[++e]={a:t(n,r,u),b:e,c:n}}),u=o.length,o.sort(T);u--;)o[u]=o[u].c;return o},o.tap=function(n,t){return t(n),n},o.throttle=function(n,t){function r(){f=new $t,i=null,u=n.apply(o,e)}var e,u,o,i,f=0;return function(){var a=new $t,c=t-(a-f);return e=arguments,o=this,0<c?i||(i=Wt(r,c)):(Lt(i),i=null,f=a,u=n.apply(o,e)),u}
},o.times=function(n,t,r){n=+n||0;for(var e=-1,u=Nt(n);++e<n;)u[e]=t.call(r,e);return u},o.toArray=function(n){return n&&typeof n.length=="number"?yr&&rt(n)?n.split(""):U(n):ut(n)},o.union=function(){return bt(Ut.apply(Pt,arguments))},o.uniq=bt,o.values=ut,o.where=Rr,o.without=function(n){for(var t=-1,r=n?n.length:0,e=B(arguments,1),u=[];++t<r;){var o=n[t];e(o)||u.push(o)}return u},o.wrap=function(n,t){return function(){var r=[n];return Jt.apply(r,arguments),t.apply(this,r)}},o.zip=function(n){for(var t=-1,r=n?pt(Br(arguments,"length")):0,e=Nt(r);++t<r;)e[t]=Br(arguments,t);
return e},o.collect=lt,o.drop=dt,o.each=ct,o.extend=Ar,o.methods=W,o.select=ft,o.tail=dt,o.unique=bt,Ot(o),o.clone=Q,o.cloneDeep=function(n,t,r){return Q(n,!0,t,r)},o.contains=ot,o.escape=function(n){return null==n?"":(n+"").replace(m,M)},o.every=it,o.find=at,o.has=function(n,t){return n?Ht.call(n,t):!1},o.identity=xt,o.indexOf=mt,o.isArguments=G,o.isArray=kr,o.isBoolean=function(n){return!0===n||!1===n||Xt.call(n)==x},o.isDate=function(n){return n instanceof $t||Xt.call(n)==O},o.isElement=function(n){return n?1===n.nodeType:!1
},o.isEmpty=function(n){var t=!0;if(!n)return t;var r=Xt.call(n),e=n.length;return r==w||r==N||r==j||hr&&G(n)||r==E&&typeof e=="number"&&Z(n.splice)?!e:(Sr(n,function(){return t=!1}),t)},o.isEqual=Y,o.isFinite=function(n){return nr(n)&&!tr(parseFloat(n))},o.isFunction=Z,o.isNaN=function(n){return tt(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=tt,o.isObject=nt,o.isPlainObject=Fr,o.isRegExp=function(n){return n instanceof Tt||Xt.call(n)==I},o.isString=rt,o.isUndefined=function(n){return typeof n=="undefined"
},o.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?er(0,e+r):ur(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},o.mixin=Ot,o.noConflict=function(){return e._=Ct,this},o.parseInt=qr,o.random=function(n,t){return null==n&&null==t&&(t=1),n=+n||0,null==t&&(t=n,n=0),n+Vt(ir()*((+t||0)-n+1))},o.reduce=st,o.reduceRight=vt,o.result=function(n,t){var e=n?n[t]:r;return Z(e)?n[t]():e},o.runInContext=t,o.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Er(n).length
},o.some=gt,o.sortedIndex=_t,o.template=function(n,t,e){var u=o.templateSettings;n||(n=""),e=$r({},e,u);var i,f=$r({},e.imports,u.imports),u=Er(f),f=ut(f),a=0,c=e.interpolate||y,v="__p+='",c=Tt((e.escape||y).source+"|"+c.source+"|"+(c===h?g:y).source+"|"+(e.evaluate||y).source+"|$","g");n.replace(c,function(t,r,e,u,o,f){return e||(e=u),v+=n.slice(a,f).replace(d,C),r&&(v+="'+__e("+r+")+'"),o&&(i=!0,v+="';"+o+";__p+='"),e&&(v+="'+((__t=("+e+"))==null?'':__t)+'"),a=f+t.length,t}),v+="';\n",c=e=e.variable,c||(e="obj",v="with("+e+"){"+v+"}"),v=(i?v.replace(l,""):v).replace(p,"$1").replace(s,"$1;"),v="function("+e+"){"+(c?"":e+"||("+e+"={});")+"var __t,__p='',__e=_.escape"+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+v+"return __p}";
try{var m=Ft(u,"return "+v).apply(r,f)}catch(_){throw _.source=v,_}return t?m(t):(m.source=v,m)},o.unescape=function(n){return null==n?"":(n+"").replace(c,V)},o.uniqueId=function(n){var t=++i;return(null==n?"":n+"")+t},o.all=it,o.any=gt,o.detect=at,o.foldl=st,o.foldr=vt,o.include=ot,o.inject=st,Sr(o,function(n,t){o.prototype[t]||(o.prototype[t]=function(){var t=[this.__wrapped__];return Jt.apply(t,arguments),n.apply(o,t)})}),o.first=ht,o.last=function(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u;
for(t=P(t,r);o--&&t(n[o],o,n);)e++}else if(e=t,null==e||r)return n[u-1];return U(n,er(0,u-e))}},o.take=ht,o.head=ht,Sr(o,function(n,t){o.prototype[t]||(o.prototype[t]=function(t,r){var e=n(this.__wrapped__,t,r);return null==t||r&&typeof t!="function"?e:new o(e)})}),o.VERSION="1.0.1",o.prototype.toString=function(){return this.__wrapped__+""},o.prototype.value=St,o.prototype.valueOf=St,xr(["join","pop","shift"],function(n){var t=Pt[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)
}}),xr(["push","reverse","sort","unshift"],function(n){var t=Pt[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),xr(["concat","slice","splice"],function(n){var t=Pt[n];o.prototype[n]=function(){return new o(t.apply(this.__wrapped__,arguments))}}),sr&&xr(["pop","shift","splice"],function(n){var t=Pt[n],r="splice"==n;o.prototype[n]=function(){var n=this.__wrapped__,e=t.apply(n,arguments);return 0===n.length&&delete n[0],r?new o(e):e}}),o}var r,e=typeof exports=="object"&&exports,u=typeof module=="object"&&module&&module.exports==e&&module,o=typeof global=="object"&&global;
o.global===o&&(n=o);var i=0,f={},a=30,c=/&(?:amp|lt|gt|quot|#39);/g,l=/\b__p\+='';/g,p=/\b(__p\+=)''\+/g,s=/(__e\(.*?\)|\b__t\))\+'';/g,v=/\w*$/,g=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,h=/<%=([\s\S]+?)%>/g,y=/($^)/,m=/[&<>"']/g,d=/['\n\r\t\u2028\u2029\\]/g,_="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout toString".split(" "),b="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),j="[object Arguments]",w="[object Array]",x="[object Boolean]",O="[object Date]",S="[object Function]",k="[object Number]",E="[object Object]",I="[object RegExp]",N="[object String]",A={};
A[S]=!1,A[j]=A[w]=A[x]=A[O]=A[k]=A[E]=A[I]=A[N]=!0;var $={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},F={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},q=t();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=q,define(function(){return q})):e&&!e.nodeType?u?(u.exports=q)._=q:e._=q:n._=q})(this);

39
dist/lodash.js vendored
View File

@@ -62,6 +62,13 @@
/** Used to match unescaped characters in compiled string literals */
var reUnescapedString = /['\n\r\t\u2028\u2029\\]/g;
/** Used to assign default `context` object properties */
var contextProps = [
'Array', 'Boolean', 'Date', 'Function', 'Math', 'Number', 'Object', 'RegExp',
'String', '_', 'attachEvent', 'clearTimeout', 'isFinite', 'isNaN', 'parseInt',
'setImmediate', 'setTimeout', 'toString'
];
/** Used to make template sourceURLs easier to identify */
var templateCounter = 0;
@@ -117,7 +124,7 @@
* @returns {Function} Returns the `lodash` function.
*/
function runInContext(context) {
context = context ? _.extend(createObject(window), context) : window;
context = context ? _.defaults({}, context, _.pick(window, contextProps)) : window;
/** Native constructor references */
var Array = context.Array,
@@ -168,7 +175,7 @@
nativeRandom = Math.random;
/** Detect various environments */
var isIeOpera = !!context.attachEvent,
var isIeOpera = reNative.test(context.attachEvent),
isJSC = !/\n{2,}/.test(Function()),
isV8 = nativeBind && !/\n|true/.test(nativeBind + isIeOpera);
@@ -508,7 +515,9 @@
}
if (this instanceof bound) {
// ensure `new bound` is an instance of `func`
thisBinding = createObject(func.prototype);
noop.prototype = func.prototype;
thisBinding = new noop;
noop.prototype = null;
// mimic the constructor's `return` behavior
// http://es5.github.com/#x13.2.2
@@ -589,7 +598,6 @@
* top - A string of code to execute before the iteration branches.
* loop - A string of code to execute in the object loop.
* bottom - A string of code to execute after the iteration branches.
*
* @returns {Function} Returns the compiled function.
*/
function createIterator() {
@@ -627,20 +635,6 @@
);
}
/**
* Creates a new object that inherits from the given `prototype` object.
*
* @private
* @param {Object} prototype The prototype object.
* @returns {Object} Returns the new object.
*/
function createObject(prototype) {
noop.prototype = prototype;
var result = new noop;
noop.prototype = null;
return result;
}
/**
* A function compiled to iterate `arguments` objects, arrays, objects, and
* strings consistenly across environments, executing the `callback` for each
@@ -1961,9 +1955,9 @@
}
/**
* Parses the given `value` into an integer of the specified `radix`.
* Converts the given `value` into an integer of the specified `radix`.
*
* Note: This method avoids differences in ES3 and ES5 `parseInt`
* Note: This method avoids differences in native ES3 and ES5 `parseInt`
* implementations. See http://es5.github.com/#E.
*
* @static
@@ -1977,7 +1971,7 @@
* // => 8
*/
var parseInt = nativeParseInt('08') == 8 ? nativeParseInt : function(value, radix) {
// Firefox and Opera have not changed to the ES5 specified implementation of `parseInt`
// Firefox and Opera still follow the ES3 specified implementation of `parseInt`
return nativeParseInt(isString(value) ? value.replace(/^0+(?=.$)/, '') : value, radix || 0);
};
@@ -4525,7 +4519,6 @@
* interpolate - The "interpolate" delimiter regexp.
* sourceURL - The sourceURL of the template's compiled source.
* variable - The data object variable name.
*
* @returns {Function|String} Returns a compiled function when no `data` object
* is given, else it returns the interpolated text.
* @example
@@ -5039,7 +5032,7 @@
});
}
// check for `exports` after `define` in case a build optimizer adds an `exports` object
else if (freeExports) {
else if (freeExports && !freeExports.nodeType) {
// in Node.js or RingoJS v0.8.0+
if (freeModule) {
(freeModule.exports = _)._ = _;

62
dist/lodash.min.js vendored
View File

@@ -4,38 +4,38 @@
* Build: `lodash modern -o ./dist/lodash.js`
* Underscore.js 1.4.4 underscorejs.org/LICENSE
*/
;(function(n){function t(i){function a(n){if(!n||typeof n!="object")return o;var t=n.valueOf,r=typeof t=="function"&&(r=Ut(t))&&Ut(r);if(r)n=n==r||Ut(n)==r&&!J(n);else{var e=o;!n||typeof n!="object"||J(n)?n=e:(t=n.constructor,!Z(t)||t instanceof t?(ar(n,function(n,t){e=t}),n=e===o||Vt.call(n,e)):n=e)}return n}function F(n){return n&&typeof n=="object"&&n.__wrapped__?n:this instanceof F?(this.__wrapped__=n,void 0):new F(n)}function R(n,t,r){t||(t=0);var e=n.length,u=e-t>=(r||p);if(u){var o={};for(r=t-1;++r<e;){var i=n[r]+"";
(Vt.call(o,i)?o[i]:o[i]=[]).push(n[r])}}return function(r){if(u){var e=r+"";return Vt.call(o,e)&&-1<mt(o[e],r)}return-1<mt(n,r,t)}}function D(n){return n.charCodeAt(0)}function z(n,t){var r=n.b,e=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return r<e?-1:1}function C(n,t,r,e){function u(){var a=arguments,c=i?this:t;return o||(n=t[f]),r.length&&(a=a.length?(a=G(a),e?a.concat(r):r.concat(a)):r),this instanceof u?(c=K(n.prototype),a=n.apply(c,a),nt(a)?a:c):n.apply(c,a)
}var o=Z(n),i=!r,f=t;return i&&(r=t),o||(t=n),u}function P(n,t,r){if(n==u)return xt;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var i=pr(n);return function(t){for(var r=i.length,e=o;r--&&(e=Y(t[i[r]],n[i[r]],l)););return e}}return typeof t!="undefined"?1===r?function(r){return n.call(t,r)}:2===r?function(r,e){return n.call(t,r,e)}:4===r?function(r,e,u,o){return n.call(t,r,e,u,o)}:function(r,e,u){return n.call(t,r,e,u)}:n}function T(){for(var n,t={g:or,b:"l(n)",c:"",h:"",l:"",m:e},r=0;n=arguments[r];r++)for(var u in n)t[u]=n[u];
return n=t.a,t.d=/^[^,]+/.exec(n)[0],r="var j,n="+t.d+",u=n;if(!n)return u;"+t.l+";",t.b&&(r+="var o=n.length;j=-1;if("+t.b+"){while(++j<o){"+t.h+"}}else{"),t.g&&t.m?r+="var s=-1,t=r[typeof n]?p(n):[],o=t.length;while(++s<o){j=t[s];"+t.h+"}":(r+="for(j in n){",t.m&&(r+="if(",t.m&&(r+="i.call(n,j)"),r+="){"),r+=t.h+";",t.m&&(r+="}"),r+="}"),t.b&&(r+="}"),r+=t.c+";return u",Et("f,i,k,l,m,r,p","return function("+n+"){"+r+"}")(P,Vt,J,lr,rt,N,Zt)}function K(n){return V.prototype=n,n=new V,V.prototype=u,n
}function M(n){return"\\"+q[n]}function U(n){return sr[n]}function V(){}function G(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=At(0>r?0:r);++e<r;)u[e]=n[t+e];return u}function H(n){return vr[n]}function J(n){return Lt.call(n)==w}function L(n){var t=[];return cr(n,function(n,r){t.push(r)}),t}function Q(n,t,e,u,i,f){var a=n;if(typeof t=="function"&&(u=e,e=t,t=o),typeof e=="function"){e=typeof u=="undefined"?e:P(e,u,1);var a=e(a),c=typeof a!="undefined";c||(a=n)
}if(u=nt(a)){var l=Lt.call(a);if(!I[l])return a;var p=lr(a)}if(!u||!t)return u&&!c?p?G(a):gr({},a):a;switch(u=ir[l],l){case O:case S:return c?a:new u(+a);case A:case E:return c?a:new u(a);case k:return c?a:u(a.source,y.exec(a))}for(i||(i=[]),f||(f=[]),l=i.length;l--;)if(i[l]==n)return f[l];return c||(a=p?u(a.length):{},p&&(Vt.call(n,"index")&&(a.index=n.index),Vt.call(n,"input")&&(a.input=n.input))),i.push(n),f.push(a),(p?ct:cr)(c?a:n,function(n,u){a[u]=Q(n,t,e,r,i,f)}),a}function W(n){var t=[];return ar(n,function(n,r){Z(n)&&t.push(r)
}),t.sort()}function X(n){for(var t=-1,r=pr(n),e=r.length,u={};++t<e;){var o=r[t];u[n[o]]=o}return u}function Y(n,t,r,i,f,a){var c=r===l;if(r&&!c){r=typeof i=="undefined"?r:P(r,i,2);var p=r(n,t);if(typeof p!="undefined")return!!p}if(n===t)return 0!==n||1/n==1/t;var s=typeof n,v=typeof t;if(n===n&&(!n||"function"!=s&&"object"!=s)&&(!t||"function"!=v&&"object"!=v))return o;if(n==u||t==u)return n===t;if(v=Lt.call(n),s=Lt.call(t),v==w&&(v=$),s==w&&(s=$),v!=s)return o;switch(v){case O:case S:return+n==+t;
case A:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case k:case E:return n==t+""}if(s=v==x,!s){if(n.__wrapped__||t.__wrapped__)return Y(n.__wrapped__||n,t.__wrapped__||t,r,i,f,a);if(v!=$)return o;var v=n.constructor,g=t.constructor;if(v!=g&&(!Z(v)||!(v instanceof v&&Z(g)&&g instanceof g)))return o}for(f||(f=[]),a||(a=[]),v=f.length;v--;)if(f[v]==n)return a[v]==t;var h=0,p=e;if(f.push(n),a.push(t),s){if(v=n.length,h=t.length,p=h==n.length,!p&&!c)return p;for(;h--;)if(s=v,g=t[h],c)for(;s--&&!(p=Y(n[s],g,r,i,f,a)););else if(!(p=Y(n[h],g,r,i,f,a)))break;
return p}return ar(t,function(t,e,u){return Vt.call(u,e)?(h++,p=Vt.call(n,e)&&Y(n[e],t,r,i,f,a)):void 0}),p&&!c&&ar(n,function(n,t,r){return Vt.call(r,t)?p=-1<--h:void 0}),p}function Z(n){return typeof n=="function"}function nt(n){return n?N[typeof n]:o}function tt(n){return typeof n=="number"||Lt.call(n)==A}function rt(n){return typeof n=="string"||Lt.call(n)==E}function et(n,t,r){var e=arguments,u=0,o=2;if(!nt(n))return n;if(r===l)var i=e[3],f=e[4],c=e[5];else f=[],c=[],typeof r!="number"&&(o=e.length),3<o&&"function"==typeof e[o-2]?i=P(e[--o-1],e[o--],2):2<o&&"function"==typeof e[o-1]&&(i=e[--o]);
for(;++u<o;)(lr(e[u])?ct:cr)(e[u],function(t,r){var e,u,o=t,p=n[r];if(t&&((u=lr(t))||a(t))){for(o=f.length;o--;)if(e=f[o]==t){p=c[o];break}e||(p=u?lr(p)?p:[]:a(p)?p:{},i&&(o=i(p,t),typeof o!="undefined"&&(p=o)),f.push(t),c.push(p),i||(p=et(p,t,l,i,f,c)))}else i&&(o=i(p,t),typeof o=="undefined"&&(o=t)),typeof o!="undefined"&&(p=o);n[r]=p});return n}function ut(n){for(var t=-1,r=pr(n),e=r.length,u=At(e);++t<e;)u[t]=n[r[t]];return u}function ot(n,t,r){var e=-1,u=n?n.length:0,i=o;return r=(0>r?nr(0,u+r):r)||0,typeof u=="number"?i=-1<(rt(n)?n.indexOf(t,r):mt(n,t,r)):fr(n,function(n){return++e<r?void 0:!(i=n===t)
;(function(n){function t(i){function a(n){if(!n||typeof n!="object")return o;var t=n.valueOf,r=typeof t=="function"&&(r=Ut(t))&&Ut(r);if(r)n=n==r||Ut(n)==r&&!J(n);else{var e=o;!n||typeof n!="object"||J(n)?n=e:(t=n.constructor,!Z(t)||t instanceof t?(ar(n,function(n,t){e=t}),n=e===o||Vt.call(n,e)):n=e)}return n}function R(n){return n&&typeof n=="object"&&n.__wrapped__?n:this instanceof R?(this.__wrapped__=n,void 0):new R(n)}function T(n,t,r){t||(t=0);var e=n.length,u=e-t>=(r||p);if(u){var o={};for(r=t-1;++r<e;){var i=n[r]+"";
(Vt.call(o,i)?o[i]:o[i]=[]).push(n[r])}}return function(r){if(u){var e=r+"";return Vt.call(o,e)&&-1<mt(o[e],r)}return-1<mt(n,r,t)}}function D(n){return n.charCodeAt(0)}function z(n,t){var r=n.b,e=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return r<e?-1:1}function C(n,t,r,e){function o(){var c=arguments,l=f?this:t;return i||(n=t[a]),r.length&&(c=c.length?(c=G(c),e?c.concat(r):r.concat(c)):r),this instanceof o?(V.prototype=n.prototype,l=new V,V.prototype=u,c=n.apply(l,c),nt(c)?c:l):n.apply(l,c)
}var i=Z(n),f=!r,a=t;return f&&(r=t),i||(t=n),o}function P(n,t,r){if(n==u)return xt;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var i=pr(n);return function(t){for(var r=i.length,e=o;r--&&(e=Y(t[i[r]],n[i[r]],l)););return e}}return typeof t!="undefined"?1===r?function(r){return n.call(t,r)}:2===r?function(r,e){return n.call(t,r,e)}:4===r?function(r,e,u,o){return n.call(t,r,e,u,o)}:function(r,e,u){return n.call(t,r,e,u)}:n}function M(){for(var n,t={g:or,b:"l(n)",c:"",h:"",l:"",m:e},r=0;n=arguments[r];r++)for(var u in n)t[u]=n[u];
return n=t.a,t.d=/^[^,]+/.exec(n)[0],r="var j,n="+t.d+",u=n;if(!n)return u;"+t.l+";",t.b&&(r+="var o=n.length;j=-1;if("+t.b+"){while(++j<o){"+t.h+"}}else{"),t.g&&t.m?r+="var s=-1,t=r[typeof n]?p(n):[],o=t.length;while(++s<o){j=t[s];"+t.h+"}":(r+="for(j in n){",t.m&&(r+="if(",t.m&&(r+="i.call(n,j)"),r+="){"),r+=t.h+";",t.m&&(r+="}"),r+="}"),t.b&&(r+="}"),r+=t.c+";return u",It("f,i,k,l,m,r,p","return function("+n+"){"+r+"}")(P,Vt,J,lr,rt,F,Zt)}function K(n){return"\\"+q[n]}function U(n){return sr[n]
}function V(){}function G(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=Nt(0>r?0:r);++e<r;)u[e]=n[t+e];return u}function H(n){return vr[n]}function J(n){return Lt.call(n)==x}function L(n){var t=[];return cr(n,function(n,r){t.push(r)}),t}function Q(n,t,e,u,i,f){var a=n;if(typeof t=="function"&&(u=e,e=t,t=o),typeof e=="function"){e=typeof u=="undefined"?e:P(e,u,1);var a=e(a),c=typeof a!="undefined";c||(a=n)}if(u=nt(a)){var l=Lt.call(a);if(!$[l])return a;var p=lr(a)
}if(!u||!t)return u&&!c?p?G(a):gr({},a):a;switch(u=ir[l],l){case S:case N:return c?a:new u(+a);case A:case k:return c?a:new u(a);case I:return c?a:u(a.source,y.exec(a))}for(i||(i=[]),f||(f=[]),l=i.length;l--;)if(i[l]==n)return f[l];return c||(a=p?u(a.length):{},p&&(Vt.call(n,"index")&&(a.index=n.index),Vt.call(n,"input")&&(a.input=n.input))),i.push(n),f.push(a),(p?ct:cr)(c?a:n,function(n,u){a[u]=Q(n,t,e,r,i,f)}),a}function W(n){var t=[];return ar(n,function(n,r){Z(n)&&t.push(r)}),t.sort()}function X(n){for(var t=-1,r=pr(n),e=r.length,u={};++t<e;){var o=r[t];
u[n[o]]=o}return u}function Y(n,t,r,i,f,a){var c=r===l;if(r&&!c){r=typeof i=="undefined"?r:P(r,i,2);var p=r(n,t);if(typeof p!="undefined")return!!p}if(n===t)return 0!==n||1/n==1/t;var s=typeof n,v=typeof t;if(n===n&&(!n||"function"!=s&&"object"!=s)&&(!t||"function"!=v&&"object"!=v))return o;if(n==u||t==u)return n===t;if(v=Lt.call(n),s=Lt.call(t),v==x&&(v=E),s==x&&(s=E),v!=s)return o;switch(v){case S:case N:return+n==+t;case A:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case I:case k:return n==t+""}if(s=v==O,!s){if(n.__wrapped__||t.__wrapped__)return Y(n.__wrapped__||n,t.__wrapped__||t,r,i,f,a);
if(v!=E)return o;var v=n.constructor,g=t.constructor;if(v!=g&&(!Z(v)||!(v instanceof v&&Z(g)&&g instanceof g)))return o}for(f||(f=[]),a||(a=[]),v=f.length;v--;)if(f[v]==n)return a[v]==t;var h=0,p=e;if(f.push(n),a.push(t),s){if(v=n.length,h=t.length,p=h==n.length,!p&&!c)return p;for(;h--;)if(s=v,g=t[h],c)for(;s--&&!(p=Y(n[s],g,r,i,f,a)););else if(!(p=Y(n[h],g,r,i,f,a)))break;return p}return ar(t,function(t,e,u){return Vt.call(u,e)?(h++,p=Vt.call(n,e)&&Y(n[e],t,r,i,f,a)):void 0}),p&&!c&&ar(n,function(n,t,r){return Vt.call(r,t)?p=-1<--h:void 0
}),p}function Z(n){return typeof n=="function"}function nt(n){return n?F[typeof n]:o}function tt(n){return typeof n=="number"||Lt.call(n)==A}function rt(n){return typeof n=="string"||Lt.call(n)==k}function et(n,t,r){var e=arguments,u=0,o=2;if(!nt(n))return n;if(r===l)var i=e[3],f=e[4],c=e[5];else f=[],c=[],typeof r!="number"&&(o=e.length),3<o&&"function"==typeof e[o-2]?i=P(e[--o-1],e[o--],2):2<o&&"function"==typeof e[o-1]&&(i=e[--o]);for(;++u<o;)(lr(e[u])?ct:cr)(e[u],function(t,r){var e,u,o=t,p=n[r];
if(t&&((u=lr(t))||a(t))){for(o=f.length;o--;)if(e=f[o]==t){p=c[o];break}e||(p=u?lr(p)?p:[]:a(p)?p:{},i&&(o=i(p,t),typeof o!="undefined"&&(p=o)),f.push(t),c.push(p),i||(p=et(p,t,l,i,f,c)))}else i&&(o=i(p,t),typeof o=="undefined"&&(o=t)),typeof o!="undefined"&&(p=o);n[r]=p});return n}function ut(n){for(var t=-1,r=pr(n),e=r.length,u=Nt(e);++t<e;)u[t]=n[r[t]];return u}function ot(n,t,r){var e=-1,u=n?n.length:0,i=o;return r=(0>r?nr(0,u+r):r)||0,typeof u=="number"?i=-1<(rt(n)?n.indexOf(t,r):mt(n,t,r)):fr(n,function(n){return++e<r?void 0:!(i=n===t)
}),i}function it(n,t,r){var u=e;if(t=P(t,r),lr(n)){r=-1;for(var o=n.length;++r<o&&(u=!!t(n[r],r,n)););}else fr(n,function(n,r,e){return u=!!t(n,r,e)});return u}function ft(n,t,r){var e=[];if(t=P(t,r),lr(n)){r=-1;for(var u=n.length;++r<u;){var o=n[r];t(o,r,n)&&e.push(o)}}else fr(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function at(n,t,r){var e;return t=P(t,r),ct(n,function(n,r,u){return t(n,r,u)?(e=n,o):void 0}),e}function ct(n,t,r){if(t&&typeof r=="undefined"&&lr(n)){r=-1;for(var e=n.length;++r<e&&t(n[r],r,n)!==o;);}else fr(n,t,r);
return n}function lt(n,t,r){var e=-1,u=n?n.length:0,o=At(typeof u=="number"?u:0);if(t=P(t,r),lr(n))for(;++e<u;)o[e]=t(n[e],e,n);else fr(n,function(n,r,u){o[++e]=t(n,r,u)});return o}function pt(n,t,r){var e=-1/0,u=e;if(!t&&lr(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];i>u&&(u=i)}}else t=!t&&rt(n)?D:P(t,r),fr(n,function(n,r,o){r=t(n,r,o),r>e&&(e=r,u=n)});return u}function st(n,t,r,e){var u=3>arguments.length;if(t=P(t,e,4),lr(n)){var i=-1,f=n.length;for(u&&(r=n[++i]);++i<f;)r=t(r,n[i],i,n)}else fr(n,function(n,e,i){r=u?(u=o,n):t(r,n,e,i)
return n}function lt(n,t,r){var e=-1,u=n?n.length:0,o=Nt(typeof u=="number"?u:0);if(t=P(t,r),lr(n))for(;++e<u;)o[e]=t(n[e],e,n);else fr(n,function(n,r,u){o[++e]=t(n,r,u)});return o}function pt(n,t,r){var e=-1/0,u=e;if(!t&&lr(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];i>u&&(u=i)}}else t=!t&&rt(n)?D:P(t,r),fr(n,function(n,r,o){r=t(n,r,o),r>e&&(e=r,u=n)});return u}function st(n,t,r,e){var u=3>arguments.length;if(t=P(t,e,4),lr(n)){var i=-1,f=n.length;for(u&&(r=n[++i]);++i<f;)r=t(r,n[i],i,n)}else fr(n,function(n,e,i){r=u?(u=o,n):t(r,n,e,i)
});return r}function vt(n,t,r,e){var u=n?n.length:0,i=3>arguments.length;if(typeof u!="number")var f=pr(n),u=f.length;return t=P(t,e,4),ct(n,function(e,a,c){a=f?f[--u]:--u,r=i?(i=o,n[a]):t(r,n[a],a,c)}),r}function gt(n,t,r){var e;if(t=P(t,r),lr(n)){r=-1;for(var u=n.length;++r<u&&!(e=t(n[r],r,n)););}else fr(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function ht(n,t,r){if(n){var e=0,o=n.length;if(typeof t!="number"&&t!=u){var i=-1;for(t=P(t,r);++i<o&&t(n[i],i,n);)e++}else if(e=t,e==u||r)return n[0];
return G(n,0,tr(nr(0,e),o))}}function yt(n,t){for(var r=-1,e=n?n.length:0,u=[];++r<e;){var o=n[r];lr(o)?Gt.apply(u,t?o:yt(o)):u.push(o)}return u}function mt(n,t,r){var e=-1,u=n?n.length:0;if(typeof r=="number")e=(0>r?nr(0,u+r):r||0)-1;else if(r)return e=_t(n,t),n[e]===t?e:-1;for(;++e<u;)if(n[e]===t)return e;return-1}function dt(n,t,r){if(typeof t!="number"&&t!=u){var e=0,o=-1,i=n?n.length:0;for(t=P(t,r);++o<i&&t(n[o],o,n);)e++}else e=t==u||r?1:nr(0,t);return G(n,e)}function _t(n,t,r,e){var u=0,o=n?n.length:u;
for(r=r?P(r,e,1):xt,t=r(t);u<o;)e=u+o>>>1,r(n[e])<t?u=e+1:o=e;return u}function bt(n,t,r,e){var u=-1,i=n?n.length:0,f=[],a=f;typeof t=="function"&&(e=r,r=t,t=o);var c=!t&&75<=i;if(c)var l={};for(r&&(a=[],r=P(r,e));++u<i;){e=n[u];var p=r?r(e,u,n):e;if(c)var s=p+"",s=Vt.call(l,s)?!(a=l[s]):a=l[s]=[];(t?!u||a[a.length-1]!==p:s||0>mt(a,p))&&((r||c)&&a.push(p),f.push(e))}return f}function jt(n,t){return ur||Qt&&2<arguments.length?Qt.call.apply(Qt,arguments):C(n,t,G(arguments,2))}function wt(n){var t=G(arguments,1);
return Jt(function(){n.apply(r,t)},1)}function xt(n){return n}function Ot(n){ct(W(n),function(t){var r=F[t]=n[t];F.prototype[t]=function(){var n=[this.__wrapped__];return Gt.apply(n,arguments),new F(r.apply(F,n))}})}function St(){return this.__wrapped__}i=i?B.extend(K(n),i):n;var At=i.Array,$t=i.Boolean,kt=i.Date,Et=i.Function,It=i.Math,Nt=i.Number,qt=i.Object,Bt=i.RegExp,Ft=i.String,Rt=At(),Dt=qt(),zt=i._,Ct=Bt("^"+(Dt.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),Pt=It.ceil,Tt=i.clearTimeout,Kt=Rt.concat,Mt=It.floor,Ut=Ct.test(Ut=qt.getPrototypeOf)&&Ut,Vt=Dt.hasOwnProperty,Gt=Rt.push,Ht=i.setImmediate,Jt=i.setTimeout,Lt=Dt.toString,Qt=Ct.test(Qt=G.bind)&&Qt,Wt=Ct.test(Wt=At.isArray)&&Wt,Xt=i.isFinite,Yt=i.isNaN,Zt=Ct.test(Zt=qt.keys)&&Zt,nr=It.max,tr=It.min,rr=i.parseInt,er=It.random,Dt=!!i.attachEvent,Ct=!/\n{2,}/.test(Et()),It=Qt&&!/\n|true/.test(Qt+Dt),ur=Qt&&!It,or=Zt&&(Dt||It||!Ct),ir={};
ir[x]=At,ir[O]=$t,ir[S]=kt,ir[$]=qt,ir[A]=Nt,ir[k]=Bt,ir[E]=Ft,F.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:d,variable:"",imports:{_:F}};var $t={a:"q,w,h",l:"var a=arguments,b=0,c=typeof h=='number'?2:a.length;while(++b<c){n=a[b];if(n&&r[typeof n]){",h:"if(typeof u[j]=='undefined')u[j]=n[j]",c:"}}"},Nt={a:"e,d,x",l:"d=d&&typeof x=='undefined'?d:f(d,x)",b:"typeof o=='number'",h:"if(d(n[j],j,e)===false)return u"},qt={l:"if(!r[typeof n])return u;"+Nt.l,b:o},fr=T(Nt),ar=T(Nt,qt,{m:o}),cr=T(Nt,qt),lr=Wt||function(n){return n instanceof At||Lt.call(n)==x
},pr=Zt?function(n){return nt(n)?Zt(n):[]}:L,sr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vr=X(sr),gr=T($t,{l:$t.l.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=f(a[--c-1],a[c--],2);}else if(c>2&&typeof a[c-1]=='function'){d=a[--c];}"),h:"u[j]=d?d(u[j],n[j]):n[j]"}),hr=T($t),Wt=8==rr("08")?rr:function(n,t){return rr(rt(n)?n.replace(/^0+(?=.$)/,""):n,t||0)};return It&&f&&typeof Ht=="function"&&(wt=jt(Ht,i)),F.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0
}},F.assign=gr,F.at=function(n){for(var t=-1,r=Kt.apply(Rt,G(arguments,1)),e=r.length,u=At(e);++t<e;)u[t]=n[r[t]];return u},F.bind=jt,F.bindAll=function(n){for(var t=Kt.apply(Rt,arguments),r=1<t.length?0:(t=W(n),-1),e=t.length;++r<e;){var u=t[r];n[u]=jt(n[u],n)}return n},F.bindKey=function(n,t){return C(n,t,G(arguments,2))},F.compact=function(n){for(var t=-1,r=n?n.length:0,e=[];++t<r;){var u=n[t];u&&e.push(u)}return e},F.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];
return t[0]}},F.countBy=function(n,t,r){var e={};return t=P(t,r),ct(n,function(n,r,u){r=t(n,r,u)+"",Vt.call(e,r)?e[r]++:e[r]=1}),e},F.debounce=function(n,t,r){function e(){a=u,r||(i=n.apply(f,o))}var o,i,f,a;return function(){var u=r&&!a;return o=arguments,f=this,Tt(a),a=Jt(e,t),u&&(i=n.apply(f,o)),i}},F.defaults=hr,F.defer=wt,F.delay=function(n,t){var e=G(arguments,2);return Jt(function(){n.apply(r,e)},t)},F.difference=function(n){for(var t=-1,r=n?n.length:0,e=Kt.apply(Rt,arguments),e=R(e,r),u=[];++t<r;){var o=n[t];
e(o)||u.push(o)}return u},F.filter=ft,F.flatten=yt,F.forEach=ct,F.forIn=ar,F.forOwn=cr,F.functions=W,F.groupBy=function(n,t,r){var e={};return t=P(t,r),ct(n,function(n,r,u){r=t(n,r,u)+"",(Vt.call(e,r)?e[r]:e[r]=[]).push(n)}),e},F.initial=function(n,t,r){if(!n)return[];var e=0,o=n.length;if(typeof t!="number"&&t!=u){var i=o;for(t=P(t,r);i--&&t(n[i],i,n);)e++}else e=t==u||r?1:t||e;return G(n,0,tr(nr(0,o-e),o))},F.intersection=function(n){var t=arguments,r=t.length,e={0:{}},u=-1,o=n?n.length:0,i=100<=o,f=[],a=f;
n:for(;++u<o;){var c=n[u];if(i)var l=c+"",l=Vt.call(e[0],l)?!(a=e[0][l]):a=e[0][l]=[];if(l||0>mt(a,c)){i&&a.push(c);for(var p=r;--p;)if(!(e[p]||(e[p]=R(t[p],0,100)))(c))continue n;f.push(c)}}return f},F.invert=X,F.invoke=function(n,t){var r=G(arguments,2),e=-1,u=typeof t=="function",o=n?n.length:0,i=At(typeof o=="number"?o:0);return ct(n,function(n){i[++e]=(u?t:n[t]).apply(n,r)}),i},F.keys=pr,F.map=lt,F.max=pt,F.memoize=function(n,t){var r={};return function(){var e=(t?t.apply(this,arguments):arguments[0])+"";
return Vt.call(r,e)?r[e]:r[e]=n.apply(this,arguments)}},F.merge=et,F.min=function(n,t,r){var e=1/0,u=e;if(!t&&lr(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];i<u&&(u=i)}}else t=!t&&rt(n)?D:P(t,r),fr(n,function(n,r,o){r=t(n,r,o),r<e&&(e=r,u=n)});return u},F.object=function(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var o=n[r];t?u[o]=t[r]:u[o[0]]=o[1]}return u},F.omit=function(n,t,r){var e=typeof t=="function",u={};if(e)t=P(t,r);else var o=Kt.apply(Rt,arguments);return ar(n,function(n,r,i){(e?!t(n,r,i):0>mt(o,r,1))&&(u[r]=n)
}),u},F.once=function(n){var t,r;return function(){return t?r:(t=e,r=n.apply(this,arguments),n=u,r)}},F.pairs=function(n){for(var t=-1,r=pr(n),e=r.length,u=At(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},F.partial=function(n){return C(n,G(arguments,1))},F.partialRight=function(n){return C(n,G(arguments,1),u,l)},F.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=0,o=Kt.apply(Rt,arguments),i=nt(n)?o.length:0;++u<i;){var f=o[u];f in n&&(e[f]=n[f])}else t=P(t,r),ar(n,function(n,r,u){t(n,r,u)&&(e[r]=n)
});return e},F.pluck=lt,F.range=function(n,t,r){n=+n||0,r=+r||1,t==u&&(t=n,n=0);var e=-1;t=nr(0,Pt((t-n)/r));for(var o=At(t);++e<t;)o[e]=n,n+=r;return o},F.reject=function(n,t,r){return t=P(t,r),ft(n,function(n,r,e){return!t(n,r,e)})},F.rest=dt,F.shuffle=function(n){var t=-1,r=n?n.length:0,e=At(typeof r=="number"?r:0);return ct(n,function(n){var r=Mt(er()*(++t+1));e[t]=e[r],e[r]=n}),e},F.sortBy=function(n,t,r){var e=-1,u=n?n.length:0,o=At(typeof u=="number"?u:0);for(t=P(t,r),ct(n,function(n,r,u){o[++e]={a:t(n,r,u),b:e,c:n}
}),u=o.length,o.sort(z);u--;)o[u]=o[u].c;return o},F.tap=function(n,t){return t(n),n},F.throttle=function(n,t){function r(){a=new kt,f=u,o=n.apply(i,e)}var e,o,i,f,a=0;return function(){var c=new kt,l=t-(c-a);return e=arguments,i=this,0<l?f||(f=Jt(r,l)):(Tt(f),f=u,a=c,o=n.apply(i,e)),o}},F.times=function(n,t,r){n=+n||0;for(var e=-1,u=At(n);++e<n;)u[e]=t.call(r,e);return u},F.toArray=function(n){return n&&typeof n.length=="number"?G(n):ut(n)},F.union=function(){return bt(Kt.apply(Rt,arguments))},F.uniq=bt,F.values=ut,F.where=ft,F.without=function(n){for(var t=-1,r=n?n.length:0,e=R(arguments,1),u=[];++t<r;){var o=n[t];
e(o)||u.push(o)}return u},F.wrap=function(n,t){return function(){var r=[n];return Gt.apply(r,arguments),t.apply(this,r)}},F.zip=function(n){for(var t=-1,r=n?pt(lt(arguments,"length")):0,e=At(r);++t<r;)e[t]=lt(arguments,t);return e},F.collect=lt,F.drop=dt,F.each=ct,F.extend=gr,F.methods=W,F.select=ft,F.tail=dt,F.unique=bt,Ot(F),F.clone=Q,F.cloneDeep=function(n,t,r){return Q(n,e,t,r)},F.contains=ot,F.escape=function(n){return n==u?"":(n+"").replace(b,U)},F.every=it,F.find=at,F.has=function(n,t){return n?Vt.call(n,t):o
},F.identity=xt,F.indexOf=mt,F.isArguments=J,F.isArray=lr,F.isBoolean=function(n){return n===e||n===o||Lt.call(n)==O},F.isDate=function(n){return n instanceof kt||Lt.call(n)==S},F.isElement=function(n){return n?1===n.nodeType:o},F.isEmpty=function(n){var t=e;if(!n)return t;var r=Lt.call(n),u=n.length;return r==x||r==E||r==w||r==$&&typeof u=="number"&&Z(n.splice)?!u:(cr(n,function(){return t=o}),t)},F.isEqual=Y,F.isFinite=function(n){return Xt(n)&&!Yt(parseFloat(n))},F.isFunction=Z,F.isNaN=function(n){return tt(n)&&n!=+n
},F.isNull=function(n){return n===u},F.isNumber=tt,F.isObject=nt,F.isPlainObject=a,F.isRegExp=function(n){return n instanceof Bt||Lt.call(n)==k},F.isString=rt,F.isUndefined=function(n){return typeof n=="undefined"},F.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?nr(0,e+r):tr(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},F.mixin=Ot,F.noConflict=function(){return i._=zt,this},F.parseInt=Wt,F.random=function(n,t){return n==u&&t==u&&(t=1),n=+n||0,t==u&&(t=n,n=0),n+Mt(er()*((+t||0)-n+1))
},F.reduce=st,F.reduceRight=vt,F.result=function(n,t){var e=n?n[t]:r;return Z(e)?n[t]():e},F.runInContext=t,F.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:pr(n).length},F.some=gt,F.sortedIndex=_t,F.template=function(n,t,u){var o=F.templateSettings;n||(n=""),u=hr({},u,o);var i,f=hr({},u.imports,o.imports),o=pr(f),f=ut(f),a=0,c=u.interpolate||_,l="__p+='",c=Bt((u.escape||_).source+"|"+c.source+"|"+(c===d?m:_).source+"|"+(u.evaluate||_).source+"|$","g");n.replace(c,function(t,r,u,o,f,c){return u||(u=o),l+=n.slice(a,c).replace(j,M),r&&(l+="'+__e("+r+")+'"),f&&(i=e,l+="';"+f+";__p+='"),u&&(l+="'+((__t=("+u+"))==null?'':__t)+'"),a=c+t.length,t
}),l+="';\n",c=u=u.variable,c||(u="obj",l="with("+u+"){"+l+"}"),l=(i?l.replace(v,""):l).replace(g,"$1").replace(h,"$1;"),l="function("+u+"){"+(c?"":u+"||("+u+"={});")+"var __t,__p='',__e=_.escape"+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}";try{var p=Et(o,"return "+l).apply(r,f)}catch(s){throw s.source=l,s}return t?p(t):(p.source=l,p)},F.unescape=function(n){return n==u?"":(n+"").replace(s,H)},F.uniqueId=function(n){var t=++c;return(n==u?"":n+"")+t
},F.all=it,F.any=gt,F.detect=at,F.foldl=st,F.foldr=vt,F.include=ot,F.inject=st,cr(F,function(n,t){F.prototype[t]||(F.prototype[t]=function(){var t=[this.__wrapped__];return Gt.apply(t,arguments),n.apply(F,t)})}),F.first=ht,F.last=function(n,t,r){if(n){var e=0,o=n.length;if(typeof t!="number"&&t!=u){var i=o;for(t=P(t,r);i--&&t(n[i],i,n);)e++}else if(e=t,e==u||r)return n[o-1];return G(n,nr(0,o-e))}},F.take=ht,F.head=ht,cr(F,function(n,t){F.prototype[t]||(F.prototype[t]=function(t,r){var e=n(this.__wrapped__,t,r);
return t==u||r&&typeof t!="function"?e:new F(e)})}),F.VERSION="1.0.1",F.prototype.toString=function(){return this.__wrapped__+""},F.prototype.value=St,F.prototype.valueOf=St,fr(["join","pop","shift"],function(n){var t=Rt[n];F.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),fr(["push","reverse","sort","unshift"],function(n){var t=Rt[n];F.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),fr(["concat","slice","splice"],function(n){var t=Rt[n];F.prototype[n]=function(){return new F(t.apply(this.__wrapped__,arguments))
}}),F}var r,e=!0,u=null,o=!1,i=typeof exports=="object"&&exports,f=typeof module=="object"&&module&&module.exports==i&&module,a=typeof global=="object"&&global;a.global===a&&(n=a);var c=0,l={},p=30,s=/&(?:amp|lt|gt|quot|#39);/g,v=/\b__p\+='';/g,g=/\b(__p\+=)''\+/g,h=/(__e\(.*?\)|\b__t\))\+'';/g,y=/\w*$/,m=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,d=/<%=([\s\S]+?)%>/g,_=/($^)/,b=/[&<>"']/g,j=/['\n\r\t\u2028\u2029\\]/g,w="[object Arguments]",x="[object Array]",O="[object Boolean]",S="[object Date]",A="[object Number]",$="[object Object]",k="[object RegExp]",E="[object String]",I={"[object Function]":o};
I[w]=I[x]=I[O]=I[S]=I[A]=I[$]=I[k]=I[E]=e;var N={"boolean":o,"function":e,object:e,number:o,string:o,undefined:o},q={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},B=t();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=B,define(function(){return B})):i?f?(f.exports=B)._=B:i._=B:n._=B})(this);
return Jt(function(){n.apply(r,t)},1)}function xt(n){return n}function Ot(n){ct(W(n),function(t){var r=R[t]=n[t];R.prototype[t]=function(){var n=[this.__wrapped__];return Gt.apply(n,arguments),new R(r.apply(R,n))}})}function St(){return this.__wrapped__}i=i?B.defaults({},i,B.pick(n,w)):n;var Nt=i.Array,At=i.Boolean,Et=i.Date,It=i.Function,kt=i.Math,$t=i.Number,Ft=i.Object,qt=i.RegExp,Bt=i.String,Rt=Nt(),Tt=Ft(),Dt=i._,zt=qt("^"+(Tt.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),Ct=kt.ceil,Pt=i.clearTimeout,Mt=Rt.concat,Kt=kt.floor,Ut=zt.test(Ut=Ft.getPrototypeOf)&&Ut,Vt=Tt.hasOwnProperty,Gt=Rt.push,Ht=i.setImmediate,Jt=i.setTimeout,Lt=Tt.toString,Qt=zt.test(Qt=G.bind)&&Qt,Wt=zt.test(Wt=Nt.isArray)&&Wt,Xt=i.isFinite,Yt=i.isNaN,Zt=zt.test(Zt=Ft.keys)&&Zt,nr=kt.max,tr=kt.min,rr=i.parseInt,er=kt.random,Tt=zt.test(i.attachEvent),zt=!/\n{2,}/.test(It()),kt=Qt&&!/\n|true/.test(Qt+Tt),ur=Qt&&!kt,or=Zt&&(Tt||kt||!zt),ir={};
ir[O]=Nt,ir[S]=At,ir[N]=Et,ir[E]=Ft,ir[A]=$t,ir[I]=qt,ir[k]=Bt,R.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:d,variable:"",imports:{_:R}};var At={a:"q,w,h",l:"var a=arguments,b=0,c=typeof h=='number'?2:a.length;while(++b<c){n=a[b];if(n&&r[typeof n]){",h:"if(typeof u[j]=='undefined')u[j]=n[j]",c:"}}"},$t={a:"e,d,x",l:"d=d&&typeof x=='undefined'?d:f(d,x)",b:"typeof o=='number'",h:"if(d(n[j],j,e)===false)return u"},Ft={l:"if(!r[typeof n])return u;"+$t.l,b:o},fr=M($t),ar=M($t,Ft,{m:o}),cr=M($t,Ft),lr=Wt||function(n){return n instanceof Nt||Lt.call(n)==O
},pr=Zt?function(n){return nt(n)?Zt(n):[]}:L,sr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vr=X(sr),gr=M(At,{l:At.l.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=f(a[--c-1],a[c--],2);}else if(c>2&&typeof a[c-1]=='function'){d=a[--c];}"),h:"u[j]=d?d(u[j],n[j]):n[j]"}),hr=M(At),Wt=8==rr("08")?rr:function(n,t){return rr(rt(n)?n.replace(/^0+(?=.$)/,""):n,t||0)};return kt&&f&&typeof Ht=="function"&&(wt=jt(Ht,i)),R.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0
}},R.assign=gr,R.at=function(n){for(var t=-1,r=Mt.apply(Rt,G(arguments,1)),e=r.length,u=Nt(e);++t<e;)u[t]=n[r[t]];return u},R.bind=jt,R.bindAll=function(n){for(var t=Mt.apply(Rt,arguments),r=1<t.length?0:(t=W(n),-1),e=t.length;++r<e;){var u=t[r];n[u]=jt(n[u],n)}return n},R.bindKey=function(n,t){return C(n,t,G(arguments,2))},R.compact=function(n){for(var t=-1,r=n?n.length:0,e=[];++t<r;){var u=n[t];u&&e.push(u)}return e},R.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];
return t[0]}},R.countBy=function(n,t,r){var e={};return t=P(t,r),ct(n,function(n,r,u){r=t(n,r,u)+"",Vt.call(e,r)?e[r]++:e[r]=1}),e},R.debounce=function(n,t,r){function e(){a=u,r||(i=n.apply(f,o))}var o,i,f,a;return function(){var u=r&&!a;return o=arguments,f=this,Pt(a),a=Jt(e,t),u&&(i=n.apply(f,o)),i}},R.defaults=hr,R.defer=wt,R.delay=function(n,t){var e=G(arguments,2);return Jt(function(){n.apply(r,e)},t)},R.difference=function(n){for(var t=-1,r=n?n.length:0,e=Mt.apply(Rt,arguments),e=T(e,r),u=[];++t<r;){var o=n[t];
e(o)||u.push(o)}return u},R.filter=ft,R.flatten=yt,R.forEach=ct,R.forIn=ar,R.forOwn=cr,R.functions=W,R.groupBy=function(n,t,r){var e={};return t=P(t,r),ct(n,function(n,r,u){r=t(n,r,u)+"",(Vt.call(e,r)?e[r]:e[r]=[]).push(n)}),e},R.initial=function(n,t,r){if(!n)return[];var e=0,o=n.length;if(typeof t!="number"&&t!=u){var i=o;for(t=P(t,r);i--&&t(n[i],i,n);)e++}else e=t==u||r?1:t||e;return G(n,0,tr(nr(0,o-e),o))},R.intersection=function(n){var t=arguments,r=t.length,e={0:{}},u=-1,o=n?n.length:0,i=100<=o,f=[],a=f;
n:for(;++u<o;){var c=n[u];if(i)var l=c+"",l=Vt.call(e[0],l)?!(a=e[0][l]):a=e[0][l]=[];if(l||0>mt(a,c)){i&&a.push(c);for(var p=r;--p;)if(!(e[p]||(e[p]=T(t[p],0,100)))(c))continue n;f.push(c)}}return f},R.invert=X,R.invoke=function(n,t){var r=G(arguments,2),e=-1,u=typeof t=="function",o=n?n.length:0,i=Nt(typeof o=="number"?o:0);return ct(n,function(n){i[++e]=(u?t:n[t]).apply(n,r)}),i},R.keys=pr,R.map=lt,R.max=pt,R.memoize=function(n,t){var r={};return function(){var e=(t?t.apply(this,arguments):arguments[0])+"";
return Vt.call(r,e)?r[e]:r[e]=n.apply(this,arguments)}},R.merge=et,R.min=function(n,t,r){var e=1/0,u=e;if(!t&&lr(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];i<u&&(u=i)}}else t=!t&&rt(n)?D:P(t,r),fr(n,function(n,r,o){r=t(n,r,o),r<e&&(e=r,u=n)});return u},R.object=function(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var o=n[r];t?u[o]=t[r]:u[o[0]]=o[1]}return u},R.omit=function(n,t,r){var e=typeof t=="function",u={};if(e)t=P(t,r);else var o=Mt.apply(Rt,arguments);return ar(n,function(n,r,i){(e?!t(n,r,i):0>mt(o,r,1))&&(u[r]=n)
}),u},R.once=function(n){var t,r;return function(){return t?r:(t=e,r=n.apply(this,arguments),n=u,r)}},R.pairs=function(n){for(var t=-1,r=pr(n),e=r.length,u=Nt(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},R.partial=function(n){return C(n,G(arguments,1))},R.partialRight=function(n){return C(n,G(arguments,1),u,l)},R.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=0,o=Mt.apply(Rt,arguments),i=nt(n)?o.length:0;++u<i;){var f=o[u];f in n&&(e[f]=n[f])}else t=P(t,r),ar(n,function(n,r,u){t(n,r,u)&&(e[r]=n)
});return e},R.pluck=lt,R.range=function(n,t,r){n=+n||0,r=+r||1,t==u&&(t=n,n=0);var e=-1;t=nr(0,Ct((t-n)/r));for(var o=Nt(t);++e<t;)o[e]=n,n+=r;return o},R.reject=function(n,t,r){return t=P(t,r),ft(n,function(n,r,e){return!t(n,r,e)})},R.rest=dt,R.shuffle=function(n){var t=-1,r=n?n.length:0,e=Nt(typeof r=="number"?r:0);return ct(n,function(n){var r=Kt(er()*(++t+1));e[t]=e[r],e[r]=n}),e},R.sortBy=function(n,t,r){var e=-1,u=n?n.length:0,o=Nt(typeof u=="number"?u:0);for(t=P(t,r),ct(n,function(n,r,u){o[++e]={a:t(n,r,u),b:e,c:n}
}),u=o.length,o.sort(z);u--;)o[u]=o[u].c;return o},R.tap=function(n,t){return t(n),n},R.throttle=function(n,t){function r(){a=new Et,f=u,o=n.apply(i,e)}var e,o,i,f,a=0;return function(){var c=new Et,l=t-(c-a);return e=arguments,i=this,0<l?f||(f=Jt(r,l)):(Pt(f),f=u,a=c,o=n.apply(i,e)),o}},R.times=function(n,t,r){n=+n||0;for(var e=-1,u=Nt(n);++e<n;)u[e]=t.call(r,e);return u},R.toArray=function(n){return n&&typeof n.length=="number"?G(n):ut(n)},R.union=function(){return bt(Mt.apply(Rt,arguments))},R.uniq=bt,R.values=ut,R.where=ft,R.without=function(n){for(var t=-1,r=n?n.length:0,e=T(arguments,1),u=[];++t<r;){var o=n[t];
e(o)||u.push(o)}return u},R.wrap=function(n,t){return function(){var r=[n];return Gt.apply(r,arguments),t.apply(this,r)}},R.zip=function(n){for(var t=-1,r=n?pt(lt(arguments,"length")):0,e=Nt(r);++t<r;)e[t]=lt(arguments,t);return e},R.collect=lt,R.drop=dt,R.each=ct,R.extend=gr,R.methods=W,R.select=ft,R.tail=dt,R.unique=bt,Ot(R),R.clone=Q,R.cloneDeep=function(n,t,r){return Q(n,e,t,r)},R.contains=ot,R.escape=function(n){return n==u?"":(n+"").replace(b,U)},R.every=it,R.find=at,R.has=function(n,t){return n?Vt.call(n,t):o
},R.identity=xt,R.indexOf=mt,R.isArguments=J,R.isArray=lr,R.isBoolean=function(n){return n===e||n===o||Lt.call(n)==S},R.isDate=function(n){return n instanceof Et||Lt.call(n)==N},R.isElement=function(n){return n?1===n.nodeType:o},R.isEmpty=function(n){var t=e;if(!n)return t;var r=Lt.call(n),u=n.length;return r==O||r==k||r==x||r==E&&typeof u=="number"&&Z(n.splice)?!u:(cr(n,function(){return t=o}),t)},R.isEqual=Y,R.isFinite=function(n){return Xt(n)&&!Yt(parseFloat(n))},R.isFunction=Z,R.isNaN=function(n){return tt(n)&&n!=+n
},R.isNull=function(n){return n===u},R.isNumber=tt,R.isObject=nt,R.isPlainObject=a,R.isRegExp=function(n){return n instanceof qt||Lt.call(n)==I},R.isString=rt,R.isUndefined=function(n){return typeof n=="undefined"},R.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?nr(0,e+r):tr(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},R.mixin=Ot,R.noConflict=function(){return i._=Dt,this},R.parseInt=Wt,R.random=function(n,t){return n==u&&t==u&&(t=1),n=+n||0,t==u&&(t=n,n=0),n+Kt(er()*((+t||0)-n+1))
},R.reduce=st,R.reduceRight=vt,R.result=function(n,t){var e=n?n[t]:r;return Z(e)?n[t]():e},R.runInContext=t,R.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:pr(n).length},R.some=gt,R.sortedIndex=_t,R.template=function(n,t,u){var o=R.templateSettings;n||(n=""),u=hr({},u,o);var i,f=hr({},u.imports,o.imports),o=pr(f),f=ut(f),a=0,c=u.interpolate||_,l="__p+='",c=qt((u.escape||_).source+"|"+c.source+"|"+(c===d?m:_).source+"|"+(u.evaluate||_).source+"|$","g");n.replace(c,function(t,r,u,o,f,c){return u||(u=o),l+=n.slice(a,c).replace(j,K),r&&(l+="'+__e("+r+")+'"),f&&(i=e,l+="';"+f+";__p+='"),u&&(l+="'+((__t=("+u+"))==null?'':__t)+'"),a=c+t.length,t
}),l+="';\n",c=u=u.variable,c||(u="obj",l="with("+u+"){"+l+"}"),l=(i?l.replace(v,""):l).replace(g,"$1").replace(h,"$1;"),l="function("+u+"){"+(c?"":u+"||("+u+"={});")+"var __t,__p='',__e=_.escape"+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}";try{var p=It(o,"return "+l).apply(r,f)}catch(s){throw s.source=l,s}return t?p(t):(p.source=l,p)},R.unescape=function(n){return n==u?"":(n+"").replace(s,H)},R.uniqueId=function(n){var t=++c;return(n==u?"":n+"")+t
},R.all=it,R.any=gt,R.detect=at,R.foldl=st,R.foldr=vt,R.include=ot,R.inject=st,cr(R,function(n,t){R.prototype[t]||(R.prototype[t]=function(){var t=[this.__wrapped__];return Gt.apply(t,arguments),n.apply(R,t)})}),R.first=ht,R.last=function(n,t,r){if(n){var e=0,o=n.length;if(typeof t!="number"&&t!=u){var i=o;for(t=P(t,r);i--&&t(n[i],i,n);)e++}else if(e=t,e==u||r)return n[o-1];return G(n,nr(0,o-e))}},R.take=ht,R.head=ht,cr(R,function(n,t){R.prototype[t]||(R.prototype[t]=function(t,r){var e=n(this.__wrapped__,t,r);
return t==u||r&&typeof t!="function"?e:new R(e)})}),R.VERSION="1.0.1",R.prototype.toString=function(){return this.__wrapped__+""},R.prototype.value=St,R.prototype.valueOf=St,fr(["join","pop","shift"],function(n){var t=Rt[n];R.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),fr(["push","reverse","sort","unshift"],function(n){var t=Rt[n];R.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),fr(["concat","slice","splice"],function(n){var t=Rt[n];R.prototype[n]=function(){return new R(t.apply(this.__wrapped__,arguments))
}}),R}var r,e=!0,u=null,o=!1,i=typeof exports=="object"&&exports,f=typeof module=="object"&&module&&module.exports==i&&module,a=typeof global=="object"&&global;a.global===a&&(n=a);var c=0,l={},p=30,s=/&(?:amp|lt|gt|quot|#39);/g,v=/\b__p\+='';/g,g=/\b(__p\+=)''\+/g,h=/(__e\(.*?\)|\b__t\))\+'';/g,y=/\w*$/,m=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,d=/<%=([\s\S]+?)%>/g,_=/($^)/,b=/[&<>"']/g,j=/['\n\r\t\u2028\u2029\\]/g,w="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout toString".split(" "),x="[object Arguments]",O="[object Array]",S="[object Boolean]",N="[object Date]",A="[object Number]",E="[object Object]",I="[object RegExp]",k="[object String]",$={"[object Function]":o};
$[x]=$[O]=$[S]=$[N]=$[A]=$[E]=$[I]=$[k]=e;var F={"boolean":o,"function":e,object:e,number:o,string:o,undefined:o},q={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},B=t();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=B,define(function(){return B})):i&&!i.nodeType?f?(f.exports=B)._=B:i._=B:n._=B})(this);

View File

@@ -131,7 +131,7 @@
nativeRandom = Math.random;
/** Detect various environments */
var isIeOpera = !!window.attachEvent,
var isIeOpera = reNative.test(window.attachEvent),
isV8 = nativeBind && !/\n|true/.test(nativeBind + isIeOpera);
/* Detect if `Function#bind` exists and is inferred to be fast (all but V8) */
@@ -334,7 +334,9 @@
}
if (this instanceof bound) {
// ensure `new bound` is an instance of `func`
thisBinding = createObject(func.prototype);
noop.prototype = func.prototype;
thisBinding = new noop;
noop.prototype = null;
// mimic the constructor's `return` behavior
// http://es5.github.com/#x13.2.2
@@ -404,20 +406,6 @@
return func;
}
/**
* Creates a new object that inherits from the given `prototype` object.
*
* @private
* @param {Object} prototype The prototype object.
* @returns {Object} Returns the new object.
*/
function createObject(prototype) {
noop.prototype = prototype;
var result = new noop;
noop.prototype = null;
return result;
}
/**
* A function compiled to iterate `arguments` objects, arrays, objects, and
* strings consistenly across environments, executing the `callback` for each
@@ -3844,7 +3832,6 @@
* interpolate - The "interpolate" delimiter regexp.
* sourceURL - The sourceURL of the template's compiled source.
* variable - The data object variable name.
*
* @returns {Function|String} Returns a compiled function when no `data` object
* is given, else it returns the interpolated text.
* @example
@@ -4314,7 +4301,7 @@
/*--------------------------------------------------------------------------*/
if (freeExports) {
if (freeExports && !freeExports.nodeType) {
// in Node.js or RingoJS v0.8.0+
if (freeModule) {
(freeModule.exports = lodash)._ = lodash;

View File

@@ -6,29 +6,29 @@
*/
;(function(n){function r(n,r){var t;if(n&&pr[typeof n])for(t in r||(r=V),n)if(r(n[t],t,n)===Y)break}function t(n,r,t){if(n){r=r&&typeof t=="undefined"?r:i(r,t);var e=n.length;if(t=-1,typeof e=="number")for(;++t<e&&r(n[t],t,n)!==Y;);else for(t in n)if(br.call(n,t)&&r(n[t],t,n)===Y)break}}function e(n){return n&&typeof n=="object"&&n.__wrapped__?n:this instanceof e?(this.__wrapped__=n,void 0):new e(n)}function u(n,r){var t=n.b,e=r.b;if(n=n.a,r=r.a,n!==r){if(n>r||typeof n=="undefined")return 1;if(n<r||typeof r=="undefined")return-1
}return t<e?-1:1}function o(n,r,t){function e(){var a=arguments,f=o?this:r;return u||(n=r[i]),t.length&&(a=a.length?(a=l(a),t.concat(a)):t),this instanceof e?(c.prototype=n.prototype,f=new c,c.prototype=H,a=n.apply(f,a),j(a)?a:f):n.apply(f,a)}var u=b(n),o=!t,i=r;return o&&(t=r),u||(r=n),e}function i(n,r,t){if(n==H)return V;var e=typeof n;if("function"!=e){if("object"!=e)return function(r){return r[n]};var u=$r(n);return function(r){for(var t=u.length,e=J;t--&&(e=r[u[t]]===n[u[t]]););return e}}return typeof r!="undefined"?1===t?function(t){return n.call(r,t)
}:2===t?function(t,e){return n.call(r,t,e)}:4===t?function(t,e,u,o){return n.call(r,t,e,u,o)}:function(t,e,u){return n.call(r,t,e,u)}:n}function a(n){return"\\"+sr[n]}function f(n){return Ir[n]}function c(){}function l(n,r,t){r||(r=0),typeof t=="undefined"&&(t=n?n.length:0);var e=-1;t=t-r||0;for(var u=Array(0>t?0:t);++e<t;)u[e]=n[r+e];return u}function p(n){return zr[n]}function s(n){return Ar.call(n)==er}function v(n){var r,t=[],e=function(n,r){t.push(r)};if(n&&pr[typeof n])for(r in e||(e=V),n)if(br.call(n,r)&&e(n[r],r,n)===Y)break;
}:2===t?function(t,e){return n.call(r,t,e)}:4===t?function(t,e,u,o){return n.call(r,t,e,u,o)}:function(t,e,u){return n.call(r,t,e,u)}:n}function a(n){return"\\"+sr[n]}function f(n){return Ir[n]}function c(){}function l(n,r,t){r||(r=0),typeof t=="undefined"&&(t=n?n.length:0);var e=-1;t=t-r||0;for(var u=Array(0>t?0:t);++e<t;)u[e]=n[r+e];return u}function p(n){return Tr[n]}function s(n){return Ar.call(n)==er}function v(n){var r,t=[],e=function(n,r){t.push(r)};if(n&&pr[typeof n])for(r in e||(e=V),n)if(br.call(n,r)&&e(n[r],r,n)===Y)break;
return t}function h(n){if(!n)return n;for(var r=1,t=arguments.length;r<t;r++){var e=arguments[r];if(e)for(var u in e)n[u]=e[u]}return n}function g(n){if(!n)return n;for(var r=1,t=arguments.length;r<t;r++){var e=arguments[r];if(e)for(var u in e)n[u]==H&&(n[u]=e[u])}return n}function y(n){var t=[];return r(n,function(n,r){b(n)&&t.push(r)}),t.sort()}function _(n){for(var r=-1,t=$r(n),e=t.length,u={};++r<e;){var o=t[r];u[n[o]]=o}return u}function m(n){if(!n)return G;if(Mr(n)||A(n))return!n.length;for(var r in n)if(br.call(n,r))return J;
return G}function d(n,t,e,u){if(n===t)return 0!==n||1/n==1/t;var o=typeof n,i=typeof t;if(n===n&&(!n||"function"!=o&&"object"!=o)&&(!t||"function"!=i&&"object"!=i))return J;if(n==H||t==H)return n===t;if(i=Ar.call(n),o=Ar.call(t),i!=o)return J;switch(i){case or:case ir:return+n==+t;case ar:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case cr:case lr:return n==t+""}if(o=i==ur,!o){if(n.__wrapped__||t.__wrapped__)return d(n.__wrapped__||n,t.__wrapped__||t,e,u);if(i!=fr)return J;var i=n.constructor,a=t.constructor;
if(i!=a&&(!b(i)||!(i instanceof i&&b(a)&&a instanceof a)))return J}for(e||(e=[]),u||(u=[]),i=e.length;i--;)if(e[i]==n)return u[i]==t;var f=G,c=0;if(e.push(n),u.push(t),o){if(c=t.length,f=c==n.length)for(;c--&&(f=d(n[c],t[c],e,u)););return f}return r(t,function(r,t,o){return br.call(o,t)?(c++,!(f=br.call(n,t)&&d(n[t],r,e,u))&&Y):void 0}),f&&r(n,function(n,r,t){return br.call(t,r)?!(f=-1<--c)&&Y:void 0}),f}function b(n){return typeof n=="function"}function j(n){return n?pr[typeof n]:J}function w(n){return typeof n=="number"||Ar.call(n)==ar
}function A(n){return typeof n=="string"||Ar.call(n)==lr}function x(n){for(var r=-1,t=$r(n),e=t.length,u=Array(e);++r<e;)u[r]=n[t[r]];return u}function E(n,r){var e=J;return typeof(n?n.length:0)=="number"?e=-1<z(n,r):t(n,function(n){return(e=n===r)&&Y}),e}function O(n,r,e){var u=G;if(r=i(r,e),Mr(n)){e=-1;for(var o=n.length;++e<o&&(u=!!r(n[e],e,n)););}else t(n,function(n,t,e){return!(u=!!r(n,t,e))&&Y});return u}function S(n,r,e){var u=[];if(r=i(r,e),Mr(n)){e=-1;for(var o=n.length;++e<o;){var a=n[e];
}function A(n){return typeof n=="string"||Ar.call(n)==lr}function x(n){for(var r=-1,t=$r(n),e=t.length,u=Array(e);++r<e;)u[r]=n[t[r]];return u}function E(n,r){var e=J;return typeof(n?n.length:0)=="number"?e=-1<T(n,r):t(n,function(n){return(e=n===r)&&Y}),e}function O(n,r,e){var u=G;if(r=i(r,e),Mr(n)){e=-1;for(var o=n.length;++e<o&&(u=!!r(n[e],e,n)););}else t(n,function(n,t,e){return!(u=!!r(n,t,e))&&Y});return u}function S(n,r,e){var u=[];if(r=i(r,e),Mr(n)){e=-1;for(var o=n.length;++e<o;){var a=n[e];
r(a,e,n)&&u.push(a)}}else t(n,function(n,t,e){r(n,t,e)&&u.push(n)});return u}function N(n,r,t){var e;return r=i(r,t),k(n,function(n,t,u){return r(n,t,u)?(e=n,Y):void 0}),e}function k(n,r,e){if(r&&typeof e=="undefined"&&Mr(n)){e=-1;for(var u=n.length;++e<u&&r(n[e],e,n)!==Y;);}else t(n,r,e)}function F(n,r,e){var u=-1,o=n?n.length:0,a=Array(typeof o=="number"?o:0);if(r=i(r,e),Mr(n))for(;++u<o;)a[u]=r(n[u],u,n);else t(n,function(n,t,e){a[++u]=r(n,t,e)});return a}function R(n,r,e){var u=-1/0,o=u;if(!r&&Mr(n)){e=-1;
for(var a=n.length;++e<a;){var f=n[e];f>o&&(o=f)}}else r=i(r,e),t(n,function(n,t,e){t=r(n,t,e),t>u&&(u=t,o=n)});return o}function q(n,r,e,u){var o=3>arguments.length;if(r=i(r,u,4),Mr(n)){var a=-1,f=n.length;for(o&&(e=n[++a]);++a<f;)e=r(e,n[a],a,n)}else t(n,function(n,t,u){e=o?(o=J,n):r(e,n,t,u)});return e}function B(n,r,t,e){var u=n?n.length:0,o=3>arguments.length;if(typeof u!="number")var a=$r(n),u=a.length;return r=i(r,e,4),k(n,function(e,i,f){i=a?a[--u]:--u,t=o?(o=J,n[i]):r(t,n[i],i,f)}),t}function D(n,r,e){var u;
if(r=i(r,e),Mr(n)){e=-1;for(var o=n.length;++e<o&&!(u=r(n[e],e,n)););}else t(n,function(n,t,e){return(u=r(n,t,e))&&Y});return!!u}function M(n,r,t){return t&&m(r)?H:(t?N:S)(n,r)}function $(n,r,t){if(n){var e=0,u=n.length;if(typeof r!="number"&&r!=H){var o=-1;for(r=i(r,t);++o<u&&r(n[o],o,n);)e++}else if(e=r,e==H||t)return n[0];return l(n,0,Fr(kr(0,e),u))}}function I(n,r){for(var t=-1,e=n?n.length:0,u=[];++t<e;){var o=n[t];Mr(o)?jr.apply(u,r?o:I(o)):u.push(o)}return u}function z(n,r,t){var e=-1,u=n?n.length:0;
if(typeof t=="number")e=(0>t?kr(0,u+t):t||0)-1;else if(t)return e=C(n,r),n[e]===r?e:-1;for(;++e<u;)if(n[e]===r)return e;return-1}function T(n,r,t){if(typeof r!="number"&&r!=H){var e=0,u=-1,o=n?n.length:0;for(r=i(r,t);++u<o&&r(n[u],u,n);)e++}else e=r==H||t?1:kr(0,r);return l(n,e)}function C(n,r,t,e){var u=0,o=n?n.length:u;for(t=t?i(t,e,1):V,r=t(r);u<o;)e=u+o>>>1,t(n[e])<r?u=e+1:o=e;return u}function P(n,r,t,e){var u=-1,o=n?n.length:0,a=[],f=a;for(typeof r=="function"&&(e=t,t=r,r=J),t&&(f=[],t=i(t,e));++u<o;){e=n[u];
var c=t?t(e,u,n):e;(r?!u||f[f.length-1]!==c:0>z(f,c))&&(t&&f.push(c),a.push(e))}return a}function U(n,r){return qr||xr&&2<arguments.length?xr.call.apply(xr,arguments):o(n,r,l(arguments,2))}function V(n){return n}function W(n){k(y(n),function(r){var t=e[r]=n[r];e.prototype[r]=function(){var n=[this.__wrapped__];return jr.apply(n,arguments),n=t.apply(e,n),this.__chain__&&(n=new e(n),n.__chain__=G),n}})}var G=!0,H=null,J=!1,K=typeof exports=="object"&&exports,L=typeof module=="object"&&module&&module.exports==K&&module,Q=typeof global=="object"&&global;
Q.global===Q&&(n=Q);var X=0,Y={},Z=/&(?:amp|lt|gt|quot|#39);/g,nr=/($^)/,rr=/[&<>"']/g,tr=/['\n\r\t\u2028\u2029\\]/g,er="[object Arguments]",ur="[object Array]",or="[object Boolean]",ir="[object Date]",ar="[object Number]",fr="[object Object]",cr="[object RegExp]",lr="[object String]",pr={"boolean":J,"function":G,object:G,number:J,string:J,undefined:J},sr={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},vr=[],Q={},hr=n._,gr=RegExp("^"+(Q.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),yr=Math.ceil,_r=n.clearTimeout,mr=vr.concat,dr=Math.floor,br=Q.hasOwnProperty,jr=vr.push,wr=n.setTimeout,Ar=Q.toString,xr=gr.test(xr=l.bind)&&xr,Er=gr.test(Er=Array.isArray)&&Er,Or=n.isFinite,Sr=n.isNaN,Nr=gr.test(Nr=Object.keys)&&Nr,kr=Math.max,Fr=Math.min,Rr=Math.random,Q=!!n.attachEvent,Q=xr&&!/\n|true/.test(xr+Q),qr=xr&&!Q,Br=(Br={0:1,length:1},vr.splice.call(Br,0,1),Br[0]),Dr=arguments.constructor==Object;
e.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},s(arguments)||(s=function(n){return n?br.call(n,"callee"):J});var Mr=Er||function(n){return Dr&&n instanceof Array||Ar.call(n)==ur},$r=Nr?function(n){return j(n)?Nr(n):[]}:v,Ir={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zr=_(Ir);b(/x/)&&(b=function(n){return n instanceof Function||"[object Function]"==Ar.call(n)});var Tr=F;e.after=function(n,r){return 1>n?r():function(){return 1>--n?r.apply(this,arguments):void 0
if(r=i(r,e),Mr(n)){e=-1;for(var o=n.length;++e<o&&!(u=r(n[e],e,n)););}else t(n,function(n,t,e){return(u=r(n,t,e))&&Y});return!!u}function M(n,r,t){return t&&m(r)?H:(t?N:S)(n,r)}function $(n,r,t){if(n){var e=0,u=n.length;if(typeof r!="number"&&r!=H){var o=-1;for(r=i(r,t);++o<u&&r(n[o],o,n);)e++}else if(e=r,e==H||t)return n[0];return l(n,0,Fr(kr(0,e),u))}}function I(n,r){for(var t=-1,e=n?n.length:0,u=[];++t<e;){var o=n[t];Mr(o)?jr.apply(u,r?o:I(o)):u.push(o)}return u}function T(n,r,t){var e=-1,u=n?n.length:0;
if(typeof t=="number")e=(0>t?kr(0,u+t):t||0)-1;else if(t)return e=C(n,r),n[e]===r?e:-1;for(;++e<u;)if(n[e]===r)return e;return-1}function z(n,r,t){if(typeof r!="number"&&r!=H){var e=0,u=-1,o=n?n.length:0;for(r=i(r,t);++u<o&&r(n[u],u,n);)e++}else e=r==H||t?1:kr(0,r);return l(n,e)}function C(n,r,t,e){var u=0,o=n?n.length:u;for(t=t?i(t,e,1):V,r=t(r);u<o;)e=u+o>>>1,t(n[e])<r?u=e+1:o=e;return u}function P(n,r,t,e){var u=-1,o=n?n.length:0,a=[],f=a;for(typeof r=="function"&&(e=t,t=r,r=J),t&&(f=[],t=i(t,e));++u<o;){e=n[u];
var c=t?t(e,u,n):e;(r?!u||f[f.length-1]!==c:0>T(f,c))&&(t&&f.push(c),a.push(e))}return a}function U(n,r){return qr||xr&&2<arguments.length?xr.call.apply(xr,arguments):o(n,r,l(arguments,2))}function V(n){return n}function W(n){k(y(n),function(r){var t=e[r]=n[r];e.prototype[r]=function(){var n=[this.__wrapped__];return jr.apply(n,arguments),n=t.apply(e,n),this.__chain__&&(n=new e(n),n.__chain__=G),n}})}var G=!0,H=null,J=!1,K=typeof exports=="object"&&exports,L=typeof module=="object"&&module&&module.exports==K&&module,Q=typeof global=="object"&&global;
Q.global===Q&&(n=Q);var X=0,Y={},Z=/&(?:amp|lt|gt|quot|#39);/g,nr=/($^)/,rr=/[&<>"']/g,tr=/['\n\r\t\u2028\u2029\\]/g,er="[object Arguments]",ur="[object Array]",or="[object Boolean]",ir="[object Date]",ar="[object Number]",fr="[object Object]",cr="[object RegExp]",lr="[object String]",pr={"boolean":J,"function":G,object:G,number:J,string:J,undefined:J},sr={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},vr=[],Q={},hr=n._,gr=RegExp("^"+(Q.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),yr=Math.ceil,_r=n.clearTimeout,mr=vr.concat,dr=Math.floor,br=Q.hasOwnProperty,jr=vr.push,wr=n.setTimeout,Ar=Q.toString,xr=gr.test(xr=l.bind)&&xr,Er=gr.test(Er=Array.isArray)&&Er,Or=n.isFinite,Sr=n.isNaN,Nr=gr.test(Nr=Object.keys)&&Nr,kr=Math.max,Fr=Math.min,Rr=Math.random,Q=gr.test(n.attachEvent),Q=xr&&!/\n|true/.test(xr+Q),qr=xr&&!Q,Br=(Br={0:1,length:1},vr.splice.call(Br,0,1),Br[0]),Dr=arguments.constructor==Object;
e.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},s(arguments)||(s=function(n){return n?br.call(n,"callee"):J});var Mr=Er||function(n){return Dr&&n instanceof Array||Ar.call(n)==ur},$r=Nr?function(n){return j(n)?Nr(n):[]}:v,Ir={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Tr=_(Ir);b(/x/)&&(b=function(n){return n instanceof Function||"[object Function]"==Ar.call(n)});var zr=F;e.after=function(n,r){return 1>n?r():function(){return 1>--n?r.apply(this,arguments):void 0
}},e.bind=U,e.bindAll=function(n){for(var r=mr.apply(vr,arguments),t=1<r.length?0:(r=y(n),-1),e=r.length;++t<e;){var u=r[t];n[u]=U(n[u],n)}return n},e.compact=function(n){for(var r=-1,t=n?n.length:0,e=[];++r<t;){var u=n[r];u&&e.push(u)}return e},e.compose=function(){var n=arguments;return function(){for(var r=arguments,t=n.length;t--;)r=[n[t].apply(this,r)];return r[0]}},e.countBy=function(n,r,t){var e={};return r=i(r,t),k(n,function(n,t,u){t=r(n,t,u)+"",br.call(e,t)?e[t]++:e[t]=1}),e},e.debounce=function(n,r,t){function e(){a=H,t||(o=n.apply(i,u))
}var u,o,i,a;return function(){var f=t&&!a;return u=arguments,i=this,_r(a),a=wr(e,r),f&&(o=n.apply(i,u)),o}},e.defaults=g,e.defer=function(n){var r=l(arguments,1);return wr(function(){n.apply(void 0,r)},1)},e.delay=function(n,r){var t=l(arguments,2);return wr(function(){n.apply(void 0,t)},r)},e.difference=function(n){for(var r=-1,t=n.length,e=mr.apply(vr,arguments),u=[];++r<t;){var o=n[r];0>z(e,o,t)&&u.push(o)}return u},e.filter=S,e.flatten=I,e.forEach=k,e.functions=y,e.groupBy=function(n,r,t){var e={};
return r=i(r,t),k(n,function(n,t,u){t=r(n,t,u)+"",(br.call(e,t)?e[t]:e[t]=[]).push(n)}),e},e.initial=function(n,r,t){if(!n)return[];var e=0,u=n.length;if(typeof r!="number"&&r!=H){var o=u;for(r=i(r,t);o--&&r(n[o],o,n);)e++}else e=r==H||t?1:r||e;return l(n,0,Fr(kr(0,u-e),u))},e.intersection=function(n){var r=arguments,t=r.length,e=-1,u=n?n.length:0,o=[];n:for(;++e<u;){var i=n[e];if(0>z(o,i)){for(var a=t;--a;)if(0>z(r[a],i))continue n;o.push(i)}}return o},e.invert=_,e.invoke=function(n,r){var t=l(arguments,2),e=-1,u=typeof r=="function",o=n?n.length:0,i=Array(typeof o=="number"?o:0);
}var u,o,i,a;return function(){var f=t&&!a;return u=arguments,i=this,_r(a),a=wr(e,r),f&&(o=n.apply(i,u)),o}},e.defaults=g,e.defer=function(n){var r=l(arguments,1);return wr(function(){n.apply(void 0,r)},1)},e.delay=function(n,r){var t=l(arguments,2);return wr(function(){n.apply(void 0,t)},r)},e.difference=function(n){for(var r=-1,t=n.length,e=mr.apply(vr,arguments),u=[];++r<t;){var o=n[r];0>T(e,o,t)&&u.push(o)}return u},e.filter=S,e.flatten=I,e.forEach=k,e.functions=y,e.groupBy=function(n,r,t){var e={};
return r=i(r,t),k(n,function(n,t,u){t=r(n,t,u)+"",(br.call(e,t)?e[t]:e[t]=[]).push(n)}),e},e.initial=function(n,r,t){if(!n)return[];var e=0,u=n.length;if(typeof r!="number"&&r!=H){var o=u;for(r=i(r,t);o--&&r(n[o],o,n);)e++}else e=r==H||t?1:r||e;return l(n,0,Fr(kr(0,u-e),u))},e.intersection=function(n){var r=arguments,t=r.length,e=-1,u=n?n.length:0,o=[];n:for(;++e<u;){var i=n[e];if(0>T(o,i)){for(var a=t;--a;)if(0>T(r[a],i))continue n;o.push(i)}}return o},e.invert=_,e.invoke=function(n,r){var t=l(arguments,2),e=-1,u=typeof r=="function",o=n?n.length:0,i=Array(typeof o=="number"?o:0);
return k(n,function(n){i[++e]=(u?r:n[r]).apply(n,t)}),i},e.keys=$r,e.map=F,e.max=R,e.memoize=function(n,r){var t={};return function(){var e=(r?r.apply(this,arguments):arguments[0])+"";return br.call(t,e)?t[e]:t[e]=n.apply(this,arguments)}},e.min=function(n,r,e){var u=1/0,o=u;if(!r&&Mr(n)){e=-1;for(var a=n.length;++e<a;){var f=n[e];f<o&&(o=f)}}else r=i(r,e),t(n,function(n,t,e){t=r(n,t,e),t<u&&(u=t,o=n)});return o},e.object=function(n,r){for(var t=-1,e=n?n.length:0,u={};++t<e;){var o=n[t];r?u[o]=r[t]:u[o[0]]=o[1]
}return u},e.omit=function(n){var t=mr.apply(vr,arguments),e={};return r(n,function(n,r){0>z(t,r,1)&&(e[r]=n)}),e},e.once=function(n){var r,t;return function(){return r?t:(r=G,t=n.apply(this,arguments),n=H,t)}},e.pairs=function(n){for(var r=-1,t=$r(n),e=t.length,u=Array(e);++r<e;){var o=t[r];u[r]=[o,n[o]]}return u},e.partial=function(n){return o(n,l(arguments,1))},e.pick=function(n){for(var r=0,t=mr.apply(vr,arguments),e=t.length,u={};++r<e;){var o=t[r];o in n&&(u[o]=n[o])}return u},e.pluck=Tr,e.range=function(n,r,t){n=+n||0,t=+t||1,r==H&&(r=n,n=0);
var e=-1;r=kr(0,yr((r-n)/t));for(var u=Array(r);++e<r;)u[e]=n,n+=t;return u},e.reject=function(n,r,t){return r=i(r,t),S(n,function(n,t,e){return!r(n,t,e)})},e.rest=T,e.shuffle=function(n){var r=-1,t=n?n.length:0,e=Array(typeof t=="number"?t:0);return k(n,function(n){var t=dr(Rr()*(++r+1));e[r]=e[t],e[t]=n}),e},e.sortBy=function(n,r,t){var e=-1,o=n?n.length:0,a=Array(typeof o=="number"?o:0);for(r=i(r,t),k(n,function(n,t,u){a[++e]={a:r(n,t,u),b:e,c:n}}),o=a.length,a.sort(u);o--;)a[o]=a[o].c;return a
}return u},e.omit=function(n){var t=mr.apply(vr,arguments),e={};return r(n,function(n,r){0>T(t,r,1)&&(e[r]=n)}),e},e.once=function(n){var r,t;return function(){return r?t:(r=G,t=n.apply(this,arguments),n=H,t)}},e.pairs=function(n){for(var r=-1,t=$r(n),e=t.length,u=Array(e);++r<e;){var o=t[r];u[r]=[o,n[o]]}return u},e.partial=function(n){return o(n,l(arguments,1))},e.pick=function(n){for(var r=0,t=mr.apply(vr,arguments),e=t.length,u={};++r<e;){var o=t[r];o in n&&(u[o]=n[o])}return u},e.pluck=zr,e.range=function(n,r,t){n=+n||0,t=+t||1,r==H&&(r=n,n=0);
var e=-1;r=kr(0,yr((r-n)/t));for(var u=Array(r);++e<r;)u[e]=n,n+=t;return u},e.reject=function(n,r,t){return r=i(r,t),S(n,function(n,t,e){return!r(n,t,e)})},e.rest=z,e.shuffle=function(n){var r=-1,t=n?n.length:0,e=Array(typeof t=="number"?t:0);return k(n,function(n){var t=dr(Rr()*(++r+1));e[r]=e[t],e[t]=n}),e},e.sortBy=function(n,r,t){var e=-1,o=n?n.length:0,a=Array(typeof o=="number"?o:0);for(r=i(r,t),k(n,function(n,t,u){a[++e]={a:r(n,t,u),b:e,c:n}}),o=a.length,a.sort(u);o--;)a[o]=a[o].c;return a
},e.tap=function(n,r){return r(n),n},e.throttle=function(n,r){function t(){a=new Date,i=H,u=n.apply(o,e)}var e,u,o,i,a=0;return function(){var f=new Date,c=r-(f-a);return e=arguments,o=this,0<c?i||(i=wr(t,c)):(_r(i),i=H,a=f,u=n.apply(o,e)),u}},e.times=function(n,r,t){n=+n||0;for(var e=-1,u=Array(n);++e<n;)u[e]=r.call(t,e);return u},e.toArray=function(n){return n&&typeof n.length=="number"?l(n):x(n)},e.union=function(){return P(mr.apply(vr,arguments))},e.uniq=P,e.values=x,e.where=M,e.without=function(n){for(var r=-1,t=n.length,e=[];++r<t;){var u=n[r];
0>z(arguments,u,1)&&e.push(u)}return e},e.wrap=function(n,r){return function(){var t=[n];return jr.apply(t,arguments),r.apply(this,t)}},e.zip=function(n){for(var r=-1,t=n?R(Tr(arguments,"length")):0,e=Array(t);++r<t;)e[r]=Tr(arguments,r);return e},e.collect=F,e.drop=T,e.each=k,e.extend=h,e.methods=y,e.select=S,e.tail=T,e.unique=P,e.clone=function(n){return j(n)?Mr(n)?l(n):h({},n):n},e.contains=E,e.escape=function(n){return n==H?"":(n+"").replace(rr,f)},e.every=O,e.find=N,e.findWhere=function(n,r){return M(n,r,G)
},e.has=function(n,r){return n?br.call(n,r):J},e.identity=V,e.indexOf=z,e.isArguments=s,e.isArray=Mr,e.isBoolean=function(n){return n===G||n===J||Ar.call(n)==or},e.isDate=function(n){return n instanceof Date||Ar.call(n)==ir},e.isElement=function(n){return n?1===n.nodeType:J},e.isEmpty=m,e.isEqual=d,e.isFinite=function(n){return Or(n)&&!Sr(parseFloat(n))},e.isFunction=b,e.isNaN=function(n){return w(n)&&n!=+n},e.isNull=function(n){return n===H},e.isNumber=w,e.isObject=j,e.isRegExp=function(n){return n instanceof RegExp||Ar.call(n)==cr
0>T(arguments,u,1)&&e.push(u)}return e},e.wrap=function(n,r){return function(){var t=[n];return jr.apply(t,arguments),r.apply(this,t)}},e.zip=function(n){for(var r=-1,t=n?R(zr(arguments,"length")):0,e=Array(t);++r<t;)e[r]=zr(arguments,r);return e},e.collect=F,e.drop=z,e.each=k,e.extend=h,e.methods=y,e.select=S,e.tail=z,e.unique=P,e.clone=function(n){return j(n)?Mr(n)?l(n):h({},n):n},e.contains=E,e.escape=function(n){return n==H?"":(n+"").replace(rr,f)},e.every=O,e.find=N,e.findWhere=function(n,r){return M(n,r,G)
},e.has=function(n,r){return n?br.call(n,r):J},e.identity=V,e.indexOf=T,e.isArguments=s,e.isArray=Mr,e.isBoolean=function(n){return n===G||n===J||Ar.call(n)==or},e.isDate=function(n){return n instanceof Date||Ar.call(n)==ir},e.isElement=function(n){return n?1===n.nodeType:J},e.isEmpty=m,e.isEqual=d,e.isFinite=function(n){return Or(n)&&!Sr(parseFloat(n))},e.isFunction=b,e.isNaN=function(n){return w(n)&&n!=+n},e.isNull=function(n){return n===H},e.isNumber=w,e.isObject=j,e.isRegExp=function(n){return n instanceof RegExp||Ar.call(n)==cr
},e.isString=A,e.isUndefined=function(n){return typeof n=="undefined"},e.lastIndexOf=function(n,r,t){var e=n?n.length:0;for(typeof t=="number"&&(e=(0>t?kr(0,e+t):Fr(t,e-1))+1);e--;)if(n[e]===r)return e;return-1},e.mixin=W,e.noConflict=function(){return n._=hr,this},e.random=function(n,r){return n==H&&r==H&&(r=1),n=+n||0,r==H&&(r=n,n=0),n+dr(Rr()*((+r||0)-n+1))},e.reduce=q,e.reduceRight=B,e.result=function(n,r){var t=n?n[r]:H;return b(t)?n[r]():t},e.size=function(n){var r=n?n.length:0;return typeof r=="number"?r:$r(n).length
},e.some=D,e.sortedIndex=C,e.template=function(n,r,t){n||(n=""),t=g({},t,e.templateSettings);var u=0,o="__p+='",i=t.variable;n.replace(RegExp((t.escape||nr).source+"|"+(t.interpolate||nr).source+"|"+(t.evaluate||nr).source+"|$","g"),function(r,t,e,i,f){return o+=n.slice(u,f).replace(tr,a),t&&(o+="'+_['escape']("+t+")+'"),i&&(o+="';"+i+";__p+='"),e&&(o+="'+((__t=("+e+"))==null?'':__t)+'"),u=f+r.length,r}),o+="';\n",i||(i="obj",o="with("+i+"||{}){"+o+"}"),o="function("+i+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+o+"return __p}";
try{var f=Function("_","return "+o)(e)}catch(c){throw c.source=o,c}return r?f(r):(f.source=o,f)},e.unescape=function(n){return n==H?"":(n+"").replace(Z,p)},e.uniqueId=function(n){var r=++X+"";return n?n+r:r},e.all=O,e.any=D,e.detect=N,e.foldl=q,e.foldr=B,e.include=E,e.inject=q,e.first=$,e.last=function(n,r,t){if(n){var e=0,u=n.length;if(typeof r!="number"&&r!=H){var o=u;for(r=i(r,t);o--&&r(n[o],o,n);)e++}else if(e=r,e==H||t)return n[u-1];return l(n,kr(0,u-e))}},e.take=$,e.head=$,e.chain=function(n){return n=new e(n),n.__chain__=G,n
},e.VERSION="1.0.1",W(e),e.prototype.chain=function(){return this.__chain__=G,this},e.prototype.value=function(){return this.__wrapped__},t("pop push reverse shift sort splice unshift".split(" "),function(n){var r=vr[n];e.prototype[n]=function(){var n=this.__wrapped__;return r.apply(n,arguments),Br&&0===n.length&&delete n[0],this}}),t(["concat","join","slice"],function(n){var r=vr[n];e.prototype[n]=function(){var n=r.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new e(n),n.__chain__=G),n
}}),K?L?(L.exports=e)._=e:K._=e:n._=e})(this);
}}),K&&!K.nodeType?L?(L.exports=e)._=e:K._=e:n._=e})(this);

View File

@@ -199,7 +199,7 @@
<!-- div -->
### <a id="_compactarray"></a>`_.compact(array)`
<a href="#_compactarray">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3236 "View in source") [&#x24C9;][1]
<a href="#_compactarray">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3230 "View in source") [&#x24C9;][1]
Creates an array with all falsey values of `array` removed. The values `false`, `null`, `0`, `""`, `undefined` and `NaN` are all falsey.
@@ -223,7 +223,7 @@ _.compact([0, 1, false, 2, '', 3]);
<!-- div -->
### <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#L3266 "View in source") [&#x24C9;][1]
<a href="#_differencearray--array1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3260 "View in source") [&#x24C9;][1]
Creates an array of `array` elements not present in the other arrays using strict equality for comparisons, i.e. `===`.
@@ -248,7 +248,7 @@ _.difference([1, 2, 3, 4, 5], [5, 2, 10]);
<!-- div -->
### <a id="_firstarray--callbackn-thisarg"></a>`_.first(array [, callback|n, thisArg])`
<a href="#_firstarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3339 "View in source") [&#x24C9;][1]
<a href="#_firstarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3333 "View in source") [&#x24C9;][1]
Gets the first element of the `array`. If a number `n` is passed, the first `n` elements of the `array` are returned. If a `callback` function is passed, elements at the beginning of the array are returned as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -308,7 +308,7 @@ _.first(food, { 'type': 'fruit' });
<!-- div -->
### <a id="_flattenarray-shallow"></a>`_.flatten(array, shallow)`
<a href="#_flattenarray-shallow">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3378 "View in source") [&#x24C9;][1]
<a href="#_flattenarray-shallow">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3372 "View in source") [&#x24C9;][1]
Flattens a nested array *(the nesting can be to any depth)*. If `shallow` is truthy, `array` will only be flattened a single level.
@@ -336,7 +336,7 @@ _.flatten([1, [2], [3, [[4]]]], true);
<!-- div -->
### <a id="_indexofarray-value--fromindex0"></a>`_.indexOf(array, value [, fromIndex=0])`
<a href="#_indexofarray-value--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3420 "View in source") [&#x24C9;][1]
<a href="#_indexofarray-value--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3414 "View in source") [&#x24C9;][1]
Gets the index at which the first occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If the `array` is already sorted, passing `true` for `fromIndex` will run a faster binary search.
@@ -368,7 +368,7 @@ _.indexOf([1, 1, 2, 2, 3, 3], 2, true);
<!-- div -->
### <a id="_initialarray--callbackn1-thisarg"></a>`_.initial(array [, callback|n=1, thisArg])`
<a href="#_initialarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3494 "View in source") [&#x24C9;][1]
<a href="#_initialarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3488 "View in source") [&#x24C9;][1]
Gets all but the last element of `array`. If a number `n` is passed, the last `n` elements are excluded from the result. If a `callback` function is passed, elements at the end 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)*.
@@ -425,7 +425,7 @@ _.initial(food, { 'type': 'vegetable' });
<!-- div -->
### <a id="_intersectionarray1-array2-"></a>`_.intersection([array1, array2, ...])`
<a href="#_intersectionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3528 "View in source") [&#x24C9;][1]
<a href="#_intersectionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3522 "View in source") [&#x24C9;][1]
Computes the intersection of all the passed-in arrays using strict equality for comparisons, i.e. `===`.
@@ -449,7 +449,7 @@ _.intersection([1, 2, 3], [101, 2, 1, 10], [2, 1]);
<!-- div -->
### <a id="_lastarray--callbackn-thisarg"></a>`_.last(array [, callback|n, thisArg])`
<a href="#_lastarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3620 "View in source") [&#x24C9;][1]
<a href="#_lastarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3614 "View in source") [&#x24C9;][1]
Gets the last element of the `array`. If a number `n` is passed, the last `n` elements of the `array` are returned. If a `callback` function is passed, elements at the end of the array are returned as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments;(value, index, array).
@@ -506,7 +506,7 @@ _.last(food, { 'type': 'vegetable' });
<!-- div -->
### <a id="_lastindexofarray-value--fromindexarraylength-1"></a>`_.lastIndexOf(array, value [, fromIndex=array.length-1])`
<a href="#_lastindexofarray-value--fromindexarraylength-1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3661 "View in source") [&#x24C9;][1]
<a href="#_lastindexofarray-value--fromindexarraylength-1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3655 "View in source") [&#x24C9;][1]
Gets the index at which the last occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection.
@@ -535,7 +535,7 @@ _.lastIndexOf([1, 2, 3, 1, 2, 3], 2, 3);
<!-- div -->
### <a id="_objectkeys--values"></a>`_.object(keys [, values=[]])`
<a href="#_objectkeys--values">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3691 "View in source") [&#x24C9;][1]
<a href="#_objectkeys--values">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3685 "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`.
@@ -560,7 +560,7 @@ _.object(['moe', 'larry'], [30, 40]);
<!-- 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#L3735 "View in source") [&#x24C9;][1]
<a href="#_rangestart0-end--step1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3729 "View in source") [&#x24C9;][1]
Creates an array of numbers *(positive and/or negative)* progressing from `start` up to but not including `end`.
@@ -598,7 +598,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#L3814 "View in source") [&#x24C9;][1]
<a href="#_restarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3808 "View in source") [&#x24C9;][1]
The opposite of `_.initial`, this method gets all but the first value of `array`. If a number `n` is passed, the first `n` values are excluded from the result. If a `callback` function is passed, 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)*.
@@ -658,7 +658,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#L3878 "View in source") [&#x24C9;][1]
<a href="#_sortedindexarray-value--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3872 "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 passed, 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)*.
@@ -707,7 +707,7 @@ _.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#L3910 "View in source") [&#x24C9;][1]
<a href="#_unionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3904 "View in source") [&#x24C9;][1]
Computes the union of the passed-in arrays using strict equality for comparisons, i.e. `===`.
@@ -731,7 +731,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#L3957 "View in source") [&#x24C9;][1]
<a href="#_uniqarray--issortedfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3951 "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 passed, each element of `array` is passed through a callback` before uniqueness is computed. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -778,7 +778,7 @@ _.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#L4016 "View in source") [&#x24C9;][1]
<a href="#_withoutarray--value1-value2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4010 "View in source") [&#x24C9;][1]
Creates an array with all occurrences of the passed values removed using strict equality for comparisons, i.e. `===`.
@@ -803,7 +803,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#L4047 "View in source") [&#x24C9;][1]
<a href="#_ziparray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4041 "View in source") [&#x24C9;][1]
Groups the elements of each array at their corresponding indexes. Useful for separate data sources that are coordinated through matching array indexes. For a matrix of nested arrays, `_.zip.apply(...)` can transpose the matrix in a similar fashion.
@@ -834,7 +834,7 @@ _.zip(['moe', 'larry'], [30, 40], [true, false]);
<!-- div -->
### <a id="_value"></a>`_(value)`
<a href="#_value">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L309 "View in source") [&#x24C9;][1]
<a href="#_value">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L316 "View in source") [&#x24C9;][1]
Creates a `lodash` object, that wraps the given `value`, to enable method chaining.
@@ -865,7 +865,7 @@ The wrapper functions `first` and `last` return wrapped values when `n` is passe
<!-- div -->
### <a id="_tapvalue-interceptor"></a>`_.tap(value, interceptor)`
<a href="#_tapvalue-interceptor">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4946 "View in source") [&#x24C9;][1]
<a href="#_tapvalue-interceptor">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4939 "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.
@@ -895,7 +895,7 @@ _([1, 2, 3, 4])
<!-- div -->
### <a id="_prototypetostring"></a>`_.prototype.toString()`
<a href="#_prototypetostring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4963 "View in source") [&#x24C9;][1]
<a href="#_prototypetostring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4956 "View in source") [&#x24C9;][1]
Produces the `toString` result of the wrapped value.
@@ -916,7 +916,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#L4980 "View in source") [&#x24C9;][1]
<a href="#_prototypevalueof">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4973 "View in source") [&#x24C9;][1]
Extracts the wrapped value.
@@ -947,7 +947,7 @@ _([1, 2, 3]).valueOf();
<!-- div -->
### <a id="_atcollection--index1-index2-"></a>`_.at(collection [, index1, index2, ...])`
<a href="#_atcollection--index1-index2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2237 "View in source") [&#x24C9;][1]
<a href="#_atcollection--index1-index2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2231 "View in source") [&#x24C9;][1]
Creates an array of elements from the specified indexes, or keys, of the `collection`. Indexes may be specified as individual arguments or as arrays of indexes.
@@ -975,7 +975,7 @@ _.at(['moe', 'larry', 'curly'], 0, 2);
<!-- div -->
### <a id="_containscollection-target--fromindex0"></a>`_.contains(collection, target [, fromIndex=0])`
<a href="#_containscollection-target--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2279 "View in source") [&#x24C9;][1]
<a href="#_containscollection-target--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2273 "View in source") [&#x24C9;][1]
Checks if a given `target` element is present in a `collection` using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection.
@@ -1013,7 +1013,7 @@ _.contains('curly', 'ur');
<!-- div -->
### <a id="_countbycollection--callbackidentity-thisarg"></a>`_.countBy(collection [, callback=identity, thisArg])`
<a href="#_countbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2333 "View in source") [&#x24C9;][1]
<a href="#_countbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2327 "View in source") [&#x24C9;][1]
Creates an object composed of keys returned from running each element of the `collection` through the given `callback`. The corresponding value of each key is the number of times the key was returned by the `callback`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1049,7 +1049,7 @@ _.countBy(['one', 'two', 'three'], 'length');
<!-- div -->
### <a id="_everycollection--callbackidentity-thisarg"></a>`_.every(collection [, callback=identity, thisArg])`
<a href="#_everycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2385 "View in source") [&#x24C9;][1]
<a href="#_everycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2379 "View in source") [&#x24C9;][1]
Checks if the `callback` returns a truthy value for **all** elements of a `collection`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1095,7 +1095,7 @@ _.every(stooges, { 'age': 50 });
<!-- div -->
### <a id="_filtercollection--callbackidentity-thisarg"></a>`_.filter(collection [, callback=identity, thisArg])`
<a href="#_filtercollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2446 "View in source") [&#x24C9;][1]
<a href="#_filtercollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2440 "View in source") [&#x24C9;][1]
Examines each element in a `collection`, returning an array of all elements the `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1141,7 +1141,7 @@ _.filter(food, { 'type': 'fruit' });
<!-- div -->
### <a id="_findcollection--callbackidentity-thisarg"></a>`_.find(collection [, callback=identity, thisArg])`
<a href="#_findcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2513 "View in source") [&#x24C9;][1]
<a href="#_findcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2507 "View in source") [&#x24C9;][1]
Examines each element in a `collection`, returning the first that the `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1189,7 +1189,7 @@ var healthy = _.find(food, 'organic');
<!-- div -->
### <a id="_foreachcollection--callbackidentity-thisarg"></a>`_.forEach(collection [, callback=identity, thisArg])`
<a href="#_foreachcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2548 "View in source") [&#x24C9;][1]
<a href="#_foreachcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2542 "View in source") [&#x24C9;][1]
Iterates over a `collection`, executing the `callback` for each element in the `collection`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -1221,7 +1221,7 @@ _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, alert);
<!-- div -->
### <a id="_groupbycollection--callbackidentity-thisarg"></a>`_.groupBy(collection [, callback=identity, thisArg])`
<a href="#_groupbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2598 "View in source") [&#x24C9;][1]
<a href="#_groupbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2592 "View in source") [&#x24C9;][1]
Creates an object composed of keys returned from running each element of the `collection` through the `callback`. The corresponding value of each key is an array of elements passed to `callback` that returned the key. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1258,7 +1258,7 @@ _.groupBy(['one', 'two', 'three'], 'length');
<!-- div -->
### <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#L2631 "View in source") [&#x24C9;][1]
<a href="#_invokecollection-methodname--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2625 "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`.
@@ -1287,7 +1287,7 @@ _.invoke([123, 456], String.prototype.split, '');
<!-- div -->
### <a id="_mapcollection--callbackidentity-thisarg"></a>`_.map(collection [, callback=identity, thisArg])`
<a href="#_mapcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2683 "View in source") [&#x24C9;][1]
<a href="#_mapcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2677 "View in source") [&#x24C9;][1]
Creates an array of values by running each element in the `collection` through the `callback`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1332,7 +1332,7 @@ _.map(stooges, 'name');
<!-- div -->
### <a id="_maxcollection--callbackidentity-thisarg"></a>`_.max(collection [, callback=identity, thisArg])`
<a href="#_maxcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2740 "View in source") [&#x24C9;][1]
<a href="#_maxcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2734 "View in source") [&#x24C9;][1]
Retrieves the maximum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
@@ -1374,7 +1374,7 @@ _.max(stooges, 'age');
<!-- div -->
### <a id="_mincollection--callbackidentity-thisarg"></a>`_.min(collection [, callback=identity, thisArg])`
<a href="#_mincollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2809 "View in source") [&#x24C9;][1]
<a href="#_mincollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2803 "View in source") [&#x24C9;][1]
Retrieves the minimum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
@@ -1416,7 +1416,7 @@ _.min(stooges, 'age');
<!-- div -->
### <a id="_pluckcollection-property"></a>`_.pluck(collection, property)`
<a href="#_pluckcollection-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2859 "View in source") [&#x24C9;][1]
<a href="#_pluckcollection-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2853 "View in source") [&#x24C9;][1]
Retrieves the value of a specified property from all elements in the `collection`.
@@ -1446,7 +1446,7 @@ _.pluck(stooges, 'name');
<!-- div -->
### <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#L2891 "View in source") [&#x24C9;][1]
<a href="#_reducecollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2885 "View in source") [&#x24C9;][1]
Reduces a `collection` to a value that 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)*.
@@ -1484,7 +1484,7 @@ var mapped = _.reduce({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key) {
<!-- div -->
### <a id="_reducerightcollection--callbackidentity-accumulator-thisarg"></a>`_.reduceRight(collection [, callback=identity, accumulator, thisArg])`
<a href="#_reducerightcollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2934 "View in source") [&#x24C9;][1]
<a href="#_reducerightcollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2928 "View in source") [&#x24C9;][1]
This method is similar to `_.reduce`, except that it iterates over a `collection` from right to left.
@@ -1515,7 +1515,7 @@ var flat = _.reduceRight(list, function(a, b) { return a.concat(b); }, []);
<!-- div -->
### <a id="_rejectcollection--callbackidentity-thisarg"></a>`_.reject(collection [, callback=identity, thisArg])`
<a href="#_rejectcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2994 "View in source") [&#x24C9;][1]
<a href="#_rejectcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2988 "View in source") [&#x24C9;][1]
The opposite of `_.filter`, this method returns the elements of a `collection` that `callback` does **not** return truthy for.
@@ -1558,7 +1558,7 @@ _.reject(food, { 'type': 'fruit' });
<!-- div -->
### <a id="_shufflecollection"></a>`_.shuffle(collection)`
<a href="#_shufflecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3015 "View in source") [&#x24C9;][1]
<a href="#_shufflecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3009 "View in source") [&#x24C9;][1]
Creates an array of shuffled `array` values, using a version of the Fisher-Yates shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle.
@@ -1582,7 +1582,7 @@ _.shuffle([1, 2, 3, 4, 5, 6]);
<!-- div -->
### <a id="_sizecollection"></a>`_.size(collection)`
<a href="#_sizecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3048 "View in source") [&#x24C9;][1]
<a href="#_sizecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3042 "View in source") [&#x24C9;][1]
Gets the size of the `collection` by returning `collection.length` for arrays and array-like objects or the number of own enumerable properties for objects.
@@ -1612,7 +1612,7 @@ _.size('curly');
<!-- div -->
### <a id="_somecollection--callbackidentity-thisarg"></a>`_.some(collection [, callback=identity, thisArg])`
<a href="#_somecollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3095 "View in source") [&#x24C9;][1]
<a href="#_somecollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3089 "View in source") [&#x24C9;][1]
Checks if the `callback` returns a truthy value for **any** element of a `collection`. The function returns as soon as it finds passing value, and does not iterate over the entire `collection`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1658,7 +1658,7 @@ _.some(food, { 'type': 'meat' });
<!-- div -->
### <a id="_sortbycollection--callbackidentity-thisarg"></a>`_.sortBy(collection [, callback=identity, thisArg])`
<a href="#_sortbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3151 "View in source") [&#x24C9;][1]
<a href="#_sortbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3145 "View in source") [&#x24C9;][1]
Creates an array of elements, sorted in ascending order by the results of running each element in the `collection` through the `callback`. This method performs a stable sort, that is, it will preserve the original sort order of equal elements. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1695,7 +1695,7 @@ _.sortBy(['banana', 'strawberry', 'apple'], 'length');
<!-- div -->
### <a id="_toarraycollection"></a>`_.toArray(collection)`
<a href="#_toarraycollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3186 "View in source") [&#x24C9;][1]
<a href="#_toarraycollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3180 "View in source") [&#x24C9;][1]
Converts the `collection` to an array.
@@ -1719,7 +1719,7 @@ Converts the `collection` to an array.
<!-- div -->
### <a id="_wherecollection-properties"></a>`_.where(collection, properties)`
<a href="#_wherecollection-properties">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3218 "View in source") [&#x24C9;][1]
<a href="#_wherecollection-properties">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3212 "View in source") [&#x24C9;][1]
Examines each element in a `collection`, returning an array of all elements that have the given `properties`. When checking `properties`, this method performs a deep comparison between values to determine if they are equivalent to each other.
@@ -1756,7 +1756,7 @@ _.where(stooges, { 'age': 40 });
<!-- div -->
### <a id="_aftern-func"></a>`_.after(n, func)`
<a href="#_aftern-func">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4080 "View in source") [&#x24C9;][1]
<a href="#_aftern-func">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4074 "View in source") [&#x24C9;][1]
Creates a function that is restricted to executing `func` only after it is called `n` times. The `func` is executed with the `this` binding of the created function.
@@ -1784,7 +1784,7 @@ _.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#L4113 "View in source") [&#x24C9;][1]
<a href="#_bindfunc--thisarg-arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4107 "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.
@@ -1815,7 +1815,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#L4144 "View in source") [&#x24C9;][1]
<a href="#_bindallobject--methodname1-methodname2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4138 "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.
@@ -1846,7 +1846,7 @@ 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#L4190 "View in source") [&#x24C9;][1]
<a href="#_bindkeyobject-key--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4184 "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.
@@ -1887,7 +1887,7 @@ 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#L4213 "View in source") [&#x24C9;][1]
<a href="#_composefunc1-func2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4207 "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.
@@ -1914,7 +1914,7 @@ welcome('moe');
<!-- div -->
### <a id="_debouncefunc-wait-immediate"></a>`_.debounce(func, wait, immediate)`
<a href="#_debouncefunc-wait-immediate">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4246 "View in source") [&#x24C9;][1]
<a href="#_debouncefunc-wait-immediate">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4240 "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 `true` for `immediate` to cause debounce to invoke `func` on the leading, instead of the trailing, edge of the `wait` timeout. Subsequent calls to the debounced function will return the result of the last `func` call.
@@ -1940,7 +1940,7 @@ jQuery(window).on('resize', lazyLayout);
<!-- 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#L4310 "View in source") [&#x24C9;][1]
<a href="#_deferfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4304 "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.
@@ -1965,7 +1965,7 @@ _.defer(function() { alert('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#L4290 "View in source") [&#x24C9;][1]
<a href="#_delayfunc-wait--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4284 "View in source") [&#x24C9;][1]
Executes the `func` function after `wait` milliseconds. Additional arguments will be passed to `func` when it is invoked.
@@ -1992,7 +1992,7 @@ _.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#L4338 "View in source") [&#x24C9;][1]
<a href="#_memoizefunc--resolver">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4332 "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.
@@ -2018,7 +2018,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#L4365 "View in source") [&#x24C9;][1]
<a href="#_oncefunc">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4359 "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.
@@ -2044,7 +2044,7 @@ 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#L4400 "View in source") [&#x24C9;][1]
<a href="#_partialfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4394 "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.
@@ -2071,7 +2071,7 @@ 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#L4431 "View in source") [&#x24C9;][1]
<a href="#_partialrightfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4425 "View in source") [&#x24C9;][1]
This method is similar to `_.partial`, except that `partial` arguments are appended to those passed to the new function.
@@ -2108,7 +2108,7 @@ options.imports
<!-- div -->
### <a id="_throttlefunc-wait"></a>`_.throttle(func, wait)`
<a href="#_throttlefunc-wait">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4453 "View in source") [&#x24C9;][1]
<a href="#_throttlefunc-wait">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4447 "View in source") [&#x24C9;][1]
Creates a function that, when executed, will only call the `func` function at most once per every `wait` milliseconds. If the throttled function is invoked more than once during the `wait` timeout, `func` will also be called on the trailing edge of the timeout. Subsequent calls to the throttled function will return the result of the last `func` call.
@@ -2133,7 +2133,7 @@ jQuery(window).on('scroll', throttled);
<!-- div -->
### <a id="_wrapvalue-wrapper"></a>`_.wrap(value, wrapper)`
<a href="#_wrapvalue-wrapper">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4506 "View in source") [&#x24C9;][1]
<a href="#_wrapvalue-wrapper">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4500 "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.
@@ -2169,7 +2169,7 @@ hello();
<!-- div -->
### <a id="_assignobject--source1-source2--callback-thisarg"></a>`_.assign(object [, source1, source2, ..., callback, thisArg])`
<a href="#_assignobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1111 "View in source") [&#x24C9;][1]
<a href="#_assignobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1105 "View in source") [&#x24C9;][1]
Assigns own enumerable properties of source object(s) to the destination object. Subsequent sources will overwrite propery assignments of previous sources. If a `callback` function is passed, it will be executed to produce the assigned values. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
@@ -2207,7 +2207,7 @@ defaults(food, { 'name': 'banana', 'type': 'fruit' });
<!-- div -->
### <a id="_clonevalue--deepfalse-callback-thisarg"></a>`_.clone(value [, deep=false, callback, thisArg])`
<a href="#_clonevalue--deepfalse-callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1166 "View in source") [&#x24C9;][1]
<a href="#_clonevalue--deepfalse-callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1160 "View in source") [&#x24C9;][1]
Creates a clone of `value`. If `deep` is `true`, nested objects will also be cloned, otherwise they will be assigned by reference. If a `callback` function is passed, it will be executed to produce the cloned values. If `callback` returns `undefined`, cloning will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -2254,7 +2254,7 @@ clone.childNodes.length;
<!-- div -->
### <a id="_clonedeepvalue--callback-thisarg"></a>`_.cloneDeep(value [, callback, thisArg])`
<a href="#_clonedeepvalue--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1291 "View in source") [&#x24C9;][1]
<a href="#_clonedeepvalue--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1285 "View in source") [&#x24C9;][1]
Creates a deep clone of `value`. If a `callback` function is passed, it will be executed to produce the cloned values. If `callback` returns the value it was passed, cloning will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -2300,7 +2300,7 @@ clone.node == view.node;
<!-- div -->
### <a id="_defaultsobject--source1-source2-"></a>`_.defaults(object [, source1, source2, ...])`
<a href="#_defaultsobject--source1-source2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1315 "View in source") [&#x24C9;][1]
<a href="#_defaultsobject--source1-source2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1309 "View in source") [&#x24C9;][1]
Assigns own enumerable properties of source object(s) to the destination object for all destination properties that resolve to `undefined`. Once a property is set, additional defaults of the same property will be ignored.
@@ -2326,7 +2326,7 @@ _.defaults(food, { 'name': 'banana', 'type': 'fruit' });
<!-- div -->
### <a id="_forinobject--callbackidentity-thisarg"></a>`_.forIn(object [, callback=identity, thisArg])`
<a href="#_forinobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L931 "View in source") [&#x24C9;][1]
<a href="#_forinobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L925 "View in source") [&#x24C9;][1]
Iterates over `object`'s own and inherited enumerable properties, executing the `callback` for each property. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -2362,7 +2362,7 @@ _.forIn(new Dog('Dagny'), function(value, key) {
<!-- div -->
### <a id="_forownobject--callbackidentity-thisarg"></a>`_.forOwn(object [, callback=identity, thisArg])`
<a href="#_forownobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L956 "View in source") [&#x24C9;][1]
<a href="#_forownobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L950 "View in source") [&#x24C9;][1]
Iterates over an object's own enumerable properties, executing the `callback` for each property. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -2390,7 +2390,7 @@ _.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
<!-- div -->
### <a id="_functionsobject"></a>`_.functions(object)`
<a href="#_functionsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1332 "View in source") [&#x24C9;][1]
<a href="#_functionsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1326 "View in source") [&#x24C9;][1]
Creates a sorted array of all enumerable properties, own and inherited, of `object` that have function values.
@@ -2417,7 +2417,7 @@ _.functions(_);
<!-- div -->
### <a id="_hasobject-property"></a>`_.has(object, property)`
<a href="#_hasobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1357 "View in source") [&#x24C9;][1]
<a href="#_hasobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1351 "View in source") [&#x24C9;][1]
Checks if the specified object `property` exists and is a direct property, instead of an inherited property.
@@ -2442,7 +2442,7 @@ _.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
<!-- div -->
### <a id="_invertobject"></a>`_.invert(object)`
<a href="#_invertobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1374 "View in source") [&#x24C9;][1]
<a href="#_invertobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1368 "View in source") [&#x24C9;][1]
Creates an object composed of the inverted keys and values of the given `object`.
@@ -2466,7 +2466,7 @@ _.invert({ 'first': 'moe', 'second': 'larry' });
<!-- div -->
### <a id="_isargumentsvalue"></a>`_.isArguments(value)`
<a href="#_isargumentsvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L892 "View in source") [&#x24C9;][1]
<a href="#_isargumentsvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L886 "View in source") [&#x24C9;][1]
Checks if `value` is an `arguments` object.
@@ -2493,7 +2493,7 @@ _.isArguments([1, 2, 3]);
<!-- div -->
### <a id="_isarrayvalue"></a>`_.isArray(value)`
<a href="#_isarrayvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L974 "View in source") [&#x24C9;][1]
<a href="#_isarrayvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L968 "View in source") [&#x24C9;][1]
Checks if `value` is an array.
@@ -2520,7 +2520,7 @@ _.isArray([1, 2, 3]);
<!-- div -->
### <a id="_isbooleanvalue"></a>`_.isBoolean(value)`
<a href="#_isbooleanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1400 "View in source") [&#x24C9;][1]
<a href="#_isbooleanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1394 "View in source") [&#x24C9;][1]
Checks if `value` is a boolean value.
@@ -2544,7 +2544,7 @@ _.isBoolean(null);
<!-- div -->
### <a id="_isdatevalue"></a>`_.isDate(value)`
<a href="#_isdatevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1417 "View in source") [&#x24C9;][1]
<a href="#_isdatevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1411 "View in source") [&#x24C9;][1]
Checks if `value` is a date.
@@ -2568,7 +2568,7 @@ _.isDate(new Date);
<!-- div -->
### <a id="_iselementvalue"></a>`_.isElement(value)`
<a href="#_iselementvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1434 "View in source") [&#x24C9;][1]
<a href="#_iselementvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1428 "View in source") [&#x24C9;][1]
Checks if `value` is a DOM element.
@@ -2592,7 +2592,7 @@ _.isElement(document.body);
<!-- div -->
### <a id="_isemptyvalue"></a>`_.isEmpty(value)`
<a href="#_isemptyvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1459 "View in source") [&#x24C9;][1]
<a href="#_isemptyvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1453 "View in source") [&#x24C9;][1]
Checks if `value` is empty. Arrays, strings, or `arguments` objects with a length of `0` and objects with no own enumerable properties are considered "empty".
@@ -2622,7 +2622,7 @@ _.isEmpty('');
<!-- div -->
### <a id="_isequala-b--callback-thisarg"></a>`_.isEqual(a, b [, callback, thisArg])`
<a href="#_isequala-b--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1518 "View in source") [&#x24C9;][1]
<a href="#_isequala-b--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1512 "View in source") [&#x24C9;][1]
Performs a deep comparison between two values to determine if they are equivalent to each other. If `callback` is passed, it will be executed to compare values. If `callback` returns `undefined`, comparisons will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with two arguments; *(a, b)*.
@@ -2667,7 +2667,7 @@ _.isEqual(words, otherWords, function(a, b) {
<!-- div -->
### <a id="_isfinitevalue"></a>`_.isFinite(value)`
<a href="#_isfinitevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1699 "View in source") [&#x24C9;][1]
<a href="#_isfinitevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1693 "View in source") [&#x24C9;][1]
Checks if `value` is, or can be coerced to, a finite number.
@@ -2705,7 +2705,7 @@ _.isFinite(Infinity);
<!-- div -->
### <a id="_isfunctionvalue"></a>`_.isFunction(value)`
<a href="#_isfunctionvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1716 "View in source") [&#x24C9;][1]
<a href="#_isfunctionvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1710 "View in source") [&#x24C9;][1]
Checks if `value` is a function.
@@ -2729,7 +2729,7 @@ _.isFunction(_);
<!-- div -->
### <a id="_isnanvalue"></a>`_.isNaN(value)`
<a href="#_isnanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1779 "View in source") [&#x24C9;][1]
<a href="#_isnanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1773 "View in source") [&#x24C9;][1]
Checks if `value` is `NaN`.
@@ -2764,7 +2764,7 @@ _.isNaN(undefined);
<!-- div -->
### <a id="_isnullvalue"></a>`_.isNull(value)`
<a href="#_isnullvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1801 "View in source") [&#x24C9;][1]
<a href="#_isnullvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1795 "View in source") [&#x24C9;][1]
Checks if `value` is `null`.
@@ -2791,7 +2791,7 @@ _.isNull(undefined);
<!-- div -->
### <a id="_isnumbervalue"></a>`_.isNumber(value)`
<a href="#_isnumbervalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1818 "View in source") [&#x24C9;][1]
<a href="#_isnumbervalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1812 "View in source") [&#x24C9;][1]
Checks if `value` is a number.
@@ -2815,7 +2815,7 @@ _.isNumber(8.4 * 5);
<!-- div -->
### <a id="_isobjectvalue"></a>`_.isObject(value)`
<a href="#_isobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1746 "View in source") [&#x24C9;][1]
<a href="#_isobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1740 "View in source") [&#x24C9;][1]
Checks if `value` is the language type of Object. *(e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)*
@@ -2845,7 +2845,7 @@ _.isObject(1);
<!-- div -->
### <a id="_isplainobjectvalue"></a>`_.isPlainObject(value)`
<a href="#_isplainobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1846 "View in source") [&#x24C9;][1]
<a href="#_isplainobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1840 "View in source") [&#x24C9;][1]
Checks if a given `value` is an object created by the `Object` constructor.
@@ -2880,7 +2880,7 @@ _.isPlainObject({ 'name': 'moe', 'age': 40 });
<!-- div -->
### <a id="_isregexpvalue"></a>`_.isRegExp(value)`
<a href="#_isregexpvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1871 "View in source") [&#x24C9;][1]
<a href="#_isregexpvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1865 "View in source") [&#x24C9;][1]
Checks if `value` is a regular expression.
@@ -2904,7 +2904,7 @@ _.isRegExp(/moe/);
<!-- div -->
### <a id="_isstringvalue"></a>`_.isString(value)`
<a href="#_isstringvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1888 "View in source") [&#x24C9;][1]
<a href="#_isstringvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1882 "View in source") [&#x24C9;][1]
Checks if `value` is a string.
@@ -2928,7 +2928,7 @@ _.isString('moe');
<!-- div -->
### <a id="_isundefinedvalue"></a>`_.isUndefined(value)`
<a href="#_isundefinedvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1905 "View in source") [&#x24C9;][1]
<a href="#_isundefinedvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1899 "View in source") [&#x24C9;][1]
Checks if `value` is `undefined`.
@@ -2952,7 +2952,7 @@ _.isUndefined(void 0);
<!-- div -->
### <a id="_keysobject"></a>`_.keys(object)`
<a href="#_keysobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L993 "View in source") [&#x24C9;][1]
<a href="#_keysobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L987 "View in source") [&#x24C9;][1]
Creates an array composed of the own enumerable property names of `object`.
@@ -2976,7 +2976,7 @@ _.keys({ 'one': 1, 'two': 2, 'three': 3 });
<!-- div -->
### <a id="_mergeobject--source1-source2--callback-thisarg"></a>`_.merge(object [, source1, source2, ..., callback, thisArg])`
<a href="#_mergeobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1965 "View in source") [&#x24C9;][1]
<a href="#_mergeobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1959 "View in source") [&#x24C9;][1]
Recursively merges own enumerable properties of the source object(s), that don't resolve to `undefined`, into the destination object. Subsequent sources will overwrite propery assignments of previous sources. If a `callback` function is passed, it will be executed to produce the merged values of the destination and source properties. If `callback` returns `undefined`, merging will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
@@ -3032,7 +3032,7 @@ _.merge(food, otherFood, function(a, b) {
<!-- div -->
### <a id="_omitobject-callback-prop1-prop2--thisarg"></a>`_.omit(object, callback|[prop1, prop2, ..., thisArg])`
<a href="#_omitobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2072 "View in source") [&#x24C9;][1]
<a href="#_omitobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2066 "View in source") [&#x24C9;][1]
Creates a shallow clone of `object` excluding the specified properties. Property names may be specified as individual arguments or as arrays of property names. If a `callback` function is passed, it will be executed for each property in the `object`, omitting the properties `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
@@ -3063,7 +3063,7 @@ _.omit({ 'name': 'moe', 'age': 40 }, function(value) {
<!-- div -->
### <a id="_pairsobject"></a>`_.pairs(object)`
<a href="#_pairsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2106 "View in source") [&#x24C9;][1]
<a href="#_pairsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2100 "View in source") [&#x24C9;][1]
Creates a two dimensional array of the given object's key-value pairs, i.e. `[[key1, value1], [key2, value2]]`.
@@ -3087,11 +3087,11 @@ _.pairs({ 'moe': 30, 'larry': 40 });
<!-- div -->
### <a id="_parseintvalue"></a>`_.parseInt(value)`
<a href="#_parseintvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2135 "View in source") [&#x24C9;][1]
<a href="#_parseintvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2129 "View in source") [&#x24C9;][1]
Parses the given `value` into an integer of the specified `radix`.
Converts the given `value` into an integer of the specified `radix`.
Note: This method avoids differences in ES3 and ES5 `parseInt` implementations. See http://es5.github.com/#E.
Note: This method avoids differences in native ES3 and ES5 `parseInt` implementations. See http://es5.github.com/#E.
#### Arguments
1. `value` *(Mixed)*: The value to parse.
@@ -3113,7 +3113,7 @@ _.parseInt('08');
<!-- div -->
### <a id="_pickobject-callback-prop1-prop2--thisarg"></a>`_.pick(object, callback|[prop1, prop2, ..., thisArg])`
<a href="#_pickobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2165 "View in source") [&#x24C9;][1]
<a href="#_pickobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2159 "View in source") [&#x24C9;][1]
Creates a shallow clone of `object` composed of the specified properties. Property names may be specified as individual arguments or as arrays of property names. If `callback` is passed, it will be executed for each property in the `object`, picking the properties `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
@@ -3144,7 +3144,7 @@ _.pick({ 'name': 'moe', '_userid': 'moe1' }, function(value, key) {
<!-- div -->
### <a id="_valuesobject"></a>`_.values(object)`
<a href="#_valuesobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2202 "View in source") [&#x24C9;][1]
<a href="#_valuesobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2196 "View in source") [&#x24C9;][1]
Creates an array composed of the own enumerable property values of `object`.
@@ -3175,7 +3175,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#L4530 "View in source") [&#x24C9;][1]
<a href="#_escapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4524 "View in source") [&#x24C9;][1]
Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding HTML entities.
@@ -3199,7 +3199,7 @@ _.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#L4548 "View in source") [&#x24C9;][1]
<a href="#_identityvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4542 "View in source") [&#x24C9;][1]
This function returns the first argument passed to it.
@@ -3224,7 +3224,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#L4574 "View in source") [&#x24C9;][1]
<a href="#_mixinobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4568 "View in source") [&#x24C9;][1]
Adds functions properties of `object` to the `lodash` function and chainable wrapper.
@@ -3254,7 +3254,7 @@ _('moe').capitalize();
<!-- div -->
### <a id="_noconflict"></a>`_.noConflict()`
<a href="#_noconflict">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4598 "View in source") [&#x24C9;][1]
<a href="#_noconflict">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4592 "View in source") [&#x24C9;][1]
Reverts the '_' variable to its previous value and returns a reference to the `lodash` function.
@@ -3274,7 +3274,7 @@ var lodash = _.noConflict();
<!-- 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#L4621 "View in source") [&#x24C9;][1]
<a href="#_randommin0-max1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4615 "View in source") [&#x24C9;][1]
Produces a random number between `min` and `max` *(inclusive)*. If only one argument is passed, a number between `0` and the given number will be returned.
@@ -3302,7 +3302,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#L4659 "View in source") [&#x24C9;][1]
<a href="#_resultobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4653 "View in source") [&#x24C9;][1]
Resolves the value of `property` on `object`. If `property` is a function, it will be invoked and its result returned, else the property value is returned. If `object` is falsey, then `null` is returned.
@@ -3337,7 +3337,7 @@ _.result(object, 'stuff');
<!-- div -->
### <a id="_runincontextcontextwindow"></a>`_.runInContext([context=window])`
<a href="#_runincontextcontextwindow">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L124 "View in source") [&#x24C9;][1]
<a href="#_runincontextcontextwindow">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L131 "View in source") [&#x24C9;][1]
Create a new `lodash` function using the given `context` object.
@@ -3355,7 +3355,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#L4747 "View in source") [&#x24C9;][1]
<a href="#_templatetext-data-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4740 "View in source") [&#x24C9;][1]
A micro-templating method that handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code.
@@ -3439,7 +3439,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#L4872 "View in source") [&#x24C9;][1]
<a href="#_timesn-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4865 "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)*.
@@ -3471,7 +3471,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#L4898 "View in source") [&#x24C9;][1]
<a href="#_unescapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4891 "View in source") [&#x24C9;][1]
The opposite of `_.escape`, this method converts the HTML entities `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to their corresponding characters.
@@ -3495,7 +3495,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#L4918 "View in source") [&#x24C9;][1]
<a href="#_uniqueidprefix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4911 "View in source") [&#x24C9;][1]
Generates a unique ID. If `prefix` is passed, the ID will be appended to it.
@@ -3529,7 +3529,7 @@ _.uniqueId();
<!-- div -->
### <a id="_templatesettingsimports_"></a>`_.templateSettings.imports._`
<a href="#_templatesettingsimports_">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L378 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsimports_">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L385 "View in source") [&#x24C9;][1]
A reference to the `lodash` function.
@@ -3548,7 +3548,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#L5150 "View in source") [&#x24C9;][1]
<a href="#_version">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5143 "View in source") [&#x24C9;][1]
*(String)*: The semantic version number.
@@ -3560,7 +3560,7 @@ A reference to the `lodash` function.
<!-- div -->
### <a id="_templatesettings"></a>`_.templateSettings`
<a href="#_templatesettings">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L330 "View in source") [&#x24C9;][1]
<a href="#_templatesettings">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L337 "View in source") [&#x24C9;][1]
*(Object)*: By default, the template delimiters used by Lo-Dash are similar to those in embedded Ruby *(ERB)*. Change the following template settings to use alternative delimiters.
@@ -3572,7 +3572,7 @@ A reference to the `lodash` function.
<!-- div -->
### <a id="_templatesettingsescape"></a>`_.templateSettings.escape`
<a href="#_templatesettingsescape">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L338 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsescape">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L345 "View in source") [&#x24C9;][1]
*(RegExp)*: Used to detect `data` property values to be HTML-escaped.
@@ -3584,7 +3584,7 @@ A reference to the `lodash` function.
<!-- div -->
### <a id="_templatesettingsevaluate"></a>`_.templateSettings.evaluate`
<a href="#_templatesettingsevaluate">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L346 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsevaluate">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L353 "View in source") [&#x24C9;][1]
*(RegExp)*: Used to detect code to be evaluated.
@@ -3596,7 +3596,7 @@ A reference to the `lodash` function.
<!-- div -->
### <a id="_templatesettingsinterpolate"></a>`_.templateSettings.interpolate`
<a href="#_templatesettingsinterpolate">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L354 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsinterpolate">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L361 "View in source") [&#x24C9;][1]
*(RegExp)*: Used to detect `data` property values to inject.
@@ -3608,7 +3608,7 @@ A reference to the `lodash` function.
<!-- div -->
### <a id="_templatesettingsvariable"></a>`_.templateSettings.variable`
<a href="#_templatesettingsvariable">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L362 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsvariable">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L369 "View in source") [&#x24C9;][1]
*(String)*: Used to reference the data object in the template text.
@@ -3620,7 +3620,7 @@ A reference to the `lodash` function.
<!-- div -->
### <a id="_templatesettingsimports"></a>`_.templateSettings.imports`
<a href="#_templatesettingsimports">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L370 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsimports">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L377 "View in source") [&#x24C9;][1]
*(Object)*: Used to import variables into the compiled template.