import { __exports as v } from "./index.es403.js";
import { __require as N } from "./index.es336.js";
import { __require as O } from "./index.es391.js";
import { __require as S } from "./index.es392.js";
import { __require as T } from "./index.es404.js";
import { __require as w } from "./index.es337.js";
import { __require as x } from "./index.es338.js";
import { __require as h } from "./index.es393.js";
import { __require as j } from "./index.es394.js";
var l;
function J() {
  if (l) return v;
  l = 1;
  var f = /* @__PURE__ */ N(), p = /* @__PURE__ */ O(), q = /* @__PURE__ */ S(), c = /* @__PURE__ */ T(), R = /* @__PURE__ */ w(), I = /* @__PURE__ */ x(), y = /* @__PURE__ */ h(), d = /* @__PURE__ */ j(), n = "No one promise resolved";
  return f({ target: "Promise", stat: !0, forced: d }, {
    any: function(g) {
      var r = this, _ = c("AggregateError"), e = R.f(r), C = e.resolve, a = e.reject, m = I(function() {
        var E = q(r.resolve), i = [], P = 0, o = 1, t = !1;
        y(g, function(A) {
          var b = P++, u = !1;
          o++, p(E, r, A).then(function(s) {
            u || t || (t = !0, C(s));
          }, function(s) {
            u || t || (u = !0, i[b] = s, --o || a(new _(i, n)));
          });
        }), --o || a(new _(i, n));
      });
      return m.error && a(m.value), e.promise;
    }
  }), v;
}
export {
  J as __require
};
//# sourceMappingURL=index.es340.js.map
