import{b3 as h,b4 as d,b5 as g}from"./index-26FXPGkN.js";function p(e,f,n,t){var s=-1,i=e==null?0:e.length;for(t&&i&&(n=e[++s]);++s<i;)n=f(n,e[s],s,e);return n}function u(e,f,n,t,s){return s(e,function(i,b,r){n=t?(t=!1,i):f(n,i,b,r)}),n}function R(e,f,n){var t=d(e)?p:u,s=arguments.length<3;return t(e,h(f),n,s,g)}export{R as r};
