mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Rebuild dist files.
This commit is contained in:
37
dist/lodash.compat.js
vendored
37
dist/lodash.compat.js
vendored
@@ -1322,7 +1322,7 @@
|
||||
}
|
||||
}
|
||||
// exit early if there are no `this` references or `func` is bound
|
||||
if (bindData === false || (bindData !== true && bindData[1] & 1)) {
|
||||
if (bindData === false || (bindData !== true && bindData[1] & BIND_FLAG)) {
|
||||
return func;
|
||||
}
|
||||
switch (argCount) {
|
||||
@@ -7226,36 +7226,43 @@
|
||||
|
||||
/**
|
||||
* Resolves the value of property `key` on `object`. If `key` is a function
|
||||
* it will be invoked with the `this` binding of `object` and its result returned,
|
||||
* else the property value is returned. If `object` is falsey then `undefined`
|
||||
* is returned.
|
||||
* it will be invoked with the `this` binding of `object` and its result
|
||||
* returned, else the property value is returned. If `object` is `null` or
|
||||
* `undefined` then `undefined` is returned. If a default value is provided
|
||||
* it will be returned if the property value resolves to `undefined`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Utilities
|
||||
* @param {Object} object The object to inspect.
|
||||
* @param {string} key The name of the property to resolve.
|
||||
* @param {*} [defaultValue] The value returned if the property value
|
||||
* resolves to `undefined`.
|
||||
* @returns {*} Returns the resolved value.
|
||||
* @example
|
||||
*
|
||||
* var object = {
|
||||
* 'cheese': 'crumpets',
|
||||
* 'stuff': function() {
|
||||
* return 'nonsense';
|
||||
* 'name': 'fred',
|
||||
* 'age': function() {
|
||||
* return 40;
|
||||
* }
|
||||
* };
|
||||
*
|
||||
* _.result(object, 'cheese');
|
||||
* // => 'crumpets'
|
||||
* _.result(object, 'name');
|
||||
* // => 'fred'
|
||||
*
|
||||
* _.result(object, 'stuff');
|
||||
* // => 'nonsense'
|
||||
* _.result(object, 'age');
|
||||
* // => 40
|
||||
*
|
||||
* _.result(object, 'employer', 'slate');
|
||||
* // => 'slate'
|
||||
*/
|
||||
function result(object, key) {
|
||||
if (object) {
|
||||
var value = object[key];
|
||||
return isFunction(value) ? object[key]() : value;
|
||||
function result(object, key, defaultValue) {
|
||||
if (object == null) {
|
||||
return defaultValue;
|
||||
}
|
||||
var value = typeof object[key] != 'undefined' ? object[key] : defaultValue;
|
||||
return isFunction(value) ? object[key]() : value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
80
dist/lodash.compat.min.js
vendored
80
dist/lodash.compat.min.js
vendored
@@ -5,60 +5,60 @@
|
||||
*/
|
||||
;(function(){function n(n,t){if(n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return 0}function t(n,t,r){r=(r||0)-1;for(var e=n?n.length:0;++r<e;)if(n[r]===t)return r;return-1}function r(n,r){var e=typeof r;return n=n.h,"boolean"==e||null==r?n[r]?0:-1:("number"!=e&&"string"!=e&&(e="object"),n=(n=n[e])&&n["number"==e?r:"_"+r],"object"==e?n&&-1<t(n,r)?0:-1:n?0:-1)}function e(n){var t=this.h,r=typeof n;if("boolean"==r||null==n)t[n]=true;else{"number"!=r&&"string"!=r&&(r="object");
|
||||
var e="number"==r?n:"_"+n,t=t[r]||(t[r]={});"object"==r?(r=t[e])?r.push(n):t[e]=[n]:t[e]=true}}function u(n){return n.charCodeAt(0)}function o(n,t){for(var r=-1,e=n.length;++r<e&&0<=t.indexOf(n.charAt(r)););return r}function a(n,t){for(var r=n.length;r--&&0<=t.indexOf(n.charAt(r)););return r}function i(t,r){return n(t.i,r.i)||t.j-r.j}function l(t,r){for(var e=t.i,u=r.i,o=-1,a=e.length;++o<a;){var i=n(e[o],u[o]);if(i)return i}return t.j-r.j}function f(n){var t=-1,r=n.length,u=n[0],o=n[r/2|0],a=n[r-1];
|
||||
if(u&&typeof u=="object"&&o&&typeof o=="object"&&a&&typeof a=="object")return false;for(u=g(),u["false"]=u["null"]=u["true"]=u.undefined=false,o=g(),o.g=n,o.h=u,o.push=e;++t<r;)o.push(n[t]);return o}function c(n){return gt[n]}function s(n){return"\\"+yt[n]}function p(){return k.pop()||[]}function g(){return O.pop()||{g:null,h:null,i:null,"false":false,j:0,"null":false,number:null,object:null,push:null,string:null,"true":false,undefined:false,k:null}}function h(n){return typeof n.toString!="function"&&typeof(n+"")=="string"
|
||||
if(u&&typeof u=="object"&&o&&typeof o=="object"&&a&&typeof a=="object")return false;for(u=g(),u["false"]=u["null"]=u["true"]=u.undefined=false,o=g(),o.g=n,o.h=u,o.push=e;++t<r;)o.push(n[t]);return o}function c(n){return gt[n]}function p(n){return"\\"+yt[n]}function s(){return k.pop()||[]}function g(){return O.pop()||{g:null,h:null,i:null,"false":false,j:0,"null":false,number:null,object:null,push:null,string:null,"true":false,undefined:false,k:null}}function h(n){return typeof n.toString!="function"&&typeof(n+"")=="string"
|
||||
}function v(n){n.length=0,k.length<P&&k.push(n)}function y(n){var t=n.h;t&&y(t),n.g=n.h=n.i=n.object=n.number=n.string=n.k=null,O.length<P&&O.push(n)}function m(n,t){return(n=null==n?"":n+"")?null==t?n.slice(_(n),w(n)+1):(t+="",n.slice(o(n,t),a(n,t)+1)):n}function d(n,t){return(n=null==n?"":n+"")?null==t?n.slice(_(n)):(t+="",n.slice(o(n,t))):n}function b(n,t){return(n=null==n?"":n+"")?null==t?n.slice(0,w(n)+1):(t+="",n.slice(0,a(n,t)+1)):n}function _(n){for(var t=-1,r=n.length;++t<r;){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 w(n){for(var t=n.length;t--;){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 j(n){return ht[n]}function x(n){function e(n){return n&&typeof n=="object"&&!pe(n)&&Dr.call(n,"__wrapped__")?n:new o(n)}function o(n,t){this.__chain__=!!t,this.__wrapped__=n
|
||||
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 w(n){for(var t=n.length;t--;){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 j(n){return ht[n]}function x(n){function e(n){return n&&typeof n=="object"&&!se(n)&&Dr.call(n,"__wrapped__")?n:new o(n)}function o(n,t){this.__chain__=!!t,this.__wrapped__=n
|
||||
}function a(n){function t(){if(e){var n=It(e);Fr.apply(n,arguments)}if(this instanceof t){var o=w(r.prototype),n=r.apply(o,n||arguments);return ur(n)?n:o}return r.apply(u,n||arguments)}var r=n[0],e=n[2],u=n[4];return oe(t,n),t}function _(n,t,r,e,u){if(r){var o=r(n);if(typeof o!="undefined")return o}if(!ur(n))return n;var a=Sr.call(n);if(!ct[a]||!ue.nodeClass&&h(n))return n;var i=re[a];switch(a){case rt:case et:return new i(+n);case at:case ft:return new i(n);case lt:return o=i(n.source,V.exec(n)),o.lastIndex=n.lastIndex,o
|
||||
}if(a=pe(n),t){var l=!e;e||(e=p()),u||(u=p());for(var f=e.length;f--;)if(e[f]==n)return u[f];o=a?i(n.length):{}}else o=a?It(n):Qt({},n);return a&&(Dr.call(n,"index")&&(o.index=n.index),Dr.call(n,"input")&&(o.input=n.input)),t?(e.push(n),u.push(o),(a?gt:Zt)(n,function(n,a){o[a]=_(n,t,r,e,u)}),l&&(v(e),v(u)),o):o}function w(n){return ur(n)?Mr(n):{}}function k(n,t,r){if(typeof n!="function")return lr;if(typeof t=="undefined"||!("prototype"in n))return n;var e=n.__bindData__;if(typeof e=="undefined"&&(ue.funcNames&&(e=!n.name),e=e||!ue.funcDecomp,!e)){var u=Tr.call(n);
|
||||
ue.funcNames||(e=!X.test(u)),e||(e=J.test(u),oe(n,e))}if(false===e||true!==e&&1&e[1])return n;switch(r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)}}return Ht(n,t)}function O(n){function t(){var n=l?a:this;if(u){var g=It(u);Fr.apply(g,arguments)}return(o||c)&&(g||(g=It(arguments)),o&&Fr.apply(g,o),c&&g.length<i)?(e|=N,e&=~R,O([r,s?e:e&~(q|S),g,null,a,i])):(g||(g=arguments),f&&(r=n[p]),this instanceof t?(n=w(r.prototype),g=r.apply(n,g),ur(g)?g:n):r.apply(n,g))
|
||||
}var r=n[0],e=n[1],u=n[2],o=n[3],a=n[4],i=n[5],l=e&q,f=e&S,c=e&A,s=e&I,p=r;return oe(t,n),t}function P(n,e){var u=-1,o=Ct(),a=n?n.length:0,i=a>=T&&o===t,l=[];if(i){var c=f(e);c?(o=r,e=c):i=false}for(;++u<a;)c=n[u],0>o(e,c)&&l.push(c);return i&&y(e),l}function gt(n,t,r){var e=-1,u=n,o=n?n.length:0;if(t=t&&typeof r=="undefined"?t:k(t,r,3),typeof o=="number")for(ue.unindexedChars&&ar(u)&&(u=u.split(""));++e<o&&false!==t(u[e],e,n););else Zt(n,t);return n}function ht(n,t,r,e){e=(e||0)-1;for(var u=n?n.length:0,o=[];++e<u;){var a=n[e];
|
||||
if(a&&typeof a=="object"&&typeof a.length=="number"&&(pe(a)||Et(a))){t||(a=ht(a,t,r));var i=-1,l=a.length,f=o.length;for(o.length+=l;++i<l;)o[f++]=a[i]}else r||o.push(a)}return o}function vt(n,t,r,e,u,o){if(r){var a=r(n,t);if(typeof a!="undefined")return!!a}if(n===t)return 0!==n||1/n==1/t;var i=typeof n,l=typeof t;if(n===n&&(!n||"function"!=i&&"object"!=i)&&(!t||"function"!=l&&"object"!=l))return false;if(null==n||null==t)return n===t;if(l=Sr.call(n),i=Sr.call(t),l==nt&&(l=it),i==nt&&(i=it),l!=i)return false;
|
||||
}if(a=se(n),t){var l=!e;e||(e=s()),u||(u=s());for(var f=e.length;f--;)if(e[f]==n)return u[f];o=a?i(n.length):{}}else o=a?It(n):Qt({},n);return a&&(Dr.call(n,"index")&&(o.index=n.index),Dr.call(n,"input")&&(o.input=n.input)),t?(e.push(n),u.push(o),(a?gt:Zt)(n,function(n,a){o[a]=_(n,t,r,e,u)}),l&&(v(e),v(u)),o):o}function w(n){return ur(n)?Mr(n):{}}function k(n,t,r){if(typeof n!="function")return lr;if(typeof t=="undefined"||!("prototype"in n))return n;var e=n.__bindData__;if(typeof e=="undefined"&&(ue.funcNames&&(e=!n.name),e=e||!ue.funcDecomp,!e)){var u=Tr.call(n);
|
||||
ue.funcNames||(e=!X.test(u)),e||(e=J.test(u),oe(n,e))}if(false===e||true!==e&&e[1]&q)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)}}return Ht(n,t)}function O(n){function t(){var n=l?a:this;if(u){var g=It(u);Fr.apply(g,arguments)}return(o||c)&&(g||(g=It(arguments)),o&&Fr.apply(g,o),c&&g.length<i)?(e|=N,e&=~R,O([r,p?e:e&~(q|S),g,null,a,i])):(g||(g=arguments),f&&(r=n[s]),this instanceof t?(n=w(r.prototype),g=r.apply(n,g),ur(g)?g:n):r.apply(n,g))
|
||||
}var r=n[0],e=n[1],u=n[2],o=n[3],a=n[4],i=n[5],l=e&q,f=e&S,c=e&A,p=e&I,s=r;return oe(t,n),t}function P(n,e){var u=-1,o=Ct(),a=n?n.length:0,i=a>=T&&o===t,l=[];if(i){var c=f(e);c?(o=r,e=c):i=false}for(;++u<a;)c=n[u],0>o(e,c)&&l.push(c);return i&&y(e),l}function gt(n,t,r){var e=-1,u=n,o=n?n.length:0;if(t=t&&typeof r=="undefined"?t:k(t,r,3),typeof o=="number")for(ue.unindexedChars&&ar(u)&&(u=u.split(""));++e<o&&false!==t(u[e],e,n););else Zt(n,t);return n}function ht(n,t,r,e){e=(e||0)-1;for(var u=n?n.length:0,o=[];++e<u;){var a=n[e];
|
||||
if(a&&typeof a=="object"&&typeof a.length=="number"&&(se(a)||Et(a))){t||(a=ht(a,t,r));var i=-1,l=a.length,f=o.length;for(o.length+=l;++i<l;)o[f++]=a[i]}else r||o.push(a)}return o}function vt(n,t,r,e,u,o){if(r){var a=r(n,t);if(typeof a!="undefined")return!!a}if(n===t)return 0!==n||1/n==1/t;var i=typeof n,l=typeof t;if(n===n&&(!n||"function"!=i&&"object"!=i)&&(!t||"function"!=l&&"object"!=l))return false;if(null==n||null==t)return n===t;if(l=Sr.call(n),i=Sr.call(t),l==nt&&(l=it),i==nt&&(i=it),l!=i)return false;
|
||||
switch(l){case rt:case et:return+n==+t;case at:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case lt:case ft:return n==wr(t)}if(i=l==tt,!i){var f=Dr.call(n,"__wrapped__"),c=Dr.call(t,"__wrapped__");if(f||c)return vt(f?n.__wrapped__:n,c?t.__wrapped__:t,r,e,u,o);if(l!=it||!ue.nodeClass&&(h(n)||h(t)))return false;if(l=!ue.argsObject&&Et(n)?br:n.constructor,f=!ue.argsObject&&Et(t)?br:t.constructor,l!=f&&!(Dr.call(n,"constructor")&&Dr.call(t,"constructor")||er(l)&&l instanceof l&&er(f)&&f instanceof f)&&"constructor"in n&&"constructor"in t)return false
|
||||
}for(l=!u,u||(u=p()),o||(o=p()),f=u.length;f--;)if(u[f]==n)return o[f]==t;var s=0,a=true;if(u.push(n),o.push(t),i){if(f=n.length,s=t.length,(a=s==f)||e)for(;s--;)if(i=f,c=t[s],e)for(;i--&&!(a=vt(n[i],c,r,e,u,o)););else if(!(a=vt(n[s],c,r,e,u,o)))break}else se(t,function(t,i,l){return Dr.call(l,i)?(s++,a=Dr.call(n,i)&&vt(n[i],t,r,e,u,o)):void 0}),a&&!e&&se(n,function(n,t,r){return Dr.call(r,t)?a=-1<--s:void 0});return u.pop(),o.pop(),l&&(v(u),v(o)),a}function yt(n,t,r,e,u){(pe(t)?Wt:Zt)(t,function(t,o){var a,i,l=t,f=n[o];
|
||||
if(t&&((i=pe(t))||ge(t))){for(l=e.length;l--;)if(a=e[l]==t){f=u[l];break}if(!a){var c;r&&(l=r(f,t),c=typeof l!="undefined")&&(f=l),c||(f=i?pe(f)?f:[]:ge(f)?f:{}),e.push(t),u.push(f),c||yt(f,t,r,e,u)}}else r&&(l=r(f,t),typeof l=="undefined"&&(l=t)),typeof l!="undefined"&&(f=l);n[o]=f})}function dt(n,t){return n+Rr(Yr()*(t-n+1))}function bt(n,e,u){var o=-1,a=Ct(),i=n?n.length:0,l=[],c=!e&&i>=T&&a===t,s=u||c?p():l;for(c&&(s=f(s),a=r);++o<i;){var g=n[o],h=u?u(g,o,n):g;(e?!o||s[s.length-1]!==h:0>a(s,h))&&((u||c)&&s.push(h),l.push(g))
|
||||
}return c?(v(s.g),y(s)):u&&v(s),l}function wt(n){return function(t,r,u){var o={};if(r=e.createCallback(r,u,3),pe(t)){u=-1;for(var a=t.length;++u<a;){var i=t[u];n(o,i,r(i,u,t),t)}}else gt(t,function(t,e,u){n(o,t,r(t,e,u),u)});return o}}function jt(n,t,r,e,u,o){var i=t&q,l=t&A,f=t&N,c=t&R;if(!(t&S||er(n)))throw new jr;f&&!r.length&&(t&=-17,f=r=false),c&&!e.length&&(t&=-33,c=e=false);var s=n&&n.__bindData__;return s&&true!==s?(s=It(s),s[2]&&(s[2]=It(s[2])),s[3]&&(s[3]=It(s[3])),!i||s[1]&q||(s[4]=u),!i&&s[1]&q&&(t|=8),!l||s[1]&A||(s[5]=o),f&&Fr.apply(s[2]||(s[2]=[]),r),c&&Wr.apply(s[3]||(s[3]=[]),e),s[1]|=t,jt.apply(null,s)):(t==q||t==(q|N)?a:O)([n,t,r,e,u,o])
|
||||
}for(l=!u,u||(u=s()),o||(o=s()),f=u.length;f--;)if(u[f]==n)return o[f]==t;var p=0,a=true;if(u.push(n),o.push(t),i){if(f=n.length,p=t.length,(a=p==f)||e)for(;p--;)if(i=f,c=t[p],e)for(;i--&&!(a=vt(n[i],c,r,e,u,o)););else if(!(a=vt(n[p],c,r,e,u,o)))break}else pe(t,function(t,i,l){return Dr.call(l,i)?(p++,a=Dr.call(n,i)&&vt(n[i],t,r,e,u,o)):void 0}),a&&!e&&pe(n,function(n,t,r){return Dr.call(r,t)?a=-1<--p:void 0});return u.pop(),o.pop(),l&&(v(u),v(o)),a}function yt(n,t,r,e,u){(se(t)?Wt:Zt)(t,function(t,o){var a,i,l=t,f=n[o];
|
||||
if(t&&((i=se(t))||ge(t))){for(l=e.length;l--;)if(a=e[l]==t){f=u[l];break}if(!a){var c;r&&(l=r(f,t),c=typeof l!="undefined")&&(f=l),c||(f=i?se(f)?f:[]:ge(f)?f:{}),e.push(t),u.push(f),c||yt(f,t,r,e,u)}}else r&&(l=r(f,t),typeof l=="undefined"&&(l=t)),typeof l!="undefined"&&(f=l);n[o]=f})}function dt(n,t){return n+Rr(Yr()*(t-n+1))}function bt(n,e,u){var o=-1,a=Ct(),i=n?n.length:0,l=[],c=!e&&i>=T&&a===t,p=u||c?s():l;for(c&&(p=f(p),a=r);++o<i;){var g=n[o],h=u?u(g,o,n):g;(e?!o||p[p.length-1]!==h:0>a(p,h))&&((u||c)&&p.push(h),l.push(g))
|
||||
}return c?(v(p.g),y(p)):u&&v(p),l}function wt(n){return function(t,r,u){var o={};if(r=e.createCallback(r,u,3),se(t)){u=-1;for(var a=t.length;++u<a;){var i=t[u];n(o,i,r(i,u,t),t)}}else gt(t,function(t,e,u){n(o,t,r(t,e,u),u)});return o}}function jt(n,t,r,e,u,o){var i=t&q,l=t&A,f=t&N,c=t&R;if(!(t&S||er(n)))throw new jr;f&&!r.length&&(t&=-17,f=r=false),c&&!e.length&&(t&=-33,c=e=false);var p=n&&n.__bindData__;return p&&true!==p?(p=It(p),p[2]&&(p[2]=It(p[2])),p[3]&&(p[3]=It(p[3])),!i||p[1]&q||(p[4]=u),!i&&p[1]&q&&(t|=8),!l||p[1]&A||(p[5]=o),f&&Fr.apply(p[2]||(p[2]=[]),r),c&&Wr.apply(p[3]||(p[3]=[]),e),p[1]|=t,jt.apply(null,p)):(t==q||t==(q|N)?a:O)([n,t,r,e,u,o])
|
||||
}function xt(n){n.d=Z;var t=yr,r="return function("+n.a+"){",e="var s="+n.b+";if(!k(q)){return s}"+n.e+";";ue.nonEnumArgs&&(e+="var n=q.length;if(n&&j(q)){m=-1;while(++m<n){m+='';"+n.c+";}return s}"),ue.enumPrototypes&&(e+="var u=typeof q=='function';"),ue.enumErrorProps&&(e+="var t=q===g||q instanceof Error;");var u=[];if(ue.enumPrototypes&&u.push("!(u&&m=='prototype')"),ue.enumErrorProps&&u.push("!(t&&(m=='message'||m=='name'))"),e+="for(var m in q){",n.f&&u.push("h.call(q,m)"),u.length&&(e+="if("+u.join("&&")+"){"),e+=n.c+";",u.length&&(e+="}"),e+="}",ue.nonEnumShadows){for(e+="if(q!==r){var e=q.constructor,l=q===(e&&e.prototype),c=q===w?v:q===g?f:y.call(q),o=p[c];",u=0;7>u;u++)e+="m='"+n.d[u]+"';if((!(l&&o[m])&&h.call(q,m))",n.f||(e+="||(!o[m]&&q[m]!==r[m])"),e+="){"+n.c+"}";
|
||||
e+="}"}return t("a,f,g,h,j,k,r,p,v,w,y",r+(e+"return s;")+"}")(k,ut,Cr,Dr,Et,ur,kr,ee,ft,Or,Sr)}function Ct(){var n=(n=e.indexOf)===St?t:n;return n}function kt(n){return typeof n=="function"&&Ar.test(Tr.call(n))}function Ot(n){var t,r;return!n||Sr.call(n)!=it||!Dr.call(n,"constructor")&&(t=n.constructor,er(t)&&!(t instanceof t))||!ue.argsClass&&Et(n)||!ue.nodeClass&&h(n)?false:ue.ownLast?(se(n,function(n,t,e){return r=Dr.call(e,t),false}),false!==r):(se(n,function(n,t){r=t}),typeof r=="undefined"||Dr.call(n,r))
|
||||
e+="}"}return t("a,f,g,h,j,k,r,p,v,w,y",r+(e+"return s;")+"}")(k,ut,Cr,Dr,Et,ur,kr,ee,ft,Or,Sr)}function Ct(){var n=(n=e.indexOf)===St?t:n;return n}function kt(n){return typeof n=="function"&&Ar.test(Tr.call(n))}function Ot(n){var t,r;return!n||Sr.call(n)!=it||!Dr.call(n,"constructor")&&(t=n.constructor,er(t)&&!(t instanceof t))||!ue.argsClass&&Et(n)||!ue.nodeClass&&h(n)?false:ue.ownLast?(pe(n,function(n,t,e){return r=Dr.call(e,t),false}),false!==r):(pe(n,function(n,t){r=t}),typeof r=="undefined"||Dr.call(n,r))
|
||||
}function Et(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Sr.call(n)==nt||false}function qt(n,t,r){var u=0,o=n?n.length:0;if(typeof t!="number"&&null!=t){var a=-1;for(t=e.createCallback(t,r,3);++a<o&&t(n[a],a,n);)u++}else if(u=t,null==u||r)return n?n[0]:C;return It(n,0,0<u?u:0)}function St(n,r,e){var u=n?n.length:0;if(typeof e=="number")e=0>e?Hr(0,u+e):e||0;else if(e)return e=Nt(n,r),u&&n[e]===r?e:-1;return t(n,r,e)}function At(n,t,r){if(typeof t!="number"&&null!=t){var u=0,o=-1,a=n?n.length:0;
|
||||
for(t=e.createCallback(t,r,3);++o<a&&t(n[o],o,n);)u++}else u=null==t||r?1:0<t?t:0;return It(n,u)}function It(n,t,r){var e=-1,u=n?n.length:0;for(typeof t=="undefined"?t=0:0>t?t=Hr(u+t,0):t>u&&(t=u),typeof r=="undefined"?r=u:0>r?r=Hr(u+r,0):r>u&&(r=u),u=r-t||0,r=gr(u);++e<u;)r[e]=n[t+e];return r}function Nt(n,t,r,u){var o=0,a=n?n.length:o;for(r=r?e.createCallback(r,u,1):lr,t=r(t);o<a;)u=o+a>>>1,r(n[u])<t?o=u+1:a=u;return o}function Rt(n,t,r,u){var o=typeof t;return"boolean"!=o&&null!=t&&(u=r,r=t,t=false,"number"!=o&&"string"!=o||!u||u[r]!==n||(r=null)),null!=r&&(r=e.createCallback(r,u,3)),bt(n,t,r)
|
||||
}function Tt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?Mt(ce(n,"length")):0,e=gr(0>r?0:r);++t<r;)e[t]=ce(n,t);return e}function Pt(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||pe(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Dt(){return this.__wrapped__}function Ft(n,t,r){var e=n?n.length:0;if(r=typeof r=="number"?r:0,typeof e=="number"){if(r>=e)return false;if(typeof n=="string"||!pe(n)&&ar(n))return Kr?Kr.call(n,t,r):-1<n.indexOf(t,r);var u=Ct();
|
||||
return r=(0>r?Hr(0,e+r):r)||0,-1<u(n,t,r)}var o=-1,a=false;return gt(n,function(n){return++o<r?void 0:!(a=n===t)}),a}function $t(n,t,r){var u=true;if(t=e.createCallback(t,r,3),pe(n)){r=-1;for(var o=n.length;++r<o&&(u=!!t(n[r],r,n)););}else gt(n,function(n,r,e){return u=!!t(n,r,e)});return u}function Lt(n,t,r){var u=[];if(t=e.createCallback(t,r,3),pe(n)){r=-1;for(var o=n.length;++r<o;){var a=n[r];t(a,r,n)&&u.push(a)}}else gt(n,function(n,r,e){t(n,r,e)&&u.push(n)});return u}function Bt(n,t,r){if(t=e.createCallback(t,r,3),!pe(n)){var u;
|
||||
return gt(n,function(n,r,e){return t(n,r,e)?(u=n,false):void 0}),u}r=-1;for(var o=n.length;++r<o;){var a=n[r];if(t(a,r,n))return a}}function Wt(n,t,r){if(t&&typeof r=="undefined"&&pe(n)){r=-1;for(var e=n.length;++r<e&&false!==t(n[r],r,n););}else gt(n,t,r);return n}function zt(n,t,r){var e=n,u=n?n.length:0;if(t=t&&typeof r=="undefined"?t:k(t,r,3),pe(n))for(;u--&&false!==t(n[u],u,n););else{if(typeof u!="number")var o=he(n),u=o.length;else ue.unindexedChars&&ar(n)&&(e=n.split(""));gt(e,function(r,a){return a=o?o[--u]:--u,t(e[a],a,n)
|
||||
})}return n}function Kt(n,t,r){var u=-1,o=n?n.length:0,a=gr(typeof o=="number"?o:0);if(t=e.createCallback(t,r,3),pe(n))for(;++u<o;)a[u]=t(n[u],u,n);else gt(n,function(n,r,e){a[++u]=t(n,r,e)});return a}function Mt(n,t,r){var o=-1/0,a=o,i=typeof t;if("number"!=i&&"string"!=i||!r||r[t]!==n||(t=null),null==t&&pe(n))for(r=-1,i=n.length;++r<i;){var l=n[r];l>a&&(a=l)}else t=null==t&&ar(n)?u:e.createCallback(t,r,3),gt(n,function(n,r,e){r=t(n,r,e),r>o&&(o=r,a=n)});return a}function Ut(n,t,r,u){var o=3>arguments.length;
|
||||
if(t=e.createCallback(t,u,4),pe(n)){var a=-1,i=n.length;for(o&&i&&(r=n[++a]);++a<i;)r=t(r,n[a],a,n)}else gt(n,function(n,e,u){r=o?(o=false,n):t(r,n,e,u)});return r}function Vt(n,t,r,u){var o=3>arguments.length;return t=e.createCallback(t,u,4),zt(n,function(n,e,u){r=o?(o=false,n):t(r,n,e,u)}),r}function Xt(n){var t=-1,r=n?n.length:0,e=gr(typeof r=="number"?r:0);return Wt(n,function(n){var r=dt(0,++t);e[t]=e[r],e[r]=n}),e}function Gt(n,t,r){var u;if(t=e.createCallback(t,r,3),pe(n)){r=-1;for(var o=n.length;++r<o&&!(u=t(n[r],r,n)););}else gt(n,function(n,r,e){return!(u=t(n,r,e))
|
||||
});return!!u}function Ht(n,t){return 2<arguments.length?jt(n,q|N,It(arguments,2),null,t):jt(n,q,null,null,t)}function Jt(n,t,r){function e(){c&&Nr(c),a=c=s=C,(h||g!==t)&&(p=de(),i=n.apply(f,o),c||a||(o=f=null))}function u(){var r=t-(de()-l);0<r?c=Lr(u,r):(a&&Nr(a),r=s,a=c=s=C,r&&(p=de(),i=n.apply(f,o),c||a||(o=f=null)))}var o,a,i,l,f,c,s,p=0,g=false,h=true;if(!er(n))throw new jr;if(t=Hr(0,t)||0,true===r)var v=true,h=false;else ur(r)&&(v=r.leading,g="maxWait"in r&&(Hr(t,r.maxWait)||0),h="trailing"in r?r.trailing:h);
|
||||
return function(){if(o=arguments,l=de(),f=this,s=h&&(c||!v),false===g)var r=v&&!c;else{a||v||(p=l);var y=g-(l-p),m=0>=y;m?(a&&(a=Nr(a)),p=l,i=n.apply(f,o)):a||(a=Lr(e,y))}return m&&c?c=Nr(c):c||t===g||(c=Lr(u,t)),r&&(m=true,i=n.apply(f,o)),!m||c||a||(o=f=null),i}}function Qt(n,t,r){var e=arguments,u=0,o=e.length,a=typeof r;if("number"!=a&&"string"!=a||!e[3]||e[3][r]!==t||(o=2),3<o&&"function"==typeof e[o-2])var i=k(e[--o-1],e[o--],2);else 2<o&&"function"==typeof e[o-1]&&(i=e[--o]);for(;++u<o;)if(t=e[u],ur(t))for(var a=-1,l=he(t),f=l.length;++a<f;){var c=l[a];
|
||||
}function Tt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?Mt(ce(n,"length")):0,e=gr(0>r?0:r);++t<r;)e[t]=ce(n,t);return e}function Pt(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||se(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Dt(){return this.__wrapped__}function Ft(n,t,r){var e=n?n.length:0;if(r=typeof r=="number"?r:0,typeof e=="number"){if(r>=e)return false;if(typeof n=="string"||!se(n)&&ar(n))return Kr?Kr.call(n,t,r):-1<n.indexOf(t,r);var u=Ct();
|
||||
return r=(0>r?Hr(0,e+r):r)||0,-1<u(n,t,r)}var o=-1,a=false;return gt(n,function(n){return++o<r?void 0:!(a=n===t)}),a}function $t(n,t,r){var u=true;if(t=e.createCallback(t,r,3),se(n)){r=-1;for(var o=n.length;++r<o&&(u=!!t(n[r],r,n)););}else gt(n,function(n,r,e){return u=!!t(n,r,e)});return u}function Lt(n,t,r){var u=[];if(t=e.createCallback(t,r,3),se(n)){r=-1;for(var o=n.length;++r<o;){var a=n[r];t(a,r,n)&&u.push(a)}}else gt(n,function(n,r,e){t(n,r,e)&&u.push(n)});return u}function Bt(n,t,r){if(t=e.createCallback(t,r,3),!se(n)){var u;
|
||||
return gt(n,function(n,r,e){return t(n,r,e)?(u=n,false):void 0}),u}r=-1;for(var o=n.length;++r<o;){var a=n[r];if(t(a,r,n))return a}}function Wt(n,t,r){if(t&&typeof r=="undefined"&&se(n)){r=-1;for(var e=n.length;++r<e&&false!==t(n[r],r,n););}else gt(n,t,r);return n}function zt(n,t,r){var e=n,u=n?n.length:0;if(t=t&&typeof r=="undefined"?t:k(t,r,3),se(n))for(;u--&&false!==t(n[u],u,n););else{if(typeof u!="number")var o=he(n),u=o.length;else ue.unindexedChars&&ar(n)&&(e=n.split(""));gt(e,function(r,a){return a=o?o[--u]:--u,t(e[a],a,n)
|
||||
})}return n}function Kt(n,t,r){var u=-1,o=n?n.length:0,a=gr(typeof o=="number"?o:0);if(t=e.createCallback(t,r,3),se(n))for(;++u<o;)a[u]=t(n[u],u,n);else gt(n,function(n,r,e){a[++u]=t(n,r,e)});return a}function Mt(n,t,r){var o=-1/0,a=o,i=typeof t;if("number"!=i&&"string"!=i||!r||r[t]!==n||(t=null),null==t&&se(n))for(r=-1,i=n.length;++r<i;){var l=n[r];l>a&&(a=l)}else t=null==t&&ar(n)?u:e.createCallback(t,r,3),gt(n,function(n,r,e){r=t(n,r,e),r>o&&(o=r,a=n)});return a}function Ut(n,t,r,u){var o=3>arguments.length;
|
||||
if(t=e.createCallback(t,u,4),se(n)){var a=-1,i=n.length;for(o&&i&&(r=n[++a]);++a<i;)r=t(r,n[a],a,n)}else gt(n,function(n,e,u){r=o?(o=false,n):t(r,n,e,u)});return r}function Vt(n,t,r,u){var o=3>arguments.length;return t=e.createCallback(t,u,4),zt(n,function(n,e,u){r=o?(o=false,n):t(r,n,e,u)}),r}function Xt(n){var t=-1,r=n?n.length:0,e=gr(typeof r=="number"?r:0);return Wt(n,function(n){var r=dt(0,++t);e[t]=e[r],e[r]=n}),e}function Gt(n,t,r){var u;if(t=e.createCallback(t,r,3),se(n)){r=-1;for(var o=n.length;++r<o&&!(u=t(n[r],r,n)););}else gt(n,function(n,r,e){return!(u=t(n,r,e))
|
||||
});return!!u}function Ht(n,t){return 2<arguments.length?jt(n,q|N,It(arguments,2),null,t):jt(n,q,null,null,t)}function Jt(n,t,r){function e(){c&&Nr(c),a=c=p=C,(h||g!==t)&&(s=de(),i=n.apply(f,o),c||a||(o=f=null))}function u(){var r=t-(de()-l);0<r?c=Lr(u,r):(a&&Nr(a),r=p,a=c=p=C,r&&(s=de(),i=n.apply(f,o),c||a||(o=f=null)))}var o,a,i,l,f,c,p,s=0,g=false,h=true;if(!er(n))throw new jr;if(t=Hr(0,t)||0,true===r)var v=true,h=false;else ur(r)&&(v=r.leading,g="maxWait"in r&&(Hr(t,r.maxWait)||0),h="trailing"in r?r.trailing:h);
|
||||
return function(){if(o=arguments,l=de(),f=this,p=h&&(c||!v),false===g)var r=v&&!c;else{a||v||(s=l);var y=g-(l-s),m=0>=y;m?(a&&(a=Nr(a)),s=l,i=n.apply(f,o)):a||(a=Lr(e,y))}return m&&c?c=Nr(c):c||t===g||(c=Lr(u,t)),r&&(m=true,i=n.apply(f,o)),!m||c||a||(o=f=null),i}}function Qt(n,t,r){var e=arguments,u=0,o=e.length,a=typeof r;if("number"!=a&&"string"!=a||!e[3]||e[3][r]!==t||(o=2),3<o&&"function"==typeof e[o-2])var i=k(e[--o-1],e[o--],2);else 2<o&&"function"==typeof e[o-1]&&(i=e[--o]);for(;++u<o;)if(t=e[u],ur(t))for(var a=-1,l=he(t),f=l.length;++a<f;){var c=l[a];
|
||||
n[c]=i?i(n[c],t[c]):t[c]}return n}function Yt(n,t,r){var e=arguments,u=0,o=e.length,a=typeof r;for("number"!=a&&"string"!=a||!e[3]||e[3][r]!==t||(o=2);++u<o;)if(t=e[u],ur(t))for(var a=-1,i=he(t),l=i.length;++a<l;){var f=i[a];"undefined"==typeof n[f]&&(n[f]=t[f])}return n}function Zt(n,t,r){var e=-1,u=he(n),o=u.length;for(t=t&&typeof r=="undefined"?t:k(t,r,3);++e<o&&(r=u[e],false!==t(n[r],r,n)););return n}function nr(n,t,r){var e=he(n),u=e.length;for(t=k(t,r,3);u--&&(r=e[u],false!==t(n[r],r,n)););return n
|
||||
}function tr(n){var t=[];return se(n,function(n,r){er(n)&&t.push(r)}),t.sort()}function rr(n){return n&&typeof n=="object"&&1===n.nodeType&&(ue.nodeClass?-1<Sr.call(n).indexOf("Element"):h(n))||false}function er(n){return typeof n=="function"}function ur(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function or(n){var t=typeof n;return"number"==t||n&&"object"==t&&Sr.call(n)==at||false}function ar(n){return typeof n=="string"||n&&typeof n=="object"&&Sr.call(n)==ft||false}function ir(n){for(var t=-1,r=he(n),e=r.length,u=gr(e);++t<e;)u[t]=n[r[t]];
|
||||
}function tr(n){var t=[];return pe(n,function(n,r){er(n)&&t.push(r)}),t.sort()}function rr(n){return n&&typeof n=="object"&&1===n.nodeType&&(ue.nodeClass?-1<Sr.call(n).indexOf("Element"):h(n))||false}function er(n){return typeof n=="function"}function ur(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function or(n){var t=typeof n;return"number"==t||n&&"object"==t&&Sr.call(n)==at||false}function ar(n){return typeof n=="string"||n&&typeof n=="object"&&Sr.call(n)==ft||false}function ir(n){for(var t=-1,r=he(n),e=r.length,u=gr(e);++t<e;)u[t]=n[r[t]];
|
||||
return u}function lr(n){return n}function fr(n){n||(n={});var t=he(n),r=t[0],e=n[r];return 1!=t.length||e!==e||ur(e)?function(r){for(var e=t.length,u=false;e--&&(u=vt(r[t[e]],n[t[e]],null,true)););return u}:function(n){return n=n[r],e===n&&(0!==e||1/e==1/n)}}function cr(n,t,r){var u=true,o=t&&tr(t);t&&(r||o.length)||(null==r&&(r=t),t=n,n=e,o=tr(t)),false===r?u=false:ur(r)&&"chain"in r&&(u=r.chain),r=-1;for(var a=er(n),i=o?o.length:0;++r<i;){var l=o[r],f=n[l]=t[l];a&&(n.prototype[l]=function(t){return function(){var r=this.__chain__,e=this.__wrapped__,o=[e];
|
||||
if(Fr.apply(o,arguments),o=t.apply(n,o),u||r){if(e===o&&ur(o))return this;o=new n(o),o.__chain__=r}return o}}(f))}}function sr(){}function pr(n){return function(t){return t[n]}}n=n?_t.defaults(mt.Object(),n,_t.pick(mt,Y)):mt;var gr=n.Array,hr=n.Boolean,vr=n.Date,yr=n.Function,mr=n.Math,dr=n.Number,br=n.Object,_r=n.RegExp,wr=n.String,jr=n.TypeError,xr=gr.prototype,Cr=n.Error.prototype,kr=br.prototype,Or=wr.prototype,Er=(Er=n.window)&&Er.document,qr=n._,Sr=kr.toString,Ar=_r("^"+wr(Sr).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ir=mr.ceil,Nr=n.clearTimeout,Rr=mr.floor,Tr=yr.prototype.toString,Pr=kt(Pr=br.getPrototypeOf)&&Pr,Dr=kr.hasOwnProperty,Fr=xr.push,$r=kr.propertyIsEnumerable,Lr=n.setTimeout,Br=xr.splice,Wr=xr.unshift,zr=function(){try{var n={},t=kt(t=br.defineProperty)&&t,r=t(n,n,n)&&t
|
||||
if(Fr.apply(o,arguments),o=t.apply(n,o),u||r){if(e===o&&ur(o))return this;o=new n(o),o.__chain__=r}return o}}(f))}}function pr(){}function sr(n){return function(t){return t[n]}}n=n?_t.defaults(mt.Object(),n,_t.pick(mt,Y)):mt;var gr=n.Array,hr=n.Boolean,vr=n.Date,yr=n.Function,mr=n.Math,dr=n.Number,br=n.Object,_r=n.RegExp,wr=n.String,jr=n.TypeError,xr=gr.prototype,Cr=n.Error.prototype,kr=br.prototype,Or=wr.prototype,Er=(Er=n.window)&&Er.document,qr=n._,Sr=kr.toString,Ar=_r("^"+wr(Sr).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ir=mr.ceil,Nr=n.clearTimeout,Rr=mr.floor,Tr=yr.prototype.toString,Pr=kt(Pr=br.getPrototypeOf)&&Pr,Dr=kr.hasOwnProperty,Fr=xr.push,$r=kr.propertyIsEnumerable,Lr=n.setTimeout,Br=xr.splice,Wr=xr.unshift,zr=function(){try{var n={},t=kt(t=br.defineProperty)&&t,r=t(n,n,n)&&t
|
||||
}catch(e){}return r}(),Kr=kt(Kr=Or.contains)&&Kr,Mr=kt(Mr=br.create)&&Mr,Ur=kt(Ur=gr.isArray)&&Ur,Vr=n.isFinite,Xr=n.isNaN,Gr=kt(Gr=br.keys)&&Gr,Hr=mr.max,Jr=mr.min,Qr=n.parseInt,Yr=mr.random,Zr=kt(Zr=Or.trim)&&!Zr.call(D)&&Zr,ne=kt(ne=Or.trimLeft)&&!ne.call(D)&&ne,te=kt(te=Or.trimRight)&&!te.call(D)&&te,re={};re[tt]=gr,re[rt]=hr,re[et]=vr,re[ot]=yr,re[it]=br,re[at]=dr,re[lt]=_r,re[ft]=wr;var ee={};ee[tt]=ee[et]=ee[at]={constructor:true,toLocaleString:true,toString:true,valueOf:true},ee[rt]=ee[ft]={constructor:true,toString:true,valueOf:true},ee[ut]=ee[ot]=ee[lt]={constructor:true,toString:true},ee[it]={constructor:true},function(){for(var n=Z.length;n--;){var t,r=Z[n];
|
||||
for(t in ee)Dr.call(ee,t)&&!Dr.call(ee[t],r)&&(ee[t][r]=false)}}(),o.prototype=e.prototype;var ue=e.support={};!function(){function t(){this.x=1}var r={0:1,length:1},e=[];t.prototype={valueOf:1,y:1};for(var u in new t)e.push(u);for(u in arguments);ue.argsClass=Sr.call(arguments)==nt,ue.argsObject=arguments.constructor==br&&!(arguments instanceof gr),ue.enumErrorProps=$r.call(Cr,"message")||$r.call(Cr,"name"),ue.enumPrototypes=$r.call(t,"prototype"),ue.funcDecomp=!kt(n.WinRTError)&&J.test(x),ue.funcNames=typeof yr.name=="string",ue.nonEnumArgs=0!=u,ue.nonEnumShadows=!/valueOf/.test(e),ue.ownLast="x"!=e[0],ue.spliceObjects=(Br.call(r,0,1),!r[0]),ue.unindexedChars="xx"!="x"[0]+br("x")[0];
|
||||
try{ue.dom=11===Er.createDocumentFragment().nodeType}catch(o){ue.dom=false}try{ue.nodeClass=!(Sr.call(undefined)==it&&!({toString:0}+""))}catch(a){ue.nodeClass=true}}(1),e.templateSettings={escape:z,evaluate:K,interpolate:M,variable:"",imports:{_:e}},Mr||(w=function(){function t(){}return function(r){if(ur(r)){t.prototype=r;var e=new t;t.prototype=null}return e||n.Object()}}());var oe=zr?function(n,t){pt.value=t,zr(n,"__bindData__",pt)}:sr;ue.argsClass||(Et=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Dr.call(n,"callee")&&!$r.call(n,"callee")||false
|
||||
});var ae=xt({a:"q",b:"[]",e:"",c:"s.push(m)",f:true}),ie=wt(function(n,t,r){Dr.call(n,r)?n[r]++:n[r]=1}),le=wt(function(n,t,r){Dr.call(n,r)?n[r].push(t):n[r]=[t]}),fe=wt(function(n,t,r){n[r]=t}),ce=Kt,se=xt({a:"q,b,x",b:"q",e:"b=b&&typeof x=='undefined'?b:a(b,x,3)",c:"if(b(q[m],m,q)===false){return s}",f:false}),pe=Ur||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Sr.call(n)==tt||false};ue.dom||(rr=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!ge(n)||false}),er(/x/)&&(er=function(n){return typeof n=="function"&&Sr.call(n)==ot
|
||||
try{ue.dom=11===Er.createDocumentFragment().nodeType}catch(o){ue.dom=false}try{ue.nodeClass=!(Sr.call(undefined)==it&&!({toString:0}+""))}catch(a){ue.nodeClass=true}}(1),e.templateSettings={escape:z,evaluate:K,interpolate:M,variable:"",imports:{_:e}},Mr||(w=function(){function t(){}return function(r){if(ur(r)){t.prototype=r;var e=new t;t.prototype=null}return e||n.Object()}}());var oe=zr?function(n,t){st.value=t,zr(n,"__bindData__",st)}:pr;ue.argsClass||(Et=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Dr.call(n,"callee")&&!$r.call(n,"callee")||false
|
||||
});var ae=xt({a:"q",b:"[]",e:"",c:"s.push(m)",f:true}),ie=wt(function(n,t,r){Dr.call(n,r)?n[r]++:n[r]=1}),le=wt(function(n,t,r){Dr.call(n,r)?n[r].push(t):n[r]=[t]}),fe=wt(function(n,t,r){n[r]=t}),ce=Kt,pe=xt({a:"q,b,x",b:"q",e:"b=b&&typeof x=='undefined'?b:a(b,x,3)",c:"if(b(q[m],m,q)===false){return s}",f:false}),se=Ur||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Sr.call(n)==tt||false};ue.dom||(rr=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!ge(n)||false}),er(/x/)&&(er=function(n){return typeof n=="function"&&Sr.call(n)==ot
|
||||
});var ge=Pr?function(n){if(!n||Sr.call(n)!=it||!ue.argsClass&&Et(n))return false;var t=n.valueOf,r=kt(t)&&(r=Pr(t))&&Pr(r);return r?n==r||Pr(n)==r:Ot(n)}:Ot,he=Gr?function(n){return ur(n)?ue.enumPrototypes&&typeof n=="function"||ue.nonEnumArgs&&n.length&&Et(n)?ae(n):Gr(n):[]}:ae,ve=Zr?function(n,t){return null==n?"":null==t?Zr.call(n):m(n,t)}:m,ye=ne?function(n,t){return null==n?"":null==t?ne.call(n):d(n,t)}:d,me=te?function(n,t){return null==n?"":null==t?te.call(n):b(n,t)}:b,de=kt(de=vr.now)&&de||function(){return(new vr).getTime()
|
||||
},be=8==Qr(D+"08")?Qr:function(n,t){return n=ve(n),Qr(n,+t||(G.test(n)?16:10))};return e.after=function(n,t){if(!er(t))throw new jr;return function(){return 1>--n?t.apply(this,arguments):void 0}},e.assign=Qt,e.at=function(n,t){var r=arguments,e=-1,u=ht(r,true,false,1),o=u.length,a=typeof t;for("number"!=a&&"string"!=a||!r[2]||r[2][t]!==n||(o=1),ue.unindexedChars&&ar(n)&&(n=n.split("")),r=gr(o);++e<o;)r[e]=n[u[e]];return r},e.bind=Ht,e.bindAll=function(n){for(var t=1<arguments.length?ht(arguments,true,false,1):tr(n),r=-1,e=t.length;++r<e;){var u=t[r];
|
||||
n[u]=jt(n[u],q,null,null,n)}return n},e.bindKey=function(n,t){return 2<arguments.length?jt(t,q|S|N,It(arguments,2),null,n):jt(t,q|S,null,null,n)},e.chain=function(n){return n=new o(n),n.__chain__=true,n},e.compact=function(n){for(var t=-1,r=n?n.length:0,e=0,u=[];++t<r;){var o=n[t];o&&(u[e++]=o)}return u},e.compose=function(){for(var n=arguments,t=n.length;t--;)if(!er(n[t]))throw new jr;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];return t[0]}},e.constant=function(n){return function(){return n
|
||||
}},e.countBy=ie,e.create=function(n,t){var r=w(n);return t?Qt(r,t):r},e.createCallback=function(n,t,r){var e=typeof n;return null==n||"function"==e?k(n,t,r):"object"!=e?pr(n):fr(n)},e.curry=function(n,t){return t=typeof t=="number"?t:+t||n.length,jt(n,A,null,null,null,t)},e.debounce=Jt,e.defaults=Yt,e.defer=function(n){if(!er(n))throw new jr;var t=It(arguments,1);return Lr(function(){n.apply(C,t)},1)},e.delay=function(n,t){if(!er(n))throw new jr;var r=It(arguments,2);return Lr(function(){n.apply(C,r)
|
||||
},t)},e.difference=function(n){return P(n,ht(arguments,true,true,1))},e.filter=Lt,e.flatten=function(n,t,r,e){var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),null!=r&&(n=Kt(n,r,e)),ht(n,t)},e.forEach=Wt,e.forEachRight=zt,e.forIn=se,e.forInRight=function(n,t,r){var e=[];se(n,function(n,t){e.push(t,n)});var u=e.length;for(t=k(t,r,3);u--&&false!==t(e[u--],e[u],n););return n},e.forOwn=Zt,e.forOwnRight=nr,e.functions=tr,e.groupBy=le,e.indexBy=fe,e.initial=function(n,t,r){var u=0,o=n?n.length:0;
|
||||
if(typeof t!="number"&&null!=t){var a=o;for(t=e.createCallback(t,r,3);a--&&t(n[a],a,n);)u++}else u=null==t||r?1:t||u;return u=o-u,It(n,0,0<u?u:0)},e.intersection=function(){for(var n=[],e=-1,u=arguments.length,o=p(),a=Ct(),i=a===t,l=p();++e<u;){var c=arguments[e];(pe(c)||Et(c))&&(n.push(c),o.push(i&&c.length>=T&&f(e?n[e]:l)))}var i=n[0],s=-1,g=i?i.length:0,h=[];n:for(;++s<g;){var m=o[0],c=i[s];if(0>(m?r(m,c):a(l,c))){for(e=u,(m||l).push(c);--e;)if(m=o[e],0>(m?r(m,c):a(n[e],c)))continue n;h.push(c)
|
||||
}},e.countBy=ie,e.create=function(n,t){var r=w(n);return t?Qt(r,t):r},e.createCallback=function(n,t,r){var e=typeof n;return null==n||"function"==e?k(n,t,r):"object"!=e?sr(n):fr(n)},e.curry=function(n,t){return t=typeof t=="number"?t:+t||n.length,jt(n,A,null,null,null,t)},e.debounce=Jt,e.defaults=Yt,e.defer=function(n){if(!er(n))throw new jr;var t=It(arguments,1);return Lr(function(){n.apply(C,t)},1)},e.delay=function(n,t){if(!er(n))throw new jr;var r=It(arguments,2);return Lr(function(){n.apply(C,r)
|
||||
},t)},e.difference=function(n){return P(n,ht(arguments,true,true,1))},e.filter=Lt,e.flatten=function(n,t,r,e){var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),null!=r&&(n=Kt(n,r,e)),ht(n,t)},e.forEach=Wt,e.forEachRight=zt,e.forIn=pe,e.forInRight=function(n,t,r){var e=[];pe(n,function(n,t){e.push(t,n)});var u=e.length;for(t=k(t,r,3);u--&&false!==t(e[u--],e[u],n););return n},e.forOwn=Zt,e.forOwnRight=nr,e.functions=tr,e.groupBy=le,e.indexBy=fe,e.initial=function(n,t,r){var u=0,o=n?n.length:0;
|
||||
if(typeof t!="number"&&null!=t){var a=o;for(t=e.createCallback(t,r,3);a--&&t(n[a],a,n);)u++}else u=null==t||r?1:t||u;return u=o-u,It(n,0,0<u?u:0)},e.intersection=function(){for(var n=[],e=-1,u=arguments.length,o=s(),a=Ct(),i=a===t,l=s();++e<u;){var c=arguments[e];(se(c)||Et(c))&&(n.push(c),o.push(i&&c.length>=T&&f(e?n[e]:l)))}var i=n[0],p=-1,g=i?i.length:0,h=[];n:for(;++p<g;){var m=o[0],c=i[p];if(0>(m?r(m,c):a(l,c))){for(e=u,(m||l).push(c);--e;)if(m=o[e],0>(m?r(m,c):a(n[e],c)))continue n;h.push(c)
|
||||
}}for(;u--;)(m=o[u])&&y(m);return v(o),v(l),h},e.invert=function(n,t){for(var r=-1,e=he(n),u=e.length,o={};++r<u;){var a=e[r],i=n[a];t?Dr.call(o,i)?o[i].push(a):o[i]=[a]:o[i]=a}return o},e.invoke=function(n,t){var r=It(arguments,2),e=-1,u=typeof t=="function",o=n?n.length:0,a=gr(typeof o=="number"?o:0);return Wt(n,function(n){a[++e]=(u?t:n[t]).apply(n,r)}),a},e.keys=he,e.map=Kt,e.mapValues=function(n,t,r){var u={};return t=e.createCallback(t,r,3),Zt(n,function(n,r,e){u[r]=t(n,r,e)}),u},e.match=fr,e.max=Mt,e.memoize=function(n,t){function r(){var e=r.cache,u=t?t.apply(this,arguments):"_"+arguments[0];
|
||||
return Dr.call(e,u)?e[u]:e[u]=n.apply(this,arguments)}if(!er(n))throw new jr;return r.cache={},r},e.merge=function(n,t,r){if(!ur(n))return n;var e=arguments,u=e.length,o=typeof r;if("number"!=o&&"string"!=o||!e[3]||e[3][r]!==t||(u=2),3<u&&"function"==typeof e[u-2])var a=k(e[--u-1],e[u--],2);else 2<u&&"function"==typeof e[u-1]&&(a=e[--u]);for(var e=It(arguments,1,u),o=-1,i=p(),l=p();++o<u;)yt(n,e[o],a,i,l);return v(i),v(l),n},e.min=function(n,t,r){var o=1/0,a=o,i=typeof t;if("number"!=i&&"string"!=i||!r||r[t]!==n||(t=null),null==t&&pe(n))for(r=-1,i=n.length;++r<i;){var l=n[r];
|
||||
l<a&&(a=l)}else t=null==t&&ar(n)?u:e.createCallback(t,r,3),gt(n,function(n,r,e){r=t(n,r,e),r<o&&(o=r,a=n)});return a},e.omit=function(n,t,r){var u={};if(typeof t!="function"){var o=[];se(n,function(n,t){o.push(t)});for(var o=P(o,ht(arguments,true,false,1)),a=-1,i=o.length;++a<i;){var l=o[a];u[l]=n[l]}}else t=e.createCallback(t,r,3),se(n,function(n,r,e){t(n,r,e)||(u[r]=n)});return u},e.once=function(n){var t,r;if(!er(n))throw new jr;return function(){return t?r:(t=true,r=n.apply(this,arguments),n=null,r)
|
||||
}},e.pairs=function(n){for(var t=-1,r=he(n),e=r.length,u=gr(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},e.partial=function(n){return jt(n,N,It(arguments,1))},e.partialRight=function(n){return jt(n,R,null,It(arguments,1))},e.pick=function(n,t,r){var u={};if(typeof t!="function")for(var o=-1,a=ht(arguments,true,false,1),i=ur(n)?a.length:0;++o<i;){var l=a[o];l in n&&(u[l]=n[l])}else t=e.createCallback(t,r,3),se(n,function(n,r,e){t(n,r,e)&&(u[r]=n)});return u},e.pluck=ce,e.property=pr,e.pull=function(n){for(var t=arguments,r=0,e=t.length,u=n?n.length:0;++r<e;)for(var o=-1,a=t[r];++o<u;)n[o]===a&&(Br.call(n,o--,1),u--);
|
||||
return n},e.range=function(n,t,r){n=+n||0,r=typeof r=="number"?r:+r||1,null==t&&(t=n,n=0);var e=-1;t=Hr(0,Ir((t-n)/(r||1)));for(var u=gr(t);++e<t;)u[e]=n,n+=r;return u},e.reject=function(n,t,r){return t=e.createCallback(t,r,3),Lt(n,function(n,r,e){return!t(n,r,e)})},e.remove=function(n,t,r){var u=-1,o=n?n.length:0,a=[];for(t=e.createCallback(t,r,3);++u<o;)r=n[u],t(r,u,n)&&(a.push(r),Br.call(n,u--,1),o--);return a},e.rest=At,e.shuffle=Xt,e.slice=It,e.sortBy=function(n,t,r){var u=-1,o=t&&pe(t),a=n?n.length:0,f=gr(typeof a=="number"?a:0);
|
||||
for(o||(t=e.createCallback(t,r,3)),Wt(n,function(n,r,e){var a=f[++u]=g();a.j=u,a.k=n,a.i=o?Kt(t,function(t){return n[t]}):t(n,r,e)}),a=f.length,f.sort(o?l:i);a--;)n=f[a],f[a]=n.k,y(n);return f},e.tap=function(n,t,r){return t.call(r,n),n},e.throttle=function(n,t,r){var e=true,u=true;if(!er(n))throw new jr;return false===r?e=false:ur(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),st.leading=e,st.maxWait=t,st.trailing=u,Jt(n,t,st)},e.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=gr(n);for(t=k(t,r,1);++e<n;)u[e]=t(e);
|
||||
return u},e.toArray=function(n){return n&&typeof n.length=="number"?ue.unindexedChars&&ar(n)?n.split(""):It(n):ir(n)},e.transform=function(n,t,r,u){var o=pe(n);if(null==r)if(o)r=[];else{var a=n&&n.constructor;r=w(a&&a.prototype)}return t&&(t=e.createCallback(t,u,4),(o?gt:Zt)(n,function(n,e,u){return t(r,n,e,u)})),r},e.union=function(){return bt(ht(arguments,true,true))},e.uniq=Rt,e.values=ir,e.where=Lt,e.without=function(n){return P(n,It(arguments,1))},e.wrap=function(n,t){return jt(t,N,[n])},e.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];
|
||||
if(pe(r)||Et(r))var e=e?P(e,r).concat(P(r,e)):r}return e?bt(e):[]},e.zip=Tt,e.zipObject=Pt,e.collect=Kt,e.drop=At,e.each=Wt,e.eachRight=zt,e.extend=Qt,e.methods=tr,e.object=Pt,e.select=Lt,e.tail=At,e.unique=Rt,e.unzip=Tt,cr(Qt({},e)),e.capitalize=function(n){return null==n?"":(n=wr(n),n.charAt(0).toUpperCase()+n.slice(1))},e.clone=function(n,t,r,e){var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),_(n,t,typeof r=="function"&&k(r,e,1))},e.cloneDeep=function(n,t,r){return _(n,true,typeof t=="function"&&k(t,r,1))
|
||||
return Dr.call(e,u)?e[u]:e[u]=n.apply(this,arguments)}if(!er(n))throw new jr;return r.cache={},r},e.merge=function(n,t,r){if(!ur(n))return n;var e=arguments,u=e.length,o=typeof r;if("number"!=o&&"string"!=o||!e[3]||e[3][r]!==t||(u=2),3<u&&"function"==typeof e[u-2])var a=k(e[--u-1],e[u--],2);else 2<u&&"function"==typeof e[u-1]&&(a=e[--u]);for(var e=It(arguments,1,u),o=-1,i=s(),l=s();++o<u;)yt(n,e[o],a,i,l);return v(i),v(l),n},e.min=function(n,t,r){var o=1/0,a=o,i=typeof t;if("number"!=i&&"string"!=i||!r||r[t]!==n||(t=null),null==t&&se(n))for(r=-1,i=n.length;++r<i;){var l=n[r];
|
||||
l<a&&(a=l)}else t=null==t&&ar(n)?u:e.createCallback(t,r,3),gt(n,function(n,r,e){r=t(n,r,e),r<o&&(o=r,a=n)});return a},e.omit=function(n,t,r){var u={};if(typeof t!="function"){var o=[];pe(n,function(n,t){o.push(t)});for(var o=P(o,ht(arguments,true,false,1)),a=-1,i=o.length;++a<i;){var l=o[a];u[l]=n[l]}}else t=e.createCallback(t,r,3),pe(n,function(n,r,e){t(n,r,e)||(u[r]=n)});return u},e.once=function(n){var t,r;if(!er(n))throw new jr;return function(){return t?r:(t=true,r=n.apply(this,arguments),n=null,r)
|
||||
}},e.pairs=function(n){for(var t=-1,r=he(n),e=r.length,u=gr(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},e.partial=function(n){return jt(n,N,It(arguments,1))},e.partialRight=function(n){return jt(n,R,null,It(arguments,1))},e.pick=function(n,t,r){var u={};if(typeof t!="function")for(var o=-1,a=ht(arguments,true,false,1),i=ur(n)?a.length:0;++o<i;){var l=a[o];l in n&&(u[l]=n[l])}else t=e.createCallback(t,r,3),pe(n,function(n,r,e){t(n,r,e)&&(u[r]=n)});return u},e.pluck=ce,e.property=sr,e.pull=function(n){for(var t=arguments,r=0,e=t.length,u=n?n.length:0;++r<e;)for(var o=-1,a=t[r];++o<u;)n[o]===a&&(Br.call(n,o--,1),u--);
|
||||
return n},e.range=function(n,t,r){n=+n||0,r=typeof r=="number"?r:+r||1,null==t&&(t=n,n=0);var e=-1;t=Hr(0,Ir((t-n)/(r||1)));for(var u=gr(t);++e<t;)u[e]=n,n+=r;return u},e.reject=function(n,t,r){return t=e.createCallback(t,r,3),Lt(n,function(n,r,e){return!t(n,r,e)})},e.remove=function(n,t,r){var u=-1,o=n?n.length:0,a=[];for(t=e.createCallback(t,r,3);++u<o;)r=n[u],t(r,u,n)&&(a.push(r),Br.call(n,u--,1),o--);return a},e.rest=At,e.shuffle=Xt,e.slice=It,e.sortBy=function(n,t,r){var u=-1,o=t&&se(t),a=n?n.length:0,f=gr(typeof a=="number"?a:0);
|
||||
for(o||(t=e.createCallback(t,r,3)),Wt(n,function(n,r,e){var a=f[++u]=g();a.j=u,a.k=n,a.i=o?Kt(t,function(t){return n[t]}):t(n,r,e)}),a=f.length,f.sort(o?l:i);a--;)n=f[a],f[a]=n.k,y(n);return f},e.tap=function(n,t,r){return t.call(r,n),n},e.throttle=function(n,t,r){var e=true,u=true;if(!er(n))throw new jr;return false===r?e=false:ur(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),pt.leading=e,pt.maxWait=t,pt.trailing=u,Jt(n,t,pt)},e.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=gr(n);for(t=k(t,r,1);++e<n;)u[e]=t(e);
|
||||
return u},e.toArray=function(n){return n&&typeof n.length=="number"?ue.unindexedChars&&ar(n)?n.split(""):It(n):ir(n)},e.transform=function(n,t,r,u){var o=se(n);if(null==r)if(o)r=[];else{var a=n&&n.constructor;r=w(a&&a.prototype)}return t&&(t=e.createCallback(t,u,4),(o?gt:Zt)(n,function(n,e,u){return t(r,n,e,u)})),r},e.union=function(){return bt(ht(arguments,true,true))},e.uniq=Rt,e.values=ir,e.where=Lt,e.without=function(n){return P(n,It(arguments,1))},e.wrap=function(n,t){return jt(t,N,[n])},e.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];
|
||||
if(se(r)||Et(r))var e=e?P(e,r).concat(P(r,e)):r}return e?bt(e):[]},e.zip=Tt,e.zipObject=Pt,e.collect=Kt,e.drop=At,e.each=Wt,e.eachRight=zt,e.extend=Qt,e.methods=tr,e.object=Pt,e.select=Lt,e.tail=At,e.unique=Rt,e.unzip=Tt,cr(Qt({},e)),e.capitalize=function(n){return null==n?"":(n=wr(n),n.charAt(0).toUpperCase()+n.slice(1))},e.clone=function(n,t,r,e){var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),_(n,t,typeof r=="function"&&k(r,e,1))},e.cloneDeep=function(n,t,r){return _(n,true,typeof t=="function"&&k(t,r,1))
|
||||
},e.contains=Ft,e.escape=function(n){return null==n?"":wr(n).replace(W,c)},e.every=$t,e.find=Bt,e.findIndex=function(n,t,r){var u=-1,o=n?n.length:0;for(t=e.createCallback(t,r,3);++u<o;)if(t(n[u],u,n))return u;return-1},e.findKey=function(n,t,r){var u;return t=e.createCallback(t,r,3),Zt(n,function(n,r,e){return t(n,r,e)?(u=r,false):void 0}),u},e.findLast=function(n,t,r){var u;return t=e.createCallback(t,r,3),zt(n,function(n,r,e){return t(n,r,e)?(u=n,false):void 0}),u},e.findLastIndex=function(n,t,r){var u=n?n.length:0;
|
||||
for(t=e.createCallback(t,r,3);u--;)if(t(n[u],u,n))return u;return-1},e.findLastKey=function(n,t,r){var u;return t=e.createCallback(t,r,3),nr(n,function(n,r,e){return t(n,r,e)?(u=r,false):void 0}),u},e.has=function(n,t){return n?Dr.call(n,t):false},e.identity=lr,e.indexOf=St,e.isArguments=Et,e.isArray=pe,e.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Sr.call(n)==rt||false},e.isDate=function(n){return n&&typeof n=="object"&&Sr.call(n)==et||false},e.isElement=rr,e.isEmpty=function(n){var t=true;
|
||||
for(t=e.createCallback(t,r,3);u--;)if(t(n[u],u,n))return u;return-1},e.findLastKey=function(n,t,r){var u;return t=e.createCallback(t,r,3),nr(n,function(n,r,e){return t(n,r,e)?(u=r,false):void 0}),u},e.has=function(n,t){return n?Dr.call(n,t):false},e.identity=lr,e.indexOf=St,e.isArguments=Et,e.isArray=se,e.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Sr.call(n)==rt||false},e.isDate=function(n){return n&&typeof n=="object"&&Sr.call(n)==et||false},e.isElement=rr,e.isEmpty=function(n){var t=true;
|
||||
if(!n)return t;var r=Sr.call(n),e=n.length;return r==tt||r==ft||(ue.argsClass?r==nt:Et(n))||r==it&&typeof e=="number"&&er(n.splice)?!e:(Zt(n,function(){return t=false}),t)},e.isEqual=function(n,t,r,e){return vt(n,t,typeof r=="function"&&k(r,e,2))},e.isFinite=function(n){return Vr(n)&&!Xr(parseFloat(n))},e.isFunction=er,e.isNaN=function(n){return or(n)&&n!=+n},e.isNull=function(n){return null===n},e.isNumber=or,e.isObject=ur,e.isPlainObject=ge,e.isRegExp=function(n){var t=typeof n;return n&&("function"==t||"object"==t)&&Sr.call(n)==lt||false
|
||||
},e.isString=ar,e.isUndefined=function(n){return typeof n=="undefined"},e.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?Hr(0,e+r):Jr(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},e.mixin=cr,e.noConflict=function(){return n._=qr,this},e.noop=sr,e.now=de,e.parseInt=be,e.random=function(n,t,r){var e=null==n,u=null==t;return null==r&&(u&&typeof n=="boolean"?(r=n,n=1):typeof t=="boolean"&&(r=t,u=true)),e&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=Yr(),Jr(n+r*(t-n+parseFloat("1e-"+((r+"").length-1))),t)):dt(n,t)
|
||||
},e.reduce=Ut,e.reduceRight=Vt,e.result=function(n,t){if(n){var r=n[t];return er(r)?n[t]():r}},e.runInContext=x,e.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:he(n).length},e.some=Gt,e.sortedIndex=Nt,e.template=function(n,t,r){var u=e.templateSettings;n=wr(n||""),r=Yt({},r,u);var o,a=Yt({},r.imports,u.imports),u=he(a),a=ir(a),i=0,l=r.interpolate||H,f="__p+='",l=_r((r.escape||H).source+"|"+l.source+"|"+(l===M?U:H).source+"|"+(r.evaluate||H).source+"|$","g");n.replace(l,function(t,r,e,u,a,l){return e||(e=u),f+=n.slice(i,l).replace(Q,s),r&&(f+="'+__e("+r+")+'"),a&&(o=true,f+="';"+a+";\n__p+='"),e&&(f+="'+((__t=("+e+"))==null?'':__t)+'"),i=l+t.length,t
|
||||
}),f+="';",l=r=r.variable,l||(r="obj",f="with("+r+"){"+f+"}"),f=(o?f.replace(F,""):f).replace($,"$1").replace(L,"$1;"),f="function("+r+"){"+(l?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+f+"return __p}";try{var c=yr(u,"return "+f).apply(C,a)}catch(p){throw p.source=f,p}return t?c(t):(c.source=f,c)},e.trim=ve,e.trimLeft=ye,e.trimRight=me,e.unescape=function(n){return null==n?"":(n=wr(n),0>n.indexOf(";")?n:n.replace(B,j))
|
||||
},e.uniqueId=function(n){var t=++E;return wr(null==n?"":n)+t},e.all=$t,e.any=Gt,e.detect=Bt,e.findWhere=Bt,e.foldl=Ut,e.foldr=Vt,e.include=Ft,e.inject=Ut,cr(function(){var n={};return Zt(e,function(t,r){e.prototype[r]||(n[r]=t)}),n}(),false),e.first=qt,e.last=function(n,t,r){var u=0,o=n?n.length:0;if(typeof t!="number"&&null!=t){var a=o;for(t=e.createCallback(t,r,3);a--&&t(n[a],a,n);)u++}else if(u=t,null==u||r)return n?n[o-1]:C;return u=o-u,It(n,0<u?u:0)},e.sample=function(n,t,r){return n&&typeof n.length!="number"?n=ir(n):ue.unindexedChars&&ar(n)&&(n=n.split("")),null==t||r?n?n[dt(0,n.length-1)]:C:(n=Xt(n),n.length=Jr(Hr(0,t),n.length),n)
|
||||
},e.take=qt,e.head=qt,Zt(e,function(n,t){var r="sample"!==t;e.prototype[t]||(e.prototype[t]=function(t,e){var u=this.__chain__,a=n(this.__wrapped__,t,e);return u||null!=t&&(!e||r&&typeof t=="function")?new o(a,u):a})}),e.VERSION="2.4.1",e.prototype.chain=function(){return this.__chain__=true,this},e.prototype.toString=function(){return wr(this.__wrapped__)},e.prototype.value=Dt,e.prototype.valueOf=Dt,gt(["join","pop","shift"],function(n){var t=xr[n];e.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);
|
||||
return n?new o(r,n):r}}),gt(["push","reverse","sort","unshift"],function(n){var t=xr[n];e.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),gt(["concat","splice"],function(n){var t=xr[n];e.prototype[n]=function(){return new o(t.apply(this.__wrapped__,arguments),this.__chain__)}}),ue.spliceObjects||gt(["pop","shift","splice"],function(n){var t=xr[n],r="splice"==n;e.prototype[n]=function(){var n=this.__chain__,e=this.__wrapped__,u=t.apply(e,arguments);return 0===e.length&&delete e[0],n||r?new o(u,n):u
|
||||
}}),e}var C,k=[],O=[],E=0,q=1,S=2,A=4,I=8,N=16,R=32,T=75,P=40,D=" \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",F=/\b__p\+='';/g,$=/\b(__p\+=)''\+/g,L=/(__e\(.*?\)|\b__t\))\+'';/g,B=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,z=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,M=/<%=([\s\S]+?)%>/g,U=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,V=/\w*$/,X=/^\s*function[ \n\r\t]+\w/,G=/^0[xX]/,H=/($^)/,J=/\bthis\b/,Q=/['\n\r\t\u2028\u2029\\]/g,Y="Array Boolean Date Error Function Math Number Object RegExp String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),Z="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),nt="[object Arguments]",tt="[object Array]",rt="[object Boolean]",et="[object Date]",ut="[object Error]",ot="[object Function]",at="[object Number]",it="[object Object]",lt="[object RegExp]",ft="[object String]",ct={};
|
||||
ct[ot]=false,ct[nt]=ct[tt]=ct[rt]=ct[et]=ct[at]=ct[it]=ct[lt]=ct[ft]=true;var st={leading:false,maxWait:0,trailing:false},pt={configurable:false,enumerable:false,value:null,writable:false},gt={"&":"&","<":"<",">":">",'"':""","'":"'"},ht={"&":"&","<":"<",">":">",""":'"',"'":"'"},vt={"function":true,object:true},yt={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},mt=vt[typeof window]&&window||this,dt=vt[typeof exports]&&exports&&!exports.nodeType&&exports,bt=vt[typeof global]&&global;
|
||||
},e.isString=ar,e.isUndefined=function(n){return typeof n=="undefined"},e.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?Hr(0,e+r):Jr(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},e.mixin=cr,e.noConflict=function(){return n._=qr,this},e.noop=pr,e.now=de,e.parseInt=be,e.random=function(n,t,r){var e=null==n,u=null==t;return null==r&&(u&&typeof n=="boolean"?(r=n,n=1):typeof t=="boolean"&&(r=t,u=true)),e&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=Yr(),Jr(n+r*(t-n+parseFloat("1e-"+((r+"").length-1))),t)):dt(n,t)
|
||||
},e.reduce=Ut,e.reduceRight=Vt,e.result=function(n,t,r){return null==n?r:(r="undefined"!=typeof n[t]?n[t]:r,er(r)?n[t]():r)},e.runInContext=x,e.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:he(n).length},e.some=Gt,e.sortedIndex=Nt,e.template=function(n,t,r){var u=e.templateSettings;n=wr(n||""),r=Yt({},r,u);var o,a=Yt({},r.imports,u.imports),u=he(a),a=ir(a),i=0,l=r.interpolate||H,f="__p+='",l=_r((r.escape||H).source+"|"+l.source+"|"+(l===M?U:H).source+"|"+(r.evaluate||H).source+"|$","g");
|
||||
n.replace(l,function(t,r,e,u,a,l){return e||(e=u),f+=n.slice(i,l).replace(Q,p),r&&(f+="'+__e("+r+")+'"),a&&(o=true,f+="';"+a+";\n__p+='"),e&&(f+="'+((__t=("+e+"))==null?'':__t)+'"),i=l+t.length,t}),f+="';",l=r=r.variable,l||(r="obj",f="with("+r+"){"+f+"}"),f=(o?f.replace(F,""):f).replace($,"$1").replace(L,"$1;"),f="function("+r+"){"+(l?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+f+"return __p}";try{var c=yr(u,"return "+f).apply(C,a)
|
||||
}catch(s){throw s.source=f,s}return t?c(t):(c.source=f,c)},e.trim=ve,e.trimLeft=ye,e.trimRight=me,e.unescape=function(n){return null==n?"":(n=wr(n),0>n.indexOf(";")?n:n.replace(B,j))},e.uniqueId=function(n){var t=++E;return wr(null==n?"":n)+t},e.all=$t,e.any=Gt,e.detect=Bt,e.findWhere=Bt,e.foldl=Ut,e.foldr=Vt,e.include=Ft,e.inject=Ut,cr(function(){var n={};return Zt(e,function(t,r){e.prototype[r]||(n[r]=t)}),n}(),false),e.first=qt,e.last=function(n,t,r){var u=0,o=n?n.length:0;if(typeof t!="number"&&null!=t){var a=o;
|
||||
for(t=e.createCallback(t,r,3);a--&&t(n[a],a,n);)u++}else if(u=t,null==u||r)return n?n[o-1]:C;return u=o-u,It(n,0<u?u:0)},e.sample=function(n,t,r){return n&&typeof n.length!="number"?n=ir(n):ue.unindexedChars&&ar(n)&&(n=n.split("")),null==t||r?n?n[dt(0,n.length-1)]:C:(n=Xt(n),n.length=Jr(Hr(0,t),n.length),n)},e.take=qt,e.head=qt,Zt(e,function(n,t){var r="sample"!==t;e.prototype[t]||(e.prototype[t]=function(t,e){var u=this.__chain__,a=n(this.__wrapped__,t,e);return u||null!=t&&(!e||r&&typeof t=="function")?new o(a,u):a
|
||||
})}),e.VERSION="2.4.1",e.prototype.chain=function(){return this.__chain__=true,this},e.prototype.toString=function(){return wr(this.__wrapped__)},e.prototype.value=Dt,e.prototype.valueOf=Dt,gt(["join","pop","shift"],function(n){var t=xr[n];e.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);return n?new o(r,n):r}}),gt(["push","reverse","sort","unshift"],function(n){var t=xr[n];e.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),gt(["concat","splice"],function(n){var t=xr[n];
|
||||
e.prototype[n]=function(){return new o(t.apply(this.__wrapped__,arguments),this.__chain__)}}),ue.spliceObjects||gt(["pop","shift","splice"],function(n){var t=xr[n],r="splice"==n;e.prototype[n]=function(){var n=this.__chain__,e=this.__wrapped__,u=t.apply(e,arguments);return 0===e.length&&delete e[0],n||r?new o(u,n):u}}),e}var C,k=[],O=[],E=0,q=1,S=2,A=4,I=8,N=16,R=32,T=75,P=40,D=" \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",F=/\b__p\+='';/g,$=/\b(__p\+=)''\+/g,L=/(__e\(.*?\)|\b__t\))\+'';/g,B=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,z=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,M=/<%=([\s\S]+?)%>/g,U=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,V=/\w*$/,X=/^\s*function[ \n\r\t]+\w/,G=/^0[xX]/,H=/($^)/,J=/\bthis\b/,Q=/['\n\r\t\u2028\u2029\\]/g,Y="Array Boolean Date Error Function Math Number Object RegExp String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),Z="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),nt="[object Arguments]",tt="[object Array]",rt="[object Boolean]",et="[object Date]",ut="[object Error]",ot="[object Function]",at="[object Number]",it="[object Object]",lt="[object RegExp]",ft="[object String]",ct={};
|
||||
ct[ot]=false,ct[nt]=ct[tt]=ct[rt]=ct[et]=ct[at]=ct[it]=ct[lt]=ct[ft]=true;var pt={leading:false,maxWait:0,trailing:false},st={configurable:false,enumerable:false,value:null,writable:false},gt={"&":"&","<":"<",">":">",'"':""","'":"'"},ht={"&":"&","<":"<",">":">",""":'"',"'":"'"},vt={"function":true,object:true},yt={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},mt=vt[typeof window]&&window||this,dt=vt[typeof exports]&&exports&&!exports.nodeType&&exports,bt=vt[typeof global]&&global;
|
||||
!bt||bt.global!==bt&&bt.window!==bt||(mt=bt);var bt=(vt=vt[typeof module]&&module&&!module.nodeType&&module)&&vt.exports===dt&&dt,_t=x();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(mt._=_t, define(function(){return _t})):dt&&vt?bt?(vt.exports=_t)._=_t:dt._=_t:mt._=_t}).call(this);
|
||||
37
dist/lodash.js
vendored
37
dist/lodash.js
vendored
@@ -1098,7 +1098,7 @@
|
||||
}
|
||||
}
|
||||
// exit early if there are no `this` references or `func` is bound
|
||||
if (bindData === false || (bindData !== true && bindData[1] & 1)) {
|
||||
if (bindData === false || (bindData !== true && bindData[1] & BIND_FLAG)) {
|
||||
return func;
|
||||
}
|
||||
switch (argCount) {
|
||||
@@ -6907,36 +6907,43 @@
|
||||
|
||||
/**
|
||||
* Resolves the value of property `key` on `object`. If `key` is a function
|
||||
* it will be invoked with the `this` binding of `object` and its result returned,
|
||||
* else the property value is returned. If `object` is falsey then `undefined`
|
||||
* is returned.
|
||||
* it will be invoked with the `this` binding of `object` and its result
|
||||
* returned, else the property value is returned. If `object` is `null` or
|
||||
* `undefined` then `undefined` is returned. If a default value is provided
|
||||
* it will be returned if the property value resolves to `undefined`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Utilities
|
||||
* @param {Object} object The object to inspect.
|
||||
* @param {string} key The name of the property to resolve.
|
||||
* @param {*} [defaultValue] The value returned if the property value
|
||||
* resolves to `undefined`.
|
||||
* @returns {*} Returns the resolved value.
|
||||
* @example
|
||||
*
|
||||
* var object = {
|
||||
* 'cheese': 'crumpets',
|
||||
* 'stuff': function() {
|
||||
* return 'nonsense';
|
||||
* 'name': 'fred',
|
||||
* 'age': function() {
|
||||
* return 40;
|
||||
* }
|
||||
* };
|
||||
*
|
||||
* _.result(object, 'cheese');
|
||||
* // => 'crumpets'
|
||||
* _.result(object, 'name');
|
||||
* // => 'fred'
|
||||
*
|
||||
* _.result(object, 'stuff');
|
||||
* // => 'nonsense'
|
||||
* _.result(object, 'age');
|
||||
* // => 40
|
||||
*
|
||||
* _.result(object, 'employer', 'slate');
|
||||
* // => 'slate'
|
||||
*/
|
||||
function result(object, key) {
|
||||
if (object) {
|
||||
var value = object[key];
|
||||
return isFunction(value) ? object[key]() : value;
|
||||
function result(object, key, defaultValue) {
|
||||
if (object == null) {
|
||||
return defaultValue;
|
||||
}
|
||||
var value = typeof object[key] != 'undefined' ? object[key] : defaultValue;
|
||||
return isFunction(value) ? object[key]() : value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
6
dist/lodash.min.js
vendored
6
dist/lodash.min.js
vendored
@@ -10,7 +10,7 @@ t&&v(t),n.g=n.h=n.i=n.object=n.number=n.string=n.k=null,C.length<D&&C.push(n)}fu
|
||||
}return t}function _(n){for(var t=n.length;t--;){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 w(n){return pt[n]}function j(n){function e(n,t,r){if(!tr(n))return n;t=t&&typeof r=="undefined"?t:D(t,r,3);for(var e in n)if(false===t(n[e],e,n))break;return n}function o(n){var t=[];if(!tr(n))return t;for(var r in n)Sr.call(n,r)&&t.push(r);return t}function i(n){return n&&typeof n=="object"&&!oe(n)&&Sr.call(n,"__wrapped__")?n:new d(n)
|
||||
}function d(n,t){this.__chain__=!!t,this.__wrapped__=n}function _(n){function t(){if(e){var n=Et(e);Tr.apply(n,arguments)}if(this instanceof t){var o=C(r.prototype),n=r.apply(o,n||arguments);return tr(n)?n:o}return r.apply(u,n||arguments)}var r=n[0],e=n[2],u=n[4];return ne(t,n),t}function x(n,t,r,e,u){if(r){var o=r(n);if(typeof o!="undefined")return o}if(!tr(n))return n;var i=Cr.call(n);if(!at[i])return n;var a=Qr[i];switch(i){case nt:case tt:return new a(+n);case et:case it:return new a(n);case ot:return o=a(n.source,U.exec(n)),o.lastIndex=n.lastIndex,o
|
||||
}if(i=oe(n),t){var f=!e;e||(e=s()),u||(u=s());for(var l=e.length;l--;)if(e[l]==n)return u[l];o=i?a(n.length):{}}else o=i?Et(n):Gt({},n);return i&&(Sr.call(n,"index")&&(o.index=n.index),Sr.call(n,"input")&&(o.input=n.input)),t?(e.push(n),u.push(o),(i?qt:Jt)(n,function(n,i){o[i]=x(n,t,r,e,u)}),f&&(h(e),h(u)),o):o}function C(n){return tr(n)?Wr(n):{}}function D(n,t,r){if(typeof n!="function")return or;if(typeof t=="undefined"||!("prototype"in n))return n;var e=n.__bindData__;if(typeof e=="undefined"&&(Yr.funcNames&&(e=!n.name),e=e||!Yr.funcDecomp,!e)){var u=Rr.call(n);
|
||||
Yr.funcNames||(e=!V.test(u)),e||(e=H.test(u),ne(n,e))}if(false===e||true!==e&&1&e[1])return n;switch(r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)}}return Vt(n,t)}function ct(n){function t(){var n=f?i:this;if(u){var g=Et(u);Tr.apply(g,arguments)}return(o||c)&&(g||(g=Et(arguments)),o&&Tr.apply(g,o),c&&g.length<a)?(e|=I,e&=~S,ct([r,p?e:e&~(A|E),g,null,i,a])):(g||(g=arguments),l&&(r=n[s]),this instanceof t?(n=C(r.prototype),g=r.apply(n,g),tr(g)?g:n):r.apply(n,g))
|
||||
Yr.funcNames||(e=!V.test(u)),e||(e=H.test(u),ne(n,e))}if(false===e||true!==e&&e[1]&A)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)}}return Vt(n,t)}function ct(n){function t(){var n=f?i:this;if(u){var g=Et(u);Tr.apply(g,arguments)}return(o||c)&&(g||(g=Et(arguments)),o&&Tr.apply(g,o),c&&g.length<a)?(e|=I,e&=~S,ct([r,p?e:e&~(A|E),g,null,i,a])):(g||(g=arguments),l&&(r=n[s]),this instanceof t?(n=C(r.prototype),g=r.apply(n,g),tr(g)?g:n):r.apply(n,g))
|
||||
}var r=n[0],e=n[1],u=n[2],o=n[3],i=n[4],a=n[5],f=e&A,l=e&E,c=e&N,p=e&R,s=r;return ne(t,n),t}function pt(n,e){var u=-1,o=wt(),i=n?n.length:0,a=i>=T&&o===t,f=[];if(a){var c=l(e);c?(o=r,e=c):a=false}for(;++u<i;)c=n[u],0>o(e,c)&&f.push(c);return a&&v(e),f}function st(n,t,r,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"&&(oe(i)||xt(i))){t||(i=st(i,t,r));var a=-1,f=i.length,l=o.length;for(o.length+=f;++a<f;)o[l++]=i[a]}else r||o.push(i)}return o
|
||||
}function gt(n,t,r,u,o,i){if(r){var a=r(n,t);if(typeof a!="undefined")return!!a}if(n===t)return 0!==n||1/n==1/t;var f=typeof n,l=typeof t;if(n===n&&(!n||"function"!=f&&"object"!=f)&&(!t||"function"!=l&&"object"!=l))return false;if(null==n||null==t)return n===t;if(l=Cr.call(n),f=Cr.call(t),l==Y&&(l=ut),f==Y&&(f=ut),l!=f)return false;switch(l){case nt:case tt:return+n==+t;case et:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case ot:case it:return n==br(t)}if(f=l==Z,!f){var c=Sr.call(n,"__wrapped__"),p=Sr.call(t,"__wrapped__");
|
||||
if(c||p)return gt(c?n.__wrapped__:n,p?t.__wrapped__:t,r,u,o,i);if(l!=ut)return false;if(l=n.constructor,c=t.constructor,l!=c&&!(Sr.call(n,"constructor")&&Sr.call(t,"constructor")||nr(l)&&l instanceof l&&nr(c)&&c instanceof c)&&"constructor"in n&&"constructor"in t)return false}for(l=!o,o||(o=s()),i||(i=s()),c=o.length;c--;)if(o[c]==n)return i[c]==t;var g=0,a=true;if(o.push(n),i.push(t),f){if(c=n.length,g=t.length,(a=g==c)||u)for(;g--;)if(f=c,p=t[g],u)for(;f--&&!(a=gt(n[f],p,r,u,o,i)););else if(!(a=gt(n[g],p,r,u,o,i)))break
|
||||
@@ -49,8 +49,8 @@ if(oe(r)||xt(r))var e=e?pt(e,r).concat(pt(r,e)):r}return e?bt(e):[]},i.zip=It,i.
|
||||
},i.contains=Dt,i.escape=function(n){return null==n?"":br(n).replace(z,c)},i.every=Ft,i.find=Bt,i.findIndex=function(n,t,r){var e=-1,u=n?n.length:0;for(t=i.createCallback(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1},i.findKey=function(n,t,r){var e;return t=i.createCallback(t,r,3),Jt(n,function(n,r,u){return t(n,r,u)?(e=r,false):void 0}),e},i.findLast=function(n,t,r){var e;return t=i.createCallback(t,r,3),Wt(n,function(n,r,u){return t(n,r,u)?(e=n,false):void 0}),e},i.findLastIndex=function(n,t,r){var e=n?n.length:0;
|
||||
for(t=i.createCallback(t,r,3);e--;)if(t(n[e],e,n))return e;return-1},i.findLastKey=function(n,t,r){var e;return t=i.createCallback(t,r,3),Qt(n,function(n,r,u){return t(n,r,u)?(e=r,false):void 0}),e},i.has=function(n,t){return n?Sr.call(n,t):false},i.identity=or,i.indexOf=Ot,i.isArguments=xt,i.isArray=oe,i.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Cr.call(n)==nt||false},i.isDate=function(n){return n&&typeof n=="object"&&Cr.call(n)==tt||false},i.isElement=Zt,i.isEmpty=function(n){var t=true;
|
||||
if(!n)return t;var r=Cr.call(n),e=n.length;return r==Z||r==it||r==Y||r==ut&&typeof e=="number"&&nr(n.splice)?!e:(Jt(n,function(){return t=false}),t)},i.isEqual=function(n,t,r,e){return gt(n,t,typeof r=="function"&&D(r,e,2))},i.isFinite=function(n){return Lr(n)&&!Pr(parseFloat(n))},i.isFunction=nr,i.isNaN=function(n){return rr(n)&&n!=+n},i.isNull=function(n){return null===n},i.isNumber=rr,i.isObject=tr,i.isPlainObject=ie,i.isRegExp=function(n){return n&&typeof n=="object"&&Cr.call(n)==ot||false},i.isString=er,i.isUndefined=function(n){return typeof n=="undefined"
|
||||
},i.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?Mr(0,e+r):Ur(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},i.mixin=ar,i.noConflict=function(){return n._=xr,this},i.noop=fr,i.now=pe,i.parseInt=se,i.random=function(n,t,r){var e=null==n,u=null==t;return null==r&&(u&&typeof n=="boolean"?(r=n,n=1):typeof t=="boolean"&&(r=t,u=true)),e&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=Xr(),Ur(n+r*(t-n+parseFloat("1e-"+((r+"").length-1))),t)):yt(n,t)},i.reduce=Pt,i.reduceRight=Kt,i.result=function(n,t){if(n){var r=n[t];
|
||||
return nr(r)?n[t]():r}},i.runInContext=j,i.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:ae(n).length},i.some=Ut,i.sortedIndex=Nt,i.template=function(n,t,r){var e=i.templateSettings;n=br(n||""),r=Ht({},r,e);var u,o=Ht({},r.imports,e.imports),e=ae(o),o=ur(o),a=0,f=r.interpolate||G,l="__p+='",f=mr((r.escape||G).source+"|"+f.source+"|"+(f===K?M:G).source+"|"+(r.evaluate||G).source+"|$","g");n.replace(f,function(t,r,e,o,i,f){return e||(e=o),l+=n.slice(a,f).replace(J,p),r&&(l+="'+__e("+r+")+'"),i&&(u=true,l+="';"+i+";\n__p+='"),e&&(l+="'+((__t=("+e+"))==null?'':__t)+'"),a=f+t.length,t
|
||||
},i.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?Mr(0,e+r):Ur(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},i.mixin=ar,i.noConflict=function(){return n._=xr,this},i.noop=fr,i.now=pe,i.parseInt=se,i.random=function(n,t,r){var e=null==n,u=null==t;return null==r&&(u&&typeof n=="boolean"?(r=n,n=1):typeof t=="boolean"&&(r=t,u=true)),e&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=Xr(),Ur(n+r*(t-n+parseFloat("1e-"+((r+"").length-1))),t)):yt(n,t)},i.reduce=Pt,i.reduceRight=Kt,i.result=function(n,t,r){return null==n?r:(r="undefined"!=typeof n[t]?n[t]:r,nr(r)?n[t]():r)
|
||||
},i.runInContext=j,i.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:ae(n).length},i.some=Ut,i.sortedIndex=Nt,i.template=function(n,t,r){var e=i.templateSettings;n=br(n||""),r=Ht({},r,e);var u,o=Ht({},r.imports,e.imports),e=ae(o),o=ur(o),a=0,f=r.interpolate||G,l="__p+='",f=mr((r.escape||G).source+"|"+f.source+"|"+(f===K?M:G).source+"|"+(r.evaluate||G).source+"|$","g");n.replace(f,function(t,r,e,o,i,f){return e||(e=o),l+=n.slice(a,f).replace(J,p),r&&(l+="'+__e("+r+")+'"),i&&(u=true,l+="';"+i+";\n__p+='"),e&&(l+="'+((__t=("+e+"))==null?'':__t)+'"),a=f+t.length,t
|
||||
}),l+="';",f=r=r.variable,f||(r="obj",l="with("+r+"){"+l+"}"),l=(u?l.replace($,""):l).replace(B,"$1").replace(q,"$1;"),l="function("+r+"){"+(f?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}";try{var c=gr(e,"return "+l).apply(k,o)}catch(s){throw s.source=l,s}return t?c(t):(c.source=l,c)},i.trim=fe,i.trimLeft=le,i.trimRight=ce,i.unescape=function(n){return null==n?"":(n=br(n),0>n.indexOf(";")?n:n.replace(W,w))
|
||||
},i.uniqueId=function(n){var t=++O;return br(null==n?"":n)+t},i.all=Ft,i.any=Ut,i.detect=Bt,i.findWhere=Bt,i.foldl=Pt,i.foldr=Kt,i.include=Dt,i.inject=Pt,ar(function(){var n={};return Jt(i,function(t,r){i.prototype[r]||(n[r]=t)}),n}(),false),i.first=Ct,i.last=function(n,t,r){var e=0,u=n?n.length:0;if(typeof t!="number"&&null!=t){var o=u;for(t=i.createCallback(t,r,3);o--&&t(n[o],o,n);)e++}else if(e=t,null==e||r)return n?n[u-1]:k;return e=u-e,Et(n,0<e?e:0)},i.sample=function(n,t,r){return n&&typeof n.length!="number"&&(n=ur(n)),null==t||r?n?n[yt(0,n.length-1)]:k:(n=Mt(n),n.length=Ur(Mr(0,t),n.length),n)
|
||||
},i.take=Ct,i.head=Ct,Jt(i,function(n,t){var r="sample"!==t;i.prototype[t]||(i.prototype[t]=function(t,e){var u=this.__chain__,o=n(this.__wrapped__,t,e);return u||null!=t&&(!e||r&&typeof t=="function")?new d(o,u):o})}),i.VERSION="2.4.1",i.prototype.chain=function(){return this.__chain__=true,this},i.prototype.toString=function(){return br(this.__wrapped__)},i.prototype.value=Tt,i.prototype.valueOf=Tt,qt(["join","pop","shift"],function(n){var t=_r[n];i.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);
|
||||
|
||||
35
dist/lodash.underscore.js
vendored
35
dist/lodash.underscore.js
vendored
@@ -4842,36 +4842,43 @@
|
||||
|
||||
/**
|
||||
* Resolves the value of property `key` on `object`. If `key` is a function
|
||||
* it will be invoked with the `this` binding of `object` and its result returned,
|
||||
* else the property value is returned. If `object` is falsey then `undefined`
|
||||
* is returned.
|
||||
* it will be invoked with the `this` binding of `object` and its result
|
||||
* returned, else the property value is returned. If `object` is `null` or
|
||||
* `undefined` then `undefined` is returned. If a default value is provided
|
||||
* it will be returned if the property value resolves to `undefined`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Utilities
|
||||
* @param {Object} object The object to inspect.
|
||||
* @param {string} key The name of the property to resolve.
|
||||
* @param {*} [defaultValue] The value returned if the property value
|
||||
* resolves to `undefined`.
|
||||
* @returns {*} Returns the resolved value.
|
||||
* @example
|
||||
*
|
||||
* var object = {
|
||||
* 'cheese': 'crumpets',
|
||||
* 'stuff': function() {
|
||||
* return 'nonsense';
|
||||
* 'name': 'fred',
|
||||
* 'age': function() {
|
||||
* return 40;
|
||||
* }
|
||||
* };
|
||||
*
|
||||
* _.result(object, 'cheese');
|
||||
* // => 'crumpets'
|
||||
* _.result(object, 'name');
|
||||
* // => 'fred'
|
||||
*
|
||||
* _.result(object, 'stuff');
|
||||
* // => 'nonsense'
|
||||
* _.result(object, 'age');
|
||||
* // => 40
|
||||
*
|
||||
* _.result(object, 'employer', 'slate');
|
||||
* // => 'slate'
|
||||
*/
|
||||
function result(object, key) {
|
||||
if (object) {
|
||||
var value = object[key];
|
||||
return isFunction(value) ? object[key]() : value;
|
||||
function result(object, key, defaultValue) {
|
||||
if (object == null) {
|
||||
return defaultValue;
|
||||
}
|
||||
var value = typeof object[key] != 'undefined' ? object[key] : defaultValue;
|
||||
return isFunction(value) ? object[key]() : value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
10
dist/lodash.underscore.min.js
vendored
10
dist/lodash.underscore.min.js
vendored
@@ -33,8 +33,8 @@ o in n&&(u[o]=n[o])}return u},o.pluck=et,o.range=function(n,r,t){n=+n||0,t=+t||1
|
||||
},o.throttle=function(n,r,t){var e=true,u=true;if(!H(n))throw new TypeError;return false===t?e=false:J(t)&&(e="leading"in t?t.leading:e,u="trailing"in t?t.trailing:u),t={},t.leading=e,t.maxWait=r,t.trailing=u,z(n,r,t)},o.times=function(n,r,t){n=-1<(n=+n)?n:0;var e=-1,u=Array(n);for(r=c(r,t,1);++e<n;)u[e]=r(e);return u},o.toArray=function(n){return ot(n)?x(n):n&&typeof n.length=="number"?F(n):Q(n)},o.union=function(){return v(s(arguments,true,true))},o.uniq=A,o.values=Q,o.where=D,o.without=function(n){return p(n,x(arguments,1))
|
||||
},o.wrap=function(n,r){return y(r,cr,[n])},o.zip=function(){for(var n=-1,r=B(et(arguments,"length")),t=Array(0>r?0:r);++n<r;)t[n]=et(arguments,n);return t},o.collect=F,o.drop=j,o.each=N,o.extend=C,o.methods=V,o.object=function(n,r){var t=-1,e=n?n.length:0,u={};for(r||!e||ot(n[0])||(r=[]);++t<e;){var o=n[t];r?u[o]=r[t]:o&&(u[o[0]]=o[1])}return u},o.select=k,o.tail=j,o.unique=A,o.clone=function(n){return J(n)?ot(n)?x(n):C({},n):n},o.contains=E,o.escape=function(n){return null==n?"":(n+"").replace(sr,t)
|
||||
},o.every=O,o.find=S,o.has=function(n,r){return n?zr.call(n,r):false},o.identity=Y,o.indexOf=w,o.isArguments=b,o.isArray=ot,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&$r.call(n)==mr||false},o.isDate=function(n){return n&&typeof n=="object"&&$r.call(n)==_r||false},o.isElement=function(n){return n&&1===n.nodeType||false},o.isEmpty=G,o.isEqual=function(n,r){return g(n,r)},o.isFinite=function(n){return Hr(n)&&!Jr(parseFloat(n))},o.isFunction=H,o.isNaN=function(n){return K(n)&&n!=+n},o.isNull=function(n){return null===n
|
||||
},o.isNumber=K,o.isObject=J,o.isRegExp=function(n){var r=typeof n;return n&&("function"==r||"object"==r)&&$r.call(n)==wr||false},o.isString=L,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?Lr(0,e+t):Qr(t,e-1))+1);e--;)if(n[e]===r)return e;return-1},o.mixin=nr,o.noConflict=function(){return Or._=Rr,this},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+Dr(Xr()*(r-n+1))},o.reduce=R,o.reduceRight=$,o.result=function(n,r){if(n){var t=n[r];
|
||||
return H(t)?n[r]():t}},o.size=function(n){var r=n?n.length:0;return typeof r=="number"?r:it(n).length},o.some=M,o.sortedIndex=T,o.template=function(n,r,t){var u=o,i=u.templateSettings;n=(n||"")+"",t=P({},t,i);var f=0,a="__p+='",i=t.variable;n.replace(RegExp((t.escape||gr).source+"|"+(t.interpolate||gr).source+"|"+(t.evaluate||gr).source+"|$","g"),function(r,t,u,o,i){return a+=n.slice(f,i).replace(vr,e),t&&(a+="'+_.escape("+t+")+'"),o&&(a+="';"+o+";\n__p+='"),u&&(a+="'+((__t=("+u+"))==null?'':__t)+'"),f=i+r.length,r
|
||||
}),a+="';",i||(i="obj",a="with("+i+"||{}){"+a+"}"),a="function("+i+"){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(pr,u))},o.uniqueId=function(n){var r=++er+"";return n?n+r:r},o.all=O,o.any=M,o.detect=S,o.findWhere=function(n,r){return D(n,r,true)},o.foldl=R,o.foldr=$,o.include=E,o.inject=R,o.first=d,o.last=function(n,r,t){var e=0,u=n?n.length:0;
|
||||
if(typeof r!="number"&&null!=r){var o=u;for(r=X(r,t,3);o--&&r(n[o],o,n);)e++}else if(e=r,null==e||t)return n?n[u-1]:tr;return e=u-e,x(n,0<e?e:0)},o.sample=function(n,r,t){return n&&typeof n.length!="number"&&(n=Q(n)),null==r||t?n?n[0+Dr(Xr()*(n.length-1-0+1))]:tr:(n=I(n),n.length=Qr(Lr(0,r),n.length),n)},o.take=d,o.head=d,nr(C({},o)),o.VERSION="2.4.1",o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.value=function(){return this.__wrapped__},N("pop push reverse shift sort splice unshift".split(" "),function(n){var r=Fr[n];
|
||||
o.prototype[n]=function(){var n=this.__wrapped__;return r.apply(n,arguments),Yr.spliceObjects||0!==n.length||delete n[0],this}}),N(["concat","join","slice"],function(n){var r=Fr[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?(Or._=o, define(function(){return o})):kr&&Nr?qr?(Nr.exports=o)._=o:kr._=o:Or._=o}).call(this);
|
||||
},o.isNumber=K,o.isObject=J,o.isRegExp=function(n){var r=typeof n;return n&&("function"==r||"object"==r)&&$r.call(n)==wr||false},o.isString=L,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?Lr(0,e+t):Qr(t,e-1))+1);e--;)if(n[e]===r)return e;return-1},o.mixin=nr,o.noConflict=function(){return Or._=Rr,this},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+Dr(Xr()*(r-n+1))},o.reduce=R,o.reduceRight=$,o.result=function(n,r,t){return null==n?t:(t="undefined"!=typeof n[r]?n[r]:t,H(t)?n[r]():t)
|
||||
},o.size=function(n){var r=n?n.length:0;return typeof r=="number"?r:it(n).length},o.some=M,o.sortedIndex=T,o.template=function(n,r,t){var u=o,i=u.templateSettings;n=(n||"")+"",t=P({},t,i);var f=0,a="__p+='",i=t.variable;n.replace(RegExp((t.escape||gr).source+"|"+(t.interpolate||gr).source+"|"+(t.evaluate||gr).source+"|$","g"),function(r,t,u,o,i){return a+=n.slice(f,i).replace(vr,e),t&&(a+="'+_.escape("+t+")+'"),o&&(a+="';"+o+";\n__p+='"),u&&(a+="'+((__t=("+u+"))==null?'':__t)+'"),f=i+r.length,r}),a+="';",i||(i="obj",a="with("+i+"||{}){"+a+"}"),a="function("+i+"){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(pr,u))},o.uniqueId=function(n){var r=++er+"";return n?n+r:r},o.all=O,o.any=M,o.detect=S,o.findWhere=function(n,r){return D(n,r,true)},o.foldl=R,o.foldr=$,o.include=E,o.inject=R,o.first=d,o.last=function(n,r,t){var e=0,u=n?n.length:0;if(typeof r!="number"&&null!=r){var o=u;for(r=X(r,t,3);o--&&r(n[o],o,n);)e++}else if(e=r,null==e||t)return n?n[u-1]:tr;
|
||||
return e=u-e,x(n,0<e?e:0)},o.sample=function(n,r,t){return n&&typeof n.length!="number"&&(n=Q(n)),null==r||t?n?n[0+Dr(Xr()*(n.length-1-0+1))]:tr:(n=I(n),n.length=Qr(Lr(0,r),n.length),n)},o.take=d,o.head=d,nr(C({},o)),o.VERSION="2.4.1",o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.value=function(){return this.__wrapped__},N("pop push reverse shift sort splice unshift".split(" "),function(n){var r=Fr[n];o.prototype[n]=function(){var n=this.__wrapped__;return r.apply(n,arguments),Yr.spliceObjects||0!==n.length||delete n[0],this
|
||||
}}),N(["concat","join","slice"],function(n){var r=Fr[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?(Or._=o, define(function(){return o})):kr&&Nr?qr?(Nr.exports=o)._=o:kr._=o:Or._=o}).call(this);
|
||||
Reference in New Issue
Block a user