diff --git a/app/assets/composable/group.ts b/app/assets/composable/group.ts new file mode 100644 index 0000000..94a3089 --- /dev/null +++ b/app/assets/composable/group.ts @@ -0,0 +1,66 @@ +import { ref, watch } from 'vue' +import axios from 'axios' +import type { GroupInterface } from '@userfrosting/sprinkle-account/types' +import { type AlertInterface, AlertStyle } from '@userfrosting/sprinkle-core/types' + +/** + * Create GroupAPI interface, based on GroupInterface + */ +interface GroupApi extends GroupInterface { + users_count: number +} + +/** + * API Composable + */ +export function useGroupApi(route: any) { + const loading = ref(false) + const error = ref() + const group = ref({ + id: 0, + name: '', + slug: '', + description: '', + icon: '', + created_at: '', + updated_at: '', + deleted_at: null, + users_count: 0 + }) + + async function fetchApi() { + loading.value = true + error.value = null + + await axios + .get('/api/groups/g/' + route.params.slug) + .then((response) => { + group.value = response.data + }) + .catch((err) => { + error.value = { + ...{ + description: 'An error as occurred', + style: AlertStyle.Danger, + closeBtn: true + }, + ...err.response.data + } + }) + .finally(() => { + loading.value = false + }) + } + + watch( + () => route.params.slug, + () => { + fetchApi() + }, + { immediate: true } + ) + + return { group, error, loading } +} + +export type { GroupApi } diff --git a/app/assets/views/Group/GroupInfo.vue b/app/assets/views/Group/GroupInfo.vue new file mode 100644 index 0000000..2ad7f49 --- /dev/null +++ b/app/assets/views/Group/GroupInfo.vue @@ -0,0 +1,31 @@ + + + diff --git a/app/assets/views/Group/GroupUsers.vue b/app/assets/views/Group/GroupUsers.vue new file mode 100644 index 0000000..9b18e8f --- /dev/null +++ b/app/assets/views/Group/GroupUsers.vue @@ -0,0 +1,47 @@ + + + diff --git a/app/assets/views/GroupView.vue b/app/assets/views/GroupView.vue index 0e4c033..39dcac4 100644 --- a/app/assets/views/GroupView.vue +++ b/app/assets/views/GroupView.vue @@ -1,3 +1,26 @@ + + diff --git a/dist/DashboardView--DjNrx_m.js b/dist/DashboardView--DjNrx_m.js deleted file mode 100644 index 0a62a46..0000000 --- a/dist/DashboardView--DjNrx_m.js +++ /dev/null @@ -1,2017 +0,0 @@ -import { defineComponent as K, resolveComponent as F, openBlock as B, createElementBlock as M, Fragment as ne, createVNode as T, createBlock as Ee, withCtx as A, createTextVNode as J, createElementVNode as m, renderList as He, toDisplayString as O, unref as D } from "vue"; -import { defineStore as pt } from "pinia"; -import { h as de } from "./moment-h96o7c8I.js"; -function Me(e, t) { - return function() { - return e.apply(t, arguments); - }; -} -const { toString: ht } = Object.prototype, { getPrototypeOf: Se } = Object, re = /* @__PURE__ */ ((e) => (t) => { - const n = ht.call(t); - return e[n] || (e[n] = n.slice(8, -1).toLowerCase()); -})(/* @__PURE__ */ Object.create(null)), N = (e) => (e = e.toLowerCase(), (t) => re(t) === e), se = (e) => (t) => typeof t === e, { isArray: z } = Array, W = se("undefined"); -function mt(e) { - return e !== null && !W(e) && e.constructor !== null && !W(e.constructor) && k(e.constructor.isBuffer) && e.constructor.isBuffer(e); -} -const ze = N("ArrayBuffer"); -function yt(e) { - let t; - return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ze(e.buffer), t; -} -const bt = se("string"), k = se("function"), Ve = se("number"), oe = (e) => e !== null && typeof e == "object", wt = (e) => e === !0 || e === !1, Q = (e) => { - if (re(e) !== "object") - return !1; - const t = Se(e); - return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e); -}, gt = N("Date"), Et = N("File"), St = N("Blob"), Rt = N("FileList"), _t = (e) => oe(e) && k(e.pipe), Ot = (e) => { - let t; - return e && (typeof FormData == "function" && e instanceof FormData || k(e.append) && ((t = re(e)) === "formdata" || // detect form-data instance - t === "object" && k(e.toString) && e.toString() === "[object FormData]")); -}, Tt = N("URLSearchParams"), [At, xt, Ct, Pt] = ["ReadableStream", "Request", "Response", "Headers"].map(N), kt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); -function G(e, t, { allOwnKeys: n = !1 } = {}) { - if (e === null || typeof e > "u") - return; - let r, s; - if (typeof e != "object" && (e = [e]), z(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 l; - for (r = 0; r < i; r++) - l = o[r], t.call(null, e[l], l, e); - } -} -function $e(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 I = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Je = (e) => !W(e) && e !== I; -function pe() { - const { caseless: e } = Je(this) && this || {}, t = {}, n = (r, s) => { - const o = e && $e(t, s) || s; - Q(t[o]) && Q(r) ? t[o] = pe(t[o], r) : Q(r) ? t[o] = pe({}, r) : z(r) ? t[o] = r.slice() : t[o] = r; - }; - for (let r = 0, s = arguments.length; r < s; r++) - arguments[r] && G(arguments[r], n); - return t; -} -const Nt = (e, t, n, { allOwnKeys: r } = {}) => (G(t, (s, o) => { - n && k(s) ? e[o] = Me(s, n) : e[o] = s; -}, { allOwnKeys: r }), e), Ft = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ut = (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); -}, Dt = (e, t, n, r) => { - let s, o, i; - const l = {}; - 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)) && !l[i] && (t[i] = e[i], l[i] = !0); - e = n !== !1 && Se(e); - } while (e && (!n || n(e, t)) && e !== Object.prototype); - return t; -}, Bt = (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; -}, Lt = (e) => { - if (!e) return null; - if (z(e)) return e; - let t = e.length; - if (!Ve(t)) return null; - const n = new Array(t); - for (; t-- > 0; ) - n[t] = e[t]; - return n; -}, jt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Se(Uint8Array)), qt = (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]); - } -}, It = (e, t) => { - let n; - const r = []; - for (; (n = e.exec(t)) !== null; ) - r.push(n); - return r; -}, vt = N("HTMLFormElement"), Ht = (e) => e.toLowerCase().replace( - /[-_\s]([a-z\d])(\w*)/g, - function(n, r, s) { - return r.toUpperCase() + s; - } -), xe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Mt = N("RegExp"), We = (e, t) => { - const n = Object.getOwnPropertyDescriptors(e), r = {}; - G(n, (s, o) => { - let i; - (i = t(s, o, e)) !== !1 && (r[o] = i || s); - }), Object.defineProperties(e, r); -}, zt = (e) => { - We(e, (t, n) => { - if (k(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1) - return !1; - const r = e[n]; - if (k(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 + "'"); - }); - } - }); -}, Vt = (e, t) => { - const n = {}, r = (s) => { - s.forEach((o) => { - n[o] = !0; - }); - }; - return z(e) ? r(e) : r(String(e).split(t)), n; -}, $t = () => { -}, Jt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, le = "abcdefghijklmnopqrstuvwxyz", Ce = "0123456789", Ke = { - DIGIT: Ce, - ALPHA: le, - ALPHA_DIGIT: le + le.toUpperCase() + Ce -}, Wt = (e = 16, t = Ke.ALPHA_DIGIT) => { - let n = ""; - const { length: r } = t; - for (; e--; ) - n += t[Math.random() * r | 0]; - return n; -}; -function Kt(e) { - return !!(e && k(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]); -} -const Gt = (e) => { - const t = new Array(10), n = (r, s) => { - if (oe(r)) { - if (t.indexOf(r) >= 0) - return; - if (!("toJSON" in r)) { - t[s] = r; - const o = z(r) ? [] : {}; - return G(r, (i, l) => { - const f = n(i, s + 1); - !W(f) && (o[l] = f); - }), t[s] = void 0, o; - } - } - return r; - }; - return n(e, 0); -}, Xt = N("AsyncFunction"), Yt = (e) => e && (oe(e) || k(e)) && k(e.then) && k(e.catch), Ge = ((e, t) => e ? setImmediate : t ? ((n, r) => (I.addEventListener("message", ({ source: s, data: o }) => { - s === I && o === n && r.length && r.shift()(); -}, !1), (s) => { - r.push(s), I.postMessage(n, "*"); -}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))( - typeof setImmediate == "function", - k(I.postMessage) -), Qt = typeof queueMicrotask < "u" ? queueMicrotask.bind(I) : typeof process < "u" && process.nextTick || Ge, a = { - isArray: z, - isArrayBuffer: ze, - isBuffer: mt, - isFormData: Ot, - isArrayBufferView: yt, - isString: bt, - isNumber: Ve, - isBoolean: wt, - isObject: oe, - isPlainObject: Q, - isReadableStream: At, - isRequest: xt, - isResponse: Ct, - isHeaders: Pt, - isUndefined: W, - isDate: gt, - isFile: Et, - isBlob: St, - isRegExp: Mt, - isFunction: k, - isStream: _t, - isURLSearchParams: Tt, - isTypedArray: jt, - isFileList: Rt, - forEach: G, - merge: pe, - extend: Nt, - trim: kt, - stripBOM: Ft, - inherits: Ut, - toFlatObject: Dt, - kindOf: re, - kindOfTest: N, - endsWith: Bt, - toArray: Lt, - forEachEntry: qt, - matchAll: It, - isHTMLForm: vt, - hasOwnProperty: xe, - hasOwnProp: xe, - // an alias to avoid ESLint no-prototype-builtins detection - reduceDescriptors: We, - freezeMethods: zt, - toObjectSet: Vt, - toCamelCase: Ht, - noop: $t, - toFiniteNumber: Jt, - findKey: $e, - global: I, - isContextDefined: Je, - ALPHABET: Ke, - generateString: Wt, - isSpecCompliantForm: Kt, - toJSONObject: Gt, - isAsyncFn: Xt, - isThenable: Yt, - setImmediate: Ge, - asap: Qt -}; -function y(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, this.status = s.status ? s.status : null); -} -a.inherits(y, 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 Xe = y.prototype, Ye = {}; -[ - "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) => { - Ye[e] = { value: e }; -}); -Object.defineProperties(y, Ye); -Object.defineProperty(Xe, "isAxiosError", { value: !0 }); -y.from = (e, t, n, r, s, o) => { - const i = Object.create(Xe); - return a.toFlatObject(e, i, function(f) { - return f !== Error.prototype; - }, (l) => l !== "isAxiosError"), y.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i; -}; -const Zt = null; -function he(e) { - return a.isPlainObject(e) || a.isArray(e); -} -function Qe(e) { - return a.endsWith(e, "[]") ? e.slice(0, -2) : e; -} -function Pe(e, t, n) { - return e ? e.concat(t).map(function(s, o) { - return s = Qe(s), !n && o ? "[" + s + "]" : s; - }).join(n ? "." : "") : t; -} -function en(e) { - return a.isArray(e) && !e.some(he); -} -const tn = a.toFlatObject(a, {}, null, function(t) { - return /^is[A-Z]/.test(t); -}); -function ie(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(b, h) { - return !a.isUndefined(h[b]); - }); - const r = n.metaTokens, s = n.visitor || u, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t); - if (!a.isFunction(s)) - throw new TypeError("visitor must be a function"); - function c(p) { - if (p === null) return ""; - if (a.isDate(p)) - return p.toISOString(); - if (!f && a.isBlob(p)) - throw new y("Blob is not supported. Use a Buffer instead."); - return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p; - } - function u(p, b, h) { - let g = p; - if (p && !h && typeof p == "object") { - if (a.endsWith(b, "{}")) - b = r ? b : b.slice(0, -2), p = JSON.stringify(p); - else if (a.isArray(p) && en(p) || (a.isFileList(p) || a.endsWith(b, "[]")) && (g = a.toArray(p))) - return b = Qe(b), g.forEach(function(_, U) { - !(a.isUndefined(_) || _ === null) && t.append( - // eslint-disable-next-line no-nested-ternary - i === !0 ? Pe([b], U, o) : i === null ? b : b + "[]", - c(_) - ); - }), !1; - } - return he(p) ? !0 : (t.append(Pe(h, b, o), c(p)), !1); - } - const d = [], w = Object.assign(tn, { - defaultVisitor: u, - convertValue: c, - isVisitable: he - }); - function S(p, b) { - if (!a.isUndefined(p)) { - if (d.indexOf(p) !== -1) - throw Error("Circular reference detected in " + b.join(".")); - d.push(p), a.forEach(p, function(g, R) { - (!(a.isUndefined(g) || g === null) && s.call( - t, - g, - a.isString(R) ? R.trim() : R, - b, - w - )) === !0 && S(g, b ? b.concat(R) : [R]); - }), d.pop(); - } - } - if (!a.isObject(e)) - throw new TypeError("data must be an object"); - return S(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 Re(e, t) { - this._pairs = [], e && ie(e, this, t); -} -const Ze = Re.prototype; -Ze.append = function(t, n) { - this._pairs.push([t, n]); -}; -Ze.toString = function(t) { - const n = t ? function(r) { - return t.call(this, r, ke); - } : ke; - return this._pairs.map(function(s) { - return n(s[0]) + "=" + n(s[1]); - }, "").join("&"); -}; -function nn(e) { - return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); -} -function et(e, t, n) { - if (!t) - return e; - const r = n && n.encode || nn, s = n && n.serialize; - let o; - if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new Re(t, n).toString(r), o) { - const i = e.indexOf("#"); - i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o; - } - return e; -} -class Ne { - 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 tt = { - silentJSONParsing: !0, - forcedJSONParsing: !0, - clarifyTimeoutError: !1 -}, rn = typeof URLSearchParams < "u" ? URLSearchParams : Re, sn = typeof FormData < "u" ? FormData : null, on = typeof Blob < "u" ? Blob : null, an = { - isBrowser: !0, - classes: { - URLSearchParams: rn, - FormData: sn, - Blob: on - }, - protocols: ["http", "https", "file", "blob", "url", "data"] -}, _e = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, ln = _e && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), cn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef -self instanceof WorkerGlobalScope && typeof self.importScripts == "function", un = _e && window.location.href || "http://localhost", fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - hasBrowserEnv: _e, - hasStandardBrowserEnv: ln, - hasStandardBrowserWebWorkerEnv: cn, - navigator: me, - origin: un -}, Symbol.toStringTag, { value: "Module" })), C = { - ...fn, - ...an -}; -function dn(e, t) { - return ie(e, new C.classes.URLSearchParams(), Object.assign({ - visitor: function(n, r, s, o) { - return C.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments); - } - }, t)); -} -function pn(e) { - return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]); -} -function hn(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 nt(e) { - function t(n, r, s, o) { - let i = n[o++]; - if (i === "__proto__") return !0; - const l = Number.isFinite(+i), f = o >= n.length; - return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !l) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = hn(s[i])), !l); - } - if (a.isFormData(e) && a.isFunction(e.entries)) { - const n = {}; - return a.forEachEntry(e, (r, s) => { - t(pn(r), s, n, 0); - }), n; - } - return null; -} -function mn(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 (0, JSON.stringify)(e); -} -const X = { - transitional: tt, - adapter: ["xhr", "http", "fetch"], - 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(nt(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 l; - if (o) { - if (r.indexOf("application/x-www-form-urlencoded") > -1) - return dn(t, this.formSerializer).toString(); - if ((l = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { - const f = this.env && this.env.FormData; - return ie( - l ? { "files[]": t } : t, - f && new f(), - this.formSerializer - ); - } - } - return o || s ? (n.setContentType("application/json", !1), mn(t)) : t; - }], - transformResponse: [function(t) { - const n = this.transitional || X.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json"; - if (a.isResponse(t) || a.isReadableStream(t)) - return t; - if (t && a.isString(t) && (r && !this.responseType || s)) { - const i = !(n && n.silentJSONParsing) && s; - try { - return JSON.parse(t); - } catch (l) { - if (i) - throw l.name === "SyntaxError" ? y.from(l, y.ERR_BAD_RESPONSE, this, null, this.response) : l; - } - } - 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: C.classes.FormData, - Blob: C.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) => { - X.headers[e] = {}; -}); -const yn = 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" -]), bn = (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] && yn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r); - }), t; -}, Fe = Symbol("internals"); -function $(e) { - return e && String(e).trim().toLowerCase(); -} -function Z(e) { - return e === !1 || e == null ? e : a.isArray(e) ? e.map(Z) : String(e); -} -function wn(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 gn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()); -function ce(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 En(e) { - return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r); -} -function Sn(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 P { - constructor(t) { - t && this.set(t); - } - set(t, n, r) { - const s = this; - function o(l, f, c) { - const u = $(f); - if (!u) - throw new Error("header name must be a non-empty string"); - const d = a.findKey(s, u); - (!d || s[d] === void 0 || c === !0 || c === void 0 && s[d] !== !1) && (s[d || f] = Z(l)); - } - const i = (l, f) => a.forEach(l, (c, u) => o(c, u, f)); - if (a.isPlainObject(t) || t instanceof this.constructor) - i(t, n); - else if (a.isString(t) && (t = t.trim()) && !gn(t)) - i(bn(t), n); - else if (a.isHeaders(t)) - for (const [l, f] of t.entries()) - o(f, l, r); - else - t != null && o(n, t, r); - return this; - } - get(t, n) { - if (t = $(t), t) { - const r = a.findKey(this, t); - if (r) { - const s = this[r]; - if (!n) - return s; - if (n === !0) - return wn(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 = $(t), t) { - const r = a.findKey(this, t); - return !!(r && this[r] !== void 0 && (!n || ce(this, this[r], r, n))); - } - return !1; - } - delete(t, n) { - const r = this; - let s = !1; - function o(i) { - if (i = $(i), i) { - const l = a.findKey(r, i); - l && (!n || ce(r, r[l], l, n)) && (delete r[l], 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 || ce(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] = Z(s), delete n[o]; - return; - } - const l = t ? En(o) : String(o).trim(); - l !== o && delete n[o], n[l] = Z(s), r[l] = !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[Fe] = this[Fe] = { - accessors: {} - }).accessors, s = this.prototype; - function o(i) { - const l = $(i); - r[l] || (Sn(s, i), r[l] = !0); - } - return a.isArray(t) ? t.forEach(o) : o(t), this; - } -} -P.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]); -a.reduceDescriptors(P.prototype, ({ value: e }, t) => { - let n = t[0].toUpperCase() + t.slice(1); - return { - get: () => e, - set(r) { - this[n] = r; - } - }; -}); -a.freezeMethods(P); -function ue(e, t) { - const n = this || X, r = t || n, s = P.from(r.headers); - let o = r.data; - return a.forEach(e, function(l) { - o = l.call(n, o, s.normalize(), t ? t.status : void 0); - }), s.normalize(), o; -} -function rt(e) { - return !!(e && e.__CANCEL__); -} -function V(e, t, n) { - y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError"; -} -a.inherits(V, y, { - __CANCEL__: !0 -}); -function st(e, t, n) { - const r = n.config.validateStatus; - !n.status || !r || r(n.status) ? e(n) : t(new y( - "Request failed with status code " + n.status, - [y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], - n.config, - n.request, - n - )); -} -function Rn(e) { - const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e); - return t && t[1] || ""; -} -function _n(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(f) { - const c = Date.now(), u = r[o]; - i || (i = c), n[s] = f, r[s] = c; - let d = o, w = 0; - for (; d !== s; ) - w += n[d++], d = d % e; - if (s = (s + 1) % e, s === o && (o = (o + 1) % e), c - i < t) - return; - const S = u && c - u; - return S ? Math.round(w * 1e3 / S) : void 0; - }; -} -function On(e, t) { - let n = 0, r = 1e3 / t, s, o; - const i = (c, u = Date.now()) => { - n = u, s = null, o && (clearTimeout(o), o = null), e.apply(null, c); - }; - return [(...c) => { - const u = Date.now(), d = u - n; - d >= r ? i(c, u) : (s = c, o || (o = setTimeout(() => { - o = null, i(s); - }, r - d))); - }, () => s && i(s)]; -} -const ee = (e, t, n = 3) => { - let r = 0; - const s = _n(50, 250); - return On((o) => { - const i = o.loaded, l = o.lengthComputable ? o.total : void 0, f = i - r, c = s(f), u = i <= l; - r = i; - const d = { - loaded: i, - total: l, - progress: l ? i / l : void 0, - bytes: f, - rate: c || void 0, - estimated: c && l && u ? (l - i) / c : void 0, - event: o, - lengthComputable: l != null, - [t ? "download" : "upload"]: !0 - }; - e(d); - }, n); -}, Ue = (e, t) => { - const n = e != null; - return [(r) => t[0]({ - lengthComputable: n, - total: e, - loaded: r - }), t[1]]; -}, De = (e) => (...t) => a.asap(() => e(...t)), Tn = C.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 = C.navigator && /(msie|trident)/i.test(C.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 l = a.isString(i) ? s(i) : i; - return l.protocol === r.protocol && l.host === r.host; - }; - }() -) : ( - // Non standard browser envs (web workers, react-native) lack needed support. - /* @__PURE__ */ function() { - return function() { - return !0; - }; - }() -), An = C.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 xn(e) { - return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e); -} -function Cn(e, t) { - return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e; -} -function ot(e, t) { - return e && !xn(t) ? Cn(e, t) : t; -} -const Be = (e) => e instanceof P ? { ...e } : e; -function H(e, t) { - t = t || {}; - const n = {}; - function r(c, u, d) { - return a.isPlainObject(c) && a.isPlainObject(u) ? a.merge.call({ caseless: d }, c, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u; - } - function s(c, u, d) { - if (a.isUndefined(u)) { - if (!a.isUndefined(c)) - return r(void 0, c, d); - } else return r(c, u, d); - } - function o(c, u) { - if (!a.isUndefined(u)) - return r(void 0, u); - } - function i(c, u) { - if (a.isUndefined(u)) { - if (!a.isUndefined(c)) - return r(void 0, c); - } else return r(void 0, u); - } - function l(c, u, d) { - if (d in t) - return r(c, u); - if (d in e) - return r(void 0, c); - } - const f = { - 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: l, - headers: (c, u) => s(Be(c), Be(u), !0) - }; - return a.forEach(Object.keys(Object.assign({}, e, t)), function(u) { - const d = f[u] || s, w = d(e[u], t[u], u); - a.isUndefined(w) && d !== l || (n[u] = w); - }), n; -} -const it = (e) => { - const t = H({}, e); - let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: l } = t; - t.headers = i = P.from(i), t.url = et(ot(t.baseURL, t.url), e.params, e.paramsSerializer), l && i.set( - "Authorization", - "Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : "")) - ); - let f; - if (a.isFormData(n)) { - if (C.hasStandardBrowserEnv || C.hasStandardBrowserWebWorkerEnv) - i.setContentType(void 0); - else if ((f = i.getContentType()) !== !1) { - const [c, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : []; - i.setContentType([c || "multipart/form-data", ...u].join("; ")); - } - } - if (C.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Tn(t.url))) { - const c = s && o && An.read(o); - c && i.set(s, c); - } - return t; -}, Pn = typeof XMLHttpRequest < "u", kn = Pn && function(e) { - return new Promise(function(n, r) { - const s = it(e); - let o = s.data; - const i = P.from(s.headers).normalize(); - let { responseType: l, onUploadProgress: f, onDownloadProgress: c } = s, u, d, w, S, p; - function b() { - S && S(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u); - } - let h = new XMLHttpRequest(); - h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout; - function g() { - if (!h) - return; - const _ = P.from( - "getAllResponseHeaders" in h && h.getAllResponseHeaders() - ), x = { - data: !l || l === "text" || l === "json" ? h.responseText : h.response, - status: h.status, - statusText: h.statusText, - headers: _, - config: e, - request: h - }; - st(function(q) { - n(q), b(); - }, function(q) { - r(q), b(); - }, x), h = null; - } - "onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() { - !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g); - }, h.onabort = function() { - h && (r(new y("Request aborted", y.ECONNABORTED, e, h)), h = null); - }, h.onerror = function() { - r(new y("Network Error", y.ERR_NETWORK, e, h)), h = null; - }, h.ontimeout = function() { - let U = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded"; - const x = s.transitional || tt; - s.timeoutErrorMessage && (U = s.timeoutErrorMessage), r(new y( - U, - x.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED, - e, - h - )), h = null; - }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(U, x) { - h.setRequestHeader(x, U); - }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), l && l !== "json" && (h.responseType = s.responseType), c && ([w, p] = ee(c, !0), h.addEventListener("progress", w)), f && h.upload && ([d, S] = ee(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", S)), (s.cancelToken || s.signal) && (u = (_) => { - h && (r(!_ || _.type ? new V(null, e, h) : _), h.abort(), h = null); - }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u))); - const R = Rn(s.url); - if (R && C.protocols.indexOf(R) === -1) { - r(new y("Unsupported protocol " + R + ":", y.ERR_BAD_REQUEST, e)); - return; - } - h.send(o || null); - }); -}, Nn = (e, t) => { - const { length: n } = e = e ? e.filter(Boolean) : []; - if (t || n) { - let r = new AbortController(), s; - const o = function(c) { - if (!s) { - s = !0, l(); - const u = c instanceof Error ? c : this.reason; - r.abort(u instanceof y ? u : new V(u instanceof Error ? u.message : u)); - } - }; - let i = t && setTimeout(() => { - i = null, o(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT)); - }, t); - const l = () => { - e && (i && clearTimeout(i), i = null, e.forEach((c) => { - c.unsubscribe ? c.unsubscribe(o) : c.removeEventListener("abort", o); - }), e = null); - }; - e.forEach((c) => c.addEventListener("abort", o)); - const { signal: f } = r; - return f.unsubscribe = () => a.asap(l), f; - } -}, Fn = function* (e, t) { - let n = e.byteLength; - if (n < t) { - yield e; - return; - } - let r = 0, s; - for (; r < n; ) - s = r + t, yield e.slice(r, s), r = s; -}, Un = async function* (e, t) { - for await (const n of Dn(e)) - yield* Fn(n, t); -}, Dn = 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(); - } -}, Le = (e, t, n, r) => { - const s = Un(e, t); - let o = 0, i, l = (f) => { - i || (i = !0, r && r(f)); - }; - return new ReadableStream({ - async pull(f) { - try { - const { done: c, value: u } = await s.next(); - if (c) { - l(), f.close(); - return; - } - let d = u.byteLength; - if (n) { - let w = o += d; - n(w); - } - f.enqueue(new Uint8Array(u)); - } catch (c) { - throw l(c), c; - } - }, - cancel(f) { - return l(f), s.return(); - } - }, { - highWaterMark: 2 - }); -}, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", at = ae && typeof ReadableStream == "function", Bn = ae && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), lt = (e, ...t) => { - try { - return !!e(...t); - } catch { - return !1; - } -}, Ln = at && lt(() => { - let e = !1; - const t = new Request(C.origin, { - body: new ReadableStream(), - method: "POST", - get duplex() { - return e = !0, "half"; - } - }).headers.has("Content-Type"); - return e && !t; -}), je = 64 * 1024, ye = at && lt(() => a.isReadableStream(new Response("").body)), te = { - stream: ye && ((e) => e.body) -}; -ae && ((e) => { - ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => { - !te[t] && (te[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => { - throw new y(`Response type '${t}' is not supported`, y.ERR_NOT_SUPPORT, r); - }); - }); -})(new Response()); -const jn = async (e) => { - if (e == null) - return 0; - if (a.isBlob(e)) - return e.size; - if (a.isSpecCompliantForm(e)) - return (await new Request(C.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 Bn(e)).byteLength; -}, qn = async (e, t) => { - const n = a.toFiniteNumber(e.getContentLength()); - return n ?? jn(t); -}, In = ae && (async (e) => { - let { - url: t, - method: n, - data: r, - signal: s, - cancelToken: o, - timeout: i, - onDownloadProgress: l, - onUploadProgress: f, - responseType: c, - headers: u, - withCredentials: d = "same-origin", - fetchOptions: w - } = it(e); - c = c ? (c + "").toLowerCase() : "text"; - let S = Nn([s, o && o.toAbortSignal()], i), p; - const b = S && S.unsubscribe && (() => { - S.unsubscribe(); - }); - let h; - try { - if (f && Ln && n !== "get" && n !== "head" && (h = await qn(u, r)) !== 0) { - let x = new Request(t, { - method: "POST", - body: r, - duplex: "half" - }), L; - if (a.isFormData(r) && (L = x.headers.get("content-type")) && u.setContentType(L), x.body) { - const [q, Y] = Ue( - h, - ee(De(f)) - ); - r = Le(x.body, je, q, Y); - } - } - a.isString(d) || (d = d ? "include" : "omit"); - const g = "credentials" in Request.prototype; - p = new Request(t, { - ...w, - signal: S, - method: n.toUpperCase(), - headers: u.normalize().toJSON(), - body: r, - duplex: "half", - credentials: g ? d : void 0 - }); - let R = await fetch(p); - const _ = ye && (c === "stream" || c === "response"); - if (ye && (l || _ && b)) { - const x = {}; - ["status", "statusText", "headers"].forEach((Ae) => { - x[Ae] = R[Ae]; - }); - const L = a.toFiniteNumber(R.headers.get("content-length")), [q, Y] = l && Ue( - L, - ee(De(l), !0) - ) || []; - R = new Response( - Le(R.body, je, q, () => { - Y && Y(), b && b(); - }), - x - ); - } - c = c || "text"; - let U = await te[a.findKey(te, c) || "text"](R, e); - return !_ && b && b(), await new Promise((x, L) => { - st(x, L, { - data: U, - headers: P.from(R.headers), - status: R.status, - statusText: R.statusText, - config: e, - request: p - }); - }); - } catch (g) { - throw b && b(), g && g.name === "TypeError" && /fetch/i.test(g.message) ? Object.assign( - new y("Network Error", y.ERR_NETWORK, e, p), - { - cause: g.cause || g - } - ) : y.from(g, g && g.code, e, p); - } -}), be = { - http: Zt, - xhr: kn, - fetch: In -}; -a.forEach(be, (e, t) => { - if (e) { - try { - Object.defineProperty(e, "name", { value: t }); - } catch { - } - Object.defineProperty(e, "adapterName", { value: t }); - } -}); -const qe = (e) => `- ${e}`, vn = (e) => a.isFunction(e) || e === null || e === !1, ct = { - 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, !vn(n) && (r = be[(i = String(n)).toLowerCase()], r === void 0)) - throw new y(`Unknown adapter '${i}'`); - if (r) - break; - s[i || "#" + o] = r; - } - if (!r) { - const o = Object.entries(s).map( - ([l, f]) => `adapter ${l} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build") - ); - let i = t ? o.length > 1 ? `since : -` + o.map(qe).join(` -`) : " " + qe(o[0]) : "as no adapter specified"; - throw new y( - "There is no suitable adapter to dispatch the request " + i, - "ERR_NOT_SUPPORT" - ); - } - return r; - }, - adapters: be -}; -function fe(e) { - if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) - throw new V(null, e); -} -function Ie(e) { - return fe(e), e.headers = P.from(e.headers), e.data = ue.call( - e, - e.transformRequest - ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ct.getAdapter(e.adapter || X.adapter)(e).then(function(r) { - return fe(e), r.data = ue.call( - e, - e.transformResponse, - r - ), r.headers = P.from(r.headers), r; - }, function(r) { - return rt(r) || (fe(e), r && r.response && (r.response.data = ue.call( - e, - e.transformResponse, - r.response - ), r.response.headers = P.from(r.response.headers))), Promise.reject(r); - }); -} -const ut = "1.7.7", Oe = {}; -["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => { - Oe[e] = function(r) { - return typeof r === e || "a" + (t < 1 ? "n " : " ") + e; - }; -}); -const ve = {}; -Oe.transitional = function(t, n, r) { - function s(o, i) { - return "[Axios v" + ut + "] Transitional option '" + o + "'" + i + (r ? ". " + r : ""); - } - return (o, i, l) => { - if (t === !1) - throw new y( - s(i, " has been removed" + (n ? " in " + n : "")), - y.ERR_DEPRECATED - ); - return n && !ve[i] && (ve[i] = !0, console.warn( - s( - i, - " has been deprecated since v" + n + " and will be removed in the near future" - ) - )), t ? t(o, i, l) : !0; - }; -}; -function Hn(e, t, n) { - if (typeof e != "object") - throw new y("options must be an object", y.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 l = e[o], f = l === void 0 || i(l, o, e); - if (f !== !0) - throw new y("option " + o + " must be " + f, y.ERR_BAD_OPTION_VALUE); - continue; - } - if (n !== !0) - throw new y("Unknown option " + o, y.ERR_BAD_OPTION); - } -} -const we = { - assertOptions: Hn, - validators: Oe -}, j = we.validators; -class v { - constructor(t) { - this.defaults = t, this.interceptors = { - request: new Ne(), - response: new Ne() - }; - } - /** - * 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/, "") : ""; - try { - r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += ` -` + o) : r.stack = o; - } catch { - } - } - throw r; - } - } - _request(t, n) { - typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = H(this.defaults, n); - const { transitional: r, paramsSerializer: s, headers: o } = n; - r !== void 0 && we.assertOptions(r, { - silentJSONParsing: j.transitional(j.boolean), - forcedJSONParsing: j.transitional(j.boolean), - clarifyTimeoutError: j.transitional(j.boolean) - }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = { - serialize: s - } : we.assertOptions(s, { - encode: j.function, - serialize: j.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"], - (p) => { - delete o[p]; - } - ), n.headers = P.concat(i, o); - const l = []; - let f = !0; - this.interceptors.request.forEach(function(b) { - typeof b.runWhen == "function" && b.runWhen(n) === !1 || (f = f && b.synchronous, l.unshift(b.fulfilled, b.rejected)); - }); - const c = []; - this.interceptors.response.forEach(function(b) { - c.push(b.fulfilled, b.rejected); - }); - let u, d = 0, w; - if (!f) { - const p = [Ie.bind(this), void 0]; - for (p.unshift.apply(p, l), p.push.apply(p, c), w = p.length, u = Promise.resolve(n); d < w; ) - u = u.then(p[d++], p[d++]); - return u; - } - w = l.length; - let S = n; - for (d = 0; d < w; ) { - const p = l[d++], b = l[d++]; - try { - S = p(S); - } catch (h) { - b.call(this, h); - break; - } - } - try { - u = Ie.call(this, S); - } catch (p) { - return Promise.reject(p); - } - for (d = 0, w = c.length; d < w; ) - u = u.then(c[d++], c[d++]); - return u; - } - getUri(t) { - t = H(this.defaults, t); - const n = ot(t.baseURL, t.url); - return et(n, t.params, t.paramsSerializer); - } -} -a.forEach(["delete", "get", "head", "options"], function(t) { - v.prototype[t] = function(n, r) { - return this.request(H(r || {}, { - method: t, - url: n, - data: (r || {}).data - })); - }; -}); -a.forEach(["post", "put", "patch"], function(t) { - function n(r) { - return function(o, i, l) { - return this.request(H(l || {}, { - method: t, - headers: r ? { - "Content-Type": "multipart/form-data" - } : {}, - url: o, - data: i - })); - }; - } - v.prototype[t] = n(), v.prototype[t + "Form"] = n(!0); -}); -class Te { - 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((l) => { - r.subscribe(l), o = l; - }).then(s); - return i.cancel = function() { - r.unsubscribe(o); - }, i; - }, t(function(o, i, l) { - r.reason || (r.reason = new V(o, i, l), 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 Te(function(s) { - t = s; - }), - cancel: t - }; - } -} -function Mn(e) { - return function(n) { - return e.apply(null, n); - }; -} -function zn(e) { - return a.isObject(e) && e.isAxiosError === !0; -} -const ge = { - 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(ge).forEach(([e, t]) => { - ge[t] = e; -}); -function ft(e) { - const t = new v(e), n = Me(v.prototype.request, t); - return a.extend(n, v.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) { - return ft(H(e, s)); - }, n; -} -const E = ft(X); -E.Axios = v; -E.CanceledError = V; -E.CancelToken = Te; -E.isCancel = rt; -E.VERSION = ut; -E.toFormData = ie; -E.AxiosError = y; -E.Cancel = E.CanceledError; -E.all = function(t) { - return Promise.all(t); -}; -E.spread = Mn; -E.isAxiosError = zn; -E.mergeConfig = H; -E.AxiosHeaders = P; -E.formToJSON = (e) => nt(a.isHTMLForm(e) ? new FormData(e) : e); -E.getAdapter = ct.getAdapter; -E.HttpStatusCode = ge; -E.default = E; -var dt = /* @__PURE__ */ ((e) => (e.Primary = "Primary", e.Success = "Success", e.Warning = "Warning", e.Danger = "Danger", e))(dt || {}); -const Vn = { - counter: { - users: 0, - roles: 0, - groups: 0 - }, - info: { - frameworkVersion: "", - phpVersion: "", - database: { - connection: "", - name: "", - type: "", - version: "" - }, - server: "", - projectPath: "" - }, - sprinkles: {}, - users: [] -}, $n = pt("dashboardApi", { - state: () => ({ - data: Vn - }), - actions: { - async load() { - return E.get("/api/dashboard").then((e) => (this.data = e.data, this.data)).catch((e) => { - throw { - description: "An error as occurred", - style: dt.Danger, - closeBtn: !0, - ...e.response.data - }; - }); - } - } -}), Jn = /* @__PURE__ */ K({ - __name: "DashboardStats", - props: { - users: {}, - roles: {}, - groups: {} - }, - setup(e) { - return (t, n) => { - const r = F("UFInfoBox"); - return B(), M(ne, null, [ - T(r, { - value: t.users, - label: "Users", - faIcon: "user", - to: { name: "admin.users" } - }, null, 8, ["value"]), - T(r, { - value: t.roles, - label: "Roles", - faIcon: "address-card", - to: { name: "admin.roles" } - }, null, 8, ["value"]), - T(r, { - value: t.groups, - label: "Groups", - faIcon: "users", - to: { name: "admin.groups" } - }, null, 8, ["value"]) - ], 64); - }; - } -}), Wn = { - class: "uk-grid uk-flex-center", - "uk-grid": "" -}, Kn = ["src"], Gn = { class: "uk-margin-remove" }, Xn = { class: "uk-margin-remove uk-text-meta" }, Yn = /* @__PURE__ */ K({ - __name: "DashboardRecentUsers", - props: { - users: {} - }, - setup(e) { - return (t, n) => { - const r = F("RouterLink"), s = F("UFCardBox"); - return B(), Ee(s, { title: "Latest Users" }, { - footer: A(() => [ - T(r, { - to: { name: "admin.users" }, - class: "uk-text-center" - }, { - default: A(() => n[0] || (n[0] = [ - J("View All Users") - ])), - _: 1 - }) - ]), - default: A(() => [ - m("div", Wn, [ - (B(!0), M(ne, null, He(t.users, (o) => (B(), M("div", { - key: o.id, - class: "uk-text-center" - }, [ - T(r, { - to: { name: "admin.user", params: { user_name: o.user_name } }, - class: "uk-text-decoration-none uk-link-text" - }, { - default: A(() => [ - m("img", { - src: o.avatar, - alt: "User Image", - class: "uk-border-circle" - }, null, 8, Kn), - m("p", Gn, O(o.full_name), 1), - m("p", Xn, O(D(de)(o.created_at).fromNow()), 1) - ]), - _: 2 - }, 1032, ["to"]) - ]))), 128)) - ]) - ]), - _: 1 - }); - }; - } -}), Qn = { class: "uk-description-list" }, Zn = { class: "uk-list uk-list-disc uk-list-collapse" }, er = /* @__PURE__ */ K({ - __name: "DashboardSystemInfo", - props: { - info: {}, - sprinkles: {} - }, - setup(e) { - return (t, n) => { - const r = F("UFCardBox"); - return B(), Ee(r, { title: "System Information" }, { - default: A(() => [ - m("dl", Qn, [ - n[0] || (n[0] = m("dt", null, "Framework version", -1)), - m("dd", null, [ - m("pre", null, [ - m("code", null, O(t.info.frameworkVersion), 1) - ]) - ]), - n[1] || (n[1] = m("dt", null, "PHP version", -1)), - m("dd", null, [ - m("pre", null, [ - m("code", null, O(t.info.phpVersion), 1) - ]) - ]), - n[2] || (n[2] = m("dt", null, "Webserver software", -1)), - m("dd", null, [ - m("pre", null, [ - m("code", null, O(t.info.server), 1) - ]) - ]), - n[3] || (n[3] = m("dt", null, "Database connection", -1)), - m("dd", null, [ - m("pre", null, [ - m("code", null, O(t.info.database.connection), 1) - ]) - ]), - n[4] || (n[4] = m("dt", null, "Database version", -1)), - m("dd", null, [ - m("pre", null, [ - m("code", null, O(t.info.database.type) + " " + O(t.info.database.version), 1) - ]) - ]), - n[5] || (n[5] = m("dt", null, "Database name", -1)), - m("dd", null, [ - m("pre", null, [ - m("code", null, O(t.info.database.name), 1) - ]) - ]), - n[6] || (n[6] = m("dt", null, "Project directory", -1)), - m("dd", null, [ - m("pre", null, [ - m("code", null, O(t.info.projectPath), 1) - ]) - ]), - n[7] || (n[7] = m("dt", null, "Loaded sprinkles", -1)), - m("dd", null, [ - m("ul", Zn, [ - (B(!0), M(ne, null, He(t.sprinkles, (s) => (B(), M("li", { key: s }, O(s), 1))), 128)) - ]) - ]) - ]) - ]), - _: 1 - }); - }; - } -}), tr = { class: "uk-text-meta" }, nr = /* @__PURE__ */ K({ - __name: "DashboardActivities", - setup(e) { - return (t, n) => { - const r = F("UFSprunjeHeader"), s = F("UFSprunjeColumn"), o = F("RouterLink"), i = F("UFSprunjeTable"), l = F("UFCardBox"); - return B(), Ee(l, { title: "Latest Activities" }, { - default: A(() => [ - T(i, { - dataUrl: "/api/activities", - defaultSorts: { occurred_at: "desc" }, - hidePagination: "" - }, { - header: A(() => [ - T(r, null, { - default: A(() => n[0] || (n[0] = [ - J("Activity Time") - ])), - _: 1 - }), - T(r, null, { - default: A(() => n[1] || (n[1] = [ - J("User") - ])), - _: 1 - }), - T(r, null, { - default: A(() => n[2] || (n[2] = [ - J("Description") - ])), - _: 1 - }) - ]), - body: A(({ item: f }) => [ - T(s, null, { - default: A(() => [ - m("div", null, O(D(de)(f.occurred_at).format("dddd")), 1), - m("div", null, O(D(de)(f.occurred_at).format("MMM Do, YYYY h:mm a")), 1) - ]), - _: 2 - }, 1024), - T(s, null, { - default: A(() => [ - m("strong", null, [ - T(o, { - to: { - name: "admin.user", - params: { user_name: f.user.user_name } - } - }, { - default: A(() => [ - J(O(f.user.full_name) + " (" + O(f.user.user_name) + ") ", 1) - ]), - _: 2 - }, 1032, ["to"]) - ]), - m("div", tr, O(f.user.email), 1) - ]), - _: 2 - }, 1024), - T(s, null, { - default: A(() => [ - m("div", null, O(f.ip_address), 1), - m("div", null, [ - m("i", null, O(f.description), 1) - ]) - ]), - _: 2 - }, 1024) - ]), - _: 1 - }) - ]), - _: 1 - }); - }; - } -}), rr = { - class: "uk-child-width-expand", - "uk-grid": "" -}, sr = { - class: "uk-child-width-1-2", - "uk-grid": "" -}, or = { - class: "uk-child-width-1-1", - "uk-grid": "" -}, cr = /* @__PURE__ */ K({ - __name: "DashboardView", - setup(e) { - const t = $n(); - return t.load(), (n, r) => { - const s = F("UFHeaderPage"); - return B(), M(ne, null, [ - T(s, { title: "Dashboard" }), - m("div", rr, [ - T(Jn, { - users: D(t).data.counter.users, - roles: D(t).data.counter.roles, - groups: D(t).data.counter.groups - }, null, 8, ["users", "roles", "groups"]) - ]), - m("div", sr, [ - m("div", null, [ - m("div", or, [ - m("div", null, [ - T(Yn, { - users: D(t).data.users - }, null, 8, ["users"]) - ]), - m("div", null, [ - T(er, { - info: D(t).data.info, - sprinkles: D(t).data.sprinkles - }, null, 8, ["info", "sprinkles"]) - ]) - ]) - ]), - m("div", null, [ - T(nr) - ]) - ]) - ], 64); - }; - } -}); -export { - cr as default -}; diff --git a/dist/DashboardView-CWA-QPM_.cjs b/dist/DashboardView-CWA-QPM_.cjs new file mode 100644 index 0000000..00e85b3 --- /dev/null +++ b/dist/DashboardView-CWA-QPM_.cjs @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("pinia"),i=require("./types-LD8tPu16.cjs"),d=require("./moment-Bp7fbP4q.cjs"),p={counter:{users:0,roles:0,groups:0},info:{frameworkVersion:"",phpVersion:"",database:{connection:"",name:"",type:"",version:""},server:"",projectPath:""},sprinkles:{},users:[]},V=m.defineStore("dashboardApi",{state:()=>({data:p}),actions:{async load(){return i.axios.get("/api/dashboard").then(l=>(this.data=l.data,this.data)).catch(l=>{throw{description:"An error as occurred",style:i.a.Danger,closeBtn:!0,...l.response.data}})}}}),N=e.defineComponent({__name:"DashboardStats",props:{users:{},roles:{},groups:{}},setup(l){return(o,t)=>{const n=e.resolveComponent("UFInfoBox");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(n,{value:o.users,label:"Users",faIcon:"user",to:{name:"admin.users"}},null,8,["value"]),e.createVNode(n,{value:o.roles,label:"Roles",faIcon:"address-card",to:{name:"admin.roles"}},null,8,["value"]),e.createVNode(n,{value:o.groups,label:"Groups",faIcon:"users",to:{name:"admin.groups"}},null,8,["value"])],64)}}}),_={class:"uk-grid uk-flex-center","uk-grid":""},f=["src"],k={class:"uk-margin-remove"},E={class:"uk-margin-remove uk-text-meta"},v=e.defineComponent({__name:"DashboardRecentUsers",props:{users:{}},setup(l){return(o,t)=>{const n=e.resolveComponent("RouterLink"),r=e.resolveComponent("UFCardBox");return e.openBlock(),e.createBlock(r,{title:"Latest Users"},{footer:e.withCtx(()=>[e.createVNode(n,{to:{name:"admin.users"},class:"uk-text-center"},{default:e.withCtx(()=>t[0]||(t[0]=[e.createTextVNode("View All Users")])),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.users,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:"uk-text-center"},[e.createVNode(n,{to:{name:"admin.user",params:{user_name:s.user_name}},class:"uk-text-decoration-none uk-link-text"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:s.avatar,alt:"User Image",class:"uk-border-circle"},null,8,f),e.createElementVNode("p",k,e.toDisplayString(s.full_name),1),e.createElementVNode("p",E,e.toDisplayString(e.unref(d.hooks)(s.created_at).fromNow()),1)]),_:2},1032,["to"])]))),128))])]),_:1})}}}),g={class:"uk-description-list"},h={class:"uk-list uk-list-disc uk-list-collapse"},C=e.defineComponent({__name:"DashboardSystemInfo",props:{info:{},sprinkles:{}},setup(l){return(o,t)=>{const n=e.resolveComponent("UFCardBox");return e.openBlock(),e.createBlock(n,{title:"System Information"},{default:e.withCtx(()=>[e.createElementVNode("dl",g,[t[0]||(t[0]=e.createElementVNode("dt",null,"Framework version",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(o.info.frameworkVersion),1)])]),t[1]||(t[1]=e.createElementVNode("dt",null,"PHP version",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(o.info.phpVersion),1)])]),t[2]||(t[2]=e.createElementVNode("dt",null,"Webserver software",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(o.info.server),1)])]),t[3]||(t[3]=e.createElementVNode("dt",null,"Database connection",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(o.info.database.connection),1)])]),t[4]||(t[4]=e.createElementVNode("dt",null,"Database version",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(o.info.database.type)+" "+e.toDisplayString(o.info.database.version),1)])]),t[5]||(t[5]=e.createElementVNode("dt",null,"Database name",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(o.info.database.name),1)])]),t[6]||(t[6]=e.createElementVNode("dt",null,"Project directory",-1)),e.createElementVNode("dd",null,[e.createElementVNode("pre",null,[e.createElementVNode("code",null,e.toDisplayString(o.info.projectPath),1)])]),t[7]||(t[7]=e.createElementVNode("dt",null,"Loaded sprinkles",-1)),e.createElementVNode("dd",null,[e.createElementVNode("ul",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.sprinkles,r=>(e.openBlock(),e.createElementBlock("li",{key:r},e.toDisplayString(r),1))),128))])])])]),_:1})}}}),y={class:"uk-text-meta"},D=e.defineComponent({__name:"DashboardActivities",setup(l){return(o,t)=>{const n=e.resolveComponent("UFSprunjeHeader"),r=e.resolveComponent("UFSprunjeColumn"),s=e.resolveComponent("RouterLink"),u=e.resolveComponent("UFSprunjeTable"),c=e.resolveComponent("UFCardBox");return e.openBlock(),e.createBlock(c,{title:"Latest Activities"},{default:e.withCtx(()=>[e.createVNode(u,{dataUrl:"/api/activities",defaultSorts:{occurred_at:"desc"},hidePagination:""},{header:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>t[0]||(t[0]=[e.createTextVNode("Activity Time")])),_:1}),e.createVNode(n,null,{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("User")])),_:1}),e.createVNode(n,null,{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("Description")])),_:1})]),body:e.withCtx(({item:a})=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(d.hooks)(a.occurred_at).format("dddd")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(d.hooks)(a.occurred_at).format("MMM Do, YYYY h:mm a")),1)]),_:2},1024),e.createVNode(r,null,{default:e.withCtx(()=>[e.createElementVNode("strong",null,[e.createVNode(s,{to:{name:"admin.user",params:{user_name:a.user.user_name}}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.user.full_name)+" ("+e.toDisplayString(a.user.user_name)+") ",1)]),_:2},1032,["to"])]),e.createElementVNode("div",y,e.toDisplayString(a.user.email),1)]),_:2},1024),e.createVNode(r,null,{default:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(a.ip_address),1),e.createElementVNode("div",null,[e.createElementVNode("i",null,e.toDisplayString(a.description),1)])]),_:2},1024)]),_:1})]),_:1})}}}),S={class:"uk-child-width-expand","uk-grid":""},b={class:"uk-child-width-1-2","uk-grid":""},x={class:"uk-child-width-1-1","uk-grid":""},B=e.defineComponent({__name:"DashboardView",setup(l){const o=V();return o.load(),(t,n)=>{const r=e.resolveComponent("UFHeaderPage");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(r,{title:"Dashboard"}),e.createElementVNode("div",S,[e.createVNode(N,{users:e.unref(o).data.counter.users,roles:e.unref(o).data.counter.roles,groups:e.unref(o).data.counter.groups},null,8,["users","roles","groups"])]),e.createElementVNode("div",b,[e.createElementVNode("div",null,[e.createElementVNode("div",x,[e.createElementVNode("div",null,[e.createVNode(v,{users:e.unref(o).data.users},null,8,["users"])]),e.createElementVNode("div",null,[e.createVNode(C,{info:e.unref(o).data.info,sprinkles:e.unref(o).data.sprinkles},null,8,["info","sprinkles"])])])]),e.createElementVNode("div",null,[e.createVNode(D)])])],64)}}});exports.default=B; diff --git a/dist/DashboardView-D7CFsOl5.cjs b/dist/DashboardView-D7CFsOl5.cjs deleted file mode 100644 index ce68bb1..0000000 --- a/dist/DashboardView-D7CFsOl5.cjs +++ /dev/null @@ -1,6 +0,0 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),tt=require("pinia"),ne=require("./moment-Bp7fbP4q.cjs");function ke(e,t){return function(){return e.apply(t,arguments)}}const{toString:nt}=Object.prototype,{getPrototypeOf:ue}=Object,W=(e=>t=>{const n=nt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>W(t)===e),K=e=>t=>typeof t===e,{isArray:U}=Array,v=K("undefined");function rt(e){return e!==null&&!v(e)&&e.constructor!==null&&!v(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pe=C("ArrayBuffer");function ot(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Pe(e.buffer),t}const st=K("string"),A=K("function"),De=K("number"),G=e=>e!==null&&typeof e=="object",it=e=>e===!0||e===!1,M=e=>{if(W(e)!=="object")return!1;const t=ue(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},at=C("Date"),lt=C("File"),ct=C("Blob"),ut=C("FileList"),dt=e=>G(e)&&A(e.pipe),ft=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=W(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},pt=C("URLSearchParams"),[mt,ht,yt,Et]=["ReadableStream","Request","Response","Headers"].map(C),bt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function q(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),U(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const B=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fe=e=>!v(e)&&e!==B;function re(){const{caseless:e}=Fe(this)&&this||{},t={},n=(r,o)=>{const s=e&&Be(t,o)||o;M(t[s])&&M(r)?t[s]=re(t[s],r):M(r)?t[s]=re({},r):U(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(q(t,(o,s)=>{n&&A(o)?e[s]=ke(o,n):e[s]=o},{allOwnKeys:r}),e),gt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),St=(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)},Rt=(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},Nt=(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},_t=e=>{if(!e)return null;if(U(e))return e;let t=e.length;if(!De(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Tt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ue(Uint8Array)),Ot=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},At=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ct=C("HTMLFormElement"),xt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ye=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kt=C("RegExp"),Ve=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};q(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},Pt=e=>{Ve(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+"'")})}})},Dt=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return U(e)?r(e):r(String(e).split(t)),n},Bt=()=>{},Ft=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Q="abcdefghijklmnopqrstuvwxyz",Ee="0123456789",Ue={DIGIT:Ee,ALPHA:Q,ALPHA_DIGIT:Q+Q.toUpperCase()+Ee},Vt=(e=16,t=Ue.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Ut(e){return!!(e&&A(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Lt=e=>{const t=new Array(10),n=(r,o)=>{if(G(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=U(r)?[]:{};return q(r,(i,c)=>{const f=n(i,o+1);!v(f)&&(s[c]=f)}),t[o]=void 0,s}}return r};return n(e,0)},jt=C("AsyncFunction"),vt=e=>e&&(G(e)||A(e))&&A(e.then)&&A(e.catch),Le=((e,t)=>e?setImmediate:t?((n,r)=>(B.addEventListener("message",({source:o,data:s})=>{o===B&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),B.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",A(B.postMessage)),qt=typeof queueMicrotask<"u"?queueMicrotask.bind(B):typeof process<"u"&&process.nextTick||Le,l={isArray:U,isArrayBuffer:Pe,isBuffer:rt,isFormData:ft,isArrayBufferView:ot,isString:st,isNumber:De,isBoolean:it,isObject:G,isPlainObject:M,isReadableStream:mt,isRequest:ht,isResponse:yt,isHeaders:Et,isUndefined:v,isDate:at,isFile:lt,isBlob:ct,isRegExp:kt,isFunction:A,isStream:dt,isURLSearchParams:pt,isTypedArray:Tt,isFileList:ut,forEach:q,merge:re,extend:wt,trim:bt,stripBOM:gt,inherits:St,toFlatObject:Rt,kindOf:W,kindOfTest:C,endsWith:Nt,toArray:_t,forEachEntry:Ot,matchAll:At,isHTMLForm:Ct,hasOwnProperty:ye,hasOwnProp:ye,reduceDescriptors:Ve,freezeMethods:Pt,toObjectSet:Dt,toCamelCase:xt,noop:Bt,toFiniteNumber:Ft,findKey:Be,global:B,isContextDefined:Fe,ALPHABET:Ue,generateString:Vt,isSpecCompliantForm:Ut,toJSONObject:Lt,isAsyncFn:jt,isThenable:vt,setImmediate:Le,asap:qt};function y(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)}l.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l.toJSONObject(this.config),code:this.code,status:this.status}}});const je=y.prototype,ve={};["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"].forEach(e=>{ve[e]={value:e}});Object.defineProperties(y,ve);Object.defineProperty(je,"isAxiosError",{value:!0});y.from=(e,t,n,r,o,s)=>{const i=Object.create(je);return l.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),y.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const It=null;function oe(e){return l.isPlainObject(e)||l.isArray(e)}function qe(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function be(e,t,n){return e?e.concat(t).map(function(o,s){return o=qe(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Ht(e){return l.isArray(e)&&!e.some(oe)}const Mt=l.toFlatObject(l,{},null,function(t){return/^is[A-Z]/.test(t)});function X(e,t,n){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=l.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,h){return!l.isUndefined(h[E])});const r=n.metaTokens,o=n.visitor||d,s=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(t);if(!l.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(l.isDate(m))return m.toISOString();if(!f&&l.isBlob(m))throw new y("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(m)||l.isTypedArray(m)?f&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,E,h){let w=m;if(m&&!h&&typeof m=="object"){if(l.endsWith(E,"{}"))E=r?E:E.slice(0,-2),m=JSON.stringify(m);else if(l.isArray(m)&&Ht(m)||(l.isFileList(m)||l.endsWith(E,"[]"))&&(w=l.toArray(m)))return E=qe(E),w.forEach(function(N,x){!(l.isUndefined(N)||N===null)&&t.append(i===!0?be([E],x,s):i===null?E:E+"[]",u(N))}),!1}return oe(m)?!0:(t.append(be(h,E,s),u(m)),!1)}const p=[],b=Object.assign(Mt,{defaultVisitor:d,convertValue:u,isVisitable:oe});function S(m,E){if(!l.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));p.push(m),l.forEach(m,function(w,R){(!(l.isUndefined(w)||w===null)&&o.call(t,w,l.isString(R)?R.trim():R,E,b))===!0&&S(w,E?E.concat(R):[R])}),p.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return S(e),t}function we(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&&X(e,this,t)}const Ie=de.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,we)}:we;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function zt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function He(e,t,n){if(!t)return e;const r=n&&n.encode||zt,o=n&&n.serialize;let s;if(o?s=o(t,n):s=l.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 ge{constructor(){this.handlers=[]}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}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){l.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Me={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$t=typeof URLSearchParams<"u"?URLSearchParams:de,Jt=typeof FormData<"u"?FormData:null,Wt=typeof Blob<"u"?Blob:null,Kt={isBrowser:!0,classes:{URLSearchParams:$t,FormData:Jt,Blob:Wt},protocols:["http","https","file","blob","url","data"]},fe=typeof window<"u"&&typeof document<"u",se=typeof navigator=="object"&&navigator||void 0,Gt=fe&&(!se||["ReactNative","NativeScript","NS"].indexOf(se.product)<0),Xt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Yt=fe&&window.location.href||"http://localhost",Qt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fe,hasStandardBrowserEnv:Gt,hasStandardBrowserWebWorkerEnv:Xt,navigator:se,origin:Yt},Symbol.toStringTag,{value:"Module"})),T={...Qt,...Kt};function Zt(e,t){return X(e,new T.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return T.isNode&&l.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function en(e){return l.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function tn(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&l.isArray(o)?o.length:i,f?(l.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!l.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&l.isArray(o[i])&&(o[i]=tn(o[i])),!c)}if(l.isFormData(e)&&l.isFunction(e.entries)){const n={};return l.forEachEntry(e,(r,o)=>{t(en(r),o,n,0)}),n}return null}function nn(e,t,n){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const I={transitional:Me,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=l.isObject(t);if(s&&l.isHTMLForm(t)&&(t=new FormData(t)),l.isFormData(t))return o?JSON.stringify(ze(t)):t;if(l.isArrayBuffer(t)||l.isBuffer(t)||l.isStream(t)||l.isFile(t)||l.isBlob(t)||l.isReadableStream(t))return t;if(l.isArrayBufferView(t))return t.buffer;if(l.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 Zt(t,this.formSerializer).toString();if((c=l.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return X(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),nn(t)):t}],transformResponse:[function(t){const n=this.transitional||I.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(l.isResponse(t)||l.isReadableStream(t))return t;if(t&&l.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"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:T.classes.FormData,Blob:T.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],e=>{I.headers[e]={}});const rn=l.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"]),on=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]&&rn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Se=Symbol("internals");function j(e){return e&&String(e).trim().toLowerCase()}function z(e){return e===!1||e==null?e:l.isArray(e)?e.map(z):String(e)}function sn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const an=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Z(e,t,n,r,o){if(l.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!l.isString(t)){if(l.isString(r))return t.indexOf(r)!==-1;if(l.isRegExp(r))return r.test(t)}}function ln(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function cn(e,t){const n=l.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})})}class O{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(c,f,u){const d=j(f);if(!d)throw new Error("header name must be a non-empty string");const p=l.findKey(o,d);(!p||o[p]===void 0||u===!0||u===void 0&&o[p]!==!1)&&(o[p||f]=z(c))}const i=(c,f)=>l.forEach(c,(u,d)=>s(u,d,f));if(l.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(l.isString(t)&&(t=t.trim())&&!an(t))i(on(t),n);else if(l.isHeaders(t))for(const[c,f]of t.entries())s(f,c,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=j(t),t){const r=l.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return sn(o);if(l.isFunction(n))return n.call(this,o,r);if(l.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=j(t),t){const r=l.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Z(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=j(i),i){const c=l.findKey(r,i);c&&(!n||Z(r,r[c],c,n))&&(delete r[c],o=!0)}}return l.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||Z(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return l.forEach(this,(o,s)=>{const i=l.findKey(r,s);if(i){n[i]=z(o),delete n[s];return}const c=t?ln(s):String(s).trim();c!==s&&delete n[s],n[c]=z(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return l.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&l.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(o=>r.set(o)),r}static accessor(t){const r=(this[Se]=this[Se]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=j(i);r[c]||(cn(o,i),r[c]=!0)}return l.isArray(t)?t.forEach(s):s(t),this}}O.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);l.reduceDescriptors(O.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});l.freezeMethods(O);function ee(e,t){const n=this||I,r=t||n,o=O.from(r.headers);let s=r.data;return l.forEach(e,function(c){s=c.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function $e(e){return!!(e&&e.__CANCEL__)}function L(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}l.inherits(L,y,{__CANCEL__:!0});function Je(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function un(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function dn(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 u=Date.now(),d=r[s];i||(i=u),n[o]=f,r[o]=u;let p=s,b=0;for(;p!==o;)b+=n[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i{n=d,o=null,s&&(clearTimeout(s),s=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),p=d-n;p>=r?i(u,d):(o=u,s||(s=setTimeout(()=>{s=null,i(o)},r-p)))},()=>o&&i(o)]}const $=(e,t,n=3)=>{let r=0;const o=dn(50,250);return fn(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,f=i-r,u=o(f),d=i<=c;r=i;const p={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&d?(c-i)/u:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},Re=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ne=e=>(...t)=>l.asap(()=>e(...t)),pn=T.hasStandardBrowserEnv?function(){const t=T.navigator&&/(msie|trident)/i.test(T.navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;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=o(window.location.href),function(i){const c=l.isString(i)?o(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),mn=T.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];l.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),l.isString(r)&&i.push("path="+r),l.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)}}:{write(){},read(){return null},remove(){}};function hn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function We(e,t){return e&&!hn(t)?yn(e,t):t}const _e=e=>e instanceof O?{...e}:e;function V(e,t){t=t||{};const n={};function r(u,d,p){return l.isPlainObject(u)&&l.isPlainObject(d)?l.merge.call({caseless:p},u,d):l.isPlainObject(d)?l.merge({},d):l.isArray(d)?d.slice():d}function o(u,d,p){if(l.isUndefined(d)){if(!l.isUndefined(u))return r(void 0,u,p)}else return r(u,d,p)}function s(u,d){if(!l.isUndefined(d))return r(void 0,d)}function i(u,d){if(l.isUndefined(d)){if(!l.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function c(u,d,p){if(p in t)return r(u,d);if(p in e)return r(void 0,u)}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:(u,d)=>o(_e(u),_e(d),!0)};return l.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=f[d]||o,b=p(e[d],t[d],d);l.isUndefined(b)&&p!==c||(n[d]=b)}),n}const Ke=e=>{const t=V({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:c}=t;t.headers=i=O.from(i),t.url=He(We(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(l.isFormData(n)){if(T.hasStandardBrowserEnv||T.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...d]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(T.hasStandardBrowserEnv&&(r&&l.isFunction(r)&&(r=r(t)),r||r!==!1&&pn(t.url))){const u=o&&s&&mn.read(s);u&&i.set(o,u)}return t},En=typeof XMLHttpRequest<"u",bn=En&&function(e){return new Promise(function(n,r){const o=Ke(e);let s=o.data;const i=O.from(o.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=o,d,p,b,S,m;function E(){S&&S(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function w(){if(!h)return;const N=O.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),_={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:N,config:e,request:h};Je(function(D){n(D),E()},function(D){r(D),E()},_),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new y("Request aborted",y.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let x=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||Me;o.timeoutErrorMessage&&(x=o.timeoutErrorMessage),r(new y(x,_.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,h)),h=null},s===void 0&&i.setContentType(null),"setRequestHeader"in h&&l.forEach(i.toJSON(),function(x,_){h.setRequestHeader(_,x)}),l.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),c&&c!=="json"&&(h.responseType=o.responseType),u&&([b,m]=$(u,!0),h.addEventListener("progress",b)),f&&h.upload&&([p,S]=$(f),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(d=N=>{h&&(r(!N||N.type?new L(null,e,h):N),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const R=un(o.url);if(R&&T.protocols.indexOf(R)===-1){r(new y("Unsupported protocol "+R+":",y.ERR_BAD_REQUEST,e));return}h.send(s||null)})},wn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(u){if(!o){o=!0,c();const d=u instanceof Error?u:this.reason;r.abort(d instanceof y?d:new L(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,s(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:f}=r;return f.unsubscribe=()=>l.asap(c),f}},gn=function*(e,t){let n=e.byteLength;if(n{const o=Sn(e,t);let s=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:d}=await o.next();if(u){c(),f.close();return}let p=d.byteLength;if(n){let b=s+=p;n(b)}f.enqueue(new Uint8Array(d))}catch(u){throw c(u),u}},cancel(f){return c(f),o.return()}},{highWaterMark:2})},Y=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ge=Y&&typeof ReadableStream=="function",Nn=Y&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Xe=(e,...t)=>{try{return!!e(...t)}catch{return!1}},_n=Ge&&Xe(()=>{let e=!1;const t=new Request(T.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Oe=64*1024,ie=Ge&&Xe(()=>l.isReadableStream(new Response("").body)),J={stream:ie&&(e=>e.body)};Y&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!J[t]&&(J[t]=l.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new y(`Response type '${t}' is not supported`,y.ERR_NOT_SUPPORT,r)})})})(new Response);const Tn=async e=>{if(e==null)return 0;if(l.isBlob(e))return e.size;if(l.isSpecCompliantForm(e))return(await new Request(T.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(l.isArrayBufferView(e)||l.isArrayBuffer(e))return e.byteLength;if(l.isURLSearchParams(e)&&(e=e+""),l.isString(e))return(await Nn(e)).byteLength},On=async(e,t)=>{const n=l.toFiniteNumber(e.getContentLength());return n??Tn(t)},An=Y&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:b}=Ke(e);u=u?(u+"").toLowerCase():"text";let S=wn([o,s&&s.toAbortSignal()],i),m;const E=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let h;try{if(f&&_n&&n!=="get"&&n!=="head"&&(h=await On(d,r))!==0){let _=new Request(t,{method:"POST",body:r,duplex:"half"}),k;if(l.isFormData(r)&&(k=_.headers.get("content-type"))&&d.setContentType(k),_.body){const[D,H]=Re(h,$(Ne(f)));r=Te(_.body,Oe,D,H)}}l.isString(p)||(p=p?"include":"omit");const w="credentials"in Request.prototype;m=new Request(t,{...b,signal:S,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:w?p:void 0});let R=await fetch(m);const N=ie&&(u==="stream"||u==="response");if(ie&&(c||N&&E)){const _={};["status","statusText","headers"].forEach(he=>{_[he]=R[he]});const k=l.toFiniteNumber(R.headers.get("content-length")),[D,H]=c&&Re(k,$(Ne(c),!0))||[];R=new Response(Te(R.body,Oe,D,()=>{H&&H(),E&&E()}),_)}u=u||"text";let x=await J[l.findKey(J,u)||"text"](R,e);return!N&&E&&E(),await new Promise((_,k)=>{Je(_,k,{data:x,headers:O.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:m})})}catch(w){throw E&&E(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,e,m),{cause:w.cause||w}):y.from(w,w&&w.code,e,m)}}),ae={http:It,xhr:bn,fetch:An};l.forEach(ae,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ae=e=>`- ${e}`,Cn=e=>l.isFunction(e)||e===null||e===!1,Ye={getAdapter:e=>{e=l.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`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(Ae).join(` -`):" "+Ae(s[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ae};function te(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new L(null,e)}function Ce(e){return te(e),e.headers=O.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),Ye.getAdapter(e.adapter||I.adapter)(e).then(function(r){return te(e),r.data=ee.call(e,e.transformResponse,r),r.headers=O.from(r.headers),r},function(r){return $e(r)||(te(e),r&&r.response&&(r.response.data=ee.call(e,e.transformResponse,r.response),r.response.headers=O.from(r.response.headers))),Promise.reject(r)})}const Qe="1.7.7",pe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xe={};pe.transitional=function(t,n,r){function o(s,i){return"[Axios v"+Qe+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,c)=>{if(t===!1)throw new y(o(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!xe[i]&&(xe[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,c):!0}};function xn(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.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 y("option "+s+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+s,y.ERR_BAD_OPTION)}}const le={assertOptions:xn,validators:pe},P=le.validators;class F{constructor(t){this.defaults=t,this.interceptors={request:new ge,response:new ge}}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=V(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&le.assertOptions(r,{silentJSONParsing:P.transitional(P.boolean),forcedJSONParsing:P.transitional(P.boolean),clarifyTimeoutError:P.transitional(P.boolean)},!1),o!=null&&(l.isFunction(o)?n.paramsSerializer={serialize:o}:le.assertOptions(o,{encode:P.function,serialize:P.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&l.merge(s.common,s[n.method]);s&&l.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),n.headers=O.concat(i,s);const c=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(f=f&&E.synchronous,c.unshift(E.fulfilled,E.rejected))});const u=[];this.interceptors.response.forEach(function(E){u.push(E.fulfilled,E.rejected)});let d,p=0,b;if(!f){const m=[Ce.bind(this),void 0];for(m.unshift.apply(m,c),m.push.apply(m,u),b=m.length,d=Promise.resolve(n);p{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 L(s,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}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}static source(){let t;return{token:new me(function(o){t=o}),cancel:t}}}function kn(e){return function(n){return e.apply(null,n)}}function Pn(e){return l.isObject(e)&&e.isAxiosError===!0}const ce={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(ce).forEach(([e,t])=>{ce[t]=e});function Ze(e){const t=new F(e),n=ke(F.prototype.request,t);return l.extend(n,F.prototype,t,{allOwnKeys:!0}),l.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ze(V(e,o))},n}const g=Ze(I);g.Axios=F;g.CanceledError=L;g.CancelToken=me;g.isCancel=$e;g.VERSION=Qe;g.toFormData=X;g.AxiosError=y;g.Cancel=g.CanceledError;g.all=function(t){return Promise.all(t)};g.spread=kn;g.isAxiosError=Pn;g.mergeConfig=V;g.AxiosHeaders=O;g.formToJSON=e=>ze(l.isHTMLForm(e)?new FormData(e):e);g.getAdapter=Ye.getAdapter;g.HttpStatusCode=ce;g.default=g;var et=(e=>(e.Primary="Primary",e.Success="Success",e.Warning="Warning",e.Danger="Danger",e))(et||{});const Dn={counter:{users:0,roles:0,groups:0},info:{frameworkVersion:"",phpVersion:"",database:{connection:"",name:"",type:"",version:""},server:"",projectPath:""},sprinkles:{},users:[]},Bn=tt.defineStore("dashboardApi",{state:()=>({data:Dn}),actions:{async load(){return g.get("/api/dashboard").then(e=>(this.data=e.data,this.data)).catch(e=>{throw{description:"An error as occurred",style:et.Danger,closeBtn:!0,...e.response.data}})}}}),Fn=a.defineComponent({__name:"DashboardStats",props:{users:{},roles:{},groups:{}},setup(e){return(t,n)=>{const r=a.resolveComponent("UFInfoBox");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(r,{value:t.users,label:"Users",faIcon:"user",to:{name:"admin.users"}},null,8,["value"]),a.createVNode(r,{value:t.roles,label:"Roles",faIcon:"address-card",to:{name:"admin.roles"}},null,8,["value"]),a.createVNode(r,{value:t.groups,label:"Groups",faIcon:"users",to:{name:"admin.groups"}},null,8,["value"])],64)}}}),Vn={class:"uk-grid uk-flex-center","uk-grid":""},Un=["src"],Ln={class:"uk-margin-remove"},jn={class:"uk-margin-remove uk-text-meta"},vn=a.defineComponent({__name:"DashboardRecentUsers",props:{users:{}},setup(e){return(t,n)=>{const r=a.resolveComponent("RouterLink"),o=a.resolveComponent("UFCardBox");return a.openBlock(),a.createBlock(o,{title:"Latest Users"},{footer:a.withCtx(()=>[a.createVNode(r,{to:{name:"admin.users"},class:"uk-text-center"},{default:a.withCtx(()=>n[0]||(n[0]=[a.createTextVNode("View All Users")])),_:1})]),default:a.withCtx(()=>[a.createElementVNode("div",Vn,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.users,s=>(a.openBlock(),a.createElementBlock("div",{key:s.id,class:"uk-text-center"},[a.createVNode(r,{to:{name:"admin.user",params:{user_name:s.user_name}},class:"uk-text-decoration-none uk-link-text"},{default:a.withCtx(()=>[a.createElementVNode("img",{src:s.avatar,alt:"User Image",class:"uk-border-circle"},null,8,Un),a.createElementVNode("p",Ln,a.toDisplayString(s.full_name),1),a.createElementVNode("p",jn,a.toDisplayString(a.unref(ne.hooks)(s.created_at).fromNow()),1)]),_:2},1032,["to"])]))),128))])]),_:1})}}}),qn={class:"uk-description-list"},In={class:"uk-list uk-list-disc uk-list-collapse"},Hn=a.defineComponent({__name:"DashboardSystemInfo",props:{info:{},sprinkles:{}},setup(e){return(t,n)=>{const r=a.resolveComponent("UFCardBox");return a.openBlock(),a.createBlock(r,{title:"System Information"},{default:a.withCtx(()=>[a.createElementVNode("dl",qn,[n[0]||(n[0]=a.createElementVNode("dt",null,"Framework version",-1)),a.createElementVNode("dd",null,[a.createElementVNode("pre",null,[a.createElementVNode("code",null,a.toDisplayString(t.info.frameworkVersion),1)])]),n[1]||(n[1]=a.createElementVNode("dt",null,"PHP version",-1)),a.createElementVNode("dd",null,[a.createElementVNode("pre",null,[a.createElementVNode("code",null,a.toDisplayString(t.info.phpVersion),1)])]),n[2]||(n[2]=a.createElementVNode("dt",null,"Webserver software",-1)),a.createElementVNode("dd",null,[a.createElementVNode("pre",null,[a.createElementVNode("code",null,a.toDisplayString(t.info.server),1)])]),n[3]||(n[3]=a.createElementVNode("dt",null,"Database connection",-1)),a.createElementVNode("dd",null,[a.createElementVNode("pre",null,[a.createElementVNode("code",null,a.toDisplayString(t.info.database.connection),1)])]),n[4]||(n[4]=a.createElementVNode("dt",null,"Database version",-1)),a.createElementVNode("dd",null,[a.createElementVNode("pre",null,[a.createElementVNode("code",null,a.toDisplayString(t.info.database.type)+" "+a.toDisplayString(t.info.database.version),1)])]),n[5]||(n[5]=a.createElementVNode("dt",null,"Database name",-1)),a.createElementVNode("dd",null,[a.createElementVNode("pre",null,[a.createElementVNode("code",null,a.toDisplayString(t.info.database.name),1)])]),n[6]||(n[6]=a.createElementVNode("dt",null,"Project directory",-1)),a.createElementVNode("dd",null,[a.createElementVNode("pre",null,[a.createElementVNode("code",null,a.toDisplayString(t.info.projectPath),1)])]),n[7]||(n[7]=a.createElementVNode("dt",null,"Loaded sprinkles",-1)),a.createElementVNode("dd",null,[a.createElementVNode("ul",In,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.sprinkles,o=>(a.openBlock(),a.createElementBlock("li",{key:o},a.toDisplayString(o),1))),128))])])])]),_:1})}}}),Mn={class:"uk-text-meta"},zn=a.defineComponent({__name:"DashboardActivities",setup(e){return(t,n)=>{const r=a.resolveComponent("UFSprunjeHeader"),o=a.resolveComponent("UFSprunjeColumn"),s=a.resolveComponent("RouterLink"),i=a.resolveComponent("UFSprunjeTable"),c=a.resolveComponent("UFCardBox");return a.openBlock(),a.createBlock(c,{title:"Latest Activities"},{default:a.withCtx(()=>[a.createVNode(i,{dataUrl:"/api/activities",defaultSorts:{occurred_at:"desc"},hidePagination:""},{header:a.withCtx(()=>[a.createVNode(r,null,{default:a.withCtx(()=>n[0]||(n[0]=[a.createTextVNode("Activity Time")])),_:1}),a.createVNode(r,null,{default:a.withCtx(()=>n[1]||(n[1]=[a.createTextVNode("User")])),_:1}),a.createVNode(r,null,{default:a.withCtx(()=>n[2]||(n[2]=[a.createTextVNode("Description")])),_:1})]),body:a.withCtx(({item:f})=>[a.createVNode(o,null,{default:a.withCtx(()=>[a.createElementVNode("div",null,a.toDisplayString(a.unref(ne.hooks)(f.occurred_at).format("dddd")),1),a.createElementVNode("div",null,a.toDisplayString(a.unref(ne.hooks)(f.occurred_at).format("MMM Do, YYYY h:mm a")),1)]),_:2},1024),a.createVNode(o,null,{default:a.withCtx(()=>[a.createElementVNode("strong",null,[a.createVNode(s,{to:{name:"admin.user",params:{user_name:f.user.user_name}}},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(f.user.full_name)+" ("+a.toDisplayString(f.user.user_name)+") ",1)]),_:2},1032,["to"])]),a.createElementVNode("div",Mn,a.toDisplayString(f.user.email),1)]),_:2},1024),a.createVNode(o,null,{default:a.withCtx(()=>[a.createElementVNode("div",null,a.toDisplayString(f.ip_address),1),a.createElementVNode("div",null,[a.createElementVNode("i",null,a.toDisplayString(f.description),1)])]),_:2},1024)]),_:1})]),_:1})}}}),$n={class:"uk-child-width-expand","uk-grid":""},Jn={class:"uk-child-width-1-2","uk-grid":""},Wn={class:"uk-child-width-1-1","uk-grid":""},Kn=a.defineComponent({__name:"DashboardView",setup(e){const t=Bn();return t.load(),(n,r)=>{const o=a.resolveComponent("UFHeaderPage");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(o,{title:"Dashboard"}),a.createElementVNode("div",$n,[a.createVNode(Fn,{users:a.unref(t).data.counter.users,roles:a.unref(t).data.counter.roles,groups:a.unref(t).data.counter.groups},null,8,["users","roles","groups"])]),a.createElementVNode("div",Jn,[a.createElementVNode("div",null,[a.createElementVNode("div",Wn,[a.createElementVNode("div",null,[a.createVNode(vn,{users:a.unref(t).data.users},null,8,["users"])]),a.createElementVNode("div",null,[a.createVNode(Hn,{info:a.unref(t).data.info,sprinkles:a.unref(t).data.sprinkles},null,8,["info","sprinkles"])])])]),a.createElementVNode("div",null,[a.createVNode(zn)])])],64)}}});exports.default=Kn; diff --git a/dist/DashboardView-DvU4PBgd.js b/dist/DashboardView-DvU4PBgd.js new file mode 100644 index 0000000..4552491 --- /dev/null +++ b/dist/DashboardView-DvU4PBgd.js @@ -0,0 +1,316 @@ +import { defineComponent as k, resolveComponent as u, openBlock as i, createElementBlock as _, Fragment as v, createVNode as o, createBlock as g, withCtx as t, createTextVNode as f, createElementVNode as e, renderList as h, toDisplayString as r, unref as d } from "vue"; +import { defineStore as D } from "pinia"; +import { a as w, b as x } from "./types-BgMW-dbA.js"; +import { h as b } from "./moment-h96o7c8I.js"; +const y = { + counter: { + users: 0, + roles: 0, + groups: 0 + }, + info: { + frameworkVersion: "", + phpVersion: "", + database: { + connection: "", + name: "", + type: "", + version: "" + }, + server: "", + projectPath: "" + }, + sprinkles: {}, + users: [] +}, B = D("dashboardApi", { + state: () => ({ + data: y + }), + actions: { + async load() { + return w.get("/api/dashboard").then((p) => (this.data = p.data, this.data)).catch((p) => { + throw { + description: "An error as occurred", + style: x.Danger, + closeBtn: !0, + ...p.response.data + }; + }); + } + } +}), S = /* @__PURE__ */ k({ + __name: "DashboardStats", + props: { + users: {}, + roles: {}, + groups: {} + }, + setup(p) { + return (s, n) => { + const l = u("UFInfoBox"); + return i(), _(v, null, [ + o(l, { + value: s.users, + label: "Users", + faIcon: "user", + to: { name: "admin.users" } + }, null, 8, ["value"]), + o(l, { + value: s.roles, + label: "Roles", + faIcon: "address-card", + to: { name: "admin.roles" } + }, null, 8, ["value"]), + o(l, { + value: s.groups, + label: "Groups", + faIcon: "users", + to: { name: "admin.groups" } + }, null, 8, ["value"]) + ], 64); + }; + } +}), C = { + class: "uk-grid uk-flex-center", + "uk-grid": "" +}, $ = ["src"], j = { class: "uk-margin-remove" }, V = { class: "uk-margin-remove uk-text-meta" }, A = /* @__PURE__ */ k({ + __name: "DashboardRecentUsers", + props: { + users: {} + }, + setup(p) { + return (s, n) => { + const l = u("RouterLink"), a = u("UFCardBox"); + return i(), g(a, { title: "Latest Users" }, { + footer: t(() => [ + o(l, { + to: { name: "admin.users" }, + class: "uk-text-center" + }, { + default: t(() => n[0] || (n[0] = [ + f("View All Users") + ])), + _: 1 + }) + ]), + default: t(() => [ + e("div", C, [ + (i(!0), _(v, null, h(s.users, (m) => (i(), _("div", { + key: m.id, + class: "uk-text-center" + }, [ + o(l, { + to: { name: "admin.user", params: { user_name: m.user_name } }, + class: "uk-text-decoration-none uk-link-text" + }, { + default: t(() => [ + e("img", { + src: m.avatar, + alt: "User Image", + class: "uk-border-circle" + }, null, 8, $), + e("p", j, r(m.full_name), 1), + e("p", V, r(d(b)(m.created_at).fromNow()), 1) + ]), + _: 2 + }, 1032, ["to"]) + ]))), 128)) + ]) + ]), + _: 1 + }); + }; + } +}), I = { class: "uk-description-list" }, L = { class: "uk-list uk-list-disc uk-list-collapse" }, P = /* @__PURE__ */ k({ + __name: "DashboardSystemInfo", + props: { + info: {}, + sprinkles: {} + }, + setup(p) { + return (s, n) => { + const l = u("UFCardBox"); + return i(), g(l, { title: "System Information" }, { + default: t(() => [ + e("dl", I, [ + n[0] || (n[0] = e("dt", null, "Framework version", -1)), + e("dd", null, [ + e("pre", null, [ + e("code", null, r(s.info.frameworkVersion), 1) + ]) + ]), + n[1] || (n[1] = e("dt", null, "PHP version", -1)), + e("dd", null, [ + e("pre", null, [ + e("code", null, r(s.info.phpVersion), 1) + ]) + ]), + n[2] || (n[2] = e("dt", null, "Webserver software", -1)), + e("dd", null, [ + e("pre", null, [ + e("code", null, r(s.info.server), 1) + ]) + ]), + n[3] || (n[3] = e("dt", null, "Database connection", -1)), + e("dd", null, [ + e("pre", null, [ + e("code", null, r(s.info.database.connection), 1) + ]) + ]), + n[4] || (n[4] = e("dt", null, "Database version", -1)), + e("dd", null, [ + e("pre", null, [ + e("code", null, r(s.info.database.type) + " " + r(s.info.database.version), 1) + ]) + ]), + n[5] || (n[5] = e("dt", null, "Database name", -1)), + e("dd", null, [ + e("pre", null, [ + e("code", null, r(s.info.database.name), 1) + ]) + ]), + n[6] || (n[6] = e("dt", null, "Project directory", -1)), + e("dd", null, [ + e("pre", null, [ + e("code", null, r(s.info.projectPath), 1) + ]) + ]), + n[7] || (n[7] = e("dt", null, "Loaded sprinkles", -1)), + e("dd", null, [ + e("ul", L, [ + (i(!0), _(v, null, h(s.sprinkles, (a) => (i(), _("li", { key: a }, r(a), 1))), 128)) + ]) + ]) + ]) + ]), + _: 1 + }); + }; + } +}), R = { class: "uk-text-meta" }, H = /* @__PURE__ */ k({ + __name: "DashboardActivities", + setup(p) { + return (s, n) => { + const l = u("UFSprunjeHeader"), a = u("UFSprunjeColumn"), m = u("RouterLink"), U = u("UFSprunjeTable"), F = u("UFCardBox"); + return i(), g(F, { title: "Latest Activities" }, { + default: t(() => [ + o(U, { + dataUrl: "/api/activities", + defaultSorts: { occurred_at: "desc" }, + hidePagination: "" + }, { + header: t(() => [ + o(l, null, { + default: t(() => n[0] || (n[0] = [ + f("Activity Time") + ])), + _: 1 + }), + o(l, null, { + default: t(() => n[1] || (n[1] = [ + f("User") + ])), + _: 1 + }), + o(l, null, { + default: t(() => n[2] || (n[2] = [ + f("Description") + ])), + _: 1 + }) + ]), + body: t(({ item: c }) => [ + o(a, null, { + default: t(() => [ + e("div", null, r(d(b)(c.occurred_at).format("dddd")), 1), + e("div", null, r(d(b)(c.occurred_at).format("MMM Do, YYYY h:mm a")), 1) + ]), + _: 2 + }, 1024), + o(a, null, { + default: t(() => [ + e("strong", null, [ + o(m, { + to: { + name: "admin.user", + params: { user_name: c.user.user_name } + } + }, { + default: t(() => [ + f(r(c.user.full_name) + " (" + r(c.user.user_name) + ") ", 1) + ]), + _: 2 + }, 1032, ["to"]) + ]), + e("div", R, r(c.user.email), 1) + ]), + _: 2 + }, 1024), + o(a, null, { + default: t(() => [ + e("div", null, r(c.ip_address), 1), + e("div", null, [ + e("i", null, r(c.description), 1) + ]) + ]), + _: 2 + }, 1024) + ]), + _: 1 + }) + ]), + _: 1 + }); + }; + } +}), N = { + class: "uk-child-width-expand", + "uk-grid": "" +}, T = { + class: "uk-child-width-1-2", + "uk-grid": "" +}, Y = { + class: "uk-child-width-1-1", + "uk-grid": "" +}, q = /* @__PURE__ */ k({ + __name: "DashboardView", + setup(p) { + const s = B(); + return s.load(), (n, l) => { + const a = u("UFHeaderPage"); + return i(), _(v, null, [ + o(a, { title: "Dashboard" }), + e("div", N, [ + o(S, { + users: d(s).data.counter.users, + roles: d(s).data.counter.roles, + groups: d(s).data.counter.groups + }, null, 8, ["users", "roles", "groups"]) + ]), + e("div", T, [ + e("div", null, [ + e("div", Y, [ + e("div", null, [ + o(A, { + users: d(s).data.users + }, null, 8, ["users"]) + ]), + e("div", null, [ + o(P, { + info: d(s).data.info, + sprinkles: d(s).data.sprinkles + }, null, 8, ["info", "sprinkles"]) + ]) + ]) + ]), + e("div", null, [ + o(H) + ]) + ]) + ], 64); + }; + } +}); +export { + q as default +}; diff --git a/dist/GroupView-Br2XanZz.js b/dist/GroupView-Br2XanZz.js deleted file mode 100644 index e047cb6..0000000 --- a/dist/GroupView-Br2XanZz.js +++ /dev/null @@ -1,11 +0,0 @@ -import { resolveComponent as o, openBlock as r, createBlock as t } from "vue"; -import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js"; -const n = {}; -function _(a, p) { - const e = o("UFHeaderPage"); - return r(), t(e, { title: "Group" }); -} -const m = /* @__PURE__ */ c(n, [["render", _]]); -export { - m as default -}; diff --git a/dist/GroupView-Cvy93KmK.cjs b/dist/GroupView-Cvy93KmK.cjs deleted file mode 100644 index 9a6a912..0000000 --- a/dist/GroupView-Cvy93KmK.cjs +++ /dev/null @@ -1 +0,0 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),t={};function n(u,_){const r=e.resolveComponent("UFHeaderPage");return e.openBlock(),e.createBlock(r,{title:"Group"})}const c=o._export_sfc(t,[["render",n]]);exports.default=c; diff --git a/dist/GroupView-Di3uAdBk.js b/dist/GroupView-Di3uAdBk.js new file mode 100644 index 0000000..08dbf69 --- /dev/null +++ b/dist/GroupView-Di3uAdBk.js @@ -0,0 +1,184 @@ +import { ref as v, watch as y, defineComponent as U, resolveComponent as l, openBlock as p, createBlock as g, withCtx as r, createElementVNode as e, createCommentVNode as x, toDisplayString as u, createVNode as o, createTextVNode as d, unref as _, createElementBlock as h, Fragment as C } from "vue"; +import { useRoute as w } from "vue-router"; +import { a as B, b as S } from "./types-BgMW-dbA.js"; +import { h as F } from "./moment-h96o7c8I.js"; +function A(m) { + const n = v(!1), t = v(), s = v({ + id: 0, + name: "", + slug: "", + description: "", + icon: "", + created_at: "", + updated_at: "", + deleted_at: null, + users_count: 0 + }); + async function c() { + n.value = !0, t.value = null, await B.get("/api/groups/g/" + m.params.slug).then((a) => { + s.value = a.data; + }).catch((a) => { + t.value = { + description: "An error as occurred", + style: S.Danger, + closeBtn: !0, + ...a.response.data + }; + }).finally(() => { + n.value = !1; + }); + } + return y( + () => m.params.slug, + () => { + c(); + }, + { immediate: !0 } + ), { group: s, error: t, loading: n }; +} +const G = { class: "uk-text-center" }, j = { class: "uk-text-center uk-margin-remove" }, $ = { class: "uk-text-meta" }, b = { "uk-grid": "" }, V = { class: "uk-width-auto@m" }, H = { class: "uk-width-expand@m uk-text-right" }, N = { class: "uk-badge" }, Y = /* @__PURE__ */ U({ + __name: "GroupInfo", + props: { + group: {} + }, + setup(m) { + return (n, t) => { + const s = l("font-awesome-icon"), c = l("UFCardBox"); + return p(), g(c, null, { + default: r(() => [ + e("div", G, [ + n.group.icon ? (p(), g(s, { + key: 0, + icon: n.group.icon, + class: "fa-5x" + }, null, 8, ["icon"])) : x("", !0) + ]), + e("h3", j, u(n.group.name), 1), + e("p", $, u(n.group.description), 1), + e("div", b, [ + e("div", V, [ + e("strong", null, [ + o(s, { icon: "users" }), + t[0] || (t[0] = d(" Users")) + ]) + ]), + e("div", H, [ + e("span", N, u(n.group.users_count), 1) + ]) + ]) + ]), + _: 1 + }); + }; + } +}), D = { class: "uk-text-meta" }, L = /* @__PURE__ */ U({ + __name: "GroupUsers", + props: { + slug: {} + }, + setup(m) { + return (n, t) => { + const s = l("UFSprunjeHeader"), c = l("RouterLink"), a = l("UFSprunjeColumn"), f = l("UFSprunjeTable"), k = l("UFCardBox"); + return p(), g(k, { title: "Group Users" }, { + default: r(() => [ + o(f, { + dataUrl: "/api/groups/g/" + n.slug + "/users" + }, { + header: r(() => [ + o(s, { sort: "name" }, { + default: r(() => t[0] || (t[0] = [ + d("User") + ])), + _: 1 + }), + o(s, { sort: "last_activity" }, { + default: r(() => t[1] || (t[1] = [ + d("Last Activity") + ])), + _: 1 + }), + o(s, { sort: "status" }, { + default: r(() => t[2] || (t[2] = [ + d("Status") + ])), + _: 1 + }), + o(s, null, { + default: r(() => t[3] || (t[3] = [ + d("Actions") + ])), + _: 1 + }) + ]), + body: r(({ item: i }) => [ + o(a, null, { + default: r(() => [ + e("strong", null, [ + o(c, { + to: { + name: "admin.user", + params: { user_name: i.user_name } + } + }, { + default: r(() => [ + d(u(i.full_name) + " (" + u(i.user_name) + ") ", 1) + ]), + _: 2 + }, 1032, ["to"]) + ]), + e("div", D, u(i.email), 1) + ]), + _: 2 + }, 1024), + o(a, null, { + default: r(() => [ + e("div", null, u(_(F)(i.last_activity.occurred_at).format("dddd")), 1), + e("div", null, u(_(F)(i.last_activity.occurred_at).format("MMM Do, YYYY h:mm a")), 1), + e("i", null, u(i.last_activity.description), 1) + ]), + _: 2 + }, 1024), + o(a), + o(a) + ]), + _: 1 + }, 8, ["dataUrl"]) + ]), + _: 1 + }); + }; + } +}), M = { + key: 1, + "uk-grid": "" +}, R = { class: "uk-width-1-3" }, T = { class: "uk-width-2-3" }, z = /* @__PURE__ */ U({ + __name: "GroupView", + setup(m) { + const n = w(), { group: t, error: s } = A(n); + return (c, a) => { + const f = l("UFHeaderPage"), k = l("UFAlertContainer"); + return p(), h(C, null, [ + o(f, { + title: "Group details", + caption: "Group information page" + }), + _(s) ? (p(), g(k, { + key: 0, + alert: _(s) + }, null, 8, ["alert"])) : (p(), h("div", M, [ + e("div", R, [ + o(Y, { group: _(t) }, null, 8, ["group"]) + ]), + e("div", T, [ + o(L, { + slug: _(t).slug + }, null, 8, ["slug"]) + ]) + ])) + ], 64); + }; + } +}); +export { + z as default +}; diff --git a/dist/GroupView-DsbD1R89.cjs b/dist/GroupView-DsbD1R89.cjs new file mode 100644 index 0000000..5f54e37 --- /dev/null +++ b/dist/GroupView-DsbD1R89.cjs @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("vue-router"),i=require("./types-LD8tPu16.cjs"),d=require("./moment-Bp7fbP4q.cjs");function _(l){const o=e.ref(!1),t=e.ref(),n=e.ref({id:0,name:"",slug:"",description:"",icon:"",created_at:"",updated_at:"",deleted_at:null,users_count:0});async function s(){o.value=!0,t.value=null,await i.axios.get("/api/groups/g/"+l.params.slug).then(r=>{n.value=r.data}).catch(r=>{t.value={description:"An error as occurred",style:i.a.Danger,closeBtn:!0,...r.response.data}}).finally(()=>{o.value=!1})}return e.watch(()=>l.params.slug,()=>{s()},{immediate:!0}),{group:n,error:t,loading:o}}const m={class:"uk-text-center"},g={class:"uk-text-center uk-margin-remove"},f={class:"uk-text-meta"},V={"uk-grid":""},N={class:"uk-width-auto@m"},v={class:"uk-width-expand@m uk-text-right"},k={class:"uk-badge"},C=e.defineComponent({__name:"GroupInfo",props:{group:{}},setup(l){return(o,t)=>{const n=e.resolveComponent("font-awesome-icon"),s=e.resolveComponent("UFCardBox");return e.openBlock(),e.createBlock(s,null,{default:e.withCtx(()=>[e.createElementVNode("div",m,[o.group.icon?(e.openBlock(),e.createBlock(n,{key:0,icon:o.group.icon,class:"fa-5x"},null,8,["icon"])):e.createCommentVNode("",!0)]),e.createElementVNode("h3",g,e.toDisplayString(o.group.name),1),e.createElementVNode("p",f,e.toDisplayString(o.group.description),1),e.createElementVNode("div",V,[e.createElementVNode("div",N,[e.createElementVNode("strong",null,[e.createVNode(n,{icon:"users"}),t[0]||(t[0]=e.createTextVNode(" Users"))])]),e.createElementVNode("div",v,[e.createElementVNode("span",k,e.toDisplayString(o.group.users_count),1)])])]),_:1})}}}),h={class:"uk-text-meta"},x=e.defineComponent({__name:"GroupUsers",props:{slug:{}},setup(l){return(o,t)=>{const n=e.resolveComponent("UFSprunjeHeader"),s=e.resolveComponent("RouterLink"),r=e.resolveComponent("UFSprunjeColumn"),u=e.resolveComponent("UFSprunjeTable"),c=e.resolveComponent("UFCardBox");return e.openBlock(),e.createBlock(c,{title:"Group Users"},{default:e.withCtx(()=>[e.createVNode(u,{dataUrl:"/api/groups/g/"+o.slug+"/users"},{header:e.withCtx(()=>[e.createVNode(n,{sort:"name"},{default:e.withCtx(()=>t[0]||(t[0]=[e.createTextVNode("User")])),_:1}),e.createVNode(n,{sort:"last_activity"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("Last Activity")])),_:1}),e.createVNode(n,{sort:"status"},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("Status")])),_:1}),e.createVNode(n,null,{default:e.withCtx(()=>t[3]||(t[3]=[e.createTextVNode("Actions")])),_:1})]),body:e.withCtx(({item:a})=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createElementVNode("strong",null,[e.createVNode(s,{to:{name:"admin.user",params:{user_name:a.user_name}}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.full_name)+" ("+e.toDisplayString(a.user_name)+") ",1)]),_:2},1032,["to"])]),e.createElementVNode("div",h,e.toDisplayString(a.email),1)]),_:2},1024),e.createVNode(r,null,{default:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(d.hooks)(a.last_activity.occurred_at).format("dddd")),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(d.hooks)(a.last_activity.occurred_at).format("MMM Do, YYYY h:mm a")),1),e.createElementVNode("i",null,e.toDisplayString(a.last_activity.description),1)]),_:2},1024),e.createVNode(r),e.createVNode(r)]),_:1},8,["dataUrl"])]),_:1})}}}),y={key:1,"uk-grid":""},w={class:"uk-width-1-3"},U={class:"uk-width-2-3"},S=e.defineComponent({__name:"GroupView",setup(l){const o=p.useRoute(),{group:t,error:n}=_(o);return(s,r)=>{const u=e.resolveComponent("UFHeaderPage"),c=e.resolveComponent("UFAlertContainer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(u,{title:"Group details",caption:"Group information page"}),e.unref(n)?(e.openBlock(),e.createBlock(c,{key:0,alert:e.unref(n)},null,8,["alert"])):(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",w,[e.createVNode(C,{group:e.unref(t)},null,8,["group"])]),e.createElementVNode("div",U,[e.createVNode(x,{slug:e.unref(t).slug},null,8,["slug"])])]))],64)}}});exports.default=S; diff --git a/dist/composable/group.d.ts b/dist/composable/group.d.ts new file mode 100644 index 0000000..2ae3f29 --- /dev/null +++ b/dist/composable/group.d.ts @@ -0,0 +1,37 @@ +import { GroupInterface } from '@userfrosting/sprinkle-account/types'; +import { AlertInterface } from '@userfrosting/sprinkle-core/types'; +/** + * Create GroupAPI interface, based on GroupInterface + */ +interface GroupApi extends GroupInterface { + users_count: number; +} +/** + * API Composable + */ +export declare function useGroupApi(route: any): { + group: import('vue').Ref<{ + users_count: number; + id: number; + slug: string; + name: string; + description: string; + icon: string; + created_at: Date | string; + updated_at: Date | string; + deleted_at: Date | string | null; + }, GroupApi | { + users_count: number; + id: number; + slug: string; + name: string; + description: string; + icon: string; + created_at: Date | string; + updated_at: Date | string; + deleted_at: Date | string | null; + }>; + error: import('vue').Ref; + loading: import('vue').Ref; +}; +export type { GroupApi }; diff --git a/dist/routes.cjs b/dist/routes.cjs index 3f3803d..6c0e89b 100644 --- a/dist/routes.cjs +++ b/dist/routes.cjs @@ -1 +1 @@ -"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=[{path:"dashboard",name:"admin.dashboard",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./DashboardView-D7CFsOl5.cjs"))}],n=[{path:"activities",name:"admin.activities",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./ActivitiesView-DiFutZNz.cjs"))}],o=[{path:"groups",meta:{auth:{redirect:{name:"account.login"}}},children:[{path:"",name:"admin.groups",component:()=>Promise.resolve().then(()=>require("./GroupsView-DuagIXJ4.cjs"))},{path:"g/:slug",name:"admin.group",component:()=>Promise.resolve().then(()=>require("./GroupView-Cvy93KmK.cjs"))}]}],t=[{path:"permissions",meta:{auth:{redirect:{name:"account.login"}}},children:[{path:"",name:"admin.permissions",component:()=>Promise.resolve().then(()=>require("./PermissionsView-Dz0SDtvc.cjs"))},{path:"p/:id",name:"admin.permission",component:()=>Promise.resolve().then(()=>require("./PermissionView-CZvtwzCa.cjs"))}]}],i=[{path:"roles",meta:{auth:{redirect:{name:"account.login"}}},children:[{path:"",name:"admin.roles",component:()=>Promise.resolve().then(()=>require("./RolesView-BpLV9I3k.cjs"))},{path:"r/:slug",name:"admin.role",component:()=>Promise.resolve().then(()=>require("./RoleView-D859yBSb.cjs"))}]}],s=[{path:"users",meta:{auth:{redirect:{name:"account.login"}}},children:[{path:"",name:"admin.users",component:()=>Promise.resolve().then(()=>require("./UsersView-D84SVkdw.cjs"))},{path:"u/:user_name",name:"admin.user",component:()=>Promise.resolve().then(()=>require("./UserView-DI4zS3sA.cjs"))}]}],r=[...e,...n,...o,...t,...i,...s];exports.AdminActivitiesRoutes=n;exports.AdminDashboardRoutes=e;exports.AdminGroupsRoutes=o;exports.AdminPermissionsRoutes=t;exports.AdminRolesRoutes=i;exports.AdminUsersRoutes=s;exports.default=r; +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=[{path:"dashboard",name:"admin.dashboard",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./DashboardView-CWA-QPM_.cjs"))}],n=[{path:"activities",name:"admin.activities",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./ActivitiesView-DiFutZNz.cjs"))}],o=[{path:"groups",meta:{auth:{redirect:{name:"account.login"}}},children:[{path:"",name:"admin.groups",component:()=>Promise.resolve().then(()=>require("./GroupsView-DuagIXJ4.cjs"))},{path:"g/:slug",name:"admin.group",component:()=>Promise.resolve().then(()=>require("./GroupView-DsbD1R89.cjs"))}]}],t=[{path:"permissions",meta:{auth:{redirect:{name:"account.login"}}},children:[{path:"",name:"admin.permissions",component:()=>Promise.resolve().then(()=>require("./PermissionsView-Dz0SDtvc.cjs"))},{path:"p/:id",name:"admin.permission",component:()=>Promise.resolve().then(()=>require("./PermissionView-CZvtwzCa.cjs"))}]}],i=[{path:"roles",meta:{auth:{redirect:{name:"account.login"}}},children:[{path:"",name:"admin.roles",component:()=>Promise.resolve().then(()=>require("./RolesView-BpLV9I3k.cjs"))},{path:"r/:slug",name:"admin.role",component:()=>Promise.resolve().then(()=>require("./RoleView-D859yBSb.cjs"))}]}],s=[{path:"users",meta:{auth:{redirect:{name:"account.login"}}},children:[{path:"",name:"admin.users",component:()=>Promise.resolve().then(()=>require("./UsersView-D84SVkdw.cjs"))},{path:"u/:user_name",name:"admin.user",component:()=>Promise.resolve().then(()=>require("./UserView-DI4zS3sA.cjs"))}]}],r=[...e,...n,...o,...t,...i,...s];exports.AdminActivitiesRoutes=n;exports.AdminDashboardRoutes=e;exports.AdminGroupsRoutes=o;exports.AdminPermissionsRoutes=t;exports.AdminRolesRoutes=i;exports.AdminUsersRoutes=s;exports.default=r; diff --git a/dist/routes.js b/dist/routes.js index 2f261cb..b5304bd 100644 --- a/dist/routes.js +++ b/dist/routes.js @@ -7,7 +7,7 @@ const n = [ redirect: { name: "account.login" } } }, - component: () => import("./DashboardView--DjNrx_m.js") + component: () => import("./DashboardView-DvU4PBgd.js") } ], t = [ { @@ -37,7 +37,7 @@ const n = [ { path: "g/:slug", name: "admin.group", - component: () => import("./GroupView-Br2XanZz.js") + component: () => import("./GroupView-Di3uAdBk.js") } ] } diff --git a/dist/types-BgMW-dbA.js b/dist/types-BgMW-dbA.js new file mode 100644 index 0000000..7155081 --- /dev/null +++ b/dist/types-BgMW-dbA.js @@ -0,0 +1,1706 @@ +function Pe(e, t) { + return function() { + return e.apply(t, arguments); + }; +} +const { toString: Ze } = Object.prototype, { getPrototypeOf: ce } = Object, $ = /* @__PURE__ */ ((e) => (t) => { + const n = Ze.call(t); + return e[n] || (e[n] = n.slice(8, -1).toLowerCase()); +})(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => $(t) === e), v = (e) => (t) => typeof t === e, { isArray: U } = Array, q = v("undefined"); +function Ye(e) { + return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) && x(e.constructor.isBuffer) && e.constructor.isBuffer(e); +} +const Ne = C("ArrayBuffer"); +function et(e) { + let t; + return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ne(e.buffer), t; +} +const tt = v("string"), x = v("function"), _e = v("number"), K = (e) => e !== null && typeof e == "object", nt = (e) => e === !0 || e === !1, z = (e) => { + if ($(e) !== "object") + return !1; + const t = ce(e); + return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e); +}, rt = C("Date"), st = C("File"), ot = C("Blob"), it = C("FileList"), at = (e) => K(e) && x(e.pipe), ct = (e) => { + let t; + return e && (typeof FormData == "function" && e instanceof FormData || x(e.append) && ((t = $(e)) === "formdata" || // detect form-data instance + t === "object" && x(e.toString) && e.toString() === "[object FormData]")); +}, ut = C("URLSearchParams"), [lt, ft, dt, pt] = ["ReadableStream", "Request", "Response", "Headers"].map(C), ht = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); +function I(e, t, { allOwnKeys: n = !1 } = {}) { + if (e === null || typeof e > "u") + return; + let r, s; + if (typeof e != "object" && (e = [e]), U(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 c; + for (r = 0; r < i; r++) + c = o[r], t.call(null, e[c], c, e); + } +} +function Fe(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 L = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Le = (e) => !q(e) && e !== L; +function te() { + const { caseless: e } = Le(this) && this || {}, t = {}, n = (r, s) => { + const o = e && Fe(t, s) || s; + z(t[o]) && z(r) ? t[o] = te(t[o], r) : z(r) ? t[o] = te({}, r) : U(r) ? t[o] = r.slice() : t[o] = r; + }; + for (let r = 0, s = arguments.length; r < s; r++) + arguments[r] && I(arguments[r], n); + return t; +} +const mt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => { + n && x(s) ? e[o] = Pe(s, n) : e[o] = s; +}, { allOwnKeys: r }), e), yt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), bt = (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); +}, wt = (e, t, n, r) => { + let s, o, i; + const c = {}; + 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)) && !c[i] && (t[i] = e[i], c[i] = !0); + e = n !== !1 && ce(e); + } while (e && (!n || n(e, t)) && e !== Object.prototype); + return t; +}, Et = (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; +}, St = (e) => { + if (!e) return null; + if (U(e)) return e; + let t = e.length; + if (!_e(t)) return null; + const n = new Array(t); + for (; t-- > 0; ) + n[t] = e[t]; + return n; +}, gt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ce(Uint8Array)), Rt = (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]); + } +}, Ot = (e, t) => { + let n; + const r = []; + for (; (n = e.exec(t)) !== null; ) + r.push(n); + return r; +}, Tt = C("HTMLFormElement"), At = (e) => e.toLowerCase().replace( + /[-_\s]([a-z\d])(\w*)/g, + function(n, r, s) { + return r.toUpperCase() + s; + } +), he = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), xt = C("RegExp"), Be = (e, t) => { + const n = Object.getOwnPropertyDescriptors(e), r = {}; + I(n, (s, o) => { + let i; + (i = t(s, o, e)) !== !1 && (r[o] = i || s); + }), Object.defineProperties(e, r); +}, Ct = (e) => { + Be(e, (t, n) => { + if (x(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1) + return !1; + const r = e[n]; + if (x(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 + "'"); + }); + } + }); +}, Pt = (e, t) => { + const n = {}, r = (s) => { + s.forEach((o) => { + n[o] = !0; + }); + }; + return U(e) ? r(e) : r(String(e).split(t)), n; +}, Nt = () => { +}, _t = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Q = "abcdefghijklmnopqrstuvwxyz", me = "0123456789", De = { + DIGIT: me, + ALPHA: Q, + ALPHA_DIGIT: Q + Q.toUpperCase() + me +}, Ft = (e = 16, t = De.ALPHA_DIGIT) => { + let n = ""; + const { length: r } = t; + for (; e--; ) + n += t[Math.random() * r | 0]; + return n; +}; +function Lt(e) { + return !!(e && x(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]); +} +const Bt = (e) => { + const t = new Array(10), n = (r, s) => { + if (K(r)) { + if (t.indexOf(r) >= 0) + return; + if (!("toJSON" in r)) { + t[s] = r; + const o = U(r) ? [] : {}; + return I(r, (i, c) => { + const f = n(i, s + 1); + !q(f) && (o[c] = f); + }), t[s] = void 0, o; + } + } + return r; + }; + return n(e, 0); +}, Dt = C("AsyncFunction"), Ut = (e) => e && (K(e) || x(e)) && x(e.then) && x(e.catch), Ue = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: s, data: o }) => { + s === L && o === n && r.length && r.shift()(); +}, !1), (s) => { + r.push(s), L.postMessage(n, "*"); +}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))( + typeof setImmediate == "function", + x(L.postMessage) +), kt = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof process < "u" && process.nextTick || Ue, a = { + isArray: U, + isArrayBuffer: Ne, + isBuffer: Ye, + isFormData: ct, + isArrayBufferView: et, + isString: tt, + isNumber: _e, + isBoolean: nt, + isObject: K, + isPlainObject: z, + isReadableStream: lt, + isRequest: ft, + isResponse: dt, + isHeaders: pt, + isUndefined: q, + isDate: rt, + isFile: st, + isBlob: ot, + isRegExp: xt, + isFunction: x, + isStream: at, + isURLSearchParams: ut, + isTypedArray: gt, + isFileList: it, + forEach: I, + merge: te, + extend: mt, + trim: ht, + stripBOM: yt, + inherits: bt, + toFlatObject: wt, + kindOf: $, + kindOfTest: C, + endsWith: Et, + toArray: St, + forEachEntry: Rt, + matchAll: Ot, + isHTMLForm: Tt, + hasOwnProperty: he, + hasOwnProp: he, + // an alias to avoid ESLint no-prototype-builtins detection + reduceDescriptors: Be, + freezeMethods: Ct, + toObjectSet: Pt, + toCamelCase: At, + noop: Nt, + toFiniteNumber: _t, + findKey: Fe, + global: L, + isContextDefined: Le, + ALPHABET: De, + generateString: Ft, + isSpecCompliantForm: Lt, + toJSONObject: Bt, + isAsyncFn: Dt, + isThenable: Ut, + setImmediate: Ue, + asap: kt +}; +function m(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, this.status = s.status ? s.status : null); +} +a.inherits(m, 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 ke = m.prototype, je = {}; +[ + "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) => { + je[e] = { value: e }; +}); +Object.defineProperties(m, je); +Object.defineProperty(ke, "isAxiosError", { value: !0 }); +m.from = (e, t, n, r, s, o) => { + const i = Object.create(ke); + return a.toFlatObject(e, i, function(f) { + return f !== Error.prototype; + }, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i; +}; +const jt = null; +function ne(e) { + return a.isPlainObject(e) || a.isArray(e); +} +function qe(e) { + return a.endsWith(e, "[]") ? e.slice(0, -2) : e; +} +function ye(e, t, n) { + return e ? e.concat(t).map(function(s, o) { + return s = qe(s), !n && o ? "[" + s + "]" : s; + }).join(n ? "." : "") : t; +} +function qt(e) { + return a.isArray(e) && !e.some(ne); +} +const It = a.toFlatObject(a, {}, null, function(t) { + return /^is[A-Z]/.test(t); +}); +function G(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, h) { + return !a.isUndefined(h[y]); + }); + const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t); + if (!a.isFunction(s)) + throw new TypeError("visitor must be a function"); + function u(p) { + if (p === null) return ""; + if (a.isDate(p)) + return p.toISOString(); + if (!f && a.isBlob(p)) + throw new m("Blob is not supported. Use a Buffer instead."); + return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p; + } + function l(p, y, h) { + let w = p; + if (p && !h && typeof p == "object") { + if (a.endsWith(y, "{}")) + y = r ? y : y.slice(0, -2), p = JSON.stringify(p); + else if (a.isArray(p) && qt(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (w = a.toArray(p))) + return y = qe(y), w.forEach(function(R, P) { + !(a.isUndefined(R) || R === null) && t.append( + // eslint-disable-next-line no-nested-ternary + i === !0 ? ye([y], P, o) : i === null ? y : y + "[]", + u(R) + ); + }), !1; + } + return ne(p) ? !0 : (t.append(ye(h, y, o), u(p)), !1); + } + const d = [], b = Object.assign(It, { + defaultVisitor: l, + convertValue: u, + isVisitable: ne + }); + function E(p, y) { + if (!a.isUndefined(p)) { + if (d.indexOf(p) !== -1) + throw Error("Circular reference detected in " + y.join(".")); + d.push(p), a.forEach(p, function(w, S) { + (!(a.isUndefined(w) || w === null) && s.call( + t, + w, + a.isString(S) ? S.trim() : S, + y, + b + )) === !0 && E(w, y ? y.concat(S) : [S]); + }), d.pop(); + } + } + if (!a.isObject(e)) + throw new TypeError("data must be an object"); + return E(e), t; +} +function be(e) { + const t = { + "!": "%21", + "'": "%27", + "(": "%28", + ")": "%29", + "~": "%7E", + "%20": "+", + "%00": "\0" + }; + return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) { + return t[r]; + }); +} +function ue(e, t) { + this._pairs = [], e && G(e, this, t); +} +const Ie = ue.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, be); + } : be; + return this._pairs.map(function(s) { + return n(s[0]) + "=" + n(s[1]); + }, "").join("&"); +}; +function Ht(e) { + return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); +} +function He(e, t, n) { + if (!t) + return e; + const r = n && n.encode || Ht, s = n && n.serialize; + let o; + if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new ue(t, n).toString(r), o) { + const i = e.indexOf("#"); + i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o; + } + return e; +} +class we { + 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 Me = { + silentJSONParsing: !0, + forcedJSONParsing: !0, + clarifyTimeoutError: !1 +}, Mt = typeof URLSearchParams < "u" ? URLSearchParams : ue, zt = typeof FormData < "u" ? FormData : null, Jt = typeof Blob < "u" ? Blob : null, Vt = { + isBrowser: !0, + classes: { + URLSearchParams: Mt, + FormData: zt, + Blob: Jt + }, + protocols: ["http", "https", "file", "blob", "url", "data"] +}, le = typeof window < "u" && typeof document < "u", re = typeof navigator == "object" && navigator || void 0, Wt = le && (!re || ["ReactNative", "NativeScript", "NS"].indexOf(re.product) < 0), $t = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef +self instanceof WorkerGlobalScope && typeof self.importScripts == "function", vt = le && window.location.href || "http://localhost", Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + hasBrowserEnv: le, + hasStandardBrowserEnv: Wt, + hasStandardBrowserWebWorkerEnv: $t, + navigator: re, + origin: vt +}, Symbol.toStringTag, { value: "Module" })), T = { + ...Kt, + ...Vt +}; +function Gt(e, t) { + return G(e, new T.classes.URLSearchParams(), Object.assign({ + visitor: function(n, r, s, o) { + return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments); + } + }, t)); +} +function Xt(e) { + return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]); +} +function Qt(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 ze(e) { + function t(n, r, s, o) { + let i = n[o++]; + if (i === "__proto__") return !0; + const c = Number.isFinite(+i), f = o >= n.length; + return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Qt(s[i])), !c); + } + if (a.isFormData(e) && a.isFunction(e.entries)) { + const n = {}; + return a.forEachEntry(e, (r, s) => { + t(Xt(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 (0, JSON.stringify)(e); +} +const H = { + transitional: Me, + adapter: ["xhr", "http", "fetch"], + 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(ze(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 (o) { + if (r.indexOf("application/x-www-form-urlencoded") > -1) + return Gt(t, this.formSerializer).toString(); + if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { + const f = this.env && this.env.FormData; + return G( + c ? { "files[]": t } : t, + f && new f(), + this.formSerializer + ); + } + } + return o || s ? (n.setContentType("application/json", !1), Zt(t)) : t; + }], + transformResponse: [function(t) { + const n = this.transitional || H.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json"; + if (a.isResponse(t) || a.isReadableStream(t)) + return t; + if (t && a.isString(t) && (r && !this.responseType || s)) { + const i = !(n && n.silentJSONParsing) && s; + try { + return JSON.parse(t); + } catch (c) { + if (i) + throw c.name === "SyntaxError" ? m.from(c, m.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: T.classes.FormData, + Blob: T.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) => { + H.headers[e] = {}; +}); +const Yt = 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" +]), en = (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] && Yt[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r); + }), t; +}, Ee = Symbol("internals"); +function j(e) { + return e && String(e).trim().toLowerCase(); +} +function J(e) { + return e === !1 || e == null ? e : a.isArray(e) ? e.map(J) : String(e); +} +function tn(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 nn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()); +function Z(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 rn(e) { + return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r); +} +function sn(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 A { + constructor(t) { + t && this.set(t); + } + set(t, n, r) { + const s = this; + function o(c, f, u) { + const l = j(f); + if (!l) + throw new Error("header name must be a non-empty string"); + const d = a.findKey(s, l); + (!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] = J(c)); + } + const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f)); + if (a.isPlainObject(t) || t instanceof this.constructor) + i(t, n); + else if (a.isString(t) && (t = t.trim()) && !nn(t)) + i(en(t), n); + else if (a.isHeaders(t)) + for (const [c, f] of t.entries()) + o(f, c, r); + else + t != null && o(n, t, r); + return this; + } + get(t, n) { + if (t = j(t), t) { + const r = a.findKey(this, t); + if (r) { + const s = this[r]; + if (!n) + return s; + if (n === !0) + return tn(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 = j(t), t) { + const r = a.findKey(this, t); + return !!(r && this[r] !== void 0 && (!n || Z(this, this[r], r, n))); + } + return !1; + } + delete(t, n) { + const r = this; + let s = !1; + function o(i) { + if (i = j(i), i) { + const c = a.findKey(r, i); + c && (!n || Z(r, r[c], c, n)) && (delete r[c], 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 || Z(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] = J(s), delete n[o]; + return; + } + const c = t ? rn(o) : String(o).trim(); + c !== o && delete n[o], n[c] = J(s), 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, 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[Ee] = this[Ee] = { + accessors: {} + }).accessors, s = this.prototype; + function o(i) { + const c = j(i); + r[c] || (sn(s, i), r[c] = !0); + } + return a.isArray(t) ? t.forEach(o) : o(t), this; + } +} +A.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]); +a.reduceDescriptors(A.prototype, ({ value: e }, t) => { + let n = t[0].toUpperCase() + t.slice(1); + return { + get: () => e, + set(r) { + this[n] = r; + } + }; +}); +a.freezeMethods(A); +function Y(e, t) { + const n = this || H, r = t || n, s = A.from(r.headers); + let o = r.data; + return a.forEach(e, function(c) { + o = c.call(n, o, s.normalize(), t ? t.status : void 0); + }), s.normalize(), o; +} +function Je(e) { + return !!(e && e.__CANCEL__); +} +function k(e, t, n) { + m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError"; +} +a.inherits(k, m, { + __CANCEL__: !0 +}); +function Ve(e, t, n) { + const r = n.config.validateStatus; + !n.status || !r || r(n.status) ? e(n) : t(new m( + "Request failed with status code " + n.status, + [m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], + n.config, + n.request, + n + )); +} +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(f) { + const u = Date.now(), l = r[o]; + i || (i = u), n[s] = f, r[s] = u; + let d = o, b = 0; + for (; d !== s; ) + b += n[d++], d = d % e; + if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t) + return; + const E = l && u - l; + return E ? Math.round(b * 1e3 / E) : void 0; + }; +} +function cn(e, t) { + let n = 0, r = 1e3 / t, s, o; + const i = (u, l = Date.now()) => { + n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u); + }; + return [(...u) => { + const l = Date.now(), d = l - n; + d >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => { + o = null, i(s); + }, r - d))); + }, () => s && i(s)]; +} +const V = (e, t, n = 3) => { + let r = 0; + const s = an(50, 250); + return cn((o) => { + const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c; + r = i; + const d = { + loaded: i, + total: c, + progress: c ? i / c : void 0, + bytes: f, + rate: u || void 0, + estimated: u && c && l ? (c - i) / u : void 0, + event: o, + lengthComputable: c != null, + [t ? "download" : "upload"]: !0 + }; + e(d); + }, n); +}, Se = (e, t) => { + const n = e != null; + return [(r) => t[0]({ + lengthComputable: n, + total: e, + loaded: r + }), t[1]]; +}, ge = (e) => (...t) => a.asap(() => e(...t)), un = T.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 = T.navigator && /(msie|trident)/i.test(T.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 c = a.isString(i) ? s(i) : i; + return c.protocol === r.protocol && c.host === r.host; + }; + }() +) : ( + // Non standard browser envs (web workers, react-native) lack needed support. + /* @__PURE__ */ function() { + return function() { + return !0; + }; + }() +), ln = T.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 fn(e) { + return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e); +} +function dn(e, t) { + return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e; +} +function We(e, t) { + return e && !fn(t) ? dn(e, t) : t; +} +const Re = (e) => e instanceof A ? { ...e } : e; +function D(e, t) { + t = t || {}; + const n = {}; + function r(u, l, d) { + return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: d }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l; + } + function s(u, l, d) { + if (a.isUndefined(l)) { + if (!a.isUndefined(u)) + return r(void 0, u, d); + } else return r(u, l, d); + } + function o(u, l) { + if (!a.isUndefined(l)) + return r(void 0, l); + } + function i(u, l) { + if (a.isUndefined(l)) { + if (!a.isUndefined(u)) + return r(void 0, u); + } else return r(void 0, l); + } + function c(u, l, d) { + if (d in t) + return r(u, l); + if (d in e) + return r(void 0, u); + } + const f = { + 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: c, + headers: (u, l) => s(Re(u), Re(l), !0) + }; + return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) { + const d = f[l] || s, b = d(e[l], t[l], l); + a.isUndefined(b) && d !== c || (n[l] = b); + }), n; +} +const $e = (e) => { + const t = D({}, e); + let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t; + t.headers = i = A.from(i), t.url = He(We(t.baseURL, t.url), 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 (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv) + i.setContentType(void 0); + else if ((f = i.getContentType()) !== !1) { + const [u, ...l] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : []; + i.setContentType([u || "multipart/form-data", ...l].join("; ")); + } + } + if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && un(t.url))) { + const u = s && o && ln.read(o); + u && i.set(s, u); + } + return t; +}, pn = typeof XMLHttpRequest < "u", hn = pn && function(e) { + return new Promise(function(n, r) { + const s = $e(e); + let o = s.data; + const i = A.from(s.headers).normalize(); + let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, d, b, E, p; + function y() { + E && E(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l); + } + let h = new XMLHttpRequest(); + h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout; + function w() { + if (!h) + return; + const R = A.from( + "getAllResponseHeaders" in h && h.getAllResponseHeaders() + ), O = { + data: !c || c === "text" || c === "json" ? h.responseText : h.response, + status: h.status, + statusText: h.statusText, + headers: R, + config: e, + request: h + }; + Ve(function(F) { + n(F), y(); + }, function(F) { + r(F), y(); + }, O), h = null; + } + "onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() { + !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w); + }, h.onabort = function() { + h && (r(new m("Request aborted", m.ECONNABORTED, e, h)), h = null); + }, h.onerror = function() { + r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null; + }, h.ontimeout = function() { + let P = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded"; + const O = s.transitional || Me; + s.timeoutErrorMessage && (P = s.timeoutErrorMessage), r(new m( + P, + O.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED, + e, + h + )), h = null; + }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(P, O) { + h.setRequestHeader(O, P); + }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([b, p] = V(u, !0), h.addEventListener("progress", b)), f && h.upload && ([d, E] = V(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (l = (R) => { + h && (r(!R || R.type ? new k(null, e, h) : R), h.abort(), h = null); + }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l))); + const S = on(s.url); + if (S && T.protocols.indexOf(S) === -1) { + r(new m("Unsupported protocol " + S + ":", m.ERR_BAD_REQUEST, e)); + return; + } + h.send(o || null); + }); +}, mn = (e, t) => { + const { length: n } = e = e ? e.filter(Boolean) : []; + if (t || n) { + let r = new AbortController(), s; + const o = function(u) { + if (!s) { + s = !0, c(); + const l = u instanceof Error ? u : this.reason; + r.abort(l instanceof m ? l : new k(l instanceof Error ? l.message : l)); + } + }; + let i = t && setTimeout(() => { + i = null, o(new m(`timeout ${t} of ms exceeded`, m.ETIMEDOUT)); + }, t); + const c = () => { + e && (i && clearTimeout(i), i = null, e.forEach((u) => { + u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o); + }), e = null); + }; + e.forEach((u) => u.addEventListener("abort", o)); + const { signal: f } = r; + return f.unsubscribe = () => a.asap(c), f; + } +}, yn = function* (e, t) { + let n = e.byteLength; + if (n < t) { + yield e; + return; + } + let r = 0, s; + for (; r < n; ) + s = r + t, yield e.slice(r, s), r = s; +}, bn = async function* (e, t) { + for await (const n of wn(e)) + yield* yn(n, t); +}, wn = 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(); + } +}, Oe = (e, t, n, r) => { + const s = bn(e, t); + let o = 0, i, c = (f) => { + i || (i = !0, r && r(f)); + }; + return new ReadableStream({ + async pull(f) { + try { + const { done: u, value: l } = await s.next(); + if (u) { + c(), f.close(); + return; + } + let d = l.byteLength; + if (n) { + let b = o += d; + n(b); + } + f.enqueue(new Uint8Array(l)); + } catch (u) { + throw c(u), u; + } + }, + cancel(f) { + return c(f), s.return(); + } + }, { + highWaterMark: 2 + }); +}, X = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ve = X && typeof ReadableStream == "function", En = X && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ke = (e, ...t) => { + try { + return !!e(...t); + } catch { + return !1; + } +}, Sn = ve && Ke(() => { + let e = !1; + const t = new Request(T.origin, { + body: new ReadableStream(), + method: "POST", + get duplex() { + return e = !0, "half"; + } + }).headers.has("Content-Type"); + return e && !t; +}), Te = 64 * 1024, se = ve && Ke(() => a.isReadableStream(new Response("").body)), W = { + stream: se && ((e) => e.body) +}; +X && ((e) => { + ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => { + !W[t] && (W[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => { + throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r); + }); + }); +})(new Response()); +const gn = async (e) => { + if (e == null) + return 0; + if (a.isBlob(e)) + return e.size; + if (a.isSpecCompliantForm(e)) + return (await new Request(T.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 En(e)).byteLength; +}, Rn = async (e, t) => { + const n = a.toFiniteNumber(e.getContentLength()); + return n ?? gn(t); +}, On = X && (async (e) => { + let { + url: t, + method: n, + data: r, + signal: s, + cancelToken: o, + timeout: i, + onDownloadProgress: c, + onUploadProgress: f, + responseType: u, + headers: l, + withCredentials: d = "same-origin", + fetchOptions: b + } = $e(e); + u = u ? (u + "").toLowerCase() : "text"; + let E = mn([s, o && o.toAbortSignal()], i), p; + const y = E && E.unsubscribe && (() => { + E.unsubscribe(); + }); + let h; + try { + if (f && Sn && n !== "get" && n !== "head" && (h = await Rn(l, r)) !== 0) { + let O = new Request(t, { + method: "POST", + body: r, + duplex: "half" + }), N; + if (a.isFormData(r) && (N = O.headers.get("content-type")) && l.setContentType(N), O.body) { + const [F, M] = Se( + h, + V(ge(f)) + ); + r = Oe(O.body, Te, F, M); + } + } + a.isString(d) || (d = d ? "include" : "omit"); + const w = "credentials" in Request.prototype; + p = new Request(t, { + ...b, + signal: E, + method: n.toUpperCase(), + headers: l.normalize().toJSON(), + body: r, + duplex: "half", + credentials: w ? d : void 0 + }); + let S = await fetch(p); + const R = se && (u === "stream" || u === "response"); + if (se && (c || R && y)) { + const O = {}; + ["status", "statusText", "headers"].forEach((pe) => { + O[pe] = S[pe]; + }); + const N = a.toFiniteNumber(S.headers.get("content-length")), [F, M] = c && Se( + N, + V(ge(c), !0) + ) || []; + S = new Response( + Oe(S.body, Te, F, () => { + M && M(), y && y(); + }), + O + ); + } + u = u || "text"; + let P = await W[a.findKey(W, u) || "text"](S, e); + return !R && y && y(), await new Promise((O, N) => { + Ve(O, N, { + data: P, + headers: A.from(S.headers), + status: S.status, + statusText: S.statusText, + config: e, + request: p + }); + }); + } catch (w) { + throw y && y(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign( + new m("Network Error", m.ERR_NETWORK, e, p), + { + cause: w.cause || w + } + ) : m.from(w, w && w.code, e, p); + } +}), oe = { + http: jt, + xhr: hn, + fetch: On +}; +a.forEach(oe, (e, t) => { + if (e) { + try { + Object.defineProperty(e, "name", { value: t }); + } catch { + } + Object.defineProperty(e, "adapterName", { value: t }); + } +}); +const Ae = (e) => `- ${e}`, Tn = (e) => a.isFunction(e) || e === null || e === !1, Ge = { + 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, !Tn(n) && (r = oe[(i = String(n)).toLowerCase()], r === void 0)) + throw new m(`Unknown adapter '${i}'`); + if (r) + break; + s[i || "#" + o] = r; + } + if (!r) { + const o = Object.entries(s).map( + ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build") + ); + let i = t ? o.length > 1 ? `since : +` + o.map(Ae).join(` +`) : " " + Ae(o[0]) : "as no adapter specified"; + throw new m( + "There is no suitable adapter to dispatch the request " + i, + "ERR_NOT_SUPPORT" + ); + } + return r; + }, + adapters: oe +}; +function ee(e) { + if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) + throw new k(null, e); +} +function xe(e) { + return ee(e), e.headers = A.from(e.headers), e.data = Y.call( + e, + e.transformRequest + ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ge.getAdapter(e.adapter || H.adapter)(e).then(function(r) { + return ee(e), r.data = Y.call( + e, + e.transformResponse, + r + ), r.headers = A.from(r.headers), r; + }, function(r) { + return Je(r) || (ee(e), r && r.response && (r.response.data = Y.call( + e, + e.transformResponse, + r.response + ), r.response.headers = A.from(r.response.headers))), Promise.reject(r); + }); +} +const Xe = "1.7.7", fe = {}; +["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => { + fe[e] = function(r) { + return typeof r === e || "a" + (t < 1 ? "n " : " ") + e; + }; +}); +const Ce = {}; +fe.transitional = function(t, n, r) { + function s(o, i) { + return "[Axios v" + Xe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : ""); + } + return (o, i, c) => { + if (t === !1) + throw new m( + s(i, " has been removed" + (n ? " in " + n : "")), + m.ERR_DEPRECATED + ); + return n && !Ce[i] && (Ce[i] = !0, console.warn( + s( + i, + " has been deprecated since v" + n + " and will be removed in the near future" + ) + )), t ? t(o, i, c) : !0; + }; +}; +function An(e, t, n) { + if (typeof e != "object") + throw new m("options must be an object", m.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 c = e[o], f = c === void 0 || i(c, o, e); + if (f !== !0) + throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE); + continue; + } + if (n !== !0) + throw new m("Unknown option " + o, m.ERR_BAD_OPTION); + } +} +const ie = { + assertOptions: An, + validators: fe +}, _ = ie.validators; +class B { + constructor(t) { + this.defaults = t, this.interceptors = { + request: new we(), + response: new we() + }; + } + /** + * 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/, "") : ""; + try { + r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += ` +` + o) : r.stack = o; + } catch { + } + } + throw r; + } + } + _request(t, n) { + typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = D(this.defaults, n); + const { transitional: r, paramsSerializer: s, headers: o } = n; + r !== void 0 && ie.assertOptions(r, { + silentJSONParsing: _.transitional(_.boolean), + forcedJSONParsing: _.transitional(_.boolean), + clarifyTimeoutError: _.transitional(_.boolean) + }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = { + serialize: s + } : ie.assertOptions(s, { + encode: _.function, + serialize: _.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"], + (p) => { + delete o[p]; + } + ), n.headers = A.concat(i, o); + 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 u = []; + this.interceptors.response.forEach(function(y) { + u.push(y.fulfilled, y.rejected); + }); + let l, d = 0, b; + if (!f) { + const p = [xe.bind(this), void 0]; + for (p.unshift.apply(p, c), p.push.apply(p, u), b = p.length, l = Promise.resolve(n); d < b; ) + l = l.then(p[d++], p[d++]); + return l; + } + b = c.length; + let E = n; + for (d = 0; d < b; ) { + const p = c[d++], y = c[d++]; + try { + E = p(E); + } catch (h) { + y.call(this, h); + break; + } + } + try { + l = xe.call(this, E); + } catch (p) { + return Promise.reject(p); + } + for (d = 0, b = u.length; d < b; ) + l = l.then(u[d++], u[d++]); + return l; + } + getUri(t) { + t = D(this.defaults, t); + const n = We(t.baseURL, t.url); + return He(n, t.params, t.paramsSerializer); + } +} +a.forEach(["delete", "get", "head", "options"], function(t) { + B.prototype[t] = function(n, r) { + return this.request(D(r || {}, { + method: t, + url: n, + data: (r || {}).data + })); + }; +}); +a.forEach(["post", "put", "patch"], function(t) { + function n(r) { + return function(o, i, c) { + return this.request(D(c || {}, { + method: t, + headers: r ? { + "Content-Type": "multipart/form-data" + } : {}, + url: o, + data: i + })); + }; + } + B.prototype[t] = n(), B.prototype[t + "Form"] = n(!0); +}); +class de { + 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((c) => { + r.subscribe(c), o = c; + }).then(s); + return i.cancel = function() { + r.unsubscribe(o); + }, i; + }, t(function(o, i, c) { + r.reason || (r.reason = new k(o, 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 de(function(s) { + t = s; + }), + cancel: t + }; + } +} +function xn(e) { + return function(n) { + return e.apply(null, n); + }; +} +function Cn(e) { + return a.isObject(e) && e.isAxiosError === !0; +} +const ae = { + 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(ae).forEach(([e, t]) => { + ae[t] = e; +}); +function Qe(e) { + const t = new B(e), n = Pe(B.prototype.request, t); + return a.extend(n, B.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) { + return Qe(D(e, s)); + }, n; +} +const g = Qe(H); +g.Axios = B; +g.CanceledError = k; +g.CancelToken = de; +g.isCancel = Je; +g.VERSION = Xe; +g.toFormData = G; +g.AxiosError = m; +g.Cancel = g.CanceledError; +g.all = function(t) { + return Promise.all(t); +}; +g.spread = xn; +g.isAxiosError = Cn; +g.mergeConfig = D; +g.AxiosHeaders = A; +g.formToJSON = (e) => ze(a.isHTMLForm(e) ? new FormData(e) : e); +g.getAdapter = Ge.getAdapter; +g.HttpStatusCode = ae; +g.default = g; +var Pn = /* @__PURE__ */ ((e) => (e.Primary = "Primary", e.Success = "Success", e.Warning = "Warning", e.Danger = "Danger", e))(Pn || {}); +export { + g as a, + Pn as b +}; diff --git a/dist/types-LD8tPu16.cjs b/dist/types-LD8tPu16.cjs new file mode 100644 index 0000000..c11326f --- /dev/null +++ b/dist/types-LD8tPu16.cjs @@ -0,0 +1,6 @@ +"use strict";function Pe(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ye}=Object.prototype,{getPrototypeOf:ce}=Object,$=(e=>t=>{const n=Ye.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>$(t)===e),v=e=>t=>typeof t===e,{isArray:U}=Array,q=v("undefined");function et(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ne=C("ArrayBuffer");function tt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ne(e.buffer),t}const nt=v("string"),x=v("function"),_e=v("number"),K=e=>e!==null&&typeof e=="object",rt=e=>e===!0||e===!1,z=e=>{if($(e)!=="object")return!1;const t=ce(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},st=C("Date"),ot=C("File"),it=C("Blob"),at=C("FileList"),ct=e=>K(e)&&x(e.pipe),ut=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||x(e.append)&&((t=$(e))==="formdata"||t==="object"&&x(e.toString)&&e.toString()==="[object FormData]"))},lt=C("URLSearchParams"),[ft,dt,pt,ht]=["ReadableStream","Request","Response","Headers"].map(C),mt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),U(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const L=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Le=e=>!q(e)&&e!==L;function te(){const{caseless:e}=Le(this)&&this||{},t={},n=(r,s)=>{const o=e&&Fe(t,s)||s;z(t[o])&&z(r)?t[o]=te(t[o],r):z(r)?t[o]=te({},r):U(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(I(t,(s,o)=>{n&&x(s)?e[o]=Pe(s,n):e[o]=s},{allOwnKeys:r}),e),bt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wt=(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)},Et=(e,t,n,r)=>{let s,o,i;const c={};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))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ce(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},St=(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},gt=e=>{if(!e)return null;if(U(e))return e;let t=e.length;if(!_e(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Rt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ce(Uint8Array)),Ot=(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])}},Tt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},At=C("HTMLFormElement"),xt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),he=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ct=C("RegExp"),Be=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I(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(x(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(x(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+"'")})}})},Nt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return U(e)?r(e):r(String(e).split(t)),n},_t=()=>{},Ft=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Q="abcdefghijklmnopqrstuvwxyz",me="0123456789",De={DIGIT:me,ALPHA:Q,ALPHA_DIGIT:Q+Q.toUpperCase()+me},Lt=(e=16,t=De.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Bt(e){return!!(e&&x(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Dt=e=>{const t=new Array(10),n=(r,s)=>{if(K(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=U(r)?[]:{};return I(r,(i,c)=>{const f=n(i,s+1);!q(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},Ut=C("AsyncFunction"),kt=e=>e&&(K(e)||x(e))&&x(e.then)&&x(e.catch),Ue=((e,t)=>e?setImmediate:t?((n,r)=>(L.addEventListener("message",({source:s,data:o})=>{s===L&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),L.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",x(L.postMessage)),jt=typeof queueMicrotask<"u"?queueMicrotask.bind(L):typeof process<"u"&&process.nextTick||Ue,a={isArray:U,isArrayBuffer:Ne,isBuffer:et,isFormData:ut,isArrayBufferView:tt,isString:nt,isNumber:_e,isBoolean:rt,isObject:K,isPlainObject:z,isReadableStream:ft,isRequest:dt,isResponse:pt,isHeaders:ht,isUndefined:q,isDate:st,isFile:ot,isBlob:it,isRegExp:Ct,isFunction:x,isStream:ct,isURLSearchParams:lt,isTypedArray:Rt,isFileList:at,forEach:I,merge:te,extend:yt,trim:mt,stripBOM:bt,inherits:wt,toFlatObject:Et,kindOf:$,kindOfTest:C,endsWith:St,toArray:gt,forEachEntry:Ot,matchAll:Tt,isHTMLForm:At,hasOwnProperty:he,hasOwnProp:he,reduceDescriptors:Be,freezeMethods:Pt,toObjectSet:Nt,toCamelCase:xt,noop:_t,toFiniteNumber:Ft,findKey:Fe,global:L,isContextDefined:Le,ALPHABET:De,generateString:Lt,isSpecCompliantForm:Bt,toJSONObject:Dt,isAsyncFn:Ut,isThenable:kt,setImmediate:Ue,asap:jt};function m(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,this.status=s.status?s.status:null)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const ke=m.prototype,je={};["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"].forEach(e=>{je[e]={value:e}});Object.defineProperties(m,je);Object.defineProperty(ke,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(ke);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const qt=null;function ne(e){return a.isPlainObject(e)||a.isArray(e)}function qe(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function ye(e,t,n){return e?e.concat(t).map(function(s,o){return s=qe(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function It(e){return a.isArray(e)&&!e.some(ne)}const Ht=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function G(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,h){return!a.isUndefined(h[y])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(!f&&a.isBlob(p))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,y,h){let w=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&It(p)||(a.isFileList(p)||a.endsWith(y,"[]"))&&(w=a.toArray(p)))return y=qe(y),w.forEach(function(R,P){!(a.isUndefined(R)||R===null)&&t.append(i===!0?ye([y],P,o):i===null?y:y+"[]",u(R))}),!1}return ne(p)?!0:(t.append(ye(h,y,o),u(p)),!1)}const d=[],b=Object.assign(Ht,{defaultVisitor:l,convertValue:u,isVisitable:ne});function S(p,y){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),a.forEach(p,function(w,g){(!(a.isUndefined(w)||w===null)&&s.call(t,w,a.isString(g)?g.trim():g,y,b))===!0&&S(w,y?y.concat(g):[g])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return S(e),t}function be(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ue(e,t){this._pairs=[],e&&G(e,this,t)}const Ie=ue.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,be)}:be;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Mt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function He(e,t,n){if(!t)return e;const r=n&&n.encode||Mt,s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new ue(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class we{constructor(){this.handlers=[]}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}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Me={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zt=typeof URLSearchParams<"u"?URLSearchParams:ue,Jt=typeof FormData<"u"?FormData:null,Vt=typeof Blob<"u"?Blob:null,Wt={isBrowser:!0,classes:{URLSearchParams:zt,FormData:Jt,Blob:Vt},protocols:["http","https","file","blob","url","data"]},le=typeof window<"u"&&typeof document<"u",re=typeof navigator=="object"&&navigator||void 0,$t=le&&(!re||["ReactNative","NativeScript","NS"].indexOf(re.product)<0),vt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kt=le&&window.location.href||"http://localhost",Gt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:le,hasStandardBrowserEnv:$t,hasStandardBrowserWebWorkerEnv:vt,navigator:re,origin:Kt},Symbol.toStringTag,{value:"Module"})),T={...Gt,...Wt};function Xt(e,t){return G(e,new T.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return T.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Qt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Zt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Zt(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Qt(r),s,n,0)}),n}return null}function Yt(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(0,JSON.stringify)(e)}const H={transitional:Me,adapter:["xhr","http","fetch"],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(ze(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(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Xt(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return G(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Yt(t)):t}],transformResponse:[function(t){const n=this.transitional||H.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:T.classes.FormData,Blob:T.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=>{H.headers[e]={}});const en=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"]),tn=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]&&en[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ee=Symbol("internals");function j(e){return e&&String(e).trim().toLowerCase()}function J(e){return e===!1||e==null?e:a.isArray(e)?e.map(J):String(e)}function nn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const rn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Z(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 sn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function on(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 A{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,u){const l=j(f);if(!l)throw new Error("header name must be a non-empty string");const d=a.findKey(s,l);(!d||s[d]===void 0||u===!0||u===void 0&&s[d]!==!1)&&(s[d||f]=J(c))}const i=(c,f)=>a.forEach(c,(u,l)=>o(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!rn(t))i(tn(t),n);else if(a.isHeaders(t))for(const[c,f]of t.entries())o(f,c,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=j(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return nn(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=j(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Z(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=j(i),i){const c=a.findKey(r,i);c&&(!n||Z(r,r[c],c,n))&&(delete r[c],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||Z(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]=J(s),delete n[o];return}const c=t?sn(o):String(o).trim();c!==o&&delete n[o],n[c]=J(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=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[Ee]=this[Ee]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=j(i);r[c]||(on(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(A.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(A);function Y(e,t){const n=this||H,r=t||n,s=A.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Je(e){return!!(e&&e.__CANCEL__)}function k(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(k,m,{__CANCEL__:!0});function Ve(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function an(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cn(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(f){const u=Date.now(),l=r[o];i||(i=u),n[s]=f,r[s]=u;let d=o,b=0;for(;d!==s;)b+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i{n=l,s=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),d=l-n;d>=r?i(u,l):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-d)))},()=>s&&i(s)]}const V=(e,t,n=3)=>{let r=0;const s=cn(50,250);return un(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-r,u=s(f),l=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-i)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},Se=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ge=e=>(...t)=>a.asap(()=>e(...t)),ln=T.hasStandardBrowserEnv?function(){const t=T.navigator&&/(msie|trident)/i.test(T.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 c=a.isString(i)?s(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),fn=T.hasStandardBrowserEnv?{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)}}:{write(){},read(){return null},remove(){}};function dn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function We(e,t){return e&&!dn(t)?pn(e,t):t}const Re=e=>e instanceof A?{...e}:e;function D(e,t){t=t||{};const n={};function r(u,l,d){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:d},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,d){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,d)}else return r(u,l,d)}function o(u,l){if(!a.isUndefined(l))return r(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function c(u,l,d){if(d in t)return r(u,l);if(d in e)return r(void 0,u)}const f={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:c,headers:(u,l)=>s(Re(u),Re(l),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=f[l]||s,b=d(e[l],t[l],l);a.isUndefined(b)&&d!==c||(n[l]=b)}),n}const $e=e=>{const t=D({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=A.from(i),t.url=He(We(t.baseURL,t.url),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(T.hasStandardBrowserEnv||T.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...l]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...l].join("; "))}}if(T.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&ln(t.url))){const u=s&&o&&fn.read(o);u&&i.set(s,u)}return t},hn=typeof XMLHttpRequest<"u",mn=hn&&function(e){return new Promise(function(n,r){const s=$e(e);let o=s.data;const i=A.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,d,b,S,p;function y(){S&&S(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function w(){if(!h)return;const R=A.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),O={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:R,config:e,request:h};Ve(function(F){n(F),y()},function(F){r(F),y()},O),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new m("Request aborted",m.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const O=s.transitional||Me;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new m(P,O.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(P,O){h.setRequestHeader(O,P)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),u&&([b,p]=V(u,!0),h.addEventListener("progress",b)),f&&h.upload&&([d,S]=V(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",S)),(s.cancelToken||s.signal)&&(l=R=>{h&&(r(!R||R.type?new k(null,e,h):R),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const g=an(s.url);if(g&&T.protocols.indexOf(g)===-1){r(new m("Unsupported protocol "+g+":",m.ERR_BAD_REQUEST,e));return}h.send(o||null)})},yn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;r.abort(l instanceof m?l:new k(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new m(`timeout ${t} of ms exceeded`,m.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},bn=function*(e,t){let n=e.byteLength;if(n{const s=wn(e,t);let o=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let d=l.byteLength;if(n){let b=o+=d;n(b)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},X=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ve=X&&typeof ReadableStream=="function",Sn=X&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ke=(e,...t)=>{try{return!!e(...t)}catch{return!1}},gn=ve&&Ke(()=>{let e=!1;const t=new Request(T.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Te=64*1024,se=ve&&Ke(()=>a.isReadableStream(new Response("").body)),W={stream:se&&(e=>e.body)};X&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!W[t]&&(W[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new m(`Response type '${t}' is not supported`,m.ERR_NOT_SUPPORT,r)})})})(new Response);const Rn=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(T.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 Sn(e)).byteLength},On=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Rn(t)},Tn=X&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:b}=$e(e);u=u?(u+"").toLowerCase():"text";let S=yn([s,o&&o.toAbortSignal()],i),p;const y=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let h;try{if(f&&gn&&n!=="get"&&n!=="head"&&(h=await On(l,r))!==0){let O=new Request(t,{method:"POST",body:r,duplex:"half"}),N;if(a.isFormData(r)&&(N=O.headers.get("content-type"))&&l.setContentType(N),O.body){const[F,M]=Se(h,V(ge(f)));r=Oe(O.body,Te,F,M)}}a.isString(d)||(d=d?"include":"omit");const w="credentials"in Request.prototype;p=new Request(t,{...b,signal:S,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:w?d:void 0});let g=await fetch(p);const R=se&&(u==="stream"||u==="response");if(se&&(c||R&&y)){const O={};["status","statusText","headers"].forEach(pe=>{O[pe]=g[pe]});const N=a.toFiniteNumber(g.headers.get("content-length")),[F,M]=c&&Se(N,V(ge(c),!0))||[];g=new Response(Oe(g.body,Te,F,()=>{M&&M(),y&&y()}),O)}u=u||"text";let P=await W[a.findKey(W,u)||"text"](g,e);return!R&&y&&y(),await new Promise((O,N)=>{Ve(O,N,{data:P,headers:A.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:p})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,e,p),{cause:w.cause||w}):m.from(w,w&&w.code,e,p)}}),oe={http:qt,xhr:mn,fetch:Tn};a.forEach(oe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ae=e=>`- ${e}`,An=e=>a.isFunction(e)||e===null||e===!1,Ge={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.map(Ae).join(` +`):" "+Ae(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:oe};function ee(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k(null,e)}function xe(e){return ee(e),e.headers=A.from(e.headers),e.data=Y.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ge.getAdapter(e.adapter||H.adapter)(e).then(function(r){return ee(e),r.data=Y.call(e,e.transformResponse,r),r.headers=A.from(r.headers),r},function(r){return Je(r)||(ee(e),r&&r.response&&(r.response.data=Y.call(e,e.transformResponse,r.response),r.response.headers=A.from(r.response.headers))),Promise.reject(r)})}const Xe="1.7.7",fe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ce={};fe.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Xe+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!Ce[i]&&(Ce[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function xn(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.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 c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new m("option "+o+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const ie={assertOptions:xn,validators:fe},_=ie.validators;class B{constructor(t){this.defaults=t,this.interceptors={request:new we,response:new we}}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/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=D(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&ie.assertOptions(r,{silentJSONParsing:_.transitional(_.boolean),forcedJSONParsing:_.transitional(_.boolean),clarifyTimeoutError:_.transitional(_.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:ie.assertOptions(s,{encode:_.function,serialize:_.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"],p=>{delete o[p]}),n.headers=A.concat(i,o);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 u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let l,d=0,b;if(!f){const p=[xe.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,u),b=p.length,l=Promise.resolve(n);d{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(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new k(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}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}static source(){let t;return{token:new de(function(s){t=s}),cancel:t}}}function Cn(e){return function(n){return e.apply(null,n)}}function Pn(e){return a.isObject(e)&&e.isAxiosError===!0}const ae={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(ae).forEach(([e,t])=>{ae[t]=e});function Qe(e){const t=new B(e),n=Pe(B.prototype.request,t);return a.extend(n,B.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Qe(D(e,s))},n}const E=Qe(H);E.Axios=B;E.CanceledError=k;E.CancelToken=de;E.isCancel=Je;E.VERSION=Xe;E.toFormData=G;E.AxiosError=m;E.Cancel=E.CanceledError;E.all=function(t){return Promise.all(t)};E.spread=Cn;E.isAxiosError=Pn;E.mergeConfig=D;E.AxiosHeaders=A;E.formToJSON=e=>ze(a.isHTMLForm(e)?new FormData(e):e);E.getAdapter=Ge.getAdapter;E.HttpStatusCode=ae;E.default=E;var Ze=(e=>(e.Primary="Primary",e.Success="Success",e.Warning="Warning",e.Danger="Danger",e))(Ze||{});exports.a=Ze;exports.axios=E; diff --git a/dist/views/Group/GroupInfo.vue.d.ts b/dist/views/Group/GroupInfo.vue.d.ts new file mode 100644 index 0000000..a3dbcde --- /dev/null +++ b/dist/views/Group/GroupInfo.vue.d.ts @@ -0,0 +1,7 @@ +import { GroupApi } from '../../composable/group'; +declare const _default: import('vue').DefineComponent<{ + group: GroupApi; +}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{ + group: GroupApi; +}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; +export default _default; diff --git a/dist/views/Group/GroupUsers.vue.d.ts b/dist/views/Group/GroupUsers.vue.d.ts new file mode 100644 index 0000000..4982d4f --- /dev/null +++ b/dist/views/Group/GroupUsers.vue.d.ts @@ -0,0 +1,6 @@ +declare const _default: import('vue').DefineComponent<{ + slug: string; +}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{ + slug: string; +}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; +export default _default; diff --git a/package-lock.json b/package-lock.json index 189ca4d..9dd540f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -80,12 +80,12 @@ } }, "node_modules/@babel/parser": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.7.tgz", - "integrity": "sha512-aZn7ETtQsjjGG5HruveUK06cU3Hljuhd9Iojm4M8WWv3wLE6OkE5PWbDUkItmMgegmccaITudyuW5RPYrYlgWw==", + "version": "7.25.8", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.8.tgz", + "integrity": "sha512-HcttkxzdPucv3nNFmfOOMfFf64KgdJVqm1KaCm25dPGMLElo9nsLvXeJECQg8UzPuBGLyTSA0ZzqCtDSzKTEoQ==", "license": "MIT", "dependencies": { - "@babel/types": "^7.25.7" + "@babel/types": "^7.25.8" }, "bin": { "parser": "bin/babel-parser.js" @@ -95,9 +95,9 @@ } }, "node_modules/@babel/types": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.7.tgz", - "integrity": "sha512-vwIVdXG+j+FOpkwqHRcBgHLYNL7XMkufrlaFvL9o6Ai9sJn9+PdyIL5qa0XzTZw084c+u9LOls53eoZWP/W5WQ==", + "version": "7.25.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.8.tgz", + "integrity": "sha512-JWtuCu8VQsMladxVz/P4HzHUGCAwpuqacmowgXFs5XjxIgKuNjnLokQzuVjlTvIzODaDmpjT3oxcC48vyk9EWg==", "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.7", @@ -1647,7 +1647,7 @@ }, "node_modules/@userfrosting/sprinkle-account": { "version": "6.0.0", - "resolved": "git+ssh://git@github.com/userfrosting/sprinkle-account.git#a6d010c49eef825719b255fd511933f0dbdc2d6d", + "resolved": "git+ssh://git@github.com/userfrosting/sprinkle-account.git#970be8adc66ecdb0ffa63a55242406e0452139ac", "license": "MIT", "peer": true, "funding": { @@ -1664,7 +1664,7 @@ }, "node_modules/@userfrosting/sprinkle-core": { "version": "6.0.0", - "resolved": "git+ssh://git@github.com/userfrosting/sprinkle-core.git#45f3c7ecb79480952946da2000290e0c2588ead7", + "resolved": "git+ssh://git@github.com/userfrosting/sprinkle-core.git#d2ad5dfd670157643b6c1587e7b1dad35b627fae", "license": "MIT", "peer": true, "dependencies": { @@ -1865,39 +1865,39 @@ } }, "node_modules/@vue/compiler-core": { - "version": "3.5.11", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.11.tgz", - "integrity": "sha512-PwAdxs7/9Hc3ieBO12tXzmTD+Ln4qhT/56S+8DvrrZ4kLDn4Z/AMUr8tXJD0axiJBS0RKIoNaR0yMuQB9v9Udg==", + "version": "3.5.12", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.12.tgz", + "integrity": "sha512-ISyBTRMmMYagUxhcpyEH0hpXRd/KqDU4ymofPgl2XAkY9ZhQ+h0ovEZJIiPop13UmR/54oA2cgMDjgroRelaEw==", "license": "MIT", "dependencies": { "@babel/parser": "^7.25.3", - "@vue/shared": "3.5.11", + "@vue/shared": "3.5.12", "entities": "^4.5.0", "estree-walker": "^2.0.2", "source-map-js": "^1.2.0" } }, "node_modules/@vue/compiler-dom": { - "version": "3.5.11", - "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.11.tgz", - "integrity": "sha512-pyGf8zdbDDRkBrEzf8p7BQlMKNNF5Fk/Cf/fQ6PiUz9at4OaUfyXW0dGJTo2Vl1f5U9jSLCNf0EZJEogLXoeew==", + "version": "3.5.12", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.12.tgz", + "integrity": "sha512-9G6PbJ03uwxLHKQ3P42cMTi85lDRvGLB2rSGOiQqtXELat6uI4n8cNz9yjfVHRPIu+MsK6TE418Giruvgptckg==", "license": "MIT", "dependencies": { - "@vue/compiler-core": "3.5.11", - "@vue/shared": "3.5.11" + "@vue/compiler-core": "3.5.12", + "@vue/shared": "3.5.12" } }, "node_modules/@vue/compiler-sfc": { - "version": "3.5.11", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.11.tgz", - "integrity": "sha512-gsbBtT4N9ANXXepprle+X9YLg2htQk1sqH/qGJ/EApl+dgpUBdTv3yP7YlR535uHZY3n6XaR0/bKo0BgwwDniw==", + "version": "3.5.12", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.12.tgz", + "integrity": "sha512-2k973OGo2JuAa5+ZlekuQJtitI5CgLMOwgl94BzMCsKZCX/xiqzJYzapl4opFogKHqwJk34vfsaKpfEhd1k5nw==", "license": "MIT", "dependencies": { "@babel/parser": "^7.25.3", - "@vue/compiler-core": "3.5.11", - "@vue/compiler-dom": "3.5.11", - "@vue/compiler-ssr": "3.5.11", - "@vue/shared": "3.5.11", + "@vue/compiler-core": "3.5.12", + "@vue/compiler-dom": "3.5.12", + "@vue/compiler-ssr": "3.5.12", + "@vue/shared": "3.5.12", "estree-walker": "^2.0.2", "magic-string": "^0.30.11", "postcss": "^8.4.47", @@ -1905,13 +1905,13 @@ } }, "node_modules/@vue/compiler-ssr": { - "version": "3.5.11", - "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.11.tgz", - "integrity": "sha512-P4+GPjOuC2aFTk1Z4WANvEhyOykcvEd5bIj2KVNGKGfM745LaXGr++5njpdBTzVz5pZifdlR1kpYSJJpIlSePA==", + "version": "3.5.12", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.12.tgz", + "integrity": "sha512-eLwc7v6bfGBSM7wZOGPmRavSWzNFF6+PdRhE+VFJhNCgHiF8AM7ccoqcv5kBXA2eWUfigD7byekvf/JsOfKvPA==", "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.5.11", - "@vue/shared": "3.5.11" + "@vue/compiler-dom": "3.5.12", + "@vue/shared": "3.5.12" } }, "node_modules/@vue/compiler-vue2": { @@ -1997,53 +1997,53 @@ } }, "node_modules/@vue/reactivity": { - "version": "3.5.11", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.11.tgz", - "integrity": "sha512-Nqo5VZEn8MJWlCce8XoyVqHZbd5P2NH+yuAaFzuNSR96I+y1cnuUiq7xfSG+kyvLSiWmaHTKP1r3OZY4mMD50w==", + "version": "3.5.12", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.12.tgz", + "integrity": "sha512-UzaN3Da7xnJXdz4Okb/BGbAaomRHc3RdoWqTzlvd9+WBR5m3J39J1fGcHes7U3za0ruYn/iYy/a1euhMEHvTAg==", "license": "MIT", "dependencies": { - "@vue/shared": "3.5.11" + "@vue/shared": "3.5.12" } }, "node_modules/@vue/runtime-core": { - "version": "3.5.11", - "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.11.tgz", - "integrity": "sha512-7PsxFGqwfDhfhh0OcDWBG1DaIQIVOLgkwA5q6MtkPiDFjp5gohVnJEahSktwSFLq7R5PtxDKy6WKURVN1UDbzA==", + "version": "3.5.12", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.12.tgz", + "integrity": "sha512-hrMUYV6tpocr3TL3Ad8DqxOdpDe4zuQY4HPY3X/VRh+L2myQO8MFXPAMarIOSGNu0bFAjh1yBkMPXZBqCk62Uw==", "license": "MIT", "dependencies": { - "@vue/reactivity": "3.5.11", - "@vue/shared": "3.5.11" + "@vue/reactivity": "3.5.12", + "@vue/shared": "3.5.12" } }, "node_modules/@vue/runtime-dom": { - "version": "3.5.11", - "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.11.tgz", - "integrity": "sha512-GNghjecT6IrGf0UhuYmpgaOlN7kxzQBhxWEn08c/SQDxv1yy4IXI1bn81JgEpQ4IXjRxWtPyI8x0/7TF5rPfYQ==", + "version": "3.5.12", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.12.tgz", + "integrity": "sha512-q8VFxR9A2MRfBr6/55Q3umyoN7ya836FzRXajPB6/Vvuv0zOPL+qltd9rIMzG/DbRLAIlREmnLsplEF/kotXKA==", "license": "MIT", "dependencies": { - "@vue/reactivity": "3.5.11", - "@vue/runtime-core": "3.5.11", - "@vue/shared": "3.5.11", + "@vue/reactivity": "3.5.12", + "@vue/runtime-core": "3.5.12", + "@vue/shared": "3.5.12", "csstype": "^3.1.3" } }, "node_modules/@vue/server-renderer": { - "version": "3.5.11", - "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.11.tgz", - "integrity": "sha512-cVOwYBxR7Wb1B1FoxYvtjJD8X/9E5nlH4VSkJy2uMA1MzYNdzAAB//l8nrmN9py/4aP+3NjWukf9PZ3TeWULaA==", + "version": "3.5.12", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.12.tgz", + "integrity": "sha512-I3QoeDDeEPZm8yR28JtY+rk880Oqmj43hreIBVTicisFTx/Dl7JpG72g/X7YF8hnQD3IFhkky5i2bPonwrTVPg==", "license": "MIT", "dependencies": { - "@vue/compiler-ssr": "3.5.11", - "@vue/shared": "3.5.11" + "@vue/compiler-ssr": "3.5.12", + "@vue/shared": "3.5.12" }, "peerDependencies": { - "vue": "3.5.11" + "vue": "3.5.12" } }, "node_modules/@vue/shared": { - "version": "3.5.11", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.11.tgz", - "integrity": "sha512-W8GgysJVnFo81FthhzurdRAWP/byq3q2qIw70e0JWblzVhjgOMiC2GyovXrZTFQJnFVryYaKGP3Tc9vYzYm6PQ==", + "version": "3.5.12", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.12.tgz", + "integrity": "sha512-L2RPSAwUFbgZH20etwrXyVyCBu9OxRSi8T/38QsvnkJyvq2LufW2lDCOzm7t/U9C1mkhJGWYfCuFBCmIuNivrg==", "license": "MIT" }, "node_modules/@vue/test-utils": { @@ -2812,9 +2812,9 @@ } }, "node_modules/eslint-plugin-vue": { - "version": "9.28.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.28.0.tgz", - "integrity": "sha512-ShrihdjIhOTxs+MfWun6oJWuk+g/LAhN+CiuOl/jjkG3l0F2AuK5NMTaWqyvBgkFtpYmyks6P4603mLmhNJW8g==", + "version": "9.29.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.29.0.tgz", + "integrity": "sha512-hamyjrBhNH6Li6R1h1VF9KHfshJlKgKEg3ARbGTn72CMNDSMhWbgC7NdkRDEh25AFW+4SDATzyNM+3gWuZii8g==", "dev": true, "license": "MIT", "dependencies": { @@ -3161,9 +3161,9 @@ } }, "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", + "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", "license": "MIT", "peer": true, "dependencies": { @@ -3924,9 +3924,9 @@ "license": "ISC" }, "node_modules/magic-string": { - "version": "0.30.11", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.11.tgz", - "integrity": "sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==", + "version": "0.30.12", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.12.tgz", + "integrity": "sha512-Ea8I3sQMVXr8JhN4z+H/d8zwo+tYDgHE9+5G4Wnrwhs0gaK9fXTKx0Tw5Xwsd/bCPTTZNRAdpyzvoeORe9LYpw==", "license": "MIT", "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0" @@ -4564,14 +4564,14 @@ } }, "node_modules/pkg-types": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.2.0.tgz", - "integrity": "sha512-+ifYuSSqOQ8CqP4MbZA5hDpb97n3E8SVWdJe+Wms9kj745lmd3b7EZJiqvmLwAlmRfjrI7Hi5z3kdBJ93lFNPA==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.2.1.tgz", + "integrity": "sha512-sQoqa8alT3nHjGuTjuKgOnvjo4cljkufdtLMnO2LBP/wRwuDlo1tkaEdMxCRhyGRPacv/ztlZgDPm2b7FAmEvw==", "dev": true, "license": "MIT", "dependencies": { - "confbox": "^0.1.7", - "mlly": "^1.7.1", + "confbox": "^0.1.8", + "mlly": "^1.7.2", "pathe": "^1.1.2" } }, @@ -5425,9 +5425,9 @@ } }, "node_modules/typescript": { - "version": "5.6.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", - "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", + "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", "devOptional": true, "license": "Apache-2.0", "peer": true, @@ -5564,9 +5564,9 @@ } }, "node_modules/vite-plugin-dts": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/vite-plugin-dts/-/vite-plugin-dts-4.2.3.tgz", - "integrity": "sha512-O5NalzHANQRwVw1xj8KQun3Bv8OSDAlNJXrnqoAz10BOuW8FVvY5g4ygj+DlJZL5mtSPuMu9vd3OfrdW5d4k6w==", + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/vite-plugin-dts/-/vite-plugin-dts-4.2.4.tgz", + "integrity": "sha512-REcYoxO90Pi8c0P1J7XAa/nVwNVGkX2eYkBEIfFSfcKE4g1W8sB0R23a7SU3aLEMfdOdb0SVHq3JlJ+Qb6gjgA==", "dev": true, "license": "MIT", "dependencies": { @@ -5667,16 +5667,16 @@ "license": "MIT" }, "node_modules/vue": { - "version": "3.5.11", - "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.11.tgz", - "integrity": "sha512-/8Wurrd9J3lb72FTQS7gRMNQD4nztTtKPmuDuPuhqXmmpD6+skVjAeahNpVzsuky6Sy9gy7wn8UadqPtt9SQIg==", + "version": "3.5.12", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.12.tgz", + "integrity": "sha512-CLVZtXtn2ItBIi/zHZ0Sg1Xkb7+PU32bJJ8Bmy7ts3jxXTcbfsEfBivFYYWz1Hur+lalqGAh65Coin0r+HRUfg==", "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.5.11", - "@vue/compiler-sfc": "3.5.11", - "@vue/runtime-dom": "3.5.11", - "@vue/server-renderer": "3.5.11", - "@vue/shared": "3.5.11" + "@vue/compiler-dom": "3.5.12", + "@vue/compiler-sfc": "3.5.12", + "@vue/runtime-dom": "3.5.12", + "@vue/server-renderer": "3.5.12", + "@vue/shared": "3.5.12" }, "peerDependencies": { "typescript": "*" diff --git a/vite.config.ts b/vite.config.ts index fed503b..eef88db 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,5 +1,5 @@ /// -import {configDefaults } from 'vitest/config' +import { configDefaults } from 'vitest/config' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import dts from 'vite-plugin-dts' @@ -41,8 +41,8 @@ export default defineConfig({ }, environment: 'happy-dom', exclude: [ - ...configDefaults.exclude, + ...configDefaults.exclude, './vendor/**/*.*', - ], + ], } })