Rebuild dist.

This commit is contained in:
John-David Dalton
2014-04-28 09:03:21 -07:00
parent 534976e64f
commit 3aa4e45bdb
6 changed files with 63 additions and 58 deletions

39
dist/lodash.compat.js vendored
View File

@@ -76,7 +76,7 @@
* See this [article on `RegExp` characters](http://www.regular-expressions.info/characters.html#special)
* for more details.
*/
var reRegExpChars = /[.*+?^${}()|[\]\\]/g;
var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g;
/** Used to detect functions containing a `this` reference */
var reThis = /\bthis\b/;
@@ -305,8 +305,8 @@
}
/**
* Used by `_.max` and `_.min` as the default callback when a given
* collection is a string value.
* Used by `_.max` and `_.min` as the default callback when a given collection
* is a string value.
*
* @private
* @param {string} string The string to inspect.
@@ -317,7 +317,8 @@
}
/**
* Gets the index of the first character of `string` that is not found in `chars`.
* Used by `_.trim` and `_.trimLeft` to get the index of the first character
* of `string` that is not found in `chars`.
*
* @private
* @param {string} string The string to inspect.
@@ -337,7 +338,8 @@
}
/**
* Gets the index of the last character of `string` that is not found in `chars`.
* Used by `_.trim` and `_.trimRight` to get the index of the last character
* of `string` that is not found in `chars`.
*
* @private
* @param {string} string The string to inspect.
@@ -468,7 +470,8 @@
}
/**
* Gets the index of the first non-whitespace character of `string`.
* Used by `_.trim` and `_.trimLeft` to get the index of the first non-whitespace
* character of `string`.
*
* @private
* @param {string} string The string to inspect.
@@ -489,7 +492,8 @@
}
/**
* Gets the index of the last non-whitespace character of `string`.
* Used by `_.trim` and `_.trimRight` to get the index of the last non-whitespace
* character of `string`.
*
* @private
* @param {string} string The string to inspect.
@@ -5717,7 +5721,7 @@
* // => { 'name': 'barney', 'employer': 'slate' }
*/
function defaults(object) {
if (!object || arguments.length < 2) {
if (!object) {
return object;
}
var args = slice(arguments);
@@ -6349,7 +6353,7 @@
// and avoid a V8 bug
// https://code.google.com/p/v8/issues/detail?id=2291
var type = typeof value;
return (value && (type == 'function' || type == 'object')) || false;
return type == 'function' || (value && type == 'object') || false;
}
/**
@@ -6492,9 +6496,7 @@
* // => false
*/
function isRegExp(value) {
var type = typeof value;
return (value && (type == 'function' || type == 'object') &&
toString.call(value) == regexpClass) || false;
return (isObject(value) && toString.call(value) == regexpClass) || false;
}
/**
@@ -6739,13 +6741,13 @@
* // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot] }
*/
function merge(object, source, guard) {
if (!object) {
return object;
}
var args = arguments,
length = args.length,
type = typeof guard;
if (!object || length < 2) {
return object;
}
// enables use as a callback for functions like `_.reduce`
if ((type == 'number' || type == 'string') && args[3] && args[3][guard] === source) {
length = 2;
@@ -6924,9 +6926,10 @@
if (isArr) {
accumulator = [];
} else {
var ctor = object && object.constructor,
proto = ctor && ctor.prototype;
if (isObject(object)) {
var ctor = object.constructor,
proto = ctor && ctor.prototype;
}
accumulator = baseCreate(proto);
}
}

View File

@@ -29,8 +29,8 @@ t(o,r,n)&&e.push(o)}}else bt(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}fu
});return r}function fr(n,t,r,e){var u=3>arguments.length;return t=c.createCallback(t,e,4),_t(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)}),r}function cr(n){var t=-1,r=n&&n.length,e=$r(0>r?0:r>>>0);return bt(n,function(n){var r=It(0,++t);e[t]=e[r],e[r]=n}),e}function sr(n,t,r){var e;if(t=c.createCallback(t,r,3),Fe(n)){r=-1;for(var u=n.length;++r<u;)if(t(n[r],r,n))return true}else bt(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function pr(n,t){if(3>arguments.length)return Ft(n,b,null,t);if(n)var r=n[O]?n[O][2]:n.length,e=Vt(arguments,2),r=r-e.length;
return Ft(n,b|C,r,t,e)}function gr(n,t,r){var e,u,o,i,a,l,f,c=0,s=false,p=true;if(!_r(n))throw new Vr(E);if(t=0>t?0:t,true===r)var g=true,p=false;else wr(r)&&(g=r.leading,s="maxWait"in r&&xe(t,+r.maxWait||0),p="trailing"in r?r.trailing:p);var h=function(){var r=t-(qe()-i);0>=r||r>t?(u&&ue(u),r=f,u=l=f=d,r&&(c=qe(),o=n.apply(a,e),l||u||(e=a=null))):l=pe(h,r)},v=function(){l&&ue(l),u=l=f=d,(p||s!==t)&&(c=qe(),o=n.apply(a,e),l||u||(e=a=null))};return function(){if(e=arguments,i=qe(),a=this,f=p&&(l||!g),false===s)var r=g&&!l;
else{u||g||(c=i);var y=s-(i-c),m=0>=y||y>s;m?(u&&(u=ue(u)),c=i,o=n.apply(a,e)):u||(u=pe(v,y))}return m&&l?l=ue(l):l||t===s||(l=pe(h,t)),r&&(m=true,o=n.apply(a,e)),!m||l||u||(e=a=null),o}}function hr(n){if(!_r(n))throw new Vr(E);return function(){return!n.apply(this,arguments)}}function vr(n,t,r){var e=arguments;if(!n||2>e.length)return n;var u=0,o=e.length,i=typeof r;if("number"!=i&&"string"!=i||!e[3]||e[3][r]!==t||(o=2),3<o&&"function"==typeof e[o-2])var a=ht(e[--o-1],e[o--],2);else 2<o&&"function"==typeof e[o-1]&&(a=e[--o]);
for(;++u<o;){t=e[u];for(var i=-1,l=Pe(t),f=l.length;++i<f;){var c=l[i];n[c]=a?a(n[c],t[c]):t[c]}}return n}function yr(t){if(!t||2>arguments.length)return t;var r=Vt(arguments);return r.push(n),vr.apply(null,r)}function mr(n){var t=[];return kt(n,function(n,r){_r(n)&&t.push(r)}),t.sort()}function dr(n){return n&&typeof n=="object"&&typeof n.length=="number"&&te.call(n)==G||false}function br(n){return n&&typeof n=="object"&&1===n.nodeType&&(Se.nodeClass?-1<te.call(n).indexOf("Element"):g(n))||false}function _r(n){return typeof n=="function"
}function wr(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function xr(n){var t=typeof n;return"number"==t||n&&"object"==t&&te.call(n)==et||false}function Cr(n){var t=typeof n;return n&&("function"==t||"object"==t)&&te.call(n)==ot||false}function jr(n){return typeof n=="string"||n&&typeof n=="object"&&te.call(n)==it||false}function kr(n){if(!wr(n))return[];for(var t,r=n.length,r=(typeof r=="number"&&0<r&&(Fe(n)||Se.nonEnumStrings&&jr(n)||Se.nonEnumArgs&&dr(n))&&r)>>>0,e=n.constructor,u=-1,o=e&&n===e.prototype,i=r-1,e=$r(r),a=0<r,l=Se.enumErrorProps&&(n===Xr||n instanceof Dr),f=Se.enumPrototypes&&typeof n=="function";++u<r;)e[u]=Mr(u);
for(;++u<o;){t=e[u];for(var i=-1,l=Pe(t),f=l.length;++i<f;){var c=l[i];n[c]=a?a(n[c],t[c]):t[c]}}return n}function yr(t){if(!t)return t;var r=Vt(arguments);return r.push(n),vr.apply(null,r)}function mr(n){var t=[];return kt(n,function(n,r){_r(n)&&t.push(r)}),t.sort()}function dr(n){return n&&typeof n=="object"&&typeof n.length=="number"&&te.call(n)==G||false}function br(n){return n&&typeof n=="object"&&1===n.nodeType&&(Se.nodeClass?-1<te.call(n).indexOf("Element"):g(n))||false}function _r(n){return typeof n=="function"
}function wr(n){var t=typeof n;return"function"==t||n&&"object"==t||false}function xr(n){var t=typeof n;return"number"==t||n&&"object"==t&&te.call(n)==et||false}function Cr(n){return wr(n)&&te.call(n)==ot||false}function jr(n){return typeof n=="string"||n&&typeof n=="object"&&te.call(n)==it||false}function kr(n){if(!wr(n))return[];for(var t,r=n.length,r=(typeof r=="number"&&0<r&&(Fe(n)||Se.nonEnumStrings&&jr(n)||Se.nonEnumArgs&&dr(n))&&r)>>>0,e=n.constructor,u=-1,o=e&&n===e.prototype,i=r-1,e=$r(r),a=0<r,l=Se.enumErrorProps&&(n===Xr||n instanceof Dr),f=Se.enumPrototypes&&typeof n=="function";++u<r;)e[u]=Mr(u);
for(var c in n)o&&"constructor"==c||f&&"prototype"==c||l&&("message"==c||"name"==c)||a&&(t=+c,-1<t&&t<=i&&0==t%1)||e.push(c);if(Se.nonEnumShadows&&n!==Yr){if(u=-1,r=Y.length,o){t=n===Gr?it:n===Xr?tt:te.call(n);var s=Ae[t]}for(;++u<r;)c=Y[u],s&&s[c]||!le.call(n,c)||e.push(c)}return e}function Or(n,t,r){var e={};if(typeof t!="function")for(var u=-1,o=xt(arguments,true,false,1),i=wr(n)?o.length:0;++u<i;){var a=o[u];a in n&&(e[a]=n[a])}else t=c.createCallback(t,r,3),kt(n,function(n,r,u){t(n,r,u)&&(e[r]=n)
});return e}function Er(n){return Nt(n,Pe)}function Ar(n){return null==n?"":Mr(n).replace(Z,"\\$&")}function Sr(n,t){var r="";if(t=+t,1>t||null==n||!be(t))return r;n=Mr(n);do t%2&&(r+=n),t=oe(t/2),n+=n;while(t);return r}function Ir(n,t){return(n=null==n?"":Mr(n))?null==t?n.slice(h(n),v(n)+1):(t=Mr(t),n.slice(o(n,t),i(n,t)+1)):n}function Rr(n,t,r){var e=typeof n;return"function"==e||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||ht(n,t,r):"object"==e?Tr(n):Fr(n)}function Nr(n){return n}function Tr(n){var t=Pe(n),r=t.length,e=t[0],u=r&&n[e];
return 1!=r||u!==u||wr(u)?function(e){var u=r;if(u&&!e)return false;for(var o=true;u--&&(o=t[u],o=le.call(e,o)&&At(e[o],n[o],null,true)););return o}:function(n){return n&&le.call(n,e)?(n=n[e],u===n&&(0!==u||1/u==1/n)):false}}function Lr(n,t,r){var e=true,u=t&&mr(t);t&&(r||u.length)||(null==r&&(r=t),t=n,n=c,u=mr(t)),false===r?e=false:wr(r)&&"chain"in r&&(e=r.chain),r=-1;for(var o=_r(n),i=u?u.length:0;++r<i;){var a=u[r],l=n[a]=t[a];o&&(n.prototype[a]=function(t){return function(){var r=this.__chain__,u=this.__wrapped__,o=[u];
@@ -46,12 +46,12 @@ return function(){for(var r=t-1,e=n[r].apply(this,arguments);r--;)e=n[r].call(th
var r=Vt(arguments,2);return pe(function(){n.apply(d,r)},t)},c.difference=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];if(Fe(r)||dr(r))break}return mt(arguments[n],xt(arguments,true,true,++n))},c.drop=Mt,c.dropRight=Zt,c.dropRightWhile=Zt,c.dropWhile=Mt,c.filter=tr,c.flatten=function(n,t,r,e){if(!n||!n.length)return[];var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),null!=r&&(n=or(n,r,e)),xt(n,t)},c.forEach=er,c.forEachRight=ur,c.forIn=function(n,t,r){return t=t&&typeof r=="undefined"?t:ht(t,r,3),Ct(n,t,kr)
},c.forInRight=function(n,t,r){return t=ht(t,r,3),jt(n,t,kr)},c.forOwn=function(n,t,r){return t=t&&typeof r=="undefined"?t:ht(t,r,3),Ot(n,t)},c.forOwnRight=function(n,t,r){return t=ht(t,r,3),jt(n,t,Pe)},c.functions=mr,c.groupBy=Te,c.indexBy=Le,c.initial=Zt,c.intersection=function(){for(var n=[],t=-1,u=arguments.length,o=[],i=$t(),a=Ie&&i===r;++t<u;){var l=arguments[t];(Fe(l)||dr(l))&&(n.push(l),o.push(a&&120<=l.length&&Ie(t&&l)))}var u=n.length,a=n[0],f=-1,c=a?a.length:0,s=[],p=o[0];n:for(;++f<c;)if(l=a[f],0>(p?e(p,l):i(s,l))){for(t=u;--t;){var g=o[t];
if(0>(g?e(g,l):i(n[t],l)))continue n}p&&p.push(l),s.push(l)}return s},c.invert=function(n,t){for(var r=-1,e=Pe(n),u=e.length,o={};++r<u;){var i=e[r],a=n[i];t?le.call(o,a)?o[a].push(i):o[a]=[i]:o[a]=i}return o},c.invoke=function(n,t){var r=Vt(arguments,2),e=-1,u=typeof t=="function",o=n&&n.length,i=$r(0>o?0:o>>>0);return bt(n,function(n){var o=u?t:null!=n&&n[t];i[++e]=o?o.apply(n,r):d}),i},c.keys=Pe,c.keysIn=kr,c.map=or,c.mapValues=function(n,t,r){var e={};return t=c.createCallback(t,r,3),Ot(n,function(n,r,u){e[r]=t(n,r,u)
}),e},c.matches=Tr,c.max=ir,c.memoize=function(n,t){if(!_r(n)||t&&!_r(t))throw new Vr(E);var r=function(){var e=r.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return le.call(e,u)?e[u]:e[u]=n.apply(this,arguments)};return r.cache={},r},c.merge=function(n,t,r){if(!n)return n;var e=arguments,u=e.length,o=typeof r;if("number"!=o&&"string"!=o||!e[3]||e[3][r]!==t||(u=2),3<u&&"function"==typeof e[u-2])var i=ht(e[--u-1],e[u--],2);else 2<u&&"function"==typeof e[u-1]&&(i=e[--u]);for(var e=Vt(e,1,u),o=-1,a=[],l=[];++o<u;)St(n,e[o],i,a,l);
}),e},c.matches=Tr,c.max=ir,c.memoize=function(n,t){if(!_r(n)||t&&!_r(t))throw new Vr(E);var r=function(){var e=r.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return le.call(e,u)?e[u]:e[u]=n.apply(this,arguments)};return r.cache={},r},c.merge=function(n,t,r){var e=arguments,u=e.length,o=typeof r;if(!n||2>u)return n;if("number"!=o&&"string"!=o||!e[3]||e[3][r]!==t||(u=2),3<u&&"function"==typeof e[u-2])var i=ht(e[--u-1],e[u--],2);else 2<u&&"function"==typeof e[u-1]&&(i=e[--u]);for(var e=Vt(e,1,u),o=-1,a=[],l=[];++o<u;)St(n,e[o],i,a,l);
return n},c.min=function(n,t,r){var e=1/0,o=e,i=typeof t;if("number"!=i&&"string"!=i||!r||r[t]!==n||(t=null),null==t&&Fe(n))for(r=-1,i=n.length;++r<i;){var a=n[r];a<o&&(o=a)}else t=null==t&&jr(n)?u:c.createCallback(t,r,3),bt(n,function(n,r,u){r=t(n,r,u),(r<e||1/0===r&&r===o)&&(e=r,o=n)});return o},c.negate=hr,c.omit=function(n,t,r){if(typeof t=="function")return t=c.createCallback(t,r,3),Or(n,hr(t));for(var e=xt(arguments,true,false,1),u=e.length;u--;)e[u]=Mr(e[u]);return Or(n,mt(kr(n),e))},c.once=function(n){var t,r;
if(!_r(n))throw new Vr(E);return function(){return t?r:(t=true,r=n.apply(this,arguments),n=null,r)}},c.pairs=function(n){for(var t=-1,r=Pe(n),e=r.length,u=$r(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},c.partial=function(n){if(n)var t=n[O]?n[O][2]:n.length,r=Vt(arguments,1),t=t-r.length;return Ft(n,C,t,null,r)},c.partialRight=function(n){if(n)var t=n[O]?n[O][2]:n.length,r=Vt(arguments,1),t=t-r.length;return Ft(n,j,t,null,null,r)},c.partition=We,c.pick=Or,c.pluck=ar,c.property=Fr,c.pull=function(n){for(var t=0,r=arguments.length,e=n?n.length:0;++t<r;)for(var u=-1,o=arguments[t];++u<e;)n[u]===o&&(ge.call(n,u--,1),e--);
return n},c.range=function(n,t,r){n=+n||0,r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0;var e=-1;t=xe(ee((t-n)/(r||1)),0);for(var u=$r(t);++e<t;)u[e]=n,n+=r;return u},c.reject=function(n,t,r){return t=c.createCallback(t,r,3),tr(n,hr(t))},c.remove=function(n,t,r){var e=-1,u=n?n.length:0,o=[];for(t=c.createCallback(t,r,3);++e<u;)r=n[e],t(r,e,n)&&(o.push(r),ge.call(n,e--,1),u--);return o},c.rest=Mt,c.shuffle=cr,c.slice=Vt,c.sortBy=function(n,t,r){var e=-1,u=n&&n.length,o=t&&Fe(t),i=$r(0>u?0:u>>>0);for(o||(t=c.createCallback(t,r,3)),bt(n,function(n,r,u){if(o)for(r=t.length,u=$r(r);r--;)u[r]=n[t[r]];
else u=t(n,r,u);i[++e]={a:u,b:e,c:n}}),u=i.length,i.sort(o?l:a);u--;)i[u]=i[u].c;return i},c.tap=function(n,t,r){return t.call(r,n),n},c.throttle=function(n,t,r){var e=true,u=true;if(!_r(n))throw new Vr(E);return false===r?e=false:wr(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),lt.leading=e,lt.maxWait=+t,lt.trailing=u,gr(n,t,lt)},c.times=function(n,t,r){n=0>n?0:n>>>0,t=ht(t,r,1),r=-1;for(var e=$r(n);++r<n;)e[r]=t(r);return e},c.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=ne?Se.unindexedChars&&jr(n)?n.split(""):Vt(n):Er(n)
},c.transform=function(n,t,r,e){var u=Fe(n);if(null==r)if(u)r=[];else{var o=n&&n.constructor;r=gt(o&&o.prototype)}return t&&(t=c.createCallback(t,e,4),(u?V:Ot)(n,function(n,e,u){return t(r,n,e,u)})),r},c.union=function(){return Rt(xt(arguments,true,true))},c.uniq=Xt,c.values=Er,c.valuesIn=function(n){return Nt(n,kr)},c.where=function(n,t){return tr(n,Tr(t))},c.without=function(){return mt(arguments[0],Vt(arguments,1))},c.wrap=function(n,t){return Ft(t,C,null,null,[n])},c.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];
},c.transform=function(n,t,r,e){var u=Fe(n);if(null==r)if(u)r=[];else{if(wr(n))var o=n.constructor,o=o&&o.prototype;r=gt(o)}return t&&(t=c.createCallback(t,e,4),(u?V:Ot)(n,function(n,e,u){return t(r,n,e,u)})),r},c.union=function(){return Rt(xt(arguments,true,true))},c.uniq=Xt,c.values=Er,c.valuesIn=function(n){return Nt(n,kr)},c.where=function(n,t){return tr(n,Tr(t))},c.without=function(){return mt(arguments[0],Vt(arguments,1))},c.wrap=function(n,t){return Ft(t,C,null,null,[n])},c.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];
if(Fe(r)||dr(r))var e=e?mt(e,r).concat(mt(r,e)):r}return e?Rt(e):[]},c.zip=Yt,c.zipObject=Gt,c.callback=Rr,c.collect=or,c.each=er,c.eachRight=ur,c.extend=vr,c.methods=mr,c.object=Gt,c.select=tr,c.tail=Mt,c.unique=Xt,c.unzip=Yt,Lr(vr({},c)),c.camelCase=ze,c.capitalize=function(n){return null==n?"":(n=Mr(n),n.charAt(0).toUpperCase()+n.slice(1))},c.clone=function(n,t,r,e){var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),r=typeof r=="function"&&ht(r,e,1),pt(n,t,r)
},c.cloneDeep=function(n,t,r){return t=typeof t=="function"&&ht(t,r,1),pt(n,true,t)},c.contains=Qt,c.endsWith=function(n,t,r){n=null==n?"":Mr(n),t=Mr(t);var e=n.length;return r=(typeof r=="undefined"?e:Ce(0>r?0:+r||0,e))-t.length,0<=r&&n.indexOf(t,r)==r},c.escape=function(n){return null==n?"":Mr(n).replace(L,s)},c.escapeRegExp=Ar,c.every=nr,c.find=rr,c.findIndex=Bt,c.findKey=function(n,t,r){return t=c.createCallback(t,r,3),wt(n,t,Ot,true)},c.findLast=function(n,t,r){return t=c.createCallback(t,r,3),wt(n,t,_t)
},c.findLastIndex=function(n,t,r){var e=n?n.length:0;for(t=c.createCallback(t,r,3);e--;)if(t(n[e],e,n))return e;return-1},c.findLastKey=function(n,t,r){return t=c.createCallback(t,r,3),wt(n,t,Et,true)},c.findWhere=function(n,t){return rr(n,Tr(t))},c.has=function(n,t){return n?le.call(n,t):false},c.identity=Nr,c.indexOf=Ut,c.isArguments=dr,c.isArray=Fe,c.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&te.call(n)==Q||false},c.isDate=function(n){return n&&typeof n=="object"&&te.call(n)==nt||false
@@ -64,6 +64,6 @@ n.replace(l,function(t,r,e,i,l,c){return e||(e=i),f+=n.slice(a,c).replace(M,p),r
var o=r-e.length;if(1>o)return e;if(r=n.slice(0,o),null==u)return r+e;if(Cr(u)){if(n.slice(o).search(u)){var i,a,l=n.slice(0,o);for(u.global||(u=Kr(u.source,(z.exec(u)||"")+"g")),u.lastIndex=0;i=u.exec(l);)a=i.index;r=r.slice(0,null==a?o:a)}}else n.indexOf(u,o)!=o&&(u=r.lastIndexOf(u),-1<u&&(r=r.slice(0,u)));return r+e},c.unescape=function(n){return null==n?"":(n=Mr(n),0>n.indexOf(";")?n:n.replace(T,y))},c.uniqueId=function(n){var t=++A;return Mr(null==n?"":n)+t},c.all=nr,c.any=sr,c.detect=rr,c.foldl=lr,c.foldr=fr,c.include=Qt,c.inject=lr,Lr(function(){var n={};
return Ot(c,function(t,r){c.prototype[r]||(n[r]=t)}),n}(),false),c.first=qt,c.last=Kt,c.sample=function(n,t,r){return n&&typeof n.length!="number"?n=Er(n):Se.unindexedChars&&jr(n)&&(n=n.split("")),null==t||r?(t=n?n.length:0,0<t?n[It(0,t-1)]:d):(n=cr(n),n.length=Ce(0>t?0:+t||0,n.length),n)},c.take=qt,c.takeRight=Kt,c.takeRightWhile=Kt,c.takeWhile=qt,c.head=qt,Ot(c,function(n,t){var r="sample"!==t;c.prototype[t]||(c.prototype[t]=function(t,e){var u=this.__chain__,o=n(this.__wrapped__,t,e);return u||null!=t&&(!e||r&&typeof t=="function")?new q(o,u):o
})}),c.VERSION=k,c.prototype.chain=function(){return this.__chain__=true,this},c.prototype.toJSON=Ht,c.prototype.toString=function(){return Mr(this.__wrapped__)},c.prototype.value=Ht,c.prototype.valueOf=Ht,V(["join","pop","shift"],function(n){var t=Jr[n];c.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);return n?new q(r,n):r}}),V(["push","reverse","sort","unshift"],function(n){var t=Jr[n];c.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),V(["concat","splice"],function(n){var t=Jr[n];
c.prototype[n]=function(){return new q(t.apply(this.__wrapped__,arguments),this.__chain__)}}),Se.spliceObjects||V(["pop","shift","splice"],function(n){var t=Jr[n],r="splice"==n;c.prototype[n]=function(){var n=this.__chain__,e=this.__wrapped__,u=t.apply(e,arguments);return 0===e.length&&delete e[0],n||r?new q(u,n):u}}),c}var d,b=1,_=2,w=4,x=8,C=16,j=32,k="2.4.1",O="__lodash@"+k+"__",E="Expected a function",A=0,S=/^[A-Z]+$/,I=/\b__p\+='';/g,R=/\b(__p\+=)''\+/g,N=/(__e\(.*?\)|\b__t\))\+'';/g,T=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,W=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,P=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,z=/\w*$/,D=/^\s*function[ \n\r\t]+\w/,B=/^0[xX]/,q=/[\xC0-\xFF]/g,U=/($^)/,Z=/[.*+?^${}()|[\]\\]/g,K=/\bthis\b/,M=/['\n\r\u2028\u2029\\]/g,V=/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[a-z]+|[0-9]+/g,J=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",X="Array Boolean Date Error Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),Y="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),G="[object Arguments]",H="[object Array]",Q="[object Boolean]",nt="[object Date]",tt="[object Error]",rt="[object Function]",et="[object Number]",ut="[object Object]",ot="[object RegExp]",it="[object String]",at={};
c.prototype[n]=function(){return new q(t.apply(this.__wrapped__,arguments),this.__chain__)}}),Se.spliceObjects||V(["pop","shift","splice"],function(n){var t=Jr[n],r="splice"==n;c.prototype[n]=function(){var n=this.__chain__,e=this.__wrapped__,u=t.apply(e,arguments);return 0===e.length&&delete e[0],n||r?new q(u,n):u}}),c}var d,b=1,_=2,w=4,x=8,C=16,j=32,k="2.4.1",O="__lodash@"+k+"__",E="Expected a function",A=0,S=/^[A-Z]+$/,I=/\b__p\+='';/g,R=/\b(__p\+=)''\+/g,N=/(__e\(.*?\)|\b__t\))\+'';/g,T=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,W=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,P=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,z=/\w*$/,D=/^\s*function[ \n\r\t]+\w/,B=/^0[xX]/,q=/[\xC0-\xFF]/g,U=/($^)/,Z=/[.*+?^${}()|[\]\/\\]/g,K=/\bthis\b/,M=/['\n\r\u2028\u2029\\]/g,V=/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[a-z]+|[0-9]+/g,J=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",X="Array Boolean Date Error Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),Y="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),G="[object Arguments]",H="[object Array]",Q="[object Boolean]",nt="[object Date]",tt="[object Error]",rt="[object Function]",et="[object Number]",ut="[object Object]",ot="[object RegExp]",it="[object String]",at={};
at[rt]=false,at[G]=at[H]=at[Q]=at[nt]=at[et]=at[ut]=at[ot]=at[it]=true;var lt={leading:false,maxWait:0,trailing:false},ft={configurable:false,enumerable:false,value:null,writable:false},ct={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},st={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},pt={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"AE",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss","\xd7":" ","\xf7":" "},gt={"function":true,object:true},ht={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vt=gt[typeof window]&&window||this,yt=gt[typeof exports]&&exports&&!exports.nodeType&&exports,gt=gt[typeof module]&&module&&!module.nodeType&&module,mt=yt&&gt&&typeof global=="object"&&global;
!mt||mt.global!==mt&&mt.window!==mt&&mt.self!==mt||(vt=mt);var mt=gt&&gt.exports===yt&&yt,dt=m();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(vt._=dt, define(function(){return dt})):yt&&gt?mt?(gt.exports=dt)._=dt:yt._=dt:vt._=dt}).call(this);

