Rebuild dist.

This commit is contained in:
John-David Dalton
2014-04-02 01:45:16 -07:00
parent 9f2bea8ac1
commit a842f25f89
6 changed files with 201 additions and 171 deletions

100
dist/lodash.compat.js vendored
View File

@@ -808,7 +808,7 @@
*/
var support = lodash.support = {};
(function() {
(function(x) {
var ctor = function() { this.x = 1; },
object = { '0': 1, 'length': 1 },
props = [];
@@ -819,7 +819,8 @@
for (var strKey in 'x') { }
/**
* Detect if an `arguments` object's `[[Class]]` is resolvable (all but Firefox < 4, IE < 9).
* Detect if an `arguments` object's `[[Class]]` is resolvable
* (all but Firefox < 4, IE < 9).
*
* @memberOf _.support
* @type boolean
@@ -827,7 +828,8 @@
support.argsClass = toString.call(arguments) == argsClass;
/**
* Detect if `arguments` objects are `Object` objects (all but Narwhal and Opera < 10.5).
* Detect if `arguments` objects are `Object` objects
* (all but Narwhal and Opera < 10.5).
*
* @memberOf _.support
* @type boolean
@@ -841,7 +843,8 @@
* @memberOf _.support
* @type boolean
*/
support.enumErrorProps = propertyIsEnumerable.call(errorProto, 'message') || propertyIsEnumerable.call(errorProto, 'name');
support.enumErrorProps = propertyIsEnumerable.call(errorProto, 'message') ||
propertyIsEnumerable.call(errorProto, 'name');
/**
* Detect if `prototype` properties are enumerable by default.
@@ -874,16 +877,8 @@
support.funcNames = typeof Function.name == 'string';
/**
* Detect if `arguments` object indexes are non-enumerable
* (Firefox < 4, IE < 9, PhantomJS, Safari < 5.1).
*
* @memberOf _.support
* @type boolean
*/
support.nonEnumArgs = argsKey != '0';
/**
* Detect if string indexes are non-enumerable (IE < 9, RingoJS, Rhino, Narwhal).
* Detect if string indexes are non-enumerable
* (IE < 9, RingoJS, Rhino, Narwhal).
*
* @memberOf _.support
* @type boolean
@@ -891,10 +886,11 @@
support.nonEnumStrings = strKey != '0';
/**
* Detect if properties shadowing those on `Object.prototype` are non-enumerable.
* Detect if properties shadowing those on `Object.prototype` are
* non-enumerable.
*
* In IE < 9 an objects own properties, shadowing non-enumerable ones, are
* made non-enumerable as well (a.k.a the JScript `[[DontEnum]]` bug).
* In IE < 9 an object's own properties, shadowing non-enumerable ones,
* are made non-enumerable as well (a.k.a the JScript `[[DontEnum]]` bug).
*
* @memberOf _.support
* @type boolean
@@ -902,7 +898,8 @@
support.nonEnumShadows = !/valueOf/.test(props);
/**
* Detect if own properties are iterated after inherited properties (all but IE < 9).
* Detect if own properties are iterated after inherited properties
* (all but IE < 9).
*
* @memberOf _.support
* @type boolean
@@ -910,13 +907,15 @@
support.ownLast = props[0] != 'x';
/**
* Detect if `Array#shift` and `Array#splice` augment array-like objects correctly.
* Detect if `Array#shift` and `Array#splice` augment array-like objects
* correctly.
*
* Firefox < 10, IE compatibility mode, and IE < 9 have buggy Array `shift()`
* and `splice()` functions that fail to remove the last element, `value[0]`,
* of array-like objects even though the `length` property is set to `0`.
* The `shift()` method is buggy in IE 8 compatibility mode, while `splice()`
* is buggy regardless of mode in IE < 9 and buggy in compatibility mode in IE 9.
* is buggy regardless of mode in IE < 9 and buggy in compatibility mode
* in IE 9.
*
* @memberOf _.support
* @type boolean
@@ -959,12 +958,31 @@
} catch(e) {
support.nodeClass = true;
}
}(1));
/**
* Detect if `arguments` object indexes are non-enumerable
* (Firefox < 4, IE < 9, PhantomJS, Safari < 5.1).
*
* Chrome < 25 and Node.js < 0.11.0 will treat `arguments` object indexes
* that exceed their function's formal parameters and whose associated
* values are `0` as non-enumerable and incorrectly return `false` from
* `Object#hasOwnProperty`.
*
* @memberOf _.support
* @type boolean
*/
try {
support.nonEnumArgs = !(argsKey == '1' && hasOwnProperty.call(arguments, '1') &&
propertyIsEnumerable.call(arguments, '1'));
} catch(e) {
support.nonEnumArgs = true;
}
}(0, 0));
/**
* 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.
* 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.
*
* @static
* @memberOf _
@@ -1510,8 +1528,7 @@
* @returns {Object} Returns `object`.
*/
function baseForRight(object, callback, keysFunc) {
var index = -1,
props = keysFunc(object),
var props = keysFunc(object),
length = props.length;
while (length--) {
@@ -2226,17 +2243,18 @@
* @returns {Array} Returns the array of property names.
*/
function shimKeys(object) {
var index = -1,
var keyIndex,
index = -1,
props = keysIn(object),
length = props.length,
objLength = length && object.length,
maxIndex = objLength - 1,
result = [];
if (typeof objLength == 'number' && objLength > 0) {
var keyIndex,
allowIndexes = isArray(object) || (support.nonEnumStrings && isString(object)),
maxIndex = objLength - 1;
}
var allowIndexes = typeof objLength == 'number' && objLength > 0 &&
(isArray(object) || (support.nonEnumArgs && isArguments(object)) ||
(support.nonEnumStrings && isString(object)));
while (++index < length) {
var key = props[index];
if ((allowIndexes && (keyIndex = +key, keyIndex > -1 && keyIndex <= maxIndex && keyIndex % 1 == 0)) ||
@@ -2713,7 +2731,7 @@
} else {
n = (predicate == null || thisArg) ? 1 : predicate;
}
n = length - n;
n = length - (n || 0);
return slice(array, 0, n < 0 ? 0 : n);
}
@@ -2807,8 +2825,8 @@
return array ? array[length - 1] : undefined;
}
}
n = length - n;
return slice(array, n < 0 ? 0 : n);
n = length - (n || 0);
return slice(array, n < 0 ? 0 : n);
}
/**
@@ -6525,18 +6543,16 @@
if (!isObject(object)) {
return [];
}
var isArr,
keyIndex,
length = object.length;
var length = object.length;
length = (typeof length == 'number' && length > 0 &&
((isArr = isArray(object)) || (support.nonEnumStrings && isString(object)) ||
(isArray(object) || (support.nonEnumStrings && isString(object)) ||
(support.nonEnumArgs && isArguments(object))) && length) >>> 0;
var index = -1,
var keyIndex,
index = -1,
maxIndex = length - 1,
result = Array(length),
skipIndexes = isArr && length > 0,
skipIndexes = length > 0,
skipErrorProps = support.enumErrorProps && (object === errorProto || object instanceof Error),
skipProto = support.enumPrototypes && typeof object == 'function';

View File

@@ -19,9 +19,9 @@ if(t&&((a=Lr(t))||Wr(t))){for(l=r.length;l--;)if(i=r[l]==t){f=u[l];break}if(!i){
if(l){for(var h=s.length;h--;)if(s[h]===g)continue n;u&&s.push(g),c.push(p)}else t?i&&s===g||(s=g,c.push(p)):0>a(s,g)&&((u||f)&&s.push(g),c.push(p))}return c}function At(n,t){for(var e=-1,r=t(n),u=r.length,o=Re(u);++e<u;)o[e]=n[r[e]];return o}function St(n,t,e){for(var r=t.length,u=-1,o=yr(e.length-r,0),i=-1,a=n.length,l=Re(o+a);++i<a;)l[i]=n[i];for(;++u<r;)l[t[u]]=e[u];for(;o--;)l[i++]=e[u++];return l}function It(n,t){return function(e,r,u){var i=t?[[],[]]:{};if(r=o.createCallback(r,u,3),Lr(e)){u=-1;
for(var a=e.length;++u<a;){var l=e[u];n(i,l,r(l,u,e),e)}}else gt(e,function(t,e,u){n(i,t,r(t,e,u),u)});return i}}function Rt(n,t,e){return n=n.length,t=+t,n<t&&gr(t)?(t-=n,e=null==e?" ":De(e),je(e,He(t/e.length)).slice(0,t)):""}function Nt(n,t,e,r,u,o){var i=t&x,a=t&C,l=t&O,f=t&E;if(!a&&!ve(n))throw new Be;l&&!u.length&&(t&=~O,l=u=false),f&&!o.length&&(t&=~E,f=o=false);var s=!a&&n[S];if(s&&true!==s)return s=Ut(s),s[4]&&(s[4]=Ut(s[4])),s[5]&&(s[5]=Ut(s[5])),typeof e=="number"&&(s[2]=e),n=s[1]&x,i&&!n&&(s[3]=r),!i&&n&&(t|=k),l&&(s[4]?rr.apply(s[4],u):s[4]=u),f&&(s[5]?lr.apply(s[5],o):s[5]=o),s[1]|=t,Nt.apply(null,s);
if(l)var p=[];if(f)var g=[];return null==e&&(e=a?0:n.length),e=yr(e,0),s=[n,t,e,r,u,o,p,g],t==x||t==(x|O)?c(s):Y(s)}function Tt(){var n=(n=o.indexOf)===zt?e:n;return n}function Lt(n){return typeof n=="function"&&Ge.test(nr.call(n))}function Wt(n){var t,e;return!n||Ye.call(n)!=it||!er.call(n,"constructor")&&(t=n.constructor,ve(t)&&!(t instanceof t))||!Or.argsClass&&ge(n)||!Or.nodeClass&&g(n)?false:Or.ownLast?(wt(n,function(n,t,r){return e=er.call(r,t),false}),false!==e):(wt(n,function(n,t){e=t}),typeof e=="undefined"||er.call(n,e))
}function Ft(n){var t=-1,e=_e(n),r=e.length,u=r&&n.length,o=[];if(typeof u=="number"&&0<u)var i,a=Lr(n)||Or.nonEnumStrings&&be(n),l=u-1;for(;++t<r;)u=e[t],(a&&(i=+u,-1<i&&i<=l&&0==i%1)||er.call(n,u))&&o.push(u);return o}function $t(n,t,e){var r=-1,u=n?n.length:0;for(t=o.createCallback(t,e,3);++r<u;)if(t(n[r],r,n))return r;return-1}function Pt(n,t,e){if(typeof t!="number"&&null!=t){var r=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,e,3);++r<u&&t(n[r],r,n);)i++}else if(i=t,null==i||e)return n?n[0]:w;
return Ut(n,0,0>i?0:i)}function zt(n,t,r){var u=n?n.length:0;if(typeof r=="number")r=0>r?yr(u+r,0):r||0;else if(r)return r=Zt(n,t),u&&n[r]===t?r:-1;return e(n,t,r)}function Dt(n,t,e){var r=n?n.length:0;if(typeof t!="number"&&null!=t){var u=r,i=0;for(t=o.createCallback(t,e,3);u--&&t(n[u],u,n);)i++}else i=null==t||e?1:t;return i=r-i,Ut(n,0,0>i?0:i)}function Bt(n,t,e){var r=n?n.length:0;if(typeof t!="number"&&null!=t){var u=r,i=0;for(t=o.createCallback(t,e,3);u--&&t(n[u],u,n);)i++}else if(i=t,null==i||e)return n?n[r-1]:w;
return i=r-i,Ut(n,0>i?0:i)}function qt(n,t,e){if(typeof t!="number"&&null!=t){var r=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,e,3);++r<u&&t(n[r],r,n);)i++}else i=null==t||e?1:0>t?0:t;return Ut(n,i)}function Ut(n,t,e){var r=-1,u=n?n.length:0;for(t=typeof t=="undefined"?0:+t||0,0>t?t=yr(u+t,0):t>u&&(t=u),e=typeof e=="undefined"?u:+e||0,0>e?e=yr(u+e,0):e>u&&(e=u),u=t>e?0:e-t,e=Re(u);++r<u;)e[r]=n[t+r];return e}function Zt(n,t,e,r){var u=0,i=n?n.length:u;for(e=e?o.createCallback(e,r,1):Oe,t=e(t);u<i;)r=u+i>>>1,e(n[r])<t?u=r+1:i=r;
}function Ft(n){for(var t,e=-1,r=_e(n),u=r.length,o=u&&n.length,i=o-1,a=[],o=typeof o=="number"&&0<o&&(Lr(n)||Or.nonEnumArgs&&ge(n)||Or.nonEnumStrings&&be(n));++e<u;){var l=r[e];(o&&(t=+l,-1<t&&t<=i&&0==t%1)||er.call(n,l))&&a.push(l)}return a}function $t(n,t,e){var r=-1,u=n?n.length:0;for(t=o.createCallback(t,e,3);++r<u;)if(t(n[r],r,n))return r;return-1}function Pt(n,t,e){if(typeof t!="number"&&null!=t){var r=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,e,3);++r<u&&t(n[r],r,n);)i++}else if(i=t,null==i||e)return n?n[0]:w;
return Ut(n,0,0>i?0:i)}function zt(n,t,r){var u=n?n.length:0;if(typeof r=="number")r=0>r?yr(u+r,0):r||0;else if(r)return r=Zt(n,t),u&&n[r]===t?r:-1;return e(n,t,r)}function Dt(n,t,e){var r=n?n.length:0;if(typeof t!="number"&&null!=t){var u=r,i=0;for(t=o.createCallback(t,e,3);u--&&t(n[u],u,n);)i++}else i=null==t||e?1:t;return i=r-(i||0),Ut(n,0,0>i?0:i)}function Bt(n,t,e){var r=n?n.length:0;if(typeof t!="number"&&null!=t){var u=r,i=0;for(t=o.createCallback(t,e,3);u--&&t(n[u],u,n);)i++}else if(i=t,null==i||e)return n?n[r-1]:w;
return i=r-(i||0),Ut(n,0>i?0:i)}function qt(n,t,e){if(typeof t!="number"&&null!=t){var r=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,e,3);++r<u&&t(n[r],r,n);)i++}else i=null==t||e?1:0>t?0:t;return Ut(n,i)}function Ut(n,t,e){var r=-1,u=n?n.length:0;for(t=typeof t=="undefined"?0:+t||0,0>t?t=yr(u+t,0):t>u&&(t=u),e=typeof e=="undefined"?u:+e||0,0>e?e=yr(u+e,0):e>u&&(e=u),u=t>e?0:e-t,e=Re(u);++r<u;)e[r]=n[t+r];return e}function Zt(n,t,e,r){var u=0,i=n?n.length:u;for(e=e?o.createCallback(e,r,1):Oe,t=e(t);u<i;)r=u+i>>>1,e(n[r])<t?u=r+1:i=r;
return u}function Kt(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&&(e=o.createCallback(e,r,3)),Et(n,t,e)}function Mt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?ee(Tr(n,"length")):0,r=Re(0>e?0:e);++t<e;)r[t]=Tr(n,t);return r}function Vt(n,t){var e=-1,r=n?n.length:0,u={};for(t||!r||Lr(n[0])||(t=[]);++e<r;){var o=n[e];t?u[o]=t[e]:o&&(u[o[0]]=o[1])}return u}function Xt(){return this.__wrapped__
}function Yt(n,t,e){var r=n?n.length:0;if(e=typeof e=="number"&&e||0,typeof r=="number"&&-1<r&&r<=Xe){if(typeof n=="string"||!Lr(n)&&be(n))return e<r?cr?cr.call(n,t,e):-1<n.indexOf(t,e):false;var u=Tt();return e=0>e?yr(r+e,0):e,-1<u(n,t,e)}var o=-1,i=false;return gt(n,function(n){return++o<e?void 0:!(i=n===t)}),i}function Gt(n,t,e){var r=true;if(t=o.createCallback(t,e,3),Lr(n)){e=-1;for(var u=n.length;++e<u;)if(!t(n[e],e,n))return false}else gt(n,function(n,e,u){return r=!!t(n,e,u)});return r}function Ht(n,t,e){var r=[];
if(t=o.createCallback(t,e,3),Lr(n)){e=-1;for(var u=n.length;++e<u;){var i=n[e];t(i,e,n)&&r.push(i)}}else gt(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function Jt(n,t,e){return Lr(n)?(t=$t(n,t,e),-1<t?n[t]:w):(t=o.createCallback(t,e,3),vt(n,t,gt))}function Qt(n,t,e){if(t&&typeof e=="undefined"&&Lr(n)){e=-1;for(var r=n.length;++e<r&&false!==t(n[e],e,n););}else gt(n,Z(t,e,3));return n}function ne(n,t,e){if(t&&typeof e=="undefined"&&Lr(n))for(e=n.length;e--&&false!==t(n[e],e,n););else ht(n,Z(t,e,3));
@@ -30,26 +30,26 @@ for(u&&a&&(e=n[++i]);++i<a;)e=t(e,n[i],i,n)}else gt(n,function(n,r,o){e=u?(u=fal
});return!!r}function ae(n,t){if(3>arguments.length)return Nt(n,x,null,t);if(n)var e=n[S]?n[S][2]:n.length,r=Ut(arguments,2),e=e-r.length;return Nt(n,x|O,e,t,r)}function le(n,t,e){var r,u,o,i,a,l,f,c=0,s=false,p=true;if(!ve(n))throw new Be;if(t=0>t?0:t,true===e)var g=true,p=false;else ye(e)&&(g=e.leading,s="maxWait"in e&&yr(t,+e.maxWait||0),p="trailing"in e?e.trailing:p);var h=function(){var e=t-(Ur()-i);0>=e||e>t?(u&&Je(u),e=f,u=l=f=w,e&&(c=Ur(),o=n.apply(a,r),l||u||(r=a=null))):l=ir(h,e)},v=function(){l&&Je(l),u=l=f=w,(p||s!==t)&&(c=Ur(),o=n.apply(a,r),l||u||(r=a=null))
};return function(){if(r=arguments,i=Ur(),a=this,f=p&&(l||!g),false===s)var e=g&&!l;else{u||g||(c=i);var y=s-(i-c),m=0>=y||y>s;m?(u&&(u=Je(u)),c=i,o=n.apply(a,r)):u||(u=ir(v,y))}return m&&l?l=Je(l):l||t===s||(l=ir(h,t)),e&&(m=true,o=n.apply(a,r)),!m||l||u||(r=a=null),o}}function fe(n){if(!ve(n))throw new Be;return function(){return!n.apply(this,arguments)}}function ce(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=Z(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,l=Fr(t),f=l.length;++i<f;){var c=l[i];n[c]=a?a(n[c],t[c]):t[c]}}return n}function se(t){if(!t||2>arguments.length)return t;var e=Ut(arguments);return e.push(n),ce.apply(null,e)}function pe(n){var t=[];return wt(n,function(n,e){ve(n)&&t.push(e)}),t.sort()}function ge(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ye.call(n)==Q||false}function he(n){return n&&typeof n=="object"&&1===n.nodeType&&(Or.nodeClass?-1<Ye.call(n).indexOf("Element"):g(n))||false
}function ve(n){return typeof n=="function"}function ye(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function me(n){var t=typeof n;return"number"==t||n&&"object"==t&&Ye.call(n)==ot||false}function de(n){var t=typeof n;return n&&("function"==t||"object"==t)&&Ye.call(n)==at||false}function be(n){return typeof n=="string"||n&&typeof n=="object"&&Ye.call(n)==lt||false}function _e(n){if(!ye(n))return[];var t,e,r=n.length,r=(typeof r=="number"&&0<r&&((t=Lr(n))||Or.nonEnumStrings&&be(n)||Or.nonEnumArgs&&ge(n))&&r)>>>0,u=-1,o=r-1,i=Re(r);
t=t&&0<r;for(var a=Or.enumErrorProps&&(n===Ue||n instanceof Le),l=Or.enumPrototypes&&typeof n=="function";++u<r;)i[u]=De(u);for(var f in n)l&&"prototype"==f||a&&("message"==f||"name"==f)||t&&(e=+f,-1<e&&e<=o&&0==e%1)||i.push(f);if(Or.nonEnumShadows&&n!==Ze){if(e=n.constructor,u=-1,r=J.length,n===(e&&e.prototype))var c=n===Ke?lt:n===Ue?rt:Ye.call(n),c=kr[c];for(;++u<r;)f=J[u],c&&c[f]||!er.call(n,f)||i.push(f)}return i}function we(n,t,e){var r={};if(typeof t!="function")for(var u=-1,i=yt(arguments,true,false,1),a=ye(n)?i.length:0;++u<a;){var l=i[u];
l in n&&(r[l]=n[l])}else t=o.createCallback(t,e,3),wt(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r}function xe(n){return At(n,Fr)}function Ce(n){return null==n?"":De(n).replace(M,"\\$&")}function je(n,t){var e="";if(t=+t,1>t||null==n||!gr(t))return e;n=De(n);do t%2&&(e+=n),t=Qe(t/2),n+=n;while(t);return e}function ke(n,t,e){var r=typeof n;return"function"==r||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||Z(n,t,e):"object"!=r?Ie(n):Ee(n)}function Oe(n){return n}function Ee(n){n||(n={});
var t=Fr(n),e=t.length,r=t[0],u=n[r];return 1!=e||u!==u||ye(u)?function(r){for(var u=e,o=false;u--&&(o=t[u],o=er.call(r,o)&&jt(r[o],n[o],null,true)););return o}:function(n){return er.call(n,r)?(n=n[r],u===n&&(0!==u||1/u==1/n)):false}}function Ae(n,t,e){var r=true,u=t&&pe(t);t&&(e||u.length)||(null==e&&(e=t),t=n,n=o,u=pe(t)),false===e?r=false:ye(e)&&"chain"in e&&(r=e.chain),e=-1;for(var i=ve(n),a=u?u.length:0;++e<a;){var l=u[e],f=n[l]=t[l];i&&(n.prototype[l]=function(t){return function(){var e=this.__chain__,u=this.__wrapped__,o=[u];
if(rr.apply(o,arguments),o=t.apply(n,o),r||e){if(u===o&&ye(o))return this;o=new n(o),o.__chain__=e}return o}}(f))}}function Se(){}function Ie(n){return function(t){return null==t?w:t[n]}}t=t?_t.defaults(mt.Object(),t,_t.pick(mt,H)):mt;var Re=t.Array,Ne=t.Boolean,Te=t.Date,Le=t.Error,We=t.Function,Fe=t.Math,$e=t.Number,Pe=t.Object,ze=t.RegExp,De=t.String,Be=t.TypeError,qe=Re.prototype,Ue=Le.prototype,Ze=Pe.prototype,Ke=De.prototype,Me=(Me=t.window)&&Me.document,Ve=t._,Xe=Fe.pow(2,53)-1,Ye=Ze.toString,Ge=ze("^"+Ce(Ye).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=Fe.ceil,Je=t.clearTimeout,Qe=Fe.floor,nr=We.prototype.toString,tr=Lt(tr=Pe.getPrototypeOf)&&tr,er=Ze.hasOwnProperty,rr=qe.push,ur=Ze.propertyIsEnumerable,or=Lt(or=t.Set)&&or,ir=t.setTimeout,ar=qe.splice,lr=qe.unshift,fr=function(){try{var n={},t=Lt(t=Pe.defineProperty)&&t,e=t(n,n,n)&&t
}function ve(n){return typeof n=="function"}function ye(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function me(n){var t=typeof n;return"number"==t||n&&"object"==t&&Ye.call(n)==ot||false}function de(n){var t=typeof n;return n&&("function"==t||"object"==t)&&Ye.call(n)==at||false}function be(n){return typeof n=="string"||n&&typeof n=="object"&&Ye.call(n)==lt||false}function _e(n){if(!ye(n))return[];for(var t,e=n.length,e=(typeof e=="number"&&0<e&&(Lr(n)||Or.nonEnumStrings&&be(n)||Or.nonEnumArgs&&ge(n))&&e)>>>0,r=-1,u=e-1,o=Re(e),i=0<e,a=Or.enumErrorProps&&(n===Ue||n instanceof Le),l=Or.enumPrototypes&&typeof n=="function";++r<e;)o[r]=De(r);
for(var f in n)l&&"prototype"==f||a&&("message"==f||"name"==f)||i&&(t=+f,-1<t&&t<=u&&0==t%1)||o.push(f);if(Or.nonEnumShadows&&n!==Ze){if(t=n.constructor,r=-1,e=J.length,n===(t&&t.prototype))var c=n===Ke?lt:n===Ue?rt:Ye.call(n),c=kr[c];for(;++r<e;)f=J[r],c&&c[f]||!er.call(n,f)||o.push(f)}return o}function we(n,t,e){var r={};if(typeof t!="function")for(var u=-1,i=yt(arguments,true,false,1),a=ye(n)?i.length:0;++u<a;){var l=i[u];l in n&&(r[l]=n[l])}else t=o.createCallback(t,e,3),wt(n,function(n,e,u){t(n,e,u)&&(r[e]=n)
});return r}function xe(n){return At(n,Fr)}function Ce(n){return null==n?"":De(n).replace(M,"\\$&")}function je(n,t){var e="";if(t=+t,1>t||null==n||!gr(t))return e;n=De(n);do t%2&&(e+=n),t=Qe(t/2),n+=n;while(t);return e}function ke(n,t,e){var r=typeof n;return"function"==r||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||Z(n,t,e):"object"!=r?Ie(n):Ee(n)}function Oe(n){return n}function Ee(n){n||(n={});var t=Fr(n),e=t.length,r=t[0],u=n[r];return 1!=e||u!==u||ye(u)?function(r){for(var u=e,o=false;u--&&(o=t[u],o=er.call(r,o)&&jt(r[o],n[o],null,true)););return o
}:function(n){return er.call(n,r)?(n=n[r],u===n&&(0!==u||1/u==1/n)):false}}function Ae(n,t,e){var r=true,u=t&&pe(t);t&&(e||u.length)||(null==e&&(e=t),t=n,n=o,u=pe(t)),false===e?r=false:ye(e)&&"chain"in e&&(r=e.chain),e=-1;for(var i=ve(n),a=u?u.length:0;++e<a;){var l=u[e],f=n[l]=t[l];i&&(n.prototype[l]=function(t){return function(){var e=this.__chain__,u=this.__wrapped__,o=[u];if(rr.apply(o,arguments),o=t.apply(n,o),r||e){if(u===o&&ye(o))return this;o=new n(o),o.__chain__=e}return o}}(f))}}function Se(){}function Ie(n){return function(t){return null==t?w:t[n]
}}t=t?_t.defaults(mt.Object(),t,_t.pick(mt,H)):mt;var Re=t.Array,Ne=t.Boolean,Te=t.Date,Le=t.Error,We=t.Function,Fe=t.Math,$e=t.Number,Pe=t.Object,ze=t.RegExp,De=t.String,Be=t.TypeError,qe=Re.prototype,Ue=Le.prototype,Ze=Pe.prototype,Ke=De.prototype,Me=(Me=t.window)&&Me.document,Ve=t._,Xe=Fe.pow(2,53)-1,Ye=Ze.toString,Ge=ze("^"+Ce(Ye).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=Fe.ceil,Je=t.clearTimeout,Qe=Fe.floor,nr=We.prototype.toString,tr=Lt(tr=Pe.getPrototypeOf)&&tr,er=Ze.hasOwnProperty,rr=qe.push,ur=Ze.propertyIsEnumerable,or=Lt(or=t.Set)&&or,ir=t.setTimeout,ar=qe.splice,lr=qe.unshift,fr=function(){try{var n={},t=Lt(t=Pe.defineProperty)&&t,e=t(n,n,n)&&t
}catch(r){}return e}(),cr=Lt(cr=Ke.contains)&&cr,sr=Lt(sr=Pe.create)&&sr,pr=Lt(pr=Re.isArray)&&pr,gr=t.isFinite,hr=t.isNaN,vr=Lt(vr=Pe.keys)&&vr,yr=Fe.max,mr=Fe.min,dr=Lt(dr=Te.now)&&dr,br=t.parseInt,_r=Fe.random,wr=Lt(wr=Ke.trim)&&!wr.call(G)&&wr,xr=Lt(xr=Ke.trimLeft)&&!xr.call(G)&&xr,Cr=Lt(Cr=Ke.trimRight)&&!Cr.call(G)&&Cr,jr={};jr[nt]=Re,jr[tt]=Ne,jr[et]=Te,jr[ut]=We,jr[it]=Pe,jr[ot]=$e,jr[at]=ze,jr[lt]=De;var kr={};kr[nt]=kr[et]=kr[ot]={constructor:true,toLocaleString:true,toString:true,valueOf:true},kr[tt]=kr[lt]={constructor:true,toString:true,valueOf:true},kr[rt]=kr[ut]=kr[at]={constructor:true,toString:true},kr[it]={constructor:true},function(){for(var n=J.length;n--;){var t,e=J[n];
for(t in kr)er.call(kr,t)&&!er.call(kr[t],e)&&(kr[t][e]=false)}}(),i.prototype=o.prototype;var Or=o.support={};!function(){var n=function(){this.x=1},e={0:1,length:1},r=[];n.prototype={valueOf:1,y:1};for(var u in new n)r.push(u);for(var o in arguments);for(var i in"x");Or.argsClass=Ye.call(arguments)==Q,Or.argsObject=arguments.constructor==Pe&&!(arguments instanceof Re),Or.enumErrorProps=ur.call(Ue,"message")||ur.call(Ue,"name"),Or.enumPrototypes=ur.call(n,"prototype"),Or.funcDecomp=!Lt(t.WinRTError)&&V.test(_),Or.funcNames=typeof We.name=="string",Or.nonEnumArgs="0"!=o,Or.nonEnumStrings="0"!=i,Or.nonEnumShadows=!/valueOf/.test(r),Or.ownLast="x"!=r[0],Or.spliceObjects=(ar.call(e,0,1),!e[0]),Or.unindexedChars="xx"!="x"[0]+Pe("x")[0];
try{Or.dom=11===Me.createDocumentFragment().nodeType}catch(a){Or.dom=false}try{Or.nodeClass=!(Ye.call(undefined)==it&&!({toString:0}+""))}catch(l){Or.nodeClass=true}}(1),o.templateSettings={escape:$,evaluate:P,interpolate:z,variable:"",imports:{_:o}},sr||(d=function(){function n(){}return function(e){if(ye(e)){n.prototype=e;var r=new n;n.prototype=null}return r||t.Object()}}());var Er=or&&function(n){var t=new or,e=n?n.length:0;for(t.push=t.add;e--;)t.push(n[e]);return t},Ar=fr?function(n,t){st.value=t,fr(n,S,st)}:Se,Sr=It(function(n,t,e){er.call(n,e)?n[e]++:n[e]=1
}),Ir=It(function(n,t,e){er.call(n,e)?n[e].push(t):n[e]=[t]}),Rr=It(function(n,t,e){n[e]=t}),Nr=It(function(n,t,e){n[e?0:1].push(t)},true),Tr=te;Or.argsClass||(ge=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&er.call(n,"callee")&&!ur.call(n,"callee")||false});var Lr=pr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ye.call(n)==nt||false};Or.dom||(he=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Wr(n)||false}),ve(/x/)&&(ve=function(n){return typeof n=="function"&&Ye.call(n)==ut
});var Wr=tr?function(n){if(!n||Ye.call(n)!=it||!Or.argsClass&&ge(n))return false;var t=n.valueOf,e=Lt(t)&&(e=tr(t))&&tr(e);return e?n==e||tr(n)==e:Wt(n)}:Wt,Fr=vr?function(n){var t=n?n.length:0;return typeof t=="number"&&0<t?Ft(n):ye(n)?vr(n):[]}:Ft,$r=f(function(n,t,e){return!e&&R.test(t)?n+t.toLowerCase():n+(t.charAt(0)[e?"toUpperCase":"toLowerCase"]()+t.slice(1))}),Pr=f(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),zr=f(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()}),Dr=wr?function(n,t){return null==n?"":null==t?wr.call(n):h(n,t)
}:h,Br=xr?function(n,t){return null==n?"":null==t?xr.call(n):v(n,t)}:v,qr=Cr?function(n,t){return null==n?"":null==t?Cr.call(n):y(n,t)}:y,Ur=dr||function(){return(new Te).getTime()},Zr=8==br(G+"08")?br:function(n,t){return n=Dr(n),br(n,+t||(U.test(n)?16:10))};return o.after=function(n,t){if(!ve(t))throw new Be;return n=gr(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0}},o.assign=ce,o.at=function(n,t){var e=arguments,r=-1,u=yt(e,true,false,1),o=u.length,i=typeof t;for("number"!=i&&"string"!=i||!e[2]||e[2][t]!==n||(o=1),Or.unindexedChars&&be(n)&&(n=n.split("")),e=Re(o);++r<o;)e[r]=n[u[r]];
return e},o.bind=ae,o.bindAll=function(n){for(var t=1<arguments.length?yt(arguments,true,false,1):pe(n),e=-1,r=t.length;++e<r;){var u=t[e];n[u]=Nt(n[u],x,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?Nt(t,x|C,null,n):Nt(t,x|C|O,null,n,Ut(arguments,2))},o.chain=function(n){return new i(n,true)},o.compact=function(n){for(var t=-1,e=n?n.length:0,r=0,u=[];++t<e;){var o=n[t];o&&(u[r++]=o)}return u},o.compose=function(){for(var n=arguments,t=n.length,e=t;e--;)if(!ve(n[e]))throw new Be;return function(){for(var e=t-1,r=n[e].apply(this,arguments);e--;)r=n[e].call(this,r);
return r}},o.constant=function(n){return function(){return n}},o.countBy=Sr,o.create=function(n,t){var e=d(n);return t?ce(e,t):e},o.createCallback=ke,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),Nt(n,j,t)},o.debounce=le,o.defaults=se,o.defer=function(n){if(!ve(n))throw new Be;var t=Ut(arguments,1);return ir(function(){n.apply(w,t)},1)},o.delay=function(n,t){if(!ve(n))throw new Be;var e=Ut(arguments,2);return ir(function(){n.apply(w,e)},t)},o.difference=function(){return pt(arguments[0],yt(arguments,true,true,1))
},o.drop=qt,o.dropRight=Dt,o.dropRightWhile=Dt,o.dropWhile=qt,o.filter=Ht,o.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=te(n,e,r)),yt(n,t)},o.forEach=Qt,o.forEachRight=ne,o.forIn=function(n,t,e){return t=t&&typeof e=="undefined"?t:Z(t,e,3),dt(n,t,_e)},o.forInRight=function(n,t,e){return t=Z(t,e,3),bt(n,t,_e)},o.forOwn=function(n,t,e){return t=t&&typeof e=="undefined"?t:Z(t,e,3),xt(n,t)
},o.forOwnRight=function(n,t,e){return t=Z(t,e,3),bt(n,t,Fr)},o.functions=pe,o.groupBy=Ir,o.indexBy=Rr,o.initial=Dt,o.intersection=function(){for(var n=[],t=-1,u=arguments.length,o=[],i=Tt(),a=Er&&i===e;++t<u;){var l=arguments[t];(Lr(l)||ge(l))&&(n.push(l),o.push(a&&120<=l.length&&Er(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?r(p,l):i(s,l))){for(t=u;--t;){var g=o[t];if(0>(g?r(g,l):i(n[t],l)))continue n}p&&p.push(l),s.push(l)}return s},o.invert=function(n,t){for(var e=-1,r=Fr(n),u=r.length,o={};++e<u;){var i=r[e],a=n[i];
t?er.call(o,a)?o[a].push(i):o[a]=[i]:o[a]=i}return o},o.invoke=function(n,t){var e=Ut(arguments,2),r=-1,u=typeof t=="function",o=n&&n.length,i=Re(0>o?0:o>>>0);return gt(n,function(n){var o=u?t:null!=n&&n[t];i[++r]=o?o.apply(n,e):w}),i},o.keys=Fr,o.keysIn=_e,o.map=te,o.mapValues=function(n,t,e){var r={};return t=o.createCallback(t,e,3),xt(n,function(n,e,u){r[e]=t(n,e,u)}),r},o.matches=Ee,o.max=ee,o.memoize=function(n,t){if(!ve(n))throw new Be;var e=function(){var r=e.cache,u=t?t.apply(this,arguments):"_"+arguments[0];
return er.call(r,u)?r[u]:r[u]=n.apply(this,arguments)};return e.cache={},e},o.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=Z(r[--u-1],r[u--],2);else 2<u&&"function"==typeof r[u-1]&&(i=r[--u]);for(var r=Ut(r,1,u),o=-1,a=[],l=[];++o<u;)kt(n,r[o],i,a,l);return n},o.min=function(n,t,e){var r=1/0,i=r,a=typeof t;if("number"!=a&&"string"!=a||!e||e[t]!==n||(t=null),null==t&&Lr(n))for(e=-1,a=n.length;++e<a;){var l=n[e];
l<i&&(i=l)}else t=null==t&&be(n)?u:o.createCallback(t,e,3),gt(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,i=n)});return i},o.negate=fe,o.omit=function(n,t,e){if(typeof t=="function")return t=o.createCallback(t,e,3),we(n,fe(t));for(var r=yt(arguments,true,false,1),u=r.length;u--;)r[u]=De(r[u]);return we(n,pt(_e(n),r))},o.once=function(n){var t,e;if(!ve(n))throw new Be;return function(){return t?e:(t=true,e=n.apply(this,arguments),n=null,e)}},o.pairs=function(n){for(var t=-1,e=Fr(n),r=e.length,u=Re(r);++t<r;){var o=e[t];
u[t]=[o,n[o]]}return u},o.partial=function(n){if(n)var t=n[S]?n[S][2]:n.length,e=Ut(arguments,1),t=t-e.length;return Nt(n,O,t,null,e)},o.partialRight=function(n){if(n)var t=n[S]?n[S][2]:n.length,e=Ut(arguments,1),t=t-e.length;return Nt(n,E,t,null,null,e)},o.partition=Nr,o.pick=we,o.pluck=Tr,o.property=Ie,o.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&&(ar.call(n,u--,1),r--);return n},o.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=yr(He((t-n)/(e||1)),0);for(var u=Re(t);++r<t;)u[r]=n,n+=e;return u},o.reject=function(n,t,e){return t=o.createCallback(t,e,3),Ht(n,fe(t))},o.remove=function(n,t,e){var r=-1,u=n?n.length:0,i=[];for(t=o.createCallback(t,e,3);++r<u;)e=n[r],t(e,r,n)&&(i.push(e),ar.call(n,r--,1),u--);return i},o.rest=qt,o.shuffle=oe,o.slice=Ut,o.sortBy=function(n,t,e){var r=-1,u=n&&n.length,i=t&&Lr(t),f=Re(0>u?0:u>>>0);for(i||(t=o.createCallback(t,e,3)),gt(n,function(n,e,u){if(i)for(e=t.length,u=Re(e);e--;)u[e]=n[t[e]];
for(t in kr)er.call(kr,t)&&!er.call(kr[t],e)&&(kr[t][e]=false)}}(),i.prototype=o.prototype;var Or=o.support={};!function(x){var n=function(){this.x=1},e={0:1,length:1},r=[];n.prototype={valueOf:1,y:1};for(var u in new n)r.push(u);for(var o in arguments);for(var i in"x");Or.argsClass=Ye.call(arguments)==Q,Or.argsObject=arguments.constructor==Pe&&!(arguments instanceof Re),Or.enumErrorProps=ur.call(Ue,"message")||ur.call(Ue,"name"),Or.enumPrototypes=ur.call(n,"prototype"),Or.funcDecomp=!Lt(t.WinRTError)&&V.test(_),Or.funcNames=typeof We.name=="string",Or.nonEnumStrings="0"!=i,Or.nonEnumShadows=!/valueOf/.test(r),Or.ownLast="x"!=r[0],Or.spliceObjects=(ar.call(e,0,1),!e[0]),Or.unindexedChars="xx"!="x"[0]+Pe("x")[0];
try{Or.dom=11===Me.createDocumentFragment().nodeType}catch(a){Or.dom=false}try{Or.nodeClass=!(Ye.call(undefined)==it&&!({toString:0}+""))}catch(l){Or.nodeClass=true}try{Or.nonEnumArgs=!("1"==o&&er.call(arguments,"1")&&ur.call(arguments,"1"))}catch(f){Or.nonEnumArgs=true}}(0,0),o.templateSettings={escape:$,evaluate:P,interpolate:z,variable:"",imports:{_:o}},sr||(d=function(){function n(){}return function(e){if(ye(e)){n.prototype=e;var r=new n;n.prototype=null}return r||t.Object()}}());var Er=or&&function(n){var t=new or,e=n?n.length:0;for(t.push=t.add;e--;)t.push(n[e]);
return t},Ar=fr?function(n,t){st.value=t,fr(n,S,st)}:Se,Sr=It(function(n,t,e){er.call(n,e)?n[e]++:n[e]=1}),Ir=It(function(n,t,e){er.call(n,e)?n[e].push(t):n[e]=[t]}),Rr=It(function(n,t,e){n[e]=t}),Nr=It(function(n,t,e){n[e?0:1].push(t)},true),Tr=te;Or.argsClass||(ge=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&er.call(n,"callee")&&!ur.call(n,"callee")||false});var Lr=pr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ye.call(n)==nt||false};Or.dom||(he=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Wr(n)||false
}),ve(/x/)&&(ve=function(n){return typeof n=="function"&&Ye.call(n)==ut});var Wr=tr?function(n){if(!n||Ye.call(n)!=it||!Or.argsClass&&ge(n))return false;var t=n.valueOf,e=Lt(t)&&(e=tr(t))&&tr(e);return e?n==e||tr(n)==e:Wt(n)}:Wt,Fr=vr?function(n){var t=n?n.length:0;return typeof t=="number"&&0<t?Ft(n):ye(n)?vr(n):[]}:Ft,$r=f(function(n,t,e){return!e&&R.test(t)?n+t.toLowerCase():n+(t.charAt(0)[e?"toUpperCase":"toLowerCase"]()+t.slice(1))}),Pr=f(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),zr=f(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()
}),Dr=wr?function(n,t){return null==n?"":null==t?wr.call(n):h(n,t)}:h,Br=xr?function(n,t){return null==n?"":null==t?xr.call(n):v(n,t)}:v,qr=Cr?function(n,t){return null==n?"":null==t?Cr.call(n):y(n,t)}:y,Ur=dr||function(){return(new Te).getTime()},Zr=8==br(G+"08")?br:function(n,t){return n=Dr(n),br(n,+t||(U.test(n)?16:10))};return o.after=function(n,t){if(!ve(t))throw new Be;return n=gr(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0}},o.assign=ce,o.at=function(n,t){var e=arguments,r=-1,u=yt(e,true,false,1),o=u.length,i=typeof t;
for("number"!=i&&"string"!=i||!e[2]||e[2][t]!==n||(o=1),Or.unindexedChars&&be(n)&&(n=n.split("")),e=Re(o);++r<o;)e[r]=n[u[r]];return e},o.bind=ae,o.bindAll=function(n){for(var t=1<arguments.length?yt(arguments,true,false,1):pe(n),e=-1,r=t.length;++e<r;){var u=t[e];n[u]=Nt(n[u],x,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?Nt(t,x|C,null,n):Nt(t,x|C|O,null,n,Ut(arguments,2))},o.chain=function(n){return new i(n,true)},o.compact=function(n){for(var t=-1,e=n?n.length:0,r=0,u=[];++t<e;){var o=n[t];
o&&(u[r++]=o)}return u},o.compose=function(){for(var n=arguments,t=n.length,e=t;e--;)if(!ve(n[e]))throw new Be;return function(){for(var e=t-1,r=n[e].apply(this,arguments);e--;)r=n[e].call(this,r);return r}},o.constant=function(n){return function(){return n}},o.countBy=Sr,o.create=function(n,t){var e=d(n);return t?ce(e,t):e},o.createCallback=ke,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),Nt(n,j,t)},o.debounce=le,o.defaults=se,o.defer=function(n){if(!ve(n))throw new Be;var t=Ut(arguments,1);
return ir(function(){n.apply(w,t)},1)},o.delay=function(n,t){if(!ve(n))throw new Be;var e=Ut(arguments,2);return ir(function(){n.apply(w,e)},t)},o.difference=function(){return pt(arguments[0],yt(arguments,true,true,1))},o.drop=qt,o.dropRight=Dt,o.dropRightWhile=Dt,o.dropWhile=qt,o.filter=Ht,o.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=te(n,e,r)),yt(n,t)},o.forEach=Qt,o.forEachRight=ne,o.forIn=function(n,t,e){return t=t&&typeof e=="undefined"?t:Z(t,e,3),dt(n,t,_e)
},o.forInRight=function(n,t,e){return t=Z(t,e,3),bt(n,t,_e)},o.forOwn=function(n,t,e){return t=t&&typeof e=="undefined"?t:Z(t,e,3),xt(n,t)},o.forOwnRight=function(n,t,e){return t=Z(t,e,3),bt(n,t,Fr)},o.functions=pe,o.groupBy=Ir,o.indexBy=Rr,o.initial=Dt,o.intersection=function(){for(var n=[],t=-1,u=arguments.length,o=[],i=Tt(),a=Er&&i===e;++t<u;){var l=arguments[t];(Lr(l)||ge(l))&&(n.push(l),o.push(a&&120<=l.length&&Er(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?r(p,l):i(s,l))){for(t=u;--t;){var g=o[t];
if(0>(g?r(g,l):i(n[t],l)))continue n}p&&p.push(l),s.push(l)}return s},o.invert=function(n,t){for(var e=-1,r=Fr(n),u=r.length,o={};++e<u;){var i=r[e],a=n[i];t?er.call(o,a)?o[a].push(i):o[a]=[i]:o[a]=i}return o},o.invoke=function(n,t){var e=Ut(arguments,2),r=-1,u=typeof t=="function",o=n&&n.length,i=Re(0>o?0:o>>>0);return gt(n,function(n){var o=u?t:null!=n&&n[t];i[++r]=o?o.apply(n,e):w}),i},o.keys=Fr,o.keysIn=_e,o.map=te,o.mapValues=function(n,t,e){var r={};return t=o.createCallback(t,e,3),xt(n,function(n,e,u){r[e]=t(n,e,u)
}),r},o.matches=Ee,o.max=ee,o.memoize=function(n,t){if(!ve(n))throw new Be;var e=function(){var r=e.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return er.call(r,u)?r[u]:r[u]=n.apply(this,arguments)};return e.cache={},e},o.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=Z(r[--u-1],r[u--],2);else 2<u&&"function"==typeof r[u-1]&&(i=r[--u]);for(var r=Ut(r,1,u),o=-1,a=[],l=[];++o<u;)kt(n,r[o],i,a,l);
return n},o.min=function(n,t,e){var r=1/0,i=r,a=typeof t;if("number"!=a&&"string"!=a||!e||e[t]!==n||(t=null),null==t&&Lr(n))for(e=-1,a=n.length;++e<a;){var l=n[e];l<i&&(i=l)}else t=null==t&&be(n)?u:o.createCallback(t,e,3),gt(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,i=n)});return i},o.negate=fe,o.omit=function(n,t,e){if(typeof t=="function")return t=o.createCallback(t,e,3),we(n,fe(t));for(var r=yt(arguments,true,false,1),u=r.length;u--;)r[u]=De(r[u]);return we(n,pt(_e(n),r))},o.once=function(n){var t,e;if(!ve(n))throw new Be;
return function(){return t?e:(t=true,e=n.apply(this,arguments),n=null,e)}},o.pairs=function(n){for(var t=-1,e=Fr(n),r=e.length,u=Re(r);++t<r;){var o=e[t];u[t]=[o,n[o]]}return u},o.partial=function(n){if(n)var t=n[S]?n[S][2]:n.length,e=Ut(arguments,1),t=t-e.length;return Nt(n,O,t,null,e)},o.partialRight=function(n){if(n)var t=n[S]?n[S][2]:n.length,e=Ut(arguments,1),t=t-e.length;return Nt(n,E,t,null,null,e)},o.partition=Nr,o.pick=we,o.pluck=Tr,o.property=Ie,o.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&&(ar.call(n,u--,1),r--);
return n},o.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=yr(He((t-n)/(e||1)),0);for(var u=Re(t);++r<t;)u[r]=n,n+=e;return u},o.reject=function(n,t,e){return t=o.createCallback(t,e,3),Ht(n,fe(t))},o.remove=function(n,t,e){var r=-1,u=n?n.length:0,i=[];for(t=o.createCallback(t,e,3);++r<u;)e=n[r],t(e,r,n)&&(i.push(e),ar.call(n,r--,1),u--);return i},o.rest=qt,o.shuffle=oe,o.slice=Ut,o.sortBy=function(n,t,e){var r=-1,u=n&&n.length,i=t&&Lr(t),f=Re(0>u?0:u>>>0);for(i||(t=o.createCallback(t,e,3)),gt(n,function(n,e,u){if(i)for(e=t.length,u=Re(e);e--;)u[e]=n[t[e]];
else u=t(n,e,u);f[++r]={a:u,b:r,c:n}}),u=f.length,f.sort(i?l:a);u--;)f[u]=f[u].c;return f},o.tap=function(n,t,e){return t.call(e,n),n},o.throttle=function(n,t,e){var r=true,u=true;if(!ve(n))throw new Be;return false===e?r=false:ye(e)&&(r="leading"in e?!!e.leading:r,u="trailing"in e?!!e.trailing:u),ct.leading=r,ct.maxWait=+t,ct.trailing=u,le(n,t,ct)},o.times=function(n,t,e){n=0>n?0:n>>>0;var r=-1,u=Re(n);for(t=Z(t,e,1);++r<n;)u[r]=t(r);return u},o.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=Xe?Or.unindexedChars&&be(n)?n.split(""):Ut(n):xe(n)
},o.transform=function(n,t,e,r){var u=Lr(n);if(null==e)if(u)e=[];else{var i=n&&n.constructor;e=d(i&&i.prototype)}return t&&(t=o.createCallback(t,r,4),(u?gt:xt)(n,function(n,r,u){return t(e,n,r,u)})),e},o.union=function(){return Et(yt(arguments,true,true))},o.uniq=Kt,o.values=xe,o.valuesIn=function(n){return At(n,_e)},o.where=Ht,o.without=function(){return pt(arguments[0],Ut(arguments,1))},o.wrap=function(n,t){return Nt(t,O,null,null,[n])},o.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var e=arguments[n];
if(Lr(e)||ge(e))var r=r?pt(r,e).concat(pt(e,r)):e}return r?Et(r):[]},o.zip=Mt,o.zipObject=Vt,o.callback=ke,o.collect=te,o.each=Qt,o.eachRight=ne,o.extend=ce,o.methods=pe,o.object=Vt,o.select=Ht,o.tail=qt,o.unique=Kt,o.unzip=Mt,Ae(ce({},o)),o.camelCase=$r,o.capitalize=function(n){return null==n?"":(n=De(n),n.charAt(0).toUpperCase()+n.slice(1))},o.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"&&Z(e,r,1),m(n,t,e)

54
dist/lodash.js vendored
View File

@@ -623,6 +623,7 @@
getPrototypeOf = isNative(getPrototypeOf = Object.getPrototypeOf) && getPrototypeOf,
hasOwnProperty = objectProto.hasOwnProperty,
push = arrayRef.push,
propertyIsEnumerable = objectProto.propertyIsEnumerable,
Set = isNative(Set = context.Set) && Set,
setTimeout = context.setTimeout,
splice = arrayRef.splice,
@@ -787,15 +788,6 @@
*/
support.funcNames = typeof Function.name == 'string';
/**
* Detect if `arguments` object indexes are non-enumerable
* (Firefox < 4, IE < 9, PhantomJS, Safari < 5.1).
*
* @memberOf _.support
* @type boolean
*/
support.nonEnumArgs = !(argsKey == '1' && hasOwnProperty.call(arguments, '1'));
/**
* Detect if the DOM is supported.
*
@@ -807,12 +799,31 @@
} catch(e) {
support.dom = false;
}
/**
* Detect if `arguments` object indexes are non-enumerable
* (Firefox < 4, IE < 9, PhantomJS, Safari < 5.1).
*
* Chrome < 25 and Node.js < 0.11.0 will treat `arguments` object indexes
* that exceed their function's formal parameters and whose associated
* values are `0` as non-enumerable and incorrectly return `false` from
* `Object#hasOwnProperty`.
*
* @memberOf _.support
* @type boolean
*/
try {
support.nonEnumArgs = !(argsKey == '1' && hasOwnProperty.call(arguments, '1') &&
propertyIsEnumerable.call(arguments, '1'));
} catch(e) {
support.nonEnumArgs = true;
}
}(0, 0));
/**
* 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.
* 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.
*
* @static
* @memberOf _
@@ -1352,8 +1363,7 @@
* @returns {Object} Returns `object`.
*/
function baseForRight(object, callback, keysFunc) {
var index = -1,
props = keysFunc(object),
var props = keysFunc(object),
length = props.length;
while (length--) {
@@ -2052,7 +2062,8 @@
* @returns {Array} Returns the array of property names.
*/
function shimKeys(object) {
var index = -1,
var keyIndex,
index = -1,
props = keysIn(object),
length = props.length,
objLength = length && object.length,
@@ -2538,7 +2549,7 @@
} else {
n = (predicate == null || thisArg) ? 1 : predicate;
}
n = length - n;
n = length - (n || 0);
return slice(array, 0, n < 0 ? 0 : n);
}
@@ -2632,8 +2643,8 @@
return array ? array[length - 1] : undefined;
}
}
n = length - n;
return slice(array, n < 0 ? 0 : n);
n = length - (n || 0);
return slice(array, n < 0 ? 0 : n);
}
/**
@@ -6333,13 +6344,12 @@
if (!isObject(object)) {
return [];
}
var keyIndex,
length = object.length;
var length = object.length;
length = (typeof length == 'number' && length > 0 &&
(isArray(object) || (support.nonEnumArgs && isArguments(object))) && length) >>> 0;
var index = -1,
var keyIndex,
index = -1,
maxIndex = length - 1,
result = Array(length),
skipIndexes = length > 0;

104
dist/lodash.min.js vendored
View File

@@ -6,60 +6,60 @@
;(function(){function n(n,t){return typeof n=="undefined"?t:n}function t(n,t){if(n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return 0}function e(n,t,e){e=(e||0)-1;for(var r=n?n.length:0;++e<r;)if(n[e]===t)return e;return-1}function r(n,t){return n.has(t)?0:-1}function u(n){return n.charCodeAt(0)}function o(n,t){for(var e=-1,r=n.length;++e<r&&0<=t.indexOf(n.charAt(e)););return e}function i(n,t){for(var e=n.length;e--&&0<=t.indexOf(n.charAt(e)););return e}function a(n,e){return t(n.a,e.a)||n.b-e.b
}function l(n,e){for(var r=-1,u=n.a,o=e.a,i=u.length;++r<i;){var a=t(u[r],o[r]);if(a)return a}return n.b-e.b}function f(n){return function(t){for(var e=-1,r=(t=null!=t&&(t+"").replace(Z,c).match(X))?t.length:0,u="";++e<r;)u=n(u,t[e],e,t);return u}}function c(n){return pt[n]}function p(n){return ft[n]}function s(n){return"\\"+ht[n]}function h(n,t){return(n=null==n?"":n+"")?null==t?n.slice(y(n),m(n)+1):(t+="",n.slice(o(n,t),i(n,t)+1)):n}function g(n,t){return(n=null==n?"":n+"")?null==t?n.slice(y(n)):(t+="",n.slice(o(n,t))):n
}function v(n,t){return(n=null==n?"":n+"")?null==t?n.slice(0,m(n)+1):(t+="",n.slice(0,i(n,t)+1)):n}function y(n){for(var t=-1,e=n.length;++t<e;){var r=n.charCodeAt(t);if((160<r||9>r||13<r)&&32!=r&&160!=r&&5760!=r&&6158!=r&&(8192>r||8202<r&&8232!=r&&8233!=r&&8239!=r&&8287!=r&&12288!=r&&65279!=r))break}return t}function m(n){for(var t=n.length;t--;){var e=n.charCodeAt(t);if((160<e||9>e||13<e)&&32!=e&&160!=e&&5760!=e&&6158!=e&&(8192>e||8202<e&&8232!=e&&8233!=e&&8239!=e&&8287!=e&&12288!=e&&65279!=e))break
}return t}function d(n){return ct[n]}function b(t){function o(n){return n&&typeof n=="object"&&!Ar(n)&&He.call(n,"__wrapped__")?n:new i(n)}function i(n,t){this.__chain__=!!t,this.__wrapped__=n}function c(n){function t(){if(u){for(var n=-1,i=arguments.length,a=Ie(i);++n<i;)a[n]=arguments[n];a=Ot(u,o,a)}return this instanceof t?(n=m(e.prototype),a=e.apply(n,a||arguments),he(a)?a:n):e.apply(r,a||arguments)}var e=n[0],r=n[3],u=n[4],o=n[6];return wr(t,n),t}function y(n,t,e,r,u){if(e){var o=e(n);if(typeof o!="undefined")return o
}if(!he(n))return n;var i=Pe.call(n);if(!it[i])return n;var a=dr[i];switch(i){case Q:case nt:return new a(+n);case et:case ot:return new a(n);case ut:return o=a(n.source,B.exec(n)),o.lastIndex=n.lastIndex,o}if(i=Ar(n),t){r||(r=[]),u||(u=[]);for(var l=r.length;l--;)if(r[l]==n)return u[l];o=i?a(n.length):{}}else o=i?Bt(n):ae({},n);return i&&(He.call(n,"index")&&(o.index=n.index),He.call(n,"input")&&(o.input=n.input)),t?(r.push(n),u.push(o),(i?ct:bt)(n,function(n,i){o[i]=y(n,t,e,r,u)}),o):o}function m(n){return he(n)?or(n):{}
}function Z(n,t,e){if(typeof n!="function")return ke;if(typeof t=="undefined"||!("prototype"in n))return n;var r=n[I];if(typeof r=="undefined"&&(br.funcNames&&(r=!n.name),r=r||!br.funcDecomp,!r)){var u=Ye.call(n);br.funcNames||(r=!q.test(u)),r||(r=M.test(u),wr(n,r))}if(false===r||true!==r&&r[1]&w)return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,u){return n.call(t,e,r,u)};case 4:return function(e,r,u,o){return n.call(t,e,r,u,o)
}}return ue(n,t)}function X(n){function t(){for(var n=-1,v=arguments.length,y=Ie(v);++n<v;)y[n]=arguments[n];if(i&&(y=Ot(i,l,y)),a){for(var n=a,d=f,b=-1,_=d.length,k=-1,j=cr(y.length-_,0),A=-1,I=n.length,E=Ie(j+I);++k<j;)E[k]=y[k];for(j=k;++A<I;)E[j+A]=n[A];for(;++b<_;)E[j+d[b]]=y[k++];y=E}return s&&(n=[],v-=n.length,v<u)?(r|=C,r&=~O,h||(r&=~(w|x)),v=cr(u-v,0),X([e,r,v,o,y,null,n])):(v=c?o:this,p&&(e=v[g]),this instanceof t?(v=m(e.prototype),n=e.apply(v,y),he(n)?n:v):e.apply(v,y))}var e=n[0],r=n[1],u=n[2],o=n[3],i=n[4],a=n[5],l=n[6],f=n[7],c=r&w,p=r&x,s=r&k,h=r&j,g=e;
return wr(t,n),t}function ft(n,t){var u=n?n.length:0;if(!u)return[];var o=-1,i=Rt(),a=i===e,l=a&&_r&&t&&200<=t.length,a=a&&!l,f=[],c=t?t.length:0;l&&(i=r,t=_r(t));n:for(;++o<u;)if(l=n[o],a){for(var p=c;p--;)if(t[p]===l)continue n;f.push(l)}else 0>i(t,l)&&f.push(l);return f}function ct(n,t){var e=-1,r=n?n.length:0;if(typeof r=="number"&&-1<r&&r<=Ze)for(;++e<r&&false!==t(n[e],e,n););else bt(n,t);return n}function pt(n,t){var e=n?n.length:0;if(typeof e=="number"&&-1<e&&e<=Ze)for(;e--&&false!==t(n[e],e,n););else _t(n,t);
return n}function st(n,t,e,r){var u;return e(n,function(n,e,o){return t(n,e,o)?(u=r?e:n,false):void 0}),u}function ht(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,o=[];++r<u;){var i=n[r];if(i&&typeof i=="object"&&typeof i.length=="number"&&(Ar(i)||ce(i))){t||(i=ht(i,t,e));var a=-1,l=i.length,f=o.length;for(o.length+=l;++a<l;)o[f++]=i[a]}else e||o.push(i)}return o}function vt(n,t,e){var r=-1;e=e(n);for(var u=e.length;++r<u;){var o=e[r];if(false===t(n[o],o,n))break}return n}function yt(n,t,e){e=e(n);for(var r=e.length;r--;){var u=e[r];
if(false===t(n[u],u,n))break}return n}function dt(n,t){return vt(n,t,me)}function bt(n,t){return vt(n,t,Er)}function _t(n,t){return yt(n,t,Er)}function wt(n,t,e,r,u,o){if(e){var i=e(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;var a=typeof n,l=typeof t;if(n===n&&(null==n||null==t||"function"!=a&&"object"!=a&&"function"!=l&&"object"!=l))return false;var f=Pe.call(n),a=Pe.call(t),c=f==H,l=a==H;if(c&&(f=rt),l&&(a=rt),f!=a)return false;switch(f){case Q:case nt:return+n==+t;case et:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;
}return t}function d(n){return ct[n]}function b(t){function o(n){return n&&typeof n=="object"&&!Er(n)&&He.call(n,"__wrapped__")?n:new i(n)}function i(n,t){this.__chain__=!!t,this.__wrapped__=n}function c(n){function t(){if(u){for(var n=-1,i=arguments.length,a=Ee(i);++n<i;)a[n]=arguments[n];a=At(u,o,a)}return this instanceof t?(n=m(e.prototype),a=e.apply(n,a||arguments),he(a)?a:n):e.apply(r,a||arguments)}var e=n[0],r=n[3],u=n[4],o=n[6];return xr(t,n),t}function y(n,t,e,r,u){if(e){var o=e(n);if(typeof o!="undefined")return o
}if(!he(n))return n;var i=Pe.call(n);if(!it[i])return n;var a=br[i];switch(i){case Q:case nt:return new a(+n);case et:case ot:return new a(n);case ut:return o=a(n.source,B.exec(n)),o.lastIndex=n.lastIndex,o}if(i=Er(n),t){r||(r=[]),u||(u=[]);for(var l=r.length;l--;)if(r[l]==n)return u[l];o=i?a(n.length):{}}else o=i?Bt(n):ae({},n);return i&&(He.call(n,"index")&&(o.index=n.index),He.call(n,"input")&&(o.input=n.input)),t?(r.push(n),u.push(o),(i?ct:bt)(n,function(n,i){o[i]=y(n,t,e,r,u)}),o):o}function m(n){return he(n)?ir(n):{}
}function Z(n,t,e){if(typeof n!="function")return ke;if(typeof t=="undefined"||!("prototype"in n))return n;var r=n[E];if(typeof r=="undefined"&&(_r.funcNames&&(r=!n.name),r=r||!_r.funcDecomp,!r)){var u=Ye.call(n);_r.funcNames||(r=!q.test(u)),r||(r=M.test(u),xr(n,r))}if(false===r||true!==r&&r[1]&w)return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,u){return n.call(t,e,r,u)};case 4:return function(e,r,u,o){return n.call(t,e,r,u,o)
}}return ue(n,t)}function X(n){function t(){for(var n=-1,v=arguments.length,y=Ee(v);++n<v;)y[n]=arguments[n];if(i&&(y=At(i,l,y)),a){for(var n=a,d=f,b=-1,_=d.length,k=-1,j=pr(y.length-_,0),O=-1,E=n.length,I=Ee(j+E);++k<j;)I[k]=y[k];for(j=k;++O<E;)I[j+O]=n[O];for(;++b<_;)I[j+d[b]]=y[k++];y=I}return s&&(n=[],v-=n.length,v<u)?(r|=C,r&=~A,h||(r&=~(w|x)),v=pr(u-v,0),X([e,r,v,o,y,null,n])):(v=c?o:this,p&&(e=v[g]),this instanceof t?(v=m(e.prototype),n=e.apply(v,y),he(n)?n:v):e.apply(v,y))}var e=n[0],r=n[1],u=n[2],o=n[3],i=n[4],a=n[5],l=n[6],f=n[7],c=r&w,p=r&x,s=r&k,h=r&j,g=e;
return xr(t,n),t}function ft(n,t){var u=n?n.length:0;if(!u)return[];var o=-1,i=Rt(),a=i===e,l=a&&wr&&t&&200<=t.length,a=a&&!l,f=[],c=t?t.length:0;l&&(i=r,t=wr(t));n:for(;++o<u;)if(l=n[o],a){for(var p=c;p--;)if(t[p]===l)continue n;f.push(l)}else 0>i(t,l)&&f.push(l);return f}function ct(n,t){var e=-1,r=n?n.length:0;if(typeof r=="number"&&-1<r&&r<=Ze)for(;++e<r&&false!==t(n[e],e,n););else bt(n,t);return n}function pt(n,t){var e=n?n.length:0;if(typeof e=="number"&&-1<e&&e<=Ze)for(;e--&&false!==t(n[e],e,n););else _t(n,t);
return n}function st(n,t,e,r){var u;return e(n,function(n,e,o){return t(n,e,o)?(u=r?e:n,false):void 0}),u}function ht(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,o=[];++r<u;){var i=n[r];if(i&&typeof i=="object"&&typeof i.length=="number"&&(Er(i)||ce(i))){t||(i=ht(i,t,e));var a=-1,l=i.length,f=o.length;for(o.length+=l;++a<l;)o[f++]=i[a]}else e||o.push(i)}return o}function vt(n,t,e){var r=-1;e=e(n);for(var u=e.length;++r<u;){var o=e[r];if(false===t(n[o],o,n))break}return n}function yt(n,t,e){e=e(n);for(var r=e.length;r--;){var u=e[r];
if(false===t(n[u],u,n))break}return n}function dt(n,t){return vt(n,t,me)}function bt(n,t){return vt(n,t,Rr)}function _t(n,t){return yt(n,t,Rr)}function wt(n,t,e,r,u,o){if(e){var i=e(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;var a=typeof n,l=typeof t;if(n===n&&(null==n||null==t||"function"!=a&&"object"!=a&&"function"!=l&&"object"!=l))return false;var f=Pe.call(n),a=Pe.call(t),c=f==H,l=a==H;if(c&&(f=rt),l&&(a=rt),f!=a)return false;switch(f){case Q:case nt:return+n==+t;case et:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;
case ut:case ot:return n==$e(t)}if(a=f==J,!a){var p=He.call(n,"__wrapped__"),s=He.call(t,"__wrapped__");if(p||s)return wt(p?n.__wrapped__:n,s?t.__wrapped__:t,e,r,u,o);if(f!=rt)return false;if(f=!c&&He.call(n,"constructor"),p=!l&&He.call(t,"constructor"),f!=p||!f&&(c=c?We:n.constructor,l=l?We:t.constructor,c!=l&&!(se(c)&&c instanceof c&&se(l)&&l instanceof l)&&"constructor"in n&&"constructor"in t))return false}for(u||(u=[]),o||(o=[]),l=u.length;l--;)if(u[l]==n)return o[l]==t;var h=0,i=true;if(u.push(n),o.push(t),a){if(l=n.length,h=t.length,(i=h==l)||r)for(;h--;)if(a=l,c=t[h],r)for(;a--&&!(i=wt(n[a],c,e,r,u,o)););else if(!(i=wt(n[h],c,e,r,u,o)))break
}else dt(t,function(t,a,l){return He.call(l,a)?(h++,i=He.call(n,a)&&wt(n[a],t,e,r,u,o)):void 0}),i&&!r&&dt(n,function(n,t,e){return He.call(e,t)?i=-1<--h:void 0});return u.pop(),o.pop(),i}function xt(n,t,e,r,u){(Ar(t)?ct:bt)(t,function(t,o){var i,a,l=t,f=n[o];if(t&&((a=Ar(t))||Ir(t))){for(l=r.length;l--;)if(i=r[l]==t){f=u[l];break}if(!i){var c;e&&(l=e(f,t),c=typeof l!="undefined")&&(f=l),c||(f=a?Ar(f)?f:[]:Ir(f)?f:{}),r.push(t),u.push(f),c||xt(f,t,e,r,u)}}else e&&(l=e(f,t),typeof l=="undefined"&&(l=t)),typeof l!="undefined"&&(f=l);
n[o]=f})}function kt(n,t){return n+Xe(gr()*(t-n+1))}function jt(n,t,u){var o=n?n.length:0;if(!o)return[];var i=-1,a=Rt(),l=!t&&a===e,f=l&&_r&&200<=o,l=l&&!f,c=[];if(f)var p=_r(),a=r;else p=u&&!t?[]:c;n:for(;++i<o;){var s=n[i],h=u?u(s,i,n):s;if(l){for(var g=p.length;g--;)if(p[g]===h)continue n;u&&p.push(h),c.push(s)}else t?i&&p===h||(p=h,c.push(s)):0>a(p,h)&&((u||f)&&p.push(h),c.push(s))}return c}function Ct(n,t){for(var e=-1,r=t(n),u=r.length,o=Ie(u);++e<u;)o[e]=n[r[e]];return o}function Ot(n,t,e){for(var r=t.length,u=-1,o=cr(e.length-r,0),i=-1,a=n.length,l=Ie(o+a);++i<a;)l[i]=n[i];
for(;++u<r;)l[t[u]]=e[u];for(;o--;)l[i++]=e[u++];return l}function At(n,t){return function(e,r,u){var i=t?[[],[]]:{};r=o.createCallback(r,u,3),u=-1;var a=e?e.length:0;if(typeof a=="number"&&-1<a&&a<=Ze)for(;++u<a;){var l=e[u];n(i,l,r(l,u,e),e)}else ct(e,function(t,e,u){n(i,t,r(t,e,u),u)});return i}}function It(n,t,e){return n=n.length,t=+t,n<t&&ar(t)?(t-=n,e=null==e?" ":$e(e),we(e,Me(t/e.length)).slice(0,t)):""}function Et(n,t,e,r,u,o){var i=t&w,a=t&x,l=t&C,f=t&O;if(!a&&!se(n))throw new Le;l&&!u.length&&(t&=~C,l=u=false),f&&!o.length&&(t&=~O,f=o=false);
var p=!a&&n[I];if(p&&true!==p)return p=Bt(p),p[4]&&(p[4]=Bt(p[4])),p[5]&&(p[5]=Bt(p[5])),typeof e=="number"&&(p[2]=e),n=p[1]&w,i&&!n&&(p[3]=r),!i&&n&&(t|=j),l&&(p[4]?Je.apply(p[4],u):p[4]=u),f&&(p[5]?er.apply(p[5],o):p[5]=o),p[1]|=t,Et.apply(null,p);if(l)var s=[];if(f)var h=[];return null==e&&(e=a?0:n.length),e=cr(e,0),p=[n,t,e,r,u,o,s,h],t==w||t==(w|C)?c(p):X(p)}function Rt(){var n=(n=o.indexOf)===$t?e:n;return n}function Nt(n){return typeof n=="function"&&Ke.test(Ye.call(n))}function St(n){var t,e;
return n&&Pe.call(n)==rt&&(He.call(n,"constructor")||(t=n.constructor,!se(t)||t instanceof t))?(dt(n,function(n,t){e=t}),typeof e=="undefined"||He.call(n,e)):false}function Tt(n){for(var t=-1,e=me(n),r=e.length,u=r&&n.length,o=u-1,i=[],u=typeof u=="number"&&0<u&&(Ar(n)||br.nonEnumArgs&&ce(n));++t<r;){var a=e[t];(u&&(keyIndex=+a,-1<keyIndex&&keyIndex<=o&&0==keyIndex%1)||He.call(n,a))&&i.push(a)}return i}function Wt(n,t,e){var r=-1,u=n?n.length:0;for(t=o.createCallback(t,e,3);++r<u;)if(t(n[r],r,n))return r;
return-1}function Ft(n,t,e){if(typeof t!="number"&&null!=t){var r=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,e,3);++r<u&&t(n[r],r,n);)i++}else if(i=t,null==i||e)return n?n[0]:_;return Bt(n,0,0>i?0:i)}function $t(n,t,r){var u=n?n.length:0;if(typeof r=="number")r=0>r?cr(u+r,0):r||0;else if(r)return r=qt(n,t),u&&n[r]===t?r:-1;return e(n,t,r)}function Lt(n,t,e){var r=n?n.length:0;if(typeof t!="number"&&null!=t){var u=r,i=0;for(t=o.createCallback(t,e,3);u--&&t(n[u],u,n);)i++}else i=null==t||e?1:t;
return i=r-i,Bt(n,0,0>i?0:i)}function zt(n,t,e){var r=n?n.length:0;if(typeof t!="number"&&null!=t){var u=r,i=0;for(t=o.createCallback(t,e,3);u--&&t(n[u],u,n);)i++}else if(i=t,null==i||e)return n?n[r-1]:_;return i=r-i,Bt(n,0>i?0:i)}function Dt(n,t,e){if(typeof t!="number"&&null!=t){var r=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,e,3);++r<u&&t(n[r],r,n);)i++}else i=null==t||e?1:0>t?0:t;return Bt(n,i)}function Bt(n,t,e){var r=-1,u=n?n.length:0;for(t=typeof t=="undefined"?0:+t||0,0>t?t=cr(u+t,0):t>u&&(t=u),e=typeof e=="undefined"?u:+e||0,0>e?e=cr(u+e,0):e>u&&(e=u),u=t>e?0:e-t,e=Ie(u);++r<u;)e[r]=n[t+r];
return e}function qt(n,t,e,r){var u=0,i=n?n.length:u;for(e=e?o.createCallback(e,r,1):ke,t=e(t);u<i;)r=u+i>>>1,e(n[r])<t?u=r+1:i=r;return u}function Ut(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&&(e=o.createCallback(e,r,3)),jt(n,t,e)}function Zt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?Qt(Or(n,"length")):0,r=Ie(0>e?0:e);++t<e;)r[t]=Or(n,t);return r}function Pt(n,t){var e=-1,r=n?n.length:0,u={};
for(t||!r||Ar(n[0])||(t=[]);++e<r;){var o=n[e];t?u[o]=t[e]:o&&(u[o[0]]=o[1])}return u}function Kt(){return this.__wrapped__}function Mt(n,t,e){var r=n?n.length:0;if(e=typeof e=="number"&&e||0,typeof r=="number"&&-1<r&&r<=Ze){if(typeof n=="string"||!Ar(n)&&ye(n))return e<r?ur?ur.call(n,t,e):-1<n.indexOf(t,e):false;var u=Rt();return e=0>e?cr(r+e,0):e,-1<u(n,t,e)}var o=-1,i=false;return ct(n,function(n){return++o<e?void 0:!(i=n===t)}),i}function Vt(n,t,e){var r=true;t=o.createCallback(t,e,3),e=-1;var u=n?n.length:0;
}else dt(t,function(t,a,l){return He.call(l,a)?(h++,i=He.call(n,a)&&wt(n[a],t,e,r,u,o)):void 0}),i&&!r&&dt(n,function(n,t,e){return He.call(e,t)?i=-1<--h:void 0});return u.pop(),o.pop(),i}function xt(n,t,e,r,u){(Er(t)?ct:bt)(t,function(t,o){var i,a,l=t,f=n[o];if(t&&((a=Er(t))||Ir(t))){for(l=r.length;l--;)if(i=r[l]==t){f=u[l];break}if(!i){var c;e&&(l=e(f,t),c=typeof l!="undefined")&&(f=l),c||(f=a?Er(f)?f:[]:Ir(f)?f:{}),r.push(t),u.push(f),c||xt(f,t,e,r,u)}}else e&&(l=e(f,t),typeof l=="undefined"&&(l=t)),typeof l!="undefined"&&(f=l);
n[o]=f})}function kt(n,t){return n+Xe(vr()*(t-n+1))}function jt(n,t,u){var o=n?n.length:0;if(!o)return[];var i=-1,a=Rt(),l=!t&&a===e,f=l&&wr&&200<=o,l=l&&!f,c=[];if(f)var p=wr(),a=r;else p=u&&!t?[]:c;n:for(;++i<o;){var s=n[i],h=u?u(s,i,n):s;if(l){for(var g=p.length;g--;)if(p[g]===h)continue n;u&&p.push(h),c.push(s)}else t?i&&p===h||(p=h,c.push(s)):0>a(p,h)&&((u||f)&&p.push(h),c.push(s))}return c}function Ct(n,t){for(var e=-1,r=t(n),u=r.length,o=Ee(u);++e<u;)o[e]=n[r[e]];return o}function At(n,t,e){for(var r=t.length,u=-1,o=pr(e.length-r,0),i=-1,a=n.length,l=Ee(o+a);++i<a;)l[i]=n[i];
for(;++u<r;)l[t[u]]=e[u];for(;o--;)l[i++]=e[u++];return l}function Ot(n,t){return function(e,r,u){var i=t?[[],[]]:{};r=o.createCallback(r,u,3),u=-1;var a=e?e.length:0;if(typeof a=="number"&&-1<a&&a<=Ze)for(;++u<a;){var l=e[u];n(i,l,r(l,u,e),e)}else ct(e,function(t,e,u){n(i,t,r(t,e,u),u)});return i}}function Et(n,t,e){return n=n.length,t=+t,n<t&&lr(t)?(t-=n,e=null==e?" ":$e(e),we(e,Me(t/e.length)).slice(0,t)):""}function It(n,t,e,r,u,o){var i=t&w,a=t&x,l=t&C,f=t&A;if(!a&&!se(n))throw new Le;l&&!u.length&&(t&=~C,l=u=false),f&&!o.length&&(t&=~A,f=o=false);
var p=!a&&n[E];if(p&&true!==p)return p=Bt(p),p[4]&&(p[4]=Bt(p[4])),p[5]&&(p[5]=Bt(p[5])),typeof e=="number"&&(p[2]=e),n=p[1]&w,i&&!n&&(p[3]=r),!i&&n&&(t|=j),l&&(p[4]?Je.apply(p[4],u):p[4]=u),f&&(p[5]?rr.apply(p[5],o):p[5]=o),p[1]|=t,It.apply(null,p);if(l)var s=[];if(f)var h=[];return null==e&&(e=a?0:n.length),e=pr(e,0),p=[n,t,e,r,u,o,s,h],t==w||t==(w|C)?c(p):X(p)}function Rt(){var n=(n=o.indexOf)===$t?e:n;return n}function Nt(n){return typeof n=="function"&&Ke.test(Ye.call(n))}function St(n){var t,e;
return n&&Pe.call(n)==rt&&(He.call(n,"constructor")||(t=n.constructor,!se(t)||t instanceof t))?(dt(n,function(n,t){e=t}),typeof e=="undefined"||He.call(n,e)):false}function Tt(n){for(var t,e=-1,r=me(n),u=r.length,o=u&&n.length,i=o-1,a=[],o=typeof o=="number"&&0<o&&(Er(n)||_r.nonEnumArgs&&ce(n));++e<u;){var l=r[e];(o&&(t=+l,-1<t&&t<=i&&0==t%1)||He.call(n,l))&&a.push(l)}return a}function Wt(n,t,e){var r=-1,u=n?n.length:0;for(t=o.createCallback(t,e,3);++r<u;)if(t(n[r],r,n))return r;return-1}function Ft(n,t,e){if(typeof t!="number"&&null!=t){var r=-1,u=n?n.length:0,i=0;
for(t=o.createCallback(t,e,3);++r<u&&t(n[r],r,n);)i++}else if(i=t,null==i||e)return n?n[0]:_;return Bt(n,0,0>i?0:i)}function $t(n,t,r){var u=n?n.length:0;if(typeof r=="number")r=0>r?pr(u+r,0):r||0;else if(r)return r=qt(n,t),u&&n[r]===t?r:-1;return e(n,t,r)}function Lt(n,t,e){var r=n?n.length:0;if(typeof t!="number"&&null!=t){var u=r,i=0;for(t=o.createCallback(t,e,3);u--&&t(n[u],u,n);)i++}else i=null==t||e?1:t;return i=r-(i||0),Bt(n,0,0>i?0:i)}function zt(n,t,e){var r=n?n.length:0;if(typeof t!="number"&&null!=t){var u=r,i=0;
for(t=o.createCallback(t,e,3);u--&&t(n[u],u,n);)i++}else if(i=t,null==i||e)return n?n[r-1]:_;return i=r-(i||0),Bt(n,0>i?0:i)}function Dt(n,t,e){if(typeof t!="number"&&null!=t){var r=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,e,3);++r<u&&t(n[r],r,n);)i++}else i=null==t||e?1:0>t?0:t;return Bt(n,i)}function Bt(n,t,e){var r=-1,u=n?n.length:0;for(t=typeof t=="undefined"?0:+t||0,0>t?t=pr(u+t,0):t>u&&(t=u),e=typeof e=="undefined"?u:+e||0,0>e?e=pr(u+e,0):e>u&&(e=u),u=t>e?0:e-t,e=Ee(u);++r<u;)e[r]=n[t+r];
return e}function qt(n,t,e,r){var u=0,i=n?n.length:u;for(e=e?o.createCallback(e,r,1):ke,t=e(t);u<i;)r=u+i>>>1,e(n[r])<t?u=r+1:i=r;return u}function Ut(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&&(e=o.createCallback(e,r,3)),jt(n,t,e)}function Zt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?Qt(Or(n,"length")):0,r=Ee(0>e?0:e);++t<e;)r[t]=Or(n,t);return r}function Pt(n,t){var e=-1,r=n?n.length:0,u={};
for(t||!r||Er(n[0])||(t=[]);++e<r;){var o=n[e];t?u[o]=t[e]:o&&(u[o[0]]=o[1])}return u}function Kt(){return this.__wrapped__}function Mt(n,t,e){var r=n?n.length:0;if(e=typeof e=="number"&&e||0,typeof r=="number"&&-1<r&&r<=Ze){if(typeof n=="string"||!Er(n)&&ye(n))return e<r?or?or.call(n,t,e):-1<n.indexOf(t,e):false;var u=Rt();return e=0>e?pr(r+e,0):e,-1<u(n,t,e)}var o=-1,i=false;return ct(n,function(n){return++o<e?void 0:!(i=n===t)}),i}function Vt(n,t,e){var r=true;t=o.createCallback(t,e,3),e=-1;var u=n?n.length:0;
if(typeof u=="number"&&-1<u&&u<=Ze){for(;++e<u;)if(!t(n[e],e,n))return false}else ct(n,function(n,e,u){return r=!!t(n,e,u)});return r}function Xt(n,t,e){var r=[];t=o.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Ze)for(;++e<u;){var i=n[e];t(i,e,n)&&r.push(i)}else ct(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function Yt(n,t,e){var r=n?n.length:0;return typeof r=="number"&&-1<r&&r<=Ze?(t=Wt(n,t,e),-1<t?n[t]:_):(t=o.createCallback(t,e,3),st(n,t,ct))}function Gt(n,t,e){var r=-1,u=n?n.length:0;
if(t=t&&typeof e=="undefined"?t:Z(t,e,3),typeof u=="number"&&-1<u&&u<=Ze)for(;++r<u&&false!==t(n[r],r,n););else ct(n,t);return n}function Ht(n,t,e){var r=n?n.length:0;if(t=t&&typeof e=="undefined"?t:Z(t,e,3),typeof r=="number"&&-1<r&&r<=Ze)for(;r--&&false!==t(n[r],r,n););else pt(n,t);return n}function Jt(n,t,e){var r=-1,u=n?n.length:0;if(t=o.createCallback(t,e,3),typeof u=="number"&&-1<u&&u<=Ze)for(var i=Ie(u);++r<u;)i[r]=t(n[r],r,n);else i=[],ct(n,function(n,e,u){i[++r]=t(n,e,u)});return i}function Qt(n,t,e){var r=-1/0,i=r,a=typeof t;
if("number"!=a&&"string"!=a||!e||e[t]!==n||(t=null),null==t&&Ar(n))for(e=-1,a=n.length;++e<a;){var l=n[e];l>i&&(i=l)}else t=null==t&&ye(n)?u:o.createCallback(t,e,3),ct(n,function(n,e,u){e=t(n,e,u),e>r&&(r=e,i=n)});return i}function ne(n,t,e,r){var u=3>arguments.length;t=o.createCallback(t,r,4);var i=-1,a=n?n.length:0;if(typeof a=="number"&&-1<a&&a<=Ze)for(u&&a&&(e=n[++i]);++i<a;)e=t(e,n[i],i,n);else ct(n,function(n,r,o){e=u?(u=false,n):t(e,n,r,o)});return e}function te(n,t,e,r){var u=3>arguments.length;
return t=o.createCallback(t,r,4),pt(n,function(n,r,o){e=u?(u=false,n):t(e,n,r,o)}),e}function ee(n){var t=-1,e=n&&n.length,r=Ie(0>e?0:e>>>0);return ct(n,function(n){var e=kt(0,++t);r[t]=r[e],r[e]=n}),r}function re(n,t,e){var r;t=o.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Ze){for(;++e<u;)if(t(n[e],e,n))return true}else ct(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function ue(n,t){if(3>arguments.length)return Et(n,w,null,t);if(n)var e=n[I]?n[I][2]:n.length,r=Bt(arguments,2),e=e-r.length;
return Et(n,w|C,e,t,r)}function oe(n,t,e){var r,u,o,i,a,l,f,c=0,p=false,s=true;if(!se(n))throw new Le;if(t=0>t?0:t,true===e)var h=true,s=false;else he(e)&&(h=e.leading,p="maxWait"in e&&cr(t,+e.maxWait||0),s="trailing"in e?e.trailing:s);var g=function(){var e=t-($r()-i);0>=e||e>t?(u&&Ve(u),e=f,u=l=f=_,e&&(c=$r(),o=n.apply(a,r),l||u||(r=a=null))):l=nr(g,e)},v=function(){l&&Ve(l),u=l=f=_,(s||p!==t)&&(c=$r(),o=n.apply(a,r),l||u||(r=a=null))};return function(){if(r=arguments,i=$r(),a=this,f=s&&(l||!h),false===p)var e=h&&!l;
else{u||h||(c=i);var y=p-(i-c),m=0>=y||y>p;m?(u&&(u=Ve(u)),c=i,o=n.apply(a,r)):u||(u=nr(v,y))}return m&&l?l=Ve(l):l||t===p||(l=nr(g,t)),e&&(m=true,o=n.apply(a,r)),!m||l||u||(r=a=null),o}}function ie(n){if(!se(n))throw new Le;return function(){return!n.apply(this,arguments)}}function ae(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=Z(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,l=Er(t),f=l.length;++i<f;){var c=l[i];n[c]=a?a(n[c],t[c]):t[c]}}return n}function le(t){if(!t||2>arguments.length)return t;var e=Bt(arguments);return e.push(n),ae.apply(null,e)}function fe(n){var t=[];return dt(n,function(n,e){se(n)&&t.push(e)}),t.sort()}function ce(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Pe.call(n)==H||false}function pe(n){return n&&typeof n=="object"&&1===n.nodeType&&-1<Pe.call(n).indexOf("Element")||false}function se(n){return typeof n=="function"
}function he(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function ge(n){var t=typeof n;return"number"==t||n&&"object"==t&&Pe.call(n)==et||false}function ve(n){return n&&typeof n=="object"&&Pe.call(n)==ut||false}function ye(n){return typeof n=="string"||n&&typeof n=="object"&&Pe.call(n)==ot||false}function me(n){if(!he(n))return[];for(var t,e=n.length,e=(typeof e=="number"&&0<e&&(Ar(n)||br.nonEnumArgs&&ce(n))&&e)>>>0,r=-1,u=e-1,o=Ie(e),i=0<e;++r<e;)o[r]=$e(r);for(var a in n)i&&(t=+a,-1<t&&t<=u&&0==t%1)||o.push(a);
return o}function de(n,t,e){var r={};if(typeof t!="function")for(var u=-1,i=ht(arguments,true,false,1),a=he(n)?i.length:0;++u<a;){var l=i[u];l in n&&(r[l]=n[l])}else t=o.createCallback(t,e,3),dt(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r}function be(n){return Ct(n,Er)}function _e(n){return null==n?"":$e(n).replace(K,"\\$&")}function we(n,t){var e="";if(t=+t,1>t||null==n||!ar(t))return e;n=$e(n);do t%2&&(e+=n),t=Xe(t/2),n+=n;while(t);return e}function xe(n,t,e){var r=typeof n;return"function"==r||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||Z(n,t,e):"object"!=r?Ae(n):je(n)
}function ke(n){return n}function je(n){n||(n={});var t=Er(n),e=t.length,r=t[0],u=n[r];return 1!=e||u!==u||he(u)?function(r){for(var u=e,o=false;u--&&(o=t[u],o=He.call(r,o)&&wt(r[o],n[o],null,true)););return o}:function(n){return He.call(n,r)?(n=n[r],u===n&&(0!==u||1/u==1/n)):false}}function Ce(n,t,e){var r=true,u=t&&fe(t);t&&(e||u.length)||(null==e&&(e=t),t=n,n=o,u=fe(t)),false===e?r=false:he(e)&&"chain"in e&&(r=e.chain),e=-1;for(var i=se(n),a=u?u.length:0;++e<a;){var l=u[e],f=n[l]=t[l];i&&(n.prototype[l]=function(t){return function(){var e=this.__chain__,u=this.__wrapped__,o=[u];
if(Je.apply(o,arguments),o=t.apply(n,o),r||e){if(u===o&&he(o))return this;o=new n(o),o.__chain__=e}return o}}(f))}}function Oe(){}function Ae(n){return function(t){return null==t?_:t[n]}}t=t?mt.defaults(gt.Object(),t,mt.pick(gt,G)):gt;var Ie=t.Array,Ee=t.Boolean,Re=t.Date,Ne=t.Function,Se=t.Math,Te=t.Number,We=t.Object,Fe=t.RegExp,$e=t.String,Le=t.TypeError,ze=Ie.prototype,De=We.prototype,Be=$e.prototype,qe=(qe=t.window)&&qe.document,Ue=t._,Ze=Se.pow(2,53)-1,Pe=De.toString,Ke=Fe("^"+_e(Pe).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=Se.ceil,Ve=t.clearTimeout,Xe=Se.floor,Ye=Ne.prototype.toString,Ge=Nt(Ge=We.getPrototypeOf)&&Ge,He=De.hasOwnProperty,Je=ze.push,Qe=Nt(Qe=t.Set)&&Qe,nr=t.setTimeout,tr=ze.splice,er=ze.unshift,rr=function(){try{var n={},t=Nt(t=We.defineProperty)&&t,e=t(n,n,n)&&t
}catch(r){}return e}(),ur=Nt(ur=Be.contains)&&ur,or=Nt(or=We.create)&&or,ir=Nt(ir=Ie.isArray)&&ir,ar=t.isFinite,lr=t.isNaN,fr=Nt(fr=We.keys)&&fr,cr=Se.max,pr=Se.min,sr=Nt(sr=Re.now)&&sr,hr=t.parseInt,gr=Se.random,vr=Nt(vr=Be.trim)&&!vr.call(Y)&&vr,yr=Nt(yr=Be.trimLeft)&&!yr.call(Y)&&yr,mr=Nt(mr=Be.trimRight)&&!mr.call(Y)&&mr,dr={};dr[J]=Ie,dr[Q]=Ee,dr[nt]=Re,dr[tt]=Ne,dr[rt]=We,dr[et]=Te,dr[ut]=Fe,dr[ot]=$e,i.prototype=o.prototype;var br=o.support={};!function(x){for(var n in arguments);br.funcDecomp=!Nt(t.WinRTError)&&M.test(b),br.funcNames=typeof Ne.name=="string",br.nonEnumArgs=!("1"==n&&He.call(arguments,"1"));
try{br.dom=11===qe.createDocumentFragment().nodeType}catch(e){br.dom=false}}(0,0),o.templateSettings={escape:$,evaluate:L,interpolate:z,variable:"",imports:{_:o}},or||(m=function(){function n(){}return function(e){if(he(e)){n.prototype=e;var r=new n;n.prototype=null}return r||t.Object()}}());var _r=Qe&&function(n){var t=new Qe,e=n?n.length:0;for(t.push=t.add;e--;)t.push(n[e]);return t},wr=rr?function(n,t){lt.value=t,rr(n,I,lt)}:Oe,xr=At(function(n,t,e){He.call(n,e)?n[e]++:n[e]=1}),kr=At(function(n,t,e){He.call(n,e)?n[e].push(t):n[e]=[t]
}),jr=At(function(n,t,e){n[e]=t}),Cr=At(function(n,t,e){n[e?0:1].push(t)},true),Or=Jt,Ar=ir||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Pe.call(n)==J||false};br.dom||(pe=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Ir(n)||false});var Ir=Ge?function(n){if(!n||Pe.call(n)!=rt)return false;var t=n.valueOf,e=Nt(t)&&(e=Ge(t))&&Ge(e);return e?n==e||Ge(n)==e:St(n)}:St,Er=fr?function(n){var t=n?n.length:0;return typeof t=="number"&&0<t?Tt(n):he(n)?fr(n):[]}:Tt,Rr=f(function(n,t,e){return!e&&R.test(t)?n+t.toLowerCase():n+(t.charAt(0)[e?"toUpperCase":"toLowerCase"]()+t.slice(1))
}),Nr=f(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),Sr=f(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()}),Tr=vr?function(n,t){return null==n?"":null==t?vr.call(n):h(n,t)}:h,Wr=yr?function(n,t){return null==n?"":null==t?yr.call(n):g(n,t)}:g,Fr=mr?function(n,t){return null==n?"":null==t?mr.call(n):v(n,t)}:v,$r=sr||function(){return(new Re).getTime()},Lr=8==hr(Y+"08")?hr:function(n,t){return n=Tr(n),hr(n,+t||(U.test(n)?16:10))};return o.after=function(n,t){if(!se(t))throw new Le;return n=ar(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0
}},o.assign=ae,o.at=function(n,t){var e=arguments,r=-1,u=ht(e,true,false,1),o=u.length,i=typeof t;for("number"!=i&&"string"!=i||!e[2]||e[2][t]!==n||(o=1),e=Ie(o);++r<o;)e[r]=n[u[r]];return e},o.bind=ue,o.bindAll=function(n){for(var t=1<arguments.length?ht(arguments,true,false,1):fe(n),e=-1,r=t.length;++e<r;){var u=t[e];n[u]=Et(n[u],w,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?Et(t,w|x,null,n):Et(t,w|x|C,null,n,Bt(arguments,2))},o.chain=function(n){return new i(n,true)},o.compact=function(n){for(var t=-1,e=n?n.length:0,r=0,u=[];++t<e;){var o=n[t];
o&&(u[r++]=o)}return u},o.compose=function(){for(var n=arguments,t=n.length,e=t;e--;)if(!se(n[e]))throw new Le;return function(){for(var e=t-1,r=n[e].apply(this,arguments);e--;)r=n[e].call(this,r);return r}},o.constant=function(n){return function(){return n}},o.countBy=xr,o.create=function(n,t){var e=m(n);return t?ae(e,t):e},o.createCallback=xe,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),Et(n,k,t)},o.debounce=oe,o.defaults=le,o.defer=function(n){if(!se(n))throw new Le;var t=Bt(arguments,1);
return nr(function(){n.apply(_,t)},1)},o.delay=function(n,t){if(!se(n))throw new Le;var e=Bt(arguments,2);return nr(function(){n.apply(_,e)},t)},o.difference=function(){return ft(arguments[0],ht(arguments,true,true,1))},o.drop=Dt,o.dropRight=Lt,o.dropRightWhile=Lt,o.dropWhile=Dt,o.filter=Xt,o.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=Jt(n,e,r)),ht(n,t)},o.forEach=Gt,o.forEachRight=Ht,o.forIn=function(n,t,e){return t=t&&typeof e=="undefined"?t:Z(t,e,3),vt(n,t,me)
},o.forInRight=function(n,t,e){return t=Z(t,e,3),yt(n,t,me)},o.forOwn=function(n,t,e){return t=t&&typeof e=="undefined"?t:Z(t,e,3),bt(n,t)},o.forOwnRight=function(n,t,e){return t=Z(t,e,3),yt(n,t,Er)},o.functions=fe,o.groupBy=kr,o.indexBy=jr,o.initial=Lt,o.intersection=function(){for(var n=[],t=-1,u=arguments.length,o=[],i=Rt(),a=_r&&i===e;++t<u;){var l=arguments[t];(Ar(l)||ce(l))&&(n.push(l),o.push(a&&120<=l.length&&_r(t&&l)))}var u=n.length,a=n[0],f=-1,c=a?a.length:0,p=[],s=o[0];n:for(;++f<c;)if(l=a[f],0>(s?r(s,l):i(p,l))){for(t=u;--t;){var h=o[t];
if(0>(h?r(h,l):i(n[t],l)))continue n}s&&s.push(l),p.push(l)}return p},o.invert=function(n,t){for(var e=-1,r=Er(n),u=r.length,o={};++e<u;){var i=r[e],a=n[i];t?He.call(o,a)?o[a].push(i):o[a]=[i]:o[a]=i}return o},o.invoke=function(n,t){var e=Bt(arguments,2),r=-1,u=typeof t=="function",o=n&&n.length,i=Ie(0>o?0:o>>>0);return ct(n,function(n){var o=u?t:null!=n&&n[t];i[++r]=o?o.apply(n,e):_}),i},o.keys=Er,o.keysIn=me,o.map=Jt,o.mapValues=function(n,t,e){var r={};return t=o.createCallback(t,e,3),bt(n,function(n,e,u){r[e]=t(n,e,u)
}),r},o.matches=je,o.max=Qt,o.memoize=function(n,t){if(!se(n))throw new Le;var e=function(){var r=e.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return He.call(r,u)?r[u]:r[u]=n.apply(this,arguments)};return e.cache={},e},o.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=Z(r[--u-1],r[u--],2);else 2<u&&"function"==typeof r[u-1]&&(i=r[--u]);for(var r=Bt(r,1,u),o=-1,a=[],l=[];++o<u;)xt(n,r[o],i,a,l);
return n},o.min=function(n,t,e){var r=1/0,i=r,a=typeof t;if("number"!=a&&"string"!=a||!e||e[t]!==n||(t=null),null==t&&Ar(n))for(e=-1,a=n.length;++e<a;){var l=n[e];l<i&&(i=l)}else t=null==t&&ye(n)?u:o.createCallback(t,e,3),ct(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,i=n)});return i},o.negate=ie,o.omit=function(n,t,e){if(typeof t=="function")return t=o.createCallback(t,e,3),de(n,ie(t));for(var r=ht(arguments,true,false,1),u=r.length;u--;)r[u]=$e(r[u]);return de(n,ft(me(n),r))},o.once=function(n){var t,e;if(!se(n))throw new Le;
return function(){return t?e:(t=true,e=n.apply(this,arguments),n=null,e)}},o.pairs=function(n){for(var t=-1,e=Er(n),r=e.length,u=Ie(r);++t<r;){var o=e[t];u[t]=[o,n[o]]}return u},o.partial=function(n){if(n)var t=n[I]?n[I][2]:n.length,e=Bt(arguments,1),t=t-e.length;return Et(n,C,t,null,e)},o.partialRight=function(n){if(n)var t=n[I]?n[I][2]:n.length,e=Bt(arguments,1),t=t-e.length;return Et(n,O,t,null,null,e)},o.partition=Cr,o.pick=de,o.pluck=Or,o.property=Ae,o.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&&(tr.call(n,u--,1),r--);
return n},o.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=cr(Me((t-n)/(e||1)),0);for(var u=Ie(t);++r<t;)u[r]=n,n+=e;return u},o.reject=function(n,t,e){return t=o.createCallback(t,e,3),Xt(n,ie(t))},o.remove=function(n,t,e){var r=-1,u=n?n.length:0,i=[];for(t=o.createCallback(t,e,3);++r<u;)e=n[r],t(e,r,n)&&(i.push(e),tr.call(n,r--,1),u--);return i},o.rest=Dt,o.shuffle=ee,o.slice=Bt,o.sortBy=function(n,t,e){var r=-1,u=n&&n.length,i=t&&Ar(t),f=Ie(0>u?0:u>>>0);for(i||(t=o.createCallback(t,e,3)),ct(n,function(n,e,u){if(i)for(e=t.length,u=Ie(e);e--;)u[e]=n[t[e]];
else u=t(n,e,u);f[++r]={a:u,b:r,c:n}}),u=f.length,f.sort(i?l:a);u--;)f[u]=f[u].c;return f},o.tap=function(n,t,e){return t.call(e,n),n},o.throttle=function(n,t,e){var r=true,u=true;if(!se(n))throw new Le;return false===e?r=false:he(e)&&(r="leading"in e?!!e.leading:r,u="trailing"in e?!!e.trailing:u),at.leading=r,at.maxWait=+t,at.trailing=u,oe(n,t,at)},o.times=function(n,t,e){n=0>n?0:n>>>0;var r=-1,u=Ie(n);for(t=Z(t,e,1);++r<n;)u[r]=t(r);return u},o.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=Ze?Bt(n):be(n)
},o.transform=function(n,t,e,r){var u=Ar(n);if(null==e)if(u)e=[];else{var i=n&&n.constructor;e=m(i&&i.prototype)}return t&&(t=o.createCallback(t,r,4),(u?ct:bt)(n,function(n,r,u){return t(e,n,r,u)})),e},o.union=function(){return jt(ht(arguments,true,true))},o.uniq=Ut,o.values=be,o.valuesIn=function(n){return Ct(n,me)},o.where=Xt,o.without=function(){return ft(arguments[0],Bt(arguments,1))},o.wrap=function(n,t){return Et(t,C,null,null,[n])},o.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var e=arguments[n];
if(Ar(e)||ce(e))var r=r?ft(r,e).concat(ft(e,r)):e}return r?jt(r):[]},o.zip=Zt,o.zipObject=Pt,o.callback=xe,o.collect=Jt,o.each=Gt,o.eachRight=Ht,o.extend=ae,o.methods=fe,o.object=Pt,o.select=Xt,o.tail=Dt,o.unique=Ut,o.unzip=Zt,Ce(ae({},o)),o.camelCase=Rr,o.capitalize=function(n){return null==n?"":(n=$e(n),n.charAt(0).toUpperCase()+n.slice(1))},o.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"&&Z(e,r,1),y(n,t,e)
},o.cloneDeep=function(n,t,e){return t=typeof t=="function"&&Z(t,e,1),y(n,true,t)},o.contains=Mt,o.endsWith=function(n,t,e){n=null==n?"":$e(n),t=$e(t);var r=n.length;return e=(typeof e=="undefined"?r:pr(0>e?0:+e||0,r))-t.length,0<=e&&n.indexOf(t,e)==e},o.escape=function(n){return null==n?"":$e(n).replace(F,p)},o.escapeRegExp=_e,o.every=Vt,o.find=Yt,o.findIndex=Wt,o.findKey=function(n,t,e){return t=o.createCallback(t,e,3),st(n,t,bt,true)},o.findLast=function(n,t,e){return t=o.createCallback(t,e,3),st(n,t,pt)
},o.findLastIndex=function(n,t,e){var r=n?n.length:0;for(t=o.createCallback(t,e,3);r--;)if(t(n[r],r,n))return r;return-1},o.findLastKey=function(n,t,e){return t=o.createCallback(t,e,3),st(n,t,_t,true)},o.has=function(n,t){return n?He.call(n,t):false},o.identity=ke,o.indexOf=$t,o.isArguments=ce,o.isArray=Ar,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Pe.call(n)==Q||false},o.isDate=function(n){return n&&typeof n=="object"&&Pe.call(n)==nt||false},o.isElement=pe,o.isEmpty=function(n){var t=true;
if(!n)return t;var e=Pe.call(n),r=n.length;return-1<r&&r<=Ze&&(e==J||e==ot||e==H||e==rt&&se(n.splice))?!r:(bt(n,function(){return t=false}),t)},o.isEqual=function(n,t,e,r){if(e=typeof e=="function"&&Z(e,r,2),!e){if(n===t)return 0!==n||1/n==1/t;r=typeof n;var u=typeof t;if(n===n&&(null==n||null==t||"function"!=r&&"object"!=r&&"function"!=u&&"object"!=u))return false}return wt(n,t,e)},o.isFinite=function(n){return ar(n)&&!lr(parseFloat(n))},o.isFunction=se,o.isNaN=function(n){return ge(n)&&n!=+n},o.isNull=function(n){return null===n
},o.isNumber=ge,o.isObject=he,o.isPlainObject=Ir,o.isRegExp=ve,o.isString=ye,o.isUndefined=function(n){return typeof n=="undefined"},o.kebabCase=Nr,o.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?cr(r+e,0):pr(e||0,r-1))+1);r--;)if(n[r]===t)return r;return-1},o.mixin=Ce,o.noConflict=function(){return t._=Ue,this},o.noop=Oe,o.now=$r,o.pad=function(n,t,e){n=null==n?"":$e(n),t=+t;var r=n.length;return r<t&&ar(t)?(r=(t-r)/2,t=Xe(r),r=Me(r),e=It("",r,e),e.slice(0,t)+n+e):n
},o.padLeft=function(n,t,e){return n=null==n?"":$e(n),It(n,t,e)+n},o.padRight=function(n,t,e){return n=null==n?"":$e(n),n+It(n,t,e)},o.parseInt=Lr,o.random=function(n,t,e){var r=null==n,u=null==t;return null==e&&(u&&typeof n=="boolean"?(e=n,n=1):typeof t=="boolean"&&(e=t,u=true)),r&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,e||n%1||t%1?(e=gr(),pr(n+e*(t-n+parseFloat("1e-"+((e+"").length-1))),t)):kt(n,t)},o.reduce=ne,o.reduceRight=te,o.repeat=we,o.result=function(n,t,e){var r=null==n?_:n[t];return typeof r=="undefined"?e:se(r)?n[t]():r
},o.runInContext=b,o.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=Ze?t:Er(n).length},o.some=re,o.sortedIndex=qt,o.snakeCase=Sr,o.startsWith=function(n,t,e){return n=null==n?"":$e(n),e=typeof e=="undefined"?0:pr(0>e?0:+e||0,n.length),n.lastIndexOf(t,e)==e},o.template=function(n,t,e){var r=o.templateSettings;e=le({},e,r),n=$e(null==n?"":n);var u,i,a=le({},e.imports,r.imports),r=Er(a),a=be(a),l=0,f=e.interpolate||P,c="__p+='",f=Fe((e.escape||P).source+"|"+f.source+"|"+(f===z?D:P).source+"|"+(e.evaluate||P).source+"|$","g");
if(t=t&&typeof e=="undefined"?t:Z(t,e,3),typeof u=="number"&&-1<u&&u<=Ze)for(;++r<u&&false!==t(n[r],r,n););else ct(n,t);return n}function Ht(n,t,e){var r=n?n.length:0;if(t=t&&typeof e=="undefined"?t:Z(t,e,3),typeof r=="number"&&-1<r&&r<=Ze)for(;r--&&false!==t(n[r],r,n););else pt(n,t);return n}function Jt(n,t,e){var r=-1,u=n?n.length:0;if(t=o.createCallback(t,e,3),typeof u=="number"&&-1<u&&u<=Ze)for(var i=Ee(u);++r<u;)i[r]=t(n[r],r,n);else i=[],ct(n,function(n,e,u){i[++r]=t(n,e,u)});return i}function Qt(n,t,e){var r=-1/0,i=r,a=typeof t;
if("number"!=a&&"string"!=a||!e||e[t]!==n||(t=null),null==t&&Er(n))for(e=-1,a=n.length;++e<a;){var l=n[e];l>i&&(i=l)}else t=null==t&&ye(n)?u:o.createCallback(t,e,3),ct(n,function(n,e,u){e=t(n,e,u),e>r&&(r=e,i=n)});return i}function ne(n,t,e,r){var u=3>arguments.length;t=o.createCallback(t,r,4);var i=-1,a=n?n.length:0;if(typeof a=="number"&&-1<a&&a<=Ze)for(u&&a&&(e=n[++i]);++i<a;)e=t(e,n[i],i,n);else ct(n,function(n,r,o){e=u?(u=false,n):t(e,n,r,o)});return e}function te(n,t,e,r){var u=3>arguments.length;
return t=o.createCallback(t,r,4),pt(n,function(n,r,o){e=u?(u=false,n):t(e,n,r,o)}),e}function ee(n){var t=-1,e=n&&n.length,r=Ee(0>e?0:e>>>0);return ct(n,function(n){var e=kt(0,++t);r[t]=r[e],r[e]=n}),r}function re(n,t,e){var r;t=o.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Ze){for(;++e<u;)if(t(n[e],e,n))return true}else ct(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function ue(n,t){if(3>arguments.length)return It(n,w,null,t);if(n)var e=n[E]?n[E][2]:n.length,r=Bt(arguments,2),e=e-r.length;
return It(n,w|C,e,t,r)}function oe(n,t,e){var r,u,o,i,a,l,f,c=0,p=false,s=true;if(!se(n))throw new Le;if(t=0>t?0:t,true===e)var h=true,s=false;else he(e)&&(h=e.leading,p="maxWait"in e&&pr(t,+e.maxWait||0),s="trailing"in e?e.trailing:s);var g=function(){var e=t-(Lr()-i);0>=e||e>t?(u&&Ve(u),e=f,u=l=f=_,e&&(c=Lr(),o=n.apply(a,r),l||u||(r=a=null))):l=tr(g,e)},v=function(){l&&Ve(l),u=l=f=_,(s||p!==t)&&(c=Lr(),o=n.apply(a,r),l||u||(r=a=null))};return function(){if(r=arguments,i=Lr(),a=this,f=s&&(l||!h),false===p)var e=h&&!l;
else{u||h||(c=i);var y=p-(i-c),m=0>=y||y>p;m?(u&&(u=Ve(u)),c=i,o=n.apply(a,r)):u||(u=tr(v,y))}return m&&l?l=Ve(l):l||t===p||(l=tr(g,t)),e&&(m=true,o=n.apply(a,r)),!m||l||u||(r=a=null),o}}function ie(n){if(!se(n))throw new Le;return function(){return!n.apply(this,arguments)}}function ae(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=Z(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,l=Rr(t),f=l.length;++i<f;){var c=l[i];n[c]=a?a(n[c],t[c]):t[c]}}return n}function le(t){if(!t||2>arguments.length)return t;var e=Bt(arguments);return e.push(n),ae.apply(null,e)}function fe(n){var t=[];return dt(n,function(n,e){se(n)&&t.push(e)}),t.sort()}function ce(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Pe.call(n)==H||false}function pe(n){return n&&typeof n=="object"&&1===n.nodeType&&-1<Pe.call(n).indexOf("Element")||false}function se(n){return typeof n=="function"
}function he(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function ge(n){var t=typeof n;return"number"==t||n&&"object"==t&&Pe.call(n)==et||false}function ve(n){return n&&typeof n=="object"&&Pe.call(n)==ut||false}function ye(n){return typeof n=="string"||n&&typeof n=="object"&&Pe.call(n)==ot||false}function me(n){if(!he(n))return[];for(var t,e=n.length,e=(typeof e=="number"&&0<e&&(Er(n)||_r.nonEnumArgs&&ce(n))&&e)>>>0,r=-1,u=e-1,o=Ee(e),i=0<e;++r<e;)o[r]=$e(r);for(var a in n)i&&(t=+a,-1<t&&t<=u&&0==t%1)||o.push(a);
return o}function de(n,t,e){var r={};if(typeof t!="function")for(var u=-1,i=ht(arguments,true,false,1),a=he(n)?i.length:0;++u<a;){var l=i[u];l in n&&(r[l]=n[l])}else t=o.createCallback(t,e,3),dt(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r}function be(n){return Ct(n,Rr)}function _e(n){return null==n?"":$e(n).replace(K,"\\$&")}function we(n,t){var e="";if(t=+t,1>t||null==n||!lr(t))return e;n=$e(n);do t%2&&(e+=n),t=Xe(t/2),n+=n;while(t);return e}function xe(n,t,e){var r=typeof n;return"function"==r||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||Z(n,t,e):"object"!=r?Oe(n):je(n)
}function ke(n){return n}function je(n){n||(n={});var t=Rr(n),e=t.length,r=t[0],u=n[r];return 1!=e||u!==u||he(u)?function(r){for(var u=e,o=false;u--&&(o=t[u],o=He.call(r,o)&&wt(r[o],n[o],null,true)););return o}:function(n){return He.call(n,r)?(n=n[r],u===n&&(0!==u||1/u==1/n)):false}}function Ce(n,t,e){var r=true,u=t&&fe(t);t&&(e||u.length)||(null==e&&(e=t),t=n,n=o,u=fe(t)),false===e?r=false:he(e)&&"chain"in e&&(r=e.chain),e=-1;for(var i=se(n),a=u?u.length:0;++e<a;){var l=u[e],f=n[l]=t[l];i&&(n.prototype[l]=function(t){return function(){var e=this.__chain__,u=this.__wrapped__,o=[u];
if(Je.apply(o,arguments),o=t.apply(n,o),r||e){if(u===o&&he(o))return this;o=new n(o),o.__chain__=e}return o}}(f))}}function Ae(){}function Oe(n){return function(t){return null==t?_:t[n]}}t=t?mt.defaults(gt.Object(),t,mt.pick(gt,G)):gt;var Ee=t.Array,Ie=t.Boolean,Re=t.Date,Ne=t.Function,Se=t.Math,Te=t.Number,We=t.Object,Fe=t.RegExp,$e=t.String,Le=t.TypeError,ze=Ee.prototype,De=We.prototype,Be=$e.prototype,qe=(qe=t.window)&&qe.document,Ue=t._,Ze=Se.pow(2,53)-1,Pe=De.toString,Ke=Fe("^"+_e(Pe).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=Se.ceil,Ve=t.clearTimeout,Xe=Se.floor,Ye=Ne.prototype.toString,Ge=Nt(Ge=We.getPrototypeOf)&&Ge,He=De.hasOwnProperty,Je=ze.push,Qe=De.propertyIsEnumerable,nr=Nt(nr=t.Set)&&nr,tr=t.setTimeout,er=ze.splice,rr=ze.unshift,ur=function(){try{var n={},t=Nt(t=We.defineProperty)&&t,e=t(n,n,n)&&t
}catch(r){}return e}(),or=Nt(or=Be.contains)&&or,ir=Nt(ir=We.create)&&ir,ar=Nt(ar=Ee.isArray)&&ar,lr=t.isFinite,fr=t.isNaN,cr=Nt(cr=We.keys)&&cr,pr=Se.max,sr=Se.min,hr=Nt(hr=Re.now)&&hr,gr=t.parseInt,vr=Se.random,yr=Nt(yr=Be.trim)&&!yr.call(Y)&&yr,mr=Nt(mr=Be.trimLeft)&&!mr.call(Y)&&mr,dr=Nt(dr=Be.trimRight)&&!dr.call(Y)&&dr,br={};br[J]=Ee,br[Q]=Ie,br[nt]=Re,br[tt]=Ne,br[rt]=We,br[et]=Te,br[ut]=Fe,br[ot]=$e,i.prototype=o.prototype;var _r=o.support={};!function(x){for(var n in arguments);_r.funcDecomp=!Nt(t.WinRTError)&&M.test(b),_r.funcNames=typeof Ne.name=="string";
try{_r.dom=11===qe.createDocumentFragment().nodeType}catch(e){_r.dom=false}try{_r.nonEnumArgs=!("1"==n&&He.call(arguments,"1")&&Qe.call(arguments,"1"))}catch(r){_r.nonEnumArgs=true}}(0,0),o.templateSettings={escape:$,evaluate:L,interpolate:z,variable:"",imports:{_:o}},ir||(m=function(){function n(){}return function(e){if(he(e)){n.prototype=e;var r=new n;n.prototype=null}return r||t.Object()}}());var wr=nr&&function(n){var t=new nr,e=n?n.length:0;for(t.push=t.add;e--;)t.push(n[e]);return t},xr=ur?function(n,t){lt.value=t,ur(n,E,lt)
}:Ae,kr=Ot(function(n,t,e){He.call(n,e)?n[e]++:n[e]=1}),jr=Ot(function(n,t,e){He.call(n,e)?n[e].push(t):n[e]=[t]}),Cr=Ot(function(n,t,e){n[e]=t}),Ar=Ot(function(n,t,e){n[e?0:1].push(t)},true),Or=Jt,Er=ar||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Pe.call(n)==J||false};_r.dom||(pe=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Ir(n)||false});var Ir=Ge?function(n){if(!n||Pe.call(n)!=rt)return false;var t=n.valueOf,e=Nt(t)&&(e=Ge(t))&&Ge(e);return e?n==e||Ge(n)==e:St(n)}:St,Rr=cr?function(n){var t=n?n.length:0;
return typeof t=="number"&&0<t?Tt(n):he(n)?cr(n):[]}:Tt,Nr=f(function(n,t,e){return!e&&R.test(t)?n+t.toLowerCase():n+(t.charAt(0)[e?"toUpperCase":"toLowerCase"]()+t.slice(1))}),Sr=f(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),Tr=f(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()}),Wr=yr?function(n,t){return null==n?"":null==t?yr.call(n):h(n,t)}:h,Fr=mr?function(n,t){return null==n?"":null==t?mr.call(n):g(n,t)}:g,$r=dr?function(n,t){return null==n?"":null==t?dr.call(n):v(n,t)}:v,Lr=hr||function(){return(new Re).getTime()
},zr=8==gr(Y+"08")?gr:function(n,t){return n=Wr(n),gr(n,+t||(U.test(n)?16:10))};return o.after=function(n,t){if(!se(t))throw new Le;return n=lr(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0}},o.assign=ae,o.at=function(n,t){var e=arguments,r=-1,u=ht(e,true,false,1),o=u.length,i=typeof t;for("number"!=i&&"string"!=i||!e[2]||e[2][t]!==n||(o=1),e=Ee(o);++r<o;)e[r]=n[u[r]];return e},o.bind=ue,o.bindAll=function(n){for(var t=1<arguments.length?ht(arguments,true,false,1):fe(n),e=-1,r=t.length;++e<r;){var u=t[e];
n[u]=It(n[u],w,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?It(t,w|x,null,n):It(t,w|x|C,null,n,Bt(arguments,2))},o.chain=function(n){return new i(n,true)},o.compact=function(n){for(var t=-1,e=n?n.length:0,r=0,u=[];++t<e;){var o=n[t];o&&(u[r++]=o)}return u},o.compose=function(){for(var n=arguments,t=n.length,e=t;e--;)if(!se(n[e]))throw new Le;return function(){for(var e=t-1,r=n[e].apply(this,arguments);e--;)r=n[e].call(this,r);return r}},o.constant=function(n){return function(){return n
}},o.countBy=kr,o.create=function(n,t){var e=m(n);return t?ae(e,t):e},o.createCallback=xe,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),It(n,k,t)},o.debounce=oe,o.defaults=le,o.defer=function(n){if(!se(n))throw new Le;var t=Bt(arguments,1);return tr(function(){n.apply(_,t)},1)},o.delay=function(n,t){if(!se(n))throw new Le;var e=Bt(arguments,2);return tr(function(){n.apply(_,e)},t)},o.difference=function(){return ft(arguments[0],ht(arguments,true,true,1))},o.drop=Dt,o.dropRight=Lt,o.dropRightWhile=Lt,o.dropWhile=Dt,o.filter=Xt,o.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=Jt(n,e,r)),ht(n,t)},o.forEach=Gt,o.forEachRight=Ht,o.forIn=function(n,t,e){return t=t&&typeof e=="undefined"?t:Z(t,e,3),vt(n,t,me)},o.forInRight=function(n,t,e){return t=Z(t,e,3),yt(n,t,me)},o.forOwn=function(n,t,e){return t=t&&typeof e=="undefined"?t:Z(t,e,3),bt(n,t)},o.forOwnRight=function(n,t,e){return t=Z(t,e,3),yt(n,t,Rr)},o.functions=fe,o.groupBy=jr,o.indexBy=Cr,o.initial=Lt,o.intersection=function(){for(var n=[],t=-1,u=arguments.length,o=[],i=Rt(),a=wr&&i===e;++t<u;){var l=arguments[t];
(Er(l)||ce(l))&&(n.push(l),o.push(a&&120<=l.length&&wr(t&&l)))}var u=n.length,a=n[0],f=-1,c=a?a.length:0,p=[],s=o[0];n:for(;++f<c;)if(l=a[f],0>(s?r(s,l):i(p,l))){for(t=u;--t;){var h=o[t];if(0>(h?r(h,l):i(n[t],l)))continue n}s&&s.push(l),p.push(l)}return p},o.invert=function(n,t){for(var e=-1,r=Rr(n),u=r.length,o={};++e<u;){var i=r[e],a=n[i];t?He.call(o,a)?o[a].push(i):o[a]=[i]:o[a]=i}return o},o.invoke=function(n,t){var e=Bt(arguments,2),r=-1,u=typeof t=="function",o=n&&n.length,i=Ee(0>o?0:o>>>0);
return ct(n,function(n){var o=u?t:null!=n&&n[t];i[++r]=o?o.apply(n,e):_}),i},o.keys=Rr,o.keysIn=me,o.map=Jt,o.mapValues=function(n,t,e){var r={};return t=o.createCallback(t,e,3),bt(n,function(n,e,u){r[e]=t(n,e,u)}),r},o.matches=je,o.max=Qt,o.memoize=function(n,t){if(!se(n))throw new Le;var e=function(){var r=e.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return He.call(r,u)?r[u]:r[u]=n.apply(this,arguments)};return e.cache={},e},o.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=Z(r[--u-1],r[u--],2);else 2<u&&"function"==typeof r[u-1]&&(i=r[--u]);for(var r=Bt(r,1,u),o=-1,a=[],l=[];++o<u;)xt(n,r[o],i,a,l);return n},o.min=function(n,t,e){var r=1/0,i=r,a=typeof t;if("number"!=a&&"string"!=a||!e||e[t]!==n||(t=null),null==t&&Er(n))for(e=-1,a=n.length;++e<a;){var l=n[e];l<i&&(i=l)}else t=null==t&&ye(n)?u:o.createCallback(t,e,3),ct(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,i=n)});return i},o.negate=ie,o.omit=function(n,t,e){if(typeof t=="function")return t=o.createCallback(t,e,3),de(n,ie(t));
for(var r=ht(arguments,true,false,1),u=r.length;u--;)r[u]=$e(r[u]);return de(n,ft(me(n),r))},o.once=function(n){var t,e;if(!se(n))throw new Le;return function(){return t?e:(t=true,e=n.apply(this,arguments),n=null,e)}},o.pairs=function(n){for(var t=-1,e=Rr(n),r=e.length,u=Ee(r);++t<r;){var o=e[t];u[t]=[o,n[o]]}return u},o.partial=function(n){if(n)var t=n[E]?n[E][2]:n.length,e=Bt(arguments,1),t=t-e.length;return It(n,C,t,null,e)},o.partialRight=function(n){if(n)var t=n[E]?n[E][2]:n.length,e=Bt(arguments,1),t=t-e.length;
return It(n,A,t,null,null,e)},o.partition=Ar,o.pick=de,o.pluck=Or,o.property=Oe,o.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&&(er.call(n,u--,1),r--);return n},o.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=pr(Me((t-n)/(e||1)),0);for(var u=Ee(t);++r<t;)u[r]=n,n+=e;return u},o.reject=function(n,t,e){return t=o.createCallback(t,e,3),Xt(n,ie(t))},o.remove=function(n,t,e){var r=-1,u=n?n.length:0,i=[];
for(t=o.createCallback(t,e,3);++r<u;)e=n[r],t(e,r,n)&&(i.push(e),er.call(n,r--,1),u--);return i},o.rest=Dt,o.shuffle=ee,o.slice=Bt,o.sortBy=function(n,t,e){var r=-1,u=n&&n.length,i=t&&Er(t),f=Ee(0>u?0:u>>>0);for(i||(t=o.createCallback(t,e,3)),ct(n,function(n,e,u){if(i)for(e=t.length,u=Ee(e);e--;)u[e]=n[t[e]];else u=t(n,e,u);f[++r]={a:u,b:r,c:n}}),u=f.length,f.sort(i?l:a);u--;)f[u]=f[u].c;return f},o.tap=function(n,t,e){return t.call(e,n),n},o.throttle=function(n,t,e){var r=true,u=true;if(!se(n))throw new Le;
return false===e?r=false:he(e)&&(r="leading"in e?!!e.leading:r,u="trailing"in e?!!e.trailing:u),at.leading=r,at.maxWait=+t,at.trailing=u,oe(n,t,at)},o.times=function(n,t,e){n=0>n?0:n>>>0;var r=-1,u=Ee(n);for(t=Z(t,e,1);++r<n;)u[r]=t(r);return u},o.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=Ze?Bt(n):be(n)},o.transform=function(n,t,e,r){var u=Er(n);if(null==e)if(u)e=[];else{var i=n&&n.constructor;e=m(i&&i.prototype)}return t&&(t=o.createCallback(t,r,4),(u?ct:bt)(n,function(n,r,u){return t(e,n,r,u)
})),e},o.union=function(){return jt(ht(arguments,true,true))},o.uniq=Ut,o.values=be,o.valuesIn=function(n){return Ct(n,me)},o.where=Xt,o.without=function(){return ft(arguments[0],Bt(arguments,1))},o.wrap=function(n,t){return It(t,C,null,null,[n])},o.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var e=arguments[n];if(Er(e)||ce(e))var r=r?ft(r,e).concat(ft(e,r)):e}return r?jt(r):[]},o.zip=Zt,o.zipObject=Pt,o.callback=xe,o.collect=Jt,o.each=Gt,o.eachRight=Ht,o.extend=ae,o.methods=fe,o.object=Pt,o.select=Xt,o.tail=Dt,o.unique=Ut,o.unzip=Zt,Ce(ae({},o)),o.camelCase=Nr,o.capitalize=function(n){return null==n?"":(n=$e(n),n.charAt(0).toUpperCase()+n.slice(1))
},o.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"&&Z(e,r,1),y(n,t,e)},o.cloneDeep=function(n,t,e){return t=typeof t=="function"&&Z(t,e,1),y(n,true,t)},o.contains=Mt,o.endsWith=function(n,t,e){n=null==n?"":$e(n),t=$e(t);var r=n.length;return e=(typeof e=="undefined"?r:sr(0>e?0:+e||0,r))-t.length,0<=e&&n.indexOf(t,e)==e},o.escape=function(n){return null==n?"":$e(n).replace(F,p)},o.escapeRegExp=_e,o.every=Vt,o.find=Yt,o.findIndex=Wt,o.findKey=function(n,t,e){return t=o.createCallback(t,e,3),st(n,t,bt,true)
},o.findLast=function(n,t,e){return t=o.createCallback(t,e,3),st(n,t,pt)},o.findLastIndex=function(n,t,e){var r=n?n.length:0;for(t=o.createCallback(t,e,3);r--;)if(t(n[r],r,n))return r;return-1},o.findLastKey=function(n,t,e){return t=o.createCallback(t,e,3),st(n,t,_t,true)},o.has=function(n,t){return n?He.call(n,t):false},o.identity=ke,o.indexOf=$t,o.isArguments=ce,o.isArray=Er,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Pe.call(n)==Q||false},o.isDate=function(n){return n&&typeof n=="object"&&Pe.call(n)==nt||false
},o.isElement=pe,o.isEmpty=function(n){var t=true;if(!n)return t;var e=Pe.call(n),r=n.length;return-1<r&&r<=Ze&&(e==J||e==ot||e==H||e==rt&&se(n.splice))?!r:(bt(n,function(){return t=false}),t)},o.isEqual=function(n,t,e,r){if(e=typeof e=="function"&&Z(e,r,2),!e){if(n===t)return 0!==n||1/n==1/t;r=typeof n;var u=typeof t;if(n===n&&(null==n||null==t||"function"!=r&&"object"!=r&&"function"!=u&&"object"!=u))return false}return wt(n,t,e)},o.isFinite=function(n){return lr(n)&&!fr(parseFloat(n))},o.isFunction=se,o.isNaN=function(n){return ge(n)&&n!=+n
},o.isNull=function(n){return null===n},o.isNumber=ge,o.isObject=he,o.isPlainObject=Ir,o.isRegExp=ve,o.isString=ye,o.isUndefined=function(n){return typeof n=="undefined"},o.kebabCase=Sr,o.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?pr(r+e,0):sr(e||0,r-1))+1);r--;)if(n[r]===t)return r;return-1},o.mixin=Ce,o.noConflict=function(){return t._=Ue,this},o.noop=Ae,o.now=Lr,o.pad=function(n,t,e){n=null==n?"":$e(n),t=+t;var r=n.length;return r<t&&lr(t)?(r=(t-r)/2,t=Xe(r),r=Me(r),e=Et("",r,e),e.slice(0,t)+n+e):n
},o.padLeft=function(n,t,e){return n=null==n?"":$e(n),Et(n,t,e)+n},o.padRight=function(n,t,e){return n=null==n?"":$e(n),n+Et(n,t,e)},o.parseInt=zr,o.random=function(n,t,e){var r=null==n,u=null==t;return null==e&&(u&&typeof n=="boolean"?(e=n,n=1):typeof t=="boolean"&&(e=t,u=true)),r&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,e||n%1||t%1?(e=vr(),sr(n+e*(t-n+parseFloat("1e-"+((e+"").length-1))),t)):kt(n,t)},o.reduce=ne,o.reduceRight=te,o.repeat=we,o.result=function(n,t,e){var r=null==n?_:n[t];return typeof r=="undefined"?e:se(r)?n[t]():r
},o.runInContext=b,o.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=Ze?t:Rr(n).length},o.some=re,o.sortedIndex=qt,o.snakeCase=Tr,o.startsWith=function(n,t,e){return n=null==n?"":$e(n),e=typeof e=="undefined"?0:sr(0>e?0:+e||0,n.length),n.lastIndexOf(t,e)==e},o.template=function(n,t,e){var r=o.templateSettings;e=le({},e,r),n=$e(null==n?"":n);var u,i,a=le({},e.imports,r.imports),r=Rr(a),a=be(a),l=0,f=e.interpolate||P,c="__p+='",f=Fe((e.escape||P).source+"|"+f.source+"|"+(f===z?D:P).source+"|"+(e.evaluate||P).source+"|$","g");
n.replace(f,function(t,e,r,o,a,f){return r||(r=o),c+=n.slice(l,f).replace(V,s),e&&(u=true,c+="'+__e("+e+")+'"),a&&(i=true,c+="';"+a+";\n__p+='"),r&&(c+="'+((__t=("+r+"))==null?'':__t)+'"),l=f+t.length,t}),c+="';",(e=e.variable)||(c="with(obj){"+c+"}"),c=(i?c.replace(N,""):c).replace(S,"$1").replace(T,"$1;"),c="function("+(e||"obj")+"){"+(e?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var p=Ne(r,"return "+c).apply(_,a)
}catch(h){throw h.source=c,h}return t?p(t):(p.source=c,p)},o.trim=Tr,o.trimLeft=Wr,o.trimRight=Fr,o.truncate=function(n,t){var e=30,r="...";if(t&&he(t))var u="separator"in t?t.separator:u,e="length"in t?+t.length||0:e,r="omission"in t?$e(t.omission):r;else null!=t&&(e=+t||0);if(n=null==n?"":$e(n),e>=n.length)return n;var o=e-r.length;if(1>o)return r;if(e=n.slice(0,o),null==u)return e+r;if(ve(u)){if(n.slice(o).search(u)){var i,a,l=n.slice(0,o);for(u.global||(u=Fe(u.source,(B.exec(u)||"")+"g")),u.lastIndex=0;i=u.exec(l);)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},o.unescape=function(n){return null==n?"":(n=$e(n),0>n.indexOf(";")?n:n.replace(W,d))},o.uniqueId=function(n){var t=++E;return $e(null==n?"":n)+t},o.all=Vt,o.any=re,o.detect=Yt,o.findWhere=Yt,o.foldl=ne,o.foldr=te,o.include=Mt,o.inject=ne,Ce(function(){var n={};return bt(o,function(t,e){o.prototype[e]||(n[e]=t)}),n}(),false),o.first=Ft,o.last=zt,o.sample=function(n,t,e){return n&&typeof n.length!="number"&&(n=be(n)),null==t||e?(t=n?n.length:0,0<t?n[kt(0,t-1)]:_):(n=ee(n),n.length=pr(0>t?0:+t||0,n.length),n)
},o.take=Ft,o.takeRight=zt,o.takeRightWhile=zt,o.takeWhile=Ft,o.head=Ft,bt(o,function(n,t){var e="sample"!==t;o.prototype[t]||(o.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 i(o,u):o})}),o.VERSION=A,o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.toString=function(){return $e(this.__wrapped__)},o.prototype.value=Kt,o.prototype.valueOf=Kt,ct(["join","pop","shift"],function(n){var t=ze[n];o.prototype[n]=function(){var n=this.__chain__,e=t.apply(this.__wrapped__,arguments);
return n?new i(e,n):e}}),ct(["push","reverse","sort","unshift"],function(n){var t=ze[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),ct(["concat","splice"],function(n){var t=ze[n];o.prototype[n]=function(){return new i(t.apply(this.__wrapped__,arguments),this.__chain__)}}),o}var _,w=1,x=2,k=4,j=8,C=16,O=32,A="2.4.1",I="__lodash@"+A+"__",E=0,R=/^[A-Z]+$/,N=/\b__p\+='';/g,S=/\b(__p\+=)''\+/g,T=/(__e\(.*?\)|\b__t\))\+'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>"']/g,$=/<%-([\s\S]+?)%>/g,L=/<%([\s\S]+?)%>/g,z=/<%=([\s\S]+?)%>/g,D=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,B=/\w*$/,q=/^\s*function[ \n\r\t]+\w/,U=/^0[xX]/,Z=/[\xC0-\xFF]/g,P=/($^)/,K=/[.*+?^${}()|[\]\\]/g,M=/\bthis\b/,V=/['\n\r\u2028\u2029\\]/g,X=/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[a-z]+|[0-9]+/g,Y=" \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",G="Array Boolean Date Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),H="[object Arguments]",J="[object Array]",Q="[object Boolean]",nt="[object Date]",tt="[object Function]",et="[object Number]",rt="[object Object]",ut="[object RegExp]",ot="[object String]",it={};
}catch(h){throw h.source=c,h}return t?p(t):(p.source=c,p)},o.trim=Wr,o.trimLeft=Fr,o.trimRight=$r,o.truncate=function(n,t){var e=30,r="...";if(t&&he(t))var u="separator"in t?t.separator:u,e="length"in t?+t.length||0:e,r="omission"in t?$e(t.omission):r;else null!=t&&(e=+t||0);if(n=null==n?"":$e(n),e>=n.length)return n;var o=e-r.length;if(1>o)return r;if(e=n.slice(0,o),null==u)return e+r;if(ve(u)){if(n.slice(o).search(u)){var i,a,l=n.slice(0,o);for(u.global||(u=Fe(u.source,(B.exec(u)||"")+"g")),u.lastIndex=0;i=u.exec(l);)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},o.unescape=function(n){return null==n?"":(n=$e(n),0>n.indexOf(";")?n:n.replace(W,d))},o.uniqueId=function(n){var t=++I;return $e(null==n?"":n)+t},o.all=Vt,o.any=re,o.detect=Yt,o.findWhere=Yt,o.foldl=ne,o.foldr=te,o.include=Mt,o.inject=ne,Ce(function(){var n={};return bt(o,function(t,e){o.prototype[e]||(n[e]=t)}),n}(),false),o.first=Ft,o.last=zt,o.sample=function(n,t,e){return n&&typeof n.length!="number"&&(n=be(n)),null==t||e?(t=n?n.length:0,0<t?n[kt(0,t-1)]:_):(n=ee(n),n.length=sr(0>t?0:+t||0,n.length),n)
},o.take=Ft,o.takeRight=zt,o.takeRightWhile=zt,o.takeWhile=Ft,o.head=Ft,bt(o,function(n,t){var e="sample"!==t;o.prototype[t]||(o.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 i(o,u):o})}),o.VERSION=O,o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.toString=function(){return $e(this.__wrapped__)},o.prototype.value=Kt,o.prototype.valueOf=Kt,ct(["join","pop","shift"],function(n){var t=ze[n];o.prototype[n]=function(){var n=this.__chain__,e=t.apply(this.__wrapped__,arguments);
return n?new i(e,n):e}}),ct(["push","reverse","sort","unshift"],function(n){var t=ze[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),ct(["concat","splice"],function(n){var t=ze[n];o.prototype[n]=function(){return new i(t.apply(this.__wrapped__,arguments),this.__chain__)}}),o}var _,w=1,x=2,k=4,j=8,C=16,A=32,O="2.4.1",E="__lodash@"+O+"__",I=0,R=/^[A-Z]+$/,N=/\b__p\+='';/g,S=/\b(__p\+=)''\+/g,T=/(__e\(.*?\)|\b__t\))\+'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>"']/g,$=/<%-([\s\S]+?)%>/g,L=/<%([\s\S]+?)%>/g,z=/<%=([\s\S]+?)%>/g,D=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,B=/\w*$/,q=/^\s*function[ \n\r\t]+\w/,U=/^0[xX]/,Z=/[\xC0-\xFF]/g,P=/($^)/,K=/[.*+?^${}()|[\]\\]/g,M=/\bthis\b/,V=/['\n\r\u2028\u2029\\]/g,X=/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[a-z]+|[0-9]+/g,Y=" \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",G="Array Boolean Date Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),H="[object Arguments]",J="[object Array]",Q="[object Boolean]",nt="[object Date]",tt="[object Function]",et="[object Number]",rt="[object Object]",ut="[object RegExp]",ot="[object String]",it={};
it[tt]=false,it[H]=it[J]=it[Q]=it[nt]=it[et]=it[rt]=it[ut]=it[ot]=true;var at={leading:false,maxWait:0,trailing:false},lt={configurable:false,enumerable:false,value:null,writable:false},ft={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ct={"&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":" "},st={"function":true,object:true},ht={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gt=st[typeof window]&&window||this,vt=st[typeof exports]&&exports&&!exports.nodeType&&exports,st=st[typeof module]&&module&&!module.nodeType&&module,yt=vt&&st&&typeof global=="object"&&global;
!yt||yt.global!==yt&&yt.window!==yt&&yt.self!==yt||(gt=yt);var yt=st&&st.exports===vt&&vt,mt=b();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(gt._=mt, define(function(){return mt})):vt&&st?yt?(st.exports=mt)._=mt:vt._=mt:gt._=mt}).call(this);

View File

@@ -360,28 +360,30 @@
*/
var support = {};
(function() {
(function(x) {
var object = { '0': 1, 'length': 1 };
/**
* Detect if `Array#shift` and `Array#splice` augment array-like objects correctly.
* Detect if `Array#shift` and `Array#splice` augment array-like objects
* correctly.
*
* Firefox < 10, IE compatibility mode, and IE < 9 have buggy Array `shift()`
* and `splice()` functions that fail to remove the last element, `value[0]`,
* of array-like objects even though the `length` property is set to `0`.
* The `shift()` method is buggy in IE 8 compatibility mode, while `splice()`
* is buggy regardless of mode in IE < 9 and buggy in compatibility mode in IE 9.
* is buggy regardless of mode in IE < 9 and buggy in compatibility mode
* in IE 9.
*
* @memberOf _.support
* @type boolean
*/
support.spliceObjects = (splice.call(object, 0, 1), !object[0]);
}(1));
}(0, 0));
/**
* 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.
* 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.
*
* @static
* @memberOf _
@@ -710,8 +712,7 @@
* @returns {Object} Returns `object`.
*/
function baseForRight(object, callback, keysFunc) {
var index = -1,
props = keysFunc(object),
var props = keysFunc(object),
length = props.length;
while (length--) {
@@ -1403,7 +1404,10 @@
*/
function initial(array, n, guard) {
var length = array ? array.length : 0;
n = length - ((n == null || guard) ? 1 : n);
if (n == null || guard) {
n = 1;
}
n = length - (n || 0);
return slice(array, 0, n < 0 ? 0 : n);
}
@@ -1476,7 +1480,7 @@
if (n == null || guard) {
return array ? array[length - 1] : undefined;
}
n = length - n;
n = length - (n || 0);
return slice(array, n < 0 ? 0 : n);
}

View File

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