lodash-rails 4.16.1 → 4.16.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3fbb6e7d8fbc58878e2efeb6be1977d971dc38f7
4
- data.tar.gz: 341419b93c8391a6c6f67cbde81c311c036457a4
3
+ metadata.gz: 9ee48a5249fbf50ea6839c900cbe342d0e1b1b1d
4
+ data.tar.gz: 0c08d0f5bb7e9a33fe9c6ea1c5e1b264a4ffb582
5
5
  SHA512:
6
- metadata.gz: 53539968cf3fb6087024fc7b34d9a0774428ce11d4e329e8d43377d74936cb825d1d3762f4e1f0dd8d167ff19c9e0c09f15f44d79d03d6ba7b19572c923807e8
7
- data.tar.gz: 56dfaeae8234e9e064815bc627762b704bdaa495432150dd88408364b7e24c0b5a3ed2b0ac00d82e6ced5c570aa2905d86ccb0834523b0b24403f21a3276c48e
6
+ metadata.gz: 0a68746c066ebe7ba5a665535104959b9a5254c0ad5dd45b7138f5dd8182bfb58abfdb0f8aca11cd016e3e5962af2e9efbe480f01368b1b558c7c818ed8d0b70
7
+ data.tar.gz: 6bd62d5c70c33a83952baeb6c52e8a81c1c59e83360bdb76644faa63ca54491c58186a617a992eada62ce7629d7b0c93442dd323280fd5c8cb39ed9a457f7ee8
data/README.md CHANGED
@@ -18,7 +18,7 @@ Add the necessary library to `app/assets/javascripts/application.js`:
18
18
 
19
19
  ## What's included?
20
20
 
21
- lodash 4.16.1:
21
+ lodash 4.16.3:
22
22
 
23
23
  * lodash.core.js
24
24
  * lodash.core.min.js
@@ -1,5 +1,5 @@
1
1
  module LoDash
2
2
  module Rails
3
- VERSION = "4.16.1"
3
+ VERSION = "4.16.3"
4
4
  end
5
5
  end
@@ -13,9 +13,9 @@
13
13
  var undefined;
14
14
 
15
15
  /** Used as the semantic version number. */
16
- var VERSION = '4.16.1';
16
+ var VERSION = '4.16.3';
17
17
 
18
- /** Used as the `TypeError` message for "Functions" methods. */
18
+ /** Error message constants. */
19
19
  var FUNC_ERROR_TEXT = 'Expected a function';
20
20
 
21
21
  /** Used to compose bitmasks for function metadata. */
@@ -40,6 +40,7 @@
40
40
  genTag = '[object GeneratorFunction]',
41
41
  numberTag = '[object Number]',
42
42
  objectTag = '[object Object]',
43
+ proxyTag = '[object Proxy]',
43
44
  regexpTag = '[object RegExp]',
44
45
  stringTag = '[object String]';
45
46
 
@@ -352,6 +353,30 @@
352
353
  : new LodashWrapper(value);
353
354
  }
354
355
 
356
+ /**
357
+ * The base implementation of `_.create` without support for assigning
358
+ * properties to the created object.
359
+ *
360
+ * @private
361
+ * @param {Object} proto The object to inherit from.
362
+ * @returns {Object} Returns the new object.
363
+ */
364
+ var baseCreate = (function() {
365
+ function object() {}
366
+ return function(proto) {
367
+ if (!isObject(proto)) {
368
+ return {};
369
+ }
370
+ if (objectCreate) {
371
+ return objectCreate(proto);
372
+ }
373
+ object.prototype = proto;
374
+ var result = new object;
375
+ object.prototype = undefined;
376
+ return result;
377
+ };
378
+ }());
379
+
355
380
  /**
356
381
  * The base constructor for creating `lodash` wrapper objects.
357
382
  *
@@ -419,18 +444,6 @@
419
444
  object[key] = value;
420
445
  }
421
446
 
422
- /**
423
- * The base implementation of `_.create` without support for assigning
424
- * properties to the created object.
425
- *
426
- * @private
427
- * @param {Object} prototype The object to inherit from.
428
- * @returns {Object} Returns the new object.
429
- */
430
- function baseCreate(proto) {
431
- return isObject(proto) ? objectCreate(proto) : {};
432
- }
433
-
434
447
  /**
435
448
  * The base implementation of `_.delay` and `_.defer` which accepts `args`
436
449
  * to provide to `func`.
@@ -2676,7 +2689,7 @@
2676
2689
  // The use of `Object#toString` avoids issues with the `typeof` operator
2677
2690
  // in Safari 8-9 which returns 'object' for typed array and other constructors.
2678
2691
  var tag = isObject(value) ? objectToString.call(value) : '';
2679
- return tag == funcTag || tag == genTag;
2692
+ return tag == funcTag || tag == genTag || tag == proxyTag;
2680
2693
  }
2681
2694
 
2682
2695
  /**
@@ -3,26 +3,27 @@
3
3
  * lodash (Custom Build) /license | Underscore.js 1.8.3 underscorejs.org/LICENSE
4
4
  * Build: `lodash core -o ./dist/lodash.core.js`
5
5
  */
