@agendize/design-system
Version:
Agendize web design system
1,735 lines • 3.55 MB
JavaScript
var ZP = Object.defineProperty;
var KP = (t, n, s) => n in t ? ZP(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s;
var Cr = (t, n, s) => KP(t, typeof n != "symbol" ? n + "" : n, s);
import { getCurrentInstance as yx, inject as Df, ref as Qe, shallowRef as ay, computed as Ve, watch as Si, onMounted as lr, onUnmounted as Ug, defineComponent as jt, h as pg, createVNode as Rt, Text as A5, Fragment as Pi, resolveDirective as Ja, createElementBlock as ve, createCommentVNode as et, openBlock as ne, normalizeClass as mt, withDirectives as ji, createElementVNode as we, toDisplayString as kt, unref as ee, renderSlot as Qt, normalizeProps as ca, guardReactiveProps as Pa, createBlock as Vt, withCtx as Zt, vModelText as ps, vShow as br, watchEffect as e1, toValue as Zr, nextTick as Oa, onBeforeUnmount as S5, withKeys as Ji, createTextVNode as Un, toRefs as E5, onActivated as XP, onDeactivated as QP, renderList as ln, vModelCheckbox as t1, normalizeStyle as Ar, reactive as i1, resolveDynamicComponent as Ys, mergeProps as eo, toRef as oy, provide as jg, isRef as Aa, resolveComponent as go, toHandlers as mg, withModifiers as vn, Transition as gg, vModelRadio as vx, mergeModels as Rr, useModel as Ca, vModelDynamic as JP, useSlots as na, createSlots as $f, getCurrentScope as eD, onScopeDispose as tD, pushScopeId as iD, popScopeId as nD, createApp as rD, withScopeId as aD, mergeDefaults as C5, createStaticVNode as bx, Comment as oD, Teleport as M5, useCssVars as sD, onErrorCaptured as lD } from "vue";
import { getStandardLocale as Sa, getCountriesForSelect as cD } from "@agendize/az-i18n";
var yn = /* @__PURE__ */ ((t) => (t[t.mandatory = 0] = "mandatory", t[t.optional = 1] = "optional", t[t.ignore = 2] = "ignore", t[t.ignoreWithStar = 3] = "ignoreWithStar", t))(yn || {});
const _g = "fa-regular fa-spinner-third fa-spin";
function uD(t, n, s = "modelValue") {
t && (t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement) && (t.matches('[type="checkbox"]') ? n("update:" + s, t.value !== "true") : n("update:" + s, t.value));
}
function dD(t) {
if (t === "title")
return 1;
if (t === "title2")
return 2;
if (t === "title3")
return 3;
}
function xx(t, n, s = !1) {
return t === "title" || t === "title2" || t === "title3" || t === "label" ? 2 : n === !0 ? s ? 3 : 0 : 1;
}
function hD(t) {
return t === "date" ? "date" : null;
}
function yg(t, n) {
return t === "auto" || t === "autoOnError" && n !== void 0 && (n === !0 || n !== "");
}
/*!
* shared v11.0.1
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/
const tc = typeof window < "u";
let Yo, kd;
if (process.env.NODE_ENV !== "production") {
const t = tc && window.performance;
t && t.mark && t.measure && t.clearMarks && // @ts-ignore browser compat
t.clearMeasures && (Yo = (n) => {
t.mark(n);
}, kd = (n, s, u) => {
t.measure(n, s, u), t.clearMarks(s), t.clearMarks(u);
});
}
const fD = /\{([0-9a-zA-Z]+)\}/g;
function n1(t, ...n) {
return n.length === 1 && gr(n[0]) && (n = n[0]), (!n || !n.hasOwnProperty) && (n = {}), t.replace(fD, (s, u) => n.hasOwnProperty(u) ? n[u] : "");
}
const lc = (t, n = !1) => n ? Symbol.for(t) : Symbol(t), pD = (t, n, s) => mD({ l: t, k: n, s }), mD = (t) => JSON.stringify(t).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Da = (t) => typeof t == "number" && isFinite(t), gD = (t) => wx(t) === "[object Date]", $y = (t) => wx(t) === "[object RegExp]", r1 = (t) => mr(t) && Object.keys(t).length === 0, ka = Object.assign, _D = Object.create, Ir = (t = null) => _D(t);
let mT;
const Md = () => mT || (mT = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : Ir());
function gT(t) {
return t.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
}
const yD = Object.prototype.hasOwnProperty;
function qs(t, n) {
return yD.call(t, n);
}
const Ea = Array.isArray, Gr = (t) => typeof t == "function", Ki = (t) => typeof t == "string", ua = (t) => typeof t == "boolean", gr = (t) => t !== null && typeof t == "object", vD = (t) => gr(t) && Gr(t.then) && Gr(t.catch), I5 = Object.prototype.toString, wx = (t) => I5.call(t), mr = (t) => wx(t) === "[object Object]", bD = (t) => t == null ? "" : Ea(t) || mr(t) && t.toString === I5 ? JSON.stringify(t, null, 2) : String(t);
function $x(t, n = "") {
return t.reduce((s, u, y) => y === 0 ? s + u : s + n + u, "");
}
const _T = 2;
function xD(t, n = 0, s = t.length) {
const u = t.split(/\r?\n/);
let y = 0;
const $ = [];
for (let S = 0; S < u.length; S++)
if (y += u[S].length + 1, y >= n) {
for (let r = S - _T; r <= S + _T || s > y; r++) {
if (r < 0 || r >= u.length)
continue;
const D = r + 1;
$.push(`${D}${" ".repeat(3 - String(D).length)}| ${u[r]}`);
const O = u[r].length;
if (r === S) {
const U = n - (y - O) + 1, H = Math.max(1, s > y ? O - U : s - n);
$.push(" | " + " ".repeat(U) + "^".repeat(H));
} else if (r > S) {
if (s > y) {
const U = Math.max(Math.min(s - y, O), 1);
$.push(" | " + "^".repeat(U));
}
y += O + 1;
}
}
break;
}
return $.join(`
`);
}
function Au(t, n) {
typeof console < "u" && (console.warn("[intlify] " + t), n && console.warn(n.stack));
}
const yT = {};
function wD(t) {
yT[t] || (yT[t] = !0, Au(t));
}
function $D() {
const t = /* @__PURE__ */ new Map();
return {
events: t,
on(s, u) {
const y = t.get(s);
y && y.push(u) || t.set(s, [u]);
},
off(s, u) {
const y = t.get(s);
y && y.splice(y.indexOf(u) >>> 0, 1);
},
emit(s, u) {
(t.get(s) || []).slice().map((y) => y(u)), (t.get("*") || []).slice().map((y) => y(s, u));
}
};
}
const U_ = (t) => !gr(t) || Ea(t);
function sy(t, n) {
if (U_(t) || U_(n))
throw new Error("Invalid value");
const s = [{ src: t, des: n }];
for (; s.length; ) {
const { src: u, des: y } = s.pop();
Object.keys(u).forEach(($) => {
$ !== "__proto__" && (gr(u[$]) && !gr(y[$]) && (y[$] = Array.isArray(u[$]) ? [] : Ir()), U_(y[$]) || U_(u[$]) ? y[$] = u[$] : s.push({ src: u[$], des: y[$] }));
});
}
}
/*!
* message-compiler v11.0.1
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/
function TD(t, n, s) {
return { line: t, column: n, offset: s };
}
function yb(t, n, s) {
return { start: t, end: n };
}
const On = {
// 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
}, AD = 17, SD = {
// tokenizer error messages
[On.EXPECTED_TOKEN]: "Expected token: '{0}'",
[On.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
[On.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
[On.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
[On.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
[On.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
[On.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
[On.EMPTY_PLACEHOLDER]: "Empty placeholder",
[On.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
[On.INVALID_LINKED_FORMAT]: "Invalid linked format",
// parser error messages
[On.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
[On.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
[On.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
[On.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
// generator error messages
[On.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
// minimizer error messages
[On.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
};
function Of(t, n, s = {}) {
const { domain: u, messages: y, args: $ } = s, S = process.env.NODE_ENV !== "production" ? n1((y || SD)[t] || "", ...$ || []) : t, r = new SyntaxError(String(S));
return r.code = t, n && (r.location = n), r.domain = u, r;
}
function ED(t) {
throw t;
}
const CD = /<\/?[\w\s="/.':;#-\/]+>/, MD = (t) => CD.test(t), Wl = " ", ID = "\r", po = `
`, zD = "\u2028", PD = "\u2029";
function DD(t) {
const n = t;
let s = 0, u = 1, y = 1, $ = 0;
const S = (fe) => n[fe] === ID && n[fe + 1] === po, r = (fe) => n[fe] === po, D = (fe) => n[fe] === PD, O = (fe) => n[fe] === zD, U = (fe) => S(fe) || r(fe) || D(fe) || O(fe), H = () => s, Z = () => u, Y = () => y, le = () => $, J = (fe) => S(fe) || D(fe) || O(fe) ? po : n[fe], ce = () => J(s), X = () => J(s + $);
function se() {
return $ = 0, U(s) && (u++, y = 0), S(s) && s++, s++, y++, n[s];
}
function ye() {
return S(s + $) && $++, $++, n[s + $];
}
function de() {
s = 0, u = 1, y = 1, $ = 0;
}
function Ce(fe = 0) {
$ = fe;
}
function Me() {
const fe = s + $;
for (; fe !== s; )
se();
$ = 0;
}
return {
index: H,
line: Z,
column: Y,
peekOffset: le,
charAt: J,
currentChar: ce,
currentPeek: X,
next: se,
peek: ye,
reset: de,
resetPeek: Ce,
skipToPeek: Me
};
}
const su = void 0, OD = ".", vT = "'", kD = "tokenizer";
function LD(t, n = {}) {
const s = n.location !== !1, u = DD(t), y = () => u.index(), $ = () => TD(u.line(), u.column(), u.index()), S = $(), r = y(), D = {
currentType: 13,
offset: r,
startLoc: S,
endLoc: S,
lastType: 13,
lastOffset: r,
lastStartLoc: S,
lastEndLoc: S,
braceNest: 0,
inLinked: !1,
text: ""
}, O = () => D, { onError: U } = n;
function H(Ne, it, Kt, ...Ot) {
const pi = O();
if (it.column += Kt, it.offset += Kt, U) {
const xi = s ? yb(pi.startLoc, it) : null, Xt = Of(Ne, xi, {
domain: kD,
args: Ot
});
U(Xt);
}
}
function Z(Ne, it, Kt) {
Ne.endLoc = $(), Ne.currentType = it;
const Ot = { type: it };
return s && (Ot.loc = yb(Ne.startLoc, Ne.endLoc)), Kt != null && (Ot.value = Kt), Ot;
}
const Y = (Ne) => Z(
Ne,
13
/* TokenTypes.EOF */
);
function le(Ne, it) {
return Ne.currentChar() === it ? (Ne.next(), it) : (H(On.EXPECTED_TOKEN, $(), 0, it), "");
}
function J(Ne) {
let it = "";
for (; Ne.currentPeek() === Wl || Ne.currentPeek() === po; )
it += Ne.currentPeek(), Ne.peek();
return it;
}
function ce(Ne) {
const it = J(Ne);
return Ne.skipToPeek(), it;
}
function X(Ne) {
if (Ne === su)
return !1;
const it = Ne.charCodeAt(0);
return it >= 97 && it <= 122 || // a-z
it >= 65 && it <= 90 || // A-Z
it === 95;
}
function se(Ne) {
if (Ne === su)
return !1;
const it = Ne.charCodeAt(0);
return it >= 48 && it <= 57;
}
function ye(Ne, it) {
const { currentType: Kt } = it;
if (Kt !== 2)
return !1;
J(Ne);
const Ot = X(Ne.currentPeek());
return Ne.resetPeek(), Ot;
}
function de(Ne, it) {
const { currentType: Kt } = it;
if (Kt !== 2)
return !1;
J(Ne);
const Ot = Ne.currentPeek() === "-" ? Ne.peek() : Ne.currentPeek(), pi = se(Ot);
return Ne.resetPeek(), pi;
}
function Ce(Ne, it) {
const { currentType: Kt } = it;
if (Kt !== 2)
return !1;
J(Ne);
const Ot = Ne.currentPeek() === vT;
return Ne.resetPeek(), Ot;
}
function Me(Ne, it) {
const { currentType: Kt } = it;
if (Kt !== 7)
return !1;
J(Ne);
const Ot = Ne.currentPeek() === ".";
return Ne.resetPeek(), Ot;
}
function fe(Ne, it) {
const { currentType: Kt } = it;
if (Kt !== 8)
return !1;
J(Ne);
const Ot = X(Ne.currentPeek());
return Ne.resetPeek(), Ot;
}
function Be(Ne, it) {
const { currentType: Kt } = it;
if (!(Kt === 7 || Kt === 11))
return !1;
J(Ne);
const Ot = Ne.currentPeek() === ":";
return Ne.resetPeek(), Ot;
}
function Ct(Ne, it) {
const { currentType: Kt } = it;
if (Kt !== 9)
return !1;
const Ot = () => {
const xi = Ne.currentPeek();
return xi === "{" ? X(Ne.peek()) : xi === "@" || xi === "|" || xi === ":" || xi === "." || xi === Wl || !xi ? !1 : xi === po ? (Ne.peek(), Ot()) : ut(Ne, !1);
}, pi = Ot();
return Ne.resetPeek(), pi;
}
function nt(Ne) {
J(Ne);
const it = Ne.currentPeek() === "|";
return Ne.resetPeek(), it;
}
function ut(Ne, it = !0) {
const Kt = (pi = !1, xi = "") => {
const Xt = Ne.currentPeek();
return Xt === "{" || Xt === "@" || !Xt ? pi : Xt === "|" ? !(xi === Wl || xi === po) : Xt === Wl ? (Ne.peek(), Kt(!0, Wl)) : Xt === po ? (Ne.peek(), Kt(!0, po)) : !0;
}, Ot = Kt();
return it && Ne.resetPeek(), Ot;
}
function Ut(Ne, it) {
const Kt = Ne.currentChar();
return Kt === su ? su : it(Kt) ? (Ne.next(), Kt) : null;
}
function Jt(Ne) {
const it = Ne.charCodeAt(0);
return it >= 97 && it <= 122 || // a-z
it >= 65 && it <= 90 || // A-Z
it >= 48 && it <= 57 || // 0-9
it === 95 || // _
it === 36;
}
function gi(Ne) {
return Ut(Ne, Jt);
}
function lt(Ne) {
const it = Ne.charCodeAt(0);
return it >= 97 && it <= 122 || // a-z
it >= 65 && it <= 90 || // A-Z
it >= 48 && it <= 57 || // 0-9
it === 95 || // _
it === 36 || // $
it === 45;
}
function xt(Ne) {
return Ut(Ne, lt);
}
function pt(Ne) {
const it = Ne.charCodeAt(0);
return it >= 48 && it <= 57;
}
function Ft(Ne) {
return Ut(Ne, pt);
}
function Mt(Ne) {
const it = Ne.charCodeAt(0);
return it >= 48 && it <= 57 || // 0-9
it >= 65 && it <= 70 || // A-F
it >= 97 && it <= 102;
}
function Tt(Ne) {
return Ut(Ne, Mt);
}
function ui(Ne) {
let it = "", Kt = "";
for (; it = Ft(Ne); )
Kt += it;
return Kt;
}
function wt(Ne) {
let it = "";
for (; ; ) {
const Kt = Ne.currentChar();
if (Kt === "{" || Kt === "}" || Kt === "@" || Kt === "|" || !Kt)
break;
if (Kt === Wl || Kt === po)
if (ut(Ne))
it += Kt, Ne.next();
else {
if (nt(Ne))
break;
it += Kt, Ne.next();
}
else
it += Kt, Ne.next();
}
return it;
}
function vt(Ne) {
ce(Ne);
let it = "", Kt = "";
for (; it = xt(Ne); )
Kt += it;
return Ne.currentChar() === su && H(On.UNTERMINATED_CLOSING_BRACE, $(), 0), Kt;
}
function _i(Ne) {
ce(Ne);
let it = "";
return Ne.currentChar() === "-" ? (Ne.next(), it += `-${ui(Ne)}`) : it += ui(Ne), Ne.currentChar() === su && H(On.UNTERMINATED_CLOSING_BRACE, $(), 0), it;
}
function $i(Ne) {
return Ne !== vT && Ne !== po;
}
function Lt(Ne) {
ce(Ne), le(Ne, "'");
let it = "", Kt = "";
for (; it = Ut(Ne, $i); )
it === "\\" ? Kt += Ei(Ne) : Kt += it;
const Ot = Ne.currentChar();
return Ot === po || Ot === su ? (H(On.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, $(), 0), Ot === po && (Ne.next(), le(Ne, "'")), Kt) : (le(Ne, "'"), Kt);
}
function Ei(Ne) {
const it = Ne.currentChar();
switch (it) {
case "\\":
case "'":
return Ne.next(), `\\${it}`;
case "u":
return Sn(Ne, it, 4);
case "U":
return Sn(Ne, it, 6);
default:
return H(On.UNKNOWN_ESCAPE_SEQUENCE, $(), 0, it), "";
}
}
function Sn(Ne, it, Kt) {
le(Ne, it);
let Ot = "";
for (let pi = 0; pi < Kt; pi++) {
const xi = Tt(Ne);
if (!xi) {
H(On.INVALID_UNICODE_ESCAPE_SEQUENCE, $(), 0, `\\${it}${Ot}${Ne.currentChar()}`);
break;
}
Ot += xi;
}
return `\\${it}${Ot}`;
}
function Gi(Ne) {
return Ne !== "{" && Ne !== "}" && Ne !== Wl && Ne !== po;
}
function he(Ne) {
ce(Ne);
let it = "", Kt = "";
for (; it = Ut(Ne, Gi); )
Kt += it;
return Kt;
}
function en(Ne) {
let it = "", Kt = "";
for (; it = gi(Ne); )
Kt += it;
return Kt;
}
function cn(Ne) {
const it = (Kt) => {
const Ot = Ne.currentChar();
return Ot === "{" || Ot === "@" || Ot === "|" || Ot === "(" || Ot === ")" || !Ot || Ot === Wl ? Kt : (Kt += Ot, Ne.next(), it(Kt));
};
return it("");
}
function Dn(Ne) {
ce(Ne);
const it = le(
Ne,
"|"
/* TokenChars.Pipe */
);
return ce(Ne), it;
}
function gt(Ne, it) {
let Kt = null;
switch (Ne.currentChar()) {
case "{":
return it.braceNest >= 1 && H(On.NOT_ALLOW_NEST_PLACEHOLDER, $(), 0), Ne.next(), Kt = Z(
it,
2,
"{"
/* TokenChars.BraceLeft */
), ce(Ne), it.braceNest++, Kt;
case "}":
return it.braceNest > 0 && it.currentType === 2 && H(On.EMPTY_PLACEHOLDER, $(), 0), Ne.next(), Kt = Z(
it,
3,
"}"
/* TokenChars.BraceRight */
), it.braceNest--, it.braceNest > 0 && ce(Ne), it.inLinked && it.braceNest === 0 && (it.inLinked = !1), Kt;
case "@":
return it.braceNest > 0 && H(On.UNTERMINATED_CLOSING_BRACE, $(), 0), Kt = bn(Ne, it) || Y(it), it.braceNest = 0, Kt;
default: {
let pi = !0, xi = !0, Xt = !0;
if (nt(Ne))
return it.braceNest > 0 && H(On.UNTERMINATED_CLOSING_BRACE, $(), 0), Kt = Z(it, 1, Dn(Ne)), it.braceNest = 0, it.inLinked = !1, Kt;
if (it.braceNest > 0 && (it.currentType === 4 || it.currentType === 5 || it.currentType === 6))
return H(On.UNTERMINATED_CLOSING_BRACE, $(), 0), it.braceNest = 0, un(Ne, it);
if (pi = ye(Ne, it))
return Kt = Z(it, 4, vt(Ne)), ce(Ne), Kt;
if (xi = de(Ne, it))
return Kt = Z(it, 5, _i(Ne)), ce(Ne), Kt;
if (Xt = Ce(Ne, it))
return Kt = Z(it, 6, Lt(Ne)), ce(Ne), Kt;
if (!pi && !xi && !Xt)
return Kt = Z(it, 12, he(Ne)), H(On.INVALID_TOKEN_IN_PLACEHOLDER, $(), 0, Kt.value), ce(Ne), Kt;
break;
}
}
return Kt;
}
function bn(Ne, it) {
const { currentType: Kt } = it;
let Ot = null;
const pi = Ne.currentChar();
switch ((Kt === 7 || Kt === 8 || Kt === 11 || Kt === 9) && (pi === po || pi === Wl) && H(On.INVALID_LINKED_FORMAT, $(), 0), pi) {
case "@":
return Ne.next(), Ot = Z(
it,
7,
"@"
/* TokenChars.LinkedAlias */
), it.inLinked = !0, Ot;
case ".":
return ce(Ne), Ne.next(), Z(
it,
8,
"."
/* TokenChars.LinkedDot */
);
case ":":
return ce(Ne), Ne.next(), Z(
it,
9,
":"
/* TokenChars.LinkedDelimiter */
);
default:
return nt(Ne) ? (Ot = Z(it, 1, Dn(Ne)), it.braceNest = 0, it.inLinked = !1, Ot) : Me(Ne, it) || Be(Ne, it) ? (ce(Ne), bn(Ne, it)) : fe(Ne, it) ? (ce(Ne), Z(it, 11, en(Ne))) : Ct(Ne, it) ? (ce(Ne), pi === "{" ? gt(Ne, it) || Ot : Z(it, 10, cn(Ne))) : (Kt === 7 && H(On.INVALID_LINKED_FORMAT, $(), 0), it.braceNest = 0, it.inLinked = !1, un(Ne, it));
}
}
function un(Ne, it) {
let Kt = {
type: 13
/* TokenTypes.EOF */
};
if (it.braceNest > 0)
return gt(Ne, it) || Y(it);
if (it.inLinked)
return bn(Ne, it) || Y(it);
switch (Ne.currentChar()) {
case "{":
return gt(Ne, it) || Y(it);
case "}":
return H(On.UNBALANCED_CLOSING_BRACE, $(), 0), Ne.next(), Z(
it,
3,
"}"
/* TokenChars.BraceRight */
);
case "@":
return bn(Ne, it) || Y(it);
default: {
if (nt(Ne))
return Kt = Z(it, 1, Dn(Ne)), it.braceNest = 0, it.inLinked = !1, Kt;
if (ut(Ne))
return Z(it, 0, wt(Ne));
break;
}
}
return Kt;
}
function qn() {
const { currentType: Ne, offset: it, startLoc: Kt, endLoc: Ot } = D;
return D.lastType = Ne, D.lastOffset = it, D.lastStartLoc = Kt, D.lastEndLoc = Ot, D.offset = y(), D.startLoc = $(), u.currentChar() === su ? Z(
D,
13
/* TokenTypes.EOF */
) : un(u, D);
}
return {
nextToken: qn,
currentOffset: y,
currentPosition: $,
context: O
};
}
const RD = "parser", FD = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
function BD(t, n, s) {
switch (t) {
case "\\\\":
return "\\";
// eslint-disable-next-line no-useless-escape
case "\\'":
return "'";
default: {
const u = parseInt(n || s, 16);
return u <= 55295 || u >= 57344 ? String.fromCodePoint(u) : "�";
}
}
}
function ND(t = {}) {
const n = t.location !== !1, { onError: s } = t;
function u(X, se, ye, de, ...Ce) {
const Me = X.currentPosition();
if (Me.offset += de, Me.column += de, s) {
const fe = n ? yb(ye, Me) : null, Be = Of(se, fe, {
domain: RD,
args: Ce
});
s(Be);
}
}
function y(X, se, ye) {
const de = { type: X };
return n && (de.start = se, de.end = se, de.loc = { start: ye, end: ye }), de;
}
function $(X, se, ye, de) {
n && (X.end = se, X.loc && (X.loc.end = ye));
}
function S(X, se) {
const ye = X.context(), de = y(3, ye.offset, ye.startLoc);
return de.value = se, $(de, X.currentOffset(), X.currentPosition()), de;
}
function r(X, se) {
const ye = X.context(), { lastOffset: de, lastStartLoc: Ce } = ye, Me = y(5, de, Ce);
return Me.index = parseInt(se, 10), X.nextToken(), $(Me, X.currentOffset(), X.currentPosition()), Me;
}
function D(X, se) {
const ye = X.context(), { lastOffset: de, lastStartLoc: Ce } = ye, Me = y(4, de, Ce);
return Me.key = se, X.nextToken(), $(Me, X.currentOffset(), X.currentPosition()), Me;
}
function O(X, se) {
const ye = X.context(), { lastOffset: de, lastStartLoc: Ce } = ye, Me = y(9, de, Ce);
return Me.value = se.replace(FD, BD), X.nextToken(), $(Me, X.currentOffset(), X.currentPosition()), Me;
}
function U(X) {
const se = X.nextToken(), ye = X.context(), { lastOffset: de, lastStartLoc: Ce } = ye, Me = y(8, de, Ce);
return se.type !== 11 ? (u(X, On.UNEXPECTED_EMPTY_LINKED_MODIFIER, ye.lastStartLoc, 0), Me.value = "", $(Me, de, Ce), {
nextConsumeToken: se,
node: Me
}) : (se.value == null && u(X, On.UNEXPECTED_LEXICAL_ANALYSIS, ye.lastStartLoc, 0, vl(se)), Me.value = se.value || "", $(Me, X.currentOffset(), X.currentPosition()), {
node: Me
});
}
function H(X, se) {
const ye = X.context(), de = y(7, ye.offset, ye.startLoc);
return de.value = se, $(de, X.currentOffset(), X.currentPosition()), de;
}
function Z(X) {
const se = X.context(), ye = y(6, se.offset, se.startLoc);
let de = X.nextToken();
if (de.type === 8) {
const Ce = U(X);
ye.modifier = Ce.node, de = Ce.nextConsumeToken || X.nextToken();
}
switch (de.type !== 9 && u(X, On.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, vl(de)), de = X.nextToken(), de.type === 2 && (de = X.nextToken()), de.type) {
case 10:
de.value == null && u(X, On.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, vl(de)), ye.key = H(X, de.value || "");
break;
case 4:
de.value == null && u(X, On.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, vl(de)), ye.key = D(X, de.value || "");
break;
case 5:
de.value == null && u(X, On.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, vl(de)), ye.key = r(X, de.value || "");
break;
case 6:
de.value == null && u(X, On.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, vl(de)), ye.key = O(X, de.value || "");
break;
default: {
u(X, On.UNEXPECTED_EMPTY_LINKED_KEY, se.lastStartLoc, 0);
const Ce = X.context(), Me = y(7, Ce.offset, Ce.startLoc);
return Me.value = "", $(Me, Ce.offset, Ce.startLoc), ye.key = Me, $(ye, Ce.offset, Ce.startLoc), {
nextConsumeToken: de,
node: ye
};
}
}
return $(ye, X.currentOffset(), X.currentPosition()), {
node: ye
};
}
function Y(X) {
const se = X.context(), ye = se.currentType === 1 ? X.currentOffset() : se.offset, de = se.currentType === 1 ? se.endLoc : se.startLoc, Ce = y(2, ye, de);
Ce.items = [];
let Me = null;
do {
const Ct = Me || X.nextToken();
switch (Me = null, Ct.type) {
case 0:
Ct.value == null && u(X, On.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, vl(Ct)), Ce.items.push(S(X, Ct.value || ""));
break;
case 5:
Ct.value == null && u(X, On.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, vl(Ct)), Ce.items.push(r(X, Ct.value || ""));
break;
case 4:
Ct.value == null && u(X, On.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, vl(Ct)), Ce.items.push(D(X, Ct.value || ""));
break;
case 6:
Ct.value == null && u(X, On.UNEXPECTED_LEXICAL_ANALYSIS, se.lastStartLoc, 0, vl(Ct)), Ce.items.push(O(X, Ct.value || ""));
break;
case 7: {
const nt = Z(X);
Ce.items.push(nt.node), Me = nt.nextConsumeToken || null;
break;
}
}
} while (se.currentType !== 13 && se.currentType !== 1);
const fe = se.currentType === 1 ? se.lastOffset : X.currentOffset(), Be = se.currentType === 1 ? se.lastEndLoc : X.currentPosition();
return $(Ce, fe, Be), Ce;
}
function le(X, se, ye, de) {
const Ce = X.context();
let Me = de.items.length === 0;
const fe = y(1, se, ye);
fe.cases = [], fe.cases.push(de);
do {
const Be = Y(X);
Me || (Me = Be.items.length === 0), fe.cases.push(Be);
} while (Ce.currentType !== 13);
return Me && u(X, On.MUST_HAVE_MESSAGES_IN_PLURAL, ye, 0), $(fe, X.currentOffset(), X.currentPosition()), fe;
}
function J(X) {
const se = X.context(), { offset: ye, startLoc: de } = se, Ce = Y(X);
return se.currentType === 13 ? Ce : le(X, ye, de, Ce);
}
function ce(X) {
const se = LD(X, ka({}, t)), ye = se.context(), de = y(0, ye.offset, ye.startLoc);
return n && de.loc && (de.loc.source = X), de.body = J(se), t.onCacheKey && (de.cacheKey = t.onCacheKey(X)), ye.currentType !== 13 && u(se, On.UNEXPECTED_LEXICAL_ANALYSIS, ye.lastStartLoc, 0, X[ye.offset] || ""), $(de, se.currentOffset(), se.currentPosition()), de;
}
return { parse: ce };
}
function vl(t) {
if (t.type === 13)
return "EOF";
const n = (t.value || "").replace(/\r?\n/gu, "\\n");
return n.length > 10 ? n.slice(0, 9) + "…" : n;
}
function VD(t, n = {}) {
const s = {
ast: t,
helpers: /* @__PURE__ */ new Set()
};
return { context: () => s, helper: ($) => (s.helpers.add($), $) };
}
function bT(t, n) {
for (let s = 0; s < t.length; s++)
Tx(t[s], n);
}
function Tx(t, n) {
switch (t.type) {
case 1:
bT(t.cases, n), n.helper(
"plural"
/* HelperNameMap.PLURAL */
);
break;
case 2:
bT(t.items, n);
break;
case 6: {
Tx(t.key, n), n.helper(
"linked"
/* HelperNameMap.LINKED */
), n.helper(
"type"
/* HelperNameMap.TYPE */
);
break;
}
case 5:
n.helper(
"interpolate"
/* HelperNameMap.INTERPOLATE */
), n.helper(
"list"
/* HelperNameMap.LIST */
);
break;
case 4:
n.helper(
"interpolate"
/* HelperNameMap.INTERPOLATE */
), n.helper(
"named"
/* HelperNameMap.NAMED */
);
break;
}
}
function UD(t, n = {}) {
const s = VD(t);
s.helper(
"normalize"
/* HelperNameMap.NORMALIZE */
), t.body && Tx(t.body, s);
const u = s.context();
t.helpers = Array.from(u.helpers);
}
function jD(t) {
const n = t.body;
return n.type === 2 ? xT(n) : n.cases.forEach((s) => xT(s)), t;
}
function xT(t) {
if (t.items.length === 1) {
const n = t.items[0];
(n.type === 3 || n.type === 9) && (t.static = n.value, delete n.value);
} else {
const n = [];
for (let s = 0; s < t.items.length; s++) {
const u = t.items[s];
if (!(u.type === 3 || u.type === 9) || u.value == null)
break;
n.push(u.value);
}
if (n.length === t.items.length) {
t.static = $x(n);
for (let s = 0; s < t.items.length; s++) {
const u = t.items[s];
(u.type === 3 || u.type === 9) && delete u.value;
}
}
}
}
const GD = "minifier";
function hf(t) {
switch (t.t = t.type, t.type) {
case 0: {
const n = t;
hf(n.body), n.b = n.body, delete n.body;
break;
}
case 1: {
const n = t, s = n.cases;
for (let u = 0; u < s.length; u++)
hf(s[u]);
n.c = s, delete n.cases;
break;
}
case 2: {
const n = t, s = n.items;
for (let u = 0; u < s.length; u++)
hf(s[u]);
n.i = s, delete n.items, n.static && (n.s = n.static, delete n.static);
break;
}
case 3:
case 9:
case 8:
case 7: {
const n = t;
n.value && (n.v = n.value, delete n.value);
break;
}
case 6: {
const n = t;
hf(n.key), n.k = n.key, delete n.key, n.modifier && (hf(n.modifier), n.m = n.modifier, delete n.modifier);
break;
}
case 5: {
const n = t;
n.i = n.index, delete n.index;
break;
}
case 4: {
const n = t;
n.k = n.key, delete n.key;
break;
}
default:
if (process.env.NODE_ENV !== "production")
throw Of(On.UNHANDLED_MINIFIER_NODE_TYPE, null, {
domain: GD,
args: [t.type]
});
}
delete t.type;
}
const HD = "parser";
function qD(t, n) {
const { filename: s, breakLineCode: u, needIndent: y } = n, $ = n.location !== !1, S = {
filename: s,
code: "",
column: 1,
line: 1,
offset: 0,
map: void 0,
breakLineCode: u,
needIndent: y,
indentLevel: 0
};
$ && t.loc && (S.source = t.loc.source);
const r = () => S;
function D(J, ce) {
S.code += J;
}
function O(J, ce = !0) {
const X = ce ? u : "";
D(y ? X + " ".repeat(J) : X);
}
function U(J = !0) {
const ce = ++S.indentLevel;
J && O(ce);
}
function H(J = !0) {
const ce = --S.indentLevel;
J && O(ce);
}
function Z() {
O(S.indentLevel);
}
return {
context: r,
push: D,
indent: U,
deindent: H,
newline: Z,
helper: (J) => `_${J}`,
needIndent: () => S.needIndent
};
}
function WD(t, n) {
const { helper: s } = t;
t.push(`${s(
"linked"
/* HelperNameMap.LINKED */
)}(`), Tf(t, n.key), n.modifier ? (t.push(", "), Tf(t, n.modifier), t.push(", _type")) : t.push(", undefined, _type"), t.push(")");
}
function YD(t, n) {
const { helper: s, needIndent: u } = t;
t.push(`${s(
"normalize"
/* HelperNameMap.NORMALIZE */
)}([`), t.indent(u());
const y = n.items.length;
for (let $ = 0; $ < y && (Tf(t, n.items[$]), $ !== y - 1); $++)
t.push(", ");
t.deindent(u()), t.push("])");
}
function ZD(t, n) {
const { helper: s, needIndent: u } = t;
if (n.cases.length > 1) {
t.push(`${s(
"plural"
/* HelperNameMap.PLURAL */
)}([`), t.indent(u());
const y = n.cases.length;
for (let $ = 0; $ < y && (Tf(t, n.cases[$]), $ !== y - 1); $++)
t.push(", ");
t.deindent(u()), t.push("])");
}
}
function KD(t, n) {
n.body ? Tf(t, n.body) : t.push("null");
}
function Tf(t, n) {
const { helper: s } = t;
switch (n.type) {
case 0:
KD(t, n);
break;
case 1:
ZD(t, n);
break;
case 2:
YD(t, n);
break;
case 6:
WD(t, n);
break;
case 8:
t.push(JSON.stringify(n.value), n);
break;
case 7:
t.push(JSON.stringify(n.value), n);
break;
case 5:
t.push(`${s(
"interpolate"
/* HelperNameMap.INTERPOLATE */
)}(${s(
"list"
/* HelperNameMap.LIST */
)}(${n.index}))`, n);
break;
case 4:
t.push(`${s(
"interpolate"
/* HelperNameMap.INTERPOLATE */
)}(${s(
"named"
/* HelperNameMap.NAMED */
)}(${JSON.stringify(n.key)}))`, n);
break;
case 9:
t.push(JSON.stringify(n.value), n);
break;
case 3:
t.push(JSON.stringify(n.value), n);
break;
default:
if (process.env.NODE_ENV !== "production")
throw Of(On.UNHANDLED_CODEGEN_NODE_TYPE, null, {
domain: HD,
args: [n.type]
});
}
}
const XD = (t, n = {}) => {
const s = Ki(n.mode) ? n.mode : "normal", u = Ki(n.filename) ? n.filename : "message.intl";
n.sourceMap;
const y = n.breakLineCode != null ? n.breakLineCode : s === "arrow" ? ";" : `
`, $ = n.needIndent ? n.needIndent : s !== "arrow", S = t.helpers || [], r = qD(t, {
filename: u,
breakLineCode: y,
needIndent: $
});
r.push(s === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), r.indent($), S.length > 0 && (r.push(`const { ${$x(S.map((U) => `${U}: _${U}`), ", ")} } = ctx`), r.newline()), r.push("return "), Tf(r, t), r.deindent($), r.push("}"), delete t.helpers;
const { code: D, map: O } = r.context();
return {
ast: t,
code: D,
map: O ? O.toJSON() : void 0
// eslint-disable-line @typescript-eslint/no-explicit-any
};
};
function QD(t, n = {}) {
const s = ka({}, n), u = !!s.jit, y = !!s.minify, $ = s.optimize == null ? !0 : s.optimize, r = ND(s).parse(t);
return u ? ($ && jD(r), y && hf(r), { ast: r, code: "" }) : (UD(r, s), XD(r, s));
}
/*!
* core-base v11.0.1
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/
function JD() {
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Md().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Md().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
}
function I2(t) {
return (s) => eO(s, t);
}
function eO(t, n) {
const s = iO(n);
if (s == null)
throw vg(
0
/* NodeTypes.Resource */
);
if (Ax(s) === 1) {
const $ = rO(s);
return t.plural($.reduce((S, r) => [
...S,
wT(t, r)
], []));
} else
return wT(t, s);
}
const tO = ["b", "body"];
function iO(t) {
return Su(t, tO);
}
const nO = ["c", "cases"];
function rO(t) {
return Su(t, nO, []);
}
function wT(t, n) {
const s = oO(n);
if (s != null)
return t.type === "text" ? s : t.normalize([s]);
{
const u = lO(n).reduce((y, $) => [...y, vb(t, $)], []);
return t.normalize(u);
}
}
const aO = ["s", "static"];
function oO(t) {
return Su(t, aO);
}
const sO = ["i", "items"];
function lO(t) {
return Su(t, sO, []);
}
function vb(t, n) {
const s = Ax(n);
switch (s) {
case 3:
return j_(n, s);
case 9:
return j_(n, s);
case 4: {
const u = n;
if (qs(u, "k") && u.k)
return t.interpolate(t.named(u.k));
if (qs(u, "key") && u.key)
return t.interpolate(t.named(u.key));
throw vg(s);
}
case 5: {
const u = n;
if (qs(u, "i") && Da(u.i))
return t.interpolate(t.list(u.i));
if (qs(u, "index") && Da(u.index))
return t.interpolate(t.list(u.index));
throw vg(s);
}
case 6: {
const u = n, y = hO(u), $ = pO(u);
return t.linked(vb(t, $), y ? vb(t, y) : void 0, t.type);
}
case 7:
return j_(n, s);
case 8:
return j_(n, s);
default:
throw new Error(`unhandled node on format message part: ${s}`);
}
}
const cO = ["t", "type"];
function Ax(t) {
return Su(t, cO);
}
const uO = ["v", "value"];
function j_(t, n) {
const s = Su(t, uO);
if (s)
return s;
throw vg(n);
}
const dO = ["m", "modifier"];
function hO(t) {
return Su(t, dO);
}
const fO = ["k", "key"];
function pO(t) {
const n = Su(t, fO);
if (n)
return n;
throw vg(
6
/* NodeTypes.Linked */
);
}
function Su(t, n, s) {
for (let u = 0; u < n.length; u++) {
const y = n[u];
if (qs(t, y) && t[y] != null)
return t[y];
}
return s;
}
function vg(t) {
return new Error(`unhandled node type: ${t}`);
}
const mO = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
function gO(t, n) {
n && MD(t) && Au(n1(mO, { source: t }));
}
const _O = (t) => t;
let G_ = Ir();
function Ld(t) {
return gr(t) && Ax(t) === 0 && (qs(t, "b") || qs(t, "body"));
}
function yO(t, n = {}) {
let s = !1;
const u = n.onError || ED;
return n.onError = (y) => {
s = !0, u(y);
}, { ...QD(t, n), detectError: s };
}
// @__NO_SIDE_EFFECTS__
function vO(t, n) {
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Ki(t)) {
const s = ua(n.warnHtmlMessage) ? n.warnHtmlMessage : !0;
process.env.NODE_ENV !== "production" && gO(t, s);
const y = (n.onCacheKey || _O)(t), $ = G_[y];
if ($)
return $;
const { ast: S, detectError: r } = yO(t, {
...n,
location: process.env.NODE_ENV !== "production",
jit: !0
}), D = I2(S);
return r ? D : G_[y] = D;
} else {
if (process.env.NODE_ENV !== "production" && !Ld(t))
return Au(`the message that is resolve with key '${n.key}' is not supported for jit compilation`), () => t;
const s = t.cacheKey;
if (s) {
const u = G_[s];
return u || (G_[s] = I2(t));
} else
return I2(t);
}
}
let bg = null;
function bO(t) {
bg = t;
}
function xO(t, n, s) {
bg && bg.emit("i18n:init", {
timestamp: Date.now(),
i18n: t,
version: n,
meta: s
});
}
const wO = /* @__PURE__ */ $O("function:translate");
function $O(t) {
return (n) => bg && bg.emit(t, n);
}
const Xa = {
INVALID_ARGUMENT: AD,
// 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
}, TO = 24;
function Xl(t) {
return Of(t, null, process.env.NODE_ENV !== "production" ? { messages: AO } : void 0);
}
const AO = {
[Xa.INVALID_ARGUMENT]: "Invalid arguments",
[Xa.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
[Xa.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
[Xa.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
[Xa.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
[Xa.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
[Xa.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
};
function Sx(t, n) {
return n.locale != null ? $T(n.locale) : $T(t.locale);
}
let z2;
function $T(t) {
if (Ki(t))
return t;
if (Gr(t)) {
if (t.resolvedOnce && z2 != null)
return z2;
if (t.constructor.name === "Function") {
const n = t();
if (vD(n))
throw Xl(Xa.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
return z2 = n;
} else
throw Xl(Xa.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
} else
throw Xl(Xa.NOT_SUPPORT_LOCALE_TYPE);
}
function SO(t, n, s) {
return [.../* @__PURE__ */ new Set([
s,
...Ea(n) ? n : gr(n) ? Object.keys(n) : Ki(n) ? [n] : [s]
])];
}
function z5(t, n, s) {
const u = Ki(s) ? s : Ty, y = t;
y.__localeChainCache || (y.__localeChainCache = /* @__PURE__ */ new Map());
let $ = y.__localeChainCache.get(u);
if (!$) {
$ = [];
let S = [s];
for (; Ea(S); )
S = TT($, S, n);
const r = Ea(n) || !mr(n) ? n : n.default ? n.default : null;
S = Ki(r) ? [r] : r, Ea(S) && TT($, S, !1), y.__localeChainCache.set(u, $);
}
return $;
}
function TT(t, n, s) {
let u = !0;
for (let y = 0; y < n.length && ua(u); y++) {
const $ = n[y];
Ki($) && (u = EO(t, n[y], s));
}
return u;
}
function EO(t, n, s) {
let u;
const y = n.split("-");
do {
const $ = y.join("-");
u = CO(t, $, s), y.splice(-1, 1);
} while (y.length && u === !0);
return u;
}
function CO(t, n, s) {
let u = !1;
if (!t.includes(n) && (u = !0, n)) {
u = n[n.length - 1] !== "!";
const y = n.replace(/!/g, "");
t.push(y), (Ea(s) || mr(s)) && s[y] && (u = s[y]);
}
return u;
}
const Eu = [];
Eu[
0
/* States.BEFORE_PATH */
] = {
w: [
0
/* States.BEFORE_PATH */
],
i: [
3,
0
/* Actions.APPEND */
],
"[": [
4
/* States.IN_SUB_PATH */
],
o: [
7
/* States.AFTER_PATH */
]
};
Eu[
1
/* States.IN_PATH */
] = {
w: [
1
/* States.IN_PATH */
],
".": [
2
/* States.BEFORE_IDENT */
],
"[": [
4
/* States.IN_SUB_PATH */
],
o: [
7
/* States.AFTER_PATH */
]
};
Eu[
2
/* States.BEFORE_IDENT */
] = {
w: [
2
/* States.BEFORE_IDENT */
],
i: [
3,
0
/* Actions.APPEND */
],
0: [
3,
0
/* Actions.APPEND */
]
};
Eu[
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 */
]
};
Eu[
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 */
]
};
Eu[
5
/* States.IN_SINGLE_QUOTE */
] = {
"'": [
4,
0
/* Actions.APPEND */
],
o: 8,
l: [
5,
0
/* Actions.APPEND */
]
};
Eu[
6
/* States.IN_DOUBLE_QUOTE */
] = {
'"': [
4,
0
/* Actions.APPEND */
],
o: 8,
l: [
6,
0
/* Actions.APPEND */
]
};
const MO = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
function IO(t) {
return MO.test(t);
}
function zO(t) {
const n = t.charCodeAt(0), s = t.charCodeAt(t.length - 1);
return n === s && (n === 34 || n === 39) ? t.slice(1, -1) : t;
}
function PO(t) {
if (t == null)
return "o";
switch (t.charCodeAt(0)) {
case 91:
// [
case 93:
// ]
case 46:
// .
case 34:
// "
case 39:
return t;
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 DO(t) {
const n = t.trim();
return t.charAt(0) === "0" && isNaN(parseInt(t)) ? !1 : IO(n) ? zO(n) : "*" + n;
}
function OO(t) {
const n = [];
let s = -1, u = 0, y = 0, $, S, r, D, O, U, H;
const Z = [];
Z[
0
/* Actions.APPEND */
] = () => {
S === void 0 ? S = r : S += r;
}, Z[
1
/* Actions.PUSH */
] = () => {
S !== void 0 && (n.push(S), S = void 0);
}, Z[
2
/* Actions.INC_SUB_PATH_DEPTH */
] = () => {
Z[
0
/* Actions.APPEND */
](), y++;
}, Z[
3
/* Actions.PUSH_SUB_PATH */
] = () => {
if (y > 0)
y--, u = 4, Z[
0
/* Actions.APPEND */
]();
else {
if (y = 0, S === void 0 || (S = DO(S), S === !1))
return !1;
Z[
1
/* Actions.PUSH */
]();
}
};
function Y() {
const le = t[s + 1];
if (u === 5 && le === "'" || u === 6 && le === '"')
return s++, r = "\\" + le, Z[
0
/* Actions.APPEND */
](), !0;
}
for (; u !== null; )
if (s++, $ = t[s], !($ === "\\" && Y())) {
if (D = PO($), H = Eu[u], O = H[D] || H.l || 8, O === 8 || (u = O[0], O[1] !== void 0 && (U = Z[O[1]], U && (r = $, U() === !1))))
return;
if (u === 7)
return n;
}
}
const AT = /* @__PURE__ */ new Map();
function kO(t, n) {
return gr(t) ? t[n] : null;
}
function LO(t, n) {
if (!gr(t))
return null;
let s = AT.get(n);
if (s || (s = OO(n), s && AT.set(n, s)), !s)
return null;
const u = s.length;
let y = t, $ = 0;
for (; $ < u; ) {
const S = y[s[$]];
if (S === void 0 || Gr(y))
return null;
y = S, $++;
}
return y;
}
const Po = {
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
}, RO = 8, FO = {
[Po.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
[Po.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
[Po.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
[Po.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
[Po.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
[Po.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
[Po.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 Rd(t, ...n) {
return n1(FO[t], ...n);
}
const BO = "11.0.1", a1 = -1, Ty = "en-US", Ay = "", ST = (t) => `${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;
function NO() {
return {
upper: (t, n) => n === "text" && Ki(t) ? t.toUpperCase() : n === "vnode" && gr(t) && "__v_isVNode" in t ? t.children.toUpperCase() : t,
lower: (t, n) => n === "text" && Ki(t) ? t.toLowerCase() : n === "vnode" && gr(t) && "__v_isVNode" in t ? t.children.toLowerCase() : t,
capitalize: (t, n) => n === "text" && Ki(t) ? ST(t) : n === "vnode" && gr(t) && "__v_isVNode" in t ? ST(t.children) : t
};
}
let P5;
function VO(t) {
P5 = t;
}
let D5;
function UO(t) {
D5 = t;
}
let O5;
function jO(t) {
O5 = t;
}
let k5 = null;
const GO = /* @__NO_SIDE_EFFECTS__ */ (t) => {
k5 = t;
}, HO = /* @__NO_SIDE_EFFECTS__ */ () => k5;
let L5 = null;
const ET = (t) => {
L5 = t;
}, qO = () => L5;
let CT = 0;
function WO(t = {}) {
const n = Gr(t.onWarn) ? t.onWarn : Au, s = Ki(t.version) ? t.version : BO, u = Ki(t.locale) || Gr(t.locale) ? t.locale : Ty, y = Gr(u) ? Ty : u, $ = Ea(t.fallbackLocale) || mr(t.fallbackLocale) || Ki(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : y, S = mr(t.messages) ? t.messages : P2(y), r = mr(t.datetimeFormats) ? t.datetimeFormats : P2(y), D = mr(t.numberFormats) ? t.numberFormats : P2(y), O = ka(Ir(), t.modifiers, NO()), U = t.pluralRules || Ir(), H = Gr(t.missing) ? t.missing : null, Z = ua(t.missingWarn) || $y(t.missingWarn) ? t.missingWarn : !0, Y = ua(t.fallbackWarn) || $y(t.fallbackWarn) ? t.fallbackWarn : !0, le = !!t.fallbackFormat, J = !!t.unresolving, ce = Gr(t.postTranslation) ? t.postTranslation : null, X = mr(t.processor) ? t.processor : null, se = ua(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, ye = !!t.escapeParameter, de = Gr(t.messageCompiler) ? t.messageCompiler : P5;
process.env.NODE_ENV !== "production" && Gr(t.messageCompiler) && wD(Rd(Po.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
const Ce = Gr(t.messageResolver) ? t.messageResolver : D5 || kO, Me = Gr(t.localeFallbacker) ? t.localeFallbacker : O5 || SO, fe = gr(t.fallbackContext) ? t.fallbackContext : void 0, Be = t, Ct = gr(Be.__datetimeFormatters) ? Be.__datetimeFormatters : /* @__PURE__ */ new Map(), nt = gr(Be.__numberFormatters) ? Be.__numberFormatters : /* @__PURE__ */ new Map(), ut = gr(Be.__meta) ? Be.__meta : {};
CT++;
const Ut = {
version: s,
cid: CT,
locale: u,
fallbackLocale: $,
messages: S,
modifiers: O,
pluralRules: U,
missing: H,
missingWarn: Z,
fallbackWarn: Y,
fallbackFormat: le,
unresolving: J,
postTranslation: ce,
processor: X,
warnHtmlMessage: se,
escapeParameter: ye,
messageCompiler: de,
messageResolver: Ce,
localeFallbacker: Me,
fallbackContext: fe,
onWarn: n,
__meta: ut
};
return Ut.datetimeFormats = r, Ut.numberFormats = D, Ut.__datetimeFormatters = Ct, Ut.__numberFormatters = nt, process.env.NODE_ENV !== "production" && (Ut.__v_emitter = Be.__v_emitter != null ? Be.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && xO(Ut, s, ut), Ut;
}
const P2 = (t) => ({ [t]: Ir() });
function o1(t, n) {
return t instanceof RegExp ? t.test(n) : t;
}
function R5(t, n) {
return t instanceof RegExp ? t.test(n) : t;
}
function Ex(t, n, s, u, y) {
const { missing: $, onWarn: S } = t;
if (process.env.NODE_ENV !== "production") {
const r = t.__v_emitter;
r && r.emit("missing", {
locale: s,
key: n,
type: y,
groupId: `${y}:${n}`
});
}
if ($ !== null) {
const r = $(t, s, n, y);
return Ki(r) ? r : n;
} else
return process.env.NODE_ENV !== "production" && R5(u, n) && S(Rd(Po.NOT_FOUND_KEY, { key: n, locale: s })), n;
}
function Gm(t, n, s) {
const u = t;
u.__localeChainCache = /* @__PURE__ */ new Map(), t.localeFallbacker(t, s, n);
}
function F5(t, n) {
return t === n ? !1 : t.split("-")[0] === n.split("-")[0];
}
function YO(t, n) {
const s = n.indexOf(t);
if (s === -1)
return !1;
for (let u = s + 1; u < n