import { _ as I } from "./index.es323.js";
import { f as C } from "./index.es358.js";
import { a as _ } from "./index.es359.js";
import { g as d } from "./index.es364.js";
import "./index.es324.js";
import { p as y } from "./index.es325.js";
import { i as E } from "./index.es360.js";
import { p as b } from "./index.es361.js";
import { __exports as A } from "./index.es326.js";
var O = I, P = C, S = _, T = d, $ = A, w = y, N = E, j = b, m = "No one promise resolved";
O({ target: "Promise", stat: !0, forced: j }, {
  any: function(f) {
    var r = this, v = T("AggregateError"), e = $.f(r), p = e.resolve, a = e.reject, l = w(function() {
      var u = S(r.resolve), t = [], c = 0, o = 1, i = !1;
      N(f, function(g) {
        var R = c++, n = !1;
        o++, P(u, r, g).then(function(s) {
          n || i || (i = !0, p(s));
        }, function(s) {
          n || i || (n = !0, t[R] = s, --o || a(new v(t, m)));
        });
      }), --o || a(new v(t, m));
    });
    return l.error && a(l.value), e.promise;
  }
});
//# sourceMappingURL=index.es266.js.map
