import{__exports as r}from"../../../_virtual/esnext.iterator.zip.mjs";import{__require as t}from"../internals/export.mjs";import{__require as e}from"../internals/an-object.mjs";import{__require as i}from"../internals/an-object-or-undefined.mjs";import{__require as o}from"../internals/function-call.mjs";import{__require as a}from"../internals/function-uncurry-this.mjs";import{__require as n}from"../internals/get-iterator-record.mjs";import{__require as s}from"../internals/get-iterator-flattenable.mjs";import{__require as m}from"../internals/get-mode-option.mjs";import{__require as u}from"../internals/iterator-close.mjs";import{__require as l}from"../internals/iterator-close-all.mjs";import{__require as f}from"../internals/iterator-zip.mjs";var _;function c(){if(_)return r;_=1;var c=t(),p=e(),j=i(),d=o(),v=a(),q=n(),h=s(),g=m(),x=u(),y=l(),b=f(),z=v([].concat),w=v([].push),I="throw";return c({target:"Iterator",stat:!0},{zip:function(r){p(r);for(var t,e,i,o=arguments.length>1?j(arguments[1]):void 0,a=g(o),n="longest"===a?j(o&&o.padding):void 0,s=[],m=[],u=q(r);!e;){try{e=(i=p(d(u.next,u.iterator))).done}catch(r){return y(s,I,r)}if(!e){try{t=h(i.value,!0)}catch(r){return y(z([u.iterator],s),I,r)}w(s,t)}}var l,f,_,c=s.length;if("longest"===a)if(void 0===n)for(l=0;l<c;l++)w(m,void 0);else{try{_=q(n)}catch(r){return y(s,I,r)}var v=!0;for(l=0;l<c;l++)if(v){try{f=(i=p(d(_.next,_.iterator))).done,i=i.value}catch(r){return y(s,I,r)}f?v=!1:w(m,i)}else w(m,void 0);if(v)try{x(_.iterator,"normal")}catch(r){return y(s,I,r)}}return b(s,a,m)}}),r}export{c as __require};