6
- ;(function(){function n(n,t){return n.push.apply(n,t),n}function t(n){return function(t){return null==t?tn:t[n]}}function r(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function e(n,t){return d(t,function(t){return n[t]})}function u(n){return n instanceof o?n:new o(n)}function o(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t}function i(n,t,r,e){return n===tn||P(n,pn[r])&&!sn.call(e,r)?t:n}function c(n){return K(n)?yn(n):{}}function f(n,t,r){if(typeof n!="function")throw new TypeError("Expected a function");
7
- return setTimeout(function(){n.apply(tn,r)},t)}function a(n,t){var r=true;return mn(n,function(n,e,u){return r=!!t(n,e,u)}),r}function l(n,t,r){for(var e=-1,u=n.length;++e<u;){var o=n[e],i=t(o);if(null!=i&&(c===tn?i===i:r(i,c)))var c=i,f=o}return f}function p(n,t){var r=[];return mn(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function s(t,r,e,u,o){var i=-1,c=t.length;for(e||(e=D),o||(o=[]);++i<c;){var f=t[i];0<r&&e(f)?1<r?s(f,r-1,e,u,o):n(o,f):u||(o[o.length]=f)}return o}function h(n,t){return n&&On(n,t,qn);
8
- }function v(n,t){return p(t,function(t){return H(n[t])})}function b(n,t){return n>t}function y(n,t,r,e,u){return n===t||(null==n||null==t||!K(n)&&!L(t)?n!==n&&t!==t:g(n,t,y,r,e,u))}function g(n,t,r,e,u,o){var i=Sn(n),c=Sn(t),f="[object Array]",a="[object Array]";i||(f=vn.call(n),f="[object Arguments]"==f?"[object Object]":f),c||(a=vn.call(t),a="[object Arguments]"==a?"[object Object]":a);var l="[object Object]"==f,c="[object Object]"==a,a=f==a;o||(o=[]);var p=En(o,function(t){return t[0]==n}),s=En(o,function(n){
9
- return n[0]==t});if(p&&s)return p[1]==t;if(o.push([n,t]),o.push([t,n]),a&&!l){if(i)r=B(n,t,r,e,u,o);else n:{switch(f){case"[object Boolean]":case"[object Date]":case"[object Number]":r=P(+n,+t);break n;case"[object Error]":r=n.name==t.name&&n.message==t.message;break n;case"[object RegExp]":case"[object String]":r=n==t+"";break n}r=false}return o.pop(),r}return 2&u||(i=l&&sn.call(n,"__wrapped__"),f=c&&sn.call(t,"__wrapped__"),!i&&!f)?!!a&&(r=R(n,t,r,e,u,o),o.pop(),r):(i=i?n.value():n,f=f?t.value():t,
10
- r=r(i,f,e,u,o),o.pop(),r)}function _(n){return typeof n=="function"?n:null==n?Z:(typeof n=="object"?m:t)(n)}function j(n,t){return n<t}function d(n,t){var r=-1,e=V(n)?Array(n.length):[];return mn(n,function(n,u,o){e[++r]=t(n,u,o)}),e}function m(n){var t=jn(n);return function(r){var e=t.length;if(null==r)return!e;for(r=Object(r);e--;){var u=t[e];if(!(u in r&&y(n[u],r[u],tn,3)))return false}return true}}function O(n,t){return n=Object(n),J(t,function(t,r){return r in n&&(t[r]=n[r]),t},{})}function x(n){return xn(q(n,void 0,Z),n+"");
11
- }function A(n,t,r){var e=-1,u=n.length;for(0>t&&(t=-t>u?0:u+t),r=r>u?u:r,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Array(u);++e<u;)r[e]=n[e+t];return r}function E(n){return A(n,0,n.length)}function w(n,t){var r;return mn(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function k(t,r){return J(r,function(t,r){return r.func.apply(r.thisArg,n([t],r.args))},t)}function N(n,t,r,e){var u=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var c=t[o],f=e?e(r[c],n[c],c,r,n):tn;if(f===tn&&(f=n[c]),u)r[c]=f;else{var a=r,l=a[c];
12
- sn.call(a,c)&&P(l,f)&&(f!==tn||c in a)||(a[c]=f)}}return r}function S(n){return x(function(t,r){var e=-1,u=r.length,o=1<u?r[u-1]:tn,o=3<n.length&&typeof o=="function"?(u--,o):tn;for(t=Object(t);++e<u;){var i=r[e];i&&n(t,i,e,o)}return t})}function T(n){return function(){var t=arguments,r=c(n.prototype),t=n.apply(r,t);return K(t)?t:r}}function F(n,t,r){function e(){for(var o=-1,i=arguments.length,c=-1,f=r.length,a=Array(f+i),l=this&&this!==cn&&this instanceof e?u:n;++c<f;)a[c]=r[c];for(;i--;)a[c++]=arguments[++o];
13
- return l.apply(t,a)}if(typeof n!="function")throw new TypeError("Expected a function");var u=T(n);return e}function B(n,t,r,e,u,o){var i=n.length,c=t.length;if(i!=c&&!(2&u&&c>i))return false;for(var c=-1,f=true,a=1&u?[]:tn;++c<i;){var l=n[c],p=t[c];if(void 0!==tn){f=false;break}if(a){if(!w(t,function(n,t){if(!C(a,t)&&(l===n||r(l,n,e,u,o)))return a.push(t)})){f=false;break}}else if(l!==p&&!r(l,p,e,u,o)){f=false;break}}return f}function R(n,t,r,e,u,o){var i=2&u,c=qn(n),f=c.length,a=qn(t).length;if(f!=a&&!i)return false;
14
- for(var l=f;l--;){var p=c[l];if(!(i?p in t:sn.call(t,p)))return false}for(a=true;++l<f;){var p=c[l],s=n[p],h=t[p];if(void 0!==tn||s!==h&&!r(s,h,e,u,o)){a=false;break}i||(i="constructor"==p)}return a&&!i&&(r=n.constructor,e=t.constructor,r!=e&&"constructor"in n&&"constructor"in t&&!(typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)&&(a=false)),a}function D(n){return Sn(n)||U(n)}function I(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}function q(n,t,r){return t=dn(t===tn?n.length-1:t,0),
15
- function(){for(var e=arguments,u=-1,o=dn(e.length-t,0),i=Array(o);++u<o;)i[u]=e[t+u];for(u=-1,o=Array(t+1);++u<t;)o[u]=e[u];return o[t]=r(i),n.apply(this,o)}}function $(n){return n&&n.length?s(n,1):[]}function z(n){return n&&n.length?n[0]:tn}function C(n,t,r){var e=n?n.length:0;r=typeof r=="number"?0>r?dn(e+r,0):r:0,r=(r||0)-1;for(var u=t===t;++r<e;){var o=n[r];if(u?o===t:o!==o)return r}return-1}function G(n,t){return mn(n,_(t))}function J(n,t,e){return r(n,_(t),e,3>arguments.length,mn)}function M(n,t){
16
- var r;if(typeof t!="function")throw new TypeError("Expected a function");return n=Tn(n),function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=tn),r}}function P(n,t){return n===t||n!==n&&t!==t}function U(n){return L(n)&&V(n)&&sn.call(n,"callee")&&(!gn.call(n,"callee")||"[object Arguments]"==vn.call(n))}function V(n){var t;return(t=null!=n)&&(t=n.length,t=typeof t=="number"&&-1<t&&0==t%1&&9007199254740991>=t),t&&!H(n)}function H(n){return n=K(n)?vn.call(n):"","[object Function]"==n||"[object GeneratorFunction]"==n;
17
- }function K(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function L(n){return null!=n&&typeof n=="object"}function Q(n){return typeof n=="number"||L(n)&&"[object Number]"==vn.call(n)}function W(n){return typeof n=="string"||!Sn(n)&&L(n)&&"[object String]"==vn.call(n)}function X(n){return typeof n=="string"?n:null==n?"":n+""}function Y(n){return n?e(n,qn(n)):[]}function Z(n){return n}function nn(t,r,e){var u=qn(r),o=v(r,u);null!=e||K(r)&&(o.length||!u.length)||(e=r,r=t,t=this,o=v(r,qn(r)));
18
- var i=!(K(e)&&"chain"in e&&!e.chain),c=H(t);return mn(o,function(e){var u=r[e];t[e]=u,c&&(t.prototype[e]=function(){var r=this.__chain__;if(i||r){var e=t(this.__wrapped__);return(e.__actions__=E(this.__actions__)).push({func:u,args:arguments,thisArg:t}),e.__chain__=r,e}return u.apply(t,n([this.value()],arguments))})}),t}var tn,rn=1/0,en=/[&<>"']/g,un=RegExp(en.source),on=typeof self=="object"&&self&&self.Object===Object&&self,cn=typeof global=="object"&&global&&global.Object===Object&&global||on||Function("return this")(),fn=(on=typeof exports=="object"&&exports&&!exports.nodeType&&exports)&&typeof module=="object"&&module&&!module.nodeType&&module,an=function(n){
19
- return function(t){return null==n?tn:n[t]}}({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),ln=Array.prototype,pn=Object.prototype,sn=pn.hasOwnProperty,hn=0,vn=pn.toString,bn=cn._,yn=Object.create,gn=pn.propertyIsEnumerable,_n=cn.isFinite,jn=function(n,t){return function(r){return n(t(r))}}(Object.keys,Object),dn=Math.max;o.prototype=c(u.prototype),o.prototype.constructor=o;var mn=function(n,t){return function(r,e){if(null==r)return r;if(!V(r))return n(r,e);for(var u=r.length,o=t?u:-1,i=Object(r);(t?o--:++o<u)&&false!==e(i[o],o,i););
20
- return r}}(h),On=function(n){return function(t,r,e){var u=-1,o=Object(t);e=e(t);for(var i=e.length;i--;){var c=e[n?i:++u];if(false===r(o[c],c,o))break}return t}}(),xn=Z,An=String,En=function(n){return function(t,r,e){var u=Object(t);if(!V(t)){var o=_(r);t=qn(t),r=function(n){return o(u[n],n,u)}}return r=n(t,r,e),-1<r?u[o?t[r]:r]:tn}}(function(n,t,r){var e=n?n.length:0;if(!e)return-1;r=null==r?0:Tn(r),0>r&&(r=dn(e+r,0));n:{for(t=_(t),e=n.length,r+=-1;++r<e;)if(t(n[r],r,n)){n=r;break n}n=-1}return n}),wn=x(function(n,t,r){
21
- return F(n,t,r)}),kn=x(function(n,t){return f(n,1,t)}),Nn=x(function(n,t,r){return f(n,Fn(t)||0,r)}),Sn=Array.isArray,Tn=Number,Fn=Number,Bn=S(function(n,t){N(t,jn(t),n)}),Rn=S(function(n,t){N(t,I(t),n)}),Dn=S(function(n,t,r,e){N(t,$n(t),n,e)}),In=x(function(n){return n.push(tn,i),Dn.apply(tn,n)}),qn=jn,$n=I,zn=function(n){return xn(q(n,tn,$),n+"")}(function(n,t){return null==n?{}:O(n,d(t,An))});u.assignIn=Rn,u.before=M,u.bind=wn,u.chain=function(n){return n=u(n),n.__chain__=true,n},u.compact=function(n){
22
- return p(n,Boolean)},u.concat=function(){var t=arguments.length;if(!t)return[];for(var r=Array(t-1),e=arguments[0];t--;)r[t-1]=arguments[t];return n(Sn(e)?E(e):[e],s(r,1))},u.create=function(n,t){var r=c(n);return t?Bn(r,t):r},u.defaults=In,u.defer=kn,u.delay=Nn,u.filter=function(n,t){return p(n,_(t))},u.flatten=$,u.flattenDeep=function(n){return n&&n.length?s(n,rn):[]},u.iteratee=_,u.keys=qn,u.map=function(n,t){return d(n,_(t))},u.matches=function(n){return m(Bn({},n))},u.mixin=nn,u.negate=function(n){
23
- if(typeof n!="function")throw new TypeError("Expected a function");return function(){return!n.apply(this,arguments)}},u.once=function(n){return M(2,n)},u.pick=zn,u.slice=function(n,t,r){var e=n?n.length:0;return r=r===tn?e:+r,e?A(n,null==t?0:+t,r):[]},u.sortBy=function(n,r){var e=0;return r=_(r),d(d(n,function(n,t,u){return{value:n,index:e++,criteria:r(n,t,u)}}).sort(function(n,t){var r;n:{r=n.criteria;var e=t.criteria;if(r!==e){var u=r!==tn,o=null===r,i=r===r,c=e!==tn,f=null===e,a=e===e;if(!f&&r>e||o&&c&&a||!u&&a||!i){
24
- r=1;break n}if(!o&&r<e||f&&u&&i||!c&&i||!a){r=-1;break n}}r=0}return r||n.index-t.index}),t("value"))},u.tap=function(n,t){return t(n),n},u.thru=function(n,t){return t(n)},u.toArray=function(n){return V(n)?n.length?E(n):[]:Y(n)},u.values=Y,u.extend=Rn,nn(u,u),u.clone=function(n){return K(n)?Sn(n)?E(n):N(n,jn(n)):n},u.escape=function(n){return(n=X(n))&&un.test(n)?n.replace(en,an):n},u.every=function(n,t,r){return t=r?tn:t,a(n,_(t))},u.find=En,u.forEach=G,u.has=function(n,t){return null!=n&&sn.call(n,t);
25
- },u.head=z,u.identity=Z,u.indexOf=C,u.isArguments=U,u.isArray=Sn,u.isBoolean=function(n){return true===n||false===n||L(n)&&"[object Boolean]"==vn.call(n)},u.isDate=function(n){return L(n)&&"[object Date]"==vn.call(n)},u.isEmpty=function(n){return V(n)&&(Sn(n)||W(n)||H(n.splice)||U(n))?!n.length:!jn(n).length},u.isEqual=function(n,t){return y(n,t)},u.isFinite=function(n){return typeof n=="number"&&_n(n)},u.isFunction=H,u.isNaN=function(n){return Q(n)&&n!=+n},u.isNull=function(n){return null===n},u.isNumber=Q,
26
- u.isObject=K,u.isRegExp=function(n){return K(n)&&"[object RegExp]"==vn.call(n)},u.isString=W,u.isUndefined=function(n){return n===tn},u.last=function(n){var t=n?n.length:0;return t?n[t-1]:tn},u.max=function(n){return n&&n.length?l(n,Z,b):tn},u.min=function(n){return n&&n.length?l(n,Z,j):tn},u.noConflict=function(){return cn._===this&&(cn._=bn),this},u.noop=function(){},u.reduce=J,u.result=function(n,t,r){return t=null==n?tn:n[t],t===tn&&(t=r),H(t)?t.call(n):t},u.size=function(n){return null==n?0:(n=V(n)?n:jn(n),
27
- n.length)},u.some=function(n,t,r){return t=r?tn:t,w(n,_(t))},u.uniqueId=function(n){var t=++hn;return X(n)+t},u.each=G,u.first=z,nn(u,function(){var n={};return h(u,function(t,r){sn.call(u.prototype,r)||(n[r]=t)}),n}(),{chain:false}),u.VERSION="4.16.1",mn("pop join replace reverse split push shift sort splice unshift".split(" "),function(n){var t=(/^(?:replace|split)$/.test(n)?String.prototype:ln)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|join|replace|shift)$/.test(n);u.prototype[n]=function(){
28
- var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Sn(u)?u:[],n)}return this[r](function(r){return t.apply(Sn(r)?r:[],n)})}}),u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=function(){return k(this.__wrapped__,this.__actions__)},typeof define=="function"&&typeof define.amd=="object"&&define.amd?(cn._=u, define(function(){return u})):fn?((fn.exports=u)._=u,on._=u):cn._=u}).call(this);
6
+ ;(function(){function n(n,t){return n.push.apply(n,t),n}function t(n){return function(t){return null==t?nn:t[n]}}function r(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function e(n,t){return j(t,function(t){return n[t]})}function u(n){return n instanceof o?n:new o(n)}function o(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t}function i(n,t,r,e){return n===nn||J(n,ln[r])&&!pn.call(e,r)?t:n}function c(n,t,r){if(typeof n!="function")throw new TypeError("Expected a function");
7
+ return setTimeout(function(){n.apply(nn,r)},t)}function f(n,t){var r=true;return mn(n,function(n,e,u){return r=!!t(n,e,u)}),r}function a(n,t,r){for(var e=-1,u=n.length;++e<u;){var o=n[e],i=t(o);if(null!=i&&(c===nn?i===i:r(i,c)))var c=i,f=o}return f}function l(n,t){var r=[];return mn(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function p(t,r,e,u,o){var i=-1,c=t.length;for(e||(e=R),o||(o=[]);++i<c;){var f=t[i];0<r&&e(f)?1<r?p(f,r-1,e,u,o):n(o,f):u||(o[o.length]=f)}return o}function s(n,t){return n&&On(n,t,qn);
8
+ }function h(n,t){return l(t,function(t){return V(n[t])})}function v(n,t){return n>t}function y(n,t,r,e,u){return n===t||(null==n||null==t||!H(n)&&!K(t)?n!==n&&t!==t:b(n,t,y,r,e,u))}function b(n,t,r,e,u,o){var i=Sn(n),c=Sn(t),f="[object Array]",a="[object Array]";i||(f=hn.call(n),f="[object Arguments]"==f?"[object Object]":f),c||(a=hn.call(t),a="[object Arguments]"==a?"[object Object]":a);var l="[object Object]"==f,c="[object Object]"==a,a=f==a;o||(o=[]);var p=En(o,function(t){return t[0]==n}),s=En(o,function(n){
9
+ return n[0]==t});if(p&&s)return p[1]==t;if(o.push([n,t]),o.push([t,n]),a&&!l){if(i)r=F(n,t,r,e,u,o);else n:{switch(f){case"[object Boolean]":case"[object Date]":case"[object Number]":r=J(+n,+t);break n;case"[object Error]":r=n.name==t.name&&n.message==t.message;break n;case"[object RegExp]":case"[object String]":r=n==t+"";break n}r=false}return o.pop(),r}return 2&u||(i=l&&pn.call(n,"__wrapped__"),f=c&&pn.call(t,"__wrapped__"),!i&&!f)?!!a&&(r=B(n,t,r,e,u,o),o.pop(),r):(i=i?n.value():n,f=f?t.value():t,
10
+ r=r(i,f,e,u,o),o.pop(),r)}function g(n){return typeof n=="function"?n:null==n?Y:(typeof n=="object"?d:t)(n)}function _(n,t){return n<t}function j(n,t){var r=-1,e=U(n)?Array(n.length):[];return mn(n,function(n,u,o){e[++r]=t(n,u,o)}),e}function d(n){var t=_n(n);return function(r){var e=t.length;if(null==r)return!e;for(r=Object(r);e--;){var u=t[e];if(!(u in r&&y(n[u],r[u],nn,3)))return false}return true}}function m(n,t){return n=Object(n),C(t,function(t,r){return r in n&&(t[r]=n[r]),t},{})}function O(n){return xn(I(n,void 0,Y),n+"");
11
+ }function x(n,t,r){var e=-1,u=n.length;for(0>t&&(t=-t>u?0:u+t),r=r>u?u:r,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Array(u);++e<u;)r[e]=n[e+t];return r}function A(n){return x(n,0,n.length)}function E(n,t){var r;return mn(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function w(t,r){return C(r,function(t,r){return r.func.apply(r.thisArg,n([t],r.args))},t)}function k(n,t,r,e){var u=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var c=t[o],f=e?e(r[c],n[c],c,r,n):nn;if(f===nn&&(f=n[c]),u)r[c]=f;else{var a=r,l=a[c];
12
+ pn.call(a,c)&&J(l,f)&&(f!==nn||c in a)||(a[c]=f)}}return r}function N(n){return O(function(t,r){var e=-1,u=r.length,o=1<u?r[u-1]:nn,o=3<n.length&&typeof o=="function"?(u--,o):nn;for(t=Object(t);++e<u;){var i=r[e];i&&n(t,i,e,o)}return t})}function S(n){return function(){var t=arguments,r=dn(n.prototype),t=n.apply(r,t);return H(t)?t:r}}function T(n,t,r){function e(){for(var o=-1,i=arguments.length,c=-1,f=r.length,a=Array(f+i),l=this&&this!==on&&this instanceof e?u:n;++c<f;)a[c]=r[c];for(;i--;)a[c++]=arguments[++o];
13
+ return l.apply(t,a)}if(typeof n!="function")throw new TypeError("Expected a function");var u=S(n);return e}function F(n,t,r,e,u,o){var i=n.length,c=t.length;if(i!=c&&!(2&u&&c>i))return false;for(var c=-1,f=true,a=1&u?[]:nn;++c<i;){var l=n[c],p=t[c];if(void 0!==nn){f=false;break}if(a){if(!E(t,function(n,t){if(!P(a,t)&&(l===n||r(l,n,e,u,o)))return a.push(t)})){f=false;break}}else if(l!==p&&!r(l,p,e,u,o)){f=false;break}}return f}function B(n,t,r,e,u,o){var i=2&u,c=qn(n),f=c.length,a=qn(t).length;if(f!=a&&!i)return false;
14
+ for(var l=f;l--;){var p=c[l];if(!(i?p in t:pn.call(t,p)))return false}for(a=true;++l<f;){var p=c[l],s=n[p],h=t[p];if(void 0!==nn||s!==h&&!r(s,h,e,u,o)){a=false;break}i||(i="constructor"==p)}return a&&!i&&(r=n.constructor,e=t.constructor,r!=e&&"constructor"in n&&"constructor"in t&&!(typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)&&(a=false)),a}function R(n){return Sn(n)||M(n)}function D(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}function I(n,t,r){return t=jn(t===nn?n.length-1:t,0),
15
+ function(){for(var e=arguments,u=-1,o=jn(e.length-t,0),i=Array(o);++u<o;)i[u]=e[t+u];for(u=-1,o=Array(t+1);++u<t;)o[u]=e[u];return o[t]=r(i),n.apply(this,o)}}function q(n){return n&&n.length?p(n,1):[]}function $(n){return n&&n.length?n[0]:nn}function P(n,t,r){var e=n?n.length:0;r=typeof r=="number"?0>r?jn(e+r,0):r:0,r=(r||0)-1;for(var u=t===t;++r<e;){var o=n[r];if(u?o===t:o!==o)return r}return-1}function z(n,t){return mn(n,g(t))}function C(n,t,e){return r(n,g(t),e,3>arguments.length,mn)}function G(n,t){
16
+ var r;if(typeof t!="function")throw new TypeError("Expected a function");return n=Tn(n),function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=nn),r}}function J(n,t){return n===t||n!==n&&t!==t}function M(n){return K(n)&&U(n)&&pn.call(n,"callee")&&(!bn.call(n,"callee")||"[object Arguments]"==hn.call(n))}function U(n){var t;return(t=null!=n)&&(t=n.length,t=typeof t=="number"&&-1<t&&0==t%1&&9007199254740991>=t),t&&!V(n)}function V(n){return n=H(n)?hn.call(n):"","[object Function]"==n||"[object GeneratorFunction]"==n||"[object Proxy]"==n;
17
+ }function H(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function K(n){return null!=n&&typeof n=="object"}function L(n){return typeof n=="number"||K(n)&&"[object Number]"==hn.call(n)}function Q(n){return typeof n=="string"||!Sn(n)&&K(n)&&"[object String]"==hn.call(n)}function W(n){return typeof n=="string"?n:null==n?"":n+""}function X(n){return n?e(n,qn(n)):[]}function Y(n){return n}function Z(t,r,e){var u=qn(r),o=h(r,u);null!=e||H(r)&&(o.length||!u.length)||(e=r,r=t,t=this,o=h(r,qn(r)));
18
+ var i=!(H(e)&&"chain"in e&&!e.chain),c=V(t);return mn(o,function(e){var u=r[e];t[e]=u,c&&(t.prototype[e]=function(){var r=this.__chain__;if(i||r){var e=t(this.__wrapped__);return(e.__actions__=A(this.__actions__)).push({func:u,args:arguments,thisArg:t}),e.__chain__=r,e}return u.apply(t,n([this.value()],arguments))})}),t}var nn,tn=1/0,rn=/[&<>"']/g,en=RegExp(rn.source),un=typeof self=="object"&&self&&self.Object===Object&&self,on=typeof global=="object"&&global&&global.Object===Object&&global||un||Function("return this")(),cn=(un=typeof exports=="object"&&exports&&!exports.nodeType&&exports)&&typeof module=="object"&&module&&!module.nodeType&&module,fn=function(n){
19
+ return function(t){return null==n?nn:n[t]}}({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),an=Array.prototype,ln=Object.prototype,pn=ln.hasOwnProperty,sn=0,hn=ln.toString,vn=on._,yn=Object.create,bn=ln.propertyIsEnumerable,gn=on.isFinite,_n=function(n,t){return function(r){return n(t(r))}}(Object.keys,Object),jn=Math.max,dn=function(){function n(){}return function(t){return H(t)?yn?yn(t):(n.prototype=t,t=new n,n.prototype=nn,t):{}}}();o.prototype=dn(u.prototype),o.prototype.constructor=o;
20
+ var mn=function(n,t){return function(r,e){if(null==r)return r;if(!U(r))return n(r,e);for(var u=r.length,o=t?u:-1,i=Object(r);(t?o--:++o<u)&&false!==e(i[o],o,i););return r}}(s),On=function(n){return function(t,r,e){var u=-1,o=Object(t);e=e(t);for(var i=e.length;i--;){var c=e[n?i:++u];if(false===r(o[c],c,o))break}return t}}(),xn=Y,An=String,En=function(n){return function(t,r,e){var u=Object(t);if(!U(t)){var o=g(r);t=qn(t),r=function(n){return o(u[n],n,u)}}return r=n(t,r,e),-1<r?u[o?t[r]:r]:nn}}(function(n,t,r){
21
+ var e=n?n.length:0;if(!e)return-1;r=null==r?0:Tn(r),0>r&&(r=jn(e+r,0));n:{for(t=g(t),e=n.length,r+=-1;++r<e;)if(t(n[r],r,n)){n=r;break n}n=-1}return n}),wn=O(function(n,t,r){return T(n,t,r)}),kn=O(function(n,t){return c(n,1,t)}),Nn=O(function(n,t,r){return c(n,Fn(t)||0,r)}),Sn=Array.isArray,Tn=Number,Fn=Number,Bn=N(function(n,t){k(t,_n(t),n)}),Rn=N(function(n,t){k(t,D(t),n)}),Dn=N(function(n,t,r,e){k(t,$n(t),n,e)}),In=O(function(n){return n.push(nn,i),Dn.apply(nn,n)}),qn=_n,$n=D,Pn=function(n){return xn(I(n,nn,q),n+"");
22
+ }(function(n,t){return null==n?{}:m(n,j(t,An))});u.assignIn=Rn,u.before=G,u.bind=wn,u.chain=function(n){return n=u(n),n.__chain__=true,n},u.compact=function(n){return l(n,Boolean)},u.concat=function(){var t=arguments.length;if(!t)return[];for(var r=Array(t-1),e=arguments[0];t--;)r[t-1]=arguments[t];return n(Sn(e)?A(e):[e],p(r,1))},u.create=function(n,t){var r=dn(n);return t?Bn(r,t):r},u.defaults=In,u.defer=kn,u.delay=Nn,u.filter=function(n,t){return l(n,g(t))},u.flatten=q,u.flattenDeep=function(n){
23
+ return n&&n.length?p(n,tn):[]},u.iteratee=g,u.keys=qn,u.map=function(n,t){return j(n,g(t))},u.matches=function(n){return d(Bn({},n))},u.mixin=Z,u.negate=function(n){if(typeof n!="function")throw new TypeError("Expected a function");return function(){return!n.apply(this,arguments)}},u.once=function(n){return G(2,n)},u.pick=Pn,u.slice=function(n,t,r){var e=n?n.length:0;return r=r===nn?e:+r,e?x(n,null==t?0:+t,r):[]},u.sortBy=function(n,r){var e=0;return r=g(r),j(j(n,function(n,t,u){return{value:n,index:e++,
24
+ criteria:r(n,t,u)}}).sort(function(n,t){var r;n:{r=n.criteria;var e=t.criteria;if(r!==e){var u=r!==nn,o=null===r,i=r===r,c=e!==nn,f=null===e,a=e===e;if(!f&&r>e||o&&c&&a||!u&&a||!i){r=1;break n}if(!o&&r<e||f&&u&&i||!c&&i||!a){r=-1;break n}}r=0}return r||n.index-t.index}),t("value"))},u.tap=function(n,t){return t(n),n},u.thru=function(n,t){return t(n)},u.toArray=function(n){return U(n)?n.length?A(n):[]:X(n)},u.values=X,u.extend=Rn,Z(u,u),u.clone=function(n){return H(n)?Sn(n)?A(n):k(n,_n(n)):n},u.escape=function(n){
25
+ return(n=W(n))&&en.test(n)?n.replace(rn,fn):n},u.every=function(n,t,r){return t=r?nn:t,f(n,g(t))},u.find=En,u.forEach=z,u.has=function(n,t){return null!=n&&pn.call(n,t)},u.head=$,u.identity=Y,u.indexOf=P,u.isArguments=M,u.isArray=Sn,u.isBoolean=function(n){return true===n||false===n||K(n)&&"[object Boolean]"==hn.call(n)},u.isDate=function(n){return K(n)&&"[object Date]"==hn.call(n)},u.isEmpty=function(n){return U(n)&&(Sn(n)||Q(n)||V(n.splice)||M(n))?!n.length:!_n(n).length},u.isEqual=function(n,t){return y(n,t);
26
+ },u.isFinite=function(n){return typeof n=="number"&&gn(n)},u.isFunction=V,u.isNaN=function(n){return L(n)&&n!=+n},u.isNull=function(n){return null===n},u.isNumber=L,u.isObject=H,u.isRegExp=function(n){return H(n)&&"[object RegExp]"==hn.call(n)},u.isString=Q,u.isUndefined=function(n){return n===nn},u.last=function(n){var t=n?n.length:0;return t?n[t-1]:nn},u.max=function(n){return n&&n.length?a(n,Y,v):nn},u.min=function(n){return n&&n.length?a(n,Y,_):nn},u.noConflict=function(){return on._===this&&(on._=vn),
27
+ this},u.noop=function(){},u.reduce=C,u.result=function(n,t,r){return t=null==n?nn:n[t],t===nn&&(t=r),V(t)?t.call(n):t},u.size=function(n){return null==n?0:(n=U(n)?n:_n(n),n.length)},u.some=function(n,t,r){return t=r?nn:t,E(n,g(t))},u.uniqueId=function(n){var t=++sn;return W(n)+t},u.each=z,u.first=$,Z(u,function(){var n={};return s(u,function(t,r){pn.call(u.prototype,r)||(n[r]=t)}),n}(),{chain:false}),u.VERSION="4.16.3",mn("pop join replace reverse split push shift sort splice unshift".split(" "),function(n){
28
+ var t=(/^(?:replace|split)$/.test(n)?String.prototype:an)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|join|replace|shift)$/.test(n);u.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Sn(u)?u:[],n)}return this[r](function(r){return t.apply(Sn(r)?r:[],n)})}}),u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=function(){return w(this.__wrapped__,this.__actions__)},typeof define=="function"&&typeof define.amd=="object"&&define.amd?(on._=u,
29
+ define(function(){return u})):cn?((cn.exports=u)._=u,un._=u):on._=u}).call(this);
@@ -12,13 +12,14 @@
12
12
  var undefined;
13
13
 
14
14
  /** Used as the semantic version number. */
15
- var VERSION = '4.16.1';
15
+ var VERSION = '4.16.3';
16
16
 
17
17
  /** Used as the size to enable large array optimizations. */
18
18
  var LARGE_ARRAY_SIZE = 200;
19
19
 
20
- /** Used as the `TypeError` message for "Functions" methods. */
21
- var FUNC_ERROR_TEXT = 'Expected a function';
20
+ /** Error message constants. */
21
+ var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://github.com/es-shims.',
22
+ FUNC_ERROR_TEXT = 'Expected a function';
22
23
 
23
24
  /** Used to stand-in for `undefined` hash values. */
24
25
  var HASH_UNDEFINED = '__lodash_hash_undefined__';
@@ -94,6 +95,7 @@
94
95
  numberTag = '[object Number]',
95
96
  objectTag = '[object Object]',
96
97
  promiseTag = '[object Promise]',
98
+ proxyTag = '[object Proxy]',
97
99
  regexpTag = '[object RegExp]',
98
100
  setTag = '[object Set]',
99
101
  stringTag = '[object String]',
@@ -1467,7 +1469,7 @@
1467
1469
  var Buffer = moduleExports ? context.Buffer : undefined,
1468
1470
  Symbol = context.Symbol,
1469
1471
  Uint8Array = context.Uint8Array,
1470
- defineProperty = Object.defineProperty,
1472
+ allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
1471
1473
  getPrototype = overArg(Object.getPrototypeOf, Object),
1472
1474
  iteratorSymbol = Symbol ? Symbol.iterator : undefined,
1473
1475
  objectCreate = Object.create,
@@ -1475,6 +1477,14 @@
1475
1477
  splice = arrayProto.splice,
1476
1478
  spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
1477
1479
 
1480
+ var defineProperty = (function() {
1481
+ try {
1482
+ var func = getNative(Object, 'defineProperty');
1483
+ func({}, '', {});
1484
+ return func;
1485
+ } catch (e) {}
1486
+ }());
1487
+
1478
1488
  /** Mocked built-ins. */
1479
1489
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
1480
1490
  ctxNow = Date && Date.now !== root.Date.now && Date.now,
@@ -1501,8 +1511,7 @@
1501
1511
  Promise = getNative(context, 'Promise'),
1502
1512
  Set = getNative(context, 'Set'),
1503
1513
  WeakMap = getNative(context, 'WeakMap'),
1504
- nativeCreate = getNative(Object, 'create'),
1505
- nativeDefineProperty = getNative(Object, 'defineProperty');
1514
+ nativeCreate = getNative(Object, 'create');
1506
1515
 
1507
1516
  /** Used to store function metadata. */
1508
1517
  var metaMap = WeakMap && new WeakMap;
@@ -1653,6 +1662,30 @@
1653
1662
  return new LodashWrapper(value);
1654
1663
  }
