import{__require as r}from"./function-call.mjs";import{__require as e}from"./perform.mjs";import{__require as t}from"./an-object.mjs";import{__require as o}from"./object-create.mjs";import{__require as n}from"./create-non-enumerable-property.mjs";import{__require as i}from"./define-built-ins.mjs";import{__require as u}from"./well-known-symbol.mjs";import{__require as a}from"./internal-state.mjs";import{__require as s}from"./get-built-in.mjs";import{__require as m}from"./get-method.mjs";import{__require as c}from"./async-iterator-prototype.mjs";import{__require as f}from"./create-iter-result-object.mjs";import{__require as l}from"./iterator-close.mjs";var _,v;function p(){if(v)return _;v=1;var p=r(),j=e(),q=t(),d=o(),x=n(),y=i(),b=u(),h=a(),g=s(),H=m(),w=c(),A=f(),I=l(),F=g("Promise"),k=b("toStringTag"),P="AsyncIteratorHelper",S="WrapForValidAsyncIterator",T=h.set,V=function(r){var e=!r,t=h.getterFor(r?S:P),o=function(r){var o=j(function(){return t(r)}),n=o.error,i=o.value;return n||e&&i.done?{exit:!0,value:n?F.reject(i):F.resolve(A(void 0,!0))}:{exit:!1,value:i}};return y(d(w),{next:function(){var r=o(this),e=r.value;if(r.exit)return e;var t=j(function(){return q(e.nextHandler(F))}),n=t.error,i=t.value;return n&&(e.done=!0),n?F.reject(i):F.resolve(i)},return:function(){var e=o(this),t=e.value;if(e.exit)return t;t.done=!0;var n,i,u=t.iterator,a=j(function(){if(t.inner)try{I(t.inner.iterator,"normal")}catch(r){return I(u,"throw",r)}return H(u,"return")});return n=i=a.value,a.error?F.reject(i):void 0===n?F.resolve(A(void 0,!0)):(i=(a=j(function(){return p(n,u)})).value,a.error?F.reject(i):r?F.resolve(i):F.resolve(i).then(function(r){return q(r),A(void 0,!0)}))}})},W=V(!0),z=V(!1);return x(z,k,"Async Iterator Helper"),_=function(r,e){var t=function(t,o){o?(o.iterator=t.iterator,o.next=t.next):o=t,o.type=e?S:P,o.nextHandler=r,o.counter=0,o.done=!1,T(this,o)};return t.prototype=e?W:z,t}}export{p as __require};