import { inject as Xe, ref as ue, resolveComponent as C, openBlock as Ze, createElementBlock as qe, Fragment as We, createElementVNode as Z, unref as le, createVNode as M, withCtx as N, createTextVNode as S } from "vue";
import { _ as Ve } from "./DashboardPlugin-1aa3a071.js";
import { D as Ke } from "./Model-15b5d631.js";
function Me(e, t) {
  return function() {
    return e.apply(t, arguments);
  };
}
const { toString: _e } = Object.prototype, { getPrototypeOf: re } = Object, k = ((e) => (t) => {
  const n = _e.call(t);
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
})(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => k(t) === e), L = (e) => (t) => typeof t === e, { isArray: T } = Array, I = L("undefined");
function $e(e) {
  return e !== null && !I(e) && e.constructor !== null && !I(e.constructor) && w(e.constructor.isBuffer) && e.constructor.isBuffer(e);
}
const je = P("ArrayBuffer");
function et(e) {
  let t;
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && je(e.buffer), t;
}
const tt = L("string"), w = L("function"), Oe = L("number"), Q = (e) => e !== null && typeof e == "object", nt = (e) => e === !0 || e === !1, G = (e) => {
  if (k(e) !== "object")
    return !1;
  const t = re(e);
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
}, rt = P("Date"), st = P("File"), ot = P("Blob"), it = P("FileList"), at = (e) => Q(e) && w(e.pipe), ct = (e) => {
  let t;
  return e && (typeof FormData == "function" && e instanceof FormData || w(e.append) && ((t = k(e)) === "formdata" || // detect form-data instance
  t === "object" && w(e.toString) && e.toString() === "[object FormData]"));
}, ut = P("URLSearchParams"), lt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function v(e, t, { allOwnKeys: n = !1 } = {}) {
  if (e === null || typeof e > "u")
    return;
  let r, s;
  if (typeof e != "object" && (e = [e]), T(e))
    for (r = 0, s = e.length; r < s; r++)
      t.call(null, e[r], r, e);
  else {
    const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
    let u;
    for (r = 0; r < i; r++)
      u = o[r], t.call(null, e[u], u, e);
  }
}
function xe(e, t) {
  t = t.toLowerCase();
  const n = Object.keys(e);
  let r = n.length, s;
  for (; r-- > 0; )
    if (s = n[r], t === s.toLowerCase())
      return s;
  return null;
}
const ze = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Ne = (e) => !I(e) && e !== ze;
function _() {
  const { caseless: e } = Ne(this) && this || {}, t = {}, n = (r, s) => {
    const o = e && xe(t, s) || s;
    G(t[o]) && G(r) ? t[o] = _(t[o], r) : G(r) ? t[o] = _({}, r) : T(r) ? t[o] = r.slice() : t[o] = r;
  };
  for (let r = 0, s = arguments.length; r < s; r++)
    arguments[r] && v(arguments[r], n);
  return t;
}
const ft = (e, t, n, { allOwnKeys: r } = {}) => (v(t, (s, o) => {
  n && w(s) ? e[o] = Me(s, n) : e[o] = s;
}, { allOwnKeys: r }), e), At = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), dt = (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);
}, mt = (e, t, n, r) => {
  let s, o, i;
  const u = {};
  if (t = t || {}, e == null)
    return t;
  do {
    for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
      i = s[o], (!r || r(i, e, t)) && !u[i] && (t[i] = e[i], u[i] = !0);
    e = n !== !1 && re(e);
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
  return t;
}, pt = (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;
}, ht = (e) => {
  if (!e)
    return null;
  if (T(e))
    return e;
  let t = e.length;
  if (!Oe(t))
    return null;
  const n = new Array(t);
  for (; t-- > 0; )
    n[t] = e[t];
  return n;
}, bt = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && re(Uint8Array)), Et = (e, t) => {
  const r = (e && e[Symbol.iterator]).call(e);
  let s;
  for (; (s = r.next()) && !s.done; ) {
    const o = s.value;
    t.call(e, o[0], o[1]);
  }
}, Rt = (e, t) => {
  let n;
  const r = [];
  for (; (n = e.exec(t)) !== null; )
    r.push(n);
  return r;
}, gt = P("HTMLFormElement"), wt = (e) => e.toLowerCase().replace(
  /[-_\s]([a-z\d])(\w*)/g,
  function(n, r, s) {
    return r.toUpperCase() + s;
  }
), fe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), yt = P("RegExp"), Be = (e, t) => {
  const n = Object.getOwnPropertyDescriptors(e), r = {};
  v(n, (s, o) => {
    let i;
    (i = t(s, o, e)) !== !1 && (r[o] = i || s);
  }), Object.defineProperties(e, r);
}, Pt = (e) => {
  Be(e, (t, n) => {
    if (w(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
      return !1;
    const r = e[n];
    if (w(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 + "'");
      });
    }
  });
}, Mt = (e, t) => {
  const n = {}, r = (s) => {
    s.forEach((o) => {
      n[o] = !0;
    });
  };
  return T(e) ? r(e) : r(String(e).split(t)), n;
}, jt = () => {
}, Ot = (e, t) => (e = +e, Number.isFinite(e) ? e : t), q = "abcdefghijklmnopqrstuvwxyz", Ae = "0123456789", Te = {
  DIGIT: Ae,
  ALPHA: q,
  ALPHA_DIGIT: q + q.toUpperCase() + Ae
}, xt = (e = 16, t = Te.ALPHA_DIGIT) => {
  let n = "";
  const { length: r } = t;
  for (; e--; )
    n += t[Math.random() * r | 0];
  return n;
};
function zt(e) {
  return !!(e && w(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
}
const Nt = (e) => {
  const t = new Array(10), n = (r, s) => {
    if (Q(r)) {
      if (t.indexOf(r) >= 0)
        return;
      if (!("toJSON" in r)) {
        t[s] = r;
        const o = T(r) ? [] : {};
        return v(r, (i, u) => {
          const m = n(i, s + 1);
          !I(m) && (o[u] = m);
        }), t[s] = void 0, o;
      }
    }
    return r;
  };
  return n(e, 0);
}, Bt = P("AsyncFunction"), Tt = (e) => e && (Q(e) || w(e)) && w(e.then) && w(e.catch), a = {
  isArray: T,
  isArrayBuffer: je,
  isBuffer: $e,
  isFormData: ct,
  isArrayBufferView: et,
  isString: tt,
  isNumber: Oe,
  isBoolean: nt,
  isObject: Q,
  isPlainObject: G,
  isUndefined: I,
  isDate: rt,
  isFile: st,
  isBlob: ot,
  isRegExp: yt,
  isFunction: w,
  isStream: at,
  isURLSearchParams: ut,
  isTypedArray: bt,
  isFileList: it,
  forEach: v,
  merge: _,
  extend: ft,
  trim: lt,
  stripBOM: At,
  inherits: dt,
  toFlatObject: mt,
  kindOf: k,
  kindOfTest: P,
  endsWith: pt,
  toArray: ht,
  forEachEntry: Et,
  matchAll: Rt,
  isHTMLForm: gt,
  hasOwnProperty: fe,
  hasOwnProp: fe,
  // an alias to avoid ESLint no-prototype-builtins detection
  reduceDescriptors: Be,
  freezeMethods: Pt,
  toObjectSet: Mt,
  toCamelCase: wt,
  noop: jt,
  toFiniteNumber: Ot,
  findKey: xe,
  global: ze,
  isContextDefined: Ne,
  ALPHABET: Te,
  generateString: xt,
  isSpecCompliantForm: zt,
  toJSONObject: Nt,
  isAsyncFn: Bt,
  isThenable: Tt
};
function p(e, t, n, r, s) {
  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), s && (this.response = s);
}
a.inherits(p, 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.response && this.response.status ? this.response.status : null
    };
  }
});
const Ce = p.prototype, Se = {};
[
  "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) => {
  Se[e] = { value: e };
});
Object.defineProperties(p, Se);
Object.defineProperty(Ce, "isAxiosError", { value: !0 });
p.from = (e, t, n, r, s, o) => {
  const i = Object.create(Ce);
  return a.toFlatObject(e, i, function(m) {
    return m !== Error.prototype;
  }, (u) => u !== "isAxiosError"), p.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
};
const Ct = null;
function $(e) {
  return a.isPlainObject(e) || a.isArray(e);
}
function He(e) {
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
}
function de(e, t, n) {
  return e ? e.concat(t).map(function(s, o) {
    return s = He(s), !n && o ? "[" + s + "]" : s;
  }).join(n ? "." : "") : t;
}
function St(e) {
  return a.isArray(e) && !e.some($);
}
const Ht = a.toFlatObject(a, {}, null, function(t) {
  return /^is[A-Z]/.test(t);
});
function U(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(d, E) {
    return !a.isUndefined(E[d]);
  });
  const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, m = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
  if (!a.isFunction(s))
    throw new TypeError("visitor must be a function");
  function f(A) {
    if (A === null)
      return "";
    if (a.isDate(A))
      return A.toISOString();
    if (!m && a.isBlob(A))
      throw new p("Blob is not supported. Use a Buffer instead.");
    return a.isArrayBuffer(A) || a.isTypedArray(A) ? m && typeof Blob == "function" ? new Blob([A]) : Buffer.from(A) : A;
  }
  function l(A, d, E) {
    let g = A;
    if (A && !E && typeof A == "object") {
      if (a.endsWith(d, "{}"))
        d = r ? d : d.slice(0, -2), A = JSON.stringify(A);
      else if (a.isArray(A) && St(A) || (a.isFileList(A) || a.endsWith(d, "[]")) && (g = a.toArray(A)))
        return d = He(d), g.forEach(function(x, Ue) {
          !(a.isUndefined(x) || x === null) && t.append(
            // eslint-disable-next-line no-nested-ternary
            i === !0 ? de([d], Ue, o) : i === null ? d : d + "[]",
            f(x)
          );
        }), !1;
    }
    return $(A) ? !0 : (t.append(de(E, d, o), f(A)), !1);
  }
  const c = [], h = Object.assign(Ht, {
    defaultVisitor: l,
    convertValue: f,
    isVisitable: $
  });
  function R(A, d) {
    if (!a.isUndefined(A)) {
      if (c.indexOf(A) !== -1)
        throw Error("Circular reference detected in " + d.join("."));
      c.push(A), a.forEach(A, function(g, O) {
        (!(a.isUndefined(g) || g === null) && s.call(
          t,
          g,
          a.isString(O) ? O.trim() : O,
          d,
          h
        )) === !0 && R(g, d ? d.concat(O) : [O]);
      }), c.pop();
    }
  }
  if (!a.isObject(e))
    throw new TypeError("data must be an object");
  return R(e), t;
}
function me(e) {
  const t = {
    "!": "%21",
    "'": "%27",
    "(": "%28",
    ")": "%29",
    "~": "%7E",
    "%20": "+",
    "%00": "\0"
  };
  return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
    return t[r];
  });
}
function se(e, t) {
  this._pairs = [], e && U(e, this, t);
}
const Ie = se.prototype;
Ie.append = function(t, n) {
  this._pairs.push([t, n]);
};
Ie.toString = function(t) {
  const n = t ? function(r) {
    return t.call(this, r, me);
  } : me;
  return this._pairs.map(function(s) {
    return n(s[0]) + "=" + n(s[1]);
  }, "").join("&");
};
function It(e) {
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
}
function ve(e, t, n) {
  if (!t)
    return e;
  const r = n && n.encode || It, s = n && n.serialize;
  let o;
  if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new se(t, n).toString(r), o) {
    const i = e.indexOf("#");
    i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
  }
  return e;
}
class vt {
  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 pe = vt, De = {
  silentJSONParsing: !0,
  forcedJSONParsing: !0,
  clarifyTimeoutError: !1
}, Dt = typeof URLSearchParams < "u" ? URLSearchParams : se, Gt = typeof FormData < "u" ? FormData : null, Ft = typeof Blob < "u" ? Blob : null, Yt = {
  isBrowser: !0,
  classes: {
    URLSearchParams: Dt,
    FormData: Gt,
    Blob: Ft
  },
  protocols: ["http", "https", "file", "blob", "url", "data"]
}, Ge = typeof window < "u" && typeof document < "u", Jt = ((e) => Ge && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), kt = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  hasBrowserEnv: Ge,
  hasStandardBrowserEnv: Jt,
  hasStandardBrowserWebWorkerEnv: kt
}, Symbol.toStringTag, { value: "Module" })), y = {
  ...Lt,
  ...Yt
};
function Qt(e, t) {
  return U(e, new y.classes.URLSearchParams(), Object.assign({
    visitor: function(n, r, s, o) {
      return y.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
    }
  }, t));
}
function Ut(e) {
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
}
function Xt(e) {
  const t = {}, n = Object.keys(e);
  let r;
  const s = n.length;
  let o;
  for (r = 0; r < s; r++)
    o = n[r], t[o] = e[o];
  return t;
}
function Fe(e) {
  function t(n, r, s, o) {
    let i = n[o++];
    if (i === "__proto__")
      return !0;
    const u = Number.isFinite(+i), m = o >= n.length;
    return i = !i && a.isArray(s) ? s.length : i, m ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !u) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Xt(s[i])), !u);
  }
  if (a.isFormData(e) && a.isFunction(e.entries)) {
    const n = {};
    return a.forEachEntry(e, (r, s) => {
      t(Ut(r), s, n, 0);
    }), n;
  }
  return null;
}
function Zt(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 oe = {
  transitional: De,
  adapter: ["xhr", "http"],
  transformRequest: [function(t, n) {
    const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
    if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
      return s ? JSON.stringify(Fe(t)) : t;
    if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(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 u;
    if (o) {
      if (r.indexOf("application/x-www-form-urlencoded") > -1)
        return Qt(t, this.formSerializer).toString();
      if ((u = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
        const m = this.env && this.env.FormData;
        return U(
          u ? { "files[]": t } : t,
          m && new m(),
          this.formSerializer
        );
      }
    }
    return o || s ? (n.setContentType("application/json", !1), Zt(t)) : t;
  }],
  transformResponse: [function(t) {
    const n = this.transitional || oe.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
    if (t && a.isString(t) && (r && !this.responseType || s)) {
      const i = !(n && n.silentJSONParsing) && s;
      try {
        return JSON.parse(t);
      } catch (u) {
        if (i)
          throw u.name === "SyntaxError" ? p.from(u, p.ERR_BAD_RESPONSE, this, null, this.response) : u;
      }
    }
    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: y.classes.FormData,
    Blob: y.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) => {
  oe.headers[e] = {};
});
const ie = oe, qt = 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"
]), Wt = (e) => {
  const t = {};
  let n, r, s;
  return e && e.split(`
`).forEach(function(i) {
    s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && qt[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
  }), t;
}, he = Symbol("internals");
function H(e) {
  return e && String(e).trim().toLowerCase();
}
function F(e) {
  return e === !1 || e == null ? e : a.isArray(e) ? e.map(F) : String(e);
}
function Vt(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 Kt = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
function W(e, t, n, r, s) {
  if (a.isFunction(r))
    return r.call(this, t, n);
  if (s && (t = n), !!a.isString(t)) {
    if (a.isString(r))
      return t.indexOf(r) !== -1;
    if (a.isRegExp(r))
      return r.test(t);
  }
}
function _t(e) {
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
}
function $t(e, t) {
  const n = a.toCamelCase(" " + t);
  ["get", "set", "has"].forEach((r) => {
    Object.defineProperty(e, r + n, {
      value: function(s, o, i) {
        return this[r].call(this, t, s, o, i);
      },
      configurable: !0
    });
  });
}
class X {
  constructor(t) {
    t && this.set(t);
  }
  set(t, n, r) {
    const s = this;
    function o(u, m, f) {
      const l = H(m);
      if (!l)
        throw new Error("header name must be a non-empty string");
      const c = a.findKey(s, l);
      (!c || s[c] === void 0 || f === !0 || f === void 0 && s[c] !== !1) && (s[c || m] = F(u));
    }
    const i = (u, m) => a.forEach(u, (f, l) => o(f, l, m));
    return a.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : a.isString(t) && (t = t.trim()) && !Kt(t) ? i(Wt(t), n) : t != null && o(n, t, r), this;
  }
  get(t, n) {
    if (t = H(t), t) {
      const r = a.findKey(this, t);
      if (r) {
        const s = this[r];
        if (!n)
          return s;
        if (n === !0)
          return Vt(s);
        if (a.isFunction(n))
          return n.call(this, s, r);
        if (a.isRegExp(n))
          return n.exec(s);
        throw new TypeError("parser must be boolean|regexp|function");
      }
    }
  }
  has(t, n) {
    if (t = H(t), t) {
      const r = a.findKey(this, t);
      return !!(r && this[r] !== void 0 && (!n || W(this, this[r], r, n)));
    }
    return !1;
  }
  delete(t, n) {
    const r = this;
    let s = !1;
    function o(i) {
      if (i = H(i), i) {
        const u = a.findKey(r, i);
        u && (!n || W(r, r[u], u, n)) && (delete r[u], s = !0);
      }
    }
    return a.isArray(t) ? t.forEach(o) : o(t), s;
  }
  clear(t) {
    const n = Object.keys(this);
    let r = n.length, s = !1;
    for (; r--; ) {
      const o = n[r];
      (!t || W(this, this[o], o, t, !0)) && (delete this[o], s = !0);
    }
    return s;
  }
  normalize(t) {
    const n = this, r = {};
    return a.forEach(this, (s, o) => {
      const i = a.findKey(r, o);
      if (i) {
        n[i] = F(s), delete n[o];
        return;
      }
      const u = t ? _t(o) : String(o).trim();
      u !== o && delete n[o], n[u] = F(s), r[u] = !0;
    }), this;
  }
  concat(...t) {
    return this.constructor.concat(this, ...t);
  }
  toJSON(t) {
    const n = /* @__PURE__ */ Object.create(null);
    return a.forEach(this, (r, s) => {
      r != null && r !== !1 && (n[s] = 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(`
`);
  }
  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((s) => r.set(s)), r;
  }
  static accessor(t) {
    const r = (this[he] = this[he] = {
      accessors: {}
    }).accessors, s = this.prototype;
    function o(i) {
      const u = H(i);
      r[u] || ($t(s, i), r[u] = !0);
    }
    return a.isArray(t) ? t.forEach(o) : o(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);
const j = X;
function V(e, t) {
  const n = this || ie, r = t || n, s = j.from(r.headers);
  let o = r.data;
  return a.forEach(e, function(u) {
    o = u.call(n, o, s.normalize(), t ? t.status : void 0);
  }), s.normalize(), o;
}
function Ye(e) {
  return !!(e && e.__CANCEL__);
}
function D(e, t, n) {
  p.call(this, e ?? "canceled", p.ERR_CANCELED, t, n), this.name = "CanceledError";
}
a.inherits(D, p, {
  __CANCEL__: !0
});
function en(e, t, n) {
  const r = n.config.validateStatus;
  !n.status || !r || r(n.status) ? e(n) : t(new p(
    "Request failed with status code " + n.status,
    [p.ERR_BAD_REQUEST, p.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
    n.config,
    n.request,
    n
  ));
}
const tn = y.hasStandardBrowserEnv ? (
  // Standard browser envs support document.cookie
  {
    write(e, t, n, r, s, o) {
      const i = [e + "=" + encodeURIComponent(t)];
      a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(s) && i.push("domain=" + s), o === !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 nn(e) {
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
}
function rn(e, t) {
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
}
function Je(e, t) {
  return e && !nn(t) ? rn(e, t) : t;
}
const sn = y.hasStandardBrowserEnv ? (
  // Standard browser envs have full support of the APIs needed to test
  // whether the request URL is of the same origin as current location.
  function() {
    const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
    let r;
    function s(o) {
      let i = o;
      return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
        href: n.href,
        protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
        host: n.host,
        search: n.search ? n.search.replace(/^\?/, "") : "",
        hash: n.hash ? n.hash.replace(/^#/, "") : "",
        hostname: n.hostname,
        port: n.port,
        pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
      };
    }
    return r = s(window.location.href), function(i) {
      const u = a.isString(i) ? s(i) : i;
      return u.protocol === r.protocol && u.host === r.host;
    };
  }()
) : (
  // Non standard browser envs (web workers, react-native) lack needed support.
  function() {
    return function() {
      return !0;
    };
  }()
);
function on(e) {
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
  return t && t[1] || "";
}
function an(e, t) {
  e = e || 10;
  const n = new Array(e), r = new Array(e);
  let s = 0, o = 0, i;
  return t = t !== void 0 ? t : 1e3, function(m) {
    const f = Date.now(), l = r[o];
    i || (i = f), n[s] = m, r[s] = f;
    let c = o, h = 0;
    for (; c !== s; )
      h += n[c++], c = c % e;
    if (s = (s + 1) % e, s === o && (o = (o + 1) % e), f - i < t)
      return;
    const R = l && f - l;
    return R ? Math.round(h * 1e3 / R) : void 0;
  };
}
function be(e, t) {
  let n = 0;
  const r = an(50, 250);
  return (s) => {
    const o = s.loaded, i = s.lengthComputable ? s.total : void 0, u = o - n, m = r(u), f = o <= i;
    n = o;
    const l = {
      loaded: o,
      total: i,
      progress: i ? o / i : void 0,
      bytes: u,
      rate: m || void 0,
      estimated: m && i && f ? (i - o) / m : void 0,
      event: s
    };
    l[t ? "download" : "upload"] = !0, e(l);
  };
}
const cn = typeof XMLHttpRequest < "u", un = cn && function(e) {
  return new Promise(function(n, r) {
    let s = e.data;
    const o = j.from(e.headers).normalize();
    let { responseType: i, withXSRFToken: u } = e, m;
    function f() {
      e.cancelToken && e.cancelToken.unsubscribe(m), e.signal && e.signal.removeEventListener("abort", m);
    }
    let l;
    if (a.isFormData(s)) {
      if (y.hasStandardBrowserEnv || y.hasStandardBrowserWebWorkerEnv)
        o.setContentType(!1);
      else if ((l = o.getContentType()) !== !1) {
        const [d, ...E] = l ? l.split(";").map((g) => g.trim()).filter(Boolean) : [];
        o.setContentType([d || "multipart/form-data", ...E].join("; "));
      }
    }
    let c = new XMLHttpRequest();
    if (e.auth) {
      const d = e.auth.username || "", E = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
      o.set("Authorization", "Basic " + btoa(d + ":" + E));
    }
    const h = Je(e.baseURL, e.url);
    c.open(e.method.toUpperCase(), ve(h, e.params, e.paramsSerializer), !0), c.timeout = e.timeout;
    function R() {
      if (!c)
        return;
      const d = j.from(
        "getAllResponseHeaders" in c && c.getAllResponseHeaders()
      ), g = {
        data: !i || i === "text" || i === "json" ? c.responseText : c.response,
        status: c.status,
        statusText: c.statusText,
        headers: d,
        config: e,
        request: c
      };
      en(function(x) {
        n(x), f();
      }, function(x) {
        r(x), f();
      }, g), c = null;
    }
    if ("onloadend" in c ? c.onloadend = R : c.onreadystatechange = function() {
      !c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(R);
    }, c.onabort = function() {
      c && (r(new p("Request aborted", p.ECONNABORTED, e, c)), c = null);
    }, c.onerror = function() {
      r(new p("Network Error", p.ERR_NETWORK, e, c)), c = null;
    }, c.ontimeout = function() {
      let E = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
      const g = e.transitional || De;
      e.timeoutErrorMessage && (E = e.timeoutErrorMessage), r(new p(
        E,
        g.clarifyTimeoutError ? p.ETIMEDOUT : p.ECONNABORTED,
        e,
        c
      )), c = null;
    }, y.hasStandardBrowserEnv && (u && a.isFunction(u) && (u = u(e)), u || u !== !1 && sn(h))) {
      const d = e.xsrfHeaderName && e.xsrfCookieName && tn.read(e.xsrfCookieName);
      d && o.set(e.xsrfHeaderName, d);
    }
    s === void 0 && o.setContentType(null), "setRequestHeader" in c && a.forEach(o.toJSON(), function(E, g) {
      c.setRequestHeader(g, E);
    }), a.isUndefined(e.withCredentials) || (c.withCredentials = !!e.withCredentials), i && i !== "json" && (c.responseType = e.responseType), typeof e.onDownloadProgress == "function" && c.addEventListener("progress", be(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", be(e.onUploadProgress)), (e.cancelToken || e.signal) && (m = (d) => {
      c && (r(!d || d.type ? new D(null, e, c) : d), c.abort(), c = null);
    }, e.cancelToken && e.cancelToken.subscribe(m), e.signal && (e.signal.aborted ? m() : e.signal.addEventListener("abort", m)));
    const A = on(h);
    if (A && y.protocols.indexOf(A) === -1) {
      r(new p("Unsupported protocol " + A + ":", p.ERR_BAD_REQUEST, e));
      return;
    }
    c.send(s || null);
  });
}, ee = {
  http: Ct,
  xhr: un
};
a.forEach(ee, (e, t) => {
  if (e) {
    try {
      Object.defineProperty(e, "name", { value: t });
    } catch {
    }
    Object.defineProperty(e, "adapterName", { value: t });
  }
});
const Ee = (e) => `- ${e}`, ln = (e) => a.isFunction(e) || e === null || e === !1, ke = {
  getAdapter: (e) => {
    e = a.isArray(e) ? e : [e];
    const { length: t } = e;
    let n, r;
    const s = {};
    for (let o = 0; o < t; o++) {
      n = e[o];
      let i;
      if (r = n, !ln(n) && (r = ee[(i = String(n)).toLowerCase()], r === void 0))
        throw new p(`Unknown adapter '${i}'`);
      if (r)
        break;
      s[i || "#" + o] = r;
    }
    if (!r) {
      const o = Object.entries(s).map(
        ([u, m]) => `adapter ${u} ` + (m === !1 ? "is not supported by the environment" : "is not available in the build")
      );
      let i = t ? o.length > 1 ? `since :
` + o.map(Ee).join(`
`) : " " + Ee(o[0]) : "as no adapter specified";
      throw new p(
        "There is no suitable adapter to dispatch the request " + i,
        "ERR_NOT_SUPPORT"
      );
    }
    return r;
  },
  adapters: ee
};
function K(e) {
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
    throw new D(null, e);
}
function Re(e) {
  return K(e), e.headers = j.from(e.headers), e.data = V.call(
    e,
    e.transformRequest
  ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ke.getAdapter(e.adapter || ie.adapter)(e).then(function(r) {
    return K(e), r.data = V.call(
      e,
      e.transformResponse,
      r
    ), r.headers = j.from(r.headers), r;
  }, function(r) {
    return Ye(r) || (K(e), r && r.response && (r.response.data = V.call(
      e,
      e.transformResponse,
      r.response
    ), r.response.headers = j.from(r.response.headers))), Promise.reject(r);
  });
}
const ge = (e) => e instanceof j ? e.toJSON() : e;
function B(e, t) {
  t = t || {};
  const n = {};
  function r(f, l, c) {
    return a.isPlainObject(f) && a.isPlainObject(l) ? a.merge.call({ caseless: c }, f, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
  }
  function s(f, l, c) {
    if (a.isUndefined(l)) {
      if (!a.isUndefined(f))
        return r(void 0, f, c);
    } else
      return r(f, l, c);
  }
  function o(f, l) {
    if (!a.isUndefined(l))
      return r(void 0, l);
  }
  function i(f, l) {
    if (a.isUndefined(l)) {
      if (!a.isUndefined(f))
        return r(void 0, f);
    } else
      return r(void 0, l);
  }
  function u(f, l, c) {
    if (c in t)
      return r(f, l);
    if (c in e)
      return r(void 0, f);
  }
  const m = {
    url: o,
    method: o,
    data: o,
    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: u,
    headers: (f, l) => s(ge(f), ge(l), !0)
  };
  return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
    const c = m[l] || s, h = c(e[l], t[l], l);
    a.isUndefined(h) && c !== u || (n[l] = h);
  }), n;
}
const Le = "1.6.7", ae = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
  ae[e] = function(r) {
    return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
  };
});
const we = {};
ae.transitional = function(t, n, r) {
  function s(o, i) {
    return "[Axios v" + Le + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
  }
  return (o, i, u) => {
    if (t === !1)
      throw new p(
        s(i, " has been removed" + (n ? " in " + n : "")),
        p.ERR_DEPRECATED
      );
    return n && !we[i] && (we[i] = !0, console.warn(
      s(
        i,
        " has been deprecated since v" + n + " and will be removed in the near future"
      )
    )), t ? t(o, i, u) : !0;
  };
};
function fn(e, t, n) {
  if (typeof e != "object")
    throw new p("options must be an object", p.ERR_BAD_OPTION_VALUE);
  const r = Object.keys(e);
  let s = r.length;
  for (; s-- > 0; ) {
    const o = r[s], i = t[o];
    if (i) {
      const u = e[o], m = u === void 0 || i(u, o, e);
      if (m !== !0)
        throw new p("option " + o + " must be " + m, p.ERR_BAD_OPTION_VALUE);
      continue;
    }
    if (n !== !0)
      throw new p("Unknown option " + o, p.ERR_BAD_OPTION);
  }
}
const te = {
  assertOptions: fn,
  validators: ae
}, z = te.validators;
class J {
  constructor(t) {
    this.defaults = t, this.interceptors = {
      request: new pe(),
      response: new pe()
    };
  }
  /**
   * 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 s;
        Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
        const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
        r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
` + o) : r.stack = o;
      }
      throw r;
    }
  }
  _request(t, n) {
    typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = B(this.defaults, n);
    const { transitional: r, paramsSerializer: s, headers: o } = n;
    r !== void 0 && te.assertOptions(r, {
      silentJSONParsing: z.transitional(z.boolean),
      forcedJSONParsing: z.transitional(z.boolean),
      clarifyTimeoutError: z.transitional(z.boolean)
    }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
      serialize: s
    } : te.assertOptions(s, {
      encode: z.function,
      serialize: z.function
    }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
    let i = o && a.merge(
      o.common,
      o[n.method]
    );
    o && a.forEach(
      ["delete", "get", "head", "post", "put", "patch", "common"],
      (A) => {
        delete o[A];
      }
    ), n.headers = j.concat(i, o);
    const u = [];
    let m = !0;
    this.interceptors.request.forEach(function(d) {
      typeof d.runWhen == "function" && d.runWhen(n) === !1 || (m = m && d.synchronous, u.unshift(d.fulfilled, d.rejected));
    });
    const f = [];
    this.interceptors.response.forEach(function(d) {
      f.push(d.fulfilled, d.rejected);
    });
    let l, c = 0, h;
    if (!m) {
      const A = [Re.bind(this), void 0];
      for (A.unshift.apply(A, u), A.push.apply(A, f), h = A.length, l = Promise.resolve(n); c < h; )
        l = l.then(A[c++], A[c++]);
      return l;
    }
    h = u.length;
    let R = n;
    for (c = 0; c < h; ) {
      const A = u[c++], d = u[c++];
      try {
        R = A(R);
      } catch (E) {
        d.call(this, E);
        break;
      }
    }
    try {
      l = Re.call(this, R);
    } catch (A) {
      return Promise.reject(A);
    }
    for (c = 0, h = f.length; c < h; )
      l = l.then(f[c++], f[c++]);
    return l;
  }
  getUri(t) {
    t = B(this.defaults, t);
    const n = Je(t.baseURL, t.url);
    return ve(n, t.params, t.paramsSerializer);
  }
}
a.forEach(["delete", "get", "head", "options"], function(t) {
  J.prototype[t] = function(n, r) {
    return this.request(B(r || {}, {
      method: t,
      url: n,
      data: (r || {}).data
    }));
  };
});
a.forEach(["post", "put", "patch"], function(t) {
  function n(r) {
    return function(o, i, u) {
      return this.request(B(u || {}, {
        method: t,
        headers: r ? {
          "Content-Type": "multipart/form-data"
        } : {},
        url: o,
        data: i
      }));
    };
  }
  J.prototype[t] = n(), J.prototype[t + "Form"] = n(!0);
});
const Y = J;
class ce {
  constructor(t) {
    if (typeof t != "function")
      throw new TypeError("executor must be a function.");
    let n;
    this.promise = new Promise(function(o) {
      n = o;
    });
    const r = this;
    this.promise.then((s) => {
      if (!r._listeners)
        return;
      let o = r._listeners.length;
      for (; o-- > 0; )
        r._listeners[o](s);
      r._listeners = null;
    }), this.promise.then = (s) => {
      let o;
      const i = new Promise((u) => {
        r.subscribe(u), o = u;
      }).then(s);
      return i.cancel = function() {
        r.unsubscribe(o);
      }, i;
    }, t(function(o, i, u) {
      r.reason || (r.reason = new D(o, i, u), 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);
  }
  /**
   * Returns an object that contains a new `CancelToken` and a function that, when called,
   * cancels the `CancelToken`.
   */
  static source() {
    let t;
    return {
      token: new ce(function(s) {
        t = s;
      }),
      cancel: t
    };
  }
}
const An = ce;
function dn(e) {
  return function(n) {
    return e.apply(null, n);
  };
}
function mn(e) {
  return a.isObject(e) && e.isAxiosError === !0;
}
const ne = {
  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(ne).forEach(([e, t]) => {
  ne[t] = e;
});
const pn = ne;
function Qe(e) {
  const t = new Y(e), n = Me(Y.prototype.request, t);
  return a.extend(n, Y.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
    return Qe(B(e, s));
  }, n;
}
const b = Qe(ie);
b.Axios = Y;
b.CanceledError = D;
b.CancelToken = An;
b.isCancel = Ye;
b.VERSION = Le;
b.toFormData = U;
b.AxiosError = p;
b.Cancel = b.CanceledError;
b.all = function(t) {
  return Promise.all(t);
};
b.spread = dn;
b.isAxiosError = mn;
b.mergeConfig = B;
b.AxiosHeaders = j;
b.formToJSON = (e) => Fe(a.isHTMLForm(e) ? new FormData(e) : e);
b.getAdapter = ke.getAdapter;
b.HttpStatusCode = pn;
b.default = b;
const ye = b, Pe = "https://sparc-api.herokuapp.com/", hn = (e) => ({
  // Get a list of resources
  searchDataset: (t) => ye.get(`${Pe}image_search/${t}`),
  // Get a single resource by its id
  getBLVLink: (t) => ye.get(`${Pe}image_blv_link/${t}`)
  // Create a new resource
  //create: (payload) => axios.post(`${base}/${resource}`, payload),
  // Replace an existing resource with payload
  //update: (id, payload) => axios.put(`${base}/${resource}/${id}`, payload),
}), bn = {
  ...hn()
  //custom: axios.get(`${base}/some/custom/route`, config),
}, En = {
  biolucida: bn
}, Rn = "data:image/png;base64, ";
const gn = { class: "fill" }, wn = ["src"], yn = { class: "tw-p-1" }, Pn = {
  __name: "ImageSelector",
  emits: ["setTitle"],
  setup(e, { emit: t }) {
    const n = Xe("emitter");
    let r = ue(null), s = ue();
    t("setTitle", "MUSE Image Selector");
    function i(f) {
      let l = s.value[f].path;
      n.emit("mbf-image-selected", l);
    }
    n.on("anatomical-location-selected", (f) => {
      u(f);
    });
    const u = async (f) => {
      let l = {}, c = {};
      try {
        await En.biolucida.searchDataset(f).then((h) => {
          c = h;
        }), c.status === 200 && (l = c, m(Object.assign(new Ke(l.data.dataset_images)).Imgs));
      } catch {
        console.error("couldn't fetch images from dataset");
      }
    };
    function m(f) {
      let l = [];
      f.forEach((c) => {
        let h = {
          name: c.ImgName,
          size: "...",
          path: c.Path
        };
        l.push(h);
      }), s.value = l, r = Rn;
    }
    return n.on("selectSubject", (f) => {
      r.value = f, imgPath2.value = "./imgs/imgSel.png", imgPath3.value = "./imgs/imgSel2.png";
    }), (f, l) => {
      const c = C("el-option"), h = C("el-select"), R = C("el-table-column"), A = C("el-button"), d = C("el-table");
      return Ze(), qe(We, null, [
        Z("div", gn, [
          Z("img", { src: le(r) }, null, 8, wn)
        ]),
        Z("div", yn, [
          M(h, { placeholder: "Select Subject" }, {
            default: N(() => [
              M(c, { value: 0 }, {
                default: N(() => [
                  S("sub 1 ")
                ]),
                _: 1
              }),
              S(),
              M(c, { value: 1 }, {
                default: N(() => [
                  S("sub 2")
                ]),
                _: 1
              }),
              M(c, { value: 2 }, {
                default: N(() => [
                  S("sub 3")
                ]),
                _: 1
              })
            ]),
            _: 1
          })
        ]),
        M(d, {
          data: le(s),
          class: "table-of-images tw-text-sm"
        }, {
          default: N(() => [
            M(R, {
              prop: "name",
              label: "Name"
            }),
            M(R, {
              prop: "size",
              label: "Size"
            }),
            M(R, {
              fixed: "right",
              label: "Img"
            }, {
              default: N((E) => [
                M(A, {
                  link: "",
                  type: "primary",
                  size: "small",
                  onClick: (g) => i(E.$index)
                }, {
                  default: N(() => [
                    S("Open")
                  ]),
                  _: 2
                }, 1032, ["onClick"])
              ]),
              _: 1
            })
          ]),
          _: 1
        }, 8, ["data"])
      ], 64);
    };
  }
}, xn = /* @__PURE__ */ Ve(Pn, [["__scopeId", "data-v-b4f42360"]]);
export {
  xn as default
};
