UNPKG

@uozi-admin/curd

Version:
1,752 lines 263 kB
import { cloneDeep as Ht, get as ut, set as bo, isNumber as ca, debounce as gr, isObject as Us, isArray as _r, isNil as _a, isEqual as xs, merge as Vs } from "lodash-es"; import { getCurrentInstance as rn, inject as yo, ref as ne, shallowRef as Bs, computed as ue, watch as Xe, onMounted as So, onUnmounted as Ws, effectScope as Ys, isRef as Hs, defineComponent as he, h as da, Fragment as st, createVNode as V, Text as Gs, toRaw as Ks, reactive as rt, watchEffect as To, mergeModels as ye, useModel as be, createBlock as ee, openBlock as x, unref as E, mergeProps as we, createElementBlock as Te, withCtx as H, createCommentVNode as Ee, createTextVNode as Ae, toDisplayString as ie, readonly as Io, toRef as js, customRef as Xs, nextTick as wo, renderList as Sn, renderSlot as Me, normalizeProps as No, guardReactiveProps as Oo, createElementVNode as at, normalizeClass as Gn, createSlots as zs, withDirectives as qs, vShow as Qs } from "vue"; import { AutoComplete as Js, Cascader as Zs, CheckboxGroup as el, DatePicker as tl, Input as Do, InputNumber as nl, InputGroup as al, InputPassword as rl, Button as je, RadioGroup as Co, RangePicker as ol, Rate as sl, Select as Ao, Form as Cn, FormItem as Qa, Flex as nn, Table as Lo, Popconfirm as Ea, Modal as ta, Slider as ll, Switch as il, TimePicker as ul, FormItemRest as ko, RadioButton as Er, UploadDragger as cl, Progress as dl, Textarea as fl, Row as ml, Col as pl, message as ft, Descriptions as br, DescriptionsItem as yr, Card as hl, Spin as vl, Checkbox as gl, Divider as _l, Pagination as El, Image as bl } from "ant-design-vue"; import { useRouter as yl, useRoute as Po } from "vue-router"; import { HolderOutlined as Sl, FileOutlined as Sr, FolderOutlined as Tl, InboxOutlined as Il, DeleteOutlined as wl } from "@ant-design/icons-vue"; import { utils as ba, writeFile as Nl } from "xlsx"; import { useConfigContextInject as Ol } from "ant-design-vue/es/config-provider/context"; /*! * shared v11.1.10 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */ function At(e, t) { typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack)); } const Tr = {}; function Ja(e) { Tr[e] || (Tr[e] = !0, At(e)); } const vt = typeof window < "u"; let ot, Kt; if (process.env.NODE_ENV !== "production") { const e = vt && window.performance; e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat e.clearMeasures && (ot = (t) => { e.mark(t); }, Kt = (t, n, a) => { e.measure(t, n, a), e.clearMarks(n), e.clearMarks(a); }); } const Dl = /\{([0-9a-zA-Z]+)\}/g; function fa(e, ...t) { return t.length === 1 && ce(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Dl, (n, a) => t.hasOwnProperty(a) ? t[a] : ""); } const Tt = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Cl = (e, t, n) => Al({ l: e, k: t, s: n }), Al = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Ue = (e) => typeof e == "number" && isFinite(e), Ll = (e) => Za(e) === "[object Date]", on = (e) => Za(e) === "[object RegExp]", ma = (e) => re(e) && Object.keys(e).length === 0, xe = Object.assign, kl = Object.create, ge = (e = null) => kl(e); let Ir; const Gt = () => Ir || (Ir = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : ge()); function wr(e) { return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;"); } function Nr(e) { return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;"); } function Pl(e) { return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (a, r, o) => `${r}="${Nr(o)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (a, r, o) => `${r}='${Nr(o)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && At("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1&#111;n$3")), [ // In href, src, action, formaction attributes /(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi, // In style attributes within url() /(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi ].forEach((a) => { e = e.replace(a, "$1javascript&#58;"); }), e; } const Rl = Object.prototype.hasOwnProperty; function pt(e, t) { return Rl.call(e, t); } const De = Array.isArray, _e = (e) => typeof e == "function", U = (e) => typeof e == "string", de = (e) => typeof e == "boolean", ce = (e) => e !== null && typeof e == "object", Ml = (e) => ce(e) && _e(e.then) && _e(e.catch), Ro = Object.prototype.toString, Za = (e) => Ro.call(e), re = (e) => Za(e) === "[object Object]", Fl = (e) => e == null ? "" : De(e) || re(e) && e.toString === Ro ? JSON.stringify(e, null, 2) : String(e); function er(e, t = "") { return e.reduce((n, a, r) => r === 0 ? n + a : n + t + a, ""); } const Or = 2; function $l(e, t = 0, n = e.length) { const a = e.split(/\r?\n/); let r = 0; const o = []; for (let s = 0; s < a.length; s++) if (r += a[s].length + 1, r >= t) { for (let l = s - Or; l <= s + Or || n > r; l++) { if (l < 0 || l >= a.length) continue; const i = l + 1; o.push(`${i}${" ".repeat(3 - String(i).length)}| ${a[l]}`); const u = a[l].length; if (l === s) { const d = t - (r - u) + 1, c = Math.max(1, n > r ? u - d : n - t); o.push(" | " + " ".repeat(d) + "^".repeat(c)); } else if (l > s) { if (n > r) { const d = Math.max(Math.min(n - r, u), 1); o.push(" | " + "^".repeat(d)); } r += u + 1; } } break; } return o.join(` `); } function tr() { const e = /* @__PURE__ */ new Map(); return { events: e, on(n, a) { const r = e.get(n); r && r.push(a) || e.set(n, [a]); }, off(n, a) { const r = e.get(n); r && r.splice(r.indexOf(a) >>> 0, 1); }, emit(n, a) { (e.get(n) || []).slice().map((r) => r(a)), (e.get("*") || []).slice().map((r) => r(n, a)); } }; } const $n = (e) => !ce(e) || De(e); function Kn(e, t) { if ($n(e) || $n(t)) throw new Error("Invalid value"); const n = [{ src: e, des: t }]; for (; n.length; ) { const { src: a, des: r } = n.pop(); Object.keys(a).forEach((o) => { o !== "__proto__" && (ce(a[o]) && !ce(r[o]) && (r[o] = Array.isArray(a[o]) ? [] : ge()), $n(r[o]) || $n(a[o]) ? r[o] = a[o] : n.push({ src: a[o], des: r[o] })); }); } } /*! * message-compiler v11.1.10 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */ function Ul(e, t, n) { return { line: e, column: t, offset: n }; } function Ma(e, t, n) { return { start: e, end: t }; } const Z = { // tokenizer error codes EXPECTED_TOKEN: 1, INVALID_TOKEN_IN_PLACEHOLDER: 2, UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3, UNKNOWN_ESCAPE_SEQUENCE: 4, INVALID_UNICODE_ESCAPE_SEQUENCE: 5, UNBALANCED_CLOSING_BRACE: 6, UNTERMINATED_CLOSING_BRACE: 7, EMPTY_PLACEHOLDER: 8, NOT_ALLOW_NEST_PLACEHOLDER: 9, INVALID_LINKED_FORMAT: 10, // parser error codes MUST_HAVE_MESSAGES_IN_PLURAL: 11, UNEXPECTED_EMPTY_LINKED_MODIFIER: 12, UNEXPECTED_EMPTY_LINKED_KEY: 13, UNEXPECTED_LEXICAL_ANALYSIS: 14, // generator error codes UNHANDLED_CODEGEN_NODE_TYPE: 15, // minifier error codes UNHANDLED_MINIFIER_NODE_TYPE: 16 }, xl = 17, Vl = { // tokenizer error messages [Z.EXPECTED_TOKEN]: "Expected token: '{0}'", [Z.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'", [Z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder", [Z.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}", [Z.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}", [Z.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace", [Z.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace", [Z.EMPTY_PLACEHOLDER]: "Empty placeholder", [Z.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder", [Z.INVALID_LINKED_FORMAT]: "Invalid linked format", // parser error messages [Z.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages", [Z.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier", [Z.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key", [Z.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'", // generator error messages [Z.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'", // minimizer error messages [Z.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'" }; function un(e, t, n = {}) { const { domain: a, messages: r, args: o } = n, s = process.env.NODE_ENV !== "production" ? fa((r || Vl)[e] || "", ...o || []) : e, l = new SyntaxError(String(s)); return l.code = e, t && (l.location = t), l.domain = a, l; } function Bl(e) { throw e; } const Wl = /<\/?[\w\s="/.':;#-\/]+>/, Yl = (e) => Wl.test(e), Nt = " ", Hl = "\r", Ke = ` `, Gl = "\u2028", Kl = "\u2029"; function jl(e) { const t = e; let n = 0, a = 1, r = 1, o = 0; const s = (S) => t[S] === Hl && t[S + 1] === Ke, l = (S) => t[S] === Ke, i = (S) => t[S] === Kl, u = (S) => t[S] === Gl, d = (S) => s(S) || l(S) || i(S) || u(S), c = () => n, f = () => a, g = () => r, b = () => o, T = (S) => s(S) || i(S) || u(S) ? Ke : t[S], D = () => T(n), m = () => T(n + o); function _() { return o = 0, d(n) && (a++, r = 0), s(n) && n++, n++, r++, t[n]; } function y() { return s(n + o) && o++, o++, t[n + o]; } function h() { n = 0, a = 1, r = 1, o = 0; } function O(S = 0) { o = S; } function N() { const S = n + o; for (; S !== n; ) _(); o = 0; } return { index: c, line: f, column: g, peekOffset: b, charAt: T, currentChar: D, currentPeek: m, next: _, peek: y, reset: h, resetPeek: O, skipToPeek: N }; } const kt = void 0, Xl = ".", Dr = "'", zl = "tokenizer"; function ql(e, t = {}) { const n = t.location !== !1, a = jl(e), r = () => a.index(), o = () => Ul(a.line(), a.column(), a.index()), s = o(), l = r(), i = { currentType: 13, offset: l, startLoc: s, endLoc: s, lastType: 13, lastOffset: l, lastStartLoc: s, lastEndLoc: s, braceNest: 0, inLinked: !1, text: "" }, u = () => i, { onError: d } = t; function c(p, v, C, ...X) { const ke = u(); if (v.column += C, v.offset += C, d) { const Pe = n ? Ma(ke.startLoc, v) : null, fe = un(p, Pe, { domain: zl, args: X }); d(fe); } } function f(p, v, C) { p.endLoc = o(), p.currentType = v; const X = { type: v }; return n && (X.loc = Ma(p.startLoc, p.endLoc)), C != null && (X.value = C), X; } const g = (p) => f( p, 13 /* TokenTypes.EOF */ ); function b(p, v) { return p.currentChar() === v ? (p.next(), v) : (c(Z.EXPECTED_TOKEN, o(), 0, v), ""); } function T(p) { let v = ""; for (; p.currentPeek() === Nt || p.currentPeek() === Ke; ) v += p.currentPeek(), p.peek(); return v; } function D(p) { const v = T(p); return p.skipToPeek(), v; } function m(p) { if (p === kt) return !1; const v = p.charCodeAt(0); return v >= 97 && v <= 122 || // a-z v >= 65 && v <= 90 || // A-Z v === 95; } function _(p) { if (p === kt) return !1; const v = p.charCodeAt(0); return v >= 48 && v <= 57; } function y(p, v) { const { currentType: C } = v; if (C !== 2) return !1; T(p); const X = m(p.currentPeek()); return p.resetPeek(), X; } function h(p, v) { const { currentType: C } = v; if (C !== 2) return !1; T(p); const X = p.currentPeek() === "-" ? p.peek() : p.currentPeek(), ke = _(X); return p.resetPeek(), ke; } function O(p, v) { const { currentType: C } = v; if (C !== 2) return !1; T(p); const X = p.currentPeek() === Dr; return p.resetPeek(), X; } function N(p, v) { const { currentType: C } = v; if (C !== 7) return !1; T(p); const X = p.currentPeek() === "."; return p.resetPeek(), X; } function S(p, v) { const { currentType: C } = v; if (C !== 8) return !1; T(p); const X = m(p.currentPeek()); return p.resetPeek(), X; } function W(p, v) { const { currentType: C } = v; if (!(C === 7 || C === 11)) return !1; T(p); const X = p.currentPeek() === ":"; return p.resetPeek(), X; } function G(p, v) { const { currentType: C } = v; if (C !== 9) return !1; const X = () => { const Pe = p.currentPeek(); return Pe === "{" ? m(p.peek()) : Pe === "@" || Pe === "|" || Pe === ":" || Pe === "." || Pe === Nt || !Pe ? !1 : Pe === Ke ? (p.peek(), X()) : j(p, !1); }, ke = X(); return p.resetPeek(), ke; } function z(p) { T(p); const v = p.currentPeek() === "|"; return p.resetPeek(), v; } function j(p, v = !0) { const C = (ke = !1, Pe = "") => { const fe = p.currentPeek(); return fe === "{" || fe === "@" || !fe ? ke : fe === "|" ? !(Pe === Nt || Pe === Ke) : fe === Nt ? (p.peek(), C(!0, Nt)) : fe === Ke ? (p.peek(), C(!0, Ke)) : !0; }, X = C(); return v && p.resetPeek(), X; } function oe(p, v) { const C = p.currentChar(); return C === kt ? kt : v(C) ? (p.next(), C) : null; } function Ne(p) { const v = p.charCodeAt(0); return v >= 97 && v <= 122 || // a-z v >= 65 && v <= 90 || // A-Z v >= 48 && v <= 57 || // 0-9 v === 95 || // _ v === 36; } function Y(p) { return oe(p, Ne); } function $(p) { const v = p.charCodeAt(0); return v >= 97 && v <= 122 || // a-z v >= 65 && v <= 90 || // A-Z v >= 48 && v <= 57 || // 0-9 v === 95 || // _ v === 36 || // $ v === 45; } function P(p) { return oe(p, $); } function B(p) { const v = p.charCodeAt(0); return v >= 48 && v <= 57; } function R(p) { return oe(p, B); } function q(p) { const v = p.charCodeAt(0); return v >= 48 && v <= 57 || // 0-9 v >= 65 && v <= 70 || // A-F v >= 97 && v <= 102; } function K(p) { return oe(p, q); } function ae(p) { let v = "", C = ""; for (; v = R(p); ) C += v; return C; } function A(p) { let v = ""; for (; ; ) { const C = p.currentChar(); if (C === "{" || C === "}" || C === "@" || C === "|" || !C) break; if (C === Nt || C === Ke) if (j(p)) v += C, p.next(); else { if (z(p)) break; v += C, p.next(); } else v += C, p.next(); } return v; } function I(p) { D(p); let v = "", C = ""; for (; v = P(p); ) C += v; return p.currentChar() === kt && c(Z.UNTERMINATED_CLOSING_BRACE, o(), 0), C; } function L(p) { D(p); let v = ""; return p.currentChar() === "-" ? (p.next(), v += `-${ae(p)}`) : v += ae(p), p.currentChar() === kt && c(Z.UNTERMINATED_CLOSING_BRACE, o(), 0), v; } function F(p) { return p !== Dr && p !== Ke; } function pe(p) { D(p), b(p, "'"); let v = "", C = ""; for (; v = oe(p, F); ) v === "\\" ? C += et(p) : C += v; const X = p.currentChar(); return X === Ke || X === kt ? (c(Z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), X === Ke && (p.next(), b(p, "'")), C) : (b(p, "'"), C); } function et(p) { const v = p.currentChar(); switch (v) { case "\\": case "'": return p.next(), `\\${v}`; case "u": return Ve(p, v, 4); case "U": return Ve(p, v, 6); default: return c(Z.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, v), ""; } } function Ve(p, v, C) { b(p, v); let X = ""; for (let ke = 0; ke < C; ke++) { const Pe = K(p); if (!Pe) { c(Z.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${v}${X}${p.currentChar()}`); break; } X += Pe; } return `\\${v}${X}`; } function qe(p) { return p !== "{" && p !== "}" && p !== Nt && p !== Ke; } function Le(p) { D(p); let v = "", C = ""; for (; v = oe(p, qe); ) C += v; return C; } function He(p) { let v = "", C = ""; for (; v = Y(p); ) C += v; return C; } function wt(p) { const v = (C) => { const X = p.currentChar(); return X === "{" || X === "@" || X === "|" || X === "(" || X === ")" || !X || X === Nt ? C : (C += X, p.next(), v(C)); }; return v(""); } function gt(p) { D(p); const v = b( p, "|" /* TokenChars.Pipe */ ); return D(p), v; } function cn(p, v) { let C = null; switch (p.currentChar()) { case "{": return v.braceNest >= 1 && c(Z.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), p.next(), C = f( v, 2, "{" /* TokenChars.BraceLeft */ ), D(p), v.braceNest++, C; case "}": return v.braceNest > 0 && v.currentType === 2 && c(Z.EMPTY_PLACEHOLDER, o(), 0), p.next(), C = f( v, 3, "}" /* TokenChars.BraceRight */ ), v.braceNest--, v.braceNest > 0 && D(p), v.inLinked && v.braceNest === 0 && (v.inLinked = !1), C; case "@": return v.braceNest > 0 && c(Z.UNTERMINATED_CLOSING_BRACE, o(), 0), C = Ut(p, v) || g(v), v.braceNest = 0, C; default: { let ke = !0, Pe = !0, fe = !0; if (z(p)) return v.braceNest > 0 && c(Z.UNTERMINATED_CLOSING_BRACE, o(), 0), C = f(v, 1, gt(p)), v.braceNest = 0, v.inLinked = !1, C; if (v.braceNest > 0 && (v.currentType === 4 || v.currentType === 5 || v.currentType === 6)) return c(Z.UNTERMINATED_CLOSING_BRACE, o(), 0), v.braceNest = 0, dn(p, v); if (ke = y(p, v)) return C = f(v, 4, I(p)), D(p), C; if (Pe = h(p, v)) return C = f(v, 5, L(p)), D(p), C; if (fe = O(p, v)) return C = f(v, 6, pe(p)), D(p), C; if (!ke && !Pe && !fe) return C = f(v, 12, Le(p)), c(Z.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, C.value), D(p), C; break; } } return C; } function Ut(p, v) { const { currentType: C } = v; let X = null; const ke = p.currentChar(); switch ((C === 7 || C === 8 || C === 11 || C === 9) && (ke === Ke || ke === Nt) && c(Z.INVALID_LINKED_FORMAT, o(), 0), ke) { case "@": return p.next(), X = f( v, 7, "@" /* TokenChars.LinkedAlias */ ), v.inLinked = !0, X; case ".": return D(p), p.next(), f( v, 8, "." /* TokenChars.LinkedDot */ ); case ":": return D(p), p.next(), f( v, 9, ":" /* TokenChars.LinkedDelimiter */ ); default: return z(p) ? (X = f(v, 1, gt(p)), v.braceNest = 0, v.inLinked = !1, X) : N(p, v) || W(p, v) ? (D(p), Ut(p, v)) : S(p, v) ? (D(p), f(v, 11, He(p))) : G(p, v) ? (D(p), ke === "{" ? cn(p, v) || X : f(v, 10, wt(p))) : (C === 7 && c(Z.INVALID_LINKED_FORMAT, o(), 0), v.braceNest = 0, v.inLinked = !1, dn(p, v)); } } function dn(p, v) { let C = { type: 13 /* TokenTypes.EOF */ }; if (v.braceNest > 0) return cn(p, v) || g(v); if (v.inLinked) return Ut(p, v) || g(v); switch (p.currentChar()) { case "{": return cn(p, v) || g(v); case "}": return c(Z.UNBALANCED_CLOSING_BRACE, o(), 0), p.next(), f( v, 3, "}" /* TokenChars.BraceRight */ ); case "@": return Ut(p, v) || g(v); default: { if (z(p)) return C = f(v, 1, gt(p)), v.braceNest = 0, v.inLinked = !1, C; if (j(p)) return f(v, 0, A(p)); break; } } return C; } function ga() { const { currentType: p, offset: v, startLoc: C, endLoc: X } = i; return i.lastType = p, i.lastOffset = v, i.lastStartLoc = C, i.lastEndLoc = X, i.offset = r(), i.startLoc = o(), a.currentChar() === kt ? f( i, 13 /* TokenTypes.EOF */ ) : dn(a, i); } return { nextToken: ga, currentOffset: r, currentPosition: o, context: u }; } const Ql = "parser", Jl = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g; function Zl(e, t, n) { switch (e) { case "\\\\": return "\\"; // eslint-disable-next-line no-useless-escape case "\\'": return "'"; default: { const a = parseInt(t || n, 16); return a <= 55295 || a >= 57344 ? String.fromCodePoint(a) : "�"; } } } function ei(e = {}) { const t = e.location !== !1, { onError: n } = e; function a(m, _, y, h, ...O) { const N = m.currentPosition(); if (N.offset += h, N.column += h, n) { const S = t ? Ma(y, N) : null, W = un(_, S, { domain: Ql, args: O }); n(W); } } function r(m, _, y) { const h = { type: m }; return t && (h.start = _, h.end = _, h.loc = { start: y, end: y }), h; } function o(m, _, y, h) { t && (m.end = _, m.loc && (m.loc.end = y)); } function s(m, _) { const y = m.context(), h = r(3, y.offset, y.startLoc); return h.value = _, o(h, m.currentOffset(), m.currentPosition()), h; } function l(m, _) { const y = m.context(), { lastOffset: h, lastStartLoc: O } = y, N = r(5, h, O); return N.index = parseInt(_, 10), m.nextToken(), o(N, m.currentOffset(), m.currentPosition()), N; } function i(m, _) { const y = m.context(), { lastOffset: h, lastStartLoc: O } = y, N = r(4, h, O); return N.key = _, m.nextToken(), o(N, m.currentOffset(), m.currentPosition()), N; } function u(m, _) { const y = m.context(), { lastOffset: h, lastStartLoc: O } = y, N = r(9, h, O); return N.value = _.replace(Jl, Zl), m.nextToken(), o(N, m.currentOffset(), m.currentPosition()), N; } function d(m) { const _ = m.nextToken(), y = m.context(), { lastOffset: h, lastStartLoc: O } = y, N = r(8, h, O); return _.type !== 11 ? (a(m, Z.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0), N.value = "", o(N, h, O), { nextConsumeToken: _, node: N }) : (_.value == null && a(m, Z.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, _t(_)), N.value = _.value || "", o(N, m.currentOffset(), m.currentPosition()), { node: N }); } function c(m, _) { const y = m.context(), h = r(7, y.offset, y.startLoc); return h.value = _, o(h, m.currentOffset(), m.currentPosition()), h; } function f(m) { const _ = m.context(), y = r(6, _.offset, _.startLoc); let h = m.nextToken(); if (h.type === 8) { const O = d(m); y.modifier = O.node, h = O.nextConsumeToken || m.nextToken(); } switch (h.type !== 9 && a(m, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(h)), h = m.nextToken(), h.type === 2 && (h = m.nextToken()), h.type) { case 10: h.value == null && a(m, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(h)), y.key = c(m, h.value || ""); break; case 4: h.value == null && a(m, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(h)), y.key = i(m, h.value || ""); break; case 5: h.value == null && a(m, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(h)), y.key = l(m, h.value || ""); break; case 6: h.value == null && a(m, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(h)), y.key = u(m, h.value || ""); break; default: { a(m, Z.UNEXPECTED_EMPTY_LINKED_KEY, _.lastStartLoc, 0); const O = m.context(), N = r(7, O.offset, O.startLoc); return N.value = "", o(N, O.offset, O.startLoc), y.key = N, o(y, O.offset, O.startLoc), { nextConsumeToken: h, node: y }; } } return o(y, m.currentOffset(), m.currentPosition()), { node: y }; } function g(m) { const _ = m.context(), y = _.currentType === 1 ? m.currentOffset() : _.offset, h = _.currentType === 1 ? _.endLoc : _.startLoc, O = r(2, y, h); O.items = []; let N = null; do { const G = N || m.nextToken(); switch (N = null, G.type) { case 0: G.value == null && a(m, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(G)), O.items.push(s(m, G.value || "")); break; case 5: G.value == null && a(m, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(G)), O.items.push(l(m, G.value || "")); break; case 4: G.value == null && a(m, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(G)), O.items.push(i(m, G.value || "")); break; case 6: G.value == null && a(m, Z.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, _t(G)), O.items.push(u(m, G.value || "")); break; case 7: { const z = f(m); O.items.push(z.node), N = z.nextConsumeToken || null; break; } } } while (_.currentType !== 13 && _.currentType !== 1); const S = _.currentType === 1 ? _.lastOffset : m.currentOffset(), W = _.currentType === 1 ? _.lastEndLoc : m.currentPosition(); return o(O, S, W), O; } function b(m, _, y, h) { const O = m.context(); let N = h.items.length === 0; const S = r(1, _, y); S.cases = [], S.cases.push(h); do { const W = g(m); N || (N = W.items.length === 0), S.cases.push(W); } while (O.currentType !== 13); return N && a(m, Z.MUST_HAVE_MESSAGES_IN_PLURAL, y, 0), o(S, m.currentOffset(), m.currentPosition()), S; } function T(m) { const _ = m.context(), { offset: y, startLoc: h } = _, O = g(m); return _.currentType === 13 ? O : b(m, y, h, O); } function D(m) { const _ = ql(m, xe({}, e)), y = _.context(), h = r(0, y.offset, y.startLoc); return t && h.loc && (h.loc.source = m), h.body = T(_), e.onCacheKey && (h.cacheKey = e.onCacheKey(m)), y.currentType !== 13 && a(_, Z.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, m[y.offset] || ""), o(h, _.currentOffset(), _.currentPosition()), h; } return { parse: D }; } function _t(e) { if (e.type === 13) return "EOF"; const t = (e.value || "").replace(/\r?\n/gu, "\\n"); return t.length > 10 ? t.slice(0, 9) + "…" : t; } function ti(e, t = {}) { const n = { ast: e, helpers: /* @__PURE__ */ new Set() }; return { context: () => n, helper: (o) => (n.helpers.add(o), o) }; } function Cr(e, t) { for (let n = 0; n < e.length; n++) nr(e[n], t); } function nr(e, t) { switch (e.type) { case 1: Cr(e.cases, t), t.helper( "plural" /* HelperNameMap.PLURAL */ ); break; case 2: Cr(e.items, t); break; case 6: { nr(e.key, t), t.helper( "linked" /* HelperNameMap.LINKED */ ), t.helper( "type" /* HelperNameMap.TYPE */ ); break; } case 5: t.helper( "interpolate" /* HelperNameMap.INTERPOLATE */ ), t.helper( "list" /* HelperNameMap.LIST */ ); break; case 4: t.helper( "interpolate" /* HelperNameMap.INTERPOLATE */ ), t.helper( "named" /* HelperNameMap.NAMED */ ); break; } } function ni(e, t = {}) { const n = ti(e); n.helper( "normalize" /* HelperNameMap.NORMALIZE */ ), e.body && nr(e.body, n); const a = n.context(); e.helpers = Array.from(a.helpers); } function ai(e) { const t = e.body; return t.type === 2 ? Ar(t) : t.cases.forEach((n) => Ar(n)), e; } function Ar(e) { if (e.items.length === 1) { const t = e.items[0]; (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value); } else { const t = []; for (let n = 0; n < e.items.length; n++) { const a = e.items[n]; if (!(a.type === 3 || a.type === 9) || a.value == null) break; t.push(a.value); } if (t.length === e.items.length) { e.static = er(t); for (let n = 0; n < e.items.length; n++) { const a = e.items[n]; (a.type === 3 || a.type === 9) && delete a.value; } } } } const ri = "minifier"; function Zt(e) { switch (e.t = e.type, e.type) { case 0: { const t = e; Zt(t.body), t.b = t.body, delete t.body; break; } case 1: { const t = e, n = t.cases; for (let a = 0; a < n.length; a++) Zt(n[a]); t.c = n, delete t.cases; break; } case 2: { const t = e, n = t.items; for (let a = 0; a < n.length; a++) Zt(n[a]); t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static); break; } case 3: case 9: case 8: case 7: { const t = e; t.value && (t.v = t.value, delete t.value); break; } case 6: { const t = e; Zt(t.key), t.k = t.key, delete t.key, t.modifier && (Zt(t.modifier), t.m = t.modifier, delete t.modifier); break; } case 5: { const t = e; t.i = t.index, delete t.index; break; } case 4: { const t = e; t.k = t.key, delete t.key; break; } default: if (process.env.NODE_ENV !== "production") throw un(Z.UNHANDLED_MINIFIER_NODE_TYPE, null, { domain: ri, args: [e.type] }); } delete e.type; } const oi = "parser"; function si(e, t) { const { filename: n, breakLineCode: a, needIndent: r } = t, o = t.location !== !1, s = { filename: n, code: "", column: 1, line: 1, offset: 0, map: void 0, breakLineCode: a, needIndent: r, indentLevel: 0 }; o && e.loc && (s.source = e.loc.source); const l = () => s; function i(T, D) { s.code += T; } function u(T, D = !0) { const m = D ? a : ""; i(r ? m + " ".repeat(T) : m); } function d(T = !0) { const D = ++s.indentLevel; T && u(D); } function c(T = !0) { const D = --s.indentLevel; T && u(D); } function f() { u(s.indentLevel); } return { context: l, push: i, indent: d, deindent: c, newline: f, helper: (T) => `_${T}`, needIndent: () => s.needIndent }; } function li(e, t) { const { helper: n } = e; e.push(`${n( "linked" /* HelperNameMap.LINKED */ )}(`), sn(e, t.key), t.modifier ? (e.push(", "), sn(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")"); } function ii(e, t) { const { helper: n, needIndent: a } = e; e.push(`${n( "normalize" /* HelperNameMap.NORMALIZE */ )}([`), e.indent(a()); const r = t.items.length; for (let o = 0; o < r && (sn(e, t.items[o]), o !== r - 1); o++) e.push(", "); e.deindent(a()), e.push("])"); } function ui(e, t) { const { helper: n, needIndent: a } = e; if (t.cases.length > 1) { e.push(`${n( "plural" /* HelperNameMap.PLURAL */ )}([`), e.indent(a()); const r = t.cases.length; for (let o = 0; o < r && (sn(e, t.cases[o]), o !== r - 1); o++) e.push(", "); e.deindent(a()), e.push("])"); } } function ci(e, t) { t.body ? sn(e, t.body) : e.push("null"); } function sn(e, t) { const { helper: n } = e; switch (t.type) { case 0: ci(e, t); break; case 1: ui(e, t); break; case 2: ii(e, t); break; case 6: li(e, t); break; case 8: e.push(JSON.stringify(t.value), t); break; case 7: e.push(JSON.stringify(t.value), t); break; case 5: e.push(`${n( "interpolate" /* HelperNameMap.INTERPOLATE */ )}(${n( "list" /* HelperNameMap.LIST */ )}(${t.index}))`, t); break; case 4: e.push(`${n( "interpolate" /* HelperNameMap.INTERPOLATE */ )}(${n( "named" /* HelperNameMap.NAMED */ )}(${JSON.stringify(t.key)}))`, t); break; case 9: e.push(JSON.stringify(t.value), t); break; case 3: e.push(JSON.stringify(t.value), t); break; default: if (process.env.NODE_ENV !== "production") throw un(Z.UNHANDLED_CODEGEN_NODE_TYPE, null, { domain: oi, args: [t.type] }); } } const di = (e, t = {}) => { const n = U(t.mode) ? t.mode : "normal", a = U(t.filename) ? t.filename : "message.intl"; t.sourceMap; const r = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : ` `, o = t.needIndent ? t.needIndent : n !== "arrow", s = e.helpers || [], l = si(e, { filename: a, breakLineCode: r, needIndent: o }); l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(o), s.length > 0 && (l.push(`const { ${er(s.map((d) => `${d}: _${d}`), ", ")} } = ctx`), l.newline()), l.push("return "), sn(l, e), l.deindent(o), l.push("}"), delete e.helpers; const { code: i, map: u } = l.context(); return { ast: e, code: i, map: u ? u.toJSON() : void 0 // eslint-disable-line @typescript-eslint/no-explicit-any }; }; function fi(e, t = {}) { const n = xe({}, t), a = !!n.jit, r = !!n.minify, o = n.optimize == null ? !0 : n.optimize, l = ei(n).parse(e); return a ? (o && ai(l), r && Zt(l), { ast: l, code: "" }) : (ni(l, n), di(l, n)); } /*! * core-base v11.1.10 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */ function mi() { typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Gt().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Gt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1); } function ct(e) { return ce(e) && ar(e) === 0 && (pt(e, "b") || pt(e, "body")); } const Mo = ["b", "body"]; function pi(e) { return Ft(e, Mo); } const Fo = ["c", "cases"]; function hi(e) { return Ft(e, Fo, []); } const $o = ["s", "static"]; function vi(e) { return Ft(e, $o); } const Uo = ["i", "items"]; function gi(e) { return Ft(e, Uo, []); } const xo = ["t", "type"]; function ar(e) { return Ft(e, xo); } const Vo = ["v", "value"]; function Un(e, t) { const n = Ft(e, Vo); if (n != null) return n; throw Tn(t); } const Bo = ["m", "modifier"]; function _i(e) { return Ft(e, Bo); } const Wo = ["k", "key"]; function Ei(e) { const t = Ft(e, Wo); if (t) return t; throw Tn( 6 /* NodeTypes.Linked */ ); } function Ft(e, t, n) { for (let a = 0; a < t.length; a++) { const r = t[a]; if (pt(e, r) && e[r] != null) return e[r]; } return n; } const Yo = [ ...Mo, ...Fo, ...$o, ...Uo, ...Wo, ...Bo, ...Vo, ...xo ]; function Tn(e) { return new Error(`unhandled node type: ${e}`); } function ya(e) { return (n) => bi(n, e); } function bi(e, t) { const n = pi(t); if (n == null) throw Tn( 0 /* NodeTypes.Resource */ ); if (ar(n) === 1) { const o = hi(n); return e.plural(o.reduce((s, l) => [ ...s, Lr(e, l) ], [])); } else return Lr(e, n); } function Lr(e, t) { const n = vi(t); if (n != null) return e.type === "text" ? n : e.normalize([n]); { const a = gi(t).reduce((r, o) => [...r, Fa(e, o)], []); return e.normalize(a); } } function Fa(e, t) { const n = ar(t); switch (n) { case 3: return Un(t, n); case 9: return Un(t, n); case 4: { const a = t; if (pt(a, "k") && a.k) return e.interpolate(e.named(a.k)); if (pt(a, "key") && a.key) return e.interpolate(e.named(a.key)); throw Tn(n); } case 5: { const a = t; if (pt(a, "i") && Ue(a.i)) return e.interpolate(e.list(a.i)); if (pt(a, "index") && Ue(a.index)) return e.interpolate(e.list(a.index)); throw Tn(n); } case 6: { const a = t, r = _i(a), o = Ei(a); return e.linked(Fa(e, o), r ? Fa(e, r) : void 0, e.type); } case 7: return Un(t, n); case 8: return Un(t, n); default: throw new Error(`unhandled node on format message part: ${n}`); } } const yi = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS."; function Si(e, t) { t && Yl(e) && At(fa(yi, { source: e })); } const Ti = (e) => e; let xn = ge(); function Ii(e, t = {}) { let n = !1; const a = t.onError || Bl; return t.onError = (r) => { n = !0, a(r); }, { ...fi(e, t), detectError: n }; } // @__NO_SIDE_EFFECTS__ function wi(e, t) { if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && U(e)) { const n = de(t.warnHtmlMessage) ? t.warnHtmlMessage : !0; process.env.NODE_ENV !== "production" && Si(e, n); const r = (t.onCacheKey || Ti)(e), o = xn[r]; if (o) return o; const { ast: s, detectError: l } = Ii(e, { ...t, location: process.env.NODE_ENV !== "production", jit: !0 }), i = ya(s); return l ? i : xn[r] = i; } else { if (process.env.NODE_ENV !== "production" && !ct(e)) return At(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e; const n = e.cacheKey; if (n) { const a = xn[n]; return a || (xn[n] = ya(e)); } else return ya(e); } } let In = null; function Ni(e) { In = e; } function Oi(e, t, n) { In && In.emit("i18n:init", { timestamp: Date.now(), i18n: e, version: t, meta: n }); } const Di = /* @__PURE__ */ Ci("function:translate"); function Ci(e) { return (t) => In && In.emit(e, t); } const Ye = { INVALID_ARGUMENT: xl, // 17 INVALID_DATE_ARGUMENT: 18, INVALID_ISO_DATE_ARGUMENT: 19, NOT_SUPPORT_NON_STRING_MESSAGE: 20, NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21, NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22, NOT_SUPPORT_LOCALE_TYPE: 23 }, Ai = 24; function Ot(e) { return un(e, null, process.env.NODE_ENV !== "production" ? { messages: Li } : void 0); } const Li = { [Ye.INVALID_ARGUMENT]: "Invalid arguments", [Ye.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.", [Ye.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string", [Ye.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message", [Ye.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value", [Ye.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function", [Ye.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type" }; function rr(e, t) { return t.locale != null ? kr(t.locale) : kr(e.locale); } let Sa; function kr(e) { if (U(e)) return e; if (_e(e)) { if (e.resolvedOnce && Sa != null) return Sa; if (e.constructor.name === "Function") { const t = e(); if (Ml(t)) throw Ot(Ye.NOT_SUPPORT_LOCALE_PROMISE_VALUE); return Sa = t; } else throw Ot(Ye.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION); } else throw Ot(Ye.NOT_SUPPORT_LOCALE_TYPE); } function ki(e, t, n) { return [.../* @__PURE__ */ new Set([ n, ...De(t) ? t : ce(t) ? Object.keys(t) : U(t) ? [t] : [n] ])]; } function Ho(e, t, n) { const a = U(n) ? n : wn, r = e; r.__localeChainCache || (r.__localeChainCache = /* @__PURE__ */ new Map()); let o = r.__localeChainCache.get(a); if (!o) { o = []; let s = [n]; for (; De(s); ) s = Pr(o, s, t); const l = De(t) || !re(t) ? t : t.default ? t.default : null; s = U(l) ? [l] : l, De(s) && Pr(o, s, !1), r.__localeChainCache.set(a, o); } return o; } function Pr(e, t, n) { let a = !0; for (let r = 0; r < t.length && de(a); r++) { const o = t[r]; U(o) && (a = Pi(e, t[r], n)); } return a; } function Pi(e, t, n) { let a; const r = t.split("-"); do { const o = r.join("-"); a = Ri(e, o, n), r.splice(-1, 1); } while (r.length && a === !0); return a; } function Ri(e, t, n) { let a = !1; if (!e.includes(t) && (a = !0, t)) { a = t[t.length - 1] !== "!"; const r = t.replace(/!/g, ""); e.push(r), (De(n) || re(n)) && n[r] && (a = n[r]); } return a; } const $t = []; $t[ 0 /* States.BEFORE_PATH */ ] = { w: [ 0 /* States.BEFORE_PATH */ ], i: [ 3, 0 /* Actions.APPEND */ ], "[": [ 4 /* States.IN_SUB_PATH */ ], o: [ 7 /* States.AFTER_PATH */ ] }; $t[ 1 /* States.IN_PATH */ ] = { w: [ 1 /* States.IN_PATH */ ], ".": [ 2 /* States.BEFORE_IDENT */ ], "[": [ 4 /* States.IN_SUB_PATH */ ], o: [ 7 /* States.AFTER_PATH */ ] }; $t[ 2 /* States.BEFORE_IDENT */ ] = { w: [ 2 /* States.BEFORE_IDENT */ ], i: [ 3, 0 /* Actions.APPEND */ ], 0: [ 3, 0 /* Actions.APPEND */ ] }; $t[ 3 /* States.IN_IDENT */ ] = { i: [ 3, 0 /* Actions.APPEND */ ], 0: [ 3, 0 /* Actions.APPEND */ ], w: [ 1, 1 /* Actions.PUSH */ ], ".": [ 2, 1 /* Actions.PUSH */ ], "[": [ 4, 1 /* Actions.PUSH */ ], o: [ 7, 1 /* Actions.PUSH */ ] }; $t[ 4 /* States.IN_SUB_PATH */ ] = { "'": [ 5, 0 /* Actions.APPEND */ ], '"': [ 6, 0 /* Actions.APPEND */ ], "[": [ 4, 2 /* Actions.INC_SUB_PATH_DEPTH */ ], "]": [ 1, 3 /* Actions.PUSH_SUB_PATH */ ], o: 8, l: [ 4, 0 /* Actions.APPEND */ ] }; $t[ 5 /* States.IN_SINGLE_QUOTE */ ] = { "'": [ 4, 0 /* Actions.APPEND */ ], o: 8, l: [ 5, 0 /* Actions.APPEND */ ] }; $t[ 6 /* States.IN_DOUBLE_QUOTE */ ] = { '"': [ 4, 0 /* Actions.APPEND */ ], o: 8, l: [ 6, 0 /* Actions.APPEND */ ] }; const Mi = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/; function Fi(e) { return Mi.test(e); } function $i(e) { const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1); return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e; } function Ui(e) { if (e == null) return "o"; switch (e.charCodeAt(0)) { case 91: // [ case 93: // ] case 46: // . case 34: // " case 39: return e; case 95: // _ case 36: // $ case 45: return "i"; case 9: // Tab (HT) case 10: // Newline (LF) case 13: // Return (CR) case 160: // No-break space (NBSP) case 65279: // Byte Order Mark (BOM) case 8232: // Line Separator (LS) case 8233: return "w"; } return "i"; } function xi(e) { const t = e.trim(); return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Fi(t) ? $i(t) : "*" + t; } function Vi(e) { const t = []; let n = -1, a = 0, r = 0, o, s, l, i, u, d, c; const f = []; f[ 0 /* Actions.APPEND */ ] = () => { s === void 0 ? s = l : s += l; }, f[ 1 /* Actions.PUSH */ ] = () => { s !== void 0 && (t.push(s), s = void 0); }, f[ 2 /* Actions.INC_SUB_PATH_DEPTH */ ] = () => { f[ 0 /* Actions.APPEND */ ](), r++; }, f[ 3 /* Actions.PUSH_SUB_PATH */ ] = () => { if (r > 0) r--, a = 4, f[ 0 /* Actions.APPEND */ ](); else { if (r = 0, s === void 0 || (s = xi(s), s === !1)) return !1; f[ 1 /* Actions.PUSH */ ](); } }; function g() { const b = e[n + 1]; if (a === 5 && b === "'" || a === 6 && b === '"') return n++, l = "\\" + b, f[ 0 /* Actions.APPEND */ ](), !0; } for (; a !== null; ) if (n++, o = e[n], !(o === "\\" && g())) { if (i = Ui(o), c = $t[a], u = c[i] || c.l || 8, u === 8 || (a = u[0], u[1] !== void 0 && (d = f[u[1]], d && (l = o, d() === !1)))) return; if (a === 7) return t; } } const Rr = /* @__PURE__ */ new Map(); function Bi(e, t) { return ce(e) ? e[t] : null; } function Wi(e, t) { if (!ce(e)) return null; let n = Rr.get(t); if (n || (n = Vi(t), n && Rr.set(t, n)), !n) return null; const a = n.length; let r = e, o = 0; for (; o < a; ) { const s = n[o]; if (Yo.includes(s) && ct(r)) return null; const l = r[s]; if (l === void 0 || _e(r)) return null; r = l, o++; } return r; } const Je = { NOT_FOUND_KEY: 1, FALLBACK_TO_TRANSLATE: 2, CANNOT_FORMAT_NUMBER: 3, FALLBACK_TO_NUMBER_FORMAT: 4, CANNOT_FORMAT_DATE: 5, FALLBACK_TO_DATE_FORMAT: 6, EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7 }, Yi = 8, Hi = { [Je.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.", [Je.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.", [Je.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.", [Je.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.", [Je.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.", [Je.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.", [Je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future." }; function jt(e, ...t) { return fa(Hi[e], ...t); } const Gi = "11.1.10", pa = -1, wn = "en-US", na = "", Mr = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`; function Ki() { return { upper: (e, t) => t === "text" && U(e) ? e.toUpperCase() : t === "vnode" && ce(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e, lower: (e, t) => t === "text" && U(e) ? e.toLowerCase() : t === "vnode" && ce(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e, capitalize: (e, t) => t === "text" && U(e) ? Mr(e) : t === "vnode" && ce(e) && "__v_isVNode" in e ? Mr(e.children) : e }; } let Go; function ji(e) { Go = e; } let Ko; function Xi(e) { Ko = e; } let jo; function zi(e) { jo = e; } let Xo = null; const qi = /* @__NO_SIDE_EFFECTS__ */ (e) => { Xo = e; }, Qi = /* @__NO_SIDE_EFFECTS__ */ () => Xo; let zo = null; const Fr = (e) => { zo = e; }, Ji = () => zo; let $r = 0; function Zi(e = {}) { const t = _e(e.onWarn) ? e.onWarn : At, n = U(e.version) ? e.version : Gi, a = U(e.locale) || _e(e.locale) ? e.locale : wn, r = _e(a) ? wn : a, o = De(e.fallbackLocale) || re(e.fallbackLocale) || U(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, s = re(e.messages) ? e.messages : Ta(r), l = re(e.datetimeFormats) ? e.datetimeFormats : Ta(r), i = re(e.numberFormats) ? e.numberFormats : Ta(r), u = xe(ge(), e.modifiers, Ki()), d = e.pluralRules || ge(), c = _e(e.missing) ? e.missing : null, f = de(e.missingWarn) || on(e.missingWarn) ? e.missingWarn : !0, g = de(e.fallbackWarn) || on(e.fallbackWarn) ? e.fallbackWarn : !0, b = !!e.fallbackFormat, T = !!e.unresolving, D = _e(e.postTranslation) ? e.postTranslation : null, m = re(e.processor) ? e.processor : null, _ = de(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, h = _e(e.messageCompiler) ? e.messageCompiler : Go; process.env.NODE_ENV !== "production" && _e(e.messageCompiler) && Ja(jt(Je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER)); const O = _e(e.messageResolver) ? e.messageResolver : Ko || Bi, N = _e(e.localeFallbacker) ? e.localeFallbacker : jo || ki, S = ce(e.fallbackContext) ? e.fallbackContext : void 0, W = e, G = ce(W.__datetimeFormatters) ? W.__datetimeFormatters : /* @__PURE__ */ new Map(), z = ce(W.__numberFormatters) ? W.__numberFormatters : /* @__PURE__ */ new Map(), j = ce(W.__meta) ? W.__meta : {}; $r++; const oe = { version: n, cid: $r, locale: a, fallbackLocale: o, messages: s, modifiers: u, pluralRules: d, missing: c, missingWarn: f, fallbackWarn: g, fallbackFormat: b, unresolving: T, postTranslation: D, processor: m, warnHtmlMessage: _, escapeParameter: y, messageCompiler: h, messageResolver: O, localeFallbacker: N, fallbackContext: S, onWarn: t, __meta: j }; return oe.datetimeFormats = l, oe.numberFormats = i, oe.__datetimeFormatters = G, oe.__numberFormatters = z, process.env.NODE_ENV !== "production" && (oe.__v_emitter = W.__v_emitter != null ? W.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Oi(oe, n, j), oe; } const Ta = (e) => ({ [e]: ge() }); function ha(e, t) { return e instanceof RegExp ? e.test(t) : e; } function qo(e, t) { return e instanceof RegExp ? e.test(t) : e; } function or(e, t, n, a, r) { const { missing: o, onWarn: s } = e; if (process.env.NODE_ENV !== "production") { const l = e.__v_emitter; l && l.emit("missing", { locale: n, key: t, type: r, groupId: `${r}:${t}` }); } if (o !== null) { const l = o(e, n, t, r); return U(l) ? l : t; } else return process.env.NODE_ENV !== "production" && qo(a, t) && s(jt(Je.NOT_FOUND_KEY, { key: t, locale: n })), t; } function fn(e, t, n) { const a = e; a.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t); } function Qo(e, t) { return e === t ? !1 : e.split("-")[0] === t.split("-")[0]; } function eu(e, t) { const n = t.indexOf(e); if (n === -1) return !1; for (let a = n + 1; a < t.length; a++) if (Qo(e, t[a])) return !0; return !1; } const Ur = typeof Intl < "u", Jo = { dateTimeFormat: Ur && typeof Intl.DateTimeFormat < "u", numberFormat: Ur && typeof Intl.NumberFormat < "u" }; function xr(e, ...t) { const { datetimeFormats: n, unresolving: a, fallbackLocale: r, onWarn: o, localeFallbacker: s } = e, { __datetimeFormatters: l } = e; if (process.env.NODE_ENV !== "production" && !Jo.d