import s from "./index.es292.js";
import v from "./index.es145.js";
import u from "./index.es273.js";
import o from "./index.es165.js";
import h from "./index.es207.js";
function M(r, a, e) {
  if (a == null || e)
    return s(r) || (r = v(r)), r[o(r.length - 1)];
  var t = h(r), f = u(t);
  a = Math.max(Math.min(a, f), 0);
  for (var i = f - 1, m = 0; m < a; m++) {
    var l = o(m, i), p = t[m];
    t[m] = t[l], t[l] = p;
  }
  return t.slice(0, a);
}
export {
  M as default
};
//# sourceMappingURL=index.es201.js.map
