Fix build, and rebuild files & docs.

Former-commit-id: af57dd1de6b20e93caa79f05cb9b43647a1de578
This commit is contained in:
John-David Dalton
2013-03-03 01:37:33 -08:00
parent 8825a094ae
commit 21a0eff593
9 changed files with 340 additions and 249 deletions

View File

@@ -2207,7 +2207,7 @@
// remove conditional `charCodeCallback` use from `_.max` and `_.min`
_.each(['max', 'min'], function(methodName) {
source = source.replace(matchFunction(source, methodName), function(match) {
return match.replace(/(return\b).+?callback *&& *isString[^:]+:\s*/g, '$1 ');
return match.replace(/=.+?callback *&& *isString[^:]+:\s*/g, '= ');
});
});

61
dist/lodash.compat.js vendored
View File

@@ -175,6 +175,7 @@
/* Native method shortcuts for methods with the same name as other `lodash` methods */
var nativeBind = reNative.test(nativeBind = slice.bind) && nativeBind,
nativeCreate = reNative.test(nativeCreate = Object.create) && nativeCreate,
nativeIsArray = reNative.test(nativeIsArray = Array.isArray) && nativeIsArray,
nativeIsFinite = context.isFinite,
nativeIsNaN = context.isNaN,
@@ -320,7 +321,7 @@
*/
function lodash(value) {
// exit early if already wrapped, even if wrapped by a different `lodash` constructor
if (value && typeof value == 'object' && value.__wrapped__) {
if (value && typeof value == 'object' && hasOwnProperty.call(value, '__wrapped__')) {
return value;
}
// allow invoking `lodash` without the `new` operator
@@ -637,9 +638,7 @@
}
if (this instanceof bound) {
// ensure `new bound` is an instance of `func`
noop.prototype = func.prototype;
thisBinding = new noop;
noop.prototype = null;
thisBinding = createObject(func.prototype);
// mimic the constructor's `return` behavior
// http://es5.github.com/#x13.2.2
@@ -762,6 +761,33 @@
);
}
/**
* Creates a new object that inherits from the given `prototype` object.
*
* @private
* @param {Object} prototype The prototype object.
* @returns {Object} Returns the new object.
*/
var createObject = nativeCreate || function(prototype) {
noop.prototype = prototype;
var result = new noop;
noop.prototype = null;
return result;
};
/**
* A fast path for creating `lodash` wrapper objects.
*
* @private
* @param {Mixed} value The value to wrap in a `lodash` instance.
* @returns {Object} Returns a `lodash` instance.
*/
function createWrapper(value) {
var result = createObject(lodash.prototype);
result.__wrapped__ = value;
return result;
}
/**
* A function compiled to iterate `arguments` objects, arrays, objects, and
* strings consistenly across environments, executing the `callback` for each
@@ -1555,7 +1581,7 @@
case numberClass:
// treat `NaN` vs. `NaN` as equal
return a != +a
return (a != +a)
? b != +b
// but treat `+0` vs. `-0` as not equal
: (a == 0 ? (1 / a == 1 / b) : a == +b);
@@ -1569,7 +1595,7 @@
var isArr = className == arrayClass;
if (!isArr) {
// unwrap any `lodash` wrapped values
if (a.__wrapped__ || b.__wrapped__) {
if (hasOwnProperty.call(a, '__wrapped__ ') || hasOwnProperty.call(b, '__wrapped__')) {
return isEqual(a.__wrapped__ || a, b.__wrapped__ || b, callback, thisArg, stackA, stackB);
}
// exit for functions and DOM nodes
@@ -2741,7 +2767,7 @@
}
}
} else {
callback = !callback && isString(collection)
callback = (!callback && isString(collection))
? charAtCallback
: createCallback(callback, thisArg);
@@ -2810,7 +2836,7 @@
}
}
} else {
callback = !callback && isString(collection)
callback = (!callback && isString(collection))
? charAtCallback
: createCallback(callback, thisArg);
@@ -3174,7 +3200,7 @@
*/
function toArray(collection) {
if (collection && typeof collection.length == 'number') {
return noCharByIndex && isString(collection)
return (noCharByIndex && isString(collection))
? collection.split('')
: slice(collection);
}
@@ -3841,7 +3867,7 @@
while (low < high) {
var mid = (low + high) >>> 1;
callback(array[mid]) < value
(callback(array[mid]) < value)
? low = mid + 1
: high = mid;
}
@@ -4566,9 +4592,14 @@
var func = lodash[methodName] = object[methodName];
lodash.prototype[methodName] = function() {
var args = [this.__wrapped__];
var value = this.__wrapped__,
args = [value];
push.apply(args, arguments);
return new lodash(func.apply(lodash, args));
var result = func.apply(lodash, args);
return (value && typeof value == 'object' && value == result)
? this
: createWrapper(result);
};
});
}
@@ -5123,7 +5154,7 @@
var result = func(this.__wrapped__, callback, thisArg);
return callback == null || (thisArg && typeof callback != 'function')
? result
: new lodash(result);
: createWrapper(result);
};
}
});
@@ -5165,7 +5196,7 @@
each(['concat', 'slice', 'splice'], function(methodName) {
var func = arrayRef[methodName];
lodash.prototype[methodName] = function() {
return new lodash(func.apply(this.__wrapped__, arguments));
return createWrapper(func.apply(this.__wrapped__, arguments));
};
});
@@ -5183,7 +5214,7 @@
if (value.length === 0) {
delete value[0];
}
return isSplice ? new lodash(result) : result;
return isSplice ? createWrapper(result) : result;
};
});
}

View File

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

59
dist/lodash.js vendored
View File

