import{__require as r}from"./function-call.mjs";import{__require as e}from"./a-callable.mjs";import{__require as t}from"./an-object.mjs";import{__require as o}from"./is-object.mjs";import{__require as i}from"./get-iterator-direct.mjs";import{__require as n}from"./async-iterator-create-proxy.mjs";import{__require as a}from"./create-iter-result-object.mjs";import{__require as s}from"./async-iterator-close.mjs";var m,c;function u(){if(c)return m;c=1;var u=r(),f=e(),_=t(),p=o(),j=i(),l=n(),v=a(),q=s(),h=l(function(r){var e=this,t=e.iterator,o=e.mapper;return new r(function(i,n){var a=function(r){e.done=!0,n(r)},s=function(r){q(t,a,r,a)};r.resolve(_(u(e.next,t))).then(function(t){try{if(_(t).done)e.done=!0,i(v(void 0,!0));else{var n=t.value;try{var m=o(n,e.counter++),c=function(r){i(v(r,!1))};p(m)?r.resolve(m).then(c,s):c(m)}catch(r){s(r)}}}catch(r){a(r)}},a)})});return m=function(r){return _(this),f(r),new h(j(this),{mapper:r})}}export{u as __require};