import{__require as r}from"./function-call.mjs";import{__require as e}from"./object-create.mjs";import{__require as t}from"./create-non-enumerable-property.mjs";import{__require as o}from"./define-built-ins.mjs";import{__require as n}from"./well-known-symbol.mjs";import{__require as i}from"./internal-state.mjs";import{__require as a}from"./get-method.mjs";import{__require as u}from"./iterators-core.mjs";import{__require as s}from"./create-iter-result-object.mjs";import{__require as m}from"./iterator-close.mjs";import{__require as f}from"./iterator-close-all.mjs";var l,_;function c(){if(_)return l;_=1;var c=r(),p=e(),d=t(),j=o(),q=n(),v=i(),h=a(),y=u().IteratorPrototype,x=s(),H=m(),I=f(),b=q("toStringTag"),g="IteratorHelper",w="WrapForValidIterator",F="normal",R="throw",k=v.set,P=function(r){var e=v.getterFor(r?w:g);return j(p(y),{next:function(){var t=e(this);if(r)return t.nextHandler();if(t.done)return x(void 0,!0);try{var o=t.nextHandler();return t.returnHandlerResult?o:x(o,t.done)}catch(r){throw t.done=!0,r}},return:function(){var t=e(this),o=t.iterator;if(t.done=!0,r){var n=h(o,"return");return n?c(n,o):x(void 0,!0)}if(t.inner)try{H(t.inner.iterator,F)}catch(r){return H(o,R,r)}if(t.openIters)try{I(t.openIters,F)}catch(r){return H(o,R,r)}return o&&H(o,F),x(void 0,!0)}})},S=P(!0),T=P(!1);return d(T,b,"Iterator Helper"),l=function(r,e,t){var o=function(o,n){n?(n.iterator=o.iterator,n.next=o.next):n=o,n.type=e?w:g,n.returnHandlerResult=!!t,n.nextHandler=r,n.counter=0,n.done=!1,k(this,n)};return o.prototype=e?S:T,o}}export{c as __require};