/** * @license * lodash 3.10.1 (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE * Build: `lodash include="debounce,throttle,defer,bind" -o lodash/lodash.js` */ ;(function(){function t(t,n){for(var e=-1,r=t.length,o=-1,i=[];++e=t||t>n?r(h,f):s=setTimeout(o,t)}function i(){r(d,s)}function u(){if(a=arguments,l=Z(),p=this,h=d&&(s||!_),false===w)var e=_&&!s;else{f||_||(g=l);var r=w-(l-g),u=0>=r||r>w;u?(f&&(f=clearTimeout(f)),g=l,c=t.apply(p,a)):f||(f=setTimeout(i,r))}return u&&s?s=clearTimeout(s):s||n===w||(s=setTimeout(o,n)),e&&(u=true,c=t.apply(p,a)),!u||s||f||(a=p=v),c}var a,f,c,l,p,s,h,g=0,w=false,d=true;if(typeof t!="function")throw new TypeError(I);if(n=0>n?0:+n||0,true===e)var _=true,d=false;else y(e)&&(_=!!e.leading, w="maxWait"in e&&z(+e.maxWait||0,n),d="trailing"in e?!!e.trailing:d);return u.cancel=function(){s&&clearTimeout(s),f&&clearTimeout(f),g=0,f=s=h=v},u}function h(t,n){if(typeof t!="function")throw new TypeError(I);return n=z(n===v?t.length-1:+n||0,0),function(){for(var e=arguments,r=-1,o=z(e.length-n,0),i=Array(o);++r