import{__require as r}from"./function-bind-context.mjs";import{__require as e}from"./function-call.mjs";import{__require as t}from"./to-object.mjs";import{__require as i}from"./call-with-safe-iteration-closing.mjs";import{__require as o}from"./is-array-iterator-method.mjs";import{__require as m}from"./is-constructor.mjs";import{__require as s}from"./length-of-array-like.mjs";import{__require as a}from"./create-property.mjs";import{__require as _}from"./array-set-length.mjs";import{__require as n}from"./get-iterator.mjs";import{__require as u}from"./get-iterator-method.mjs";var f,p;function c(){if(p)return f;p=1;var c=r(),j=e(),l=t(),q=i(),h=o(),v=m(),d=s(),g=a(),y=_(),w=n(),x=u(),b=Array;return f=function(r){var e=l(r),t=v(this),i=arguments.length,o=i>1?arguments[1]:void 0,m=void 0!==o;m&&(o=c(o,i>2?arguments[2]:void 0));var s,a,_,n,u,f,p=x(e),k=0;if(!p||this===b&&h(p))for(s=d(e),a=t?new this(s):b(s);s>k;k++)f=m?o(e[k],k):e[k],g(a,k,f);else for(a=t?new this:[],u=(n=w(e,p)).next;!(_=j(u,n)).done;k++)f=m?q(n,o,[_.value,k],!0):_.value,g(a,k,f);return y(a,k),a},f}export{c as __require};