import{__exports as r}from"../../../_virtual/es.iterator.reduce.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/iterate.mjs";import{__require as i}from"../internals/a-callable.mjs";import{__require as o}from"../internals/an-object.mjs";import{__require as a}from"../internals/get-iterator-direct.mjs";import{__require as n}from"../internals/iterator-close.mjs";import{__require as s}from"../internals/iterator-helper-without-closing-on-early-error.mjs";import{__require as m}from"../internals/function-apply.mjs";import{__require as u}from"../internals/fails.mjs";var _;function l(){if(_)return r;_=1;var l=e(),f=t(),c=i(),p=o(),h=a(),j=n(),q=s(),d=m(),v=u(),y=TypeError,w=v(function(){[].keys().reduce(function(){},void 0)}),g=!w&&q("reduce",y);return l({target:"Iterator",proto:!0,real:!0,forced:w||g},{reduce:function(r){p(this);try{c(r)}catch(r){j(this,"throw",r)}var e=arguments.length<2,t=e?void 0:arguments[1];if(g)return d(g,this,e?[r]:[r,t]);var i=h(this),o=0;if(f(i,function(i){e?(e=!1,t=i):t=r(t,i,o),o++},{IS_RECORD:!0}),e)throw new y("Reduce of empty iterator with no initial value");return t}}),r}export{l as __require};