import{Z as o,bp as g,bj as x,ai as v,bq as _,b8 as m}from"./index-F5308wi0.js";function b(r,n,d,u){if(!o(r))return r;n=g(n,r);for(var s=-1,e=n.length,f=e-1,i=r;i!=null&&++s<e;){var t=x(n[s]),a=d;if(t==="__proto__"||t==="constructor"||t==="prototype")return r;if(s!=f){var l=i[t];a=void 0,a===void 0&&(a=o(l)?l:v(n[s+1])?[]:{})}_(i,t,a),i=i[t]}return r}function I(r,n,d){for(var u=-1,s=n.length,e={};++u<s;){var f=n[u],i=m(r,f);d(i,f)&&b(e,g(f,r),i)}return e}export{I as b};