1655
1664
 
1665
+ /**
1666
+ * The base implementation of `_.create` without support for assigning
1667
+ * properties to the created object.
1668
+ *
1669
+ * @private
1670
+ * @param {Object} proto The object to inherit from.
1671
+ * @returns {Object} Returns the new object.
1672
+ */
1673
+ var baseCreate = (function() {
1674
+ function object() {}
1675
+ return function(proto) {
1676
+ if (!isObject(proto)) {
1677
+ return {};
1678
+ }
1679
+ if (objectCreate) {
1680
+ return objectCreate(proto);
1681
+ }
1682
+ object.prototype = proto;
1683
+ var result = new object;
1684
+ object.prototype = undefined;
1685
+ return result;
1686
+ };
1687
+ }());
1688
+
1656
1689
  /**
1657
1690
  * The function whose prototype chain sequence wrappers inherit from.
1658
1691
  *
@@ -2373,8 +2406,7 @@
2373
2406
  }
2374
2407
 
2375
2408
  /**
2376
- * A specialized version of `_.sample` for arrays without support for iteratee
2377
- * shorthands.
2409
+ * A specialized version of `_.sample` for arrays.
2378
2410
  *
2379
2411
  * @private
2380
2412
  * @param {Array} array The array to sample.
@@ -2394,9 +2426,7 @@
2394
2426
  * @returns {Array} Returns the random elements.
2395
2427
  */
