Add custom Lo-Dash build, remove from dependencies
This commit is contained in:
parent
25f12345b9
commit
b8766c4607
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
||||||
BIN := ./node_modules/.bin
|
BIN := ./node_modules/.bin
|
||||||
FILES := $(shell find lib spec/lib examples -type f -name "*.js")
|
FILES := $(shell find lib spec/lib examples -type f -name "*.js" | grep -v lodash)
|
||||||
TEST_FILES := spec/helper.js $(shell find spec/lib -type f -name "*.js")
|
TEST_FILES := spec/helper.js $(shell find spec/lib -type f -name "*.js")
|
||||||
|
|
||||||
VERSION := $(shell node -e "console.log(require('./package.json').version)")
|
VERSION := $(shell node -e "console.log(require('./package.json').version)")
|
||||||
|
|
|
@ -1,21 +1,59 @@
|
||||||
"use strict";
|
/**
|
||||||
|
* @license
|
||||||
// loader for Lo-Dash.
|
* Lo-Dash 2.4.1 (Custom Build) lodash.com/license | Underscore.js 1.5.2 underscorejs.org/LICENSE
|
||||||
//
|
* Build: `lodash compat exports="node" minus="template" --minify --output ./lib/lodash.js`
|
||||||
// will load the compatability version on JS implementations with less support
|
*/
|
||||||
// for ES5 features (Tessel, etc)
|
;(function(){function n(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 t(t,r){var e=typeof r;if(t=t.l,"boolean"==e||null==r)return t[r]?0:-1;"number"!=e&&"string"!=e&&(e="object");var u="number"==e?r:d+r;return t=(t=t[e])&&t[u],"object"==e?t&&-1<n(t,r)?0:-1:t?0:-1}function r(n){var t=this.l,r=typeof n;if("boolean"==r||null==n)t[n]=true;else{"number"!=r&&"string"!=r&&(r="object");var e="number"==r?n:d+n,t=t[r]||(t[r]={});"object"==r?(t[e]||(t[e]=[])).push(n):t[e]=true
|
||||||
|
}}function e(n){return n.charCodeAt(0)}function u(n,t){for(var r=n.m,e=t.m,u=-1,o=r.length;++u<o;){var a=r[u],i=e[u];if(a!==i){if(a>i||typeof a=="undefined")return 1;if(a<i||typeof i=="undefined")return-1}}return n.n-t.n}function o(n){var t=-1,e=n.length,u=n[0],o=n[e/2|0],a=n[e-1];if(u&&typeof u=="object"&&o&&typeof o=="object"&&a&&typeof a=="object")return false;for(u=i(),u["false"]=u["null"]=u["true"]=u.undefined=false,o=i(),o.k=n,o.l=u,o.push=r;++t<e;)o.push(n[t]);return o}function a(){return h.pop()||[]
|
||||||
var isTessel = function() {
|
}function i(){return v.pop()||{k:null,l:null,m:null,"false":false,n:0,"null":false,number:null,object:null,push:null,string:null,"true":false,undefined:false,o:null}}function f(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function l(n){n.length=0,h.length<_&&h.push(n)}function c(n){var t=n.l;t&&c(t),n.k=n.l=n.m=n.object=n.number=n.string=n.o=null,v.length<_&&v.push(n)}function p(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=Array(0>r?0:r);++e<r;)u[e]=n[t+e];
|
||||||
try {
|
return u}function s(r){function h(n){return n&&typeof n=="object"&&!Br(n)&&gr.call(n,"__wrapped__")?n:new v(n)}function v(n,t){this.__chain__=!!t,this.__wrapped__=n}function _(n){function t(){if(e){var n=p(e);hr.apply(n,arguments)}if(this instanceof t){var o=M(r.prototype),n=r.apply(o,n||arguments);return vt(n)?n:o}return r.apply(u,n||arguments)}var r=n[0],e=n[2],u=n[4];return Nr(t,n),t}function J(n,t,r,e,u){if(r){var o=r(n);if(typeof o!="undefined")return o}if(!vt(n))return n;var i=ar.call(n);if(!z[i]||!Dr.nodeClass&&f(n))return n;
|
||||||
require("tessel");
|
var c=Ar[i];switch(i){case D:case N:return new c(+n);case R:case L:return new c(n);case T:return o=c(n.source,j.exec(n)),o.lastIndex=n.lastIndex,o}if(i=Br(n),t){var s=!e;e||(e=a()),u||(u=a());for(var g=e.length;g--;)if(e[g]==n)return u[g];o=i?c(n.length):{}}else o=i?p(n):Gr({},n);return i&&(gr.call(n,"index")&&(o.index=n.index),gr.call(n,"input")&&(o.input=n.input)),t?(e.push(n),u.push(o),(i?$r:Vr)(n,function(n,a){o[a]=J(n,t,r,e,u)}),s&&(l(e),l(u)),o):o}function M(n){return vt(n)?_r(n):{}}function V(n,t,r){if(typeof n!="function")return qt;
|
||||||
return true;
|
if(typeof t=="undefined"||!("prototype"in n))return n;var e=n.__bindData__;if(typeof e=="undefined"&&(Dr.funcNames&&(e=!n.name),e=e||!Dr.funcDecomp,!e)){var u=pr.call(n);Dr.funcNames||(e=!x.test(u)),e||(e=E.test(u),Nr(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 Lt(n,t)}function H(n){function t(){var n=f?a:this;
|
||||||
} catch (e) {
|
if(u){var h=p(u);hr.apply(h,arguments)}return(o||c)&&(h||(h=p(arguments)),o&&hr.apply(h,o),c&&h.length<i)?(e|=16,H([r,s?e:-4&e,h,null,a,i])):(h||(h=arguments),l&&(r=n[g]),this instanceof t?(n=M(r.prototype),h=r.apply(n,h),vt(h)?h:n):r.apply(n,h))}var r=n[0],e=n[1],u=n[2],o=n[3],a=n[4],i=n[5],f=1&e,l=2&e,c=4&e,s=8&e,g=r;return Nr(t,n),t}function Q(r,e){var u=-1,a=at(),i=r?r.length:0,f=i>=b&&a===n,l=[];if(f){var p=o(e);p?(a=t,e=p):f=false}for(;++u<i;)p=r[u],0>a(e,p)&&l.push(p);return f&&c(e),l}function X(n,t,r,e){e=(e||0)-1;
|
||||||
return false;
|
for(var u=n?n.length:0,o=[];++e<u;){var a=n[e];if(a&&typeof a=="object"&&typeof a.length=="number"&&(Br(a)||ct(a))){t||(a=X(a,t,r));var i=-1,f=a.length,l=o.length;for(o.length+=f;++i<f;)o[l++]=a[i]}else r||o.push(a)}return o}function Y(n,t,r,e,u,o){if(r){var i=r(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;if(n===n&&!(n&&$[typeof n]||t&&$[typeof t]))return false;if(null==n||null==t)return n===t;var c=ar.call(n),p=ar.call(t);if(c==A&&(c=F),p==A&&(p=F),c!=p)return false;switch(c){case D:case N:return+n==+t;
|
||||||
}
|
case R:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case T:case L:return n==Zt(t)}if(p=c==I,!p){var s=gr.call(n,"__wrapped__"),g=gr.call(t,"__wrapped__");if(s||g)return Y(s?n.__wrapped__:n,g?t.__wrapped__:t,r,e,u,o);if(c!=F||!Dr.nodeClass&&(f(n)||f(t)))return false;if(c=!Dr.argsObject&&ct(n)?Xt:n.constructor,s=!Dr.argsObject&&ct(t)?Xt:t.constructor,c!=s&&!(ht(c)&&c instanceof c&&ht(s)&&s instanceof s)&&"constructor"in n&&"constructor"in t)return false}for(c=!u,u||(u=a()),o||(o=a()),s=u.length;s--;)if(u[s]==n)return o[s]==t;
|
||||||
};
|
var h=0,i=true;if(u.push(n),o.push(t),p){if(s=n.length,h=t.length,(i=h==s)||e)for(;h--;)if(p=s,g=t[h],e)for(;p--&&!(i=Y(n[p],g,r,e,u,o)););else if(!(i=Y(n[h],g,r,e,u,o)))break}else Mr(t,function(t,a,f){return gr.call(f,a)?(h++,i=gr.call(n,a)&&Y(n[a],t,r,e,u,o)):void 0}),i&&!e&&Mr(n,function(n,t,r){return gr.call(r,t)?i=-1<--h:void 0});return u.pop(),o.pop(),c&&(l(u),l(o)),i}function Z(n,t,r,e,u){(Br(t)?xt:Vr)(t,function(t,o){var a,i,f=t,l=n[o];if(t&&((i=Br(t))||Hr(t))){for(f=e.length;f--;)if(a=e[f]==t){l=u[f];
|
||||||
|
break}if(!a){var c;r&&(f=r(l,t),c=typeof f!="undefined")&&(l=f),c||(l=i?Br(l)?l:[]:Hr(l)?l:{}),e.push(t),u.push(l),c||Z(l,t,r,e,u)}}else r&&(f=r(l,t),typeof f=="undefined"&&(f=t)),typeof f!="undefined"&&(l=f);n[o]=l})}function nt(n,t){return n+cr(Sr()*(t-n+1))}function tt(r,e,u){var i=-1,f=at(),p=r?r.length:0,s=[],g=!e&&p>=b&&f===n,h=u||g?a():s;for(g&&(h=o(h),f=t);++i<p;){var v=r[i],y=u?u(v,i,r):v;(e?!i||h[h.length-1]!==y:0>f(h,y))&&((u||g)&&h.push(y),s.push(v))}return g?(l(h.k),c(h)):u&&l(h),s}function rt(n){return function(t,r,e){var u={};
|
||||||
if (isTessel()) {
|
if(r=h.createCallback(r,e,3),Br(t)){e=-1;for(var o=t.length;++e<o;){var a=t[e];n(u,a,r(a,e,t),t)}}else $r(t,function(t,e,o){n(u,t,r(t,e,o),o)});return u}}function et(n,t,r,e,u,o){var a=1&t,i=4&t,f=16&t,l=32&t;if(!(2&t||ht(n)))throw new nr;f&&!r.length&&(t&=-17,f=r=false),l&&!e.length&&(t&=-33,l=e=false);var c=n&&n.__bindData__;return c&&true!==c?(c=p(c),c[2]&&(c[2]=p(c[2])),c[3]&&(c[3]=p(c[3])),!a||1&c[1]||(c[4]=u),!a&&1&c[1]&&(t|=8),!i||4&c[1]||(c[5]=o),f&&hr.apply(c[2]||(c[2]=[]),r),l&&dr.apply(c[3]||(c[3]=[]),e),c[1]|=t,et.apply(null,c)):(1==t||17===t?_:H)([n,t,r,e,u,o])
|
||||||
module.exports = require("lodash/dist/lodash.compat");
|
}function ut(){W.h=S,W.b=W.c=W.g=W.i="",W.e="t",W.j=true;for(var n,t=0;n=arguments[t];t++)for(var r in n)W[r]=n[r];t=W.a,W.d=/^[^,]+/.exec(t)[0],n=Ht,t="return function("+t+"){",r=W;var e="var n,t="+r.d+",E="+r.e+";if(!t)return E;"+r.i+";";r.b?(e+="var u=t.length;n=-1;if("+r.b+"){",Dr.unindexedChars&&(e+="if(s(t)){t=t.split('')}"),e+="while(++n<u){"+r.g+";}}else{"):Dr.nonEnumArgs&&(e+="var u=t.length;n=-1;if(u&&p(t)){while(++n<u){n+='';"+r.g+";}}else{"),Dr.enumPrototypes&&(e+="var G=typeof t=='function';"),Dr.enumErrorProps&&(e+="var F=t===k||t instanceof Error;");
|
||||||
} else {
|
var u=[];if(Dr.enumPrototypes&&u.push('!(G&&n=="prototype")'),Dr.enumErrorProps&&u.push('!(F&&(n=="message"||n=="name"))'),r.j&&r.f)e+="var C=-1,D=B[typeof t]&&v(t),u=D?D.length:0;while(++C<u){n=D[C];",u.length&&(e+="if("+u.join("&&")+"){"),e+=r.g+";",u.length&&(e+="}"),e+="}";else if(e+="for(n in t){",r.j&&u.push("m.call(t, n)"),u.length&&(e+="if("+u.join("&&")+"){"),e+=r.g+";",u.length&&(e+="}"),e+="}",Dr.nonEnumShadows){for(e+="if(t!==A){var i=t.constructor,r=t===(i&&i.prototype),f=t===J?I:t===k?j:L.call(t),x=y[f];",k=0;7>k;k++)e+="n='"+r.h[k]+"';if((!(r&&x[n])&&m.call(t,n))",r.j||(e+="||(!x[n]&&t[n]!==A[n])"),e+="){"+r.g+"}";
|
||||||
module.exports = require("lodash");
|
e+="}"}return(r.b||Dr.nonEnumArgs)&&(e+="}"),e+=r.c+";return E",n("d,j,k,m,o,p,q,s,v,A,B,y,I,J,L",t+e+"}")(V,B,rr,gr,m,ct,Br,mt,W.f,er,$,Ir,L,ur,ar)}function ot(n){return zr[n]}function at(){var t=(t=h.indexOf)===Nt?n:t;return t}function it(n){return typeof n=="function"&&ir.test(n)}function ft(n){var t,r;return!n||ar.call(n)!=F||(t=n.constructor,ht(t)&&!(t instanceof t))||!Dr.argsClass&&ct(n)||!Dr.nodeClass&&f(n)?false:Dr.ownLast?(Mr(n,function(n,t,e){return r=gr.call(e,t),false}),false!==r):(Mr(n,function(n,t){r=t
|
||||||
}
|
}),typeof r=="undefined"||gr.call(n,r))}function lt(n){return qr[n]}function ct(n){return n&&typeof n=="object"&&typeof n.length=="number"&&ar.call(n)==A||false}function pt(n,t,r){var e=Rr(n),u=e.length;for(t=V(t,r,3);u--&&(r=e[u],false!==t(n[r],r,n)););return n}function st(n){var t=[];return Mr(n,function(n,r){ht(n)&&t.push(r)}),t.sort()}function gt(n){for(var t=-1,r=Rr(n),e=r.length,u={};++t<e;){var o=r[t];u[n[o]]=o}return u}function ht(n){return typeof n=="function"}function vt(n){return!(!n||!$[typeof n])
|
||||||
|
}function yt(n){return typeof n=="number"||n&&typeof n=="object"&&ar.call(n)==R||false}function mt(n){return typeof n=="string"||n&&typeof n=="object"&&ar.call(n)==L||false}function dt(n){for(var t=-1,r=Rr(n),e=r.length,u=Jt(e);++t<e;)u[t]=n[r[t]];return u}function bt(n,t,r){var e=-1,u=at(),o=n?n.length:0,a=false;return r=(0>r?kr(0,o+r):r)||0,Br(n)?a=-1<u(n,t,r):typeof o=="number"?a=-1<(mt(n)?n.indexOf(t,r):u(n,t,r)):$r(n,function(n){return++e<r?void 0:!(a=n===t)}),a}function _t(n,t,r){var e=true;if(t=h.createCallback(t,r,3),Br(n)){r=-1;
|
||||||
|
for(var u=n.length;++r<u&&(e=!!t(n[r],r,n)););}else $r(n,function(n,r,u){return e=!!t(n,r,u)});return e}function wt(n,t,r){var e=[];if(t=h.createCallback(t,r,3),Br(n)){r=-1;for(var u=n.length;++r<u;){var o=n[r];t(o,r,n)&&e.push(o)}}else $r(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function jt(n,t,r){if(t=h.createCallback(t,r,3),!Br(n)){var e;return $r(n,function(n,r,u){return t(n,r,u)?(e=n,false):void 0}),e}r=-1;for(var u=n.length;++r<u;){var o=n[r];if(t(o,r,n))return o}}function xt(n,t,r){if(t&&typeof r=="undefined"&&Br(n)){r=-1;
|
||||||
|
for(var e=n.length;++r<e&&false!==t(n[r],r,n););}else $r(n,t,r);return n}function Ct(n,t,r){var e=n,u=n?n.length:0;if(t=t&&typeof r=="undefined"?t:V(t,r,3),Br(n))for(;u--&&false!==t(n[u],u,n););else{if(typeof u!="number")var o=Rr(n),u=o.length;else Dr.unindexedChars&&mt(n)&&(e=n.split(""));$r(n,function(n,r,a){return r=o?o[--u]:--u,t(e[r],r,a)})}return n}function kt(n,t,r){var e=-1,u=n?n.length:0,o=Jt(typeof u=="number"?u:0);if(t=h.createCallback(t,r,3),Br(n))for(;++e<u;)o[e]=t(n[e],e,n);else $r(n,function(n,r,u){o[++e]=t(n,r,u)
|
||||||
|
});return o}function Et(n,t,r){var u=-1/0,o=u;if(typeof t!="function"&&r&&r[t]===n&&(t=null),null==t&&Br(n)){r=-1;for(var a=n.length;++r<a;){var i=n[r];i>o&&(o=i)}}else t=null==t&&mt(n)?e:h.createCallback(t,r,3),$r(n,function(n,r,e){r=t(n,r,e),r>u&&(u=r,o=n)});return o}function Ot(n,t,r,e){var u=3>arguments.length;if(t=h.createCallback(t,e,4),Br(n)){var o=-1,a=n.length;for(u&&(r=n[++o]);++o<a;)r=t(r,n[o],o,n)}else $r(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)});return r}function St(n,t,r,e){var u=3>arguments.length;
|
||||||
|
return t=h.createCallback(t,e,4),Ct(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)}),r}function At(n){var t=-1,r=n?n.length:0,e=Jt(typeof r=="number"?r:0);return xt(n,function(n){var r=nt(0,++t);e[t]=e[r],e[r]=n}),e}function It(n,t,r){var e;if(t=h.createCallback(t,r,3),Br(n)){r=-1;for(var u=n.length;++r<u&&!(e=t(n[r],r,n)););}else $r(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function Dt(n,t,r){var e=0,u=n?n.length:0;if(typeof t!="number"&&null!=t){var o=-1;for(t=h.createCallback(t,r,3);++o<u&&t(n[o],o,n);)e++
|
||||||
|
}else if(e=t,null==e||r)return n?n[0]:g;return p(n,0,Er(kr(0,e),u))}function Nt(t,r,e){if(typeof e=="number"){var u=t?t.length:0;e=0>e?kr(0,u+e):e||0}else if(e)return e=Pt(t,r),t[e]===r?e:-1;return n(t,r,e)}function Bt(n,t,r){if(typeof t!="number"&&null!=t){var e=0,u=-1,o=n?n.length:0;for(t=h.createCallback(t,r,3);++u<o&&t(n[u],u,n);)e++}else e=null==t||r?1:kr(0,t);return p(n,e)}function Pt(n,t,r,e){var u=0,o=n?n.length:u;for(r=r?h.createCallback(r,e,1):qt,t=r(t);u<o;)e=u+o>>>1,r(n[e])<t?u=e+1:o=e;
|
||||||
|
return u}function Rt(n,t,r,e){return typeof t!="boolean"&&null!=t&&(e=r,r=typeof t!="function"&&e&&e[t]===n?null:t,t=false),null!=r&&(r=h.createCallback(r,e,3)),tt(n,t,r)}function Ft(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?Et(Yr(n,"length")):0,e=Jt(0>r?0:r);++t<r;)e[t]=Yr(n,t);return e}function Tt(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||Br(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Lt(n,t){return 2<arguments.length?et(n,17,p(arguments,2),null,t):et(n,1,null,null,t)
|
||||||
|
}function zt(n,t,r){var e,u,o,a,i,f,l,c=0,p=false,s=true;if(!ht(n))throw new nr;if(t=kr(0,t)||0,true===r)var h=true,s=false;else vt(r)&&(h=r.leading,p="maxWait"in r&&(kr(t,r.maxWait)||0),s="trailing"in r?r.trailing:s);var v=function(){var r=t-(Zr()-a);0<r?f=yr(v,r):(u&&lr(u),r=l,u=f=l=g,r&&(c=Zr(),o=n.apply(i,e),f||u||(e=i=null)))},y=function(){f&&lr(f),u=f=l=g,(s||p!==t)&&(c=Zr(),o=n.apply(i,e),f||u||(e=i=null))};return function(){if(e=arguments,a=Zr(),i=this,l=s&&(f||!h),false===p)var r=h&&!f;else{u||h||(c=a);
|
||||||
|
var g=p-(a-c),m=0>=g;m?(u&&(u=lr(u)),c=a,o=n.apply(i,e)):u||(u=yr(y,g))}return m&&f?f=lr(f):f||t===p||(f=yr(v,t)),r&&(m=true,o=n.apply(i,e)),!m||f||u||(e=i=null),o}}function qt(n){return n}function Kt(n,t,r){var e=true,u=t&&st(t);t&&(r||u.length)||(null==r&&(r=t),o=v,t=n,n=h,u=st(t)),false===r?e=false:vt(r)&&"chain"in r&&(e=r.chain);var o=n,a=ht(o);xt(u,function(r){var u=n[r]=t[r];a&&(o.prototype[r]=function(){var t=this.__chain__,r=this.__wrapped__,a=[r];if(hr.apply(a,arguments),a=u.apply(n,a),e||t){if(r===a&&vt(a))return this;
|
||||||
|
a=new o(a),a.__chain__=t}return a})})}function Wt(){}function $t(n){return function(t){return t[n]}}function Gt(){return this.__wrapped__}r=r?U.defaults(G.Object(),r,U.pick(G,O)):G;var Jt=r.Array,Mt=r.Boolean,Vt=r.Date,Ht=r.Function,Ut=r.Math,Qt=r.Number,Xt=r.Object,Yt=r.RegExp,Zt=r.String,nr=r.TypeError,tr=[],rr=r.Error.prototype,er=Xt.prototype,ur=Zt.prototype,or=r._,ar=er.toString,ir=Yt("^"+Zt(ar).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),fr=Ut.ceil,lr=r.clearTimeout,cr=Ut.floor,pr=Ht.prototype.toString,sr=it(sr=Xt.getPrototypeOf)&&sr,gr=er.hasOwnProperty,hr=tr.push,vr=er.propertyIsEnumerable,yr=r.setTimeout,mr=tr.splice,dr=tr.unshift,br=function(){try{var n={},t=it(t=Xt.defineProperty)&&t,r=t(n,n,n)&&t
|
||||||
|
}catch(e){}return r}(),_r=it(_r=Xt.create)&&_r,wr=it(wr=Jt.isArray)&&wr,jr=r.isFinite,xr=r.isNaN,Cr=it(Cr=Xt.keys)&&Cr,kr=Ut.max,Er=Ut.min,Or=r.parseInt,Sr=Ut.random,Ar={};Ar[I]=Jt,Ar[D]=Mt,Ar[N]=Vt,Ar[P]=Ht,Ar[F]=Xt,Ar[R]=Qt,Ar[T]=Yt,Ar[L]=Zt;var Ir={};Ir[I]=Ir[N]=Ir[R]={constructor:true,toLocaleString:true,toString:true,valueOf:true},Ir[D]=Ir[L]={constructor:true,toString:true,valueOf:true},Ir[B]=Ir[P]=Ir[T]={constructor:true,toString:true},Ir[F]={constructor:true},function(){for(var n=S.length;n--;){var t,r=S[n];
|
||||||
|
for(t in Ir)gr.call(Ir,t)&&!gr.call(Ir[t],r)&&(Ir[t][r]=false)}}(),v.prototype=h.prototype;var Dr=h.support={};!function(){var n=function(){this.x=1},t={0:1,length:1},e=[];n.prototype={valueOf:1,y:1};for(var u in new n)e.push(u);for(u in arguments);Dr.argsClass=ar.call(arguments)==A,Dr.argsObject=arguments.constructor==Xt&&!(arguments instanceof Jt),Dr.enumErrorProps=vr.call(rr,"message")||vr.call(rr,"name"),Dr.enumPrototypes=vr.call(n,"prototype"),Dr.funcDecomp=!it(r.WinRTError)&&E.test(s),Dr.funcNames=typeof Ht.name=="string",Dr.nonEnumArgs=0!=u,Dr.nonEnumShadows=!/valueOf/.test(e),Dr.ownLast="x"!=e[0],Dr.spliceObjects=(tr.splice.call(t,0,1),!t[0]),Dr.unindexedChars="xx"!="x"[0]+Xt("x")[0];
|
||||||
|
try{Dr.nodeClass=!(ar.call(document)==F&&!({toString:0}+""))}catch(o){Dr.nodeClass=true}}(1),_r||(M=function(){function n(){}return function(t){if(vt(t)){n.prototype=t;var e=new n;n.prototype=null}return e||r.Object()}}());var Nr=br?function(n,t){K.value=t,br(n,"__bindData__",K)}:Wt;Dr.argsClass||(ct=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&gr.call(n,"callee")&&!vr.call(n,"callee")||false});var Br=wr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&ar.call(n)==I||false
|
||||||
|
},Pr=ut({a:"z",e:"[]",i:"if(!(B[typeof z]))return E",g:"E.push(n)"}),Rr=Cr?function(n){return vt(n)?Dr.enumPrototypes&&typeof n=="function"||Dr.nonEnumArgs&&n.length&&ct(n)?Pr(n):Cr(n):[]}:Pr,Fr={a:"g,e,K",i:"e=e&&typeof K=='undefined'?e:d(e,K,3)",b:"typeof u=='number'",v:Rr,g:"if(e(t[n],n,g)===false)return E"},Tr={a:"z,H,l",i:"var a=arguments,b=0,c=typeof l=='number'?2:a.length;while(++b<c){t=a[b];if(t&&B[typeof t]){",v:Rr,g:"if(typeof E[n]=='undefined')E[n]=t[n]",c:"}}"},Lr={i:"if(!B[typeof t])return E;"+Fr.i,b:false},zr={"&":"&","<":"<",">":">",'"':""","'":"'"},qr=gt(zr),Kr=Yt("("+Rr(qr).join("|")+")","g"),Wr=Yt("["+Rr(zr).join("")+"]","g"),$r=ut(Fr),Gr=ut(Tr,{i:Tr.i.replace(";",";if(c>3&&typeof a[c-2]=='function'){var e=d(a[--c-1],a[c--],2)}else if(c>2&&typeof a[c-1]=='function'){e=a[--c]}"),g:"E[n]=e?e(E[n],t[n]):t[n]"}),Jr=ut(Tr),Mr=ut(Fr,Lr,{j:false}),Vr=ut(Fr,Lr);
|
||||||
|
ht(/x/)&&(ht=function(n){return typeof n=="function"&&ar.call(n)==P});var Hr=sr?function(n){if(!n||ar.call(n)!=F||!Dr.argsClass&&ct(n))return false;var t=n.valueOf,r=it(t)&&(r=sr(t))&&sr(r);return r?n==r||sr(n)==r:ft(n)}:ft,Ur=rt(function(n,t,r){gr.call(n,r)?n[r]++:n[r]=1}),Qr=rt(function(n,t,r){(gr.call(n,r)?n[r]:n[r]=[]).push(t)}),Xr=rt(function(n,t,r){n[r]=t}),Yr=kt,Zr=it(Zr=Vt.now)&&Zr||function(){return(new Vt).getTime()},ne=8==Or(w+"08")?Or:function(n,t){return Or(mt(n)?n.replace(C,""):n,t||0)};
|
||||||
|
return h.after=function(n,t){if(!ht(t))throw new nr;return function(){return 1>--n?t.apply(this,arguments):void 0}},h.assign=Gr,h.at=function(n){var t=arguments,r=-1,e=X(t,true,false,1),t=t[2]&&t[2][t[1]]===n?1:e.length,u=Jt(t);for(Dr.unindexedChars&&mt(n)&&(n=n.split(""));++r<t;)u[r]=n[e[r]];return u},h.bind=Lt,h.bindAll=function(n){for(var t=1<arguments.length?X(arguments,true,false,1):st(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=et(n[u],1,null,null,n)}return n},h.bindKey=function(n,t){return 2<arguments.length?et(t,19,p(arguments,2),null,n):et(t,3,null,null,n)
|
||||||
|
},h.chain=function(n){return n=new v(n),n.__chain__=true,n},h.compact=function(n){for(var t=-1,r=n?n.length:0,e=[];++t<r;){var u=n[t];u&&e.push(u)}return e},h.compose=function(){for(var n=arguments,t=n.length;t--;)if(!ht(n[t]))throw new nr;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];return t[0]}},h.constant=function(n){return function(){return n}},h.countBy=Ur,h.create=function(n,t){var r=M(n);return t?Gr(r,t):r},h.createCallback=function(n,t,r){var e=typeof n;if(null==n||"function"==e)return V(n,t,r);
|
||||||
|
if("object"!=e)return $t(n);var u=Rr(n),o=u[0],a=n[o];return 1!=u.length||a!==a||vt(a)?function(t){for(var r=u.length,e=false;r--&&(e=Y(t[u[r]],n[u[r]],null,true)););return e}:function(n){return n=n[o],a===n&&(0!==a||1/a==1/n)}},h.curry=function(n,t){return t=typeof t=="number"?t:+t||n.length,et(n,4,null,null,null,t)},h.debounce=zt,h.defaults=Jr,h.defer=function(n){if(!ht(n))throw new nr;var t=p(arguments,1);return yr(function(){n.apply(g,t)},1)},h.delay=function(n,t){if(!ht(n))throw new nr;var r=p(arguments,2);
|
||||||
|
return yr(function(){n.apply(g,r)},t)},h.difference=function(n){return Q(n,X(arguments,true,true,1))},h.filter=wt,h.flatten=function(n,t,r,e){return typeof t!="boolean"&&null!=t&&(e=r,r=typeof t!="function"&&e&&e[t]===n?null:t,t=false),null!=r&&(n=kt(n,r,e)),X(n,t)},h.forEach=xt,h.forEachRight=Ct,h.forIn=Mr,h.forInRight=function(n,t,r){var e=[];Mr(n,function(n,t){e.push(t,n)});var u=e.length;for(t=V(t,r,3);u--&&false!==t(e[u--],e[u],n););return n},h.forOwn=Vr,h.forOwnRight=pt,h.functions=st,h.groupBy=Qr,h.indexBy=Xr,h.initial=function(n,t,r){var e=0,u=n?n.length:0;
|
||||||
|
if(typeof t!="number"&&null!=t){var o=u;for(t=h.createCallback(t,r,3);o--&&t(n[o],o,n);)e++}else e=null==t||r?1:t||e;return p(n,0,Er(kr(0,u-e),u))},h.intersection=function(){for(var r=[],e=-1,u=arguments.length,i=a(),f=at(),p=f===n,s=a();++e<u;){var g=arguments[e];(Br(g)||ct(g))&&(r.push(g),i.push(p&&g.length>=b&&o(e?r[e]:s)))}var p=r[0],h=-1,v=p?p.length:0,y=[];n:for(;++h<v;){var m=i[0],g=p[h];if(0>(m?t(m,g):f(s,g))){for(e=u,(m||s).push(g);--e;)if(m=i[e],0>(m?t(m,g):f(r[e],g)))continue n;y.push(g)
|
||||||
|
}}for(;u--;)(m=i[u])&&c(m);return l(i),l(s),y},h.invert=gt,h.invoke=function(n,t){var r=p(arguments,2),e=-1,u=typeof t=="function",o=n?n.length:0,a=Jt(typeof o=="number"?o:0);return xt(n,function(n){a[++e]=(u?t:n[t]).apply(n,r)}),a},h.keys=Rr,h.map=kt,h.mapValues=function(n,t,r){var e={};return t=h.createCallback(t,r,3),Vr(n,function(n,r,u){e[r]=t(n,r,u)}),e},h.max=Et,h.memoize=function(n,t){if(!ht(n))throw new nr;var r=function(){var e=r.cache,u=t?t.apply(this,arguments):d+arguments[0];return gr.call(e,u)?e[u]:e[u]=n.apply(this,arguments)
|
||||||
|
};return r.cache={},r},h.merge=function(n){var t=arguments,r=2;if(!vt(n))return n;if("number"!=typeof t[2]&&(r=t.length),3<r&&"function"==typeof t[r-2])var e=V(t[--r-1],t[r--],2);else 2<r&&"function"==typeof t[r-1]&&(e=t[--r]);for(var t=p(arguments,1,r),u=-1,o=a(),i=a();++u<r;)Z(n,t[u],e,o,i);return l(o),l(i),n},h.min=function(n,t,r){var u=1/0,o=u;if(typeof t!="function"&&r&&r[t]===n&&(t=null),null==t&&Br(n)){r=-1;for(var a=n.length;++r<a;){var i=n[r];i<o&&(o=i)}}else t=null==t&&mt(n)?e:h.createCallback(t,r,3),$r(n,function(n,r,e){r=t(n,r,e),r<u&&(u=r,o=n)
|
||||||
|
});return o},h.omit=function(n,t,r){var e={};if(typeof t!="function"){var u=[];Mr(n,function(n,t){u.push(t)});for(var u=Q(u,X(arguments,true,false,1)),o=-1,a=u.length;++o<a;){var i=u[o];e[i]=n[i]}}else t=h.createCallback(t,r,3),Mr(n,function(n,r,u){t(n,r,u)||(e[r]=n)});return e},h.once=function(n){var t,r;if(!ht(n))throw new nr;return function(){return t?r:(t=true,r=n.apply(this,arguments),n=null,r)}},h.pairs=function(n){for(var t=-1,r=Rr(n),e=r.length,u=Jt(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},h.partial=function(n){return et(n,16,p(arguments,1))
|
||||||
|
},h.partialRight=function(n){return et(n,32,null,p(arguments,1))},h.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=-1,o=X(arguments,true,false,1),a=vt(n)?o.length:0;++u<a;){var i=o[u];i in n&&(e[i]=n[i])}else t=h.createCallback(t,r,3),Mr(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e},h.pluck=Yr,h.property=$t,h.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&&(mr.call(n,o--,1),u--);return n},h.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=kr(0,fr((t-n)/(r||1)));for(var u=Jt(t);++e<t;)u[e]=n,n+=r;return u},h.reject=function(n,t,r){return t=h.createCallback(t,r,3),wt(n,function(n,r,e){return!t(n,r,e)})},h.remove=function(n,t,r){var e=-1,u=n?n.length:0,o=[];for(t=h.createCallback(t,r,3);++e<u;)r=n[e],t(r,e,n)&&(o.push(r),mr.call(n,e--,1),u--);return o},h.rest=Bt,h.shuffle=At,h.sortBy=function(n,t,r){var e=-1,o=Br(t),f=n?n.length:0,p=Jt(typeof f=="number"?f:0);for(o||(t=h.createCallback(t,r,3)),xt(n,function(n,r,u){var f=p[++e]=i();
|
||||||
|
o?f.m=kt(t,function(t){return n[t]}):(f.m=a())[0]=t(n,r,u),f.n=e,f.o=n}),f=p.length,p.sort(u);f--;)n=p[f],p[f]=n.o,o||l(n.m),c(n);return p},h.tap=function(n,t){return t(n),n},h.throttle=function(n,t,r){var e=true,u=true;if(!ht(n))throw new nr;return false===r?e=false:vt(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),q.leading=e,q.maxWait=t,q.trailing=u,zt(n,t,q)},h.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Jt(n);for(t=V(t,r,1);++e<n;)u[e]=t(e);return u},h.toArray=function(n){return n&&typeof n.length=="number"?Dr.unindexedChars&&mt(n)?n.split(""):p(n):dt(n)
|
||||||
|
},h.transform=function(n,t,r,e){var u=Br(n);if(null==r)if(u)r=[];else{var o=n&&n.constructor;r=M(o&&o.prototype)}return t&&(t=h.createCallback(t,e,4),(u?$r:Vr)(n,function(n,e,u){return t(r,n,e,u)})),r},h.union=function(){return tt(X(arguments,true,true))},h.uniq=Rt,h.values=dt,h.where=wt,h.without=function(n){return Q(n,p(arguments,1))},h.wrap=function(n,t){return et(t,16,[n])},h.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];if(Br(r)||ct(r))var e=e?tt(Q(e,r).concat(Q(r,e))):r
|
||||||
|
}return e||[]},h.zip=Ft,h.zipObject=Tt,h.collect=kt,h.drop=Bt,h.each=xt,h.eachRight=Ct,h.extend=Gr,h.methods=st,h.object=Tt,h.select=wt,h.tail=Bt,h.unique=Rt,h.unzip=Ft,Kt(h),h.clone=function(n,t,r,e){return typeof t!="boolean"&&null!=t&&(e=r,r=t,t=false),J(n,t,typeof r=="function"&&V(r,e,1))},h.cloneDeep=function(n,t,r){return J(n,true,typeof t=="function"&&V(t,r,1))},h.contains=bt,h.escape=function(n){return null==n?"":Zt(n).replace(Wr,ot)},h.every=_t,h.find=jt,h.findIndex=function(n,t,r){var e=-1,u=n?n.length:0;
|
||||||
|
for(t=h.createCallback(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1},h.findKey=function(n,t,r){var e;return t=h.createCallback(t,r,3),Vr(n,function(n,r,u){return t(n,r,u)?(e=r,false):void 0}),e},h.findLast=function(n,t,r){var e;return t=h.createCallback(t,r,3),Ct(n,function(n,r,u){return t(n,r,u)?(e=n,false):void 0}),e},h.findLastIndex=function(n,t,r){var e=n?n.length:0;for(t=h.createCallback(t,r,3);e--;)if(t(n[e],e,n))return e;return-1},h.findLastKey=function(n,t,r){var e;return t=h.createCallback(t,r,3),pt(n,function(n,r,u){return t(n,r,u)?(e=r,false):void 0
|
||||||
|
}),e},h.has=function(n,t){return n?gr.call(n,t):false},h.identity=qt,h.indexOf=Nt,h.isArguments=ct,h.isArray=Br,h.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&ar.call(n)==D||false},h.isDate=function(n){return n&&typeof n=="object"&&ar.call(n)==N||false},h.isElement=function(n){return n&&1===n.nodeType||false},h.isEmpty=function(n){var t=true;if(!n)return t;var r=ar.call(n),e=n.length;return r==I||r==L||(Dr.argsClass?r==A:ct(n))||r==F&&typeof e=="number"&&ht(n.splice)?!e:(Vr(n,function(){return t=false
|
||||||
|
}),t)},h.isEqual=function(n,t,r,e){return Y(n,t,typeof r=="function"&&V(r,e,2))},h.isFinite=function(n){return jr(n)&&!xr(parseFloat(n))},h.isFunction=ht,h.isNaN=function(n){return yt(n)&&n!=+n},h.isNull=function(n){return null===n},h.isNumber=yt,h.isObject=vt,h.isPlainObject=Hr,h.isRegExp=function(n){return n&&$[typeof n]&&ar.call(n)==T||false},h.isString=mt,h.isUndefined=function(n){return typeof n=="undefined"},h.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?kr(0,e+r):Er(r,e-1))+1);e--;)if(n[e]===t)return e;
|
||||||
|
return-1},h.mixin=Kt,h.noConflict=function(){return r._=or,this},h.noop=Wt,h.now=Zr,h.parseInt=ne,h.random=function(n,t,r){var e=null==n,u=null==t;return null==r&&(typeof n=="boolean"&&u?(r=n,n=1):u||typeof t!="boolean"||(r=t,u=true)),e&&u&&(t=1),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=Sr(),Er(n+r*(t-n+parseFloat("1e-"+((r+"").length-1))),t)):nt(n,t)},h.reduce=Ot,h.reduceRight=St,h.result=function(n,t){if(n){var r=n[t];return ht(r)?n[t]():r}},h.runInContext=s,h.size=function(n){var t=n?n.length:0;
|
||||||
|
return typeof t=="number"?t:Rr(n).length},h.some=It,h.sortedIndex=Pt,h.unescape=function(n){return null==n?"":Zt(n).replace(Kr,lt)},h.uniqueId=function(n){var t=++y;return Zt(null==n?"":n)+t},h.all=_t,h.any=It,h.detect=jt,h.findWhere=jt,h.foldl=Ot,h.foldr=St,h.include=bt,h.inject=Ot,Kt(function(){var n={};return Vr(h,function(t,r){h.prototype[r]||(n[r]=t)}),n}(),false),h.first=Dt,h.last=function(n,t,r){var e=0,u=n?n.length:0;if(typeof t!="number"&&null!=t){var o=u;for(t=h.createCallback(t,r,3);o--&&t(n[o],o,n);)e++
|
||||||
|
}else if(e=t,null==e||r)return n?n[u-1]:g;return p(n,kr(0,u-e))},h.sample=function(n,t,r){return n&&typeof n.length!="number"?n=dt(n):Dr.unindexedChars&&mt(n)&&(n=n.split("")),null==t||r?n?n[nt(0,n.length-1)]:g:(n=At(n),n.length=Er(kr(0,t),n.length),n)},h.take=Dt,h.head=Dt,Vr(h,function(n,t){var r="sample"!==t;h.prototype[t]||(h.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 v(o,u):o})}),h.VERSION="2.4.1",h.prototype.chain=function(){return this.__chain__=true,this
|
||||||
|
},h.prototype.toString=function(){return Zt(this.__wrapped__)},h.prototype.value=Gt,h.prototype.valueOf=Gt,$r(["join","pop","shift"],function(n){var t=tr[n];h.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);return n?new v(r,n):r}}),$r(["push","reverse","sort","unshift"],function(n){var t=tr[n];h.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),$r(["concat","slice","splice"],function(n){var t=tr[n];h.prototype[n]=function(){return new v(t.apply(this.__wrapped__,arguments),this.__chain__)
|
||||||
|
}}),Dr.spliceObjects||$r(["pop","shift","splice"],function(n){var t=tr[n],r="splice"==n;h.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 v(u,n):u}}),h}var g,h=[],v=[],y=0,m={},d=+new Date+"",b=75,_=40,w=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",j=/\w*$/,x=/^\s*function[ \n\r\t]+\w/,C=RegExp("^["+w+"]*0+(?=.$)"),E=/\bthis\b/,O="Array Boolean Date Error Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setTimeout".split(" "),S="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),A="[object Arguments]",I="[object Array]",D="[object Boolean]",N="[object Date]",B="[object Error]",P="[object Function]",R="[object Number]",F="[object Object]",T="[object RegExp]",L="[object String]",z={};
|
||||||
|
z[P]=false,z[A]=z[I]=z[D]=z[N]=z[R]=z[F]=z[T]=z[L]=true;var q={leading:false,maxWait:0,trailing:false},K={configurable:false,enumerable:false,value:null,writable:false},W={a:"",b:null,c:"",d:"",e:"",v:null,g:"",h:null,support:null,i:"",j:false},$={"boolean":false,"function":true,object:true,number:false,string:false,undefined:false},G=$[typeof window]&&window||this,J=$[typeof exports]&&exports&&!exports.nodeType&&exports,M=$[typeof module]&&module&&!module.nodeType&&module,V=M&&M.exports===J&&J,H=$[typeof global]&&global;!H||H.global!==H&&H.window!==H||(G=H);
|
||||||
|
var U=s();J&&M&&V&&((M.exports=U)._=U)}).call(this);
|
|
@ -43,7 +43,6 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async": "0.9.0",
|
"async": "0.9.0"
|
||||||
"lodash": "2.4.1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue