import{i as e,o as t}from"./isArrayLike.Crw2F5li.js";import{g as n,h as r,m as i}from"./isArrayLikeObject.B3Zf3PTL.js";import{l as a}from"./_baseClone.Bcnb-YL-.js";import{n as o}from"./last.DfjdtCRp.js";import{i as s}from"./_baseEach.PLhpSRgM.js";function c(i,o,s,c){if(!t(i))return i;o=n(o,i);for(var l=-1,u=o.length,d=u-1,f=i;f!=null&&++l<u;){var p=r(o[l]),m=s;if(p===`__proto__`||p===`constructor`||p===`prototype`)return i;if(l!=d){var h=f[p];m=c?c(h,p,f):void 0,m===void 0&&(m=t(h)?h:e(o[l+1])?[]:{})}a(f,p,m),f=f[p]}return i}function l(e,t,r){for(var a=-1,o=t.length,s={};++a<o;){var l=t[a],u=i(e,l);r(u,l)&&c(s,n(l,e),u)}return s}function u(e,t){return l(e,t,function(t,n){return s(e,n)})}var d=o(function(e,t){return e==null?{}:u(e,t)});export{d as t};