From adbebf7eccb2afcb2a09a1430897ebe84f253e13 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 26 Jan 2014 13:37:31 -0800 Subject: [PATCH] Avoid detecting the `global` function in Java based environments like Rhino as the `freeGlobal`. --- dist/lodash.compat.js | 2 +- dist/lodash.compat.min.js | 4 +-- dist/lodash.js | 2 +- dist/lodash.min.js | 40 ++++++++++++++--------------- dist/lodash.underscore.js | 2 +- dist/lodash.underscore.min.js | 2 +- vendor/benchmark.js/benchmark.js | 2 +- vendor/qunit-extras/qunit-extras.js | 2 +- 8 files changed, 28 insertions(+), 28 deletions(-) diff --git a/dist/lodash.compat.js b/dist/lodash.compat.js index 8e6fb1977..e955db4b9 100644 --- a/dist/lodash.compat.js +++ b/dist/lodash.compat.js @@ -192,7 +192,7 @@ var freeModule = objectTypes[typeof module] && module && !module.nodeType && module; /** Detect free variable `global` from Node.js or Browserified code and use it as `root` */ - var freeGlobal = freeExports && freeModule && objectTypes[typeof global] && global; + var freeGlobal = freeExports && freeModule && typeof global == 'object' && global; if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal)) { root = freeGlobal; } diff --git a/dist/lodash.compat.min.js b/dist/lodash.compat.min.js index 09b45ae08..bf6956091 100644 --- a/dist/lodash.compat.min.js +++ b/dist/lodash.compat.min.js @@ -63,5 +63,5 @@ n.replace(l,function(t,r,e,u,a,l){return e||(e=u),c+=n.slice(i,l).replace(X,f),r for(t=u.createCallback(t,r,3);a--&&t(n[a],a,n);)e++}else if(e=t,null==e||r)return n?n[o-1]:w;return e=o-e,Tt(n,0"']/g,L=/<%-([\s\S]+?)%>/g,B=/<%([\s\S]+?)%>/g,D=/<%=([\s\S]+?)%>/g,W=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,z=/\w*$/,K=/^\s*function[ \n\r\t]+\w/,M=/^0[xX]/,U=/($^)/,V=/\bthis\b/,X=/['\n\r\t\u2028\u2029\\]/g,G=" \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",H=[],J=[],Q="Array Boolean Date Error Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),Y="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Z="[object Arguments]",nt="[object Array]",tt="[object Boolean]",rt="[object Date]",et="[object Error]",ut="[object Function]",ot="[object Number]",at="[object Object]",it="[object RegExp]",lt="[object String]",ft={}; -ft[ut]=false,ft[Z]=ft[nt]=ft[tt]=ft[rt]=ft[ot]=ft[at]=ft[it]=ft[lt]=true;var ct={leading:false,maxWait:0,trailing:false},pt={configurable:false,enumerable:false,value:null,writable:false},st={"&":"&","<":"<",">":">",'"':""","'":"'"},gt={"&":"&","<":"<",">":">",""":'"',"'":"'"},ht={"function":true,object:true},vt={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},yt=ht[typeof window]&&window||this,mt=ht[typeof exports]&&exports&&!exports.nodeType&&exports,dt=ht[typeof module]&&module&&!module.nodeType&&module,ht=mt&&dt&&ht[typeof global]&&global; -!ht||ht.global!==ht&&ht.window!==ht&&ht.self!==ht||(yt=ht);var ht=dt&&dt.exports===mt&&mt,bt=_();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(yt._=bt, define(function(){return bt})):mt&&dt?ht?(dt.exports=bt)._=bt:mt._=bt:yt._=bt}).call(this); \ No newline at end of file +ft[ut]=false,ft[Z]=ft[nt]=ft[tt]=ft[rt]=ft[ot]=ft[at]=ft[it]=ft[lt]=true;var ct={leading:false,maxWait:0,trailing:false},pt={configurable:false,enumerable:false,value:null,writable:false},st={"&":"&","<":"<",">":">",'"':""","'":"'"},gt={"&":"&","<":"<",">":">",""":'"',"'":"'"},ht={"function":true,object:true},vt={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},yt=ht[typeof window]&&window||this,mt=ht[typeof exports]&&exports&&!exports.nodeType&&exports,ht=ht[typeof module]&&module&&!module.nodeType&&module,dt=mt&&ht&&typeof global=="object"&&global; +!dt||dt.global!==dt&&dt.window!==dt&&dt.self!==dt||(yt=dt);var dt=ht&&ht.exports===mt&&mt,bt=_();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(yt._=bt, define(function(){return bt})):mt&&ht?dt?(ht.exports=bt)._=bt:mt._=bt:yt._=bt}).call(this); \ No newline at end of file diff --git a/dist/lodash.js b/dist/lodash.js index 5ee4ecd14..749c9c67d 100644 --- a/dist/lodash.js +++ b/dist/lodash.js @@ -185,7 +185,7 @@ var freeModule = objectTypes[typeof module] && module && !module.nodeType && module; /** Detect free variable `global` from Node.js or Browserified code and use it as `root` */ - var freeGlobal = freeExports && freeModule && objectTypes[typeof global] && global; + var freeGlobal = freeExports && freeModule && typeof global == 'object' && global; if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal)) { root = freeGlobal; } diff --git a/dist/lodash.min.js b/dist/lodash.min.js index 7cac9c18c..9934ccd4d 100644 --- a/dist/lodash.min.js +++ b/dist/lodash.min.js @@ -13,13 +13,13 @@ if(a)return a}return t.g-r.g}function f(n){return lt[n]}function l(n){return"\\" for(var r in n)$r.call(n,r)&&t.push(r);return t}function o(n,t){if(!er(n))return n;for(var r in n)if(false===t(n[r],r,n))break;return n}function y(n){return n&&typeof n=="object"&&!pe(n)&&$r.call(n,"__wrapped__")?n:new m(n)}function m(n,t){this.__chain__=!!t,this.__wrapped__=n}function S(n){function t(){if(u){var n=Rt(u);Br.apply(n,arguments)}if(this instanceof t){var o=lt(r.prototype),n=r.apply(o,n||arguments);return er(n)?n:o}return r.apply(e,n||arguments)}var r=n[0],e=n[3],u=n[4];return ie(t,n),t }function G(n,t,r,e,u){if(r){var o=r(n);if(typeof o!="undefined")return o}if(!er(n))return n;var i=Sr.call(n);if(!it[i])return n;var a=re[i];switch(i){case Z:case nt:return new a(+n);case rt:case ot:return new a(n);case ut:return o=a(n.source,L.exec(n)),o.lastIndex=n.lastIndex,o}if(i=pe(n),t){var f=!e;e||(e=c()),u||(u=c());for(var l=e.length;l--;)if(e[l]==n)return u[l];o=i?a(n.length):{}}else o=i?Rt(n):Qt({},n);return i&&($r.call(n,"index")&&(o.index=n.index),$r.call(n,"input")&&(o.input=n.input)),t?(e.push(n),u.push(o),(i?ht:mt)(n,function(n,i){o[i]=G(n,t,r,e,u) }),f&&(p(e),p(u)),o):o}function lt(n){return er(n)?Kr(n):{}}function ct(n,t,r){if(typeof n!="function")return fr;if(typeof t=="undefined"||!("prototype"in n))return n;var e=n[N];if(typeof e=="undefined"&&(ee.funcNames&&(e=!n.name),e=e||!ee.funcDecomp,!e)){var u=Tr.call(n);ee.funcNames||(e=!P.test(u)),e||(e=U.test(u),ie(n,e))}if(false===e||true!==e&&e[1]&w)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 pt(n){function t(){var n=f?o:this;if(i){var g=Rt(i);Br.apply(g,arguments)}if(a||c){g||(g=Rt(arguments)),a&&Br.apply(g,a);var h=arguments.length;if(c&&h=A&&(o=r,e=oe(e));++uo(e,f)&&a.push(f)}return a}function ht(n,t){var r=-1,e=n?n.length:0;if(typeof e=="number")for(;++r=A,l=[];if(f)var s=oe(),i=r;else s=u?c():l;for(;++oi(s,h))&&((u||f)&&s.push(h),l.push(g))}return!f&&u&&p(s),l}function kt(n){return function(t,r,e){var u={};r=y.createCallback(r,e,3),e=-1;var o=t?t.length:0;if(typeof o=="number")for(;++er&&(r=0),e=[n,t,r,e,u,o],t==w||t==(w|C)?S(e):pt(e))}function xt(){var n=(n=y.indexOf)===Et?t:n; +n[o]=l})}function _t(n,t){return n+Ir(Yr()*(t-n+1))}function wt(n,e,u){var o=-1,i=xt(),a=n?n.length:0,f=oe&&!e&&i===t&&a>=A,l=[];if(f)var s=oe(),i=r;else s=u?c():l;for(;++oi(s,h))&&((u||f)&&s.push(h),l.push(g))}return!f&&u&&p(s),l}function jt(n){return function(t,r,e){var u={};r=y.createCallback(r,e,3),e=-1;var o=t?t.length:0;if(typeof o=="number")for(;++er&&(r=0),e=[n,t,r,e,u,o],t==w||t==(w|C)?S(e):pt(e))}function xt(){var n=(n=y.indexOf)===Et?t:n; return n}function Ct(n){return typeof n=="function"&&Er.test(Tr.call(n))}function Ot(n){var t,r;return n&&Sr.call(n)==et&&($r.call(n,"constructor")||(t=n.constructor,!rr(t)||t instanceof t))?(o(n,function(n,t){r=t}),typeof r=="undefined"||$r.call(n,r)):false}function At(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Sr.call(n)==Q||false}function St(n,t,r){var e=0,u=n?n.length:0;if(typeof t!="number"&&null!=t){var o=-1;for(t=y.createCallback(t,r,3);++oe?Gr(0,u+e):e||0;else if(e)return e=It(n,r),u&&n[e]===r?e:-1;return t(n,r,e)}function Nt(n,t,r){if(typeof t!="number"&&null!=t){var e=0,u=-1,o=n?n.length:0;for(t=y.createCallback(t,r,3);++ut?t=Gr(u+t,0):t>u&&(t=u),typeof r=="undefined"?r=u:0>r?r=Gr(u+r,0):r>u&&(r=u),u=r-t||0,r=gr(u);++e>>1,r(n[e])r?0:r);++to&&(o=a)}else t=null==t&&or(n)?e:y.createCallback(t,r,3),ht(n,function(n,r,e){r=t(n,r,e),r>u&&(u=r,o=n)});return o}function Ut(n,t,r,e){var u=3>arguments.length;t=y.createCallback(t,e,4);var o=-1,i=n?n.length:0;if(typeof i=="number")for(u&&i&&(r=n[++o]);++oarguments.length;return t=y.createCallback(t,e,4),Pt(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)}),r}function Xt(n){var t=-1,r=n?n.length:0,e=gr(typeof r=="number"?r:0); -return ht(n,function(n){var r=_t(0,++t);e[t]=e[r],e[r]=n}),e}function Gt(n,t,r){var e;t=y.createCallback(t,r,3),r=-1;var u=n?n.length:0;if(typeof u=="number")for(;++rarguments.length)return jt(n,w,null,t);var r=n&&(n[N]?n[N][2]:n.length),e=Rt(arguments,2),r=r-e.length;return jt(n,w|C,r,t,e)}function Jt(n,t,r){function e(){c&&Rr(c),i=c=p=_,(h||g!==t)&&(s=me(),a=n.apply(l,o),c||i||(o=l=null))}function u(){var r=t-(me()-f); -0=y;m?(i&&(i=Rr(i)),s=f,a=n.apply(l,o)):i||(i=qr(e,y))}return m&&c?c=Rr(c):c||t===g||(c=qr(u,t)),r&&(m=true,a=n.apply(l,o)),!m||c||i||(o=l=null),a +return ht(n,function(n){var r=_t(0,++t);e[t]=e[r],e[r]=n}),e}function Gt(n,t,r){var e;t=y.createCallback(t,r,3),r=-1;var u=n?n.length:0;if(typeof u=="number")for(;++rarguments.length)return kt(n,w,null,t);var r=n&&(n[N]?n[N][2]:n.length),e=Rt(arguments,2),r=r-e.length;return kt(n,w|C,r,t,e)}function Jt(n,t,r){function e(){c&&Rr(c),i=c=p=_,(h||g!==t)&&(s=me(),a=n.apply(l,o),c||i||(o=l=null))}function u(){var r=t-(me()-f); +0=y;m?(i&&(i=Rr(i)),s=f,a=n.apply(l,o)):i||(i=qr(e,y))}return m&&c?c=Rr(c):c||t===g||(c=qr(u,t)),r&&(m=true,a=n.apply(l,o)),!m||c||i||(o=l=null),a }}function Qt(n,t,r){var e=arguments,u=0,o=e.length,i=typeof r;if("number"!=i&&"string"!=i||!e[3]||e[3][r]!==t||(o=2),3--n?t.apply(this,arguments):void 0}},y.assign=Qt,y.at=function(n,t){var r=arguments,e=-1,u=vt(r,true,false,1),o=u.length,i=typeof t;for("number"!=i&&"string"!=i||!r[2]||r[2][t]!==n||(o=1),r=gr(o);++earguments.length?jt(t,w|k,null,n):jt(t,w|k|C,null,n,Rt(arguments,2))},y.chain=function(n){return n=new m(n),n.__chain__=true,n},y.compact=function(n){for(var t=-1,r=n?n.length:0,e=0,u=[];++t--n?t.apply(this,arguments):void 0}},y.assign=Qt,y.at=function(n,t){var r=arguments,e=-1,u=vt(r,true,false,1),o=u.length,i=typeof t;for("number"!=i&&"string"!=i||!r[2]||r[2][t]!==n||(o=1),r=gr(o);++earguments.length?kt(t,w|j,null,n):kt(t,w|j|C,null,n,Rt(arguments,2))},y.chain=function(n){return n=new m(n),n.__chain__=true,n},y.compact=function(n){for(var t=-1,r=n?n.length:0,e=0,u=[];++t=A&&oe(e?n[e]:f)))}var a=n[0],s=-1,g=a?a.length:0,h=[];n:for(;++s(v?r(v,l):i(f,l))){for(e=u,(v||f).push(l);--e;)if(v=o[e],0>(v?r(v,l):i(n[e],l)))continue n;h.push(l) }}return p(o),p(f),h},y.invert=function(n,t){for(var r=-1,e=ge(n),u=e.length,o={};++rn.indexOf(";")?n:n.replace($,d))},y.uniqueId=function(n){var t=++R;return wr(null==n?"":n)+t},y.all=qt,y.any=Gt,y.detect=zt,y.findWhere=zt,y.foldl=Ut,y.foldr=Vt,y.include=Dt,y.inject=Ut,cr(function(){var n={};return mt(y,function(t,r){y.prototype[r]||(n[r]=t)}),n}(),false),y.first=St,y.last=function(n,t,r){var e=0,u=n?n.length:0;if(typeof t!="number"&&null!=t){var o=u; for(t=y.createCallback(t,r,3);o--&&t(n[o],o,n);)e++}else if(e=t,null==e||r)return n?n[u-1]:_;return e=u-e,Rt(n,0"']/g,D=/<%-([\s\S]+?)%>/g,q=/<%([\s\S]+?)%>/g,W=/<%=([\s\S]+?)%>/g,z=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,L=/\w*$/,P=/^\s*function[ \n\r\t]+\w/,K=/^0[xX]/,M=/($^)/,U=/\bthis\b/,V=/['\n\r\t\u2028\u2029\\]/g,X=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",G=[],H=[],J="Array Boolean Date Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),Q="[object Arguments]",Y="[object Array]",Z="[object Boolean]",nt="[object Date]",tt="[object Function]",rt="[object Number]",et="[object Object]",ut="[object RegExp]",ot="[object String]",it={}; -it[tt]=false,it[Q]=it[Y]=it[Z]=it[nt]=it[rt]=it[et]=it[ut]=it[ot]=true;var at={leading:false,maxWait:0,trailing:false},ft={configurable:false,enumerable:false,value:null,writable:false},lt={"&":"&","<":"<",">":">",'"':""","'":"'"},ct={"&":"&","<":"<",">":">",""":'"',"'":"'"},pt={"function":true,object:true},st={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},gt=pt[typeof window]&&window||this,ht=pt[typeof exports]&&exports&&!exports.nodeType&&exports,vt=pt[typeof module]&&module&&!module.nodeType&&module,pt=ht&&vt&&pt[typeof global]&&global; -!pt||pt.global!==pt&&pt.window!==pt&&pt.self!==pt||(gt=pt);var pt=vt&&vt.exports===ht&&ht,yt=b();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(gt._=yt, define(function(){return yt})):ht&&vt?pt?(vt.exports=yt)._=yt:ht._=yt:gt._=yt}).call(this); \ No newline at end of file +},y.prototype.toString=function(){return wr(this.__wrapped__)},y.prototype.value=Bt,y.prototype.valueOf=Bt,ht(["join","pop","shift"],function(n){var t=kr[n];y.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);return n?new m(r,n):r}}),ht(["push","reverse","sort","unshift"],function(n){var t=kr[n];y.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),ht(["concat","splice"],function(n){var t=kr[n];y.prototype[n]=function(){return new m(t.apply(this.__wrapped__,arguments),this.__chain__) +}}),y}var _,w=1,j=2,k=4,x=8,C=16,O=32,A=75,S=40,E="2.4.1",N="__lodash@"+E+"__",R=0,I=/\b__p\+='';/g,T=/\b(__p\+=)''\+/g,F=/(__e\(.*?\)|\b__t\))\+'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,B=/[&<>"']/g,D=/<%-([\s\S]+?)%>/g,q=/<%([\s\S]+?)%>/g,W=/<%=([\s\S]+?)%>/g,z=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,L=/\w*$/,P=/^\s*function[ \n\r\t]+\w/,K=/^0[xX]/,M=/($^)/,U=/\bthis\b/,V=/['\n\r\t\u2028\u2029\\]/g,X=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",G=[],H=[],J="Array Boolean Date Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),Q="[object Arguments]",Y="[object Array]",Z="[object Boolean]",nt="[object Date]",tt="[object Function]",rt="[object Number]",et="[object Object]",ut="[object RegExp]",ot="[object String]",it={}; +it[tt]=false,it[Q]=it[Y]=it[Z]=it[nt]=it[rt]=it[et]=it[ut]=it[ot]=true;var at={leading:false,maxWait:0,trailing:false},ft={configurable:false,enumerable:false,value:null,writable:false},lt={"&":"&","<":"<",">":">",'"':""","'":"'"},ct={"&":"&","<":"<",">":">",""":'"',"'":"'"},pt={"function":true,object:true},st={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},gt=pt[typeof window]&&window||this,ht=pt[typeof exports]&&exports&&!exports.nodeType&&exports,pt=pt[typeof module]&&module&&!module.nodeType&&module,vt=ht&&pt&&typeof global=="object"&&global; +!vt||vt.global!==vt&&vt.window!==vt&&vt.self!==vt||(gt=vt);var vt=pt&&pt.exports===ht&&ht,yt=b();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(gt._=yt, define(function(){return yt})):ht&&pt?vt?(pt.exports=yt)._=yt:ht._=yt:gt._=yt}).call(this); \ No newline at end of file diff --git a/dist/lodash.underscore.js b/dist/lodash.underscore.js index 12eca1893..e3802019f 100644 --- a/dist/lodash.underscore.js +++ b/dist/lodash.underscore.js @@ -110,7 +110,7 @@ var freeModule = objectTypes[typeof module] && module && !module.nodeType && module; /** Detect free variable `global` from Node.js or Browserified code and use it as `root` */ - var freeGlobal = freeExports && freeModule && objectTypes[typeof global] && global; + var freeGlobal = freeExports && freeModule && typeof global == 'object' && global; if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal)) { root = freeGlobal; } diff --git a/dist/lodash.underscore.min.js b/dist/lodash.underscore.min.js index ae625e869..7bb528955 100644 --- a/dist/lodash.underscore.min.js +++ b/dist/lodash.underscore.min.js @@ -20,7 +20,7 @@ r=Z(r,e,4);var o=-1,i=n?n.length:0;if(typeof i=="number")for(u&&i&&(t=n[++o]);++ if(r=Yr(0,r)||0,true===t)var v=true,h=false;else L(t)&&(v=t.leading,g="maxWait"in t&&(Yr(r,t.maxWait)||0),h="trailing"in t?t.trailing:h);return function(){if(o=arguments,a=lt(),l=this,p=h&&(c||!v),false===g)var t=v&&!c;else{i||v||(s=a);var y=g-(a-s),m=0>=y;m?(i&&(i=clearTimeout(i)),s=a,f=n.apply(l,o)):i||(i=setTimeout(e,y))}return m&&c?c=clearTimeout(c):c||r===g||(c=setTimeout(u,r)),t&&(m=true,f=n.apply(l,o)),!m||c||i||(o=l=null),f}}function V(n,r,t){if(!n)return n;var e=arguments,u=0,o=e.length,i=typeof t;for("number"!=i&&"string"!=i||!e[3]||e[3][t]!==r||(o=2);++u"']/g,yr=/($^)/,mr=/['\n\r\t\u2028\u2029\\]/g,_r="[object Arguments]",br="[object Array]",dr="[object Boolean]",wr="[object Date]",jr="[object Number]",xr="[object Object]",Tr="[object RegExp]",Ar="[object String]",Er={"&":"&","<":"<",">":">",'"':""","'":"'"},Or={"&":"&","<":"<",">":">",""":'"',"'":"'"},Sr={"function":true,object:true},kr={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},Nr=Sr[typeof window]&&window||this,qr=Sr[typeof exports]&&exports&&!exports.nodeType&&exports,Fr=Sr[typeof module]&&module&&!module.nodeType&&module,Br=qr&&Fr&&Sr[typeof global]&&global; +f.prototype[u]=function(){var r=f[u]=n[u];return function(){var n=[this.__wrapped__];return Vr.apply(n,arguments),n=r.apply(f,n),this.__chain__?new a(n,true):n}}()}}function er(n){return function(r){return r[n]}}var ur,or=1,ir=2,fr=4,ar=8,lr=16,cr=32,pr="__lodash@2.4.1__",sr=pr+"breaker__",gr=0,hr=/&(?:amp|lt|gt|quot|#x27);/g,vr=/[&<>"']/g,yr=/($^)/,mr=/['\n\r\t\u2028\u2029\\]/g,_r="[object Arguments]",br="[object Array]",dr="[object Boolean]",wr="[object Date]",jr="[object Number]",xr="[object Object]",Tr="[object RegExp]",Ar="[object String]",Er={"&":"&","<":"<",">":">",'"':""","'":"'"},Or={"&":"&","<":"<",">":">",""":'"',"'":"'"},Sr={"function":true,object:true},kr={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},Nr=Sr[typeof window]&&window||this,qr=Sr[typeof exports]&&exports&&!exports.nodeType&&exports,Fr=Sr[typeof module]&&module&&!module.nodeType&&module,Br=qr&&Fr&&typeof global=="object"&&global; !Br||Br.global!==Br&&Br.window!==Br&&Br.self!==Br||(Nr=Br);var Rr=Fr&&Fr.exports===qr&&qr,$r=Array.prototype,Ir=Object.prototype,Mr=Nr._,Dr=Ir.toString,Wr=RegExp("^"+(Dr+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zr=Math.ceil,Cr=Math.floor,Pr=Function.prototype.toString,Ur=Ir.hasOwnProperty,Vr=$r.push,Gr=Ir.propertyIsEnumerable,Hr=$r.splice,Jr=w(Jr=Object.create)&&Jr,Kr=w(Kr=Array.isArray)&&Kr,Lr=Nr.isFinite,Qr=Nr.isNaN,Xr=w(Xr=Object.keys)&&Xr,Yr=Math.max,Zr=Math.min,nt=w(nt=Date.now)&&nt,rt=Math.random; a.prototype=f.prototype;var tt={};!function(){var n={0:1,length:1};tt.spliceObjects=(Hr.call(n,0,1),!n[0])}(1),f.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},Jr||(c=function(){function n(){}return function(r){if(L(r)){n.prototype=r;var t=new n;n.prototype=null}return t||Nr.Object()}}()),j(arguments)||(j=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ur.call(n,"callee")&&!Gr.call(n,"callee")||false});var et=_(function(n,r,t){Ur.call(n,t)?n[t]++:n[t]=1 }),ut=_(function(n,r,t){Ur.call(n,t)?n[t].push(r):n[t]=[r]}),ot=_(function(n,r,t){n[t]=r}),it=$,ft=Kr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Dr.call(n)==br||false};K(/x/)&&(K=function(n){return typeof n=="function"&&"[object Function]"==Dr.call(n)});var at=Xr?function(n){return L(n)?Xr(n):[]}:n,lt=nt||function(){return(new Date).getTime()};f.after=function(n,r){if(!K(r))throw new TypeError;return function(){return 1>--n?r.apply(this,arguments):void 0}},f.bind=P,f.bindAll=function(n){for(var r=1