35
dist/lodash.js vendored
View File

@@ -76,7 +76,7 @@
* See this [article on `RegExp` characters](http://www.regular-expressions.info/characters.html#special)
* for more details.
*/
var reRegExpChars = /[.*+?^${}()|[\]\\]/g;
var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g;
/** Used to detect functions containing a `this` reference */
var reThis = /\bthis\b/;
@@ -299,8 +299,8 @@
}
/**
* Used by `_.max` and `_.min` as the default callback when a given
* collection is a string value.
* Used by `_.max` and `_.min` as the default callback when a given collection
* is a string value.
*
* @private
* @param {string} string The string to inspect.
@@ -311,7 +311,8 @@
}
/**
* Gets the index of the first character of `string` that is not found in `chars`.
* Used by `_.trim` and `_.trimLeft` to get the index of the first character
* of `string` that is not found in `chars`.
*
* @private
* @param {string} string The string to inspect.
@@ -331,7 +332,8 @@
}
/**
* Gets the index of the last character of `string` that is not found in `chars`.
* Used by `_.trim` and `_.trimRight` to get the index of the last character
* of `string` that is not found in `chars`.
*
* @private
* @param {string} string The string to inspect.
@@ -449,7 +451,8 @@
}
/**
* Gets the index of the first non-whitespace character of `string`.
* Used by `_.trim` and `_.trimLeft` to get the index of the first non-whitespace
* character of `string`.
*
* @private
* @param {string} string The string to inspect.
@@ -470,7 +473,8 @@
}
/**
* Gets the index of the last non-whitespace character of `string`.
* Used by `_.trim` and `_.trimRight` to get the index of the last non-whitespace
* character of `string`.
*
* @private
* @param {string} string The string to inspect.
@@ -5538,7 +5542,7 @@
* // => { 'name': 'barney', 'employer': 'slate' }
*/
function defaults(object) {
if (!object || arguments.length < 2) {
if (!object) {
return object;
}
var args = slice(arguments);
@@ -6157,7 +6161,7 @@
// and avoid a V8 bug
// https://code.google.com/p/v8/issues/detail?id=2291
var type = typeof value;
return (value && (type == 'function' || type == 'object')) || false;
return type == 'function' || (value && type == 'object') || false;
}
/**
@@ -6521,13 +6525,13 @@
* // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot] }
*/
function merge(object, source, guard) {
if (!object) {
return object;
}
var args = arguments,
length = args.length,
type = typeof guard;
if (!object || length < 2) {
return object;
}
// enables use as a callback for functions like `_.reduce`
if ((type == 'number' || type == 'string') && args[3] && args[3][guard] === source) {
length = 2;
@@ -6706,9 +6710,10 @@
if (isArr) {
accumulator = [];
} else {
var ctor = object && object.constructor,
proto = ctor && ctor.prototype;
if (isObject(object)) {
var ctor = object.constructor,
proto = ctor && ctor.prototype;
}
accumulator = baseCreate(proto);
}
}

14
dist/lodash.min.js vendored
View File

@@ -28,10 +28,10 @@ for(t||!r||Nr(n[0])||(t=[]);++e<r;){var o=n[e];t?u[o]=t[e]:o&&(u[o[0]]=o[1])}ret
a>o&&(o=a)}else t=null==t&&je(n)?u:c.createCallback(t,e,3),mt(n,function(n,e,u){e=t(n,e,u),(e>r||-1/0===e&&e===o)&&(r=e,o=n)});return o}function oe(n,t){return re(n,We(t))}function ie(n,t,e,r){var u=3>arguments.length;t=c.createCallback(t,r,4);var o=-1,i=n?n.length:0;if(typeof i=="number"&&-1<i&&i<=Ye)for(u&&i&&(e=n[++o]);++o<i;)e=t(e,n[o],o,n);else mt(n,function(n,r,o){e=u?(u=false,n):t(e,n,r,o)});return e}function ae(n,t,e,r){var u=3>arguments.length;return t=c.createCallback(t,r,4),dt(n,function(n,r,o){e=u?(u=false,n):t(e,n,r,o)
}),e}function fe(n){var t=-1,e=n&&n.length,r=Fe(0>e?0:e>>>0);return mt(n,function(n){var e=Et(0,++t);r[t]=r[e],r[e]=n}),r}function le(n,t,e){var r;t=c.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Ye){for(;++e<u;)if(t(n[e],e,n))return true}else mt(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function ce(n,t){if(3>arguments.length)return Wt(n,d,null,t);if(n)var e=n[C]?n[C][2]:n.length,r=Kt(arguments,2),e=e-r.length;return Wt(n,d|j,e,t,r)}function pe(n,t,e){function r(){c&&nr(c),i=c=p=m,(g||h!==t)&&(s=zr(),a=n.apply(l,o),c||i||(o=l=null))
}function u(){var e=t-(zr()-f);0>=e||e>t?(i&&nr(i),e=p,i=c=p=m,e&&(s=zr(),a=n.apply(l,o),c||i||(o=l=null))):c=fr(u,e)}var o,i,a,f,l,c,p,s=0,h=false,g=true;if(!de(n))throw new Pe(O);if(t=0>t?0:t,true===e)var v=true,g=false;else be(e)&&(v=e.leading,h="maxWait"in e&&dr(t,+e.maxWait||0),g="trailing"in e?e.trailing:g);return function(){if(o=arguments,f=zr(),l=this,p=g&&(c||!v),false===h)var e=v&&!c;else{i||v||(s=f);var y=h-(f-s),m=0>=y||y>h;m?(i&&(i=nr(i)),s=f,a=n.apply(l,o)):i||(i=fr(r,y))}return m&&c?c=nr(c):c||t===h||(c=fr(u,t)),e&&(m=true,a=n.apply(l,o)),!m||c||i||(o=l=null),a
}}function se(n){if(!de(n))throw new Pe(O);return function(){return!n.apply(this,arguments)}}function he(n,t,e){var r=arguments;if(!n||2>r.length)return n;var u=0,o=r.length,i=typeof e;if("number"!=i&&"string"!=i||!r[3]||r[3][e]!==t||(o=2),3<o&&"function"==typeof r[o-2])var a=st(r[--o-1],r[o--],2);else 2<o&&"function"==typeof r[o-1]&&(a=r[--o]);for(;++u<o;){t=r[u];for(var i=-1,f=Tr(t),l=f.length;++i<l;){var c=f[i];n[c]=a?a(n[c],t[c]):t[c]}}return n}function ge(t){if(!t||2>arguments.length)return t;
var e=Kt(arguments);return e.push(n),he.apply(null,e)}function ve(n){var t=[];return xt(n,function(n,e){de(n)&&t.push(e)}),t.sort()}function ye(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ge.call(n)==X||false}function me(n){return n&&typeof n=="object"&&1===n.nodeType&&-1<Ge.call(n).indexOf("Element")||false}function de(n){return typeof n=="function"}function be(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function _e(n){var t=typeof n;return"number"==t||n&&"object"==t&&Ge.call(n)==tt||false
}function we(n){return n&&typeof n=="object"&&Ge.call(n)==rt||false}function je(n){return typeof n=="string"||n&&typeof n=="object"&&Ge.call(n)==ut||false}function xe(n){if(!be(n))return[];for(var t,e=n.length,e=(typeof e=="number"&&0<e&&(Nr(n)||kr.nonEnumArgs&&ye(n))&&e)>>>0,r=n.constructor,u=-1,r=r&&n===r.prototype,o=e-1,i=Fe(e),a=0<e;++u<e;)i[u]=Ze(u);for(var f in n)r&&"constructor"==f||a&&(t=+f,-1<t&&t<=o&&0==t%1)||i.push(f);return i}function ke(n,t,e){var r={};if(typeof t!="function")for(var u=-1,o=_t(arguments,true,false,1),i=be(n)?o.length:0;++u<i;){var a=o[u];
a in n&&(r[a]=n[a])}else t=c.createCallback(t,e,3),xt(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r}function Ce(n){return Rt(n,Tr)}function Oe(n){return null==n?"":Ze(n).replace(Z,"\\$&")}function Ae(n,t){var e="";if(t=+t,1>t||null==n||!vr(t))return e;n=Ze(n);do t%2&&(e+=n),t=tr(t/2),n+=n;while(t);return e}function Ee(n,t){return(n=null==n?"":Ze(n))?null==t?n.slice(h(n),g(n)+1):(t=Ze(t),n.slice(o(n,t),i(n,t)+1)):n}function Ie(n,t,e){var r=typeof n;return"function"==r||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||st(n,t,e):"object"==r?Ne(n):We(n)
}}function se(n){if(!de(n))throw new Pe(O);return function(){return!n.apply(this,arguments)}}function he(n,t,e){var r=arguments;if(!n||2>r.length)return n;var u=0,o=r.length,i=typeof e;if("number"!=i&&"string"!=i||!r[3]||r[3][e]!==t||(o=2),3<o&&"function"==typeof r[o-2])var a=st(r[--o-1],r[o--],2);else 2<o&&"function"==typeof r[o-1]&&(a=r[--o]);for(;++u<o;){t=r[u];for(var i=-1,f=Tr(t),l=f.length;++i<l;){var c=f[i];n[c]=a?a(n[c],t[c]):t[c]}}return n}function ge(t){if(!t)return t;var e=Kt(arguments);
return e.push(n),he.apply(null,e)}function ve(n){var t=[];return xt(n,function(n,e){de(n)&&t.push(e)}),t.sort()}function ye(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ge.call(n)==X||false}function me(n){return n&&typeof n=="object"&&1===n.nodeType&&-1<Ge.call(n).indexOf("Element")||false}function de(n){return typeof n=="function"}function be(n){var t=typeof n;return"function"==t||n&&"object"==t||false}function _e(n){var t=typeof n;return"number"==t||n&&"object"==t&&Ge.call(n)==tt||false}function we(n){return n&&typeof n=="object"&&Ge.call(n)==rt||false
}function je(n){return typeof n=="string"||n&&typeof n=="object"&&Ge.call(n)==ut||false}function xe(n){if(!be(n))return[];for(var t,e=n.length,e=(typeof e=="number"&&0<e&&(Nr(n)||kr.nonEnumArgs&&ye(n))&&e)>>>0,r=n.constructor,u=-1,r=r&&n===r.prototype,o=e-1,i=Fe(e),a=0<e;++u<e;)i[u]=Ze(u);for(var f in n)r&&"constructor"==f||a&&(t=+f,-1<t&&t<=o&&0==t%1)||i.push(f);return i}function ke(n,t,e){var r={};if(typeof t!="function")for(var u=-1,o=_t(arguments,true,false,1),i=be(n)?o.length:0;++u<i;){var a=o[u];a in n&&(r[a]=n[a])
}else t=c.createCallback(t,e,3),xt(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r}function Ce(n){return Rt(n,Tr)}function Oe(n){return null==n?"":Ze(n).replace(Z,"\\$&")}function Ae(n,t){var e="";if(t=+t,1>t||null==n||!vr(t))return e;n=Ze(n);do t%2&&(e+=n),t=tr(t/2),n+=n;while(t);return e}function Ee(n,t){return(n=null==n?"":Ze(n))?null==t?n.slice(h(n),g(n)+1):(t=Ze(t),n.slice(o(n,t),i(n,t)+1)):n}function Ie(n,t,e){var r=typeof n;return"function"==r||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||st(n,t,e):"object"==r?Ne(n):We(n)
}function Re(n){return n}function Ne(n){var t=Tr(n),e=t.length,r=t[0],u=e&&n[r];return 1!=e||u!==u||be(u)?function(r){var u=e;if(u&&!r)return false;for(var o=true;u--&&(o=t[u],o=ur.call(r,o)&&Ot(r[o],n[o],null,true)););return o}:function(n){return n&&ur.call(n,r)?(n=n[r],u===n&&(0!==u||1/u==1/n)):false}}function Se(n,t,e){var r=true,u=t&&ve(t);t&&(e||u.length)||(null==e&&(e=t),t=n,n=c,u=ve(t)),false===e?r=false:be(e)&&"chain"in e&&(r=e.chain),e=-1;for(var o=de(n),i=u?u.length:0;++e<i;){var a=u[e],f=n[a]=t[a];o&&(n.prototype[a]=function(t){return function(){var e=this.__chain__,u=this.__wrapped__,o=[u];
if(or.apply(o,arguments),o=t.apply(n,o),r||e){if(u===o&&be(o))return this;o=new n(o),o.__chain__=e}return o}}(f))}}function Te(){}function We(n){return function(t){return null==t?m:t[n]}}t=t?yt.defaults(ht.Object(),t,yt.pick(ht,J)):ht;var Fe=t.Array,$e=t.Boolean,ze=t.Date,De=t.Function,Le=t.Math,Be=t.Number,qe=t.Object,Ue=t.RegExp,Ze=t.String,Pe=t.TypeError,Ke=Fe.prototype,Me=qe.prototype,Ve=Ze.prototype,Je=(Je=t.window)&&Je.document,Xe=t._,Ye=Le.pow(2,53)-1,Ge=Me.toString,He=Ue("^"+Oe(Ge).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qe=Le.ceil,nr=t.clearTimeout,tr=Le.floor,er=De.prototype.toString,rr=$t(rr=qe.getPrototypeOf)&&rr,ur=Me.hasOwnProperty,or=Ke.push,ir=Me.propertyIsEnumerable,ar=$t(ar=t.Set)&&ar,fr=t.setTimeout,lr=Ke.splice,cr=Ke.unshift,pr=function(){try{var n={},t=$t(t=qe.defineProperty)&&t,e=t(n,n,n)&&t
}catch(r){}return e}(),sr=$t(sr=Ve.contains)&&sr,hr=$t(hr=qe.create)&&hr,gr=$t(gr=Fe.isArray)&&gr,vr=t.isFinite,yr=t.isNaN,mr=$t(mr=qe.keys)&&mr,dr=Le.max,br=Le.min,_r=$t(_r=ze.now)&&_r,wr=t.parseInt,jr=Le.random,xr={};xr[Y]=Fe,xr[G]=$e,xr[H]=ze,xr[nt]=De,xr[et]=qe,xr[tt]=Be,xr[rt]=Ue,xr[ut]=Ze,q.prototype=c.prototype;var kr=c.support={};!function(x_){for(var n in arguments);kr.funcDecomp=!$t(t.WinRTError)&&P.test(y),kr.funcNames=typeof De.name=="string";try{kr.dom=11===Je.createDocumentFragment().nodeType
@@ -43,12 +43,12 @@ o&&(u[r++]=o)}return u},c.compose=function(){for(var n=arguments,t=n.length,e=t;
var t=Kt(arguments,1);return fr(function(){n.apply(m,t)},1)},c.delay=function(n,t){if(!de(n))throw new Pe(O);var e=Kt(arguments,2);return fr(function(){n.apply(m,e)},t)},c.difference=function(){for(var n=-1,t=arguments.length;++n<t;){var e=arguments[n];if(Nr(e)||ye(e))break}return vt(arguments[n],_t(arguments,true,true,++n))},c.drop=Pt,c.dropRight=Ut,c.dropRightWhile=Ut,c.dropWhile=Pt,c.filter=Qt,c.flatten=function(n,t,e,r){if(!n||!n.length)return[];var u=typeof t;return"boolean"!=u&&null!=t&&(r=e,e=t,t=false,"number"!=u&&"string"!=u||!r||r[e]!==n||(e=null)),null!=e&&(n=re(n,e,r)),_t(n,t)
},c.forEach=te,c.forEachRight=ee,c.forIn=function(n,t,e){return t=t&&typeof e=="undefined"?t:st(t,e,3),wt(n,t,xe)},c.forInRight=function(n,t,e){return t=st(t,e,3),jt(n,t,xe)},c.forOwn=function(n,t,e){return t=t&&typeof e=="undefined"?t:st(t,e,3),kt(n,t)},c.forOwnRight=function(n,t,e){return t=st(t,e,3),jt(n,t,Tr)},c.functions=ve,c.groupBy=Er,c.indexBy=Ir,c.initial=Ut,c.intersection=function(){for(var n=[],t=-1,u=arguments.length,o=[],i=Ft(),a=Cr&&i===e;++t<u;){var f=arguments[t];(Nr(f)||ye(f))&&(n.push(f),o.push(a&&120<=f.length&&Cr(t&&f)))
}var u=n.length,a=n[0],l=-1,c=a?a.length:0,p=[],s=o[0];n:for(;++l<c;)if(f=a[l],0>(s?r(s,f):i(p,f))){for(t=u;--t;){var h=o[t];if(0>(h?r(h,f):i(n[t],f)))continue n}s&&s.push(f),p.push(f)}return p},c.invert=function(n,t){for(var e=-1,r=Tr(n),u=r.length,o={};++e<u;){var i=r[e],a=n[i];t?ur.call(o,a)?o[a].push(i):o[a]=[i]:o[a]=i}return o},c.invoke=function(n,t){var e=Kt(arguments,2),r=-1,u=typeof t=="function",o=n&&n.length,i=Fe(0>o?0:o>>>0);return mt(n,function(n){var o=u?t:null!=n&&n[t];i[++r]=o?o.apply(n,e):m
}),i},c.keys=Tr,c.keysIn=xe,c.map=re,c.mapValues=function(n,t,e){var r={};return t=c.createCallback(t,e,3),kt(n,function(n,e,u){r[e]=t(n,e,u)}),r},c.matches=Ne,c.max=ue,c.memoize=function(n,t){function e(){var r=e.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return ur.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}if(!de(n)||t&&!de(t))throw new Pe(O);return e.cache={},e},c.merge=function(n,t,e){if(!n)return n;var r=arguments,u=r.length,o=typeof e;if("number"!=o&&"string"!=o||!r[3]||r[3][e]!==t||(u=2),3<u&&"function"==typeof r[u-2])var i=st(r[--u-1],r[u--],2);
}),i},c.keys=Tr,c.keysIn=xe,c.map=re,c.mapValues=function(n,t,e){var r={};return t=c.createCallback(t,e,3),kt(n,function(n,e,u){r[e]=t(n,e,u)}),r},c.matches=Ne,c.max=ue,c.memoize=function(n,t){function e(){var r=e.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return ur.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}if(!de(n)||t&&!de(t))throw new Pe(O);return e.cache={},e},c.merge=function(n,t,e){var r=arguments,u=r.length,o=typeof e;if(!n||2>u)return n;if("number"!=o&&"string"!=o||!r[3]||r[3][e]!==t||(u=2),3<u&&"function"==typeof r[u-2])var i=st(r[--u-1],r[u--],2);
else 2<u&&"function"==typeof r[u-1]&&(i=r[--u]);for(var r=Kt(r,1,u),o=-1,a=[],f=[];++o<u;)At(n,r[o],i,a,f);return n},c.min=function(n,t,e){var r=1/0,o=r,i=typeof t;if("number"!=i&&"string"!=i||!e||e[t]!==n||(t=null),null==t&&Nr(n))for(e=-1,i=n.length;++e<i;){var a=n[e];a<o&&(o=a)}else t=null==t&&je(n)?u:c.createCallback(t,e,3),mt(n,function(n,e,u){e=t(n,e,u),(e<r||1/0===e&&e===o)&&(r=e,o=n)});return o},c.negate=se,c.omit=function(n,t,e){if(typeof t=="function")return t=c.createCallback(t,e,3),ke(n,se(t));
for(var r=_t(arguments,true,false,1),u=r.length;u--;)r[u]=Ze(r[u]);return ke(n,vt(xe(n),r))},c.once=function(n){var t,e;if(!de(n))throw new Pe(O);return function(){return t?e:(t=true,e=n.apply(this,arguments),n=null,e)}},c.pairs=function(n){for(var t=-1,e=Tr(n),r=e.length,u=Fe(r);++t<r;){var o=e[t];u[t]=[o,n[o]]}return u},c.partial=function(n){if(n)var t=n[C]?n[C][2]:n.length,e=Kt(arguments,1),t=t-e.length;return Wt(n,j,t,null,e)},c.partialRight=function(n){if(n)var t=n[C]?n[C][2]:n.length,e=Kt(arguments,1),t=t-e.length;
return Wt(n,x,t,null,null,e)},c.partition=Rr,c.pick=ke,c.pluck=oe,c.property=We,c.pull=function(n){for(var t=0,e=arguments.length,r=n?n.length:0;++t<e;)for(var u=-1,o=arguments[t];++u<r;)n[u]===o&&(lr.call(n,u--,1),r--);return n},c.range=function(n,t,e){n=+n||0,e=null==e?1:+e||0,null==t?(t=n,n=0):t=+t||0;var r=-1;t=dr(Qe((t-n)/(e||1)),0);for(var u=Fe(t);++r<t;)u[r]=n,n+=e;return u},c.reject=function(n,t,e){return t=c.createCallback(t,e,3),Qt(n,se(t))},c.remove=function(n,t,e){var r=-1,u=n?n.length:0,o=[];
for(t=c.createCallback(t,e,3);++r<u;)e=n[r],t(e,r,n)&&(o.push(e),lr.call(n,r--,1),u--);return o},c.rest=Pt,c.shuffle=fe,c.slice=Kt,c.sortBy=function(n,t,e){var r=-1,u=n&&n.length,o=t&&Nr(t),i=Fe(0>u?0:u>>>0);for(o||(t=c.createCallback(t,e,3)),mt(n,function(n,e,u){if(o)for(e=t.length,u=Fe(e);e--;)u[e]=n[t[e]];else u=t(n,e,u);i[++r]={a:u,b:r,c:n}}),u=i.length,i.sort(o?f:a);u--;)i[u]=i[u].c;return i},c.tap=function(n,t,e){return t.call(e,n),n},c.throttle=function(n,t,e){var r=true,u=true;if(!de(n))throw new Pe(O);
return false===e?r=false:be(e)&&(r="leading"in e?!!e.leading:r,u="trailing"in e?!!e.trailing:u),it.leading=r,it.maxWait=+t,it.trailing=u,pe(n,t,it)},c.times=function(n,t,e){n=0>n?0:n>>>0,t=st(t,e,1),e=-1;for(var r=Fe(n);++e<n;)r[e]=t(e);return r},c.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=Ye?Kt(n):Ce(n)},c.transform=function(n,t,e,r){var u=Nr(n);if(null==e)if(u)e=[];else{var o=n&&n.constructor;e=pt(o&&o.prototype)}return t&&(t=c.createCallback(t,r,4),(u?M:kt)(n,function(n,r,u){return t(e,n,r,u)
return false===e?r=false:be(e)&&(r="leading"in e?!!e.leading:r,u="trailing"in e?!!e.trailing:u),it.leading=r,it.maxWait=+t,it.trailing=u,pe(n,t,it)},c.times=function(n,t,e){n=0>n?0:n>>>0,t=st(t,e,1),e=-1;for(var r=Fe(n);++e<n;)r[e]=t(e);return r},c.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=Ye?Kt(n):Ce(n)},c.transform=function(n,t,e,r){var u=Nr(n);if(null==e)if(u)e=[];else{if(be(n))var o=n.constructor,o=o&&o.prototype;e=pt(o)}return t&&(t=c.createCallback(t,r,4),(u?M:kt)(n,function(n,r,u){return t(e,n,r,u)
})),e},c.union=function(){return It(_t(arguments,true,true))},c.uniq=Vt,c.values=Ce,c.valuesIn=function(n){return Rt(n,xe)},c.where=function(n,t){return Qt(n,Ne(t))},c.without=function(){return vt(arguments[0],Kt(arguments,1))},c.wrap=function(n,t){return Wt(t,j,null,null,[n])},c.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var e=arguments[n];if(Nr(e)||ye(e))var r=r?vt(r,e).concat(vt(e,r)):e}return r?It(r):[]},c.zip=Jt,c.zipObject=Xt,c.callback=Ie,c.collect=re,c.each=te,c.eachRight=ee,c.extend=he,c.methods=ve,c.object=Xt,c.select=Qt,c.tail=Pt,c.unique=Vt,c.unzip=Jt,Se(he({},c)),c.camelCase=Wr,c.capitalize=function(n){return null==n?"":(n=Ze(n),n.charAt(0).toUpperCase()+n.slice(1))
},c.clone=function(n,t,e,r){var u=typeof t;return"boolean"!=u&&null!=t&&(r=e,e=t,t=false,"number"!=u&&"string"!=u||!r||r[e]!==n||(e=null)),e=typeof e=="function"&&st(e,r,1),ct(n,t,e)},c.cloneDeep=function(n,t,e){return t=typeof t=="function"&&st(t,e,1),ct(n,true,t)},c.contains=Gt,c.endsWith=function(n,t,e){n=null==n?"":Ze(n),t=Ze(t);var r=n.length;return e=(typeof e=="undefined"?r:br(0>e?0:+e||0,r))-t.length,0<=e&&n.indexOf(t,e)==e},c.escape=function(n){return null==n?"":Ze(n).replace(T,p)},c.escapeRegExp=Oe,c.every=Ht,c.find=ne,c.findIndex=Lt,c.findKey=function(n,t,e){return t=c.createCallback(t,e,3),bt(n,t,kt,true)
},c.findLast=function(n,t,e){return t=c.createCallback(t,e,3),bt(n,t,dt)},c.findLastIndex=function(n,t,e){var r=n?n.length:0;for(t=c.createCallback(t,e,3);r--;)if(t(n[r],r,n))return r;return-1},c.findLastKey=function(n,t,e){return t=c.createCallback(t,e,3),bt(n,t,Ct,true)},c.findWhere=function(n,t){return ne(n,Ne(t))},c.has=function(n,t){return n?ur.call(n,t):false},c.identity=Re,c.indexOf=qt,c.isArguments=ye,c.isArray=Nr,c.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Ge.call(n)==G||false
@@ -61,6 +61,6 @@ n.replace(f,function(t,e,r,i,f,c){return r||(r=i),l+=n.slice(a,c).replace(K,s),e
var o=e-r.length;if(1>o)return r;if(e=n.slice(0,o),null==u)return e+r;if(we(u)){if(n.slice(o).search(u)){var i,a,f=n.slice(0,o);for(u.global||(u=Ue(u.source,(D.exec(u)||"")+"g")),u.lastIndex=0;i=u.exec(f);)a=i.index;e=e.slice(0,null==a?o:a)}}else n.indexOf(u,o)!=o&&(u=e.lastIndexOf(u),-1<u&&(e=e.slice(0,u)));return e+r},c.unescape=function(n){return null==n?"":(n=Ze(n),0>n.indexOf(";")?n:n.replace(S,v))},c.uniqueId=function(n){var t=++A;return Ze(null==n?"":n)+t},c.all=Ht,c.any=le,c.detect=ne,c.foldl=ie,c.foldr=ae,c.include=Gt,c.inject=ie,Se(function(){var n={};
return kt(c,function(t,e){c.prototype[e]||(n[e]=t)}),n}(),false),c.first=Bt,c.last=Zt,c.sample=function(n,t,e){return n&&typeof n.length!="number"&&(n=Ce(n)),null==t||e?(t=n?n.length:0,0<t?n[Et(0,t-1)]:m):(n=fe(n),n.length=br(0>t?0:+t||0,n.length),n)},c.take=Bt,c.takeRight=Zt,c.takeRightWhile=Zt,c.takeWhile=Bt,c.head=Bt,kt(c,function(n,t){var e="sample"!==t;c.prototype[t]||(c.prototype[t]=function(t,r){var u=this.__chain__,o=n(this.__wrapped__,t,r);return u||null!=t&&(!r||e&&typeof t=="function")?new q(o,u):o
})}),c.VERSION=k,c.prototype.chain=function(){return this.__chain__=true,this},c.prototype.toJSON=Yt,c.prototype.toString=function(){return Ze(this.__wrapped__)},c.prototype.value=Yt,c.prototype.valueOf=Yt,M(["join","pop","shift"],function(n){var t=Ke[n];c.prototype[n]=function(){var n=this.__chain__,e=t.apply(this.__wrapped__,arguments);return n?new q(e,n):e}}),M(["push","reverse","sort","unshift"],function(n){var t=Ke[n];c.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),M(["concat","splice"],function(n){var t=Ke[n];
c.prototype[n]=function(){return new q(t.apply(this.__wrapped__,arguments),this.__chain__)}}),c}var m,d=1,b=2,_=4,w=8,j=16,x=32,k="2.4.1",C="__lodash@"+k+"__",O="Expected a function",A=0,E=/^[A-Z]+$/,I=/\b__p\+='';/g,R=/\b(__p\+=)''\+/g,N=/(__e\(.*?\)|\b__t\))\+'';/g,S=/&(?:amp|lt|gt|quot|#39);/g,T=/[&<>"']/g,W=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,z=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,D=/\w*$/,L=/^\s*function[ \n\r\t]+\w/,B=/^0[xX]/,q=/[\xC0-\xFF]/g,U=/($^)/,Z=/[.*+?^${}()|[\]\\]/g,P=/\bthis\b/,K=/['\n\r\u2028\u2029\\]/g,M=/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[a-z]+|[0-9]+/g,V=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",J="Array Boolean Date Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),X="[object Arguments]",Y="[object Array]",G="[object Boolean]",H="[object Date]",Q="[object Error]",nt="[object Function]",tt="[object Number]",et="[object Object]",rt="[object RegExp]",ut="[object String]",ot={};
c.prototype[n]=function(){return new q(t.apply(this.__wrapped__,arguments),this.__chain__)}}),c}var m,d=1,b=2,_=4,w=8,j=16,x=32,k="2.4.1",C="__lodash@"+k+"__",O="Expected a function",A=0,E=/^[A-Z]+$/,I=/\b__p\+='';/g,R=/\b(__p\+=)''\+/g,N=/(__e\(.*?\)|\b__t\))\+'';/g,S=/&(?:amp|lt|gt|quot|#39);/g,T=/[&<>"']/g,W=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,z=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,D=/\w*$/,L=/^\s*function[ \n\r\t]+\w/,B=/^0[xX]/,q=/[\xC0-\xFF]/g,U=/($^)/,Z=/[.*+?^${}()|[\]\/\\]/g,P=/\bthis\b/,K=/['\n\r\u2028\u2029\\]/g,M=/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[a-z]+|[0-9]+/g,V=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",J="Array Boolean Date Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),X="[object Arguments]",Y="[object Array]",G="[object Boolean]",H="[object Date]",Q="[object Error]",nt="[object Function]",tt="[object Number]",et="[object Object]",rt="[object RegExp]",ut="[object String]",ot={};
ot[nt]=false,ot[X]=ot[Y]=ot[G]=ot[H]=ot[tt]=ot[et]=ot[rt]=ot[ut]=true;var it={leading:false,maxWait:0,trailing:false},at={configurable:false,enumerable:false,value:null,writable:false},ft={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},lt={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ct={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"AE",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss","\xd7":" ","\xf7":" "},pt={"function":true,object:true},st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=pt[typeof window]&&window||this,gt=pt[typeof exports]&&exports&&!exports.nodeType&&exports,pt=pt[typeof module]&&module&&!module.nodeType&&module,vt=gt&&pt&&typeof global=="object"&&global;
!vt||vt.global!==vt&&vt.window!==vt&&vt.self!==vt||(ht=vt);var vt=pt&&pt.exports===gt&&gt,yt=y();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ht._=yt, define(function(){return yt})):gt&&pt?vt?(pt.exports=yt)._=yt:gt._=yt:ht._=yt}).call(this);

