added missing modules for makepot task + added suport for plural forms in html templates + added all major i18n methods in twig

This commit is contained in:
Jonathan Labreuille
2015-07-29 19:15:21 +02:00
parent acc3854ba9
commit ec20abb1ee
868 changed files with 178636 additions and 71 deletions

View File

@@ -0,0 +1,140 @@
# Lo-Dash v0.9.2
A utility library delivering consistency, [customization](http://lodash.com/custom-builds), [performance](http://lodash.com/benchmarks), & [extras](http://lodash.com/#features).
## Download
* [Development build](https://raw.github.com/lodash/lodash/0.9.2/lodash.js)
* [Production build](https://raw.github.com/lodash/lodash/0.9.2/lodash.min.js)
* [Underscore build](https://raw.github.com/lodash/lodash/0.9.2/lodash.underscore.min.js) tailored for projects already using Underscore
* CDN copies of ≤ v0.9.2s [Production](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/0.9.2/lodash.min.js), [Underscore](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/0.9.2/lodash.underscore.min.js), and [Development](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/0.9.2/lodash.js) builds are available on [cdnjs](http://cdnjs.com/) thanks to [CloudFlare](http://www.cloudflare.com/)
* For optimal file size, [create a custom build](http://lodash.com/custom-builds) with only the features you need
## Dive in
Weve got [API docs](http://lodash.com/docs), [benchmarks](http://lodash.com/benchmarks), and [unit tests](http://lodash.com/tests).
Create your own benchmarks at [jsPerf](http://jsperf.com), or [search](http://jsperf.com/search?q=lodash) for existing ones.
For a list of upcoming features, check out our [roadmap](https://github.com/lodash/lodash/wiki/Roadmap).
## Screencasts
For more information check out these screencasts over Lo-Dash:
* [Introducing Lo-Dash](https://vimeo.com/44154599)
* [Lo-Dash optimizations and custom builds](https://vimeo.com/44154601)
* [Lo-Dashs origin and why its a better utility belt](https://vimeo.com/44154600)
* [Unit testing in Lo-Dash](https://vimeo.com/45865290)
* [Lo-Dashs approach to native method use](https://vimeo.com/48576012)
## Features
* AMD loader support ([RequireJS](http://requirejs.org/), [curl.js](https://github.com/cujojs/curl), etc.)
* [_.clone](http://lodash.com/docs#clone) supports *“deep”* cloning
* [_.contains](http://lodash.com/docs#contains) accepts a `fromIndex` argument
* [_.forEach](http://lodash.com/docs#forEach) is chainable and supports exiting iteration early
* [_.forIn](http://lodash.com/docs#forIn) for iterating over an objects own and inherited properties
* [_.forOwn](http://lodash.com/docs#forOwn) for iterating over an objects own properties
* [_.isPlainObject](http://lodash.com/docs#isPlainObject) checks if values are created by the `Object` constructor
* [_.lateBind](http://lodash.com/docs#lateBind) for late binding
* [_.merge](http://lodash.com/docs#merge) for a *“deep”* [_.extend](http://lodash.com/docs#extend)
* [_.partial](http://lodash.com/docs#partial) for partial application without `this` binding
* [_.pick](http://lodash.com/docs#pick) and [_.omit](http://lodash.com/docs#omit) accepts `callback` and `thisArg` arguments
* [_.template](http://lodash.com/docs#template) supports [ES6 delimiters](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6) and utilizes [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl) for easier debugging
* [_.contains](http://lodash.com/docs#contains), [_.size](http://lodash.com/docs#size), [_.toArray](http://lodash.com/docs#toArray),
[and more…](http://lodash.com/docs "_.countBy, _.every, _.filter, _.find, _.forEach, _.groupBy, _.invoke, _.map, _.max, _.min, _.pluck, _.reduce, _.reduceRight, _.reject, _.shuffle, _.some, _.sortBy, _.where") accept strings
## Support
Lo-Dash has been tested in at least Chrome 5~23, Firefox 1~16, IE 6-10, Opera 9.25-12, Safari 3-6, Node.js 0.4.8-0.8.14, Narwhal 0.3.2, RingoJS 0.8, and Rhino 1.7RC5.
## Installation and usage
In browsers:
```html
<script src="lodash.js"></script>
```
Using [npm](http://npmjs.org/):
```bash
npm install lodash
npm install -g lodash
npm link lodash
```
In [Node.js](http://nodejs.org/) and [RingoJS v0.8.0+](http://ringojs.org/):
```js
var _ = require('lodash');
```
**Note:** If Lo-Dash is installed globally, [run `npm link lodash`](http://blog.nodejs.org/2011/03/23/npm-1-0-global-vs-local-installation/) in your projects root directory before requiring it.
In [RingoJS v0.7.0-](http://ringojs.org/):
```js
var _ = require('lodash')._;
```
In [Rhino](http://www.mozilla.org/rhino/):
```js
load('lodash.js');
```
In an AMD loader like [RequireJS](http://requirejs.org/):
```js
require({
'paths': {
'underscore': 'path/to/lodash'
}
},
['underscore'], function(_) {
console.log(_.VERSION);
});
```
## Resolved Underscore.js issues
* Allow iteration of objects with a `length` property [[#799](https://github.com/documentcloud/underscore/pull/799), [test](https://github.com/lodash/lodash/blob/0.9.2/test/test.js#L545-551)]
* Fix cross-browser object iteration bugs [[#60](https://github.com/documentcloud/underscore/issues/60), [#376](https://github.com/documentcloud/underscore/issues/376), [test](https://github.com/lodash/lodash/blob/0.9.2/test/test.js#L558-582)]
* Methods should work on pages with incorrectly shimmed native methods [[#7](https://github.com/documentcloud/underscore/issues/7), [#742](https://github.com/documentcloud/underscore/issues/742), [test](https://github.com/lodash/lodash/blob/0.9.2/test/test.js#L140-146)]
* `_.isEmpty` should support jQuery/MooTools DOM query collections [[#690](https://github.com/documentcloud/underscore/pull/690), [test](https://github.com/lodash/lodash/blob/0.9.2/test/test.js#L747-752)]
* `_.isObject` should avoid V8 bug [#2291](http://code.google.com/p/8/issues/detail?id=2291) [[#605](https://github.com/documentcloud/underscore/issues/605), [test](https://github.com/lodash/lodash/blob/0.9.2/test/test.js#L828-840)]
* `_.keys` should work with `arguments` objects cross-browser [[#396](https://github.com/documentcloud/underscore/issues/396), [test](https://github.com/lodash/lodash/blob/0.9.2/test/test.js#L921-923)]
* `_.range` should coerce arguments to numbers [[#634](https://github.com/documentcloud/underscore/issues/634), [#683](https://github.com/documentcloud/underscore/issues/683), [test](https://github.com/lodash/lodash/blob/0.9.2/test/test.js#L1337-1340)]
## Release Notes
### <sup>v0.9.2</sup>
* Added `fromIndex` argument to `_.contains`
* Added `moduleId` build option
* Added Closure Compiler *“simple”* optimizations to the build process
* Added support for strings in `_.max` and `_.min`
* Added support for ES6 template delimiters to `_.template`
* Ensured re-minification of Lo-Dash by third parties avoids Closure Compiler bugs
* Optimized `_.every`, `_.find`, `_.some`, and `_.uniq`
The full changelog is available [here](https://github.com/lodash/lodash/wiki/Changelog).
## BestieJS
Lo-Dash is part of the [BestieJS](https://github.com/bestiejs) *“Best in Class”* module collection. This means we promote solid browser/environment support, ES5 precedents, unit testing, and plenty of documentation.
## Author
| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](http://twitter.com/jdalton "Follow @jdalton on Twitter") |
|---|
| [John-David Dalton](http://allyoucanleet.com/) |
## Contributors
| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](http://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](http://twitter.com/mathias "Follow @mathias on Twitter") |
|---|---|---|
| [Blaine Bublitz](http://iceddev.com/) | [Kit Cambridge](http://kitcambridge.github.io/) | [Mathias Bynens](http://mathiasbynens.be/) |

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,35 @@
/*!
Lo-Dash 0.9.2 lodash.com/license
Underscore.js 1.4.2 underscorejs.org/LICENSE
*/
;(function(n,t){function r(n){return n&&n.__wrapped__?n:this instanceof r?(this.__wrapped__=n,void 0):new r(n)}function e(n,t,r){t||(t=0);var e=n.length,u=e-t>=(r||nt);if(u)for(var o={},r=t-1;++r<e;){var i=n[r]+"";(bt.call(o,i)?o[i]:o[i]=[]).push(n[r])}return function(r){if(u){var e=r+"";return bt.call(o,e)&&-1<D(o[e],r)}return-1<D(n,r,t)}}function u(n){return n.charCodeAt(0)}function o(n,r){var e=n.b,u=r.b,n=n.a,r=r.a;if(n!==r){if(n>r||n===t)return 1;if(n<r||r===t)return-1}return e<u?-1:1}function i(n,t,r){function e(){var a=arguments,c=o?this:t;
return u||(n=t[i]),r.length&&(a=a.length?r.concat(kt.call(a)):r),this instanceof e?(s.prototype=n.prototype,c=new s,a=n.apply(c,a),w(a)?a:c):n.apply(c,a)}var u=b(n),o=!r,i=n;return o&&(r=t),e}function a(n,r){return n?typeof n!="function"?function(t){return t[n]}:r!==t?function(t,e,u){return n.call(r,t,e,u)}:n:L}function c(){for(var n,t={b:"",c:"",e:Q,f:Qt,g:"",h:Lt,i:Gt,j:gt,k:"",l:V},r=0;n=arguments[r];r++)for(var e in n)t[e]=n[e];if(n=t.a,t.d=/^[^,]+/.exec(n)[0],r="var h,v,k="+t.d+",s="+t.d+";if(!"+t.d+")return s;"+t.k+";",t.b?(r+="var l=k.length;h=-1;if(typeof l=='number'){",t.i&&(r+="if(j(k)){k=k.split('')}"),r+="while(++h<l){v=k[h];"+t.b+"}}else {"):t.h&&(r+="var l=k.length;h=-1;if(l&&i(k)){while(++h<l){v=k[h+=''];"+t.g+"}}else {"),t.e||(r+="var t=typeof k=='function'&&r.call(k,'prototype');"),t.f&&t.l?(r+="var p=-1,q=o[typeof k]?m(k):[],l=q.length;while(++p<l){h=q[p];",t.e||(r+="if(!(t&&h=='prototype')){"),r+="v=k[h];"+t.g,t.e||(r+="}")):(r+="for(h in k){",(!t.e||t.l)&&(r+="if(",t.e||(r+="!(t&&h=='prototype')"),!t.e&&t.l&&(r+="&&"),t.l&&(r+="g.call(k,h)"),r+="){"),r+="v=k[h];"+t.g+";",(!t.e||t.l)&&(r+="}")),r+="}",t.e)for(r+="var f=k.constructor;",e=0;7>e;e++)r+="h='"+t.j[e]+"';if(","constructor"==t.j[e]&&(r+="!(f&&f.prototype===k)&&"),r+="g.call(k,h)){v=k[h];"+t.g+"}";
return(t.b||t.h)&&(r+="}"),r+=t.c+";return s",Function("e,g,i,j,o,m,r","return function("+n+"){"+r+"}")(a,bt,h,j,Xt,$t,jt)}function f(n){return"\\"+Yt[n]}function l(n){return ur[n]}function s(){}function p(n){return or[n]}function h(n){return xt.call(n)==It}function v(n){var t=H;if(!n||typeof n!="object"||h(n))return t;var r=n.constructor;return Ht&&typeof n.toString!="function"&&typeof(n+"")=="string"||b(r)&&!(r instanceof r)?t:W?(rr(n,function(n,r,e){return t=!bt.call(e,r),H}),t===H):(rr(n,function(n,r){t=r
}),t===H||bt.call(n,t))}function g(n){var t=[];return er(n,function(n,r){t.push(r)}),t}function _(n,t,r,e,u){if(n==G)return n;if(r&&(t=H),r=w(n)){var o=xt.call(n);if(!Wt[o]||Ut&&h(n))return n;var i=o==Rt,r=i||(o==Mt?fr(n):r)}if(!r||!t)return r?i?kt.call(n):ar({},n):n;switch(r=n.constructor,o){case Tt:case Bt:return new r(+n);case Dt:case zt:return new r(n);case Pt:return r(n.source,at.exec(n))}for(e||(e=[]),u||(u=[]),o=e.length;o--;)if(e[o]==n)return u[o];var a=i?r(n.length):{};return e.push(n),u.push(a),(i?sr:er)(n,function(n,r){a[r]=_(n,t,G,e,u)
}),a}function y(n){var t=[];return rr(n,function(n,r){b(n)&&t.push(r)}),t.sort()}function m(n){var t={};return er(n,function(n,r){t[n]=r}),t}function d(n,t,r,e){if(n===t)return 0!==n||1/n==1/t;if(n==G||t==G)return n===t;var u=xt.call(n);if(u!=xt.call(t))return H;switch(u){case Tt:case Bt:return+n==+t;case Dt:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case Pt:case zt:return n==t+""}var o=u==Rt||u==It;if(Ut&&!o&&(o=h(n))&&!h(t))return H;if(!o){if(n.__wrapped__||t.__wrapped__)return d(n.__wrapped__||n,t.__wrapped__||t);
if(u!=Mt||Ht&&(typeof n.toString!="function"&&typeof(n+"")=="string"||typeof t.toString!="function"&&typeof(t+"")=="string"))return H;var u=n.constructor,i=t.constructor;if(u!=i&&(!b(u)||!(u instanceof u&&b(i)&&i instanceof i)))return H}for(r||(r=[]),e||(e=[]),u=r.length;u--;)if(r[u]==n)return e[u]==t;var u=-1,i=V,a=0;if(r.push(n),e.push(t),o){if(a=n.length,i=a==t.length)for(;a--&&(i=d(n[a],t[a],r,e)););return i}for(var c in n)if(bt.call(n,c)&&(a++,!bt.call(t,c)||!d(n[c],t[c],r,e)))return H;for(c in t)if(bt.call(t,c)&&!a--)return H;
if(Q)for(;7>++u;)if(c=gt[u],bt.call(n,c)&&(!bt.call(t,c)||!d(n[c],t[c],r,e)))return H;return V}function b(n){return typeof n=="function"}function w(n){return n?Xt[typeof n]:H}function j(n){return xt.call(n)==zt}function k(n,t,r){var e=arguments,u=0,o=2,i=e[3],a=e[4];for(r!==Y&&(i=[],a=[],o=e.length);++u<o;)er(e[u],function(t,r){var e,u,o;if(t&&((u=cr(t))||fr(t))){for(var c=i.length;c--&&!(e=i[c]==t););e?n[r]=a[c]:(i.push(t),a.push((o=n[r],o=u?cr(o)?o:[]:fr(o)?o:{})),n[r]=k(o,t,Y,i,a))}else t!=G&&(n[r]=t)
});return n}function x(n){var t=[];return er(n,function(n){t.push(n)}),t}function O(n,t,r){var e=-1,u=n?n.length:0,r=(0>r?qt(0,u+r):r)||0;return typeof u=="number"?-1<(j(n)?n.indexOf(t,r):D(n,t,r)):R(n,function(n){return++e>=r&&n===t})}function A(n,t,r){var e=V,t=a(t,r);if(cr(n))for(var r=-1,u=n.length;++r<u&&(e=!!t(n[r],r,n)););else sr(n,function(n,r,u){return e=!!t(n,r,u)});return e}function S(n,t,r){var e=[],t=a(t,r);return sr(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e}function E(n,t,r){var e,t=a(t,r);
return sr(n,function(n,r,u){return t(n,r,u)?(e=n,H):void 0}),e}function $(n,t,r){var e=-1,u=n?n.length:0,o=Array(typeof u=="number"?u:0),t=a(t,r);if(cr(n))for(;++e<u;)o[e]=t(n[e],e,n);else sr(n,function(n,r,u){o[++e]=t(n,r,u)});return o}function q(n,t,r){var e=-1/0,o=-1,i=n?n.length:0,c=e;if(t||!cr(n))t=!t&&j(n)?u:a(t,r),sr(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,c=n)});else for(;++o<i;)n[o]>c&&(c=n[o]);return c}function N(n,t){var r=[];return sr(n,function(n){r.push(n[t])}),r}function F(n,t,r,e){var u=3>arguments.length,t=a(t,e);
return sr(n,function(n,e,o){r=u?(u=H,n):t(r,n,e,o)}),r}function I(n,t,r,e){var u=n,o=n?n.length:0,i=3>arguments.length;if(typeof o!="number")var a=lr(n),o=a.length;else Gt&&j(n)&&(u=n.split(""));return sr(n,function(n,c,f){c=a?a[--o]:--o,r=i?(i=H,u[c]):t.call(e,r,u[c],c,f)}),r}function R(n,t,r){var e,t=a(t,r);if(cr(n))for(var r=-1,u=n.length;++r<u&&!(e=t(n[r],r,n)););else sr(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function T(n,t,r){return n?t==G||r?n[0]:kt.call(n,0,t):void 0}function B(n,t){for(var r=-1,e=n?n.length:0,u=[];++r<e;){var o=n[r];
cr(o)?wt.apply(u,t?o:B(o)):u.push(o)}return u}function D(n,t,r){var e=-1,u=n?n.length:0;if(typeof r=="number")e=(0>r?qt(0,u+r):r||0)-1;else if(r)return e=P(n,t),n[e]===t?e:-1;for(;++e<u;)if(n[e]===t)return e;return-1}function M(n,t,r){return n?kt.call(n,t==G||r?1:t):[]}function P(n,t,r,e){for(var u=0,o=n?n.length:u,r=r?a(r,e):L,t=r(t);u<o;)e=u+o>>>1,r(n[e])<t?u=e+1:o=e;return u}function z(n,t,r,e){var u=-1,o=n?n.length:0,i=[],c=i;typeof t=="function"&&(e=r,r=t,t=H);var f=!t&&74<o;if(f)var l={};for(r&&(c=[],r=a(r,e));++u<o;){var e=n[u],s=r?r(e,u,n):e;
f&&(c=bt.call(l,s+"")?l[s]:l[s]=[]),(t?!u||c[c.length-1]!==s:0>D(c,s))&&((r||f)&&c.push(s),i.push(e))}return i}function C(n,t){return Kt||Ot&&2<arguments.length?Ot.call.apply(Ot,arguments):i(n,t,kt.call(arguments,2))}function L(n){return n}function U(n){sr(y(n),function(t){var e=r[t]=n[t];r.prototype[t]=function(){var n=[this.__wrapped__];return wt.apply(n,arguments),n=e.apply(r,n),this.__chain__&&(n=new r(n),n.__chain__=V),n}})}var V=!0,G=null,H=!1,J=typeof exports=="object"&&exports,K=typeof global=="object"&&global;
K.global===K&&(n=K);var Q,W,X=[],Y=new function(){},Z=0,nt=30,tt=n._,rt=/[-?+=!~*%&^<>|{(\/]|\[\D|\b(?:delete|in|instanceof|new|typeof|void)\b/,et=/&(?:amp|lt|gt|quot|#x27);/g,ut=/\b__p\+='';/g,ot=/\b(__p\+=)''\+/g,it=/(__e\(.*?\)|\b__t\))\+'';/g,at=/\w*$/,ct=/(?:__e|__t=)\(\s*(?![\d\s"']|this\.)/g,ft=RegExp("^"+(Y.valueOf+"").replace(/[.*+?^=!:${}()|[\]\/\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),lt=/\$\{((?:(?=\\?)\\?[\s\S])*?)}/g,st=/<%=([\s\S]+?)%>/g,pt=/($^)/,ht=/[&<>"']/g,vt=/['\n\r\t\u2028\u2029\\]/g,gt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),_t=Math.ceil,yt=X.concat,mt=Math.floor,dt=ft.test(dt=Object.getPrototypeOf)&&dt,bt=Y.hasOwnProperty,wt=X.push,jt=Y.propertyIsEnumerable,kt=X.slice,xt=Y.toString,Ot=ft.test(Ot=kt.bind)&&Ot,At=ft.test(At=Array.isArray)&&At,St=n.isFinite,Et=n.isNaN,$t=ft.test($t=Object.keys)&&$t,qt=Math.max,Nt=Math.min,Ft=Math.random,It="[object Arguments]",Rt="[object Array]",Tt="[object Boolean]",Bt="[object Date]",Dt="[object Number]",Mt="[object Object]",Pt="[object RegExp]",zt="[object String]",Ct=(Ct={0:1,length:1},X.splice.call(Ct,0,1),Ct[0]),Lt=V;
(function(){function n(){this.x=1}var t=[];n.prototype={valueOf:1,y:1};for(var r in new n)t.push(r);for(r in arguments)Lt=!r;Q=!/valueOf/.test(t),W="x"!=t[0]})(1);var Ut=!h(arguments),Vt="x"!=kt.call("x")[0],Gt="xx"!="x"[0]+Object("x")[0];try{var Ht=xt.call(n.document||0)==Mt}catch(Jt){}var Kt=Ot&&/\n|Opera/.test(Ot+xt.call(n.opera)),Qt=$t&&/^.+$|true/.test($t+!!n.attachEvent),Wt={};Wt[It]=Wt["[object Function]"]=H,Wt[Rt]=Wt[Tt]=Wt[Bt]=Wt[Dt]=Wt[Mt]=Wt[Pt]=Wt[zt]=V;var Xt={"boolean":H,"function":V,object:V,number:H,string:H,undefined:H},Yt={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"};
r.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:st,variable:""};var Zt={a:"d,c,u",k:"c=e(c,u)",b:"if(c(v,h,d)===false)return s",g:"if(c(v,h,d)===false)return s"},nr={l:H,a:"n",k:"for(var a=1,b=arguments.length;a<b;a++){if(k=arguments[a]){",g:"s[h]=v",c:"}}"},tr={b:G};Ut&&(h=function(n){return n?bt.call(n,"callee"):H});var rr=c(Zt,tr,{l:H}),er=c(Zt,tr),ur={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},or=m(ur),ir=c(nr,{g:"if(s[h]==null)"+nr.g}),ar=c(nr),cr=At||function(n){return xt.call(n)==Rt
};b(/x/)&&(b=function(n){return"[object Function]"==xt.call(n)});var fr=dt?function(n){if(!n||typeof n!="object")return H;var t=n.valueOf,r=typeof t=="function"&&(r=dt(t))&&dt(r);return r?n==r||dt(n)==r&&!h(n):v(n)}:v,lr=$t?function(n){return typeof n=="function"&&jt.call(n,"prototype")?g(n):w(n)?$t(n):[]}:g,sr=c(Zt);r.VERSION="0.9.2",r.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},r.bind=C,r.bindAll=function(n){for(var t=arguments,r=1<t.length?0:(t=y(n),-1),e=t.length;++r<e;){var u=t[r];
n[u]=C(n[u],n)}return n},r.chain=function(n){return n=new r(n),n.__chain__=V,n},r.clone=_,r.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},r.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];return t[0]}},r.contains=O,r.countBy=function(n,t,r){var e={},t=a(t,r);return sr(n,function(n,r,u){r=t(n,r,u),bt.call(e,r)?e[r]++:e[r]=1}),e},r.debounce=function(n,t,r){function e(){a=G,r||(o=n.apply(i,u))
}var u,o,i,a;return function(){var c=r&&!a;return u=arguments,i=this,clearTimeout(a),a=setTimeout(e,t),c&&(o=n.apply(i,u)),o}},r.defaults=ir,r.defer=function(n){var r=kt.call(arguments,1);return setTimeout(function(){n.apply(t,r)},1)},r.delay=function(n,r){var e=kt.call(arguments,2);return setTimeout(function(){n.apply(t,e)},r)},r.difference=function(n){for(var t=-1,r=n?n.length:0,u=yt.apply(X,arguments),u=e(u,r),o=[];++t<r;){var i=n[t];u(i)||o.push(i)}return o},r.escape=function(n){return n==G?"":(n+"").replace(ht,l)
},r.every=A,r.extend=ar,r.filter=S,r.find=E,r.first=T,r.flatten=B,r.forEach=sr,r.forIn=rr,r.forOwn=er,r.functions=y,r.groupBy=function(n,t,r){var e={},t=a(t,r);return sr(n,function(n,r,u){r=t(n,r,u),(bt.call(e,r)?e[r]:e[r]=[]).push(n)}),e},r.has=function(n,t){return n?bt.call(n,t):H},r.identity=L,r.indexOf=D,r.initial=function(n,t,r){return n?kt.call(n,0,-(t==G||r?1:t)):[]},r.intersection=function(n){var t=arguments,r=t.length,u={},o=[];return sr(n,function(n){if(0>D(o,n)){for(var i=r;--i;)if(!(u[i]||(u[i]=e(t[i])))(n))return;
o.push(n)}}),o},r.invert=m,r.invoke=function(n,t){var r=kt.call(arguments,2),e=typeof t=="function",u=[];return sr(n,function(n){u.push((e?t:n[t]).apply(n,r))}),u},r.isArguments=h,r.isArray=cr,r.isBoolean=function(n){return n===V||n===H||xt.call(n)==Tt},r.isDate=function(n){return xt.call(n)==Bt},r.isElement=function(n){return n?1===n.nodeType:H},r.isEmpty=function(n){var t=V;if(!n)return t;var r=xt.call(n),e=n.length;return r==Rt||r==zt||r==It||Ut&&h(n)||r==Mt&&typeof e=="number"&&b(n.splice)?!e:(er(n,function(){return t=H
}),t)},r.isEqual=d,r.isFinite=function(n){return St(n)&&!Et(parseFloat(n))},r.isFunction=b,r.isNaN=function(n){return xt.call(n)==Dt&&n!=+n},r.isNull=function(n){return n===G},r.isNumber=function(n){return xt.call(n)==Dt},r.isObject=w,r.isPlainObject=fr,r.isRegExp=function(n){return xt.call(n)==Pt},r.isString=j,r.isUndefined=function(n){return n===t},r.keys=lr,r.last=function(n,t,r){if(n){var e=n.length;return t==G||r?n[e-1]:kt.call(n,-t||e)}},r.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?qt(0,e+r):Nt(r,e-1))+1);e--;)if(n[e]===t)return e;
return-1},r.lateBind=function(n,t){return i(t,n,kt.call(arguments,2))},r.map=$,r.max=q,r.memoize=function(n,t){var r={};return function(){var e=t?t.apply(this,arguments):arguments[0];return bt.call(r,e)?r[e]:r[e]=n.apply(this,arguments)}},r.merge=k,r.min=function(n,t,r){var e=1/0,o=-1,i=n?n.length:0,c=e;if(t||!cr(n))t=!t&&j(n)?u:a(t,r),sr(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,c=n)});else for(;++o<i;)n[o]<c&&(c=n[o]);return c},r.mixin=U,r.noConflict=function(){return n._=tt,this},r.object=function(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var o=n[r];
t?u[o]=t[r]:u[o[0]]=o[1]}return u},r.omit=function(n,t,r){var e=typeof t=="function",u={};if(e)t=a(t,r);else var o=yt.apply(X,arguments);return rr(n,function(n,r,i){(e?!t(n,r,i):0>D(o,r,1))&&(u[r]=n)}),u},r.once=function(n){var t,r=H;return function(){return r?t:(r=V,t=n.apply(this,arguments),n=G,t)}},r.pairs=function(n){var t=[];return er(n,function(n,r){t.push([r,n])}),t},r.partial=function(n){return i(n,kt.call(arguments,1))},r.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=0,o=yt.apply(X,arguments),i=o.length;++u<i;){var c=o[u];
c in n&&(e[c]=n[c])}else t=a(t,r),rr(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e},r.pluck=N,r.random=function(n,t){return n==G&&t==G&&(t=1),n=+n||0,t==G&&(t=n,n=0),n+mt(Ft()*((+t||0)-n+1))},r.range=function(n,t,r){n=+n||0,r=+r||1,t==G&&(t=n,n=0);for(var e=-1,t=qt(0,_t((t-n)/r)),u=Array(t);++e<t;)u[e]=n,n+=r;return u},r.reduce=F,r.reduceRight=I,r.reject=function(n,t,r){return t=a(t,r),S(n,function(n,r,e){return!t(n,r,e)})},r.rest=M,r.result=function(n,t){var r=n?n[t]:G;return b(r)?n[t]():r},r.shuffle=function(n){var t=-1,r=Array(n?n.length:0);
return sr(n,function(n){var e=mt(Ft()*(++t+1));r[t]=r[e],r[e]=n}),r},r.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:lr(n).length},r.some=R,r.sortBy=function(n,t,r){var e=[],t=a(t,r);for(sr(n,function(n,r,u){e.push({a:t(n,r,u),b:r,c:n})}),n=e.length,e.sort(o);n--;)e[n]=e[n].c;return e},r.sortedIndex=P,r.tap=function(n,t){return t(n),n},r.template=function(n,t,e){n||(n=""),e||(e={});var u,o,i=r.templateSettings,a=0,c=e.interpolate||i.interpolate||pt,l="__p += '",s=e.variable||i.variable,p=s;
n.replace(RegExp((e.escape||i.escape||pt).source+"|"+c.source+"|"+(c===st?lt:pt).source+"|"+(e.evaluate||i.evaluate||pt).source+"|$","g"),function(t,r,e,o,i,c){e||(e=o),l+=n.slice(a,c).replace(vt,f),l+=r?"'+__e("+r+")+'":i?"';"+i+";__p+='":e?"'+((__t=("+e+"))==null?'':__t)+'":"",u||(u=i||rt.test(r||e)),a=c+t.length}),l+="';",p||(s="obj",u?l="with("+s+"){"+l+"}":(e=RegExp("(\\(\\s*)"+s+"\\."+s+"\\b","g"),l=l.replace(ct,"$&"+s+".").replace(e,"$1__d"))),l=(u?l.replace(ut,""):l).replace(ot,"$1").replace(it,"$1;"),l="function("+s+"){"+(p?"":s+"||("+s+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":(p?"":",__d="+s+"."+s+"||"+s)+";")+l+"return __p}";
try{o=Function("_","return "+l)(r)}catch(h){throw h.source=l,h}return t?o(t):(o.source=l,o)},r.throttle=function(n,t){function r(){a=new Date,i=G,u=n.apply(o,e)}var e,u,o,i,a=0;return function(){var c=new Date,f=t-(c-a);return e=arguments,o=this,0<f?i||(i=setTimeout(r,f)):(clearTimeout(i),a=c,u=n.apply(o,e)),u}},r.times=function(n,t,r){for(var n=+n||0,e=-1,u=Array(n);++e<n;)u[e]=t.call(r,e);return u},r.toArray=function(n){return n&&typeof n.length=="number"?(Vt?j(n):typeof n=="string")?n.split(""):kt.call(n):x(n)
},r.unescape=function(n){return n==G?"":(n+"").replace(et,p)},r.union=function(){return z(yt.apply(X,arguments))},r.uniq=z,r.uniqueId=function(n){var t=Z++;return n?n+t:t},r.values=x,r.where=function(n,t){var r=[];return rr(t,function(n,t){r.push(t)}),S(n,function(n){for(var e=r.length;e--;){var u=n[r[e]]===t[r[e]];if(!u)break}return!!u})},r.without=function(n){for(var t=-1,r=n?n.length:0,u=e(arguments,1,20),o=[];++t<r;){var i=n[t];u(i)||o.push(i)}return o},r.wrap=function(n,t){return function(){var r=[n];
return wt.apply(r,arguments),t.apply(this,r)}},r.zip=function(n){for(var t=-1,r=n?q(N(arguments,"length")):0,e=Array(r);++t<r;)e[t]=N(arguments,t);return e},r.all=A,r.any=R,r.collect=$,r.detect=E,r.drop=M,r.each=sr,r.foldl=F,r.foldr=I,r.head=T,r.include=O,r.inject=F,r.methods=y,r.select=S,r.tail=M,r.take=T,r.unique=z,U(r),r.prototype.chain=function(){return this.__chain__=V,this},r.prototype.value=function(){return this.__wrapped__},sr("pop push reverse shift sort splice unshift".split(" "),function(n){var t=X[n];
r.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),Ct&&0===n.length&&delete n[0],this.__chain__&&(n=new r(n),n.__chain__=V),n}}),sr(["concat","join","slice"],function(n){var t=X[n];r.prototype[n]=function(){var n=t.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new r(n),n.__chain__=V),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=r,define(function(){return r})):J?typeof module=="object"&&module&&module.exports==J?(module.exports=r)._=r:J._=r:n._=r
})(this);

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,28 @@
/*!
Lo-Dash 0.9.2 lodash.com/license
Underscore.js 1.4.2 underscorejs.org/LICENSE
*/
;(function(n,t){function r(n,t,r){var e;if(!n)return n;var t=l(t,r),u=n.length,r=-1;if(typeof u=="number"){for(;++r<u;)if(e=n[r],t(e,r,n)===Q)return n}else for(r in n)if(it.call(n,r)&&(e=n[r],t(e,r,n)===Q))return n}function e(n){var t,r,e=n;if(!n)return n;for(var u=1,i=arguments.length;u<i;u++)if(e=arguments[u])for(t in e)r=e[t],n[t]=r;return n}function u(n){var t,r,e=n;if(!n)return n;for(var u=1,i=arguments.length;u<i;u++)if(e=arguments[u])for(t in e)r=e[t],n[t]==V&&(n[t]=r);return n}function i(n,t){var r,e;
if(n)for(r in t=l(t),n)if(it.call(n,r)&&(e=n[r],t(e,r,n)===Q))break}function o(n,t){var r,e;if(n)for(r in t=l(t),n)if(e=n[r],t(e,r,n)===Q)break}function a(n){return n&&n.__wrapped__?n:this instanceof a?(this.__wrapped__=n,void 0):new a(n)}function c(n,r){var e=n.b,u=r.b,n=n.a,r=r.a;if(n!==r){if(n>r||n===t)return 1;if(n<r||r===t)return-1}return e<u?-1:1}function f(n,t,r){function e(){var u=arguments,i=t;return r.length&&(u=u.length?r.concat(at.call(u)):r),this instanceof e?(h.prototype=n.prototype,i=new h,u=n.apply(i,u),b(u)?u:i):n.apply(i,u)
}return e}function l(n,r){return n?typeof n!="function"?function(t){return t[n]}:r!==t?function(t,e,u){return n.call(r,t,e,u)}:n:C}function s(n){return"\\"+Et[n]}function p(n){return St[n]}function h(){}function g(n){return kt[n]}function v(n){var t=[];return i(n,function(n,r){t.push(r)}),t}function _(n){var t=[];return o(n,function(n,r){d(n)&&t.push(r)}),t.sort()}function m(n){var t={};return i(n,function(n,r){t[n]=r}),t}function y(n,t,r,e){if(n===t)return 0!==n||1/n==1/t;if(n==V||t==V)return n===t;
var u=ct.call(n);if(u!=ct.call(t))return G;switch(u){case mt:case yt:return+n==+t;case dt:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case wt:case jt:return n==t+""}var i=u==_t;if(!i){if(n.__wrapped__||t.__wrapped__)return y(n.__wrapped__||n,t.__wrapped__||t);if(u!=bt)return G;var u=n.constructor,o=t.constructor;if(u!=o&&(!d(u)||!(u instanceof u&&d(o)&&o instanceof o)))return G}for(r||(r=[]),e||(e=[]),u=r.length;u--;)if(r[u]==n)return e[u]==t;if(u=U,o=0,r.push(n),e.push(t),i){if(o=n.length,u=o==t.length)for(;o--&&(u=y(n[o],t[o],r,e)););return u
}for(var a in n)if(it.call(n,a)&&(o++,!it.call(t,a)||!y(n[a],t[a],r,e)))return G;for(a in t)if(it.call(t,a)&&!o--)return G;return U}function d(n){return typeof n=="function"}function b(n){return n?Ot[typeof n]:G}function w(n){return ct.call(n)==jt}function j(n){var t=[];return i(n,function(n){t.push(n)}),t}function x(n,t){return typeof(n?n.length:0)=="number"?-1<M(n,t):R(n,function(n){return n===t})}function A(n,t,e){var u=U,t=l(t,e);if(Tt(n))for(var e=-1,i=n.length;++e<i&&(u=!!t(n[e],e,n)););else r(n,function(n,r,e){return!(u=!!t(n,r,e))&&Q
});return u}function O(n,t,e){var u=[],t=l(t,e);return r(n,function(n,r,e){t(n,r,e)&&u.push(n)}),u}function E(n,t,e){var u,t=l(t,e);return r(n,function(n,r,e){return t(n,r,e)?(u=n,G):void 0}),u}function S(n,t,e){var u=-1,i=n?n.length:0,o=Array(typeof i=="number"?i:0),t=l(t,e);if(Tt(n))for(;++u<i;)o[u]=t(n[u],u,n);else r(n,function(n,r,e){o[++u]=t(n,r,e)});return o}function k(n,t,e){var u=-1/0,i=-1,o=n?n.length:0,a=u;if(t||!Tt(n))t=l(t,e),r(n,function(n,r,e){r=t(n,r,e),r>u&&(u=r,a=n)});else for(;++i<o;)n[i]>a&&(a=n[i]);
return a}function T(n,t){var e=[];return r(n,function(n){e.push(n[t])}),e}function N(n,t,e,u){var i=3>arguments.length,t=l(t,u);return r(n,function(n,r,u){e=i?(i=G,n):t(e,n,r,u)}),e}function q(n,t,e,u){var i=n?n.length:0,o=3>arguments.length;if(typeof i!="number")var a=Nt(n),i=a.length;return r(n,function(r,c,f){c=a?a[--i]:--i,e=o?(o=G,n[c]):t.call(u,e,n[c],c,f)}),e}function R(n,t,e){var u,t=l(t,e);if(Tt(n))for(var e=-1,i=n.length;++e<i&&!(u=t(n[e],e,n)););else r(n,function(n,r,e){return(u=t(n,r,e))&&Q
});return!!u}function B(n,t,r){return n?t==V||r?n[0]:at.call(n,0,t):void 0}function F(n,t){for(var r=-1,e=n?n.length:0,u=[];++r<e;){var i=n[r];Tt(i)?ot.apply(u,t?i:F(i)):u.push(i)}return u}function M(n,t,r){var e=-1,u=n?n.length:0;if(typeof r=="number")e=(0>r?ht(0,u+r):r||0)-1;else if(r)return e=I(n,t),n[e]===t?e:-1;for(;++e<u;)if(n[e]===t)return e;return-1}function $(n,t,r){return n?at.call(n,t==V||r?1:t):[]}function I(n,t,r,e){for(var u=0,i=n?n.length:u,r=r?l(r,e):C,t=r(t);u<i;)e=u+i>>>1,r(n[e])<t?u=e+1:i=e;
return u}function D(n,t,r,e){var u=-1,i=n?n.length:0,o=[],a=o;for(r&&(a=[],r=l(r,e));++u<i;){var e=n[u],c=r?r(e,u,n):e;(t?!u||a[a.length-1]!==c:0>M(a,c))&&(r&&a.push(c),o.push(e))}return o}function z(n,t){return At||ft&&2<arguments.length?ft.call.apply(ft,arguments):f(n,t,at.call(arguments,2))}function C(n){return n}function P(n){r(_(n),function(t){var r=a[t]=n[t];a.prototype[t]=function(){var n=[this.__wrapped__];return ot.apply(n,arguments),n=r.apply(a,n),this.__chain__&&(n=new a(n),n.__chain__=U),n
}})}var U=!0,V=null,G=!1,H=typeof exports=="object"&&exports,J=typeof global=="object"&&global;J.global===J&&(n=J);var K=[],J=new function(){},L=0,Q=J,W=n._,X=/&(?:amp|lt|gt|quot|#x27);/g,Y=RegExp("^"+(J.valueOf+"").replace(/[.*+?^=!:${}()|[\]\/\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),Z=/($^)/,nt=/[&<>"']/g,tt=/['\n\r\t\u2028\u2029\\]/g,rt=Math.ceil,et=K.concat,ut=Math.floor,it=J.hasOwnProperty,ot=K.push,at=K.slice,ct=J.toString,ft=Y.test(ft=at.bind)&&ft,lt=Y.test(lt=Array.isArray)&&lt,st=n.isFinite,pt=Y.test(pt=Object.keys)&&pt,ht=Math.max,gt=Math.min,vt=Math.random,_t="[object Array]",mt="[object Boolean]",yt="[object Date]",dt="[object Number]",bt="[object Object]",wt="[object RegExp]",jt="[object String]",xt=(xt={0:1,length:1},K.splice.call(xt,0,1),xt[0]),At=ft&&/\n|Opera/.test(ft+ct.call(n.opera)),Ot={"boolean":G,"function":U,object:U,number:G,string:G,undefined:G},Et={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"};
a.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},a.isArguments=function(n){return"[object Arguments]"==ct.call(n)},a.isArguments(arguments)||(a.isArguments=function(n){return n?it.call(n,"callee"):G});var St={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},kt=m(St),Tt=lt||function(n){return ct.call(n)==_t};d(/x/)&&(d=function(n){return"[object Function]"==ct.call(n)});var Nt=pt?function(n){return b(n)?pt(n):[]}:v;a.VERSION="0.9.2",a.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0
}},a.bind=z,a.bindAll=function(n){for(var t=arguments,r=1<t.length?0:(t=_(n),-1),e=t.length;++r<e;){var u=t[r];n[u]=z(n[u],n)}return n},a.chain=function(n){return n=new a(n),n.__chain__=U,n},a.clone=function(n){return n&&Ot[typeof n]?Tt(n)?at.call(n):e({},n):n},a.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},a.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];return t[0]}},a.contains=x,a.countBy=function(n,t,e){var u={},t=l(t,e);
return r(n,function(n,r,e){r=t(n,r,e),it.call(u,r)?u[r]++:u[r]=1}),u},a.debounce=function(n,t,r){function e(){a=V,r||(i=n.apply(o,u))}var u,i,o,a;return function(){var c=r&&!a;return u=arguments,o=this,clearTimeout(a),a=setTimeout(e,t),c&&(i=n.apply(o,u)),i}},a.defaults=u,a.defer=function(n){var r=at.call(arguments,1);return setTimeout(function(){n.apply(t,r)},1)},a.delay=function(n,r){var e=at.call(arguments,2);return setTimeout(function(){n.apply(t,e)},r)},a.difference=function(n){for(var t=-1,r=n.length,e=et.apply(K,arguments),u=[];++t<r;){var i=n[t];
0>M(e,i,r)&&u.push(i)}return u},a.escape=function(n){return n==V?"":(n+"").replace(nt,p)},a.every=A,a.extend=e,a.filter=O,a.find=E,a.first=B,a.flatten=F,a.forEach=r,a.functions=_,a.groupBy=function(n,t,e){var u={},t=l(t,e);return r(n,function(n,r,e){r=t(n,r,e),(it.call(u,r)?u[r]:u[r]=[]).push(n)}),u},a.has=function(n,t){return n?it.call(n,t):G},a.identity=C,a.indexOf=M,a.initial=function(n,t,r){return n?at.call(n,0,-(t==V||r?1:t)):[]},a.intersection=function(n){var t=arguments,e=t.length,u=[];return r(n,function(n){if(0>M(u,n)){for(var r=e;--r;)if(0>M(t[r],n))return;
u.push(n)}}),u},a.invert=m,a.invoke=function(n,t){var e=at.call(arguments,2),u=typeof t=="function",i=[];return r(n,function(n){i.push((u?t:n[t]).apply(n,e))}),i},a.isArray=Tt,a.isBoolean=function(n){return n===U||n===G||ct.call(n)==mt},a.isDate=function(n){return ct.call(n)==yt},a.isElement=function(n){return n?1===n.nodeType:G},a.isEmpty=function(n){if(!n)return U;if(Tt(n)||w(n))return!n.length;for(var t in n)if(it.call(n,t))return G;return U},a.isEqual=y,a.isFinite=function(n){return st(n)&&ct.call(n)==dt
},a.isFunction=d,a.isNaN=function(n){return ct.call(n)==dt&&n!=+n},a.isNull=function(n){return n===V},a.isNumber=function(n){return ct.call(n)==dt},a.isObject=b,a.isRegExp=function(n){return ct.call(n)==wt},a.isString=w,a.isUndefined=function(n){return n===t},a.keys=Nt,a.last=function(n,t,r){if(n){var e=n.length;return t==V||r?n[e-1]:at.call(n,-t||e)}},a.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?ht(0,e+r):gt(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},a.map=S,a.max=k,a.memoize=function(n,t){var r={};
return function(){var e=t?t.apply(this,arguments):arguments[0];return it.call(r,e)?r[e]:r[e]=n.apply(this,arguments)}},a.min=function(n,t,e){var u=1/0,i=-1,o=n?n.length:0,a=u;if(t||!Tt(n))t=l(t,e),r(n,function(n,r,e){r=t(n,r,e),r<u&&(u=r,a=n)});else for(;++i<o;)n[i]<a&&(a=n[i]);return a},a.mixin=P,a.noConflict=function(){return n._=W,this},a.object=function(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var i=n[r];t?u[i]=t[r]:u[i[0]]=i[1]}return u},a.omit=function(n){var t=et.apply(K,arguments),r={};
return o(n,function(n,e){0>M(t,e,1)&&(r[e]=n)}),r},a.once=function(n){var t,r=G;return function(){return r?t:(r=U,t=n.apply(this,arguments),n=V,t)}},a.pairs=function(n){var t=[];return i(n,function(n,r){t.push([r,n])}),t},a.pick=function(n){for(var t=0,r=et.apply(K,arguments),e=r.length,u={};++t<e;){var i=r[t];i in n&&(u[i]=n[i])}return u},a.pluck=T,a.random=function(n,t){return n==V&&t==V&&(t=1),n=+n||0,t==V&&(t=n,n=0),n+ut(vt()*((+t||0)-n+1))},a.range=function(n,t,r){n=+n||0,r=+r||1,t==V&&(t=n,n=0);
for(var e=-1,t=ht(0,rt((t-n)/r)),u=Array(t);++e<t;)u[e]=n,n+=r;return u},a.reduce=N,a.reduceRight=q,a.reject=function(n,t,r){return t=l(t,r),O(n,function(n,r,e){return!t(n,r,e)})},a.rest=$,a.result=function(n,t){var r=n?n[t]:V;return d(r)?n[t]():r},a.shuffle=function(n){var t=-1,e=Array(n?n.length:0);return r(n,function(n){var r=ut(vt()*(++t+1));e[t]=e[r],e[r]=n}),e},a.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Nt(n).length},a.some=R,a.sortBy=function(n,t,e){var u=[],t=l(t,e);
for(r(n,function(n,r,e){u.push({a:t(n,r,e),b:r,c:n})}),n=u.length,u.sort(c);n--;)u[n]=u[n].c;return u},a.sortedIndex=I,a.tap=function(n,t){return t(n),n},a.template=function(n,t,r){n||(n="");var r=u({},r,a.templateSettings),e=0,i="__p += '",o=r.variable;n.replace(RegExp((r.escape||Z).source+"|"+(r.interpolate||Z).source+"|"+(r.evaluate||Z).source+"|$","g"),function(t,r,u,o,a){i+=n.slice(e,a).replace(tt,s),i+=r?"'+_['escape']("+r+")+'":o?"';"+o+";__p+='":u?"'+((__t=("+u+"))==null?'':__t)+'":"",e=a+t.length
}),i+="';",o||(o="obj",i="with("+o+"||{}){"+i+"}"),i="function("+o+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+i+"return __p}";try{var c=Function("_","return "+i)(a)}catch(f){throw f.source=i,f}return t?c(t):(c.source=i,c)},a.throttle=function(n,t){function r(){a=new Date,o=V,u=n.apply(i,e)}var e,u,i,o,a=0;return function(){var c=new Date,f=t-(c-a);return e=arguments,i=this,0<f?o||(o=setTimeout(r,f)):(clearTimeout(o),a=c,u=n.apply(i,e)),u}},a.times=function(n,t,r){for(var n=+n||0,e=-1,u=Array(n);++e<n;)u[e]=t.call(r,e);
return u},a.toArray=function(n){return n&&typeof n.length=="number"?typeof n=="string"?n.split(""):at.call(n):j(n)},a.unescape=function(n){return n==V?"":(n+"").replace(X,g)},a.union=function(){return D(et.apply(K,arguments))},a.uniq=D,a.uniqueId=function(n){var t=L++;return n?n+t:t},a.values=j,a.where=function(n,t){var r=[];return o(t,function(n,t){r.push(t)}),O(n,function(n){for(var e=r.length;e--;){var u=n[r[e]]===t[r[e]];if(!u)break}return!!u})},a.without=function(n){for(var t=-1,r=n.length,e=[];++t<r;){var u=n[t];
0>M(arguments,u,1)&&e.push(u)}return e},a.wrap=function(n,t){return function(){var r=[n];return ot.apply(r,arguments),t.apply(this,r)}},a.zip=function(n){for(var t=-1,r=n?k(T(arguments,"length")):0,e=Array(r);++t<r;)e[t]=T(arguments,t);return e},a.all=A,a.any=R,a.collect=S,a.detect=E,a.drop=$,a.each=r,a.foldl=N,a.foldr=q,a.head=B,a.include=x,a.inject=N,a.methods=_,a.select=O,a.tail=$,a.take=B,a.unique=D,P(a),a.prototype.chain=function(){return this.__chain__=U,this},a.prototype.value=function(){return this.__wrapped__
},r("pop push reverse shift sort splice unshift".split(" "),function(n){var t=K[n];a.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),xt&&0===n.length&&delete n[0],this.__chain__&&(n=new a(n),n.__chain__=U),n}}),r(["concat","join","slice"],function(n){var t=K[n];a.prototype[n]=function(){var n=t.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new a(n),n.__chain__=U),n}}),H?typeof module=="object"&&module&&module.exports==H?(module.exports=a)._=a:H._=a:n._=a})(this);

View File

@@ -0,0 +1,79 @@
{
"name": "lodash",
"version": "0.9.2",
"description": "A utility library delivering consistency, customization, performance, and extras.",
"homepage": "http://lodash.com",
"license": "MIT",
"main": "./lodash.js",
"keywords": [
"browser",
"client",
"functional",
"performance",
"server",
"speed",
"util"
],
"author": {
"name": "John-David Dalton",
"email": "john.david.dalton@gmail.com",
"url": "http://allyoucanleet.com/"
},
"contributors": [
{
"name": "John-David Dalton",
"email": "john.david.dalton@gmail.com",
"url": "http://allyoucanleet.com/"
},
{
"name": "Blaine Bublitz",
"email": "blaine@iceddev.com",
"url": "http://iceddev.com/"
},
{
"name": "Kit Cambridge",
"email": "github@kitcambridge.be",
"url": "http://kitcambridge.be/"
},
{
"name": "Mathias Bynens",
"email": "mathias@qiwi.be",
"url": "http://mathiasbynens.be/"
}
],
"bugs": {
"url": "https://github.com/lodash/lodash/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/lodash/lodash.git"
},
"engines": [
"node",
"rhino"
],
"jam": {
"main": "./lodash.js"
},
"_id": "lodash@0.9.2",
"dist": {
"shasum": "8f3499c5245d346d682e5b0d3b40767e09f1a92c",
"tarball": "http://registry.npmjs.org/lodash/-/lodash-0.9.2.tgz"
},
"_from": "lodash@~0.9.2",
"_npmVersion": "1.2.24",
"_npmUser": {
"name": "jdalton",
"email": "john.david.dalton@gmail.com"
},
"maintainers": [
{
"name": "jdalton",
"email": "john.david.dalton@gmail.com"
}
],
"directories": {},
"_shasum": "8f3499c5245d346d682e5b0d3b40767e09f1a92c",
"_resolved": "https://registry.npmjs.org/lodash/-/lodash-0.9.2.tgz",
"readme": "ERROR: No README data found!"
}