import { ref as te, isRef as nn } from "vue";
function ht(e, t) {
  return function() {
    return e.apply(t, arguments);
  };
}
const { toString: rn } = Object.prototype, { getPrototypeOf: Ue } = Object, { iterator: ue, toStringTag: mt } = Symbol, le = /* @__PURE__ */ ((e) => (t) => {
  const n = rn.call(t);
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
})(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => le(t) === e), fe = (e) => (t) => typeof t === e, { isArray: I } = Array, K = fe("undefined");
function G(e) {
  return e !== null && !K(e) && e.constructor !== null && !K(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
}
const yt = P("ArrayBuffer");
function on(e) {
  let t;
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && yt(e.buffer), t;
}
const sn = fe("string"), A = fe("function"), bt = fe("number"), X = (e) => e !== null && typeof e == "object", an = (e) => e === !0 || e === !1, ne = (e) => {
  if (le(e) !== "object")
    return !1;
  const t = Ue(e);
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(mt in e) && !(ue in e);
}, cn = (e) => {
  if (!X(e) || G(e))
    return !1;
  try {
    return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
  } catch {
    return !1;
  }
}, un = P("Date"), ln = P("File"), fn = P("Blob"), dn = P("FileList"), pn = (e) => X(e) && A(e.pipe), hn = (e) => {
  let t;
  return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = le(e)) === "formdata" || // detect form-data instance
  t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
}, mn = P("URLSearchParams"), [yn, bn, gn, wn] = ["ReadableStream", "Request", "Response", "Headers"].map(P), En = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function Z(e, t, { allOwnKeys: n = !1 } = {}) {
  if (e === null || typeof e > "u")
    return;
  let r, o;
  if (typeof e != "object" && (e = [e]), I(e))
    for (r = 0, o = e.length; r < o; r++)
      t.call(null, e[r], r, e);
  else {
    if (G(e))
      return;
    const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
    let c;
    for (r = 0; r < i; r++)
      c = s[r], t.call(null, e[c], c, e);
  }
}
function gt(e, t) {
  if (G(e))
    return null;
  t = t.toLowerCase();
  const n = Object.keys(e);
  let r = n.length, o;
  for (; r-- > 0; )
    if (o = n[r], t === o.toLowerCase())
      return o;
  return null;
}
const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, wt = (e) => !K(e) && e !== U;
function _e() {
  const { caseless: e } = wt(this) && this || {}, t = {}, n = (r, o) => {
    const s = e && gt(t, o) || o;
    ne(t[s]) && ne(r) ? t[s] = _e(t[s], r) : ne(r) ? t[s] = _e({}, r) : I(r) ? t[s] = r.slice() : t[s] = r;
  };
  for (let r = 0, o = arguments.length; r < o; r++)
    arguments[r] && Z(arguments[r], n);
  return t;
}
const Sn = (e, t, n, { allOwnKeys: r } = {}) => (Z(t, (o, s) => {
  n && A(o) ? e[s] = ht(o, n) : e[s] = o;
}, { allOwnKeys: r }), e), On = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Tn = (e, t, n, r) => {
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
    value: t.prototype
  }), n && Object.assign(e.prototype, n);
}, _n = (e, t, n, r) => {
  let o, s, i;
  const c = {};
  if (t = t || {}, e == null) return t;
  do {
    for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
      i = o[s], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
    e = n !== !1 && Ue(e);
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
  return t;
}, Rn = (e, t, n) => {
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
  const r = e.indexOf(t, n);
  return r !== -1 && r === n;
}, An = (e) => {
  if (!e) return null;
  if (I(e)) return e;
  let t = e.length;
  if (!bt(t)) return null;
  const n = new Array(t);
  for (; t-- > 0; )
    n[t] = e[t];
  return n;
}, xn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ue(Uint8Array)), Cn = (e, t) => {
  const r = (e && e[ue]).call(e);
  let o;
  for (; (o = r.next()) && !o.done; ) {
    const s = o.value;
    t.call(e, s[0], s[1]);
  }
}, Pn = (e, t) => {
  let n;
  const r = [];
  for (; (n = e.exec(t)) !== null; )
    r.push(n);
  return r;
}, vn = P("HTMLFormElement"), jn = (e) => e.toLowerCase().replace(
  /[-_\s]([a-z\d])(\w*)/g,
  function(n, r, o) {
    return r.toUpperCase() + o;
  }
), He = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Nn = P("RegExp"), Et = (e, t) => {
  const n = Object.getOwnPropertyDescriptors(e), r = {};
  Z(n, (o, s) => {
    let i;
    (i = t(o, s, e)) !== !1 && (r[s] = i || o);
  }), Object.defineProperties(e, r);
}, Fn = (e) => {
  Et(e, (t, n) => {
    if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
      return !1;
    const r = e[n];
    if (A(r)) {
      if (t.enumerable = !1, "writable" in t) {
        t.writable = !1;
        return;
      }
      t.set || (t.set = () => {
        throw Error("Can not rewrite read-only method '" + n + "'");
      });
    }
  });
}, Un = (e, t) => {
  const n = {}, r = (o) => {
    o.forEach((s) => {
      n[s] = !0;
    });
  };
  return I(e) ? r(e) : r(String(e).split(t)), n;
}, Dn = () => {
}, Ln = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
function Bn(e) {
  return !!(e && A(e.append) && e[mt] === "FormData" && e[ue]);
}
const $n = (e) => {
  const t = new Array(10), n = (r, o) => {
    if (X(r)) {
      if (t.indexOf(r) >= 0)
        return;
      if (G(r))
        return r;
      if (!("toJSON" in r)) {
        t[o] = r;
        const s = I(r) ? [] : {};
        return Z(r, (i, c) => {
          const f = n(i, o + 1);
          !K(f) && (s[c] = f);
        }), t[o] = void 0, s;
      }
    }
    return r;
  };
  return n(e, 0);
}, In = P("AsyncFunction"), qn = (e) => e && (X(e) || A(e)) && A(e.then) && A(e.catch), St = ((e, t) => e ? setImmediate : t ? ((n, r) => (U.addEventListener("message", ({ source: o, data: s }) => {
  o === U && s === n && r.length && r.shift()();
}, !1), (o) => {
  r.push(o), U.postMessage(n, "*");
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
  typeof setImmediate == "function",
  A(U.postMessage)
), Mn = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof process < "u" && process.nextTick || St, Hn = (e) => e != null && A(e[ue]), a = {
  isArray: I,
  isArrayBuffer: yt,
  isBuffer: G,
  isFormData: hn,
  isArrayBufferView: on,
  isString: sn,
  isNumber: bt,
  isBoolean: an,
  isObject: X,
  isPlainObject: ne,
  isEmptyObject: cn,
  isReadableStream: yn,
  isRequest: bn,
  isResponse: gn,
  isHeaders: wn,
  isUndefined: K,
  isDate: un,
  isFile: ln,
  isBlob: fn,
  isRegExp: Nn,
  isFunction: A,
  isStream: pn,
  isURLSearchParams: mn,
  isTypedArray: xn,
  isFileList: dn,
  forEach: Z,
  merge: _e,
  extend: Sn,
  trim: En,
  stripBOM: On,
  inherits: Tn,
  toFlatObject: _n,
  kindOf: le,
  kindOfTest: P,
  endsWith: Rn,
  toArray: An,
  forEachEntry: Cn,
  matchAll: Pn,
  isHTMLForm: vn,
  hasOwnProperty: He,
  hasOwnProp: He,
  // an alias to avoid ESLint no-prototype-builtins detection
  reduceDescriptors: Et,
  freezeMethods: Fn,
  toObjectSet: Un,
  toCamelCase: jn,
  noop: Dn,
  toFiniteNumber: Ln,
  findKey: gt,
  global: U,
  isContextDefined: wt,
  isSpecCompliantForm: Bn,
  toJSONObject: $n,
  isAsyncFn: In,
  isThenable: qn,
  setImmediate: St,
  asap: Mn,
  isIterable: Hn
};
function b(e, t, n, r, o) {
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
}
a.inherits(b, Error, {
  toJSON: function() {
    return {
      // Standard
      message: this.message,
      name: this.name,
      // Microsoft
      description: this.description,
      number: this.number,
      // Mozilla
      fileName: this.fileName,
      lineNumber: this.lineNumber,
      columnNumber: this.columnNumber,
      stack: this.stack,
      // Axios
      config: a.toJSONObject(this.config),
      code: this.code,
      status: this.status
    };
  }
});
const Ot = b.prototype, Tt = {};
[
  "ERR_BAD_OPTION_VALUE",
  "ERR_BAD_OPTION",
  "ECONNABORTED",
  "ETIMEDOUT",
  "ERR_NETWORK",
  "ERR_FR_TOO_MANY_REDIRECTS",
  "ERR_DEPRECATED",
  "ERR_BAD_RESPONSE",
  "ERR_BAD_REQUEST",
  "ERR_CANCELED",
  "ERR_NOT_SUPPORT",
  "ERR_INVALID_URL"
  // eslint-disable-next-line func-names
].forEach((e) => {
  Tt[e] = { value: e };
});
Object.defineProperties(b, Tt);
Object.defineProperty(Ot, "isAxiosError", { value: !0 });
b.from = (e, t, n, r, o, s) => {
  const i = Object.create(Ot);
  return a.toFlatObject(e, i, function(f) {
    return f !== Error.prototype;
  }, (c) => c !== "isAxiosError"), b.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
};
const zn = null;
function Re(e) {
  return a.isPlainObject(e) || a.isArray(e);
}
function _t(e) {
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
}
function ze(e, t, n) {
  return e ? e.concat(t).map(function(o, s) {
    return o = _t(o), !n && s ? "[" + o + "]" : o;
  }).join(n ? "." : "") : t;
}
function kn(e) {
  return a.isArray(e) && !e.some(Re);
}
const Jn = a.toFlatObject(a, {}, null, function(t) {
  return /^is[A-Z]/.test(t);
});
function de(e, t, n) {
  if (!a.isObject(e))
    throw new TypeError("target must be an object");
  t = t || new FormData(), n = a.toFlatObject(n, {
    metaTokens: !0,
    dots: !1,
    indexes: !1
  }, !1, function(y, m) {
    return !a.isUndefined(m[y]);
  });
  const r = n.metaTokens, o = n.visitor || u, s = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
  if (!a.isFunction(o))
    throw new TypeError("visitor must be a function");
  function l(h) {
    if (h === null) return "";
    if (a.isDate(h))
      return h.toISOString();
    if (a.isBoolean(h))
      return h.toString();
    if (!f && a.isBlob(h))
      throw new b("Blob is not supported. Use a Buffer instead.");
    return a.isArrayBuffer(h) || a.isTypedArray(h) ? f && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
  }
  function u(h, y, m) {
    let p = h;
    if (h && !m && typeof h == "object") {
      if (a.endsWith(y, "{}"))
        y = r ? y : y.slice(0, -2), h = JSON.stringify(h);
      else if (a.isArray(h) && kn(h) || (a.isFileList(h) || a.endsWith(y, "[]")) && (p = a.toArray(h)))
        return y = _t(y), p.forEach(function(E, C) {
          !(a.isUndefined(E) || E === null) && t.append(
            // eslint-disable-next-line no-nested-ternary
            i === !0 ? ze([y], C, s) : i === null ? y : y + "[]",
            l(E)
          );
        }), !1;
    }
    return Re(h) ? !0 : (t.append(ze(m, y, s), l(h)), !1);
  }
  const d = [], g = Object.assign(Jn, {
    defaultVisitor: u,
    convertValue: l,
    isVisitable: Re
  });
  function O(h, y) {
    if (!a.isUndefined(h)) {
      if (d.indexOf(h) !== -1)
        throw Error("Circular reference detected in " + y.join("."));
      d.push(h), a.forEach(h, function(p, w) {
        (!(a.isUndefined(p) || p === null) && o.call(
          t,
          p,
          a.isString(w) ? w.trim() : w,
          y,
          g
        )) === !0 && O(p, y ? y.concat(w) : [w]);
      }), d.pop();
    }
  }
  if (!a.isObject(e))
    throw new TypeError("data must be an object");
  return O(e), t;
}
function ke(e) {
  const t = {
    "!": "%21",
    "'": "%27",
    "(": "%28",
    ")": "%29",
    "~": "%7E",
    "%20": "+",
    "%00": "\0"
  };
  return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
    return t[r];
  });
}
function De(e, t) {
  this._pairs = [], e && de(e, this, t);
}
const Rt = De.prototype;
Rt.append = function(t, n) {
  this._pairs.push([t, n]);
};
Rt.toString = function(t) {
  const n = t ? function(r) {
    return t.call(this, r, ke);
  } : ke;
  return this._pairs.map(function(o) {
    return n(o[0]) + "=" + n(o[1]);
  }, "").join("&");
};
function Vn(e) {
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
}
function At(e, t, n) {
  if (!t)
    return e;
  const r = n && n.encode || Vn;
  a.isFunction(n) && (n = {
    serialize: n
  });
  const o = n && n.serialize;
  let s;
  if (o ? s = o(t, n) : s = a.isURLSearchParams(t) ? t.toString() : new De(t, n).toString(r), s) {
    const i = e.indexOf("#");
    i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
  }
  return e;
}
class Je {
  constructor() {
    this.handlers = [];
  }
  /**
   * Add a new interceptor to the stack
   *
   * @param {Function} fulfilled The function to handle `then` for a `Promise`
   * @param {Function} rejected The function to handle `reject` for a `Promise`
   *
   * @return {Number} An ID used to remove interceptor later
   */
  use(t, n, r) {
    return this.handlers.push({
      fulfilled: t,
      rejected: n,
      synchronous: r ? r.synchronous : !1,
      runWhen: r ? r.runWhen : null
    }), this.handlers.length - 1;
  }
  /**
   * Remove an interceptor from the stack
   *
   * @param {Number} id The ID that was returned by `use`
   *
   * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
   */
  eject(t) {
    this.handlers[t] && (this.handlers[t] = null);
  }
  /**
   * Clear all interceptors from the stack
   *
   * @returns {void}
   */
  clear() {
    this.handlers && (this.handlers = []);
  }
  /**
   * Iterate over all the registered interceptors
   *
   * This method is particularly useful for skipping over any
   * interceptors that may have become `null` calling `eject`.
   *
   * @param {Function} fn The function to call for each interceptor
   *
   * @returns {void}
   */
  forEach(t) {
    a.forEach(this.handlers, function(r) {
      r !== null && t(r);
    });
  }
}
const xt = {
  silentJSONParsing: !0,
  forcedJSONParsing: !0,
  clarifyTimeoutError: !1
}, Kn = typeof URLSearchParams < "u" ? URLSearchParams : De, Wn = typeof FormData < "u" ? FormData : null, Gn = typeof Blob < "u" ? Blob : null, Xn = {
  isBrowser: !0,
  classes: {
    URLSearchParams: Kn,
    FormData: Wn,
    Blob: Gn
  },
  protocols: ["http", "https", "file", "blob", "url", "data"]
}, Le = typeof window < "u" && typeof document < "u", Ae = typeof navigator == "object" && navigator || void 0, Zn = Le && (!Ae || ["ReactNative", "NativeScript", "NS"].indexOf(Ae.product) < 0), Qn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Yn = Le && window.location.href || "http://localhost", er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  hasBrowserEnv: Le,
  hasStandardBrowserEnv: Zn,
  hasStandardBrowserWebWorkerEnv: Qn,
  navigator: Ae,
  origin: Yn
}, Symbol.toStringTag, { value: "Module" })), _ = {
  ...er,
  ...Xn
};
function tr(e, t) {
  return de(e, new _.classes.URLSearchParams(), {
    visitor: function(n, r, o, s) {
      return _.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
    },
    ...t
  });
}
function nr(e) {
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
}
function rr(e) {
  const t = {}, n = Object.keys(e);
  let r;
  const o = n.length;
  let s;
  for (r = 0; r < o; r++)
    s = n[r], t[s] = e[s];
  return t;
}
function Ct(e) {
  function t(n, r, o, s) {
    let i = n[s++];
    if (i === "__proto__") return !0;
    const c = Number.isFinite(+i), f = s >= n.length;
    return i = !i && a.isArray(o) ? o.length : i, f ? (a.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !c) : ((!o[i] || !a.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && a.isArray(o[i]) && (o[i] = rr(o[i])), !c);
  }
  if (a.isFormData(e) && a.isFunction(e.entries)) {
    const n = {};
    return a.forEachEntry(e, (r, o) => {
      t(nr(r), o, n, 0);
    }), n;
  }
  return null;
}
function or(e, t, n) {
  if (a.isString(e))
    try {
      return (t || JSON.parse)(e), a.trim(e);
    } catch (r) {
      if (r.name !== "SyntaxError")
        throw r;
    }
  return (n || JSON.stringify)(e);
}
const Q = {
  transitional: xt,
  adapter: ["xhr", "http", "fetch"],
  transformRequest: [function(t, n) {
    const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = a.isObject(t);
    if (s && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
      return o ? JSON.stringify(Ct(t)) : t;
    if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
      return t;
    if (a.isArrayBufferView(t))
      return t.buffer;
    if (a.isURLSearchParams(t))
      return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
    let c;
    if (s) {
      if (r.indexOf("application/x-www-form-urlencoded") > -1)
        return tr(t, this.formSerializer).toString();
      if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
        const f = this.env && this.env.FormData;
        return de(
          c ? { "files[]": t } : t,
          f && new f(),
          this.formSerializer
        );
      }
    }
    return s || o ? (n.setContentType("application/json", !1), or(t)) : t;
  }],
  transformResponse: [function(t) {
    const n = this.transitional || Q.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
    if (a.isResponse(t) || a.isReadableStream(t))
      return t;
    if (t && a.isString(t) && (r && !this.responseType || o)) {
      const i = !(n && n.silentJSONParsing) && o;
      try {
        return JSON.parse(t);
      } catch (c) {
        if (i)
          throw c.name === "SyntaxError" ? b.from(c, b.ERR_BAD_RESPONSE, this, null, this.response) : c;
      }
    }
    return t;
  }],
  /**
   * 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,
  env: {
    FormData: _.classes.FormData,
    Blob: _.classes.Blob
  },
  validateStatus: function(t) {
    return t >= 200 && t < 300;
  },
  headers: {
    common: {
      Accept: "application/json, text/plain, */*",
      "Content-Type": void 0
    }
  }
};
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
  Q.headers[e] = {};
});
const sr = a.toObjectSet([
  "age",
  "authorization",
  "content-length",
  "content-type",
  "etag",
  "expires",
  "from",
  "host",
  "if-modified-since",
  "if-unmodified-since",
  "last-modified",
  "location",
  "max-forwards",
  "proxy-authorization",
  "referer",
  "retry-after",
  "user-agent"
]), ir = (e) => {
  const t = {};
  let n, r, o;
  return e && e.split(`
`).forEach(function(i) {
    o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && sr[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
  }), t;
}, Ve = Symbol("internals");
function k(e) {
  return e && String(e).trim().toLowerCase();
}
function re(e) {
  return e === !1 || e == null ? e : a.isArray(e) ? e.map(re) : String(e);
}
function ar(e) {
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  let r;
  for (; r = n.exec(e); )
    t[r[1]] = r[2];
  return t;
}
const cr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
function we(e, t, n, r, o) {
  if (a.isFunction(r))
    return r.call(this, t, n);
  if (o && (t = n), !!a.isString(t)) {
    if (a.isString(r))
      return t.indexOf(r) !== -1;
    if (a.isRegExp(r))
      return r.test(t);
  }
}
function ur(e) {
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
}
function lr(e, t) {
  const n = a.toCamelCase(" " + t);
  ["get", "set", "has"].forEach((r) => {
    Object.defineProperty(e, r + n, {
      value: function(o, s, i) {
        return this[r].call(this, t, o, s, i);
      },
      configurable: !0
    });
  });
}
let x = class {
  constructor(t) {
    t && this.set(t);
  }
  set(t, n, r) {
    const o = this;
    function s(c, f, l) {
      const u = k(f);
      if (!u)
        throw new Error("header name must be a non-empty string");
      const d = a.findKey(o, u);
      (!d || o[d] === void 0 || l === !0 || l === void 0 && o[d] !== !1) && (o[d || f] = re(c));
    }
    const i = (c, f) => a.forEach(c, (l, u) => s(l, u, f));
    if (a.isPlainObject(t) || t instanceof this.constructor)
      i(t, n);
    else if (a.isString(t) && (t = t.trim()) && !cr(t))
      i(ir(t), n);
    else if (a.isObject(t) && a.isIterable(t)) {
      let c = {}, f, l;
      for (const u of t) {
        if (!a.isArray(u))
          throw TypeError("Object iterator must return a key-value pair");
        c[l = u[0]] = (f = c[l]) ? a.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
      }
      i(c, n);
    } else
      t != null && s(n, t, r);
    return this;
  }
  get(t, n) {
    if (t = k(t), t) {
      const r = a.findKey(this, t);
      if (r) {
        const o = this[r];
        if (!n)
          return o;
        if (n === !0)
          return ar(o);
        if (a.isFunction(n))
          return n.call(this, o, r);
        if (a.isRegExp(n))
          return n.exec(o);
        throw new TypeError("parser must be boolean|regexp|function");
      }
    }
  }
  has(t, n) {
    if (t = k(t), t) {
      const r = a.findKey(this, t);
      return !!(r && this[r] !== void 0 && (!n || we(this, this[r], r, n)));
    }
    return !1;
  }
  delete(t, n) {
    const r = this;
    let o = !1;
    function s(i) {
      if (i = k(i), i) {
        const c = a.findKey(r, i);
        c && (!n || we(r, r[c], c, n)) && (delete r[c], o = !0);
      }
    }
    return a.isArray(t) ? t.forEach(s) : s(t), o;
  }
  clear(t) {
    const n = Object.keys(this);
    let r = n.length, o = !1;
    for (; r--; ) {
      const s = n[r];
      (!t || we(this, this[s], s, t, !0)) && (delete this[s], o = !0);
    }
    return o;
  }
  normalize(t) {
    const n = this, r = {};
    return a.forEach(this, (o, s) => {
      const i = a.findKey(r, s);
      if (i) {
        n[i] = re(o), delete n[s];
        return;
      }
      const c = t ? ur(s) : String(s).trim();
      c !== s && delete n[s], n[c] = re(o), r[c] = !0;
    }), this;
  }
  concat(...t) {
    return this.constructor.concat(this, ...t);
  }
  toJSON(t) {
    const n = /* @__PURE__ */ Object.create(null);
    return a.forEach(this, (r, o) => {
      r != null && r !== !1 && (n[o] = t && a.isArray(r) ? r.join(", ") : r);
    }), n;
  }
  [Symbol.iterator]() {
    return Object.entries(this.toJSON())[Symbol.iterator]();
  }
  toString() {
    return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
`);
  }
  getSetCookie() {
    return this.get("set-cookie") || [];
  }
  get [Symbol.toStringTag]() {
    return "AxiosHeaders";
  }
  static from(t) {
    return t instanceof this ? t : new this(t);
  }
  static concat(t, ...n) {
    const r = new this(t);
    return n.forEach((o) => r.set(o)), r;
  }
  static accessor(t) {
    const r = (this[Ve] = this[Ve] = {
      accessors: {}
    }).accessors, o = this.prototype;
    function s(i) {
      const c = k(i);
      r[c] || (lr(o, i), r[c] = !0);
    }
    return a.isArray(t) ? t.forEach(s) : s(t), this;
  }
};
x.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
a.reduceDescriptors(x.prototype, ({ value: e }, t) => {
  let n = t[0].toUpperCase() + t.slice(1);
  return {
    get: () => e,
    set(r) {
      this[n] = r;
    }
  };
});
a.freezeMethods(x);
function Ee(e, t) {
  const n = this || Q, r = t || n, o = x.from(r.headers);
  let s = r.data;
  return a.forEach(e, function(c) {
    s = c.call(n, s, o.normalize(), t ? t.status : void 0);
  }), o.normalize(), s;
}
function Pt(e) {
  return !!(e && e.__CANCEL__);
}
function q(e, t, n) {
  b.call(this, e ?? "canceled", b.ERR_CANCELED, t, n), this.name = "CanceledError";
}
a.inherits(q, b, {
  __CANCEL__: !0
});
function vt(e, t, n) {
  const r = n.config.validateStatus;
  !n.status || !r || r(n.status) ? e(n) : t(new b(
    "Request failed with status code " + n.status,
    [b.ERR_BAD_REQUEST, b.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
    n.config,
    n.request,
    n
  ));
}
function fr(e) {
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
  return t && t[1] || "";
}
function dr(e, t) {
  e = e || 10;
  const n = new Array(e), r = new Array(e);
  let o = 0, s = 0, i;
  return t = t !== void 0 ? t : 1e3, function(f) {
    const l = Date.now(), u = r[s];
    i || (i = l), n[o] = f, r[o] = l;
    let d = s, g = 0;
    for (; d !== o; )
      g += n[d++], d = d % e;
    if (o = (o + 1) % e, o === s && (s = (s + 1) % e), l - i < t)
      return;
    const O = u && l - u;
    return O ? Math.round(g * 1e3 / O) : void 0;
  };
}
function pr(e, t) {
  let n = 0, r = 1e3 / t, o, s;
  const i = (l, u = Date.now()) => {
    n = u, o = null, s && (clearTimeout(s), s = null), e(...l);
  };
  return [(...l) => {
    const u = Date.now(), d = u - n;
    d >= r ? i(l, u) : (o = l, s || (s = setTimeout(() => {
      s = null, i(o);
    }, r - d)));
  }, () => o && i(o)];
}
const se = (e, t, n = 3) => {
  let r = 0;
  const o = dr(50, 250);
  return pr((s) => {
    const i = s.loaded, c = s.lengthComputable ? s.total : void 0, f = i - r, l = o(f), u = i <= c;
    r = i;
    const d = {
      loaded: i,
      total: c,
      progress: c ? i / c : void 0,
      bytes: f,
      rate: l || void 0,
      estimated: l && c && u ? (c - i) / l : void 0,
      event: s,
      lengthComputable: c != null,
      [t ? "download" : "upload"]: !0
    };
    e(d);
  }, n);
}, Ke = (e, t) => {
  const n = e != null;
  return [(r) => t[0]({
    lengthComputable: n,
    total: e,
    loaded: r
  }), t[1]];
}, We = (e) => (...t) => a.asap(() => e(...t)), hr = _.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, _.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
  new URL(_.origin),
  _.navigator && /(msie|trident)/i.test(_.navigator.userAgent)
) : () => !0, mr = _.hasStandardBrowserEnv ? (
  // Standard browser envs support document.cookie
  {
    write(e, t, n, r, o, s) {
      const i = [e + "=" + encodeURIComponent(t)];
      a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(o) && i.push("domain=" + o), s === !0 && i.push("secure"), document.cookie = i.join("; ");
    },
    read(e) {
      const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
      return t ? decodeURIComponent(t[3]) : null;
    },
    remove(e) {
      this.write(e, "", Date.now() - 864e5);
    }
  }
) : (
  // Non-standard browser env (web workers, react-native) lack needed support.
  {
    write() {
    },
    read() {
      return null;
    },
    remove() {
    }
  }
);
function yr(e) {
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
}
function br(e, t) {
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
}
function jt(e, t, n) {
  let r = !yr(t);
  return e && (r || n == !1) ? br(e, t) : t;
}
const Ge = (e) => e instanceof x ? { ...e } : e;
function L(e, t) {
  t = t || {};
  const n = {};
  function r(l, u, d, g) {
    return a.isPlainObject(l) && a.isPlainObject(u) ? a.merge.call({ caseless: g }, l, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
  }
  function o(l, u, d, g) {
    if (a.isUndefined(u)) {
      if (!a.isUndefined(l))
        return r(void 0, l, d, g);
    } else return r(l, u, d, g);
  }
  function s(l, u) {
    if (!a.isUndefined(u))
      return r(void 0, u);
  }
  function i(l, u) {
    if (a.isUndefined(u)) {
      if (!a.isUndefined(l))
        return r(void 0, l);
    } else return r(void 0, u);
  }
  function c(l, u, d) {
    if (d in t)
      return r(l, u);
    if (d in e)
      return r(void 0, l);
  }
  const f = {
    url: s,
    method: s,
    data: s,
    baseURL: i,
    transformRequest: i,
    transformResponse: i,
    paramsSerializer: i,
    timeout: i,
    timeoutMessage: i,
    withCredentials: i,
    withXSRFToken: i,
    adapter: i,
    responseType: i,
    xsrfCookieName: i,
    xsrfHeaderName: i,
    onUploadProgress: i,
    onDownloadProgress: i,
    decompress: i,
    maxContentLength: i,
    maxBodyLength: i,
    beforeRedirect: i,
    transport: i,
    httpAgent: i,
    httpsAgent: i,
    cancelToken: i,
    socketPath: i,
    responseEncoding: i,
    validateStatus: c,
    headers: (l, u, d) => o(Ge(l), Ge(u), d, !0)
  };
  return a.forEach(Object.keys({ ...e, ...t }), function(u) {
    const d = f[u] || o, g = d(e[u], t[u], u);
    a.isUndefined(g) && d !== c || (n[u] = g);
  }), n;
}
const Nt = (e) => {
  const t = L({}, e);
  let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: c } = t;
  t.headers = i = x.from(i), t.url = At(jt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
    "Authorization",
    "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
  );
  let f;
  if (a.isFormData(n)) {
    if (_.hasStandardBrowserEnv || _.hasStandardBrowserWebWorkerEnv)
      i.setContentType(void 0);
    else if ((f = i.getContentType()) !== !1) {
      const [l, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
      i.setContentType([l || "multipart/form-data", ...u].join("; "));
    }
  }
  if (_.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && hr(t.url))) {
    const l = o && s && mr.read(s);
    l && i.set(o, l);
  }
  return t;
}, gr = typeof XMLHttpRequest < "u", wr = gr && function(e) {
  return new Promise(function(n, r) {
    const o = Nt(e);
    let s = o.data;
    const i = x.from(o.headers).normalize();
    let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = o, u, d, g, O, h;
    function y() {
      O && O(), h && h(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
    }
    let m = new XMLHttpRequest();
    m.open(o.method.toUpperCase(), o.url, !0), m.timeout = o.timeout;
    function p() {
      if (!m)
        return;
      const E = x.from(
        "getAllResponseHeaders" in m && m.getAllResponseHeaders()
      ), R = {
        data: !c || c === "text" || c === "json" ? m.responseText : m.response,
        status: m.status,
        statusText: m.statusText,
        headers: E,
        config: e,
        request: m
      };
      vt(function(F) {
        n(F), y();
      }, function(F) {
        r(F), y();
      }, R), m = null;
    }
    "onloadend" in m ? m.onloadend = p : m.onreadystatechange = function() {
      !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(p);
    }, m.onabort = function() {
      m && (r(new b("Request aborted", b.ECONNABORTED, e, m)), m = null);
    }, m.onerror = function() {
      r(new b("Network Error", b.ERR_NETWORK, e, m)), m = null;
    }, m.ontimeout = function() {
      let C = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
      const R = o.transitional || xt;
      o.timeoutErrorMessage && (C = o.timeoutErrorMessage), r(new b(
        C,
        R.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
        e,
        m
      )), m = null;
    }, s === void 0 && i.setContentType(null), "setRequestHeader" in m && a.forEach(i.toJSON(), function(C, R) {
      m.setRequestHeader(R, C);
    }), a.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), c && c !== "json" && (m.responseType = o.responseType), l && ([g, h] = se(l, !0), m.addEventListener("progress", g)), f && m.upload && ([d, O] = se(f), m.upload.addEventListener("progress", d), m.upload.addEventListener("loadend", O)), (o.cancelToken || o.signal) && (u = (E) => {
      m && (r(!E || E.type ? new q(null, e, m) : E), m.abort(), m = null);
    }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
    const w = fr(o.url);
    if (w && _.protocols.indexOf(w) === -1) {
      r(new b("Unsupported protocol " + w + ":", b.ERR_BAD_REQUEST, e));
      return;
    }
    m.send(s || null);
  });
}, Er = (e, t) => {
  const { length: n } = e = e ? e.filter(Boolean) : [];
  if (t || n) {
    let r = new AbortController(), o;
    const s = function(l) {
      if (!o) {
        o = !0, c();
        const u = l instanceof Error ? l : this.reason;
        r.abort(u instanceof b ? u : new q(u instanceof Error ? u.message : u));
      }
    };
    let i = t && setTimeout(() => {
      i = null, s(new b(`timeout ${t} of ms exceeded`, b.ETIMEDOUT));
    }, t);
    const c = () => {
      e && (i && clearTimeout(i), i = null, e.forEach((l) => {
        l.unsubscribe ? l.unsubscribe(s) : l.removeEventListener("abort", s);
      }), e = null);
    };
    e.forEach((l) => l.addEventListener("abort", s));
    const { signal: f } = r;
    return f.unsubscribe = () => a.asap(c), f;
  }
}, Sr = function* (e, t) {
  let n = e.byteLength;
  if (n < t) {
    yield e;
    return;
  }
  let r = 0, o;
  for (; r < n; )
    o = r + t, yield e.slice(r, o), r = o;
}, Or = async function* (e, t) {
  for await (const n of Tr(e))
    yield* Sr(n, t);
}, Tr = async function* (e) {
  if (e[Symbol.asyncIterator]) {
    yield* e;
    return;
  }
  const t = e.getReader();
  try {
    for (; ; ) {
      const { done: n, value: r } = await t.read();
      if (n)
        break;
      yield r;
    }
  } finally {
    await t.cancel();
  }
}, Xe = (e, t, n, r) => {
  const o = Or(e, t);
  let s = 0, i, c = (f) => {
    i || (i = !0, r && r(f));
  };
  return new ReadableStream({
    async pull(f) {
      try {
        const { done: l, value: u } = await o.next();
        if (l) {
          c(), f.close();
          return;
        }
        let d = u.byteLength;
        if (n) {
          let g = s += d;
          n(g);
        }
        f.enqueue(new Uint8Array(u));
      } catch (l) {
        throw c(l), l;
      }
    },
    cancel(f) {
      return c(f), o.return();
    }
  }, {
    highWaterMark: 2
  });
}, pe = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ft = pe && typeof ReadableStream == "function", _r = pe && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ut = (e, ...t) => {
  try {
    return !!e(...t);
  } catch {
    return !1;
  }
}, Rr = Ft && Ut(() => {
  let e = !1;
  const t = new Request(_.origin, {
    body: new ReadableStream(),
    method: "POST",
    get duplex() {
      return e = !0, "half";
    }
  }).headers.has("Content-Type");
  return e && !t;
}), Ze = 64 * 1024, xe = Ft && Ut(() => a.isReadableStream(new Response("").body)), ie = {
  stream: xe && ((e) => e.body)
};
pe && ((e) => {
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
    !ie[t] && (ie[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
      throw new b(`Response type '${t}' is not supported`, b.ERR_NOT_SUPPORT, r);
    });
  });
})(new Response());
const Ar = async (e) => {
  if (e == null)
    return 0;
  if (a.isBlob(e))
    return e.size;
  if (a.isSpecCompliantForm(e))
    return (await new Request(_.origin, {
      method: "POST",
      body: e
    }).arrayBuffer()).byteLength;
  if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
    return e.byteLength;
  if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
    return (await _r(e)).byteLength;
}, xr = async (e, t) => {
  const n = a.toFiniteNumber(e.getContentLength());
  return n ?? Ar(t);
}, Cr = pe && (async (e) => {
  let {
    url: t,
    method: n,
    data: r,
    signal: o,
    cancelToken: s,
    timeout: i,
    onDownloadProgress: c,
    onUploadProgress: f,
    responseType: l,
    headers: u,
    withCredentials: d = "same-origin",
    fetchOptions: g
  } = Nt(e);
  l = l ? (l + "").toLowerCase() : "text";
  let O = Er([o, s && s.toAbortSignal()], i), h;
  const y = O && O.unsubscribe && (() => {
    O.unsubscribe();
  });
  let m;
  try {
    if (f && Rr && n !== "get" && n !== "head" && (m = await xr(u, r)) !== 0) {
      let R = new Request(t, {
        method: "POST",
        body: r,
        duplex: "half"
      }), N;
      if (a.isFormData(r) && (N = R.headers.get("content-type")) && u.setContentType(N), R.body) {
        const [F, ee] = Ke(
          m,
          se(We(f))
        );
        r = Xe(R.body, Ze, F, ee);
      }
    }
    a.isString(d) || (d = d ? "include" : "omit");
    const p = "credentials" in Request.prototype;
    h = new Request(t, {
      ...g,
      signal: O,
      method: n.toUpperCase(),
      headers: u.normalize().toJSON(),
      body: r,
      duplex: "half",
      credentials: p ? d : void 0
    });
    let w = await fetch(h, g);
    const E = xe && (l === "stream" || l === "response");
    if (xe && (c || E && y)) {
      const R = {};
      ["status", "statusText", "headers"].forEach((Me) => {
        R[Me] = w[Me];
      });
      const N = a.toFiniteNumber(w.headers.get("content-length")), [F, ee] = c && Ke(
        N,
        se(We(c), !0)
      ) || [];
      w = new Response(
        Xe(w.body, Ze, F, () => {
          ee && ee(), y && y();
        }),
        R
      );
    }
    l = l || "text";
    let C = await ie[a.findKey(ie, l) || "text"](w, e);
    return !E && y && y(), await new Promise((R, N) => {
      vt(R, N, {
        data: C,
        headers: x.from(w.headers),
        status: w.status,
        statusText: w.statusText,
        config: e,
        request: h
      });
    });
  } catch (p) {
    throw y && y(), p && p.name === "TypeError" && /Load failed|fetch/i.test(p.message) ? Object.assign(
      new b("Network Error", b.ERR_NETWORK, e, h),
      {
        cause: p.cause || p
      }
    ) : b.from(p, p && p.code, e, h);
  }
}), Ce = {
  http: zn,
  xhr: wr,
  fetch: Cr
};
a.forEach(Ce, (e, t) => {
  if (e) {
    try {
      Object.defineProperty(e, "name", { value: t });
    } catch {
    }
    Object.defineProperty(e, "adapterName", { value: t });
  }
});
const Qe = (e) => `- ${e}`, Pr = (e) => a.isFunction(e) || e === null || e === !1, Dt = {
  getAdapter: (e) => {
    e = a.isArray(e) ? e : [e];
    const { length: t } = e;
    let n, r;
    const o = {};
    for (let s = 0; s < t; s++) {
      n = e[s];
      let i;
      if (r = n, !Pr(n) && (r = Ce[(i = String(n)).toLowerCase()], r === void 0))
        throw new b(`Unknown adapter '${i}'`);
      if (r)
        break;
      o[i || "#" + s] = r;
    }
    if (!r) {
      const s = Object.entries(o).map(
        ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
      );
      let i = t ? s.length > 1 ? `since :
` + s.map(Qe).join(`
`) : " " + Qe(s[0]) : "as no adapter specified";
      throw new b(
        "There is no suitable adapter to dispatch the request " + i,
        "ERR_NOT_SUPPORT"
      );
    }
    return r;
  },
  adapters: Ce
};
function Se(e) {
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
    throw new q(null, e);
}
function Ye(e) {
  return Se(e), e.headers = x.from(e.headers), e.data = Ee.call(
    e,
    e.transformRequest
  ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Dt.getAdapter(e.adapter || Q.adapter)(e).then(function(r) {
    return Se(e), r.data = Ee.call(
      e,
      e.transformResponse,
      r
    ), r.headers = x.from(r.headers), r;
  }, function(r) {
    return Pt(r) || (Se(e), r && r.response && (r.response.data = Ee.call(
      e,
      e.transformResponse,
      r.response
    ), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
  });
}
const Lt = "1.11.0", he = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
  he[e] = function(r) {
    return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
  };
});
const et = {};
he.transitional = function(t, n, r) {
  function o(s, i) {
    return "[Axios v" + Lt + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
  }
  return (s, i, c) => {
    if (t === !1)
      throw new b(
        o(i, " has been removed" + (n ? " in " + n : "")),
        b.ERR_DEPRECATED
      );
    return n && !et[i] && (et[i] = !0), t ? t(s, i, c) : !0;
  };
};
he.spelling = function(t) {
  return (n, r) => !0;
};
function vr(e, t, n) {
  if (typeof e != "object")
    throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
  const r = Object.keys(e);
  let o = r.length;
  for (; o-- > 0; ) {
    const s = r[o], i = t[s];
    if (i) {
      const c = e[s], f = c === void 0 || i(c, s, e);
      if (f !== !0)
        throw new b("option " + s + " must be " + f, b.ERR_BAD_OPTION_VALUE);
      continue;
    }
    if (n !== !0)
      throw new b("Unknown option " + s, b.ERR_BAD_OPTION);
  }
}
const oe = {
  assertOptions: vr,
  validators: he
}, v = oe.validators;
let D = class {
  constructor(t) {
    this.defaults = t || {}, this.interceptors = {
      request: new Je(),
      response: new Je()
    };
  }
  /**
   * Dispatch a request
   *
   * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
   * @param {?Object} config
   *
   * @returns {Promise} The Promise to be fulfilled
   */
  async request(t, n) {
    try {
      return await this._request(t, n);
    } catch (r) {
      if (r instanceof Error) {
        let o = {};
        Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
        const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
        try {
          r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
` + s) : r.stack = s;
        } catch {
        }
      }
      throw r;
    }
  }
  _request(t, n) {
    typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = L(this.defaults, n);
    const { transitional: r, paramsSerializer: o, headers: s } = n;
    r !== void 0 && oe.assertOptions(r, {
      silentJSONParsing: v.transitional(v.boolean),
      forcedJSONParsing: v.transitional(v.boolean),
      clarifyTimeoutError: v.transitional(v.boolean)
    }, !1), o != null && (a.isFunction(o) ? n.paramsSerializer = {
      serialize: o
    } : oe.assertOptions(o, {
      encode: v.function,
      serialize: v.function
    }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), oe.assertOptions(n, {
      baseUrl: v.spelling("baseURL"),
      withXsrfToken: v.spelling("withXSRFToken")
    }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
    let i = s && a.merge(
      s.common,
      s[n.method]
    );
    s && a.forEach(
      ["delete", "get", "head", "post", "put", "patch", "common"],
      (h) => {
        delete s[h];
      }
    ), n.headers = x.concat(i, s);
    const c = [];
    let f = !0;
    this.interceptors.request.forEach(function(y) {
      typeof y.runWhen == "function" && y.runWhen(n) === !1 || (f = f && y.synchronous, c.unshift(y.fulfilled, y.rejected));
    });
    const l = [];
    this.interceptors.response.forEach(function(y) {
      l.push(y.fulfilled, y.rejected);
    });
    let u, d = 0, g;
    if (!f) {
      const h = [Ye.bind(this), void 0];
      for (h.unshift(...c), h.push(...l), g = h.length, u = Promise.resolve(n); d < g; )
        u = u.then(h[d++], h[d++]);
      return u;
    }
    g = c.length;
    let O = n;
    for (d = 0; d < g; ) {
      const h = c[d++], y = c[d++];
      try {
        O = h(O);
      } catch (m) {
        y.call(this, m);
        break;
      }
    }
    try {
      u = Ye.call(this, O);
    } catch (h) {
      return Promise.reject(h);
    }
    for (d = 0, g = l.length; d < g; )
      u = u.then(l[d++], l[d++]);
    return u;
  }
  getUri(t) {
    t = L(this.defaults, t);
    const n = jt(t.baseURL, t.url, t.allowAbsoluteUrls);
    return At(n, t.params, t.paramsSerializer);
  }
};
a.forEach(["delete", "get", "head", "options"], function(t) {
  D.prototype[t] = function(n, r) {
    return this.request(L(r || {}, {
      method: t,
      url: n,
      data: (r || {}).data
    }));
  };
});
a.forEach(["post", "put", "patch"], function(t) {
  function n(r) {
    return function(s, i, c) {
      return this.request(L(c || {}, {
        method: t,
        headers: r ? {
          "Content-Type": "multipart/form-data"
        } : {},
        url: s,
        data: i
      }));
    };
  }
  D.prototype[t] = n(), D.prototype[t + "Form"] = n(!0);
});
let jr = class Bt {
  constructor(t) {
    if (typeof t != "function")
      throw new TypeError("executor must be a function.");
    let n;
    this.promise = new Promise(function(s) {
      n = s;
    });
    const r = this;
    this.promise.then((o) => {
      if (!r._listeners) return;
      let s = r._listeners.length;
      for (; s-- > 0; )
        r._listeners[s](o);
      r._listeners = null;
    }), this.promise.then = (o) => {
      let s;
      const i = new Promise((c) => {
        r.subscribe(c), s = c;
      }).then(o);
      return i.cancel = function() {
        r.unsubscribe(s);
      }, i;
    }, t(function(s, i, c) {
      r.reason || (r.reason = new q(s, i, c), n(r.reason));
    });
  }
  /**
   * Throws a `CanceledError` if cancellation has been requested.
   */
  throwIfRequested() {
    if (this.reason)
      throw this.reason;
  }
  /**
   * Subscribe to the cancel signal
   */
  subscribe(t) {
    if (this.reason) {
      t(this.reason);
      return;
    }
    this._listeners ? this._listeners.push(t) : this._listeners = [t];
  }
  /**
   * Unsubscribe from the cancel signal
   */
  unsubscribe(t) {
    if (!this._listeners)
      return;
    const n = this._listeners.indexOf(t);
    n !== -1 && this._listeners.splice(n, 1);
  }
  toAbortSignal() {
    const t = new AbortController(), n = (r) => {
      t.abort(r);
    };
    return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
  }
  /**
   * Returns an object that contains a new `CancelToken` and a function that, when called,
   * cancels the `CancelToken`.
   */
  static source() {
    let t;
    return {
      token: new Bt(function(o) {
        t = o;
      }),
      cancel: t
    };
  }
};
function Nr(e) {
  return function(n) {
    return e.apply(null, n);
  };
}
function Fr(e) {
  return a.isObject(e) && e.isAxiosError === !0;
}
const Pe = {
  Continue: 100,
  SwitchingProtocols: 101,
  Processing: 102,
  EarlyHints: 103,
  Ok: 200,
  Created: 201,
  Accepted: 202,
  NonAuthoritativeInformation: 203,
  NoContent: 204,
  ResetContent: 205,
  PartialContent: 206,
  MultiStatus: 207,
  AlreadyReported: 208,
  ImUsed: 226,
  MultipleChoices: 300,
  MovedPermanently: 301,
  Found: 302,
  SeeOther: 303,
  NotModified: 304,
  UseProxy: 305,
  Unused: 306,
  TemporaryRedirect: 307,
  PermanentRedirect: 308,
  BadRequest: 400,
  Unauthorized: 401,
  PaymentRequired: 402,
  Forbidden: 403,
  NotFound: 404,
  MethodNotAllowed: 405,
  NotAcceptable: 406,
  ProxyAuthenticationRequired: 407,
  RequestTimeout: 408,
  Conflict: 409,
  Gone: 410,
  LengthRequired: 411,
  PreconditionFailed: 412,
  PayloadTooLarge: 413,
  UriTooLong: 414,
  UnsupportedMediaType: 415,
  RangeNotSatisfiable: 416,
  ExpectationFailed: 417,
  ImATeapot: 418,
  MisdirectedRequest: 421,
  UnprocessableEntity: 422,
  Locked: 423,
  FailedDependency: 424,
  TooEarly: 425,
  UpgradeRequired: 426,
  PreconditionRequired: 428,
  TooManyRequests: 429,
  RequestHeaderFieldsTooLarge: 431,
  UnavailableForLegalReasons: 451,
  InternalServerError: 500,
  NotImplemented: 501,
  BadGateway: 502,
  ServiceUnavailable: 503,
  GatewayTimeout: 504,
  HttpVersionNotSupported: 505,
  VariantAlsoNegotiates: 506,
  InsufficientStorage: 507,
  LoopDetected: 508,
  NotExtended: 510,
  NetworkAuthenticationRequired: 511
};
Object.entries(Pe).forEach(([e, t]) => {
  Pe[t] = e;
});
function $t(e) {
  const t = new D(e), n = ht(D.prototype.request, t);
  return a.extend(n, D.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
    return $t(L(e, o));
  }, n;
}
const T = $t(Q);
T.Axios = D;
T.CanceledError = q;
T.CancelToken = jr;
T.isCancel = Pt;
T.VERSION = Lt;
T.toFormData = de;
T.AxiosError = b;
T.Cancel = T.CanceledError;
T.all = function(t) {
  return Promise.all(t);
};
T.spread = Nr;
T.isAxiosError = Fr;
T.mergeConfig = L;
T.AxiosHeaders = x;
T.formToJSON = (e) => Ct(a.isHTMLForm(e) ? new FormData(e) : e);
T.getAdapter = Dt.getAdapter;
T.HttpStatusCode = Pe;
T.default = T;
const {
  Axios: li,
  AxiosError: fi,
  CanceledError: di,
  isCancel: pi,
  CancelToken: hi,
  VERSION: mi,
  all: yi,
  Cancel: bi,
  isAxiosError: gi,
  spread: wi,
  toFormData: Ei,
  AxiosHeaders: Si,
  HttpStatusCode: Oi,
  formToJSON: Ti,
  getAdapter: _i,
  mergeConfig: Ri
} = T;
function Ur() {
  this.__data__ = [], this.size = 0;
}
function me(e, t) {
  return e === t || e !== e && t !== t;
}
function ye(e, t) {
  for (var n = e.length; n--; )
    if (me(e[n][0], t))
      return n;
  return -1;
}
var Dr = Array.prototype, Lr = Dr.splice;
function Br(e) {
  var t = this.__data__, n = ye(t, e);
  if (n < 0)
    return !1;
  var r = t.length - 1;
  return n == r ? t.pop() : Lr.call(t, n, 1), --this.size, !0;
}
function $r(e) {
  var t = this.__data__, n = ye(t, e);
  return n < 0 ? void 0 : t[n][1];
}
function Ir(e) {
  return ye(this.__data__, e) > -1;
}
function qr(e, t) {
  var n = this.__data__, r = ye(n, e);
  return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
}
function j(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.clear(); ++t < n; ) {
    var r = e[t];
    this.set(r[0], r[1]);
  }
}
j.prototype.clear = Ur;
j.prototype.delete = Br;
j.prototype.get = $r;
j.prototype.has = Ir;
j.prototype.set = qr;
function Mr() {
  this.__data__ = new j(), this.size = 0;
}
function Hr(e) {
  var t = this.__data__, n = t.delete(e);
  return this.size = t.size, n;
}
function zr(e) {
  return this.__data__.get(e);
}
function kr(e) {
  return this.__data__.has(e);
}
var It = typeof global == "object" && global && global.Object === Object && global, Jr = typeof self == "object" && self && self.Object === Object && self, M = It || Jr || Function("return this")(), ae = M.Symbol, qt = Object.prototype, Vr = qt.hasOwnProperty, Kr = qt.toString, J = ae ? ae.toStringTag : void 0;
function Wr(e) {
  var t = Vr.call(e, J), n = e[J];
  try {
    e[J] = void 0;
    var r = !0;
  } catch {
  }
  var o = Kr.call(e);
  return r && (t ? e[J] = n : delete e[J]), o;
}
var Gr = Object.prototype, Xr = Gr.toString;
function Zr(e) {
  return Xr.call(e);
}
var Qr = "[object Null]", Yr = "[object Undefined]", tt = ae ? ae.toStringTag : void 0;
function be(e) {
  return e == null ? e === void 0 ? Yr : Qr : tt && tt in Object(e) ? Wr(e) : Zr(e);
}
function $(e) {
  var t = typeof e;
  return e != null && (t == "object" || t == "function");
}
var eo = "[object AsyncFunction]", to = "[object Function]", no = "[object GeneratorFunction]", ro = "[object Proxy]";
function Be(e) {
  if (!$(e))
    return !1;
  var t = be(e);
  return t == to || t == no || t == eo || t == ro;
}
var Oe = M["__core-js_shared__"], nt = function() {
  var e = /[^.]+$/.exec(Oe && Oe.keys && Oe.keys.IE_PROTO || "");
  return e ? "Symbol(src)_1." + e : "";
}();
function oo(e) {
  return !!nt && nt in e;
}
var so = Function.prototype, io = so.toString;
function ao(e) {
  if (e != null) {
    try {
      return io.call(e);
    } catch {
    }
    try {
      return e + "";
    } catch {
    }
  }
  return "";
}
var co = /[\\^$.*+?()[\]{}|]/g, uo = /^\[object .+?Constructor\]$/, lo = Function.prototype, fo = Object.prototype, po = lo.toString, ho = fo.hasOwnProperty, mo = RegExp(
  "^" + po.call(ho).replace(co, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function yo(e) {
  if (!$(e) || oo(e))
    return !1;
  var t = Be(e) ? mo : uo;
  return t.test(ao(e));
}
function bo(e, t) {
  return e == null ? void 0 : e[t];
}
function $e(e, t) {
  var n = bo(e, t);
  return yo(n) ? n : void 0;
}
var Mt = $e(M, "Map"), W = $e(Object, "create");
function go() {
  this.__data__ = W ? W(null) : {}, this.size = 0;
}
function wo(e) {
  var t = this.has(e) && delete this.__data__[e];
  return this.size -= t ? 1 : 0, t;
}
var Eo = "__lodash_hash_undefined__", So = Object.prototype, Oo = So.hasOwnProperty;
function To(e) {
  var t = this.__data__;
  if (W) {
    var n = t[e];
    return n === Eo ? void 0 : n;
  }
  return Oo.call(t, e) ? t[e] : void 0;
}
var _o = Object.prototype, Ro = _o.hasOwnProperty;
function Ao(e) {
  var t = this.__data__;
  return W ? t[e] !== void 0 : Ro.call(t, e);
}
var xo = "__lodash_hash_undefined__";
function Co(e, t) {
  var n = this.__data__;
  return this.size += this.has(e) ? 0 : 1, n[e] = W && t === void 0 ? xo : t, this;
}
function B(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.clear(); ++t < n; ) {
    var r = e[t];
    this.set(r[0], r[1]);
  }
}
B.prototype.clear = go;
B.prototype.delete = wo;
B.prototype.get = To;
B.prototype.has = Ao;
B.prototype.set = Co;
function Po() {
  this.size = 0, this.__data__ = {
    hash: new B(),
    map: new (Mt || j)(),
    string: new B()
  };
}
function vo(e) {
  var t = typeof e;
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
}
function ge(e, t) {
  var n = e.__data__;
  return vo(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
}
function jo(e) {
  var t = ge(this, e).delete(e);
  return this.size -= t ? 1 : 0, t;
}
function No(e) {
  return ge(this, e).get(e);
}
function Fo(e) {
  return ge(this, e).has(e);
}
function Uo(e, t) {
  var n = ge(this, e), r = n.size;
  return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
}
function H(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.clear(); ++t < n; ) {
    var r = e[t];
    this.set(r[0], r[1]);
  }
}
H.prototype.clear = Po;
H.prototype.delete = jo;
H.prototype.get = No;
H.prototype.has = Fo;
H.prototype.set = Uo;
var Do = 200;
function Lo(e, t) {
  var n = this.__data__;
  if (n instanceof j) {
    var r = n.__data__;
    if (!Mt || r.length < Do - 1)
      return r.push([e, t]), this.size = ++n.size, this;
    n = this.__data__ = new H(r);
  }
  return n.set(e, t), this.size = n.size, this;
}
function z(e) {
  var t = this.__data__ = new j(e);
  this.size = t.size;
}
z.prototype.clear = Mr;
z.prototype.delete = Hr;
z.prototype.get = zr;
z.prototype.has = kr;
z.prototype.set = Lo;
var ce = function() {
  try {
    var e = $e(Object, "defineProperty");
    return e({}, "", {}), e;
  } catch {
  }
}();
function Ie(e, t, n) {
  t == "__proto__" && ce ? ce(e, t, {
    configurable: !0,
    enumerable: !0,
    value: n,
    writable: !0
  }) : e[t] = n;
}
function ve(e, t, n) {
  (n !== void 0 && !me(e[t], n) || n === void 0 && !(t in e)) && Ie(e, t, n);
}
function Bo(e) {
  return function(t, n, r) {
    for (var o = -1, s = Object(t), i = r(t), c = i.length; c--; ) {
      var f = i[++o];
      if (n(s[f], f, s) === !1)
        break;
    }
    return t;
  };
}
var $o = Bo(), Ht = typeof exports == "object" && exports && !exports.nodeType && exports, rt = Ht && typeof module == "object" && module && !module.nodeType && module, Io = rt && rt.exports === Ht, ot = Io ? M.Buffer : void 0;
ot && ot.allocUnsafe;
function qo(e, t) {
  return e.slice();
}
var st = M.Uint8Array;
function Mo(e) {
  var t = new e.constructor(e.byteLength);
  return new st(t).set(new st(e)), t;
}
function Ho(e, t) {
  var n = Mo(e.buffer);
  return new e.constructor(n, e.byteOffset, e.length);
}
function zo(e, t) {
  var n = -1, r = e.length;
  for (t || (t = Array(r)); ++n < r; )
    t[n] = e[n];
  return t;
}
var it = Object.create, ko = /* @__PURE__ */ function() {
  function e() {
  }
  return function(t) {
    if (!$(t))
      return {};
    if (it)
      return it(t);
    e.prototype = t;
    var n = new e();
    return e.prototype = void 0, n;
  };
}();
function Jo(e, t) {
  return function(n) {
    return e(t(n));
  };
}
var zt = Jo(Object.getPrototypeOf, Object), Vo = Object.prototype;
function kt(e) {
  var t = e && e.constructor, n = typeof t == "function" && t.prototype || Vo;
  return e === n;
}
function Ko(e) {
  return typeof e.constructor == "function" && !kt(e) ? ko(zt(e)) : {};
}
function Y(e) {
  return e != null && typeof e == "object";
}
var Wo = "[object Arguments]";
function at(e) {
  return Y(e) && be(e) == Wo;
}
var Jt = Object.prototype, Go = Jt.hasOwnProperty, Xo = Jt.propertyIsEnumerable, je = at(/* @__PURE__ */ function() {
  return arguments;
}()) ? at : function(e) {
  return Y(e) && Go.call(e, "callee") && !Xo.call(e, "callee");
}, Ne = Array.isArray, Zo = 9007199254740991;
function Vt(e) {
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Zo;
}
function qe(e) {
  return e != null && Vt(e.length) && !Be(e);
}
function Qo(e) {
  return Y(e) && qe(e);
}
function Yo() {
  return !1;
}
var Kt = typeof exports == "object" && exports && !exports.nodeType && exports, ct = Kt && typeof module == "object" && module && !module.nodeType && module, es = ct && ct.exports === Kt, ut = es ? M.Buffer : void 0, ts = ut ? ut.isBuffer : void 0, Wt = ts || Yo, ns = "[object Object]", rs = Function.prototype, os = Object.prototype, Gt = rs.toString, ss = os.hasOwnProperty, is = Gt.call(Object);
function as(e) {
  if (!Y(e) || be(e) != ns)
    return !1;
  var t = zt(e);
  if (t === null)
    return !0;
  var n = ss.call(t, "constructor") && t.constructor;
  return typeof n == "function" && n instanceof n && Gt.call(n) == is;
}
var cs = "[object Arguments]", us = "[object Array]", ls = "[object Boolean]", fs = "[object Date]", ds = "[object Error]", ps = "[object Function]", hs = "[object Map]", ms = "[object Number]", ys = "[object Object]", bs = "[object RegExp]", gs = "[object Set]", ws = "[object String]", Es = "[object WeakMap]", Ss = "[object ArrayBuffer]", Os = "[object DataView]", Ts = "[object Float32Array]", _s = "[object Float64Array]", Rs = "[object Int8Array]", As = "[object Int16Array]", xs = "[object Int32Array]", Cs = "[object Uint8Array]", Ps = "[object Uint8ClampedArray]", vs = "[object Uint16Array]", js = "[object Uint32Array]", S = {};
S[Ts] = S[_s] = S[Rs] = S[As] = S[xs] = S[Cs] = S[Ps] = S[vs] = S[js] = !0;
S[cs] = S[us] = S[Ss] = S[ls] = S[Os] = S[fs] = S[ds] = S[ps] = S[hs] = S[ms] = S[ys] = S[bs] = S[gs] = S[ws] = S[Es] = !1;
function Ns(e) {
  return Y(e) && Vt(e.length) && !!S[be(e)];
}
function Fs(e) {
  return function(t) {
    return e(t);
  };
}
var Xt = typeof exports == "object" && exports && !exports.nodeType && exports, V = Xt && typeof module == "object" && module && !module.nodeType && module, Us = V && V.exports === Xt, Te = Us && It.process, lt = function() {
  try {
    var e = V && V.require && V.require("util").types;
    return e || Te && Te.binding && Te.binding("util");
  } catch {
  }
}(), ft = lt && lt.isTypedArray, Zt = ft ? Fs(ft) : Ns;
function Fe(e, t) {
  if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
    return e[t];
}
var Ds = Object.prototype, Ls = Ds.hasOwnProperty;
function Bs(e, t, n) {
  var r = e[t];
  (!(Ls.call(e, t) && me(r, n)) || n === void 0 && !(t in e)) && Ie(e, t, n);
}
function $s(e, t, n, r) {
  var o = !n;
  n || (n = {});
  for (var s = -1, i = t.length; ++s < i; ) {
    var c = t[s], f = void 0;
    f === void 0 && (f = e[c]), o ? Ie(n, c, f) : Bs(n, c, f);
  }
  return n;
}
function Is(e, t) {
  for (var n = -1, r = Array(e); ++n < e; )
    r[n] = t(n);
  return r;
}
var qs = 9007199254740991, Ms = /^(?:0|[1-9]\d*)$/;
function Qt(e, t) {
  var n = typeof e;
  return t = t ?? qs, !!t && (n == "number" || n != "symbol" && Ms.test(e)) && e > -1 && e % 1 == 0 && e < t;
}
function Hs(e, t) {
  var n = Ne(e), r = !n && je(e), o = !n && !r && Wt(e), s = !n && !r && !o && Zt(e), i = n || r || o || s, c = i ? Is(e.length, String) : [], f = c.length;
  for (var l in e)
    i && // Safari 9 has enumerable `arguments.length` in strict mode.
    (l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
    o && (l == "offset" || l == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
    s && (l == "buffer" || l == "byteLength" || l == "byteOffset") || // Skip index properties.
    Qt(l, f)) || c.push(l);
  return c;
}
function zs(e) {
  var t = [];
  if (e != null)
    for (var n in Object(e))
      t.push(n);
  return t;
}
var ks = Object.prototype, Js = ks.hasOwnProperty;
function Vs(e) {
  if (!$(e))
    return zs(e);
  var t = kt(e), n = [];
  for (var r in e)
    r == "constructor" && (t || !Js.call(e, r)) || n.push(r);
  return n;
}
function Yt(e) {
  return qe(e) ? Hs(e) : Vs(e);
}
function Ks(e) {
  return $s(e, Yt(e));
}
function Ws(e, t, n, r, o, s, i) {
  var c = Fe(e, n), f = Fe(t, n), l = i.get(f);
  if (l) {
    ve(e, n, l);
    return;
  }
  var u = s ? s(c, f, n + "", e, t, i) : void 0, d = u === void 0;
  if (d) {
    var g = Ne(f), O = !g && Wt(f), h = !g && !O && Zt(f);
    u = f, g || O || h ? Ne(c) ? u = c : Qo(c) ? u = zo(c) : O ? (d = !1, u = qo(f)) : h ? (d = !1, u = Ho(f)) : u = [] : as(f) || je(f) ? (u = c, je(c) ? u = Ks(c) : (!$(c) || Be(c)) && (u = Ko(f))) : d = !1;
  }
  d && (i.set(f, u), o(u, f, r, s, i), i.delete(f)), ve(e, n, u);
}
function en(e, t, n, r, o) {
  e !== t && $o(t, function(s, i) {
    if (o || (o = new z()), $(s))
      Ws(e, t, i, n, en, r, o);
    else {
      var c = r ? r(Fe(e, i), s, i + "", e, t, o) : void 0;
      c === void 0 && (c = s), ve(e, i, c);
    }
  }, Yt);
}
function tn(e) {
  return e;
}
function Gs(e, t, n) {
  switch (n.length) {
    case 0:
      return e.call(t);
    case 1:
      return e.call(t, n[0]);
    case 2:
      return e.call(t, n[0], n[1]);
    case 3:
      return e.call(t, n[0], n[1], n[2]);
  }
  return e.apply(t, n);
}
var dt = Math.max;
function Xs(e, t, n) {
  return t = dt(t === void 0 ? e.length - 1 : t, 0), function() {
    for (var r = arguments, o = -1, s = dt(r.length - t, 0), i = Array(s); ++o < s; )
      i[o] = r[t + o];
    o = -1;
    for (var c = Array(t + 1); ++o < t; )
      c[o] = r[o];
    return c[t] = n(i), Gs(e, this, c);
  };
}
function Zs(e) {
  return function() {
    return e;
  };
}
var Qs = ce ? function(e, t) {
  return ce(e, "toString", {
    configurable: !0,
    enumerable: !1,
    value: Zs(t),
    writable: !0
  });
} : tn, Ys = 800, ei = 16, ti = Date.now;
function ni(e) {
  var t = 0, n = 0;
  return function() {
    var r = ti(), o = ei - (r - n);
    if (n = r, o > 0) {
      if (++t >= Ys)
        return arguments[0];
    } else
      t = 0;
    return e.apply(void 0, arguments);
  };
}
var ri = ni(Qs);
function oi(e, t) {
  return ri(Xs(e, t, tn), e + "");
}
function si(e, t, n) {
  if (!$(n))
    return !1;
  var r = typeof t;
  return (r == "number" ? qe(n) && Qt(t, n.length) : r == "string" && t in n) ? me(n[t], e) : !1;
}
function ii(e) {
  return oi(function(t, n) {
    var r = -1, o = n.length, s = o > 1 ? n[o - 1] : void 0, i = o > 2 ? n[2] : void 0;
    for (s = e.length > 3 && typeof s == "function" ? (o--, s) : void 0, i && si(n[0], n[1], i) && (s = o < 3 ? void 0 : s, o = 1), t = Object(t); ++r < o; ) {
      var c = n[r];
      c && e(t, c, r, s);
    }
    return t;
  });
}
var pt = ii(function(e, t, n) {
  en(e, t, n);
});
const Ai = (e, t) => {
  const n = (r, o) => (s, i) => (c, f) => {
    const l = te(!1), u = te(null), d = te(null), g = te(null);
    return {
      loading: l,
      error: u,
      data: d,
      run: async (h, y) => {
        l.value = !0, u.value = null, d.value = null, g.value = new AbortController(), e || (e = T.create());
        let m = "";
        typeof s == "string" && (m = s), nn(s) && (m = s.value);
        let p = {
          method: r,
          url: m,
          headers: {}
        };
        return h && (c = h), p.method === "get" || p.method === "delete" ? p.params = c : p.data = c, p.method !== "get" && (p.params = {
          ...p.params,
          timestamp: (/* @__PURE__ */ new Date()).getTime()
        }), i && (p = await i(p)), f && (p = pt(p, f)), y && (p = pt(p, y)), t && (p = await t(p)), p.axiosInstance && (e = p.axiosInstance), p.urlPrefix && (p.baseURL = p.baseURL + p.urlPrefix), p.signal || (p.signal = g.value.signal), p.beforeRun && (p = await p.beforeRun(p)), e(p).then(async (w) => {
          let E = (w == null ? void 0 : w.data) ?? w;
          return p.onSuccess && (E = await p.onSuccess(w, p)), d.value = E, Promise.resolve([null, E]);
        }).catch(async (w) => {
          if (p.signal) {
            const C = p.signal.reason;
            typeof C == "string" && (w.abortReason = C || "");
          }
          let E = w;
          return p.onError && (E = await p.onError(w, p)), p.onCustomError && (E = await p.onCustomError(w, p)), u.value = E, Promise.resolve([E, null]);
        }).finally(() => {
          p.finally && p.finally(p), l.value = !1;
        });
      },
      abortController: g
    };
  };
  return {
    get: n("get"),
    post: n("post"),
    put: n("put"),
    patch: n("patch"),
    delete: n("delete")
  };
};
export {
  Ai as curringHttp
};