View File

@@ -52,7 +52,7 @@
* See this [article on `RegExp` characters](http://www.regular-expressions.info/characters.html#special)
* for more details.
*/
var reRegExpChars = /[.*+?^${}()|[\]\\]/g;
var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g;
/** Used to match unescaped characters in compiled string literals */
var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
@@ -4197,7 +4197,7 @@
// and avoid a V8 bug
// https://code.google.com/p/v8/issues/detail?id=2291
var type = typeof value;
return (value && (type == 'function' || type == 'object')) || false;
return type == 'function' || (value && type == 'object') || false;
}
/**
@@ -4297,9 +4297,7 @@
* // => false
*/
function isRegExp(value) {
var type = typeof value;
return (value && (type == 'function' || type == 'object') &&
toString.call(value) == regexpClass) || false;
return (isObject(value) && toString.call(value) == regexpClass) || false;
}
/**

View File

@@ -18,9 +18,9 @@ r=or(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Pr)for(;++t<
r=or(r,e,4);var o=-1,i=n?n.length:0;if(typeof i=="number"&&-1<i&&i<=Pr)for(u&&i&&(t=n[++o]);++o<i;)t=r(t,n[o],o,n);else g(n,function(n,e,o){t=u?(u=false,n):r(t,n,e,o)});return t}function P(n,r,t,e){var u=3>arguments.length;return r=or(r,e,4),h(n,function(n,e,o){t=u?(u=false,n):r(t,n,e,o)}),t}function U(n){var r=-1,t=n&&n.length,e=Array(0>t?0:t>>>0);return g(n,function(n){var t=_(++r);e[r]=e[t],e[t]=n}),e}function V(n,r,t){var e;r=or(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Pr){for(;++t<u;)if(r(n[t],t,n))return true
}else g(n,function(n,t,u){return(e=r(n,t,u))&&hr});return!!e}function G(n,r){return 3>arguments.length?x(n,pr,r):x(n,pr|gr,r,N(arguments,2))}function H(n,r,t){function e(){l&&clearTimeout(l),i=l=p=lr,(h||g!==r)&&(s=yt(),f=n.apply(c,o),l||i||(o=c=null))}function u(){var t=r-(yt()-a);0>=t||t>r?(i&&clearTimeout(i),t=p,i=l=p=lr,t&&(s=yt(),f=n.apply(c,o),l||i||(o=c=null))):l=setTimeout(u,t)}var o,i,f,a,c,l,p,s=0,g=false,h=true;if(!Y(n))throw new TypeError(vr);if(r=0>r?0:r,true===t)var v=true,h=false;else Z(t)&&(v=t.leading,g="maxWait"in t&&et(r,+t.maxWait||0),h="trailing"in t?t.trailing:h);
return function(){if(o=arguments,a=yt(),c=this,p=h&&(l||!v),false===g)var t=v&&!l;else{i||v||(s=a);var y=g-(a-s),m=0>=y||y>g;m?(i&&(i=clearTimeout(i)),s=a,f=n.apply(c,o)):i||(i=setTimeout(e,y))}return m&&l?l=clearTimeout(l):l||r===g||(l=setTimeout(u,r)),t&&(m=true,f=n.apply(c,o)),!m||l||i||(o=c=null),f}}function J(n){if(!Y(n))throw new TypeError(vr);return function(){return!n.apply(this,arguments)}}function K(n,r,t){if(!n)return n;var e=arguments,u=0,o=e.length,i=typeof t;for("number"!=i&&"string"!=i||!e[3]||e[3][t]!==r||(o=2);++u<o;){r=e[u];
for(var f in r)n[f]=r[f]}return n}function L(n,r,t){if(!n)return n;var e=arguments,u=0,o=e.length,i=typeof t;for("number"!=i&&"string"!=i||!e[3]||e[3][t]!==r||(o=2);++u<o;){r=e[u];for(var f in r)"undefined"==typeof n[f]&&(n[f]=r[f])}return n}function Q(n){var r=[];return b(n,function(n,t){Y(n)&&r.push(t)}),r.sort()}function X(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ur.call(n)==jr||false}function Y(n){return typeof n=="function"}function Z(n){var r=typeof n;return n&&("function"==r||"object"==r)||false
for(var f in r)n[f]=r[f]}return n}function L(n,r,t){if(!n)return n;var e=arguments,u=0,o=e.length,i=typeof t;for("number"!=i&&"string"!=i||!e[3]||e[3][t]!==r||(o=2);++u<o;){r=e[u];for(var f in r)"undefined"==typeof n[f]&&(n[f]=r[f])}return n}function Q(n){var r=[];return b(n,function(n,t){Y(n)&&r.push(t)}),r.sort()}function X(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ur.call(n)==jr||false}function Y(n){return typeof n=="function"}function Z(n){var r=typeof n;return"function"==r||n&&"object"==r||false
}function nr(n){var r=typeof n;return"number"==r||n&&"object"==r&&Ur.call(n)==Er||false}function rr(n){return typeof n=="string"||n&&typeof n=="object"&&Ur.call(n)==Sr||false}function tr(n){var r=[];if(!Z(n))return r;for(var t in n)r.push(t);return r}function er(n){for(var r=-1,t=y(arguments,true,false,1),e=t.length,u={};++r<e;){var o=t[r];o in n&&(u[o]=n[o])}return u}function ur(n){for(var r=-1,t=vt(n),e=t.length,u=Array(e);++r<e;)u[r]=n[t[r]];return u}function or(n,r,t){var e=typeof n;return"function"==e||null==n?(typeof r=="undefined"||!("prototype"in n))&&n||l(n,r,t):"object"==e?fr(n):cr(n)
}function ir(n){return n}function fr(n){var r=vt(n),t=r.length;return function(e){var u=t;if(u&&!e)return false;for(var o=true;u--&&(o=r[u],o=Kr.call(e,o)&&e[o]===n[o]););return o}}function ar(n){for(var r=-1,t=Q(n),e=t.length;++r<e;){var u=t[r];o.prototype[u]=function(){var r=o[u]=n[u];return function(){var n=[this.__wrapped__];return Lr.apply(n,arguments),n=r.apply(o,n),this.__chain__?new i(n,true):n}}()}}function cr(n){return function(r){return null==r?lr:r[n]}}var lr,pr=1,sr=2,gr=16,hr="__lodash@2.4.1__breaker__",vr="Expected a function",yr=0,mr=/&(?:amp|lt|gt|quot|#x27);/g,br=/[&<>"']/g,dr=/($^)/,_r=/[.*+?^${}()|[\]\\]/g,wr=/['\n\r\u2028\u2029\\]/g,jr="[object Arguments]",xr="[object Array]",Tr="[object Boolean]",Ar="[object Date]",Er="[object Number]",Or="[object Object]",kr="[object RegExp]",Sr="[object String]",Nr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},qr={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'"},Fr={"function":true,object:true},Br={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Mr=Fr[typeof window]&&window||this,Rr=Fr[typeof exports]&&exports&&!exports.nodeType&&exports,$r=Fr[typeof module]&&module&&!module.nodeType&&module,Ir=Rr&&$r&&typeof global=="object"&&global;
}function ir(n){return n}function fr(n){var r=vt(n),t=r.length;return function(e){var u=t;if(u&&!e)return false;for(var o=true;u--&&(o=r[u],o=Kr.call(e,o)&&e[o]===n[o]););return o}}function ar(n){for(var r=-1,t=Q(n),e=t.length;++r<e;){var u=t[r];o.prototype[u]=function(){var r=o[u]=n[u];return function(){var n=[this.__wrapped__];return Lr.apply(n,arguments),n=r.apply(o,n),this.__chain__?new i(n,true):n}}()}}function cr(n){return function(r){return null==r?lr:r[n]}}var lr,pr=1,sr=2,gr=16,hr="__lodash@2.4.1__breaker__",vr="Expected a function",yr=0,mr=/&(?:amp|lt|gt|quot|#x27);/g,br=/[&<>"']/g,dr=/($^)/,_r=/[.*+?^${}()|[\]\/\\]/g,wr=/['\n\r\u2028\u2029\\]/g,jr="[object Arguments]",xr="[object Array]",Tr="[object Boolean]",Ar="[object Date]",Er="[object Number]",Or="[object Object]",kr="[object RegExp]",Sr="[object String]",Nr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},qr={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'"},Fr={"function":true,object:true},Br={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Mr=Fr[typeof window]&&window||this,Rr=Fr[typeof exports]&&exports&&!exports.nodeType&&exports,$r=Fr[typeof module]&&module&&!module.nodeType&&module,Ir=Rr&&$r&&typeof global=="object"&&global;
!Ir||Ir.global!==Ir&&Ir.window!==Ir&&Ir.self!==Ir||(Mr=Ir);var Dr=$r&&$r.exports===Rr&&Rr,Wr=Array.prototype,zr=Object.prototype,Cr=Mr._,Pr=Math.pow(2,53)-1,Ur=zr.toString,Vr=RegExp("^"+(null==Ur?"":(Ur+"").replace(_r,"\\$&")).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gr=Math.ceil,Hr=Math.floor,Jr=Function.prototype.toString,Kr=zr.hasOwnProperty,Lr=Wr.push,Qr=zr.propertyIsEnumerable,Xr=Wr.splice,Yr=A(Yr=Object.create)&&Yr,Zr=A(Zr=Array.isArray)&&Zr,nt=Mr.isFinite,rt=Mr.isNaN,tt=A(tt=Object.keys)&&tt,et=Math.max,ut=Math.min,ot=A(ot=Date.now)&&ot,it=Math.random;
i.prototype=o.prototype;var ft={};!function(){var n={0:1,length:1};ft.spliceObjects=(Xr.call(n,0,1),!n[0])}(0,0),o.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},Yr||(c=function(){function n(){}return function(r){if(Z(r)){n.prototype=r;var t=new n;n.prototype=null}return t||Mr.Object()}}());var at=S,ct=O,lt=j(function(n,r,t){Kr.call(n,t)?n[t]++:n[t]=1}),pt=j(function(n,r,t){Kr.call(n,t)?n[t].push(r):n[t]=[r]}),st=j(function(n,r,t){n[t]=r
}),gt=j(function(n,r,t){n[t?0:1].push(r)},function(){return[[],[]]});X(arguments)||(X=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Kr.call(n,"callee")&&!Qr.call(n,"callee")||false});var ht=Zr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ur.call(n)==xr||false};Y(/x/)&&(Y=function(n){return typeof n=="function"&&"[object Function]"==Ur.call(n)});var vt=tt?function(n){return Z(n)?tt(n):[]}:E,yt=ot||function(){return(new Date).getTime()};o.after=function(n,r){if(!Y(r))throw new TypeError(vr);
@@ -33,9 +33,8 @@ u[r]=[o,n[o]]}return u},o.partial=function(n){return x(n,gr,null,N(arguments,1))
return i},o.tap=function(n,r){return r(n),n},o.throttle=function(n,r,t){var e=true,u=true;if(!Y(n))throw new TypeError(vr);return false===t?e=false:Z(t)&&(e="leading"in t?t.leading:e,u="trailing"in t?t.trailing:u),H(n,r,{leading:e,maxWait:r,trailing:u})},o.times=function(n,r,t){n=0>n?0:n>>>0,r=l(r,t,1),t=-1;for(var e=Array(n);++t<n;)e[t]=r(t);return e},o.toArray=function(n){return ht(n)?N(n):n&&typeof n.length=="number"?D(n):ur(n)},o.union=function(){return w(y(arguments,true,true))},o.uniq=F,o.values=ur,o.where=function(n,r){return R(n,fr(r))
},o.without=function(){return s(arguments[0],N(arguments,1))},o.wrap=function(n,r){return x(r,gr,null,[n])},o.zip=function(){for(var n=-1,r=W(z(arguments,"length")),t=Array(0>r?0:r);++n<r;)t[n]=z(arguments,n);return t},o.collect=D,o.each=I,o.extend=K,o.methods=Q,o.object=function(n,r){var t=-1,e=n?n.length:0,u={};for(r||!e||ht(n[0])||(r=[]);++t<e;){var o=n[t];r?u[o]=r[t]:o&&(u[o[0]]=o[1])}return u},o.select=R,o.tail=S,o.unique=F,o.clone=function(n){return Z(n)?ht(n)?N(n):K({},n):n},o.contains=B,o.escape=function(n){return null==n?"":(n+"").replace(br,t)
},o.every=M,o.find=$,o.findWhere=function(n,r){return $(n,fr(r))},o.has=function(n,r){return n?Kr.call(n,r):false},o.identity=ir,o.indexOf=k,o.isArguments=X,o.isArray=ht,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Ur.call(n)==Tr||false},o.isDate=function(n){return n&&typeof n=="object"&&Ur.call(n)==Ar||false},o.isElement=function(n){return n&&1===n.nodeType||false},o.isEmpty=function(n){if(!n)return true;var r=n.length;if(-1<r&&r<=Pr&&(ht(n)||rr(n)||X(n)))return!r;for(var t in n)if(Kr.call(n,t))return false;
return true},o.isEqual=function(n,r){return d(n,r)},o.isFinite=function(n){return nt(n)&&!rt(parseFloat(n))},o.isFunction=Y,o.isNaN=function(n){return nr(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=nr,o.isObject=Z,o.isRegExp=function(n){var r=typeof n;return n&&("function"==r||"object"==r)&&Ur.call(n)==kr||false},o.isString=rr,o.isUndefined=function(n){return typeof n=="undefined"},o.lastIndexOf=function(n,r,t){var e=n?n.length:0;for(typeof t=="number"&&(e=(0>t?et(e+t,0):ut(t||0,e-1))+1);e--;)if(n[e]===r)return e;
return-1},o.mixin=ar,o.noConflict=function(){return Mr._=Cr,this},o.now=yt,o.random=function(n,r){return null==n&&null==r&&(r=1),n=+n||0,null==r?(r=n,n=0):r=+r||0,n+Hr(it()*(r-n+1))},o.reduce=C,o.reduceRight=P,o.result=function(n,r){if(null!=n){var t=n[r];return Y(t)?n[r]():t}},o.size=function(n){var r=n?n.length:0;return typeof r=="number"&&-1<r&&r<=Pr?r:vt(n).length},o.some=V,o.sortedIndex=q,o.template=function(n,r,t){var u=o,i=u.templateSettings;n=(null==n?"":n)+"",t=L({},t,i);var f=0,a="__p+='",i=t.variable;
n.replace(RegExp((t.escape||dr).source+"|"+(t.interpolate||dr).source+"|"+(t.evaluate||dr).source+"|$","g"),function(r,t,u,o,i){return a+=n.slice(f,i).replace(wr,e),t&&(a+="'+_.escape("+t+")+'"),o&&(a+="';"+o+";\n__p+='"),u&&(a+="'+((__t=("+u+"))==null?'':__t)+'"),f=i+r.length,r}),a+="';",i||(a="with(obj||{}){"+a+"}"),a="function("+(i||"obj")+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+a+"return __p}";try{var c=Function("_","return "+a)(u)}catch(l){throw l.source=a,l
}return r?c(r):(c.source=a,c)},o.unescape=function(n){return null==n?"":(n+="",0>n.indexOf(";")?n:n.replace(mr,u))},o.uniqueId=function(n){var r=++yr+"";return n?n+r:r},o.all=M,o.any=V,o.detect=$,o.foldl=C,o.foldr=P,o.include=B,o.inject=C,o.first=O,o.last=function(n,r,t){var e=n?n.length:0;return null==r||t?n?n[e-1]:lr:(r=e-(r||0),N(n,0>r?0:r))},o.sample=function(n,r,t){return n&&typeof n.length!="number"&&(n=ur(n)),null==r||t?(r=n?n.length:0,0<r?n[_(r-1)]:lr):(n=U(n),n.length=ut(0>r?0:+r||0,n.length),n)
},o.take=ct,o.head=O,ar(K({},o)),o.VERSION="2.4.1",o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.value=function(){return this.__wrapped__},f("pop push reverse shift sort splice unshift".split(" "),function(n){var r=Wr[n];o.prototype[n]=function(){var n=this.__wrapped__;return r.apply(n,arguments),ft.spliceObjects||0!==n.length||delete n[0],this}}),f(["concat","join","slice"],function(n){var r=Wr[n];o.prototype[n]=function(){var n=r.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new i(n),n.__chain__=true),n
}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Mr._=o, define("underscore",function(){return o})):Rr&&$r?Dr?($r.exports=o)._=o:Rr._=o:Mr._=o}).call(this);
return true},o.isEqual=function(n,r){return d(n,r)},o.isFinite=function(n){return nt(n)&&!rt(parseFloat(n))},o.isFunction=Y,o.isNaN=function(n){return nr(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=nr,o.isObject=Z,o.isRegExp=function(n){return Z(n)&&Ur.call(n)==kr||false},o.isString=rr,o.isUndefined=function(n){return typeof n=="undefined"},o.lastIndexOf=function(n,r,t){var e=n?n.length:0;for(typeof t=="number"&&(e=(0>t?et(e+t,0):ut(t||0,e-1))+1);e--;)if(n[e]===r)return e;return-1},o.mixin=ar,o.noConflict=function(){return Mr._=Cr,this
},o.now=yt,o.random=function(n,r){return null==n&&null==r&&(r=1),n=+n||0,null==r?(r=n,n=0):r=+r||0,n+Hr(it()*(r-n+1))},o.reduce=C,o.reduceRight=P,o.result=function(n,r){if(null!=n){var t=n[r];return Y(t)?n[r]():t}},o.size=function(n){var r=n?n.length:0;return typeof r=="number"&&-1<r&&r<=Pr?r:vt(n).length},o.some=V,o.sortedIndex=q,o.template=function(n,r,t){var u=o,i=u.templateSettings;n=(null==n?"":n)+"",t=L({},t,i);var f=0,a="__p+='",i=t.variable;n.replace(RegExp((t.escape||dr).source+"|"+(t.interpolate||dr).source+"|"+(t.evaluate||dr).source+"|$","g"),function(r,t,u,o,i){return a+=n.slice(f,i).replace(wr,e),t&&(a+="'+_.escape("+t+")+'"),o&&(a+="';"+o+";\n__p+='"),u&&(a+="'+((__t=("+u+"))==null?'':__t)+'"),f=i+r.length,r
}),a+="';",i||(a="with(obj||{}){"+a+"}"),a="function("+(i||"obj")+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+a+"return __p}";try{var c=Function("_","return "+a)(u)}catch(l){throw l.source=a,l}return r?c(r):(c.source=a,c)},o.unescape=function(n){return null==n?"":(n+="",0>n.indexOf(";")?n:n.replace(mr,u))},o.uniqueId=function(n){var r=++yr+"";return n?n+r:r},o.all=M,o.any=V,o.detect=$,o.foldl=C,o.foldr=P,o.include=B,o.inject=C,o.first=O,o.last=function(n,r,t){var e=n?n.length:0;
return null==r||t?n?n[e-1]:lr:(r=e-(r||0),N(n,0>r?0:r))},o.sample=function(n,r,t){return n&&typeof n.length!="number"&&(n=ur(n)),null==r||t?(r=n?n.length:0,0<r?n[_(r-1)]:lr):(n=U(n),n.length=ut(0>r?0:+r||0,n.length),n)},o.take=ct,o.head=O,ar(K({},o)),o.VERSION="2.4.1",o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.value=function(){return this.__wrapped__},f("pop push reverse shift sort splice unshift".split(" "),function(n){var r=Wr[n];o.prototype[n]=function(){var n=this.__wrapped__;
return r.apply(n,arguments),ft.spliceObjects||0!==n.length||delete n[0],this}}),f(["concat","join","slice"],function(n){var r=Wr[n];o.prototype[n]=function(){var n=r.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new i(n),n.__chain__=true),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Mr._=o, define("underscore",function(){return o})):Rr&&$r?Dr?($r.exports=o)._=o:Rr._=o:Mr._=o}).call(this);