import{i as e}from"./isSymbol.CmW3dkoN.js";import{r as t}from"./toString.tRXNBxtF.js";import{D as n,f as r}from"./isArrayLikeObject.B3Zf3PTL.js";var i=e?e.isConcatSpreadable:void 0;function a(e){return t(e)||n(e)||!!(i&&e&&e[i])}function o(e,t,n,i,s){var c=-1,l=e.length;for(n||=a,s||=[];++c<l;){var u=e[c];t>0&&n(u)?t>1?o(u,t-1,n,i,s):r(s,u):i||(s[s.length]=u)}return s}export{o as t};