import { u as m } from "./index.es119.js";
import { n as l } from "./index.es256.js";
import { e as S } from "./index.es257.js";
import { t as h } from "./index.es258.js";
import { __require as f } from "./index.es259.js";
var e = m, p = l, y = S, N = h, g = {
  "Content-Type": "application/x-www-form-urlencoded"
};
function c(t, r) {
  !e.isUndefined(t) && e.isUndefined(t["Content-Type"]) && (t["Content-Type"] = r);
}
function E() {
  var t;
  return typeof XMLHttpRequest < "u" ? t = f() : typeof process < "u" && Object.prototype.toString.call(process) === "[object process]" && (t = f()), t;
}
function v(t, r, n) {
  if (e.isString(t))
    try {
      return (r || JSON.parse)(t), e.trim(t);
    } catch (i) {
      if (i.name !== "SyntaxError")
        throw i;
    }
  return (n || JSON.stringify)(t);
}
var o = {
  transitional: N,
  adapter: E(),
  transformRequest: [function(r, n) {
    return p(n, "Accept"), p(n, "Content-Type"), e.isFormData(r) || e.isArrayBuffer(r) || e.isBuffer(r) || e.isStream(r) || e.isFile(r) || e.isBlob(r) ? r : e.isArrayBufferView(r) ? r.buffer : e.isURLSearchParams(r) ? (c(n, "application/x-www-form-urlencoded;charset=utf-8"), r.toString()) : e.isObject(r) || n && n["Content-Type"] === "application/json" ? (c(n, "application/json"), v(r)) : r;
  }],
  transformResponse: [function(r) {
    var n = this.transitional || o.transitional, i = n && n.silentJSONParsing, u = n && n.forcedJSONParsing, a = !i && this.responseType === "json";
    if (a || u && e.isString(r) && r.length)
      try {
        return JSON.parse(r);
      } catch (s) {
        if (a)
          throw s.name === "SyntaxError" ? y(s, this, "E_JSON_PARSE") : s;
      }
    return r;
  }],
  /**
   * A timeout in milliseconds to abort a request. If set to 0 (default) a
   * timeout is not created.
   */
  timeout: 0,
  xsrfCookieName: "XSRF-TOKEN",
  xsrfHeaderName: "X-XSRF-TOKEN",
  maxContentLength: -1,
  maxBodyLength: -1,
  validateStatus: function(r) {
    return r >= 200 && r < 300;
  },
  headers: {
    common: {
      Accept: "application/json, text/plain, */*"
    }
  }
};
e.forEach(["delete", "get", "head"], function(r) {
  o.headers[r] = {};
});
e.forEach(["post", "put", "patch"], function(r) {
  o.headers[r] = e.merge(g);
});
var J = o;
export {
  J as d
};
//# sourceMappingURL=index.es123.js.map