2396
2428
  function arraySampleSize(array, n) {
2397
- var result = arrayShuffle(array);
2398
- result.length = baseClamp(n, 0, result.length);
2399
- return result;
2429
+ return shuffleSelf(copyArray(array), n);
2400
2430
  }
2401
2431
 
2402
2432
  /**
@@ -2439,7 +2469,7 @@
2439
2469
  */
2440
2470
  function assignMergeValue(object, key, value) {
2441
2471
  if ((value !== undefined && !eq(object[key], value)) ||
2442
- (typeof key == 'number' && value === undefined && !(key in object))) {
2472
+ (value === undefined && !(key in object))) {
2443
2473
  baseAssignValue(object, key, value);
2444
2474
  }
2445
2475
  }
@@ -2686,18 +2716,6 @@
2686
2716
  return true;
2687
2717
  }
2688
2718
 
2689
- /**
2690
- * The base implementation of `_.create` without support for assigning
2691
- * properties to the created object.
2692
- *
2693
- * @private
2694
- * @param {Object} prototype The object to inherit from.
2695
- * @returns {Object} Returns the new object.
2696
- */
2697
- function baseCreate(proto) {
2698
- return isObject(proto) ? objectCreate(proto) : {};
2699
- }
2700
-
2701
2719
  /**
2702
2720
  * The base implementation of `_.delay` and `_.defer` which accepts `args`
2703
2721
  * to provide to `func`.
@@ -3260,6 +3278,13 @@
3260
3278
  othIsObj = othTag == objectTag,
3261
3279
  isSameTag = objTag == othTag;
3262
3280
 
3281
+ if (isSameTag && isBuffer(object)) {
3282
+ if (!isBuffer(other)) {
3283
+ return false;
3284
+ }
3285
+ objIsArr = true;
3286
+ objIsObj = false;
3287
+ }
3263
3288
  if (isSameTag && !objIsObj) {
3264
3289
  stack || (stack = new Stack);
3265
3290
  return (objIsArr || isTypedArray(object))
@@ -3605,29 +3630,32 @@
3605
3630
  var isCommon = newValue === undefined;
3606
3631
 
3607
3632
  if (isCommon) {
3633
+ var isArr = isArray(srcValue),
3634
+ isTyped = !isArr && isTypedArray(srcValue);
3635
+
3608
3636
  newValue = srcValue;
3609
- if (isArray(srcValue) || isTypedArray(srcValue)) {
3637
+ if (isArr || isTyped) {
3610
3638
  if (isArray(objValue)) {
3611
3639
  newValue = objValue;
3612
3640
  }
3613
3641
  else if (isArrayLikeObject(objValue)) {
3614
3642
  newValue = copyArray(objValue);
3615
3643
  }
3616
- else {
3644
+ else if (isTyped) {
3617
3645
  isCommon = false;
3618
- newValue = baseClone(srcValue, true);
3646
+ newValue = cloneTypedArray(srcValue, true);
3647
+ }
3648
+ else {
3649
+ newValue = [];
3619
3650
  }
3620
3651
  }
3621
3652
  else if (isPlainObject(srcValue) || isArguments(srcValue)) {
3653
+ newValue = objValue;
3622
3654
  if (isArguments(objValue)) {
3623
3655
  newValue = toPlainObject(objValue);
3624
3656
  }
3625
3657
  else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {
3626
- isCommon = false;
3627
- newValue = baseClone(srcValue, true);
3628
- }
3629
- else {
3630
- newValue = objValue;
3658
+ newValue = initCloneObject(srcValue);
3631
3659
  }
3632
3660
  }
3633
3661
  else {
@@ -3889,6 +3917,29 @@
3889
3917
  return setToString(overRest(func, start, identity), func + '');
3890
3918
  }
3891
3919
 
3920
+ /**
3921
+ * The base implementation of `_.sample`.
3922
+ *
3923
+ * @private
3924
+ * @param {Array|Object} collection The collection to sample.
3925
+ * @returns {*} Returns the random element.
3926
+ */
3927
+ function baseSample(collection) {
3928
+ return arraySample(values(collection));
3929
+ }
3930
+
3931
+ /**
3932
+ * The base implementation of `_.sampleSize` without param guards.
3933
+ *
3934
+ * @private
3935
+ * @param {Array|Object} collection The collection to sample.
3936
+ * @param {number} n The number of elements to sample.
3937
+ * @returns {Array} Returns the random elements.
3938
+ */
3939
+ function baseSampleSize(collection, n) {
3940
+ return shuffleSelf(values(collection), n);
3941
+ }
3942
+
3892
3943
  /**
3893
3944
  * The base implementation of `_.set`.
3894
3945
  *
@@ -3950,8 +4001,8 @@
3950
4001
  * @param {Function} string The `toString` result.
3951
4002
  * @returns {Function} Returns `func`.
3952
4003
  */
