UNPKG

epps

Version:

Enhances Pinia stores with advanced features such as persistence, encryption, and store extension. Simplifies state management and ensures data security for Vue.js and Nuxt applications.

1,752 lines (1,751 loc) 73.5 kB
var je = Object.defineProperty; var Me = (e, t, s) => t in e ? je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s; var h = (e, t, s) => Me(e, typeof t != "symbol" ? t + "" : t, s); import { defineStore as gt } from "pinia"; class Qt { constructor(t, s) { h(this, "_storeConstructor"); h(this, "_id"); this._storeConstructor = s, this._id = t; } get id() { return this._id; } build(t) { return t = t ? `${t.substring(0, 1)}${t.substring(1)}` : "", this._storeConstructor(`${this._id}${t}`); } } const L = class L { constructor(t) { h(this, "_encoder", new TextEncoder()); h(this, "_key"); h(this, "_materialKey"); this._key = t; } async getKey(t) { return await crypto.subtle.deriveKey( { name: "PBKDF2", salt: this._encoder.encode("salt"), iterations: 1e5, hash: "SHA-256" }, this._materialKey, { name: "AES-GCM", length: 256 }, !1, [t] ); } async setKeyMaterial(t) { this._materialKey = await crypto.subtle.importKey( "raw", this._encoder.encode(t), { name: "PBKDF2" }, !1, ["deriveKey"] ); } /** * Decrypt string passed in parameter * @param {string} item - encrypted string * @returns {string} decrypted item */ async decrypt(t) { const [s, r] = t.split(":"), n = await crypto.subtle.decrypt( { name: "AES-GCM", iv: Uint8Array.from(atob(s), (i) => i.charCodeAt(0)) }, await this.getKey(L.DECRYPT), Uint8Array.from(atob(r), (i) => i.charCodeAt(0)) ); return new TextDecoder().decode(n); } /** * Encrypt string passed in parameter * @param {string} item * @returns {Promise<string>} encrypted item */ async encrypt(t) { const s = crypto.getRandomValues(new Uint8Array(12)), r = await crypto.subtle.encrypt( { name: "AES-GCM", iv: s }, await this.getKey(L.ENCRYPT), this._encoder.encode(t) ); return btoa(String.fromCharCode(...new Uint8Array(s))) + ":" + btoa(String.fromCharCode(...new Uint8Array(r))); } async init() { this._materialKey || await this.setKeyMaterial(this._key); } }; h(L, "DECRYPT", "decrypt"), h(L, "ENCRYPT", "encrypt"); let ct = L; const He = "Epps!", Bt = (e, t = "white") => `background-color: ${e}; color: ${t}; padding: 1px; margin-right: 5px; font-size: 12px`; function Fe(e, t, s) { if (!t) throw new Error("Style instructions are required"); console.log( "%c%s", t, e, s ); } function Vt(e, t, s) { const r = s ? Bt(s.bgColor, s.color) : Bt("#ffec73", "green"); e = ` [${(s == null ? void 0 : s.icon) ?? "🍍⚡"} ${He} plugin] - ${e} `, Fe( e, r, t ); } function V(e, t) { Vt(e, t, { bgColor: "#d24545", color: "white", icon: "🍍⚠️" }); } class Ke { constructor(t) { h(this, "_storage"); this._storage = t === "localStorage" ? localStorage : sessionStorage; } clear() { this._storage.clear(); } async getItem(t) { return new Promise((s, r) => { const n = this._storage.getItem(t.toString()); s(n ? JSON.parse(n) : void 0); }); } removeItem(t) { this._storage.removeItem(t.toString()); } removeItems(t) { for (let s = 0; s < this._storage.length; s++) { const r = this._storage.key(s); r && (!t || !t.includes(r)) && this._storage.removeItem(r); } } setItem(t, s) { this._storage.setItem(s, JSON.stringify(t)); } } let Wt = class { constructor(t, s, r) { h(this, "_db"); h(this, "_localStorageVersionKey", "IDBVersion"); h(this, "_name", "persistStore"); h(this, "_objectStore"); h(this, "_objectStoreOptions"); h(this, "_objectStoreName"); h(this, "_transactionMode", "readwrite"); h(this, "_version"); this._objectStoreName = t, this._version = this.getStoredVersionNumber(), s && (this._objectStoreOptions = s), r && (this._transactionMode = r); } clear() { const t = () => { if (this._objectStore) { const s = this._objectStore.clear(); this.requestEventsHandler(s, { error: () => this.onError(s.error) }); } }; this.open({ success: t }); } createObjectStore() { this._db && !this._db.objectStoreNames.contains(this._objectStoreName) && this._db.createObjectStore(this._objectStoreName, this._objectStoreOptions); } deleteObjectStore() { const t = () => { var s; (s = this._db) == null || s.deleteObjectStore(this._objectStoreName); }; this.open({ success: t }); } async getItem(t) { return new Promise((s) => { const r = () => { if (this._objectStore) { const n = this._objectStore.get(t); this.requestEventsHandler(n, { error: () => this.onError( n.error, () => s(void 0) ), success: () => s(n.result) }); } }; this.open({ success: r }); }); } async getObjectStoreItem(t, s) { return new Promise((r) => { const n = () => { if (this._objectStore) { const o = this._objectStore.index(t).get(s); this.requestEventsHandler(o, { error: () => r(void 0), success: () => r(o.result) }); } }; this.open({ success: n }); }); } getStoredVersionNumber() { if (!localStorage) return 1; const t = localStorage.getItem(this._localStorageVersionKey); return t ? parseInt(t) : 1; } handleDeleteRequest(t, s) { t.onerror = () => V(`IndexedDB - Item "${s}" remove`, t.error); } onError(t, s) { s && s(t); } open(t) { const s = indexedDB.open(this._name, this._version), r = () => { this._db = s.result; }, n = (o) => { try { if (r(), !this._db) return; const c = this._db.transaction(this._objectStoreName, this._transactionMode); c.onerror = () => this.onError(c.error), this._objectStore = c.objectStore(this._objectStoreName), this._objectStore && o(); } catch (c) { V("indexedDB - transaction error", [c]); } }; if (t != null && t.success) { const o = t.success; t.success = () => n(o); } if (t != null && t.upgrade) { const o = t.upgrade.bind(this); t.upgrade = () => { r(), o(); }; } const i = () => { const o = (c) => { if ((c == null ? void 0 : c.name) === "VersionError") { this._version++, this.saveVersion(), this.open(t); return; } t != null && t.error && t.error(c); }; this.onError(s.error, o); }; return t && this.openRequestEventsHandler(s, { ...t, error: i }), s; } openRequestEventsHandler(t, s) { this.requestEventsHandler(t, s), s.upgrade && (t.onupgradeneeded = s.upgrade); } removeItem(t) { const s = () => { if (this._objectStore) { const r = this._objectStore.delete(t); this.handleDeleteRequest(r, t); } }; this.open({ success: s }); } removeItems(t) { const s = () => { if (this._objectStore) { const r = this._objectStore.getAllKeys(), n = () => { r.result.forEach((c) => { if (this._objectStore && (!t || !t.includes(c))) { const a = this._objectStore.delete(c); this.handleDeleteRequest(a, c); } }); }, i = () => V("IndexedDB - removeItems", [r.error]); this.requestEventsHandler(r, { error: i, success: n }); } }; this.open({ success: s }); } requestEventsHandler(t, s) { const { error: r, success: n } = s; r && (t.onerror = r), n && (t.onsuccess = n); } saveVersion() { localStorage && localStorage.setItem(this._localStorageVersionKey, this._version.toString()); } setItem(t, s) { const r = () => { if (this._objectStore) { const i = this._objectStore.add(t); if (s) { const o = () => { s.forEach((a) => { var l; (l = this._objectStore) == null || l.createIndex(a, a, { unique: !0 }), Vt(`"${a}" index created`); }); }, c = () => this.onError(i.error); this.requestEventsHandler(i, { error: c, success: o }); } } }, n = this.createObjectStore; this.open({ success: r, upgrade: n }); } updateItem(t) { const s = () => { if (this._objectStore) { const r = this._objectStore.put(t); r.onerror = () => V("update item", [r.error, t]); } }; this.open({ success: s }); } }; class at { constructor(t) { h(this, "_db"); h(this, "_db_options"); if (!t) throw new Error("DbOptions is required"); this._db_options = t, this._db = this.defineDb(); } get dbName() { return this._db_options.name; } defineDb() { let { keyPath: t, name: s } = this._db_options, r; switch (s) { case "localStorage": case "sessionStorage": r = new Ke(s); break; default: t || (t = "storeName"), r = new Wt(s, { keyPath: t }); } return r; } getItem(t) { return new Promise((s, r) => { if (!this._db) return r("No db found"); try { return this._db.getItem(t).then((n) => s(n)); } catch (n) { r(n); } }); } removeItem(t) { this._db.removeItem(t); } setItem(t, s) { if (this._db instanceof Wt) try { this._db.getItem(t).then((r) => { r ? this._db.updateItem(r) : this._db.setItem({ storeName: t, ...s }); }); } catch (r) { V("Persister - setItem Error", r), this._db.setItem({ storename: t, ...s }); } else this._db.setItem(s, t); } } /** * @vue/shared v3.5.17 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function Le(e) { const t = /* @__PURE__ */ Object.create(null); for (const s of e.split(",")) t[s] = 1; return (s) => s in t; } const Tt = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}; process.env.NODE_ENV !== "production" && Object.freeze([]); const Xt = () => { }, Be = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), j = Object.assign, We = Object.prototype.hasOwnProperty, It = (e, t) => We.call(e, t), g = Array.isArray, G = (e) => Zt(e) === "[object Map]", R = (e) => typeof e == "function", I = (e) => typeof e == "string", st = (e) => typeof e == "symbol", E = (e) => e !== null && typeof e == "object", qe = Object.prototype.toString, Zt = (e) => qe.call(e), kt = (e) => Zt(e).slice(8, -1), $t = (e) => I(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Ue = (e) => { const t = /* @__PURE__ */ Object.create(null); return (s) => t[s] || (t[s] = e(s)); }, ze = Ue((e) => e.charAt(0).toUpperCase() + e.slice(1)), B = (e, t) => !Object.is(e, t); let qt; const mt = () => qt || (qt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}); function At(e) { if (g(e)) { const t = {}; for (let s = 0; s < e.length; s++) { const r = e[s], n = I(r) ? Qe(r) : At(r); if (n) for (const i in n) t[i] = n[i]; } return t; } else if (I(e) || E(e)) return e; } const Ye = /;(?![^(]*\))/g, Je = /:([^]+)/, Ge = /\/\*[^]*?\*\//g; function Qe(e) { const t = {}; return e.replace(Ge, "").split(Ye).forEach((s) => { if (s) { const r = s.split(Je); r.length > 1 && (t[r[0].trim()] = r[1].trim()); } }), t; } function Ct(e) { let t = ""; if (I(e)) t = e; else if (g(e)) for (let s = 0; s < e.length; s++) { const r = Ct(e[s]); r && (t += r + " "); } else if (E(e)) for (const s in e) e[s] && (t += s + " "); return t.trim(); } /** * @vue/reactivity v3.5.17 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ function U(e, ...t) { console.warn(`[Vue warn] ${e}`, ...t); } let _, te = 0, Q, X; function Xe(e, t = !1) { if (e.flags |= 8, t) { e.next = X, X = e; return; } e.next = Q, Q = e; } function jt() { te++; } function Mt() { if (--te > 0) return; if (X) { let t = X; for (X = void 0; t; ) { const s = t.next; t.next = void 0, t.flags &= -9, t = s; } } let e; for (; Q; ) { let t = Q; for (Q = void 0; t; ) { const s = t.next; if (t.next = void 0, t.flags &= -9, t.flags & 1) try { t.trigger(); } catch (r) { e || (e = r); } t = s; } } if (e) throw e; } function Ze(e) { for (let t = e.deps; t; t = t.nextDep) t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t; } function ke(e) { let t, s = e.depsTail, r = s; for (; r; ) { const n = r.prevDep; r.version === -1 ? (r === s && (s = n), se(r), es(r)) : t = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = n; } e.deps = t, e.depsTail = s; } function ts(e) { for (let t = e.deps; t; t = t.nextDep) if (t.dep.version !== t.version || t.dep.computed && (ee(t.dep.computed) || t.dep.version !== t.version)) return !0; return !!e._dirty; } function ee(e) { if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Z) || (e.globalVersion = Z, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !ts(e)))) return; e.flags |= 2; const t = e.dep, s = _, r = $; _ = e, $ = !0; try { Ze(e); const n = e.fn(e._value); (t.version === 0 || B(n, e._value)) && (e.flags |= 128, e._value = n, t.version++); } catch (n) { throw t.version++, n; } finally { _ = s, $ = r, ke(e), e.flags &= -3; } } function se(e, t = !1) { const { dep: s, prevSub: r, nextSub: n } = e; if (r && (r.nextSub = n, e.prevSub = void 0), n && (n.prevSub = r, e.nextSub = void 0), process.env.NODE_ENV !== "production" && s.subsHead === e && (s.subsHead = n), s.subs === e && (s.subs = r, !r && s.computed)) { s.computed.flags &= -5; for (let i = s.computed.deps; i; i = i.nextDep) se(i, !0); } !t && !--s.sc && s.map && s.map.delete(s.key); } function es(e) { const { prevDep: t, nextDep: s } = e; t && (t.nextDep = s, e.prevDep = void 0), s && (s.prevDep = t, e.nextDep = void 0); } let $ = !0; const re = []; function St() { re.push($), $ = !1; } function yt() { const e = re.pop(); $ = e === void 0 ? !0 : e; } let Z = 0; class ss { constructor(t, s) { this.sub = t, this.dep = s, this.version = s.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0; } } class Ht { // TODO isolatedDeclarations "__v_skip" constructor(t) { this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0); } track(t) { if (!_ || !$ || _ === this.computed) return; let s = this.activeLink; if (s === void 0 || s.sub !== _) s = this.activeLink = new ss(_, this), _.deps ? (s.prevDep = _.depsTail, _.depsTail.nextDep = s, _.depsTail = s) : _.deps = _.depsTail = s, ne(s); else if (s.version === -1 && (s.version = this.version, s.nextDep)) { const r = s.nextDep; r.prevDep = s.prevDep, s.prevDep && (s.prevDep.nextDep = r), s.prevDep = _.depsTail, s.nextDep = void 0, _.depsTail.nextDep = s, _.depsTail = s, _.deps === s && (_.deps = r); } return process.env.NODE_ENV !== "production" && _.onTrack && _.onTrack( j( { effect: _ }, t ) ), s; } trigger(t) { this.version++, Z++, this.notify(t); } notify(t) { jt(); try { if (process.env.NODE_ENV !== "production") for (let s = this.subsHead; s; s = s.nextSub) s.sub.onTrigger && !(s.sub.flags & 8) && s.sub.onTrigger( j( { effect: s.sub }, t ) ); for (let s = this.subs; s; s = s.prevSub) s.sub.notify() && s.sub.dep.notify(); } finally { Mt(); } } } function ne(e) { if (e.dep.sc++, e.sub.flags & 4) { const t = e.dep.computed; if (t && !e.dep.subs) { t.flags |= 20; for (let r = t.deps; r; r = r.nextDep) ne(r); } const s = e.dep.subs; s !== e && (e.prevSub = s, s && (s.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e; } } const ut = /* @__PURE__ */ new WeakMap(), A = Symbol( process.env.NODE_ENV !== "production" ? "Object iterate" : "" ), Pt = Symbol( process.env.NODE_ENV !== "production" ? "Map keys iterate" : "" ), k = Symbol( process.env.NODE_ENV !== "production" ? "Array iterate" : "" ); function S(e, t, s) { if ($ && _) { let r = ut.get(e); r || ut.set(e, r = /* @__PURE__ */ new Map()); let n = r.get(s); n || (r.set(s, n = new Ht()), n.map = r, n.key = s), process.env.NODE_ENV !== "production" ? n.track({ target: e, type: t, key: s }) : n.track(); } } function x(e, t, s, r, n, i) { const o = ut.get(e); if (!o) { Z++; return; } const c = (a) => { a && (process.env.NODE_ENV !== "production" ? a.trigger({ target: e, type: t, key: s, newValue: r, oldValue: n, oldTarget: i }) : a.trigger()); }; if (jt(), t === "clear") o.forEach(c); else { const a = g(e), l = a && $t(s); if (a && s === "length") { const p = Number(r); o.forEach((u, d) => { (d === "length" || d === k || !st(d) && d >= p) && c(u); }); } else switch ((s !== void 0 || o.has(void 0)) && c(o.get(s)), l && c(o.get(k)), t) { case "add": a ? l && c(o.get("length")) : (c(o.get(A)), G(e) && c(o.get(Pt))); break; case "delete": a || (c(o.get(A)), G(e) && c(o.get(Pt))); break; case "set": G(e) && c(o.get(A)); break; } } Mt(); } function rs(e, t) { const s = ut.get(e); return s && s.get(t); } function M(e) { const t = f(e); return t === e ? t : (S(t, "iterate", k), w(e) ? t : t.map(m)); } function Ft(e) { return S(e = f(e), "iterate", k), e; } const ns = { __proto__: null, [Symbol.iterator]() { return Et(this, Symbol.iterator, m); }, concat(...e) { return M(this).concat( ...e.map((t) => g(t) ? M(t) : t) ); }, entries() { return Et(this, "entries", (e) => (e[1] = m(e[1]), e)); }, every(e, t) { return O(this, "every", e, t, void 0, arguments); }, filter(e, t) { return O(this, "filter", e, t, (s) => s.map(m), arguments); }, find(e, t) { return O(this, "find", e, t, m, arguments); }, findIndex(e, t) { return O(this, "findIndex", e, t, void 0, arguments); }, findLast(e, t) { return O(this, "findLast", e, t, m, arguments); }, findLastIndex(e, t) { return O(this, "findLastIndex", e, t, void 0, arguments); }, // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement forEach(e, t) { return O(this, "forEach", e, t, void 0, arguments); }, includes(...e) { return wt(this, "includes", e); }, indexOf(...e) { return wt(this, "indexOf", e); }, join(e) { return M(this).join(e); }, // keys() iterator only reads `length`, no optimisation required lastIndexOf(...e) { return wt(this, "lastIndexOf", e); }, map(e, t) { return O(this, "map", e, t, void 0, arguments); }, pop() { return J(this, "pop"); }, push(...e) { return J(this, "push", e); }, reduce(e, ...t) { return Ut(this, "reduce", e, t); }, reduceRight(e, ...t) { return Ut(this, "reduceRight", e, t); }, shift() { return J(this, "shift"); }, // slice could use ARRAY_ITERATE but also seems to beg for range tracking some(e, t) { return O(this, "some", e, t, void 0, arguments); }, splice(...e) { return J(this, "splice", e); }, toReversed() { return M(this).toReversed(); }, toSorted(e) { return M(this).toSorted(e); }, toSpliced(...e) { return M(this).toSpliced(...e); }, unshift(...e) { return J(this, "unshift", e); }, values() { return Et(this, "values", m); } }; function Et(e, t, s) { const r = Ft(e), n = r[t](); return r !== e && !w(e) && (n._next = n.next, n.next = () => { const i = n._next(); return i.value && (i.value = s(i.value)), i; }), n; } const is = Array.prototype; function O(e, t, s, r, n, i) { const o = Ft(e), c = o !== e && !w(e), a = o[t]; if (a !== is[t]) { const u = a.apply(e, i); return c ? m(u) : u; } let l = s; o !== e && (c ? l = function(u, d) { return s.call(this, m(u), d, e); } : s.length > 2 && (l = function(u, d) { return s.call(this, u, d, e); })); const p = a.call(o, l, r); return c && n ? n(p) : p; } function Ut(e, t, s, r) { const n = Ft(e); let i = s; return n !== e && (w(e) ? s.length > 3 && (i = function(o, c, a) { return s.call(this, o, c, a, e); }) : i = function(o, c, a) { return s.call(this, o, m(c), a, e); }), n[t](i, ...r); } function wt(e, t, s) { const r = f(e); S(r, "iterate", k); const n = r[t](...s); return (n === -1 || n === !1) && lt(s[0]) ? (s[0] = f(s[0]), r[t](...s)) : n; } function J(e, t, s = []) { St(), jt(); const r = f(e)[t].apply(e, s); return Mt(), yt(), r; } const os = /* @__PURE__ */ Le("__proto__,__v_isRef,__isVue"), ie = new Set( /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(st) ); function cs(e) { st(e) || (e = String(e)); const t = f(this); return S(t, "has", e), t.hasOwnProperty(e); } class oe { constructor(t = !1, s = !1) { this._isReadonly = t, this._isShallow = s; } get(t, s, r) { if (s === "__v_skip") return t.__v_skip; const n = this._isReadonly, i = this._isShallow; if (s === "__v_isReactive") return !n; if (s === "__v_isReadonly") return n; if (s === "__v_isShallow") return i; if (s === "__v_raw") return r === (n ? i ? ms : ue : i ? gs : ae).get(t) || // receiver is not the reactive proxy, but has the same prototype // this means the receiver is a user proxy of the reactive proxy Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0; const o = g(t); if (!n) { let a; if (o && (a = ns[s])) return a; if (s === "hasOwnProperty") return cs; } const c = Reflect.get( t, s, // if this is a proxy wrapping a ref, return methods using the raw ref // as receiver so that we don't have to call `toRaw` on the ref in all // its class methods v(t) ? t : r ); return (st(s) ? ie.has(s) : os(s)) || (n || S(t, "get", s), i) ? c : v(c) ? o && $t(s) ? c : c.value : E(c) ? n ? pe(c) : le(c) : c; } } class as extends oe { constructor(t = !1) { super(!1, t); } set(t, s, r, n) { let i = t[s]; if (!this._isShallow) { const a = P(i); if (!w(r) && !P(r) && (i = f(i), r = f(r)), !g(t) && v(i) && !v(r)) return a ? !1 : (i.value = r, !0); } const o = g(t) && $t(s) ? Number(s) < t.length : It(t, s), c = Reflect.set( t, s, r, v(t) ? t : n ); return t === f(n) && (o ? B(r, i) && x(t, "set", s, r, i) : x(t, "add", s, r)), c; } deleteProperty(t, s) { const r = It(t, s), n = t[s], i = Reflect.deleteProperty(t, s); return i && r && x(t, "delete", s, void 0, n), i; } has(t, s) { const r = Reflect.has(t, s); return (!st(s) || !ie.has(s)) && S(t, "has", s), r; } ownKeys(t) { return S( t, "iterate", g(t) ? "length" : A ), Reflect.ownKeys(t); } } class us extends oe { constructor(t = !1) { super(!0, t); } set(t, s) { return process.env.NODE_ENV !== "production" && U( `Set operation on key "${String(s)}" failed: target is readonly.`, t ), !0; } deleteProperty(t, s) { return process.env.NODE_ENV !== "production" && U( `Delete operation on key "${String(s)}" failed: target is readonly.`, t ), !0; } } const ls = /* @__PURE__ */ new as(), ps = /* @__PURE__ */ new us(), Rt = (e) => e, rt = (e) => Reflect.getPrototypeOf(e); function fs(e, t, s) { return function(...r) { const n = this.__v_raw, i = f(n), o = G(i), c = e === "entries" || e === Symbol.iterator && o, a = e === "keys" && o, l = n[e](...r), p = s ? Rt : t ? Dt : m; return !t && S( i, "iterate", a ? Pt : A ), { // iterator protocol next() { const { value: u, done: d } = l.next(); return d ? { value: u, done: d } : { value: c ? [p(u[0]), p(u[1])] : p(u), done: d }; }, // iterable protocol [Symbol.iterator]() { return this; } }; }; } function nt(e) { return function(...t) { if (process.env.NODE_ENV !== "production") { const s = t[0] ? `on key "${t[0]}" ` : ""; U( `${ze(e)} operation ${s}failed: target is readonly.`, f(this) ); } return e === "delete" ? !1 : e === "clear" ? void 0 : this; }; } function hs(e, t) { const s = { get(n) { const i = this.__v_raw, o = f(i), c = f(n); e || (B(n, c) && S(o, "get", n), S(o, "get", c)); const { has: a } = rt(o), l = t ? Rt : e ? Dt : m; if (a.call(o, n)) return l(i.get(n)); if (a.call(o, c)) return l(i.get(c)); i !== o && i.get(n); }, get size() { const n = this.__v_raw; return !e && S(f(n), "iterate", A), Reflect.get(n, "size", n); }, has(n) { const i = this.__v_raw, o = f(i), c = f(n); return e || (B(n, c) && S(o, "has", n), S(o, "has", c)), n === c ? i.has(n) : i.has(n) || i.has(c); }, forEach(n, i) { const o = this, c = o.__v_raw, a = f(c), l = t ? Rt : e ? Dt : m; return !e && S(a, "iterate", A), c.forEach((p, u) => n.call(i, l(p), l(u), o)); } }; return j( s, e ? { add: nt("add"), set: nt("set"), delete: nt("delete"), clear: nt("clear") } : { add(n) { !t && !w(n) && !P(n) && (n = f(n)); const i = f(this); return rt(i).has.call(i, n) || (i.add(n), x(i, "add", n, n)), this; }, set(n, i) { !t && !w(i) && !P(i) && (i = f(i)); const o = f(this), { has: c, get: a } = rt(o); let l = c.call(o, n); l ? process.env.NODE_ENV !== "production" && zt(o, c, n) : (n = f(n), l = c.call(o, n)); const p = a.call(o, n); return o.set(n, i), l ? B(i, p) && x(o, "set", n, i, p) : x(o, "add", n, i), this; }, delete(n) { const i = f(this), { has: o, get: c } = rt(i); let a = o.call(i, n); a ? process.env.NODE_ENV !== "production" && zt(i, o, n) : (n = f(n), a = o.call(i, n)); const l = c ? c.call(i, n) : void 0, p = i.delete(n); return a && x(i, "delete", n, void 0, l), p; }, clear() { const n = f(this), i = n.size !== 0, o = process.env.NODE_ENV !== "production" ? G(n) ? new Map(n) : new Set(n) : void 0, c = n.clear(); return i && x( n, "clear", void 0, void 0, o ), c; } } ), [ "keys", "values", "entries", Symbol.iterator ].forEach((n) => { s[n] = fs(n, e, t); }), s; } function ce(e, t) { const s = hs(e, t); return (r, n, i) => n === "__v_isReactive" ? !e : n === "__v_isReadonly" ? e : n === "__v_raw" ? r : Reflect.get( It(s, n) && n in r ? s : r, n, i ); } const ds = { get: /* @__PURE__ */ ce(!1, !1) }, _s = { get: /* @__PURE__ */ ce(!0, !1) }; function zt(e, t, s) { const r = f(s); if (r !== s && t.call(e, r)) { const n = kt(e); U( `Reactive ${n} contains both the raw and reactive versions of the same object${n === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.` ); } } const ae = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), ms = /* @__PURE__ */ new WeakMap(); function Ss(e) { switch (e) { case "Object": case "Array": return 1; case "Map": case "Set": case "WeakMap": case "WeakSet": return 2; default: return 0; } } function ys(e) { return e.__v_skip || !Object.isExtensible(e) ? 0 : Ss(kt(e)); } function le(e) { return P(e) ? e : fe( e, !1, ls, ds, ae ); } function pe(e) { return fe( e, !0, ps, _s, ue ); } function fe(e, t, s, r, n) { if (!E(e)) return process.env.NODE_ENV !== "production" && U( `value cannot be made ${t ? "readonly" : "reactive"}: ${String( e )}` ), e; if (e.__v_raw && !(t && e.__v_isReactive)) return e; const i = ys(e); if (i === 0) return e; const o = n.get(e); if (o) return o; const c = new Proxy( e, i === 2 ? r : s ); return n.set(e, c), c; } function he(e) { return P(e) ? he(e.__v_raw) : !!(e && e.__v_isReactive); } function P(e) { return !!(e && e.__v_isReadonly); } function w(e) { return !!(e && e.__v_isShallow); } function lt(e) { return e ? !!e.__v_raw : !1; } function f(e) { const t = e && e.__v_raw; return t ? f(t) : e; } const m = (e) => E(e) ? le(e) : e, Dt = (e) => E(e) ? pe(e) : e; function v(e) { return e ? e.__v_isRef === !0 : !1; } function pt(e) { return bs(e, !1); } function bs(e, t) { return v(e) ? e : new Es(e, t); } class Es { constructor(t, s) { this.dep = new Ht(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = s ? t : f(t), this._value = s ? t : m(t), this.__v_isShallow = s; } get value() { return process.env.NODE_ENV !== "production" ? this.dep.track({ target: this, type: "get", key: "value" }) : this.dep.track(), this._value; } set value(t) { const s = this._rawValue, r = this.__v_isShallow || w(t) || P(t); t = r ? t : f(t), B(t, s) && (this._rawValue = t, this._value = r ? t : m(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({ target: this, type: "set", key: "value", newValue: t, oldValue: s }) : this.dep.trigger()); } } class ws { constructor(t, s, r) { this._object = t, this._key = s, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0; } get value() { const t = this._object[this._key]; return this._value = t === void 0 ? this._defaultValue : t; } set value(t) { this._object[this._key] = t; } get dep() { return rs(f(this._object), this._key); } } class vs { constructor(t) { this._getter = t, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0; } get value() { return this._value = this._getter(); } } function de(e, t, s) { return v(e) ? e : R(e) ? new vs(e) : E(e) && arguments.length > 1 ? Ns(e, t, s) : pt(e); } function Ns(e, t, s) { const r = e[t]; return v(r) ? r : new ws(e, t, s); } class Os { constructor(t, s, r) { this.fn = t, this.setter = s, this._value = void 0, this.dep = new Ht(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Z - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !s, this.isSSR = r; } /** * @internal */ notify() { if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion _ !== this) return Xe(this, !0), !0; process.env.NODE_ENV; } get value() { const t = process.env.NODE_ENV !== "production" ? this.dep.track({ target: this, type: "get", key: "value" }) : this.dep.track(); return ee(this), t && (t.version = this.dep.version), this._value; } set value(t) { this.setter ? this.setter(t) : process.env.NODE_ENV !== "production" && U("Write operation failed: computed value is readonly"); } } function Ts(e, t, s = !1) { let r, n; R(e) ? r = e : (r = e.get, n = e.set); const i = new Os(r, n, s); return process.env.NODE_ENV, i; } /** * @vue/runtime-core v3.5.17 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ const C = []; function Is(e) { C.push(e); } function Ps() { C.pop(); } let vt = !1; function z(e, ...t) { if (vt) return; vt = !0, St(); const s = C.length ? C[C.length - 1].component : null, r = s && s.appContext.config.warnHandler, n = Rs(); if (r) Kt( r, s, 11, [ // eslint-disable-next-line no-restricted-syntax e + t.map((i) => { var o, c; return (c = (o = i.toString) == null ? void 0 : o.call(i)) != null ? c : JSON.stringify(i); }).join(""), s && s.proxy, n.map( ({ vnode: i }) => `at <${xe(s, i.type)}>` ).join(` `), n ] ); else { const i = [`[Vue warn]: ${e}`, ...t]; n.length && i.push(` `, ...Ds(n)), console.warn(...i); } yt(), vt = !1; } function Rs() { let e = C[C.length - 1]; if (!e) return []; const t = []; for (; e; ) { const s = t[0]; s && s.vnode === e ? s.recurseCount++ : t.push({ vnode: e, recurseCount: 0 }); const r = e.component && e.component.parent; e = r && r.vnode; } return t; } function Ds(e) { const t = []; return e.forEach((s, r) => { t.push(...r === 0 ? [] : [` `], ...xs(s)); }), t; } function xs({ vnode: e, recurseCount: t }) { const s = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, n = ` at <${xe( e.component, e.type, r )}`, i = ">" + s; return e.props ? [n, ...Vs(e.props), i] : [n + i]; } function Vs(e) { const t = [], s = Object.keys(e); return s.slice(0, 3).forEach((r) => { t.push(..._e(r, e[r])); }), s.length > 3 && t.push(" ..."), t; } function _e(e, t, s) { return I(t) ? (t = JSON.stringify(t), s ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? s ? t : [`${e}=${t}`] : v(t) ? (t = _e(e, f(t.value), !0), s ? t : [`${e}=Ref<`, t, ">"]) : R(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = f(t), s ? t : [`${e}=`, t]); } const ge = { sp: "serverPrefetch hook", bc: "beforeCreate hook", c: "created hook", bm: "beforeMount hook", m: "mounted hook", bu: "beforeUpdate hook", u: "updated", bum: "beforeUnmount hook", um: "unmounted hook", a: "activated hook", da: "deactivated hook", ec: "errorCaptured hook", rtc: "renderTracked hook", rtg: "renderTriggered hook", 0: "setup function", 1: "render function", 2: "watcher getter", 3: "watcher callback", 4: "watcher cleanup function", 5: "native event handler", 6: "component event handler", 7: "vnode hook", 8: "directive hook", 9: "transition hook", 10: "app errorHandler", 11: "app warnHandler", 12: "ref function", 13: "async component loader", 14: "scheduler flush", 15: "component update", 16: "app unmount cleanup function" }; function Kt(e, t, s, r) { try { return r ? e(...r) : e(); } catch (n) { me(n, t, s); } } function me(e, t, s, r = !0) { const n = t ? t.vnode : null, { errorHandler: i, throwUnhandledErrorInProduction: o } = t && t.appContext.config || Tt; if (t) { let c = t.parent; const a = t.proxy, l = process.env.NODE_ENV !== "production" ? ge[s] : `https://vuejs.org/error-reference/#runtime-${s}`; for (; c; ) { const p = c.ec; if (p) { for (let u = 0; u < p.length; u++) if (p[u](e, a, l) === !1) return; } c = c.parent; } if (i) { St(), Kt(i, null, 10, [ e, a, l ]), yt(); return; } } $s(e, s, n, r, o); } function $s(e, t, s, r = !0, n = !1) { if (process.env.NODE_ENV !== "production") { const i = ge[t]; if (s && Is(s), z(`Unhandled error${i ? ` during execution of ${i}` : ""}`), s && Ps(), r) throw e; console.error(e); } else { if (n) throw e; console.error(e); } } const b = []; let T = -1; const W = []; let D = null, F = 0; const As = /* @__PURE__ */ Promise.resolve(); let xt = null; const Cs = 100; function js(e) { let t = T + 1, s = b.length; for (; t < s; ) { const r = t + s >>> 1, n = b[r], i = tt(n); i < e || i === e && n.flags & 2 ? t = r + 1 : s = r; } return t; } function Ms(e) { if (!(e.flags & 1)) { const t = tt(e), s = b[b.length - 1]; !s || // fast path when the job id is larger than the tail !(e.flags & 2) && t >= tt(s) ? b.push(e) : b.splice(js(t), 0, e), e.flags |= 1, Se(); } } function Se() { xt || (xt = As.then(ye)); } function Hs(e) { g(e) ? W.push(...e) : D && e.id === -1 ? D.splice(F + 1, 0, e) : e.flags & 1 || (W.push(e), e.flags |= 1), Se(); } function Fs(e) { if (W.length) { const t = [...new Set(W)].sort( (s, r) => tt(s) - tt(r) ); if (W.length = 0, D) { D.push(...t); return; } for (D = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), F = 0; F < D.length; F++) { const s = D[F]; process.env.NODE_ENV !== "production" && be(e, s) || (s.flags & 4 && (s.flags &= -2), s.flags & 8 || s(), s.flags &= -2); } D = null, F = 0; } } const tt = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id; function ye(e) { process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()); const t = process.env.NODE_ENV !== "production" ? (s) => be(e, s) : Xt; try { for (T = 0; T < b.length; T++) { const s = b[T]; if (s && !(s.flags & 8)) { if (process.env.NODE_ENV !== "production" && t(s)) continue; s.flags & 4 && (s.flags &= -2), Kt( s, s.i, s.i ? 15 : 14 ), s.flags & 4 || (s.flags &= -2); } } } finally { for (; T < b.length; T++) { const s = b[T]; s && (s.flags &= -2); } T = -1, b.length = 0, Fs(e), xt = null, (b.length || W.length) && ye(e); } } function be(e, t) { const s = e.get(t) || 0; if (s > Cs) { const r = t.i, n = r && De(r.type); return me( `Maximum recursive updates exceeded${n ? ` in component <${n}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`, null, 10 ), !0; } return e.set(t, s + 1), !1; } const Nt = /* @__PURE__ */ new Map(); process.env.NODE_ENV !== "production" && (mt().__VUE_HMR_RUNTIME__ = { createRecord: Ot(Ks), rerender: Ot(Ls), reload: Ot(Bs) }); const ft = /* @__PURE__ */ new Map(); function Ks(e, t) { return ft.has(e) ? !1 : (ft.set(e, { initialDef: ht(t), instances: /* @__PURE__ */ new Set() }), !0); } function ht(e) { return Ve(e) ? e.__vccOpts : e; } function Ls(e, t) { const s = ft.get(e); s && (s.initialDef.render = t, [...s.instances].forEach((r) => { t && (r.render = t, ht(r.type).render = t), r.renderCache = [], r.update(); })); } function Bs(e, t) { const s = ft.get(e); if (!s) return; t = ht(t), Yt(s.initialDef, t); const r = [...s.instances]; for (let n = 0; n < r.length; n++) { const i = r[n], o = ht(i.type); let c = Nt.get(o); c || (o !== s.initialDef && Yt(o, t), Nt.set(o, c = /* @__PURE__ */ new Set())), c.add(i), i.appContext.propsCache.delete(i.type), i.appContext.emitsCache.delete(i.type), i.appContext.optionsCache.delete(i.type), i.ceReload ? (c.add(i), i.ceReload(t.styles), c.delete(i)) : i.parent ? Ms(() => { i.parent.update(), c.delete(i); }) : i.appContext.reload ? i.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn( "[HMR] Root or manually mounted instance modified. Full reload required." ), i.root.ce && i !== i.root && i.root.ce._removeChildStyle(o); } Hs(() => { Nt.clear(); }); } function Yt(e, t) { j(e, t); for (const s in e) s !== "__file" && !(s in t) && delete e[s]; } function Ot(e) { return (t, s) => { try { return e(t, s); } catch (r) { console.error(r), console.warn( "[HMR] Something went wrong during Vue component hot-reload. Full reload required." ); } }; } let K, it = []; function Ee(e, t) { var s, r; K = e, K ? (K.enabled = !0, it.forEach(({ event: n, args: i }) => K.emit(n, ...i)), it = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully window.HTMLElement && // also exclude jsdom // eslint-disable-next-line no-restricted-syntax !((r = (s = window.navigator) == null ? void 0 : s.userAgent) != null && r.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((i) => { Ee(i, t); }), setTimeout(() => { K || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, it = []); }, 3e3)) : it = []; } let et = null, Ws = null; const qs = (e) => e.__isTeleport; function we(e, t) { e.shapeFlag & 6 && e.component ? (e.transition = t, we(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t; } mt().requestIdleCallback; mt().cancelIdleCallback; const Us = Symbol.for("v-ndc"), zs = {}; process.env.NODE_ENV !== "production" && (zs.ownKeys = (e) => (z( "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead." ), Reflect.ownKeys(e))); const Ys = {}, ve = (e) => Object.getPrototypeOf(e) === Ys, Js = (e) => e.__isSuspense, Ne = Symbol.for("v-fgt"), Gs = Symbol.for("v-txt"), Qs = Symbol.for("v-cmt"); function Xs(e) { return e ? e.__v_isVNode === !0 : !1; } const Zs = (...e) => Te( ...e ), Oe = ({ key: e }) => e ?? null, ot = ({ ref: e, ref_key: t, ref_for: s }) => (typeof e == "number" && (e = "" + e), e != null ? I(e) || v(e) || R(e) ? { i: et, r: e, k: t, f: !!s } : e : null); function ks(e, t = null, s = null, r = 0, n = null, i = e === Ne ? 0 : 1, o = !1, c = !1) { const a = { __v_isVNode: !0, __v_skip: !0, type: e, props: t, key: t && Oe(t), ref: t && ot(t), scopeId: Ws, slotScopeIds: null, children: s, component: null, suspense: null, ssContent: null, ssFallback: null, dirs: null, transition: null, el: null, anchor: null, target: null, targetStart: null, targetAnchor: null, staticCount: 0, shapeFlag: i, patchFlag: r, dynamicProps: n, dynamicChildren: null, appContext: null, ctx: et }; return c ? (Lt(a, s), i & 128 && e.normalize(a)) : s && (a.shapeFlag |= I(s) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && z("VNode created with invalid key (NaN). VNode type:", a.type), a; } const tr = process.env.NODE_ENV !== "production" ? Zs : Te; function Te(e, t = null, s = null, r = 0, n = null, i = !1) { if ((!e || e === Us) && (process.env.NODE_ENV !== "production" && !e && z(`Invalid vnode type when creating vnode: ${e}.`), e = Qs), Xs(e)) { const c = dt( e, t, !0 /* mergeRef: true */ ); return s && Lt(c, s), c.patchFlag = -2, c; } if (Ve(e) && (e = e.__vccOpts), t) { t = er(t); let { class: c, style: a } = t; c && !I(c) && (t.class = Ct(c)), E(a) && (lt(a) && !g(a) && (a = j({}, a)), t.style = At(a)); } const o = I(e) ? 1 : Js(e) ? 128 : qs(e) ? 64 : E(e) ? 4 : R(e) ? 2 : 0; return process.env.NODE_ENV !== "production" && o & 4 && lt(e) && (e = f(e), z( "Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.", ` Component that was made reactive: `, e )), ks( e, t, s, r, n, o, i, !0 ); } function er(e) { return e ? lt(e) || ve(e) ? j({}, e) : e : null; } function dt(e, t, s = !1, r = !1) { const { props: n, ref: i, patchFlag: o, children: c, transition: a } = e, l = t ? rr(n || {}, t) : n, p = { __v_isVNode: !0, __v_skip: !0, type: e.type, props: l, key: l && Oe(l), ref: t && t.ref ? ( // #2078 in the case of <component :is="vnode" ref="extra"/> // if the vnode itself already has a ref, cloneVNode will need to merge // the refs so the single vnode can be set on multiple refs s && i ? g(i) ? i.concat(ot(t)) : [i, ot(t)] : ot(t) ) : i, scopeId: e.scopeId, slotScopeIds: e.slotScopeIds, children: process.env.NODE_ENV !== "production" && o === -1 && g(c) ? c.map(Ie) : c, target: e.target, targetStart: e.targetStart, targetAnchor: e.targetAnchor, staticCount: e.staticCount, shapeFlag: e.shapeFlag, // if the vnode is cloned with extra props, we can no longer assume its // existing patch flag to be reliable and need to add the FULL_PROPS flag. // note: preserve flag for fragments since they use the flag for children // fast paths only. patchFlag: t && e.type !== Ne ? o === -1 ? 16 : o | 16 : o, dynamicProps: e.dynamicProps, dynamicChildren: e.dynamicChildren, appContext: e.appContext, dirs: e.dirs, transition: a, // These should technically only be non-null on mounted VNodes. However, // they *should* be copied for kept-alive vnodes. So we just always copy // them since them being non-null during a mount doesn't affect the logic as // they will simply be overwritten. component: e.component, suspense: e.suspense, ssContent: e.ssContent && dt(e.ssContent), ssFallback: e.ssFallback && dt(e.ssFallback), el: e.el, anchor: e.anchor, ctx: e.ctx, ce: e.ce }; return a && r && we( p, a.clone(p) ), p; } function Ie(e) { const t = dt(e); return g(e.children) && (t.children = e.children.map(Ie)), t; } function sr(e = " ", t = 0) { return tr(Gs, null, e, t); } function Lt(e, t) { let s = 0; const { shapeFlag: r } = e; if (t == null) t = null; else if (g(t)) s = 16; else if (typeof t == "object") if (r & 65) { const n = t.default; n && (n._c && (n._d = !1), Lt(e, n()), n._c && (n._d = !0)); return; } else s = 32, !t._ && !ve(t) && (t._ctx = et); else R(t) ? (t = { default: t, _ctx: et }, s = 32) : (t = String(t), r & 64 ? (s = 16, t = [sr(t)]) : s = 8); e.children = t, e.shapeFlag |= s; } function rr(...e) { const t = {}; for (let s = 0; s < e.length; s++) { const r = e[s]; for (const n in r) if (n === "class") t.class !== r.class && (t.class = Ct([t.class, r.class])); else if (n === "style") t.style = At([t.style, r.style]); else if (Be(n)) { const i = t[n], o = r[n]; o && i !== o && !(g(i) && i.includes(o)) && (t[n] = i ? [].concat(i, o) : o); } else n !== "" && (t[n] = r[n]); } return t; } let Pe = null; const nr = () => Pe || et; { const e = mt(), t = (s, r) => { let n; return (n = e[s]) || (n = e[s] = []), n.push(r), (i) => { n.length > 1 ? n.forEach((o) => o(i)) : n[0](i); }; }; t( "__VUE_INSTANCE_SETTERS__", (s) => Pe = s ), t( "__VUE_SSR_SETTERS__", (s) => Re = s ); } let Re = !1; process.env.NODE_ENV; const ir = /(?:^|[-_])(\w)/g, or = (e) => e.replace(ir, (t) => t.toUpperCase()).replace(/[-_]/g, ""); function De(e, t = !0) { return R(e) ? e.displayName || e.name : e.name || t && e.__name; } function xe(e, t, s = !1) { let r = De(t); if (!r && t.__file) { const n = t.__file.match(/([^/\\]+)\.\w+$/); n && (r = n[1]); } if (!r && e && e.parent) { const n = (i) => { for (const o in i) if (i[o] === t) return o; }; r = n( e.components || e.parent.type.components ) || n(e.appContext.components); } return r ? or(r) : s ? "App" : "Anonymous"; } function Ve(e) { return R(e) && "__vccOpts" in e; } const cr = (e, t) => { const s = Ts(e, t, Re); if (process.env.NODE_ENV !== "production") { const r = nr(); r && r.appContext.config.warnRecursiveComputed && (s._warnRecursive = !0); } return s; }; function ar() { if (process.env.NODE_ENV === "production" || typeof window > "u") return; const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, s = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, n = { __vue_custom_formatter: !0, header(u) { if (!E(u)) return null; if (u.__isVue) return ["div", e, "VueInstance"]; if (v(u)) { St(); const d = u.value; return yt(), [ "div", {}, ["span", e, p(u)], "<", c(d), ">" ]; } else { if (he(u)) return [ "div", {}, ["span", e, w(u) ? "ShallowReactive" : "Reactive"], "<", c(u), `>${P(u) ? " (readonly)" : ""}` ]; if (P(u)) return [ "div", {},