import a from "./utils.mjs";
import p from "./helpers/bind.mjs";
import m from "./core/Axios.mjs";
import i from "./core/mergeConfig.mjs";
import f from "./defaults/index.mjs";
import l from "./helpers/formDataToJSON.mjs";
import c from "./cancel/CanceledError.mjs";
import d from "./cancel/CancelToken.mjs";
import u from "./cancel/isCancel.mjs";
import { VERSION as x } from "./env/data.mjs";
import C from "./helpers/toFormData.mjs";
import A from "./core/AxiosError.mjs";
import E from "./helpers/spread.mjs";
import O from "./helpers/isAxiosError.mjs";
import S from "./core/AxiosHeaders.mjs";
import H from "./adapters/adapters.mjs";
import T from "./helpers/HttpStatusCode.mjs";
function n(o) {
  const t = new m(o), e = p(m.prototype.request, t);
  return a.extend(e, m.prototype, t, { allOwnKeys: !0 }), a.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(s) {
    return n(i(o, s));
  }, e;
}
const r = n(f);
r.Axios = m;
r.CanceledError = c;
r.CancelToken = d;
r.isCancel = u;
r.VERSION = x;
r.toFormData = C;
r.AxiosError = A;
r.Cancel = r.CanceledError;
r.all = function(t) {
  return Promise.all(t);
};
r.spread = E;
r.isAxiosError = O;
r.mergeConfig = i;
r.AxiosHeaders = S;
r.formToJSON = (o) => l(a.isHTMLForm(o) ? new FormData(o) : o);
r.getAdapter = H.getAdapter;
r.HttpStatusCode = T;
r.default = r;
const j = r;
export {
  j as default
};
