mulmoclaude 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +1 -1
  2. package/client/assets/{JsonEditor-CU5Q6RZZ.js → JsonEditor-ZvNJuqs_.js} +1 -1
  3. package/client/assets/{index-hiEYYDcg.js → index-ijQN8Kty.js} +396 -396
  4. package/client/assets/{marp-WnOHAJUy.js → marp-DbrRRh1n.js} +1 -1
  5. package/client/assets/vue-i18n-BbRMUmOW.js +3 -0
  6. package/client/index.html +2 -2
  7. package/package.json +10 -10
  8. package/server/api/auth/bearerAuth.ts +10 -24
  9. package/server/api/auth/viewToken.ts +5 -12
  10. package/server/api/routes/files.ts +34 -17
  11. package/server/build/mcp-server.mjs +502 -505
  12. package/server/events/pub-sub/handshakeAuth.ts +9 -0
  13. package/server/events/pub-sub/index.ts +47 -14
  14. package/server/index.ts +1 -1
  15. package/server/plugins/dev-watcher.ts +1 -1
  16. package/server/utils/launcher/preflight.d.mts +8 -5
  17. package/server/utils/launcher/preflight.mjs +34 -8
  18. package/src/App.vue +5 -0
  19. package/src/components/AuthTokenStaleBanner.vue +27 -0
  20. package/src/components/BackendOfflineBanner.vue +13 -24
  21. package/src/components/RemoteHostOfflineBanner.vue +12 -21
  22. package/src/components/StatusBanner.vue +65 -0
  23. package/src/composables/usePubSub.ts +32 -0
  24. package/src/lang/de.ts +5 -0
  25. package/src/lang/en.ts +5 -0
  26. package/src/lang/es.ts +5 -0
  27. package/src/lang/fr.ts +5 -0
  28. package/src/lang/ja.ts +5 -0
  29. package/src/lang/ko.ts +5 -0
  30. package/src/lang/pt-BR.ts +5 -0
  31. package/src/lang/zh.ts +5 -0
  32. package/src/main.ts +1 -1
  33. package/src/utils/api.ts +45 -22
  34. package/src/utils/auth/authToken.ts +14 -0
  35. package/src/utils/auth/authTokenHtml.ts +19 -0
  36. package/src/utils/auth/authTokenRecovery.ts +73 -0
  37. package/src/utils/dom/authTokenMeta.ts +3 -1
  38. package/client/assets/vue-i18n-CdSW1CeF.js +0 -3
  39. package/server/system/logs/aaa +0 -737
  40. package/server/system/logs/bb +0 -446
package/src/utils/api.ts CHANGED
@@ -25,11 +25,13 @@
25
25
  // `!res.ok` branches. Network errors and HTTP errors surface through the
26
26
  // same `{ ok: false }` shape.
27
27
  //
28
- // Future extension hooks (see #272 for auth token):
29
- // - setAuthToken() populates a module-level token used by every call
30
- // - interceptors could go here for logging, retry, metrics
28
+ // The bearer token lives in `./auth/authToken` (set once at bootstrap), and
29
+ // `./auth/authTokenRecovery` replaces it after a server restart (#3438).
30
+ // Interceptors for logging, retry policy or metrics would go here.
31
31
 
32
32
  import { ref, type Ref } from "vue";
33
+ import { getAuthToken } from "./auth/authToken";
34
+ import { authTokenStale, recoverAuthToken } from "./auth/authTokenRecovery";
33
35
  import { errorMessage } from "./errors";
34
36
  import { hasStringProp } from "./types";
35
37
 
@@ -89,19 +91,6 @@ function isAbortError(err: unknown): boolean {
89
91
  return hasStringProp(err, "name") && err.name === "AbortError";
90
92
  }
91
93
 
92
- // ── Auth token (populated by bootstrap; consumed by every call) ─────
93
-
94
- let authToken: string | null = null;
95
-
96
- /**
97
- * Set the bearer token used on every API call. Call once during app
98
- * bootstrap, typically after reading a `<meta>` tag or window global
99
- * populated by the server.
100
- */
101
- export function setAuthToken(token: string | null): void {
102
- authToken = token;
103
- }
104
-
105
94
  // ── Types ────────────────────────────────────────────────────────────
106
95
 
107
96
  export type ApiResult<T> = { ok: true; data: T } | { ok: false; error: string; status: number };
@@ -145,6 +134,7 @@ function buildHeaders(opts: { headers?: Record<string, string> | undefined }, ha
145
134
  if (hasBody && headers["Content-Type"] === undefined) {
146
135
  headers["Content-Type"] = "application/json";
147
136
  }
137
+ const authToken = getAuthToken();
148
138
  if (authToken && headers["Authorization"] === undefined) {
149
139
  headers["Authorization"] = `Bearer ${authToken}`;
150
140
  }
@@ -275,11 +265,33 @@ async function successResult<T>(res: Response): Promise<ApiResult<T>> {
275
265
  }
276
266
  }
277
267
 
