import{__exports as r}from"../../../_virtual/es.promise.all-settled.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/function-call.mjs";import{__require as i}from"../internals/a-callable.mjs";import{__require as s}from"../internals/new-promise-capability.mjs";import{__require as a}from"../internals/perform.mjs";import{__require as o}from"../internals/iterate.mjs";import{__require as n}from"../internals/promise-statics-incorrect-iteration.mjs";var m;function l(){if(m)return r;m=1;var l=e(),u=t(),f=i(),_=s(),p=a(),c=o();return l({target:"Promise",stat:!0,forced:n()},{allSettled:function(r){var e=this,t=_.f(e),i=t.resolve,s=t.reject,a=p(function(){var t=f(e.resolve),s=[],a=0,o=1;c(r,function(r){var n=a++,m=!1;o++,u(t,e,r).then(function(r){m||(m=!0,s[n]={status:"fulfilled",value:r},--o||i(s))},function(r){m||(m=!0,s[n]={status:"rejected",reason:r},--o||i(s))})}),--o||i(s)});return a.error&&s(a.value),t.promise}}),r}export{l as __require};