"use strict";const u=require("./_baseUniq-CYHmteqc.cjs"),d=require("./index-9IAMar3z.cjs");var P=/\s/;function $(n){for(var t=n.length;t--&&P.test(n.charAt(t)););return t}var p=/^\s+/;function w(n){return n&&n.slice(0,$(n)+1).replace(p,"")}var I=NaN,A=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,E=/^0o[0-7]+$/i,F=parseInt;function M(n){if(typeof n=="number")return n;if(u.isSymbol(n))return I;if(d.isObject(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=d.isObject(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=w(n);var r=y.test(n);return r||E.test(n)?F(n.slice(2),r?2:8):A.test(n)?I:+n}var v=1/0,N=17976931348623157e292;function x(n){if(!n)return n===0?n:0;if(n=M(n),n===v||n===-v){var t=n<0?-1:1;return t*N}return n===n?n:0}function m(n){var t=x(n),r=t%1;return t===t?r?t-r:t:0}function _(n){var t=n==null?0:n.length;return t?u.baseFlatten(n):[]}var o=Object.prototype,B=o.hasOwnProperty,q=d.baseRest(function(n,t){n=Object(n);var r=-1,a=t.length,e=a>2?t[2]:void 0;for(e&&d.isIterateeCall(t[0],t[1],e)&&(a=1);++r<a;)for(var s=t[r],i=d.keysIn(s),f=-1,h=i.length;++f<h;){var b=i[f],g=n[b];(g===void 0||d.eq(g,o[b])&&!B.call(n,b))&&(n[b]=s[b])}return n});function L(n){var t=n==null?0:n.length;return t?n[t-1]:void 0}function S(n){return function(t,r,a){var e=Object(t);if(!d.isArrayLike(t)){var s=u.baseIteratee(r);t=u.keys(t),r=function(f){return s(e[f],f,e)}}var i=n(t,r,a);return i>-1?e[s?t[i]:i]:void 0}}var T=Math.max;function G(n,t,r){var a=n==null?0:n.length;if(!a)return-1;var e=r==null?0:m(r);return e<0&&(e=T(a+e,0)),u.baseFindIndex(n,u.baseIteratee(t),e)}var H=S(G);function l(n,t){var r=-1,a=d.isArrayLike(n)?Array(n.length):[];return u.baseEach(n,function(e,s,i){a[++r]=t(e,s,i)}),a}function R(n,t){var r=d.isArray(n)?u.arrayMap:l;return r(n,u.baseIteratee(t))}var z=Object.prototype,C=z.hasOwnProperty;function K(n,t){return n!=null&&C.call(n,t)}function U(n,t){return n!=null&&u.hasPath(n,t,K)}function O(n,t){return n<t}function c(n,t,r){for(var a=-1,e=n.length;++a<e;){var s=n[a],i=t(s);if(i!=null&&(f===void 0?i===i&&!u.isSymbol(i):r(i,f)))var f=i,h=s}return h}function W(n){return n&&n.length?c(n,d.identity,O):void 0}function X(n,t,r,a){if(!d.isObject(n))return n;t=u.castPath(t,n);for(var e=-1,s=t.length,i=s-1,f=n;f!=null&&++e<s;){var h=u.toKey(t[e]),b=r;if(h==="__proto__"||h==="constructor"||h==="prototype")return n;if(e!=i){var g=f[h];b=void 0,b===void 0&&(b=d.isObject(g)?g:d.isIndex(t[e+1])?[]:{})}d.assignValue(f,h,b),f=f[h]}return n}function Y(n,t,r){for(var a=-1,e=t.length,s={};++a<e;){var i=t[a],f=u.baseGet(n,i);r(f,i)&&X(s,u.castPath(i,n),f)}return s}exports.baseExtremum=c;exports.baseLt=O;exports.baseMap=l;exports.basePickBy=Y;exports.defaults=q;exports.find=H;exports.flatten=_;exports.has=U;exports.last=L;exports.map=R;exports.min=W;exports.toFinite=x;exports.toInteger=m;