268
+ const UNAUTHORIZED_STATUS = 401;
269
+
270
+ /**
271
+ * Issue `request`, and once more after a 401. A 401 is what a server restart
272
+ * looks like from a page that stayed open: the token was regenerated and this
273
+ * page still presents the old one (#3438). index.html carries the new one, so
274
+ * the token is fetched again and the request re-issued — only when a
275
+ * DIFFERENT token was installed; `request` builds its headers per call, so
276
+ * the second issue presents it. A 401 the server sends for its own reasons
277
+ * (`/api/remote-host/reconnect` on an expired blob) leaves the token
278
+ * unchanged and reaches the caller as is, and a token the server refuses
279
+ * twice is reported through `authTokenStale` rather than retried again.
280
+ */
281
+ async function withTokenRecovery(request: () => Promise<Response>): Promise<Response> {
282
+ const first = await request();
283
+ if (first.status !== UNAUTHORIZED_STATUS) return first;
284
+ if ((await recoverAuthToken()) !== "installed") return first;
285
+ const retried = await request();
286
+ if (retried.status === UNAUTHORIZED_STATUS) authTokenStale.value = true;
287
+ return retried;
288
+ }
289
+
278
290
  export async function apiCall<T = unknown>(path: string, opts: ApiOptions = {}): Promise<ApiResult<T>> {
279
291
  const url = `${path}${buildQueryString(opts.query)}`;
280
292
  let res: Response;
281
293
  try {
282
- res = await fetch(url, buildInit(opts));
294
+ res = await withTokenRecovery(() => fetch(url, buildInit(opts)));
283
295
  } catch (err) {
284
296
  return transportFailure<T>(err);
285
297
  }
@@ -321,17 +333,28 @@ export interface RawOptions {
321
333
  /**
322
334
  * Escape hatch for endpoints returning binary / streaming / non-JSON
323
335
  * bodies (PDF download, audio blob, SSE, etc.). Auth header is still
324
- * applied; other handling is the caller's responsibility.
336
+ * applied, and a 401 is retried once with a recovered token the same way
337
+ * `apiCall` does it; other handling is the caller's responsibility.
325
338
  *
326
339
  * Throws on network errors. Does NOT check `res.ok`.
327
340
  */
328
- export async function apiFetchRaw(path: string, opts: RawOptions = {}): Promise<Response> {
329
- const url = `${path}${buildQueryString(opts.query)}`;
330
- const init: FetchInit = {
341
+ function buildRawInit(opts: RawOptions): FetchInit {
342
+ return {
331
343
  method: opts.method ?? "GET",
332
344
  headers: buildHeaders(opts, false),
333
345
  ...(opts.body !== undefined ? { body: opts.body } : {}),
334
346
  ...(opts.signal !== undefined ? { signal: opts.signal } : {}),
335
347
  };
336
- return fetch(url, init);
348
+ }
349
+
350
+ /** A stream is consumed by the first issue, so a request carrying one
351
+ * cannot be re-issued after a 401; every other body fetch accepts can. */
352
+ function isReplayableBody(body: RawOptions["body"]): boolean {
353
+ return !(typeof ReadableStream !== "undefined" && body instanceof ReadableStream);
354
+ }
355
+
356
+ export async function apiFetchRaw(path: string, opts: RawOptions = {}): Promise<Response> {
357
+ const url = `${path}${buildQueryString(opts.query)}`;
358
+ const request = (): Promise<Response> => fetch(url, buildRawInit(opts));
359
+ return isReplayableBody(opts.body) ? withTokenRecovery(request) : request();
337
360
  }
@@ -0,0 +1,14 @@
1
+ // The bearer token every call presents, read once from index.html at
2
+ // bootstrap (`src/main.ts`) and replaced after a server restart
3
+ // (`authTokenRecovery.ts`). A module so that `api.ts`, the `/ws/pubsub`
4
+ // handshake and the recovery read one value.
5
+
6
+ let authToken: string | null = null;
7
+
8
+ export function setAuthToken(token: string | null): void {
9
+ authToken = token;
10
+ }
11
+
12
+ export function getAuthToken(): string | null {
13
+ return authToken;
14
+ }
@@ -0,0 +1,19 @@
1
+ // The served index.html carries the bearer token in
2
+ // `<meta name="mulmoclaude-auth" content="…">`: the production handler and the
3
+ // Vite dev plugin substitute it on every request. Pure string work, so the
4
+ // page can read a token out of a re-fetched index.html without a DOM.
5
+
6
+ export const AUTH_TOKEN_META_NAME = "mulmoclaude-auth";
7
+
8
+ const META_TAGS = /<meta\b[^>]*>/gi;
9
+ const AUTH_META_NAME_ATTRIBUTE = new RegExp(`\\bname\\s*=\\s*"${AUTH_TOKEN_META_NAME}"`, "i");
10
+ const CONTENT_ATTRIBUTE = /\bcontent\s*=\s*"([^"]*)"/i;
11
+
12
+ /** The token `html` carries, `null` when the tag is missing or its content is
13
+ * empty — the same two cases `readAuthTokenFromMeta` reads as "no token". */
14
+ export function extractAuthTokenFromHtml(html: string): string | null {
15
+ const authMetaTag = (html.match(META_TAGS) ?? []).find((tag) => AUTH_META_NAME_ATTRIBUTE.test(tag));
16
+ if (authMetaTag === undefined) return null;
17
+ const content = CONTENT_ATTRIBUTE.exec(authMetaTag)?.[1];
18
+ return content === undefined || content === "" ? null : content;
19
+ }
@@ -0,0 +1,73 @@
1
+ // After a server restart an open page holds a token the server no longer
2
+ // accepts: the token is regenerated at every start, and the page read it once
3
+ // from index.html (#3438). index.html is served without a token and carries
4
+ // the current one on every request — the production handler substitutes it
5
+ // per request, the Vite plugin does the same for a loopback requester — so the
6
+ // page fetches it again instead of asking the user to reload.
7
+
8
+ import { ref, type Ref } from "vue";
9
+ import { errorMessage } from "../errors";
10
+ import { getAuthToken, setAuthToken } from "./authToken";
11
+ import { extractAuthTokenFromHtml } from "./authTokenHtml";
12
+
13
+ /** How a recovery ended. `installed`: index.html carried a token other than
14
+ * the one the page held, and every later call presents it. `unchanged`: it
15
+ * carried the token the server just refused. `unavailable`: it carried none,
16
+ * or was not served. `unreachable`: the fetch itself failed. */
17
+ export type AuthTokenRecovery = "installed" | "unchanged" | "unavailable" | "unreachable";
18
+
19
+ /** True once the server refused this page's token and a fresh one could not
20
+ * be fetched. `AuthTokenStaleBanner` offers a reload while it is set. */
21
+ export const authTokenStale: Ref<boolean> = ref(false);
22
+
23
+ const INDEX_HTML_PATH = "/";
24
+ const INDEX_HTML_FETCH_TIMEOUT_MS = 10_000;
25
+
26
+ /** What a fetched token means for a page holding `held`. */
27
+ export function recoveryOutcome(held: string | null, fetched: string | null): Exclude<AuthTokenRecovery, "unreachable"> {
28
+ if (fetched === null) return "unavailable";
29
+ return fetched === held ? "unchanged" : "installed";
30
+ }
31
+
32
+ /** The served index.html, `null` when it could not be fetched at all. A reply
33
+ * other than 2xx is a server that answered without a token, not an outage. */
34
+ async function fetchIndexHtml(): Promise<string | null> {
35
+ const timeoutController = new AbortController();
36
+ const timeoutTimer = setTimeout(() => timeoutController.abort(), INDEX_HTML_FETCH_TIMEOUT_MS);
37
+ try {
38
+ const indexHtmlResponse = await fetch(INDEX_HTML_PATH, { cache: "no-store", signal: timeoutController.signal });
39
+ return indexHtmlResponse.ok ? await indexHtmlResponse.text() : "";
40
+ } catch (err) {
41
+ console.warn(`[authTokenRecovery] could not fetch ${INDEX_HTML_PATH}:`, errorMessage(err));
42
+ return null;
43
+ } finally {
44
+ clearTimeout(timeoutTimer);
45
+ }
46
+ }
47
+
48
+ async function runRecovery(): Promise<AuthTokenRecovery> {
49
+ const html = await fetchIndexHtml();
50
+ if (html === null) return "unreachable";
51
+ const fetchedToken = extractAuthTokenFromHtml(html);
52
+ const outcome = recoveryOutcome(getAuthToken(), fetchedToken);
53
+ if (outcome === "installed") {
54
+ setAuthToken(fetchedToken);
55
+ authTokenStale.value = false;
56
+ } else if (outcome === "unavailable") {
57
+ authTokenStale.value = true;
58
+ }
59
+ return outcome;
60
+ }
61
+
62
+ let inFlightRecovery: Promise<AuthTokenRecovery> | null = null;
63
+
64
+ /** Fetch index.html again and install the token it carries. Concurrent
65
+ * callers — every 401 of a burst, plus the socket refusal — share one fetch. */
66
+ export function recoverAuthToken(): Promise<AuthTokenRecovery> {
67
+ if (inFlightRecovery === null) {
68
+ inFlightRecovery = runRecovery().finally(() => {
69
+ inFlightRecovery = null;
70
+ });
71
+ }
72
+ return inFlightRecovery;
73
+ }
@@ -11,8 +11,10 @@
11
11
  // available; every subsequent API call will 401, which is the
12
12
  // correct dev-time signal)
13
13
 
14
+ import { AUTH_TOKEN_META_NAME } from "../auth/authTokenHtml";
15
+
14
16
  export function readAuthTokenFromMeta(): string | null {
15
- const meta = document.querySelector('meta[name="mulmoclaude-auth"]');
17
+ const meta = document.querySelector(`meta[name="${AUTH_TOKEN_META_NAME}"]`);
16
18
  if (meta === null) return null;
17
19
  const content = meta.getAttribute("content");
18
20
  if (content === null || content === "") return null;
@@ -1,3 +0,0 @@
1
- import{$n as e,Ct as t,Fn as n,G as r,Gn as i,Hn as a,Ht as o,In as s,P as c,Rn as l,Rt as u,Xn as d,ft as f,ht as p,it as m,nt as h,wt as g,yn as _,z as v}from"./vue.runtime.esm-bundler-C6akXk9q.js";var y=typeof window<`u`,b=(e,t=!1)=>t?Symbol.for(e):Symbol(e),x=(e,t,n)=>S({l:e,k:t,s:n}),S=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),C=e=>typeof e==`number`&&isFinite(e),w=e=>ie(e)===`[object Date]`,T=e=>ie(e)===`[object RegExp]`,E=e=>L(e)&&Object.keys(e).length===0,D=Object.assign,O=Object.create,k=(e=null)=>O(e),ee,A=()=>ee||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:k(),te=Object.prototype.hasOwnProperty;function j(e,t){return te.call(e,t)}var M=Array.isArray,N=e=>typeof e==`function`,P=e=>typeof e==`string`,F=e=>typeof e==`boolean`,I=e=>typeof e==`object`&&!!e,ne=e=>I(e)&&N(e.then)&&N(e.catch),re=Object.prototype.toString,ie=e=>re.call(e),L=e=>ie(e)===`[object Object]`,ae=e=>e==null?``:M(e)||L(e)&&e.toString===re?JSON.stringify(e,null,2):String(e);function oe(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}function se(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}function ce(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 le(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}var ue=/^javascript:/i,de=/^(?:href|src|action|formaction)$/i,R=/&#(?:x([0-9a-f]+)|(\d+));?/gi,fe=/&(?:Tab|NewLine);/g,pe=/&colon;?/gi,me=/[\u0000-\u0020\u007f-\u009f]/g,he=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,ge=/(^|[\s"'<>/])on(\w+\s*=)/gi,_e=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function ve(e,t,n){let r=t||n;if(!r)return e;let i=Number.parseInt(r,t?16:10);return i<=127?String.fromCharCode(i):e}function ye(e){let t=e.replace(R,ve).replace(fe,``).replace(pe,`:`).replace(me,``);return ue.test(t)}function be(e){let t=/url\s*\(/gi,n=``,r=0,i;for(;(i=t.exec(e))!==null;){let a=i.index,o=t.lastIndex-1,s=o+1,c=1,l=null;for(;s<e.length;s++){let t=e[s];if(l)t===l&&(l=null);else if(t===`"`||t===`'`)l=t;else if(t===`(`)c++;else if(t===`)`&&(c--,c===0))break}if(c!==0)break;let u=e.slice(o+1,s).trim(),d=u.startsWith(`"`)&&u.endsWith(`"`)||u.startsWith(`'`)&&u.endsWith(`'`)?u.slice(1,-1).trim():u;n+=e.slice(r,a),n+=ye(d)?`url(about:blank)`:e.slice(a,s+1),r=s+1}return n+e.slice(r)}function xe(e,t){return de.test(e)&&ye(t)?`about:blank`:le(e.toLowerCase()===`style`?be(t):t)}function Se(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${xe(t,n)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${xe(t,n)}'`),he.test(e)&&(e=e.replace(ge,`$1&#111;n$2`)),e=e.replace(_e,(e,t,n,r)=>ye(r)?`${t}${n}about:blank`:e),e}var Ce=e=>!I(e)||M(e);function we(e,t){if(Ce(e)||Ce(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{if(r===`__proto__`)return;let i=e[r];if(M(i)){let e=[];e.length=i.length,t[r]=e,n.push({src:i,des:e})}else I(i)?((!I(t[r])||M(t[r]))&&(t[r]=k()),n.push({src:i,des:t[r]})):t[r]=i})}}function Te(e,t,n){return{line:e,column:t,offset:n}}function Ee(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var z={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,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};z.EXPECTED_TOKEN,z.INVALID_TOKEN_IN_PLACEHOLDER,z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,z.UNKNOWN_ESCAPE_SEQUENCE,z.INVALID_UNICODE_ESCAPE_SEQUENCE,z.UNBALANCED_CLOSING_BRACE,z.UNTERMINATED_CLOSING_BRACE,z.EMPTY_PLACEHOLDER,z.NOT_ALLOW_NEST_PLACEHOLDER,z.INVALID_LINKED_FORMAT,z.MUST_HAVE_MESSAGES_IN_PLURAL,z.UNEXPECTED_EMPTY_LINKED_MODIFIER,z.UNEXPECTED_EMPTY_LINKED_KEY,z.UNEXPECTED_LEXICAL_ANALYSIS,z.UNHANDLED_CODEGEN_NODE_TYPE,z.UNHANDLED_MINIFIER_NODE_TYPE;function De(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function Oe(e){throw e}var B=` `,ke=`\r`,V=`
2
- `,Ae=`\u2028`,je=`\u2029`;function H(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===ke&&t[e+1]===V,s=e=>t[e]===V,c=e=>t[e]===je,l=e=>t[e]===Ae,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?V:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}var U=void 0,Me=`'`,Ne=`tokenizer`;function Pe(e,t={}){let n=t.location!==!1,r=H(e),i=()=>r.index(),a=()=>Te(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();if(t.column+=r,t.offset+=r,u){let r=De(e,n?Ee(a.startLoc,t):null,{domain:Ne,args:i});u(r)}}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=Ee(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(z.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===B||e.currentPeek()===V;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function _(e){if(e===U)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function v(e){if(e===U)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function y(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=v(e.currentPeek()===`-`?e.peek():e.currentPeek());return e.resetPeek(),r}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===Me;return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(n!==7&&n!==11)return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function T(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();return t===`{`?_(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===B||!t?!1:t===V?(e.peek(),r()):D(e,!1)},i=r();return e.resetPeek(),i}function E(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function D(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?r!==B&&r!==V:i===B?(e.peek(),n(!0,B)):i!==V||(e.peek(),n(!0,V))},r=n();return t&&e.resetPeek(),r}function O(e,t){let n=e.currentChar();if(n!==U)return t(n)?(e.next(),n):null}function k(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function ee(e){return O(e,k)}function A(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function te(e){return O(e,A)}function j(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function M(e){return O(e,j)}function N(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function P(e){return O(e,N)}function F(e){let t=``,n=``;for(;t=M(e);)n+=t;return n}function I(e){let t=``;for(;;){let n=e.currentChar();if(n===`\\`){let r=e.peek();r===`{`||r===`}`||r===`@`||r===`|`||r===`\\`?(t+=n+r,e.next(),e.next()):(e.resetPeek(),t+=n,e.next())}else if(n===`{`||n===`}`||n===`@`||n===`|`||!n)break;else if(n===B||n===V){if(D(e))t+=n,e.next();else if(E(e))break;else t+=n,e.next()}else t+=n,e.next()}return t}function ne(e){g(e);let t=``,n=``;for(;t=te(e);)n+=t;let r=e.currentChar();if(r&&r!==`}`&&r!==U&&r!==B&&r!==V&&r!==` `){let t=ce(e);return d(z.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n+t),n+t}return e.currentChar()===U&&d(z.UNTERMINATED_CLOSING_BRACE,a(),0),n}function re(e){g(e);let t=``;return e.currentChar()===`-`?(e.next(),t+=`-${F(e)}`):t+=F(e),e.currentChar()===U&&d(z.UNTERMINATED_CLOSING_BRACE,a(),0),t}function ie(e){return e!==Me&&e!==V}function L(e){g(e),m(e,`'`);let t=``,n=``;for(;t=O(e,ie);)n+=t===`\\`?ae(e):t;let r=e.currentChar();return r===V||r===U?(d(z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===V&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function ae(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return oe(e,t,4);case`U`:return oe(e,t,6);default:return d(z.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function oe(e,t,n){m(e,t);let r=``;for(let i=0;i<n;i++){let n=P(e);if(!n){d(z.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function se(e){return e!==`{`&&e!==`}`&&e!==B&&e!==V}function ce(e){g(e);let t=``,n=``;for(;t=O(e,se);)n+=t;return n}function le(e){let t=``,n=``;for(;t=ee(e);)n+=t;return n}function ue(e){let t=n=>{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===B?n:(n+=r,e.next(),t(n))};return t(``)}function de(e){g(e);let t=m(e,`|`);return g(e),t}function R(e,t){let n=null;switch(e.currentChar()){case`{`:return t.braceNest>=1&&d(z.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=f(t,2,`{`),g(e),t.braceNest++,n;case`}`:return t.braceNest>0&&t.currentType===2&&d(z.EMPTY_PLACEHOLDER,a(),0),e.next(),n=f(t,3,`}`),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),n;case`@`:return t.braceNest>0&&d(z.UNTERMINATED_CLOSING_BRACE,a(),0),n=fe(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(E(e))return t.braceNest>0&&d(z.UNTERMINATED_CLOSING_BRACE,a(),0),n=f(t,1,de(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return d(z.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,pe(e,t);if(r=y(e,t))return n=f(t,4,ne(e)),g(e),n;if(i=b(e,t))return n=f(t,5,re(e)),g(e),n;if(o=x(e,t))return n=f(t,6,L(e)),g(e),n;if(!r&&!i&&!o)return n=f(t,12,ce(e)),d(z.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function fe(e,t){let{currentType:n}=t,r=null,i=e.currentChar();switch((n===7||n===8||n===11||n===9)&&(i===V||i===B)&&d(z.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return E(e)?(r=f(t,1,de(e)),t.braceNest=0,t.inLinked=!1,r):S(e,t)||w(e,t)?(g(e),fe(e,t)):C(e,t)?(g(e),f(t,11,le(e))):T(e,t)?(g(e),i===`{`?R(e,t)||r:f(t,10,ue(e))):(n===7&&d(z.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,pe(e,t))}}function pe(e,t){let n={type:13};if(t.braceNest>0)return R(e,t)||p(t);if(t.inLinked)return fe(e,t)||p(t);switch(e.currentChar()){case`{`:return R(e,t)||p(t);case`}`:return d(z.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return fe(e,t)||p(t);default:if(E(e))return n=f(t,1,de(e)),t.braceNest=0,t.inLinked=!1,n;if(D(e))return f(t,0,I(e))}return n}function me(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===U?f(c,13):pe(r,c)}return{nextToken:me,currentOffset:i,currentPosition:a,context:l}}var Fe=`parser`,Ie=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,Le=/\\([\\@{}|])/g;function Re(e,t){return t}function ze(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`�`}}}function Be(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();if(s.offset+=a,s.column+=a,n){let e=De(r,t?Ee(i,s):null,{domain:Fe,args:o});n(e)}}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t.replace(Le,Re),a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(5,n,r);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(4,n,r);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(9,n,r);return o.value=t.replace(Ie,ze),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,z.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,W(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,z.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(o)),n.key=l(e,o.value||``);break;default:{r(e,z.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=i(2,t.currentType===1?e.currentOffset():t.offset,t.currentType===1?t.endLoc:t.startLoc);n.items=[];let u=null;do{let i=u||e.nextToken();switch(u=null,i.type){case 0:i.value??r(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(i)),n.items.push(o(e,i.value||``));break;case 5:i.value??r(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(i)),n.items.push(s(e,i.value||``));break;case 4:i.value??r(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(i)),n.items.push(c(e,i.value||``));break;case 6:i.value??r(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(i)),n.items.push(l(e,i.value||``));break;case 7:{let t=f(e);n.items.push(t.node),u=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);return a(n,t.currentType===1?t.lastOffset:e.currentOffset(),t.currentType===1?t.lastEndLoc:e.currentPosition()),n}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,z.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=Pe(n,D({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,z.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function W(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`…`:t}function Ve(e,t={}){let n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function He(e,t){for(let n=0;n<e.length;n++)Ue(e[n],t)}function Ue(e,t){switch(e.type){case 1:He(e.cases,t),t.helper(`plural`);break;case 2:He(e.items,t);break;case 6:Ue(e.key,t),t.helper(`linked`),t.helper(`type`);break;case 5:t.helper(`interpolate`),t.helper(`list`);break;case 4:t.helper(`interpolate`),t.helper(`named`)}}function We(e,t={}){let n=Ve(e);n.helper(`normalize`),e.body&&Ue(e.body,n);let r=n.context();e.helpers=Array.from(r.helpers)}function Ge(e){let t=e.body;return t.type===2?Ke(t):t.cases.forEach(e=>Ke(e)),e}function Ke(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;n<e.items.length;n++){let r=e.items[n];if(r.type!==3&&r.type!==9||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=oe(t);for(let t=0;t<e.items.length;t++){let n=e.items[t];(n.type===3||n.type===9)&&delete n.value}}}}function qe(e){switch(e.t=e.type,e.type){case 0:{let t=e;qe(t.body),t.b=t.body,delete t.body;break}case 1:{let t=e,n=t.cases;for(let e=0;e<n.length;e++)qe(n[e]);t.c=n,delete t.cases;break}case 2:{let t=e,n=t.items;for(let e=0;e<n.length;e++)qe(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{let t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{let t=e;qe(t.key),t.k=t.key,delete t.key,t.modifier&&(qe(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{let t=e;t.i=t.index,delete t.index;break}case 4:{let t=e;t.k=t.key,delete t.key;break}}delete e.type}function Je(e,t){let{filename:n,breakLineCode:r,needIndent:i}=t,a=t.location!==!1,o={filename:n,code:``,column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);let s=()=>o;function c(e,t){o.code+=e}function l(e,t=!0){let n=t?r:``;c(i?n+` `.repeat(e):n)}function u(e=!0){let t=++o.indentLevel;e&&l(t)}function d(e=!0){let t=--o.indentLevel;e&&l(t)}function f(){l(o.indentLevel)}return{context:s,push:c,indent:u,deindent:d,newline:f,helper:e=>`_${e}`,needIndent:()=>o.needIndent}}function Ye(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),$e(e,t.key),t.modifier?(e.push(`, `),$e(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function Xe(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n<i&&($e(e,t.items[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}function Ze(e,t){let{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n<i&&($e(e,t.cases[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}}function Qe(e,t){t.body?$e(e,t.body):e.push(`null`)}function $e(e,t){let{helper:n}=e;switch(t.type){case 0:Qe(e,t);break;case 1:Ze(e,t);break;case 2:Xe(e,t);break;case 6:Ye(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`)}(${n(`list`)}(${t.index}))`,t);break;case 4:e.push(`${n(`interpolate`)}(${n(`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)}}var et=(e,t={})=>{let n=P(t.mode)?t.mode:`normal`,r=P(t.filename)?t.filename:`message.intl`;t.sourceMap;let i=t.breakLineCode==null?n===`arrow`?`;`:`
3
- `:t.breakLineCode,a=t.needIndent?t.needIndent:n!==`arrow`,o=e.helpers||[],s=Je(e,{filename:r,breakLineCode:i,needIndent:a});s.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),s.indent(a),o.length>0&&(s.push(`const { ${oe(o.map(e=>`${e}: _${e}`),`, `)} } = ctx`),s.newline()),s.push(`return `),$e(s,e),s.deindent(a),s.push(`}`),delete e.helpers;let{code:c,map:l}=s.context();return{ast:e,code:c,map:l?l.toJSON():void 0}};function tt(e,t={}){let n=D({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null||n.optimize,o=Be(n).parse(e);return r?(a&&Ge(o),i&&qe(o),{ast:o,code:``}):(We(o,n),et(o,n))}function nt(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(A().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(A().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function G(e){return I(e)&&ft(e)===0&&(j(e,`b`)||j(e,`body`))}var rt=[`b`,`body`];function it(e){return K(e,rt)}var at=[`c`,`cases`];function ot(e){return K(e,at,[])}var st=[`s`,`static`];function ct(e){return K(e,st)}var lt=[`i`,`items`];function ut(e){return K(e,lt,[])}var dt=[`t`,`type`];function ft(e){return K(e,dt)}var pt=[`v`,`value`];function mt(e,t){let n=K(e,pt);if(n!=null)return n;throw bt(t)}var ht=[`m`,`modifier`];function gt(e){return K(e,ht)}var _t=[`k`,`key`];function vt(e){let t=K(e,_t);if(t)return t;throw bt(6)}function K(e,t,n){for(let n=0;n<t.length;n++){let r=t[n];if(j(e,r)&&e[r]!=null)return e[r]}return n}var yt=[...rt,...at,...st,...lt,..._t,...ht,...pt,...dt];function bt(e){return Error(`unhandled node type: ${e}`)}function xt(e){return t=>St(t,e)}function St(e,t){let n=it(t);if(n==null)throw bt(0);if(ft(n)===1){let t=ot(n);return e.plural(t.reduce((t,n)=>[...t,Ct(e,n)],[]))}return Ct(e,n)}function Ct(e,t){let n=ct(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=ut(t).reduce((t,n)=>[...t,wt(e,n)],[]);return e.normalize(n)}}function wt(e,t){let n=ft(t);switch(n){case 3:return mt(t,n);case 9:return mt(t,n);case 4:{let r=t;if(j(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(j(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw bt(n)}case 5:{let r=t;if(j(r,`i`)&&C(r.i))return e.interpolate(e.list(r.i));if(j(r,`index`)&&C(r.index))return e.interpolate(e.list(r.index));throw bt(n)}case 6:{let n=t,r=gt(n),i=vt(n);return e.linked(wt(e,i),r?wt(e,r):void 0,e.type)}case 7:return mt(t,n);case 8:return mt(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var Tt=e=>e,Et=k();function Dt(e,t={}){let n=!1,r=t.onError||Oe;return t.onError=e=>{n=!0,r(e)},{...tt(e,t),detectError:n}}function Ot(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&P(e)){F(t.warnHtmlMessage)&&t.warnHtmlMessage;let n=(t.onCacheKey||Tt)(e),r=Et[n];if(r)return r;let{ast:i,detectError:a}=Dt(e,{...t,location:!1,jit:!0}),o=xt(i);return a?o:Et[n]=o}{let t=e.cacheKey;return t?Et[t]||(Et[t]=xt(e)):xt(e)}}var kt=null;function At(e){kt=e}function jt(e,t,n){kt&&kt.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}var Mt=Nt(`function:translate`);function Nt(e){return t=>kt&&kt.emit(e,t)}var q={INVALID_ARGUMENT: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};function J(e){return De(e,null,void 0)}q.INVALID_ARGUMENT,q.INVALID_DATE_ARGUMENT,q.INVALID_ISO_DATE_ARGUMENT,q.NOT_SUPPORT_NON_STRING_MESSAGE,q.NOT_SUPPORT_LOCALE_PROMISE_VALUE,q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,q.NOT_SUPPORT_LOCALE_TYPE;function Pt(e,t){return t.locale==null?It(e.locale):It(t.locale)}var Ft;function It(e){if(P(e))return e;if(N(e)){if(e.resolvedOnce&&Ft!=null)return Ft;if(e.constructor.name===`Function`){let t=e();if(ne(t))throw J(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Ft=t}throw J(q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw J(q.NOT_SUPPORT_LOCALE_TYPE)}function Lt(e,t,n){return[...new Set([n,...M(t)?t:I(t)?Object.keys(t).filter(e=>e!=="default"):P(t)?[t]:[n]])]}function Rt(e,t,n){let r=P(n)?n:Qt,i=e,a;I(t)?(i.__localeChainObjectCache||=new WeakMap,a=i.__localeChainObjectCache.get(t),a||(a=new Map,i.__localeChainObjectCache.set(t,a))):(i.__localeChainCache||=new Map,a=i.__localeChainCache.get(t),a||(a=new Map,i.__localeChainCache.set(t,a)));let o=a.get(r);if(o)return o;let s=[],c=[n];for(;M(c);)c=zt(s,c,t);let l=M(t)||!L(t)?t:t.default?t.default:null;return c=P(l)?[l]:l,M(c)&&zt(s,c,!1),a.set(r,s),s}function zt(e,t,n){let r=!0;for(let i=0;i<t.length&&F(r);i++){let a=t[i];P(a)&&(r=Bt(e,t[i],n))}return r}function Bt(e,t,n){let r,i=t.split(`-`);do r=Vt(e,i.join(`-`),n),i.splice(-1,1);while(i.length&&r===!0);return r}function Vt(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!==`!`;let i=t.replace(/!/g,``);e.push(i),(M(n)||L(n))&&n[i]&&(r=n[i])}return r}var Y=[];Y[0]={w:[0],i:[3,0],"[":[4],o:[7]},Y[1]={w:[1],".":[2],"[":[4],o:[7]},Y[2]={w:[2],i:[3,0],0:[3,0]},Y[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Y[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Y[5]={"'":[4,0],o:8,l:[5,0]},Y[6]={'"':[4,0],o:8,l:[6,0]};var Ht=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ut(e){return Ht.test(e)}function Wt(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function Gt(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:case 10:case 13:case 160:case 65279:case 8232:case 8233:return`w`}return`i`}function Kt(e){let t=e.trim();return e.charAt(0)===`0`&&isNaN(parseInt(e))?!1:Ut(t)?Wt(t):`*`+t}function qt(e){let t=[],n=-1,r=0,i=0,a,o,s,c,l,u,d,f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=Kt(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=Gt(a),d=Y[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var Jt=new Map;function Yt(e,t){return I(e)?e[t]:null}function Xt(e,t){if(!I(e))return null;let n=Jt.get(t);if(n||(n=qt(t),n&&Jt.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a<r;){let e=n[a];if(yt.includes(e)&&G(i)||!I(i)||!j(i,e))return null;let t=i[e];if(t===void 0||N(i))return null;i=t,a++}return i}var X={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,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9};X.NOT_FOUND_KEY,X.FALLBACK_TO_TRANSLATE,X.CANNOT_FORMAT_NUMBER,X.FALLBACK_TO_NUMBER_FORMAT,X.CANNOT_FORMAT_DATE,X.FALLBACK_TO_DATE_FORMAT,X.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER,X.INVALID_NUMBER_ARGUMENT,X.INVALID_DATE_ARGUMENT;var Zt=`11.4.13`,Qt=`en-US`,$t=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function en(){return{upper:(e,t)=>t===`text`&&P(e)?e.toUpperCase():t===`vnode`&&I(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&P(e)?e.toLowerCase():t===`vnode`&&I(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&P(e)?$t(e):t===`vnode`&&I(e)&&`__v_isVNode`in e?$t(e.children):e}}var tn;function nn(e){tn=e}var rn;function an(e){rn=e}var on;function sn(e){on=e}var cn=null,ln=()=>cn,un=null,dn=e=>{un=e},fn=()=>un,pn=0;function mn(e={}){let t=N(e.onWarn)?e.onWarn:se,n=P(e.version)?e.version:Zt,r=P(e.locale)||N(e.locale)?e.locale:Qt,i=N(r)?Qt:r,a=M(e.fallbackLocale)||L(e.fallbackLocale)||P(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=L(e.messages)?e.messages:hn(i),s=L(e.datetimeFormats)?e.datetimeFormats:hn(i),c=L(e.numberFormats)?e.numberFormats:hn(i),l=D(k(),e.modifiers,en()),u=e.pluralRules||k(),d=N(e.missing)?e.missing:null,f=F(e.missingWarn)||T(e.missingWarn)?e.missingWarn:!0,p=F(e.fallbackWarn)||T(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=N(e.postTranslation)?e.postTranslation:null,_=L(e.processor)?e.processor:null,v=!F(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,b=N(e.messageCompiler)?e.messageCompiler:tn,x=N(e.messageResolver)?e.messageResolver:rn||Yt,S=N(e.localeFallbacker)?e.localeFallbacker:on||Lt,C=I(e.fallbackContext)?e.fallbackContext:void 0,w=e,E=I(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,O=I(w.__numberFormatters)?w.__numberFormatters:new Map,ee=I(w.__meta)?w.__meta:{};pn++;let A={version:n,cid:pn,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:_,warnHtmlMessage:v,escapeParameter:y,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:ee};return A.datetimeFormats=s,A.numberFormats=c,A.__datetimeFormatters=E,A.__numberFormatters=O,__INTLIFY_PROD_DEVTOOLS__&&jt(A,n,ee),A}var hn=e=>({[e]:k()});function gn(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(a!==null){let r=a(e,n,t,i);return P(r)?r:t}return t}function _n(e,t){let n=e;I(t)?n.__localeChainObjectCache?.delete(t):n.__localeChainCache?.delete(t)}function vn(e,t,n){_n(e,n),e.fallbackContext&&_n(e.fallbackContext,n),e.localeFallbacker(e,n,t)}function yn(e,t){return e!==t&&e.split(`-`)[0]===t.split(`-`)[0]}function bn(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(yn(e,t[r]))return!0;return!1}function xn(e,t,n,r,i,a,o){let{fallbackLocale:s,localeFallbacker:c,onWarn:l}=e,u=c(e,s,n);for(let n=0;n<u.length;n++){let a=u[n],s=(r[a]||{})[t];if(L(s)&&P(a))return a;gn(e,t,a,i,o)}return null}function Sn(e,t,n){let r=`${e}__${t}`;return L(n)&&!E(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function Cn(e,t,n){for(let r in n){let n=`${t}__${r}`;for(let t of e.keys())(t===n||t.startsWith(`${n}__`))&&e.delete(t)}}function wn(e,t,n,r){let[,i,a,o]=e,s=n;return P(i)?t.key=i:L(i)&&Object.keys(i).forEach(e=>{r.includes(e)?s[e]=i[e]:t[e]=i[e]}),P(a)?t.locale=a:L(a)&&(s=a),L(o)&&(s=o),s}var Tn=typeof Intl<`u`;Tn&&Intl.DateTimeFormat,Tn&&Intl.NumberFormat;function En(e,...t){let{datetimeFormats:n,unresolving:r,onWarn:i}=e,{__datetimeFormatters:a}=e;if(!P(t[0])&&!w(t[0])&&!C(t[0]))return``;let[o,s,c,l]=On(...t),u=F(c.missingWarn)?c.missingWarn:e.missingWarn,d=F(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,p=Pt(e,c);if(!P(o)||o===``){let e=new Intl.DateTimeFormat(p.replace(/!/g,``),l);return f?e.formatToParts(s):e.format(s)}let m=xn(e,o,p,n,u,d,`datetime format`);if(!P(m))return r?-1:o;let h=n[m][o],g=Sn(m,o,l),_=a.get(g);return _||(_=new Intl.DateTimeFormat(m,D({},h,l)),a.set(g,_)),f?_.formatToParts(s):_.format(s)}var Dn=[`localeMatcher`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`formatMatcher`,`hour12`,`timeZone`,`dateStyle`,`timeStyle`,`calendar`,`dayPeriod`,`numberingSystem`,`hourCycle`,`fractionalSecondDigits`];function On(...e){let[t]=e,n=k(),r=k(),i;if(P(t)){let e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw J(q.INVALID_ISO_DATE_ARGUMENT);let n=e[3]?e[3].trim().startsWith(`T`)?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();i=new Date(n);try{i.toISOString()}catch{throw J(q.INVALID_ISO_DATE_ARGUMENT)}}else if(w(t)){if(isNaN(t.getTime()))throw J(q.INVALID_DATE_ARGUMENT);i=t}else if(C(t))i=t;else throw J(q.INVALID_ARGUMENT);let a=wn(e,n,r,Dn);return[n.key||``,i,n,a]}function kn(e,t,n){Cn(e.__datetimeFormatters,t,n)}function An(e,...t){let{numberFormats:n,unresolving:r,onWarn:i}=e,{__numberFormatters:a}=e;if(!C(t[0]))return``;let[o,s,c,l]=Mn(...t),u=F(c.missingWarn)?c.missingWarn:e.missingWarn,d=F(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,p=Pt(e,c);if(!P(o)||o===``){let e=new Intl.NumberFormat(p.replace(/!/g,``),l);return f?e.formatToParts(s):e.format(s)}let m=xn(e,o,p,n,u,d,`number format`);if(!P(m))return r?-1:o;let h=n[m][o],g=Sn(m,o,l),_=a.get(g);return _||(_=new Intl.NumberFormat(m,D({},h,l)),a.set(g,_)),f?_.formatToParts(s):_.format(s)}var jn=[`localeMatcher`,`style`,`currency`,`currencyDisplay`,`currencySign`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`roundingMode`,`roundingPriority`,`roundingIncrement`,`trailingZeroDisplay`];function Mn(...e){let[t]=e,n=k(),r=k();if(!C(t))throw J(q.INVALID_ARGUMENT);let i=t,a=wn(e,n,r,jn);return[n.key||``,i,n,a]}function Nn(e,t,n){Cn(e.__numberFormatters,t,n)}var Pn=e=>e,Fn=e=>``,In=`text`,Ln=e=>e.length===0?``:oe(e),Rn=ae;function zn(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function Bn(e){let t=C(e.pluralIndex)?e.pluralIndex:-1;return C(e.named?.count)?e.named.count:C(e.named?.n)?e.named.n:t}function Vn(e={}){let t=e.locale,n=Bn(e),r=P(t)&&N(e.pluralRules?.[t])?e.pluralRules[t]:zn,i=r===zn?void 0:zn,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||k();C(e.pluralIndex)&&(c.count||=e.pluralIndex,c.n||=e.pluralIndex);let l=e=>c[e];function u(t,n){return(N(e.messages)?e.messages(t,!!n):I(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):Fn)}let d=t=>e.modifiers?e.modifiers[t]:Pn,f=N(e.processor?.normalize)?e.processor.normalize:Ln,p=N(e.processor?.interpolate)?e.processor.interpolate:Rn,m={list:s,named:l,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?I(n)?(a=n.modifier||a,i=n.type||i):P(n)&&(a=n||a):t.length===2&&(P(n)&&(a=n||a),P(r)&&(i=r||i));let o=u(e,!0)(m),s=o===``||o===void 0?e:o,c=i===`vnode`&&M(s)&&a?s[0]:s;return a?d(a)(c,i):c},message:u,type:P(e.processor?.type)?e.processor.type:In,interpolate:p,normalize:f,values:D(k(),o,c)};return m}var Hn=()=>``,Z=e=>N(e);function Un(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=Jn(...t),u=F(l.missingWarn)?l.missingWarn:e.missingWarn,d=F(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=F(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=P(l.default)||F(l.default)?F(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(P(m)||N(m)),g=Pt(e,l);f&&Wn(l);let[_,v,y]=p?[c,g,s[g]||k()]:Gn(e,c,g,o,d,u),b=_,x=c;if(!p&&!(P(b)||G(b)||Z(b))&&h&&(b=m,x=b),!p&&(!(P(b)||G(b)||Z(b))||!P(v)))return i?-1:c;let S=!1,C=Z(b)?b:Kn(e,c,v,b,x,()=>{S=!0});if(S)return b;let w=qn(e,C,Vn(Xn(e,v,y,l))),T=r?r(w,c):w;if(f&&P(T)&&(T=Se(T)),__INTLIFY_PROD_DEVTOOLS__){let t={timestamp:Date.now(),key:P(c)?c:Z(b)?b.key:``,locale:v||(Z(b)?b.locale:``),format:P(b)?b:Z(b)?b.source:``,message:T};t.meta=D({},e.__meta,ln()||{}),Mt(t)}return T}function Wn(e){M(e.list)?e.list=e.list.map(e=>P(e)?ce(e):e):I(e.named)&&Object.keys(e.named).forEach(t=>{P(e.named[t])&&(e.named[t]=ce(e.named[t]))})}function Gn(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=k(),f,p=null;for(let n=0;n<u.length&&(f=u[n],d=o[f]||k(),(p=c(d,t))===null&&(p=d[t]),!(P(p)||G(p)||Z(p)));n++)if(!bn(f,u)){let n=gn(e,t,f,a,`translate`);n!==t&&(p=n)}return[p,f,d]}function Kn(e,t,n,r,i,a){let{messageCompiler:o,warnHtmlMessage:s}=e;if(Z(r)){let e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(o==null){let e=(()=>r);return e.locale=n,e.key=t,e}let c=o(r,Yn(e,n,i,r,s,a));return c.locale=n,c.key=t,c.source=r,c}function qn(e,t,n){return t(n)}function Jn(...e){let[t,n,r]=e,i=k();if(!P(t)&&!C(t)&&!Z(t)&&!G(t))throw J(q.INVALID_ARGUMENT);let a=C(t)?String(t):(Z(t),t);return C(n)?i.plural=n:P(n)?i.default=n:L(n)&&!E(n)?i.named=n:M(n)&&(i.list=n),C(r)?i.plural=r:P(r)?i.default=r:L(r)&&D(i,r),[a,i]}function Yn(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:e=>{throw a&&a(e),e},onCacheKey:e=>x(t,n,e)}}function Xn(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[n,,i]=Gn(u||e,r,t,s,c,l);a=n??o(i,r)}if(P(a)||G(a)){let n=!1,i=Kn(e,r,t,a,r,()=>{n=!0});return n?Hn:i}return Z(a)?a:Hn}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),C(r.plural)&&(d.pluralIndex=r.plural),d}nt(),t(),l();var Zn=`11.4.13`;function Qn(){typeof __VUE_I18N_FULL_INSTALL__!=`boolean`&&(A().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!=`boolean`&&(A().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(A().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(A().__INTLIFY_PROD_DEVTOOLS__=!1)}var Q={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function $(e,...t){return De(e,null,void 0)}Q.UNEXPECTED_RETURN_TYPE,Q.INVALID_ARGUMENT,Q.MUST_BE_CALL_SETUP_TOP,Q.NOT_INSTALLED,Q.UNEXPECTED_ERROR,Q.REQUIRED_VALUE,Q.INVALID_VALUE,Q.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,Q.NOT_INSTALLED_WITH_PROVIDE,Q.NOT_COMPATIBLE_LEGACY_VUE_I18N,Q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;var $n=b(`__translateVNode`),er=b(`__datetimeParts`),tr=b(`__numberParts`),nr=b(`__setPluralRules`);b(`__intlifyMeta`);var rr=b(`__injectWithOption`),ir=b(`__dispose`),ar={FALLBACK_TO_ROOT:10,NOT_FOUND_PARENT_SCOPE:11,IGNORE_OBJ_FLATTEN:12,DEPRECATE_LEGACY_MODE:13,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:14,DUPLICATE_USE_I18N_CALLING:15};ar.FALLBACK_TO_ROOT,ar.NOT_FOUND_PARENT_SCOPE,ar.IGNORE_OBJ_FLATTEN,ar.DEPRECATE_LEGACY_MODE,ar.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE,ar.DUPLICATE_USE_I18N_CALLING;var or=null;{let e=A().__VUE_INSTANCE_SETTERS__;M(e)&&e.push(e=>{or=e})}function sr(e){if(!I(e)||G(e))return e;for(let t in e)if(j(e,t)){if(!t.includes(`.`))I(e[t])&&sr(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e<r;e++){if(n[e]===`__proto__`)throw Error(`unsafe key: ${n[e]}`);if(n[e]in i||(i[n[e]]=k()),!I(i[n[e]])){a=!0;break}i=i[n[e]]}if(a||(G(i)?yt.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!G(i)){let e=i[n[r]];I(e)&&sr(e)}}}return e}function cr(e,t){let{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,o=L(n)?n:M(r)?k():{[e]:k()};if(M(r)&&r.forEach(e=>{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;t?(o[t]=o[t]||k(),we(n,o[t])):we(n,o)}else P(e)&&we(JSON.parse(e),o)}),i==null&&a)for(let e in o)j(o,e)&&sr(o[e]);return o}function lr(e){return e.type}function ur(e,t,n){let r=I(t.messages)?t.messages:k();`__i18nGlobal`in n&&(r=cr(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),I(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(I(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function dr(e){return h(v,null,e,0)}function fr(){return or??f()}var pr=()=>[],mr=()=>!1,hr=0;function gr(e){return((t,n,r,i)=>e(n,r,fr()||void 0,i))}function _r(t={}){let{__root:n,__injectWithOption:i}=t,a=n===void 0,o=t.flatJson,s=y?d:e,c=!F(t.inheritLocale)||t.inheritLocale,l=s(n&&c?n.locale.value:P(t.locale)?t.locale:Qt),u=s(n&&c?n.fallbackLocale.value:P(t.fallbackLocale)||M(t.fallbackLocale)||L(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:l.value),f=s(cr(l.value,t)),p=s(L(t.datetimeFormats)?t.datetimeFormats:{[l.value]:{}}),m=s(L(t.numberFormats)?t.numberFormats:{[l.value]:{}}),h=n?n.missingWarn:F(t.missingWarn)||T(t.missingWarn)?t.missingWarn:!0,g=n?n.fallbackWarn:F(t.fallbackWarn)||T(t.fallbackWarn)?t.fallbackWarn:!0,v=n?n.fallbackRoot:!F(t.fallbackRoot)||t.fallbackRoot,b=!!t.fallbackFormat,x=N(t.missing)?t.missing:null,S=N(t.missing)?gr(t.missing):null,w=N(t.postTranslation)?t.postTranslation:null,E=n?n.warnHtmlMessage:!F(t.warnHtmlMessage)||t.warnHtmlMessage,O=!!t.escapeParameter,k=n?n.modifiers:L(t.modifiers)?t.modifiers:{},ee=t.pluralRules||n&&n.pluralRules,A;A=(()=>{a&&dn(null);let e={version:Zn,locale:l.value,fallbackLocale:u.value,messages:f.value,modifiers:k,pluralRules:ee,missing:S===null?void 0:S,missingWarn:h,fallbackWarn:g,fallbackFormat:b,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:E,escapeParameter:O,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:`vue`}};e.datetimeFormats=p.value,e.numberFormats=m.value,e.__datetimeFormatters=L(A)?A.__datetimeFormatters:void 0,e.__numberFormatters=L(A)?A.__numberFormatters:void 0;let n=mn(e);return a&&dn(n),n})(),vn(A,l.value,u.value);function te(){return[l.value,u.value,f.value,p.value,m.value]}let ne=r({get:()=>l.value,set:e=>{A.locale=e,l.value=e}});function re(e){a||(A.fallbackContext=n?fn():void 0);try{vn(A,l.value,e)}finally{a||(A.fallbackContext=void 0)}}let ie=r({get:()=>u.value,set:e=>{u.value=e,A.fallbackLocale=u.value,re(u.value)}}),ae=r(()=>f.value),oe=r(()=>p.value),se=r(()=>m.value);function ce(){return N(w)?w:null}function le(e){w=e,A.postTranslation=e}function ue(){return x}function de(e){e!==null&&(S=gr(e)),x=e,A.missing=S}let R=(e,t,r,i,o,s)=>{te();let c;try{__INTLIFY_PROD_DEVTOOLS__,a||(A.fallbackContext=n?fn():void 0),c=e(A)}finally{__INTLIFY_PROD_DEVTOOLS__,a||(A.fallbackContext=void 0)}if(r!==`translate exists`&&C(c)&&c===-1||r===`translate exists`&&!c){let[e,r]=t();return n&&v?i(n):o(e)}if(s(c))return c;throw $(Q.UNEXPECTED_RETURN_TYPE)};function fe(...e){return R(t=>Reflect.apply(Un,null,[t,...e]),()=>Jn(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>P(e))}function pe(...e){let[t,n,r]=e;if(r&&!I(r))throw $(Q.INVALID_ARGUMENT);return fe(t,n,D({resolvedMessage:!0},r||{}))}function me(...e){return R(t=>Reflect.apply(En,null,[t,...e]),()=>On(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>P(e)||M(e))}function he(...e){return R(t=>Reflect.apply(An,null,[t,...e]),()=>Mn(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>P(e)||M(e))}function ge(e){return e.map(e=>P(e)||C(e)||F(e)?dr(String(e)):e)}let _e={normalize:ge,interpolate:e=>e,type:`vnode`};function ve(...e){return R(t=>{let n,r=t;try{r.processor=_e,n=Reflect.apply(Un,null,[r,...e])}finally{r.processor=null}return n},()=>Jn(...e),`translate`,t=>t[$n](...e),e=>[dr(e)],e=>M(e))}function ye(...e){return R(t=>Reflect.apply(An,null,[t,...e]),()=>Mn(...e),`number format`,t=>t[tr](...e),pr,e=>P(e)||M(e))}function be(...e){return R(t=>Reflect.apply(En,null,[t,...e]),()=>On(...e),`datetime format`,t=>t[er](...e),pr,e=>P(e)||M(e))}function xe(e){ee=e,A.pluralRules=ee}function Se(e,t){return R(()=>{if(!e)return!1;let n=P(t)?t:l.value,r=P(t)?[n]:Rt(A,u.value,n);for(let t=0;t<r.length;t++){let n=Ee(r[t]),i=A.messageResolver(n,e);if(i===null&&(i=n[e]),G(i)||Z(i)||P(i))return!0}return!1},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),mr,e=>F(e))}function Ce(e){let t=null,n=Rt(A,u.value,l.value);for(let r=0;r<n.length;r++){let i=f.value[n[r]]||{},a=A.messageResolver(i,e);if(a!=null){t=a;break}}return t}function Te(e){return Ce(e)??(n&&n.tm(e)||{})}function Ee(e){return f.value[e]||{}}function z(e,t){if(o){let n={[e]:t};for(let e in n)j(n,e)&&sr(n[e]);t=n[e]}f.value[e]=t,A.messages=f.value}function De(e,t){f.value[e]=f.value[e]||{};let n={[e]:t};if(o)for(let e in n)j(n,e)&&sr(n[e]);t=n[e],we(t,f.value[e]),A.messages=f.value}function Oe(e){return p.value[e]||{}}function B(e,t){p.value[e]=t,A.datetimeFormats=p.value,kn(A,e,t)}function ke(e,t){p.value[e]=D(p.value[e]||{},t),A.datetimeFormats=p.value,kn(A,e,t)}function V(e){return m.value[e]||{}}function Ae(e,t){m.value[e]=t,A.numberFormats=m.value,Nn(A,e,t)}function je(e,t){m.value[e]=D(m.value[e]||{},t),A.numberFormats=m.value,Nn(A,e,t)}hr++,_(u,()=>re(u.value),{deep:!0,flush:`sync`}),n&&y&&(_(n.locale,e=>{c&&(l.value=e,A.locale=e,vn(A,l.value,u.value))}),_(n.fallbackLocale,e=>{c&&(u.value=e,A.fallbackLocale=u.value,vn(A,l.value,u.value))}));let H={id:hr,locale:ne,fallbackLocale:ie,get inheritLocale(){return c},set inheritLocale(e){c=e,e&&n&&(ne.value=n.locale.value,ie.value=n.fallbackLocale.value)},get availableLocales(){return Object.keys(f.value).sort()},messages:ae,get modifiers(){return k},get pluralRules(){return ee||{}},get isGlobal(){return a},get missingWarn(){return h},set missingWarn(e){h=e,A.missingWarn=h},get fallbackWarn(){return g},set fallbackWarn(e){g=e,A.fallbackWarn=g},get fallbackRoot(){return v},set fallbackRoot(e){v=e},get fallbackFormat(){return b},set fallbackFormat(e){b=e,A.fallbackFormat=b},get warnHtmlMessage(){return E},set warnHtmlMessage(e){E=e,A.warnHtmlMessage=e},get escapeParameter(){return O},set escapeParameter(e){O=e,A.escapeParameter=e},t:fe,getLocaleMessage:Ee,setLocaleMessage:z,mergeLocaleMessage:De,getPostTranslationHandler:ce,setPostTranslationHandler:le,getMissingHandler:ue,setMissingHandler:de,[nr]:xe};return H.datetimeFormats=oe,H.numberFormats=se,H.rt=pe,H.te=Se,H.tm=Te,H.d=me,H.n=he,H.getDateTimeFormat=Oe,H.setDateTimeFormat=B,H.mergeDateTimeFormat=ke,H.getNumberFormat=V,H.setNumberFormat=Ae,H.mergeNumberFormat=je,H[rr]=i,H[$n]=ve,H[er]=be,H[tr]=ye,H}function vr(e){let t=P(e.locale)?e.locale:Qt,n=P(e.fallbackLocale)||M(e.fallbackLocale)||L(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=N(e.missing)?e.missing:void 0,i=F(e.silentTranslationWarn)||T(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=F(e.silentFallbackWarn)||T(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=!F(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,c=L(e.modifiers)?e.modifiers:{},l=e.pluralizationRules,u=N(e.postTranslation)?e.postTranslation:void 0,d=!P(e.warnHtmlInMessage)||e.warnHtmlInMessage!==`off`,f=!!e.escapeParameterHtml,p=!F(e.sync)||e.sync,m=e.messages;if(L(e.sharedMessages)){let t=e.sharedMessages;m=Object.keys(t).reduce((e,n)=>(D(e[n]||(e[n]={}),t[n]),e),m||{})}let{__i18n:h,__root:g,__injectWithOption:_}=e,v=e.datetimeFormats,y=e.numberFormats,b=e.flatJson;return{locale:t,fallbackLocale:n,messages:m,flatJson:b,datetimeFormats:v,numberFormats:y,missing:r,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:c,pluralRules:l,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:h,__root:g,__injectWithOption:_}}function yr(e={}){let t=_r(vr(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return F(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=F(e)?!e:e},get silentFallbackWarn(){return F(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=F(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?`warn`:`off`},set warnHtmlInMessage(e){t.warnHtmlMessage=e!==`off`},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){return Reflect.apply(t.t,t,[...e])},rt(...e){return Reflect.apply(t.rt,t,[...e])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return r.__extender=n,r}function br(e,t,n){return{beforeCreate(){let r=fr();if(!r)throw $(Q.UNEXPECTED_ERROR);let i=this.$options;if(i.i18n){let r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=xr(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=yr(r);let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(i.__i18n){if(this===this.$root)this.$i18n=xr(e,i);else{this.$i18n=yr({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else this.$i18n=e;i.__i18nGlobal&&ur(t,i,i),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){let e=fr();if(!e)throw $(Q.UNEXPECTED_ERROR);let t=this.$i18n;t&&(delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t?.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n)}}}function xr(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[nr](t.pluralizationRules||e.pluralizationRules);let n=cr(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}var Sr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function Cr({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((e,t)=>[...e,...t.type===c?t.children:[t]],[]):t.reduce((t,n)=>{let r=e[n];return r&&(t[n]=r()),t},k())}function wr(){return c}var Tr=m({name:`i18n-t`,props:D({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>C(e)||!isNaN(e)}},Sr),setup(e,t){let{slots:n,attrs:r}=t,i=e.i18n||Ir({useScope:e.scope,__useComponent:!0});return()=>{let a=()=>{let r=Object.keys(n).filter(e=>e[0]!==`_`),a=k();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=P(e.plural)?+e.plural:e.plural);let o=Cr(t,r);return i[$n](e.keypath,o,a)},o=D(k(),r),s=P(e.tag)||I(e.tag)?e.tag:wr();return I(s)?p(s,o,{default:a}):p(s,o,a())}}});function Er(e){return M(e)&&!P(e[0])}function Dr(e,t,n,r){let{slots:i,attrs:a}=t;return()=>{let t=()=>{let t={part:!0},a=k();e.locale&&(t.locale=e.locale),P(e.format)?t.key=e.format:I(e.format)&&(P(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce((t,r)=>n.includes(r)?D(k(),t,{[r]:e.format[r]}):t,k()));let o=r(e.value,t,a),s=[t.key];return M(o)?s=o.map((e,t)=>{let n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:o}):[e.value];return Er(r)&&(r[0].key=`${e.type}-${t}`),r}):P(o)&&(s=[o]),s},o=D(k(),a),s=P(e.tag)||I(e.tag)?e.tag:wr();return I(s)?p(s,o,{default:t}):p(s,o,t())}}var Or=m({name:`i18n-n`,props:D({value:{type:Number,required:!0},format:{type:[String,Object]}},Sr),setup(e,t){let n=e.i18n||Ir({useScope:e.scope,__useComponent:!0});return Dr(e,t,jn,(...e)=>n[tr](...e))}});function kr(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function Ar(e){let t=t=>{let{instance:n,value:r}=t;if(!n||!n.$)throw $(Q.UNEXPECTED_ERROR);let i=kr(e,n.$),a=jr(r);return[Reflect.apply(i.t,i,[...Mr(a)]),i]};return{created:(e,n)=>{let[r,i]=t(n);y&&(e.__i18nWatcher=_(i.locale,()=>{n.instance&&n.instance.$forceUpdate()})),e.__composer=i,e.textContent=r},unmounted:e=>{y&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=jr(t);e.textContent=Reflect.apply(n.t,n,[...Mr(r)])}},getSSRProps:e=>{let[n]=t(e);return{textContent:n}}}}function jr(e){if(P(e))return{path:e};if(L(e)){if(!(`path`in e))throw $(Q.REQUIRED_VALUE,`path`);return e}throw $(Q.INVALID_VALUE)}function Mr(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return P(n)&&(o.locale=n),C(i)&&(o.plural=i),C(a)&&(o.plural=a),[t,s,o]}function Nr(e,t,...n){let r=L(n[0])?n[0]:{};(!F(r.globalInstall)||r.globalInstall)&&([Tr.name,`I18nT`].forEach(t=>e.component(t,Tr)),[Or.name,`I18nN`].forEach(t=>e.component(t,Or)),[qr.name,`I18nD`].forEach(t=>e.component(t,qr))),e.directive(`t`,Ar(t))}var Pr=b(`global-vue-i18n`);function Fr(e={}){let t=__VUE_I18N_LEGACY_API__&&F(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=!F(e.globalInjection)||e.globalInjection,r=new Map,[i,a]=Lr(e,t),o=b(``);function s(e){return r.get(e)||null}function c(e,t){r.set(e,t)}function l(e){r.delete(e)}let u={get mode(){return __VUE_I18N_LEGACY_API__&&t?`legacy`:`composition`},async install(e,...r){if(e.__VUE_I18N_SYMBOL__=o,e.provide(e.__VUE_I18N_SYMBOL__,u),L(r[0])){let e=r[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let i=null;!t&&n&&(i=Kr(e,u.global)),__VUE_I18N_FULL_INSTALL__&&Nr(e,u,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(br(a,a.__composer,u));let s=e.unmount;e.unmount=()=>{i&&i(),u.dispose(),s()}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:s,__setInstance:c,__deleteInstance:l};return u}function Ir(e={}){let t=fr();if(t==null)throw $(Q.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw $(Q.NOT_INSTALLED);let n=Rr(t),r=Br(n),a=lr(t),o=zr(e,a);if(o===`global`)return ur(r,e,a),r;if(o===`parent`){let i=Vr(n,t,e.__useComponent);return i??=r,i}if(o===`isolated`){if(n.mode!==`composition`)throw $(Q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);let a=n,o=D({},e);o.__root=Vr(n,t)||r;let c=_r(o);return a.__composerExtend&&(c[ir]=a.__composerExtend(c)),s()&&i(()=>{let e=c[ir];e&&(e(),delete c[ir])}),c}let c=n,l=c.__getInstance(t);if(l==null){let n=D({},e);`__i18n`in a&&(n.__i18n=a.__i18n),r&&(n.__root=r),l=_r(n),c.__composerExtend&&(l[ir]=c.__composerExtend(l)),Ur(c,t,l),c.__setInstance(t,l)}return l}function Lr(e,t){let r=n(),i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>yr(e)):r.run(()=>_r(e));if(i==null)throw $(Q.UNEXPECTED_ERROR);return[r,i]}function Rr(e){let t=g(e.isCE?Pr:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw $(e.isCE?Q.NOT_INSTALLED_WITH_PROVIDE:Q.UNEXPECTED_ERROR);return t}function zr(e,t){return E(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function Br(e){return e.mode===`composition`?e.global:e.global.__composer}function Vr(e,t,n=!1){let r=null,i=t.root,a=Hr(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`)r=t.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){let e=t.__getInstance(a);e!=null&&(r=e.__composer,n&&r&&!r[rr]&&(r=null))}if(r!=null||i===a)break;a=a.parent}return r}function Hr(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Ur(e,t,n){u(()=>{},t),o(()=>{let r=n;e.__deleteInstance(t);let i=r[ir];i&&(i(),delete r[ir])},t)}var Wr=[`locale`,`fallbackLocale`,`availableLocales`],Gr=[`t`,`rt`,`d`,`n`,`tm`,`te`];function Kr(e,t){let n=Object.create(null);return Wr.forEach(e=>{let r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw $(Q.UNEXPECTED_ERROR);let i=a(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,i)}),e.config.globalProperties.$i18n=n,Gr.forEach(n=>{let r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw $(Q.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}),()=>{delete e.config.globalProperties.$i18n,Gr.forEach(t=>{delete e.config.globalProperties[`$${t}`]})}}var qr=m({name:`i18n-d`,props:D({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Sr),setup(e,t){let n=e.i18n||Ir({useScope:e.scope,__useComponent:!0});return Dr(e,t,Dn,(...e)=>n[er](...e))}});if(Qn(),nn(Ot),an(Xt),sn(Rt),__INTLIFY_PROD_DEVTOOLS__){let e=A();e.__INTLIFY__=!0,At(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}export{Ir as n,Fr as t};