import{__exports as r}from"../../../_virtual/es.promise.any.mjs";import{__require as e}from"../internals/export.mjs";import{__require as i}from"../internals/function-call.mjs";import{__require as t}from"../internals/a-callable.mjs";import{__require as o}from"../internals/get-built-in.mjs";import{__require as n}from"../internals/new-promise-capability.mjs";import{__require as s}from"../internals/perform.mjs";import{__require as a}from"../internals/iterate.mjs";import{__require as m}from"../internals/promise-statics-incorrect-iteration.mjs";var u;function _(){if(u)return r;u=1;var _=e(),f=i(),l=t(),p=o(),c=n(),j=s(),v=a(),q=m(),g="No one promise resolved";return _({target:"Promise",stat:!0,forced:q},{any:function(r){var e=this,i=p("AggregateError"),t=c.f(e),o=t.resolve,n=t.reject,s=j(function(){var t=l(e.resolve),s=[],a=0,m=1,u=!1;v(r,function(r){var _=a++,l=!1;m++,f(t,e,r).then(function(r){l||u||(u=!0,o(r))},function(r){l||u||(l=!0,s[_]=r,--m||n(new i(s,g)))})}),--m||n(new i(s,g))});return s.error&&n(s.value),t.promise}}),r}export{_ as __require};