3953
- var baseSetToString = !nativeDefineProperty ? identity : function(func, string) {
3954
- return nativeDefineProperty(func, 'toString', {
4004
+ var baseSetToString = !defineProperty ? identity : function(func, string) {
4005
+ return defineProperty(func, 'toString', {
3955
4006
  'configurable': true,
3956
4007
  'enumerable': false,
3957
4008
  'value': constant(string),
@@ -3959,6 +4010,17 @@
3959
4010
  });
3960
4011
  };
3961
4012
 
4013
+ /**
4014
+ * The base implementation of `_.shuffle`.
4015
+ *
4016
+ * @private
4017
+ * @param {Array|Object} collection The collection to shuffle.
4018
+ * @returns {Array} Returns the new shuffled array.
4019
+ */
4020
+ function baseShuffle(collection) {
4021
+ return shuffleSelf(values(collection));
4022
+ }
4023
+
3962
4024
  /**
3963
4025
  * The base implementation of `_.slice` without an iteratee call guard.
3964
4026
  *
@@ -4421,7 +4483,9 @@
4421
4483
  if (isDeep) {
4422
4484
  return buffer.slice();
4423
4485
  }
4424
- var result = new buffer.constructor(buffer.length);
4486
+ var length = buffer.length,
4487
+ result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
4488
+
4425
4489
  buffer.copy(result);
4426
4490
  return result;
4427
4491
  }
@@ -6533,24 +6597,27 @@
6533
6597
  }
6534
6598
 
6535
6599
  /**
6536
- * A specialized version of `arrayShuffle` which mutates `array`.
6600
+ * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
6537
6601
  *
6538
6602
  * @private
6539
6603
  * @param {Array} array The array to shuffle.
6604
+ * @param {number} [size=array.length] The size of `array`.
6540
6605
  * @returns {Array} Returns `array`.
6541
6606
  */
6542
- function shuffleSelf(array) {
6607
+ function shuffleSelf(array, size) {
6543
6608
  var index = -1,
6544
6609
  length = array.length,
6545
6610
  lastIndex = length - 1;
6546
6611
 
6547
- while (++index < length) {
6612
+ size = size === undefined ? length : baseClamp(size, 0, length);
6613
+ while (++index < size) {
6548
6614
  var rand = baseRandom(index, lastIndex),
6549
6615
  value = array[rand];
6550
6616
 
6551
6617
  array[rand] = array[index];
6552
6618
  array[index] = value;
6553
6619
  }
6620
+ array.length = size;
6554
6621
  return array;
6555
6622
  }
6556
6623
 
@@ -9628,7 +9695,8 @@
9628
9695
  * // => 2
9629
9696
  */
9630
9697
  function sample(collection) {
9631
- return arraySample(isArrayLike(collection) ? collection : values(collection));
9698
+ var func = isArray(collection) ? arraySample : baseSample;
9699
+ return func(collection);
9632
9700
  }
9633
9701
 
9634
9702
  /**
@@ -9657,7 +9725,8 @@
9657
9725
  } else {
9658
9726
  n = toInteger(n);
9659
9727
  }
9660
- return arraySampleSize(isArrayLike(collection) ? collection : values(collection), n);
9728
+ var func = isArray(collection) ? arraySampleSize : baseSampleSize;
9729
+ return func(collection, n);
9661
9730
  }
9662
9731
 
9663
9732
  /**
@@ -9676,10 +9745,8 @@
9676
9745
  * // => [4, 1, 3, 2]
9677
9746
  */
9678
9747
  function shuffle(collection) {
9679
- return shuffleSelf(isArrayLike(collection)
9680
- ? copyArray(collection)
9681
- : values(collection)
9682
- );
9748
+ var func = isArray(collection) ? arrayShuffle : baseShuffle;
9749
+ return func(collection);
9683
9750
  }
9684
9751
 
9685
9752
  /**
@@ -11505,7 +11572,7 @@
11505
11572
  // The use of `Object#toString` avoids issues with the `typeof` operator
11506
11573
  // in Safari 8-9 which returns 'object' for typed array and other constructors.
11507
11574
  var tag = isObject(value) ? objectToString.call(value) : '';
11508
- return tag == funcTag || tag == genTag;
11575
+ return tag == funcTag || tag == genTag || tag == proxyTag;
11509
11576
  }
11510
11577
 
11511
11578
  /**
@@ -11778,7 +11845,7 @@
11778
11845
  */
11779
11846
  function isNative(value) {
11780
11847
  if (isMaskable(value)) {
11781
- throw new Error('This method is not supported with core-js. Try https://github.com/es-shims.');
11848
+ throw new Error(CORE_ERROR_TEXT);
11782
11849
  }
11783
11850
  return baseIsNative(value);
11784
11851
  }
@@ -14271,7 +14338,7 @@
14271
14338
  } else if (radix) {
14272
14339
  radix = +radix;
14273
14340
  }
14274
- return nativeParseInt(toString(string), radix || 0);
14341
+ return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
14275
14342
  }
14276
14343
 
14277
14344
  /**