@@ -169,6 +169,7 @@
/* Native method shortcuts for methods with the same name as other `lodash` methods */
var nativeBind = reNative.test(nativeBind = slice.bind) && nativeBind,
nativeCreate = reNative.test(nativeCreate = Object.create) && nativeCreate,
nativeIsArray = reNative.test(nativeIsArray = Array.isArray) && nativeIsArray,
nativeIsFinite = context.isFinite,
nativeIsNaN = context.isNaN,
@@ -242,7 +243,7 @@
*/
function lodash(value) {
// exit early if already wrapped, even if wrapped by a different `lodash` constructor
if (value && typeof value == 'object' && value.__wrapped__) {
if (value && typeof value == 'object' && hasOwnProperty.call(value, '__wrapped__')) {
return value;
}
// allow invoking `lodash` without the `new` operator
@@ -519,9 +520,7 @@
}
if (this instanceof bound) {
// ensure `new bound` is an instance of `func`
noop.prototype = func.prototype;
thisBinding = new noop;
noop.prototype = null;
thisBinding = createObject(func.prototype);
// mimic the constructor's `return` behavior
// http://es5.github.com/#x13.2.2
@@ -639,6 +638,33 @@
);
}
/**
* Creates a new object that inherits from the given `prototype` object.
*
* @private
* @param {Object} prototype The prototype object.
* @returns {Object} Returns the new object.
*/
var createObject = nativeCreate || function(prototype) {
noop.prototype = prototype;
var result = new noop;
noop.prototype = null;
return result;
};
/**
* A fast path for creating `lodash` wrapper objects.
*
* @private
* @param {Mixed} value The value to wrap in a `lodash` instance.
* @returns {Object} Returns a `lodash` instance.
*/
function createWrapper(value) {
var result = createObject(lodash.prototype);
result.__wrapped__ = value;
return result;
}
/**
* A function compiled to iterate `arguments` objects, arrays, objects, and
* strings consistenly across environments, executing the `callback` for each
@@ -1412,7 +1438,7 @@
case numberClass:
// treat `NaN` vs. `NaN` as equal
return a != +a
return (a != +a)
? b != +b
// but treat `+0` vs. `-0` as not equal
: (a == 0 ? (1 / a == 1 / b) : a == +b);
@@ -1426,7 +1452,7 @@
var isArr = className == arrayClass;
if (!isArr) {
// unwrap any `lodash` wrapped values
if (a.__wrapped__ || b.__wrapped__) {
if (hasOwnProperty.call(a, '__wrapped__ ') || hasOwnProperty.call(b, '__wrapped__')) {
return isEqual(a.__wrapped__ || a, b.__wrapped__ || b, callback, thisArg, stackA, stackB);
}
// exit for functions and DOM nodes
@@ -2589,7 +2615,7 @@
}
}
} else {
callback = !callback && isString(collection)
callback = (!callback && isString(collection))
? charAtCallback
: createCallback(callback, thisArg);
@@ -2658,7 +2684,7 @@
}
}
} else {
callback = !callback && isString(collection)
callback = (!callback && isString(collection))
? charAtCallback
: createCallback(callback, thisArg);
@@ -3020,7 +3046,7 @@
*/
function toArray(collection) {
if (collection && typeof collection.length == 'number') {
return slice(collection);
return slice(collection);
}
return values(collection);
}
@@ -3685,7 +3711,7 @@
while (low < high) {
var mid = (low + high) >>> 1;
callback(array[mid]) < value
(callback(array[mid]) < value)
? low = mid + 1
: high = mid;
}
@@ -4410,9 +4436,14 @@
var func = lodash[methodName] = object[methodName];
lodash.prototype[methodName] = function() {
var args = [this.__wrapped__];
var value = this.__wrapped__,
args = [value];
push.apply(args, arguments);
return new lodash(func.apply(lodash, args));
var result = func.apply(lodash, args);
return (value && typeof value == 'object' && value == result)
? this
: createWrapper(result);
};
});
}
@@ -4967,7 +4998,7 @@
var result = func(this.__wrapped__, callback, thisArg);
return callback == null || (thisArg && typeof callback != 'function')
? result
: new lodash(result);
: createWrapper(result);
};
}
});
@@ -5009,7 +5040,7 @@
each(['concat', 'slice', 'splice'], function(methodName) {
var func = arrayRef[methodName];
lodash.prototype[methodName] = function() {
return new lodash(func.apply(this.__wrapped__, arguments));
return createWrapper(func.apply(this.__wrapped__, arguments));
};
});

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

