import{i as c,e as _,f as p}from"./isArrayLikeObject.7c69e632.js";import{c as d,t as m}from"./get.5bf9ffd1.js";function v(r,s,l,a){if(!c(r))return r;s=d(s,r);for(var o=-1,e=s.length,f=e-1,t=r;t!=null&&++o<e;){var n=m(s[o]),i=l;if(n==="__proto__"||n==="constructor"||n==="prototype")return r;if(o!=f){var u=t[n];i=a?a(u,n,t):void 0,i===void 0&&(i=c(u)?u:_(s[o+1])?[]:{})}p(t,n,i),t=t[n]}return r}export{v as b};