@@ -122,6 +122,7 @@
/* Native method shortcuts for methods with the same name as other `lodash` methods */
var nativeBind = reNative.test(nativeBind = slice.bind) && nativeBind,
nativeCreate = reNative.test(nativeCreate = Object.create) && nativeCreate,
nativeIsArray = reNative.test(nativeIsArray = Array.isArray) && nativeIsArray,
nativeIsFinite = window.isFinite,
nativeIsNaN = window.isNaN,
@@ -195,11 +196,9 @@
* @returns {Object} Returns a `lodash` instance.
*/
function lodash(value) {
// exit early if already wrapped, even if wrapped by a different `lodash` constructor
if (value && typeof value == 'object' && value.__wrapped__) {
if (value instanceof lodash) {
return value;
}
// allow invoking `lodash` without the `new` operator
if (!(this instanceof lodash)) {
return new lodash(value);
}
@@ -334,9 +333,7 @@
}
if (this instanceof bound) {
// ensure `new bound` is an instance of `func`
noop.prototype = func.prototype;
thisBinding = new noop;
noop.prototype = null;
thisBinding = createObject(func.prototype);
// mimic the constructor's `return` behavior
// http://es5.github.com/#x13.2.2
@@ -406,6 +403,33 @@
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.
*/
var createObject = nativeCreate || function(prototype) {
noop.prototype = prototype;
var result = new noop;
noop.prototype = null;
return result;
};
/**
* A fast path for creating `lodash` wrapper objects.
*
* @private
* @param {Mixed} value The value to wrap in a `lodash` instance.
* @returns {Object} Returns a `lodash` instance.
*/
function createWrapper(value) {
var result = createObject(lodash.prototype);
result.__wrapped__ = value;
return result;
}
/**
* A function compiled to iterate `arguments` objects, arrays, objects, and
* strings consistenly across environments, executing the `callback` for each
@@ -1100,7 +1124,7 @@
}
var isArr = className == arrayClass;
if (!isArr) {
if (a.__wrapped__ || b.__wrapped__) {
if (a instanceof lodash || b instanceof lodash) {
return isEqual(a.__wrapped__ || a, b.__wrapped__ || b, stackA, stackB);
}
if (className != objectClass) {
@@ -2420,7 +2444,7 @@
*/
function toArray(collection) {
if (collection && typeof collection.length == 'number') {
return slice(collection);
return slice(collection);
}
return values(collection);
}
@@ -3076,7 +3100,7 @@
while (low < high) {
var mid = (low + high) >>> 1;
callback(array[mid]) < value
(callback(array[mid]) < value)
? low = mid + 1
: high = mid;
}
@@ -3713,14 +3737,14 @@
function mixin(object) {
forEach(functions(object), function(methodName) {
var func = lodash[methodName] = object[methodName];
lodash.prototype[methodName] = function() {
var args = [this.__wrapped__];
push.apply(args, arguments);
var result = func.apply(lodash, args);
if (this.__chain__) {
result = new lodash(result);
result = createWrapper(result);
result.__chain__ = true;
}
return result;

View File

@@ -4,31 +4,31 @@
* Build: `lodash underscore -o ./dist/lodash.underscore.js`
* Underscore.js 1.4.4 underscorejs.org/LICENSE
*/
;(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 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<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 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>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.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>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.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.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&&!K.nodeType?L?(L.exports=e)._=e:K._=e:n._=e})(this);
;(function(n){function t(n,t){var r;if(n&&pt[typeof n])for(r in t||(t=V),n)if(t(n[r],r,n)===Y)break}function r(n,t,r){if(n){t=t&&typeof r=="undefined"?t:i(t,r);var e=n.length;if(r=-1,typeof e=="number")for(;++r<e&&t(n[r],r,n)!==Y;);else for(r in n)if(bt.call(n,r)&&t(n[r],r,n)===Y)break}}function e(n){return n instanceof e?n:this instanceof e?(this.__wrapped__=n,void 0):new e(n)}function u(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 o(n,t,r){function e(){var a=arguments,f=o?this:t;return u||(n=t[i]),r.length&&(a=a.length?(a=l(a),r.concat(a)):r),this instanceof e?(f=$t(n.prototype),a=n.apply(f,a),j(a)?a:f):n.apply(f,a)}var u=b(n),o=!r,i=t;return o&&(r=t),u||(t=n),e}function i(n,t,r){if(n==H)return V;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=Tt(n);return function(t){for(var r=u.length,e=J;r--&&(e=t[u[r]]===n[u[r]]););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 a(n){return"\\"+st[n]}function f(n){return zt[n]}function c(){}function l(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=Array(0>r?0:r);++e<r;)u[e]=n[t+e];return u}function p(n){return Ct[n]}function s(n){return At.call(n)==et}function v(n){var t,r=[],e=function(n,t){r.push(t)};if(n&&pt[typeof n])for(t in e||(e=V),n)if(bt.call(n,t)&&e(n[t],t,n)===Y)break;
return r}function h(n){if(!n)return n;for(var t=1,r=arguments.length;t<r;t++){var e=arguments[t];if(e)for(var u in e)n[u]=e[u]}return n}function g(n){if(!n)return n;for(var t=1,r=arguments.length;t<r;t++){var e=arguments[t];if(e)for(var u in e)n[u]==H&&(n[u]=e[u])}return n}function y(n){var r=[];return t(n,function(n,t){b(n)&&r.push(t)}),r.sort()}function m(n){for(var t=-1,r=Tt(n),e=r.length,u={};++t<e;){var o=r[t];u[n[o]]=o}return u}function _(n){if(!n)return G;if(It(n)||A(n))return!n.length;for(var t in n)if(bt.call(n,t))return J;
return G}function d(n,r,u,o){if(n===r)return 0!==n||1/n==1/r;var i=typeof n,a=typeof r;if(n===n&&(!n||"function"!=i&&"object"!=i)&&(!r||"function"!=a&&"object"!=a))return J;if(n==H||r==H)return n===r;if(a=At.call(n),i=At.call(r),a!=i)return J;switch(a){case ot:case it:return+n==+r;case at:return n!=+n?r!=+r:0==n?1/n==1/r:n==+r;case ct:case lt:return n==r+""}if(i=a==ut,!i){if(n instanceof e||r instanceof e)return d(n.__wrapped__||n,r.__wrapped__||r,u,o);if(a!=ft)return J;var a=n.constructor,f=r.constructor;
if(a!=f&&(!b(a)||!(a instanceof a&&b(f)&&f instanceof f)))return J}for(u||(u=[]),o||(o=[]),a=u.length;a--;)if(u[a]==n)return o[a]==r;var c=G,l=0;if(u.push(n),o.push(r),i){if(l=r.length,c=l==n.length)for(;l--&&(c=d(n[l],r[l],u,o)););return c}return t(r,function(t,r,e){return bt.call(e,r)?(l++,!(c=bt.call(n,r)&&d(n[r],t,u,o))&&Y):void 0}),c&&t(n,function(n,t,r){return bt.call(r,t)?!(c=-1<--l)&&Y:void 0}),c}function b(n){return typeof n=="function"}function j(n){return n?pt[typeof n]:J}function w(n){return typeof n=="number"||At.call(n)==at
}function A(n){return typeof n=="string"||At.call(n)==lt}function x(n){for(var t=-1,r=Tt(n),e=r.length,u=Array(e);++t<e;)u[t]=n[r[t]];return u}function E(n,t){var e=J;return typeof(n?n.length:0)=="number"?e=-1<T(n,t):r(n,function(n){return(e=n===t)&&Y}),e}function O(n,t,e){var u=G;if(t=i(t,e),It(n)){e=-1;for(var o=n.length;++e<o&&(u=!!t(n[e],e,n)););}else r(n,function(n,r,e){return!(u=!!t(n,r,e))&&Y});return u}function S(n,t,e){var u=[];if(t=i(t,e),It(n)){e=-1;for(var o=n.length;++e<o;){var a=n[e];
t(a,e,n)&&u.push(a)}}else r(n,function(n,r,e){t(n,r,e)&&u.push(n)});return u}function N(n,t,r){var e;return t=i(t,r),k(n,function(n,r,u){return t(n,r,u)?(e=n,Y):void 0}),e}function k(n,t,e){if(t&&typeof e=="undefined"&&It(n)){e=-1;for(var u=n.length;++e<u&&t(n[e],e,n)!==Y;);}else r(n,t,e)}function F(n,t,e){var u=-1,o=n?n.length:0,a=Array(typeof o=="number"?o:0);if(t=i(t,e),It(n))for(;++u<o;)a[u]=t(n[u],u,n);else r(n,function(n,r,e){a[++u]=t(n,r,e)});return a}function R(n,t,e){var u=-1/0,o=u;if(!t&&It(n)){e=-1;
for(var a=n.length;++e<a;){var f=n[e];f>o&&(o=f)}}else t=i(t,e),r(n,function(n,r,e){r=t(n,r,e),r>u&&(u=r,o=n)});return o}function q(n,t,e,u){var o=3>arguments.length;if(t=i(t,u,4),It(n)){var a=-1,f=n.length;for(o&&(e=n[++a]);++a<f;)e=t(e,n[a],a,n)}else r(n,function(n,r,u){e=o?(o=J,n):t(e,n,r,u)});return e}function B(n,t,r,e){var u=n?n.length:0,o=3>arguments.length;if(typeof u!="number")var a=Tt(n),u=a.length;return t=i(t,e,4),k(n,function(e,i,f){i=a?a[--u]:--u,r=o?(o=J,n[i]):t(r,n[i],i,f)}),r}function D(n,t,e){var u;
if(t=i(t,e),It(n)){e=-1;for(var o=n.length;++e<o&&!(u=t(n[e],e,n)););}else r(n,function(n,r,e){return(u=t(n,r,e))&&Y});return!!u}function M(n,t,r){return r&&_(t)?H:(r?N:S)(n,t)}function $(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=H){var o=-1;for(t=i(t,r);++o<u&&t(n[o],o,n);)e++}else if(e=t,e==H||r)return n[0];return l(n,0,Rt(Ft(0,e),u))}}function I(n,t){for(var r=-1,e=n?n.length:0,u=[];++r<e;){var o=n[r];It(o)?jt.apply(u,t?o:I(o)):u.push(o)}return u}function T(n,t,r){var e=-1,u=n?n.length:0;
if(typeof r=="number")e=(0>r?Ft(0,u+r):r||0)-1;else if(r)return e=C(n,t),n[e]===t?e:-1;for(;++e<u;)if(n[e]===t)return e;return-1}function z(n,t,r){if(typeof t!="number"&&t!=H){var e=0,u=-1,o=n?n.length:0;for(t=i(t,r);++u<o&&t(n[u],u,n);)e++}else e=t==H||r?1:Ft(0,t);return l(n,e)}function C(n,t,r,e){var u=0,o=n?n.length:u;for(r=r?i(r,e,1):V,t=r(t);u<o;)e=u+o>>>1,r(n[e])<t?u=e+1:o=e;return u}function P(n,t,r,e){var u=-1,o=n?n.length:0,a=[],f=a;for(typeof t=="function"&&(e=r,r=t,t=J),r&&(f=[],r=i(r,e));++u<o;){e=n[u];
var c=r?r(e,u,n):e;(t?!u||f[f.length-1]!==c:0>T(f,c))&&(r&&f.push(c),a.push(e))}return a}function U(n,t){return Bt||xt&&2<arguments.length?xt.call.apply(xt,arguments):o(n,t,l(arguments,2))}function V(n){return n}function W(n){k(y(n),function(t){var r=e[t]=n[t];e.prototype[t]=function(){var n=[this.__wrapped__];if(jt.apply(n,arguments),n=r.apply(e,n),this.__chain__){var t=$t(e.prototype);t.__wrapped__=n,n=t,n.__chain__=G}return 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,nt=/($^)/,tt=/[&<>"']/g,rt=/['\n\r\t\u2028\u2029\\]/g,et="[object Arguments]",ut="[object Array]",ot="[object Boolean]",it="[object Date]",at="[object Number]",ft="[object Object]",ct="[object RegExp]",lt="[object String]",pt={"boolean":J,"function":G,object:G,number:J,string:J,undefined:J},st={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},vt=[],Q={},ht=n._,gt=RegExp("^"+(Q.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),yt=Math.ceil,mt=n.clearTimeout,_t=vt.concat,dt=Math.floor,bt=Q.hasOwnProperty,jt=vt.push,wt=n.setTimeout,At=Q.toString,xt=gt.test(xt=l.bind)&&xt,Et=gt.test(Et=Object.create)&&Et,Ot=gt.test(Ot=Array.isArray)&&Ot,St=n.isFinite,Nt=n.isNaN,kt=gt.test(kt=Object.keys)&&kt,Ft=Math.max,Rt=Math.min,qt=Math.random,Q=gt.test(n.attachEvent),Q=xt&&!/\n|true/.test(xt+Q),Bt=xt&&!Q,Dt=(Dt={0:1,length:1},vt.splice.call(Dt,0,1),Dt[0]),Mt=arguments.constructor==Object;
e.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""};var $t=Et||function(n){return c.prototype=n,n=new c,c.prototype=H,n};s(arguments)||(s=function(n){return n?bt.call(n,"callee"):J});var It=Ot||function(n){return Mt&&n instanceof Array||At.call(n)==ut},Tt=kt?function(n){return j(n)?kt(n):[]}:v,zt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ct=m(zt);b(/x/)&&(b=function(n){return n instanceof Function||"[object Function]"==At.call(n)
});var Pt=F;e.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},e.bind=U,e.bindAll=function(n){for(var t=_t.apply(vt,arguments),r=1<t.length?0:(t=y(n),-1),e=t.length;++r<e;){var u=t[r];n[u]=U(n[u],n)}return n},e.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},e.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];return t[0]}},e.countBy=function(n,t,r){var e={};
return t=i(t,r),k(n,function(n,r,u){r=t(n,r,u)+"",bt.call(e,r)?e[r]++:e[r]=1}),e},e.debounce=function(n,t,r){function e(){a=H,r||(o=n.apply(i,u))}var u,o,i,a;return function(){var f=r&&!a;return u=arguments,i=this,mt(a),a=wt(e,t),f&&(o=n.apply(i,u)),o}},e.defaults=g,e.defer=function(n){var t=l(arguments,1);return wt(function(){n.apply(void 0,t)},1)},e.delay=function(n,t){var r=l(arguments,2);return wt(function(){n.apply(void 0,r)},t)},e.difference=function(n){for(var t=-1,r=n.length,e=_t.apply(vt,arguments),u=[];++t<r;){var o=n[t];
0>T(e,o,r)&&u.push(o)}return u},e.filter=S,e.flatten=I,e.forEach=k,e.functions=y,e.groupBy=function(n,t,r){var e={};return t=i(t,r),k(n,function(n,r,u){r=t(n,r,u)+"",(bt.call(e,r)?e[r]:e[r]=[]).push(n)}),e},e.initial=function(n,t,r){if(!n)return[];var e=0,u=n.length;if(typeof t!="number"&&t!=H){var o=u;for(t=i(t,r);o--&&t(n[o],o,n);)e++}else e=t==H||r?1:t||e;return l(n,0,Rt(Ft(0,u-e),u))},e.intersection=function(n){var t=arguments,r=t.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=r;--a;)if(0>T(t[a],i))continue n;
o.push(i)}}return o},e.invert=m,e.invoke=function(n,t){var r=l(arguments,2),e=-1,u=typeof t=="function",o=n?n.length:0,i=Array(typeof o=="number"?o:0);return k(n,function(n){i[++e]=(u?t:n[t]).apply(n,r)}),i},e.keys=Tt,e.map=F,e.max=R,e.memoize=function(n,t){var r={};return function(){var e=(t?t.apply(this,arguments):arguments[0])+"";return bt.call(r,e)?r[e]:r[e]=n.apply(this,arguments)}},e.min=function(n,t,e){var u=1/0,o=u;if(!t&&It(n)){e=-1;for(var a=n.length;++e<a;){var f=n[e];f<o&&(o=f)}}else t=i(t,e),r(n,function(n,r,e){r=t(n,r,e),r<u&&(u=r,o=n)
});return o},e.omit=function(n){var r=_t.apply(vt,arguments),e={};return t(n,function(n,t){0>T(r,t,1)&&(e[t]=n)}),e},e.once=function(n){var t,r;return function(){return t?r:(t=G,r=n.apply(this,arguments),n=H,r)}},e.pairs=function(n){for(var t=-1,r=Tt(n),e=r.length,u=Array(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},e.partial=function(n){return o(n,l(arguments,1))},e.pick=function(n){for(var t=0,r=_t.apply(vt,arguments),e=r.length,u={};++t<e;){var o=r[t];o in n&&(u[o]=n[o])}return u},e.pluck=Pt,e.range=function(n,t,r){n=+n||0,r=+r||1,t==H&&(t=n,n=0);
var e=-1;t=Ft(0,yt((t-n)/r));for(var u=Array(t);++e<t;)u[e]=n,n+=r;return u},e.reject=function(n,t,r){return t=i(t,r),S(n,function(n,r,e){return!t(n,r,e)})},e.rest=z,e.shuffle=function(n){var t=-1,r=n?n.length:0,e=Array(typeof r=="number"?r:0);return k(n,function(n){var r=dt(qt()*(++t+1));e[t]=e[r],e[r]=n}),e},e.sortBy=function(n,t,r){var e=-1,o=n?n.length:0,a=Array(typeof o=="number"?o:0);for(t=i(t,r),k(n,function(n,r,u){a[++e]={a:t(n,r,u),b:e,c:n}}),o=a.length,a.sort(u);o--;)a[o]=a[o].c;return a
},e.tap=function(n,t){return t(n),n},e.throttle=function(n,t){function r(){a=new Date,i=H,u=n.apply(o,e)}var e,u,o,i,a=0;return function(){var f=new Date,c=t-(f-a);return e=arguments,o=this,0<c?i||(i=wt(r,c)):(mt(i),i=H,a=f,u=n.apply(o,e)),u}},e.times=function(n,t,r){n=+n||0;for(var e=-1,u=Array(n);++e<n;)u[e]=t.call(r,e);return u},e.toArray=function(n){return n&&typeof n.length=="number"?l(n):x(n)},e.union=function(){return P(_t.apply(vt,arguments))},e.uniq=P,e.values=x,e.where=M,e.without=function(n){for(var t=-1,r=n.length,e=[];++t<r;){var u=n[t];
0>T(arguments,u,1)&&e.push(u)}return e},e.wrap=function(n,t){return function(){var r=[n];return jt.apply(r,arguments),t.apply(this,r)}},e.zip=function(n){for(var t=-1,r=n?R(Pt(arguments,"length")):0,e=Array(r);++t<r;)e[t]=Pt(arguments,t);return e},e.collect=F,e.drop=z,e.each=k,e.extend=h,e.methods=y,e.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},e.select=S,e.tail=z,e.unique=P,e.clone=function(n){return j(n)?It(n)?l(n):h({},n):n},e.contains=E,e.escape=function(n){return n==H?"":(n+"").replace(tt,f)
},e.every=O,e.find=N,e.findWhere=function(n,t){return M(n,t,G)},e.has=function(n,t){return n?bt.call(n,t):J},e.identity=V,e.indexOf=T,e.isArguments=s,e.isArray=It,e.isBoolean=function(n){return n===G||n===J||At.call(n)==ot},e.isDate=function(n){return n instanceof Date||At.call(n)==it},e.isElement=function(n){return n?1===n.nodeType:J},e.isEmpty=_,e.isEqual=d,e.isFinite=function(n){return St(n)&&!Nt(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||At.call(n)==ct},e.isString=A,e.isUndefined=function(n){return typeof n=="undefined"},e.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?Ft(0,e+r):Rt(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},e.mixin=W,e.noConflict=function(){return n._=ht,this},e.random=function(n,t){return n==H&&t==H&&(t=1),n=+n||0,t==H&&(t=n,n=0),n+dt(qt()*((+t||0)-n+1))},e.reduce=q,e.reduceRight=B,e.result=function(n,t){var r=n?n[t]:H;
return b(r)?n[t]():r},e.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Tt(n).length},e.some=D,e.sortedIndex=C,e.template=function(n,t,r){n||(n=""),r=g({},r,e.templateSettings);var u=0,o="__p+='",i=r.variable;n.replace(RegExp((r.escape||nt).source+"|"+(r.interpolate||nt).source+"|"+(r.evaluate||nt).source+"|$","g"),function(t,r,e,i,f){return o+=n.slice(u,f).replace(rt,a),r&&(o+="'+_['escape']("+r+")+'"),i&&(o+="';"+i+";__p+='"),e&&(o+="'+((__t=("+e+"))==null?'':__t)+'"),u=f+t.length,t
}),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 t?f(t):(f.source=o,f)},e.unescape=function(n){return n==H?"":(n+"").replace(Z,p)},e.uniqueId=function(n){var t=++X+"";return n?n+t:t},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,t,r){if(n){var e=0,u=n.length;
if(typeof t!="number"&&t!=H){var o=u;for(t=i(t,r);o--&&t(n[o],o,n);)e++}else if(e=t,e==H||r)return n[u-1];return l(n,Ft(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__},r("pop push reverse shift sort splice unshift".split(" "),function(n){var t=vt[n];e.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),Dt&&0===n.length&&delete n[0],this
}}),r(["concat","join","slice"],function(n){var t=vt[n];e.prototype[n]=function(){var n=t.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new e(n),n.__chain__=G),n}}),K&&!K.nodeType?L?(L.exports=e)._=e:K._=e:n._=e})(this);

View File

@@ -200,7 +200,7 @@
<!-- div -->
### <a id="_compactarray"></a>`_.compact(array)`
<a href="#_compactarray">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3232 "View in source") [&#x24C9;][1]
<a href="#_compactarray">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3258 "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.
@@ -224,7 +224,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#L3262 "View in source") [&#x24C9;][1]
<a href="#_differencearray--array1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3288 "View in source") [&#x24C9;][1]
Creates an array of `array` elements not present in the other arrays using strict equality for comparisons, i.e. `===`.
@@ -249,7 +249,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#L3335 "View in source") [&#x24C9;][1]
<a href="#_firstarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3361 "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)*.
@@ -309,7 +309,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#L3374 "View in source") [&#x24C9;][1]
<a href="#_flattenarray-shallow">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3400 "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.
@@ -337,7 +337,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#L3416 "View in source") [&#x24C9;][1]
<a href="#_indexofarray-value--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3442 "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.
@@ -369,7 +369,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#L3490 "View in source") [&#x24C9;][1]
<a href="#_initialarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3516 "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)*.
@@ -426,7 +426,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#L3524 "View in source") [&#x24C9;][1]
<a href="#_intersectionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3550 "View in source") [&#x24C9;][1]
Computes the intersection of all the passed-in arrays using strict equality for comparisons, i.e. `===`.
@@ -450,7 +450,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#L3616 "View in source") [&#x24C9;][1]
<a href="#_lastarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3642 "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).
@@ -507,7 +507,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#L3657 "View in source") [&#x24C9;][1]
<a href="#_lastindexofarray-value--fromindexarraylength-1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3683 "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.
@@ -536,7 +536,7 @@ _.lastIndexOf([1, 2, 3, 1, 2, 3], 2, 3);
<!-- 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#L3698 "View in source") [&#x24C9;][1]
<a href="#_rangestart0-end--step1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3724 "View in source") [&#x24C9;][1]
Creates an array of numbers *(positive and/or negative)* progressing from `start` up to but not including `end`.
@@ -574,7 +574,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#L3777 "View in source") [&#x24C9;][1]
<a href="#_restarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3803 "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)*.
@@ -634,7 +634,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#L3841 "View in source") [&#x24C9;][1]
<a href="#_sortedindexarray-value--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3867 "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)*.
@@ -683,7 +683,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#L3873 "View in source") [&#x24C9;][1]
<a href="#_unionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3899 "View in source") [&#x24C9;][1]
Computes the union of the passed-in arrays using strict equality for comparisons, i.e. `===`.
@@ -707,7 +707,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#L3920 "View in source") [&#x24C9;][1]
<a href="#_uniqarray--issortedfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3946 "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)*.
@@ -754,7 +754,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#L3979 "View in source") [&#x24C9;][1]
<a href="#_withoutarray--value1-value2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4005 "View in source") [&#x24C9;][1]
Creates an array with all occurrences of the passed values removed using strict equality for comparisons, i.e. `===`.
@@ -779,7 +779,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#L4010 "View in source") [&#x24C9;][1]
<a href="#_ziparray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4036 "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.
@@ -803,7 +803,7 @@ _.zip(['moe', 'larry'], [30, 40], [true, false]);
<!-- div -->
### <a id="_zipobjectkeys--values"></a>`_.zipObject(keys [, values=[]])`
<a href="#_zipobjectkeys--values">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4039 "View in source") [&#x24C9;][1]
<a href="#_zipobjectkeys--values">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4065 "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`.
@@ -838,7 +838,7 @@ _.zipObject(['moe', 'larry'], [30, 40]);
<!-- div -->
### <a id="_value"></a>`_(value)`
<a href="#_value">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L320 "View in source") [&#x24C9;][1]
<a href="#_value">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L321 "View in source") [&#x24C9;][1]
Creates a `lodash` object, that wraps the given `value`, to enable method chaining.
@@ -869,7 +869,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#L4942 "View in source") [&#x24C9;][1]
<a href="#_tapvalue-interceptor">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4973 "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.
@@ -899,7 +899,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#L4959 "View in source") [&#x24C9;][1]
<a href="#_prototypetostring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4990 "View in source") [&#x24C9;][1]
Produces the `toString` result of the wrapped value.
@@ -920,7 +920,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#L4976 "View in source") [&#x24C9;][1]
<a href="#_prototypevalueof">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5007 "View in source") [&#x24C9;][1]
Extracts the wrapped value.
@@ -951,7 +951,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#L2233 "View in source") [&#x24C9;][1]
<a href="#_atcollection--index1-index2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2259 "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.
@@ -979,7 +979,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#L2275 "View in source") [&#x24C9;][1]
<a href="#_containscollection-target--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2301 "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.
@@ -1017,7 +1017,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#L2329 "View in source") [&#x24C9;][1]
<a href="#_countbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2355 "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)*.
@@ -1053,7 +1053,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#L2381 "View in source") [&#x24C9;][1]
<a href="#_everycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2407 "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)*.
@@ -1099,7 +1099,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#L2442 "View in source") [&#x24C9;][1]
<a href="#_filtercollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2468 "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)*.
@@ -1145,7 +1145,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#L2509 "View in source") [&#x24C9;][1]
<a href="#_findcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2535 "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)*.
@@ -1193,7 +1193,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#L2544 "View in source") [&#x24C9;][1]
<a href="#_foreachcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2570 "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`.
@@ -1225,7 +1225,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#L2594 "View in source") [&#x24C9;][1]
<a href="#_groupbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2620 "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)*.
@@ -1262,7 +1262,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#L2627 "View in source") [&#x24C9;][1]
<a href="#_invokecollection-methodname--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2653 "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`.
@@ -1291,7 +1291,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#L2679 "View in source") [&#x24C9;][1]
<a href="#_mapcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2705 "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)*.
@@ -1336,7 +1336,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#L2736 "View in source") [&#x24C9;][1]
<a href="#_maxcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2762 "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)*.
@@ -1378,7 +1378,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#L2805 "View in source") [&#x24C9;][1]
<a href="#_mincollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2831 "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)*.
@@ -1420,7 +1420,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#L2855 "View in source") [&#x24C9;][1]
<a href="#_pluckcollection-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2881 "View in source") [&#x24C9;][1]
Retrieves the value of a specified property from all elements in the `collection`.
@@ -1450,7 +1450,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#L2887 "View in source") [&#x24C9;][1]
<a href="#_reducecollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2913 "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)*.
@@ -1488,7 +1488,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#L2930 "View in source") [&#x24C9;][1]
<a href="#_reducerightcollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2956 "View in source") [&#x24C9;][1]
This method is similar to `_.reduce`, except that it iterates over a `collection` from right to left.
@@ -1519,7 +1519,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#L2990 "View in source") [&#x24C9;][1]
<a href="#_rejectcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3016 "View in source") [&#x24C9;][1]
The opposite of `_.filter`, this method returns the elements of a `collection` that `callback` does **not** return truthy for.
@@ -1562,7 +1562,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#L3011 "View in source") [&#x24C9;][1]
<a href="#_shufflecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3037 "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.
@@ -1586,7 +1586,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#L3044 "View in source") [&#x24C9;][1]
<a href="#_sizecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3070 "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.
@@ -1616,7 +1616,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#L3091 "View in source") [&#x24C9;][1]
<a href="#_somecollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3117 "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)*.
@@ -1662,7 +1662,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#L3147 "View in source") [&#x24C9;][1]
<a href="#_sortbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3173 "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)*.
@@ -1699,7 +1699,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#L3182 "View in source") [&#x24C9;][1]
<a href="#_toarraycollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3208 "View in source") [&#x24C9;][1]
Converts the `collection` to an array.
@@ -1723,7 +1723,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#L3214 "View in source") [&#x24C9;][1]
<a href="#_wherecollection-properties">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3240 "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.
@@ -1760,7 +1760,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#L4077 "View in source") [&#x24C9;][1]
<a href="#_aftern-func">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4103 "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.
@@ -1788,7 +1788,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#L4110 "View in source") [&#x24C9;][1]
<a href="#_bindfunc--thisarg-arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4136 "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.
@@ -1819,7 +1819,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#L4141 "View in source") [&#x24C9;][1]
<a href="#_bindallobject--methodname1-methodname2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4167 "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.
@@ -1850,7 +1850,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#L4187 "View in source") [&#x24C9;][1]
<a href="#_bindkeyobject-key--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4213 "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.
@@ -1891,7 +1891,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#L4210 "View in source") [&#x24C9;][1]
<a href="#_composefunc1-func2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4236 "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.
@@ -1918,7 +1918,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#L4243 "View in source") [&#x24C9;][1]
<a href="#_debouncefunc-wait-immediate">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4269 "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.
@@ -1944,7 +1944,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#L4307 "View in source") [&#x24C9;][1]
<a href="#_deferfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4333 "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.
@@ -1969,7 +1969,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#L4287 "View in source") [&#x24C9;][1]
<a href="#_delayfunc-wait--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4313 "View in source") [&#x24C9;][1]
Executes the `func` function after `wait` milliseconds. Additional arguments will be passed to `func` when it is invoked.
@@ -1996,7 +1996,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#L4335 "View in source") [&#x24C9;][1]
<a href="#_memoizefunc--resolver">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4361 "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.
@@ -2022,7 +2022,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#L4362 "View in source") [&#x24C9;][1]
<a href="#_oncefunc">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4388 "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.
@@ -2048,7 +2048,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#L4397 "View in source") [&#x24C9;][1]
<a href="#_partialfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4423 "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.
@@ -2075,7 +2075,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#L4428 "View in source") [&#x24C9;][1]
<a href="#_partialrightfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4454 "View in source") [&#x24C9;][1]
This method is similar to `_.partial`, except that `partial` arguments are appended to those passed to the new function.
@@ -2112,7 +2112,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#L4450 "View in source") [&#x24C9;][1]
<a href="#_throttlefunc-wait">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4476 "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.
@@ -2137,7 +2137,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#L4503 "View in source") [&#x24C9;][1]
<a href="#_wrapvalue-wrapper">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4529 "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.
@@ -2173,7 +2173,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#L1109 "View in source") [&#x24C9;][1]
<a href="#_assignobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1135 "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)*.
@@ -2211,7 +2211,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#L1164 "View in source") [&#x24C9;][1]
<a href="#_clonevalue--deepfalse-callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1190 "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)*.
@@ -2258,7 +2258,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#L1287 "View in source") [&#x24C9;][1]
<a href="#_clonedeepvalue--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1313 "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 `undefined`, cloning will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -2304,7 +2304,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#L1311 "View in source") [&#x24C9;][1]
<a href="#_defaultsobject--source1-source2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1337 "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.
@@ -2330,7 +2330,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#L929 "View in source") [&#x24C9;][1]
<a href="#_forinobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L955 "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`.
@@ -2366,7 +2366,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#L954 "View in source") [&#x24C9;][1]
<a href="#_forownobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L980 "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`.
@@ -2394,7 +2394,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#L1328 "View in source") [&#x24C9;][1]
<a href="#_functionsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1354 "View in source") [&#x24C9;][1]
Creates a sorted array of all enumerable properties, own and inherited, of `object` that have function values.
@@ -2421,7 +2421,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#L1353 "View in source") [&#x24C9;][1]
<a href="#_hasobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1379 "View in source") [&#x24C9;][1]
Checks if the specified object `property` exists and is a direct property, instead of an inherited property.
@@ -2446,7 +2446,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#L1370 "View in source") [&#x24C9;][1]
<a href="#_invertobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1396 "View in source") [&#x24C9;][1]
Creates an object composed of the inverted keys and values of the given `object`.
@@ -2470,7 +2470,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#L890 "View in source") [&#x24C9;][1]
<a href="#_isargumentsvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L916 "View in source") [&#x24C9;][1]
Checks if `value` is an `arguments` object.
@@ -2497,7 +2497,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#L972 "View in source") [&#x24C9;][1]
<a href="#_isarrayvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L998 "View in source") [&#x24C9;][1]
Checks if `value` is an array.
@@ -2524,7 +2524,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#L1396 "View in source") [&#x24C9;][1]
<a href="#_isbooleanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1422 "View in source") [&#x24C9;][1]
Checks if `value` is a boolean value.
@@ -2548,7 +2548,7 @@ _.isBoolean(null);
<!-- div -->
### <a id="_isdatevalue"></a>`_.isDate(value)`
<a href="#_isdatevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1413 "View in source") [&#x24C9;][1]
<a href="#_isdatevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1439 "View in source") [&#x24C9;][1]
Checks if `value` is a date.
@@ -2572,7 +2572,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#L1430 "View in source") [&#x24C9;][1]
<a href="#_iselementvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1456 "View in source") [&#x24C9;][1]
Checks if `value` is a DOM element.
@@ -2596,7 +2596,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#L1455 "View in source") [&#x24C9;][1]
<a href="#_isemptyvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1481 "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".
@@ -2626,7 +2626,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#L1514 "View in source") [&#x24C9;][1]
<a href="#_isequala-b--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1540 "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)*.
@@ -2671,7 +2671,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#L1695 "View in source") [&#x24C9;][1]
<a href="#_isfinitevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1721 "View in source") [&#x24C9;][1]
Checks if `value` is, or can be coerced to, a finite number.
@@ -2709,7 +2709,7 @@ _.isFinite(Infinity);
<!-- div -->
### <a id="_isfunctionvalue"></a>`_.isFunction(value)`
<a href="#_isfunctionvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1712 "View in source") [&#x24C9;][1]
<a href="#_isfunctionvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1738 "View in source") [&#x24C9;][1]
Checks if `value` is a function.
@@ -2733,7 +2733,7 @@ _.isFunction(_);
<!-- div -->
### <a id="_isnanvalue"></a>`_.isNaN(value)`
<a href="#_isnanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1775 "View in source") [&#x24C9;][1]
<a href="#_isnanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1801 "View in source") [&#x24C9;][1]
Checks if `value` is `NaN`.
@@ -2768,7 +2768,7 @@ _.isNaN(undefined);
<!-- div -->
### <a id="_isnullvalue"></a>`_.isNull(value)`
<a href="#_isnullvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1797 "View in source") [&#x24C9;][1]
<a href="#_isnullvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1823 "View in source") [&#x24C9;][1]
Checks if `value` is `null`.
@@ -2795,7 +2795,7 @@ _.isNull(undefined);
<!-- div -->
### <a id="_isnumbervalue"></a>`_.isNumber(value)`
<a href="#_isnumbervalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1814 "View in source") [&#x24C9;][1]
<a href="#_isnumbervalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1840 "View in source") [&#x24C9;][1]
Checks if `value` is a number.
@@ -2819,7 +2819,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#L1742 "View in source") [&#x24C9;][1]
<a href="#_isobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1768 "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('')`)*
@@ -2849,7 +2849,7 @@ _.isObject(1);
<!-- div -->
### <a id="_isplainobjectvalue"></a>`_.isPlainObject(value)`
<a href="#_isplainobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1842 "View in source") [&#x24C9;][1]
<a href="#_isplainobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1868 "View in source") [&#x24C9;][1]
Checks if a given `value` is an object created by the `Object` constructor.
@@ -2884,7 +2884,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#L1867 "View in source") [&#x24C9;][1]
<a href="#_isregexpvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1893 "View in source") [&#x24C9;][1]
Checks if `value` is a regular expression.
@@ -2908,7 +2908,7 @@ _.isRegExp(/moe/);
<!-- div -->
### <a id="_isstringvalue"></a>`_.isString(value)`
<a href="#_isstringvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1884 "View in source") [&#x24C9;][1]
<a href="#_isstringvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1910 "View in source") [&#x24C9;][1]
Checks if `value` is a string.
@@ -2932,7 +2932,7 @@ _.isString('moe');
<!-- div -->
### <a id="_isundefinedvalue"></a>`_.isUndefined(value)`
<a href="#_isundefinedvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1901 "View in source") [&#x24C9;][1]
<a href="#_isundefinedvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1927 "View in source") [&#x24C9;][1]
Checks if `value` is `undefined`.
@@ -2956,7 +2956,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#L991 "View in source") [&#x24C9;][1]
<a href="#_keysobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1017 "View in source") [&#x24C9;][1]
Creates an array composed of the own enumerable property names of `object`.
@@ -2980,7 +2980,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#L1961 "View in source") [&#x24C9;][1]
<a href="#_mergeobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1987 "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)*.
@@ -3036,7 +3036,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#L2068 "View in source") [&#x24C9;][1]
<a href="#_omitobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2094 "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)*.
@@ -3067,7 +3067,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#L2102 "View in source") [&#x24C9;][1]
<a href="#_pairsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2128 "View in source") [&#x24C9;][1]
Creates a two dimensional array of the given object's key-value pairs, i.e. `[[key1, value1], [key2, value2]]`.
@@ -3091,7 +3091,7 @@ _.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#L2131 "View in source") [&#x24C9;][1]
<a href="#_parseintvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2157 "View in source") [&#x24C9;][1]
Converts the given `value` into an integer of the specified `radix`.
@@ -3117,7 +3117,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#L2161 "View in source") [&#x24C9;][1]
<a href="#_pickobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2187 "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)*.
@@ -3148,7 +3148,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#L2198 "View in source") [&#x24C9;][1]
<a href="#_valuesobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2224 "View in source") [&#x24C9;][1]
Creates an array composed of the own enumerable property values of `object`.
@@ -3179,7 +3179,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#L4527 "View in source") [&#x24C9;][1]
<a href="#_escapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4553 "View in source") [&#x24C9;][1]
Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding HTML entities.
@@ -3203,7 +3203,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#L4545 "View in source") [&#x24C9;][1]
<a href="#_identityvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4571 "View in source") [&#x24C9;][1]
This function returns the first argument passed to it.
@@ -3228,7 +3228,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#L4571 "View in source") [&#x24C9;][1]
<a href="#_mixinobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4597 "View in source") [&#x24C9;][1]
Adds functions properties of `object` to the `lodash` function and chainable wrapper.
@@ -3258,7 +3258,7 @@ _('moe').capitalize();
<!-- div -->
### <a id="_noconflict"></a>`_.noConflict()`
<a href="#_noconflict">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4595 "View in source") [&#x24C9;][1]
<a href="#_noconflict">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4626 "View in source") [&#x24C9;][1]
Reverts the '_' variable to its previous value and returns a reference to the `lodash` function.
@@ -3278,7 +3278,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#L4618 "View in source") [&#x24C9;][1]
<a href="#_randommin0-max1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4649 "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.
@@ -3306,7 +3306,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#L4656 "View in source") [&#x24C9;][1]
<a href="#_resultobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4687 "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.
@@ -3359,7 +3359,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#L4743 "View in source") [&#x24C9;][1]
<a href="#_templatetext-data-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4774 "View in source") [&#x24C9;][1]
A micro-templating method that handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code.
@@ -3443,7 +3443,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#L4868 "View in source") [&#x24C9;][1]
<a href="#_timesn-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4899 "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)*.
@@ -3475,7 +3475,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#L4894 "View in source") [&#x24C9;][1]
<a href="#_unescapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4925 "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.
@@ -3499,7 +3499,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#L4914 "View in source") [&#x24C9;][1]
<a href="#_uniqueidprefix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4945 "View in source") [&#x24C9;][1]
Generates a unique ID. If `prefix` is passed, the ID will be appended to it.
@@ -3533,7 +3533,7 @@ _.uniqueId();
<!-- div -->
### <a id="_templatesettingsimports_"></a>`_.templateSettings.imports._`
<a href="#_templatesettingsimports_">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L389 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsimports_">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L390 "View in source") [&#x24C9;][1]
A reference to the `lodash` function.
@@ -3552,7 +3552,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#L5147 "View in source") [&#x24C9;][1]
<a href="#_version">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5178 "View in source") [&#x24C9;][1]
*(String)*: The semantic version number.
@@ -3564,7 +3564,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#L341 "View in source") [&#x24C9;][1]
<a href="#_templatesettings">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L342 "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.
@@ -3576,7 +3576,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#L349 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsescape">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L350 "View in source") [&#x24C9;][1]
*(RegExp)*: Used to detect `data` property values to be HTML-escaped.
@@ -3588,7 +3588,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#L357 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsevaluate">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L358 "View in source") [&#x24C9;][1]
*(RegExp)*: Used to detect code to be evaluated.
@@ -3600,7 +3600,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#L365 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsinterpolate">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L366 "View in source") [&#x24C9;][1]
*(RegExp)*: Used to detect `data` property values to inject.
@@ -3612,7 +3612,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#L373 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsvariable">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L374 "View in source") [&#x24C9;][1]
*(String)*: Used to reference the data object in the template text.
@@ -3624,7 +3624,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#L381 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsimports">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L382 "View in source") [&#x24C9;][1]
*(Object)*: Used to import variables into the compiled template.

View File

@@ -1333,7 +1333,8 @@
basename = path.basename(data.outputPath, '.js'),
context = createContext(),
isUnderscore = /backbone|underscore/.test(command),
exposeAssign = !isUnderscore;
exposeAssign = !isUnderscore,
exposeZipObject = !isUnderscore;
try {
vm.runInContext(data.source, context);
@@ -1351,6 +1352,7 @@
if (isUnderscore) {
if (methodNames) {
exposeAssign = methodNames.indexOf('assign') > -1;
exposeZipObject = methodNames.indexOf('zipObject') > -1;
} else {
methodNames = underscoreMethods.slice();
}
@@ -1390,6 +1392,9 @@
if (!exposeAssign) {
methodNames = _.without(methodNames, 'assign');
}
if (!exposeZipObject) {
methodNames = _.without(methodNames, 'zipObject');
}
var lodash = context._ || {};
methodNames.forEach(function(methodName) {
testMethod(lodash, methodName, basename);