@vc-shell/framework 1.1.62 → 1.1.64

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 (115) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/core/composables/useLanguages/index.ts +16 -73
  3. package/core/services/index.ts +1 -0
  4. package/core/services/language-service.ts +88 -0
  5. package/dist/core/composables/useLanguages/index.d.ts +4 -15
  6. package/dist/core/composables/useLanguages/index.d.ts.map +1 -1
  7. package/dist/core/services/index.d.ts +1 -0
  8. package/dist/core/services/index.d.ts.map +1 -1
  9. package/dist/core/services/language-service.d.ts +15 -0
  10. package/dist/core/services/language-service.d.ts.map +1 -0
  11. package/dist/framework.js +6038 -6021
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/injection-keys.d.ts +2 -1
  14. package/dist/injection-keys.d.ts.map +1 -1
  15. package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
  16. package/dist/tsconfig.tsbuildinfo +1 -1
  17. package/dist/vendor-boolbase-A_-Pp38P.js +23 -0
  18. package/dist/{vendor-cheerio-CleDsuQZ.js → vendor-cheerio-C46iBpCu.js} +10 -10
  19. package/dist/{vendor-cheerio-select-CVkYl3Z-.js → vendor-cheerio-select-C8emRZsx.js} +5 -5
  20. package/dist/vendor-core-js-DFA7rceR.js +1206 -0
  21. package/dist/{vendor-css-select-CtIzVIiG.js → vendor-css-select-DR9bp36p.js} +3 -3
  22. package/dist/{vendor-dom-serializer-CugO0RdN.js → vendor-dom-serializer-Sk3xHhQk.js} +1 -1
  23. package/dist/{vendor-domutils-D3Y2YQFR.js → vendor-domutils-BiVCXO8c.js} +2 -2
  24. package/dist/{vendor-entities-v26HW8wW.js → vendor-entities-CCReaWqU.js} +35 -34
  25. package/dist/{vendor-floating-ui-core-C9uEvi1M.js → vendor-floating-ui-core-DpX2jufl.js} +10 -10
  26. package/dist/{vendor-floating-ui-dom-CZkYGmv4.js → vendor-floating-ui-dom-C4AKN5Mo.js} +8 -8
  27. package/dist/{vendor-floating-ui-utils-Bx3BTd6_.js → vendor-floating-ui-utils-CRaCuFxS.js} +29 -29
  28. package/dist/{vendor-floating-ui-vue-CLOiVYP7.js → vendor-floating-ui-vue-OwtolkBv.js} +12 -12
  29. package/dist/{vendor-htmlparser2-CXL_uhMI.js → vendor-htmlparser2-CpQu33io.js} +1 -1
  30. package/dist/{vendor-intlify-core-base-FyGSkd6r.js → vendor-intlify-core-base-txnziOTW.js} +9 -9
  31. package/dist/{vendor-intlify-message-compiler-D_vL9-DK.js → vendor-intlify-message-compiler-XquMv3aB.js} +5 -3
  32. package/dist/{vendor-intlify-shared-BMbzEQSk.js → vendor-intlify-shared-CE1Dfvjf.js} +11 -11
  33. package/dist/{vendor-iso-639-1-dVGfSUIM.js → vendor-iso-639-1-BJO6WZAt.js} +3 -3
  34. package/dist/{vendor-markdown-it-4AJoRTAg.js → vendor-markdown-it-RJo-N9ov.js} +1 -1
  35. package/dist/{vendor-markdown-it-task-lists-Byg1-ms9.js → vendor-markdown-it-task-lists-BxLwscWK.js} +2 -2
  36. package/dist/{vendor-microsoft-applicationinsights-analytics-js-DA-ctcAL.js → vendor-microsoft-applicationinsights-analytics-js-CauId95v.js} +5 -5
  37. package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-COfRj-2q.js → vendor-microsoft-applicationinsights-cfgsync-js-DGfB75It.js} +3 -3
  38. package/dist/{vendor-microsoft-applicationinsights-channel-js-MTPYhH-I.js → vendor-microsoft-applicationinsights-channel-js-B4PYlGv8.js} +11 -11
  39. package/dist/{vendor-microsoft-applicationinsights-common-CDVnJ6MR.js → vendor-microsoft-applicationinsights-common-Bj6sQeoz.js} +7 -7
  40. package/dist/{vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js → vendor-microsoft-applicationinsights-core-js-Cga21Mpw.js} +13 -13
  41. package/dist/{vendor-microsoft-applicationinsights-dependencies-js-CvQWWraU.js → vendor-microsoft-applicationinsights-dependencies-js-CH87Sln6.js} +68 -68
  42. package/dist/{vendor-microsoft-applicationinsights-properties-js-C0Iv1cZE.js → vendor-microsoft-applicationinsights-properties-js-CLE2OEt_.js} +5 -5
  43. package/dist/{vendor-microsoft-applicationinsights-web-BRuQAzjU.js → vendor-microsoft-applicationinsights-web-8IaeIl22.js} +8 -8
  44. package/dist/{vendor-nevware21-ts-async-FAyg3c9V.js → vendor-nevware21-ts-async-DadHEt7N.js} +3 -3
  45. package/dist/{vendor-nth-check-BE7AeBMg.js → vendor-nth-check-CS1D-zr5.js} +1 -1
  46. package/dist/{vendor-parse5-htmlparser2-tree-adapter-CNubfdOP.js → vendor-parse5-htmlparser2-tree-adapter-BWywtwol.js} +9 -9
  47. package/dist/{vendor-parse5-DqztJOGh.js → vendor-parse5-zq5Hn0y9.js} +3 -1
  48. package/dist/{vendor-prettier-D8C9GG-0.js → vendor-prettier-DaiSFsWE.js} +1184 -1167
  49. package/dist/vendor-prosemirror-commands-B8fhFbTo.js +385 -0
  50. package/dist/{vendor-prosemirror-dropcursor-CwZhBUcZ.js → vendor-prosemirror-dropcursor-CdHQ9kQG.js} +2 -2
  51. package/dist/{vendor-prosemirror-gapcursor-COcwb4TJ.js → vendor-prosemirror-gapcursor-W-ky5QTm.js} +4 -4
  52. package/dist/{vendor-prosemirror-history-DmPvdOpr.js → vendor-prosemirror-history-CrtTR5Cd.js} +2 -2
  53. package/dist/{vendor-prosemirror-keymap-CS1uIBpE.js → vendor-prosemirror-keymap-DWvoDWf6.js} +1 -1
  54. package/dist/{vendor-prosemirror-markdown-sO1Pn6SW.js → vendor-prosemirror-markdown-CuzWQ2N6.js} +2 -2
  55. package/dist/{vendor-prosemirror-model-DwojkhDQ.js → vendor-prosemirror-model-CVTn1Stc.js} +2 -2
  56. package/dist/{vendor-prosemirror-schema-list-rrOzMlj0.js → vendor-prosemirror-schema-list-Ds6x_KLX.js} +2 -2
  57. package/dist/{vendor-prosemirror-state-BN86J-Ko.js → vendor-prosemirror-state-CRUasa1V.js} +2 -2
  58. package/dist/{vendor-prosemirror-tables-C7XMqyon.js → vendor-prosemirror-tables-DzTfCeHX.js} +5 -5
  59. package/dist/{vendor-prosemirror-transform-B0c_LAV_.js → vendor-prosemirror-transform-BeDaI3CS.js} +1 -1
  60. package/dist/{vendor-prosemirror-view-DyWzmy4t.js → vendor-prosemirror-view-BGYdOWiJ.js} +76 -74
  61. package/dist/{vendor-semver-BoKYtkQw.js → vendor-semver-FuwqpOls.js} +435 -435
  62. package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +1 -0
  63. package/dist/{vendor-tippy-js-BGdgwGX-.js → vendor-tippy-js-nNhcw_JH.js} +15 -15
  64. package/dist/{vendor-tiptap-core-BgwY40dr.js → vendor-tiptap-core-dlTW4S11.js} +76 -65
  65. package/dist/{vendor-tiptap-extension-blockquote-BVW0VVC0.js → vendor-tiptap-extension-blockquote-iAIM-meW.js} +1 -1
  66. package/dist/{vendor-tiptap-extension-bold-xhi5xxPT.js → vendor-tiptap-extension-bold-bkOLNH6E.js} +1 -1
  67. package/dist/{vendor-tiptap-extension-bubble-menu-DhWtcCL3.js → vendor-tiptap-extension-bubble-menu-BRWVLpun.js} +6 -6
  68. package/dist/{vendor-tiptap-extension-bullet-list-Ba21suMY.js → vendor-tiptap-extension-bullet-list-DfU428XB.js} +1 -1
  69. package/dist/{vendor-tiptap-extension-code-DFTxp7wE.js → vendor-tiptap-extension-code-CgIql8q6.js} +1 -1
  70. package/dist/{vendor-tiptap-extension-code-block-B2KK5g8S.js → vendor-tiptap-extension-code-block-V26-erQk.js} +2 -2
  71. package/dist/{vendor-tiptap-extension-document-CW8jybcc.js → vendor-tiptap-extension-document-BYF_BzDD.js} +1 -1
  72. package/dist/{vendor-tiptap-extension-dropcursor-DdRuETKJ.js → vendor-tiptap-extension-dropcursor-DqjaaFex.js} +2 -2
  73. package/dist/{vendor-tiptap-extension-floating-menu-Da7fpnr7.js → vendor-tiptap-extension-floating-menu-vptdm_Y0.js} +6 -6
  74. package/dist/{vendor-tiptap-extension-gapcursor-CafmhWSf.js → vendor-tiptap-extension-gapcursor-DxLBw8V0.js} +2 -2
  75. package/dist/{vendor-tiptap-extension-hard-break-n9aI6ybJ.js → vendor-tiptap-extension-hard-break-DygHhzqw.js} +1 -1
  76. package/dist/{vendor-tiptap-extension-heading-xj24usOy.js → vendor-tiptap-extension-heading-C-ArDc3_.js} +1 -1
  77. package/dist/{vendor-tiptap-extension-history-C2uOLua2.js → vendor-tiptap-extension-history-C41RW3Bv.js} +2 -2
  78. package/dist/{vendor-tiptap-extension-horizontal-rule--uXIYeaK.js → vendor-tiptap-extension-horizontal-rule-BGMGd9fo.js} +2 -2
  79. package/dist/{vendor-tiptap-extension-image-BJx5lyoG.js → vendor-tiptap-extension-image-DChcWb4v.js} +1 -1
  80. package/dist/{vendor-tiptap-extension-italic-DPAViC4y.js → vendor-tiptap-extension-italic-BNJrFvrR.js} +1 -1
  81. package/dist/{vendor-tiptap-extension-link-aDGmrWTi.js → vendor-tiptap-extension-link-DFN4ENph.js} +2 -2
  82. package/dist/{vendor-tiptap-extension-list-item-DE9dJ64Q.js → vendor-tiptap-extension-list-item-3qKYhGHe.js} +1 -1
  83. package/dist/{vendor-tiptap-extension-ordered-list-CcNtDDJm.js → vendor-tiptap-extension-ordered-list-D3QL0eiW.js} +1 -1
  84. package/dist/{vendor-tiptap-extension-paragraph-DvlrAzIW.js → vendor-tiptap-extension-paragraph-DZfkaJJ-.js} +1 -1
  85. package/dist/{vendor-tiptap-extension-placeholder-DyW7px66.js → vendor-tiptap-extension-placeholder-CoOAmd0a.js} +7 -7
  86. package/dist/{vendor-tiptap-extension-strike-DMMLEFkd.js → vendor-tiptap-extension-strike-BlGNozxy.js} +1 -1
  87. package/dist/{vendor-tiptap-extension-table-BpegTABL.js → vendor-tiptap-extension-table-CZn6Xykb.js} +16 -16
  88. package/dist/{vendor-tiptap-extension-table-cell-8rHRq4BW.js → vendor-tiptap-extension-table-cell-BQuS-XFD.js} +1 -1
  89. package/dist/{vendor-tiptap-extension-table-header-DZ1y7iS2.js → vendor-tiptap-extension-table-header-ZrtK7HiQ.js} +1 -1
  90. package/dist/{vendor-tiptap-extension-table-row-DmkNUw4L.js → vendor-tiptap-extension-table-row-CBrXvqsO.js} +1 -1
  91. package/dist/{vendor-tiptap-extension-text-Cwas3TQT.js → vendor-tiptap-extension-text-DwA7jrBq.js} +1 -1
  92. package/dist/{vendor-tiptap-extension-underline-Hz5uJRfR.js → vendor-tiptap-extension-underline-CIVtuRLl.js} +1 -1
  93. package/dist/{vendor-tiptap-markdown-Dj1XZWg4.js → vendor-tiptap-markdown-CidDIpZ-.js} +12 -11
  94. package/dist/vendor-tiptap-pm-9TOy65Oe.js +1 -0
  95. package/dist/{vendor-tiptap-starter-kit-Cxj07T7v.js → vendor-tiptap-starter-kit-BdU6UtqB.js} +19 -19
  96. package/dist/{vendor-tiptap-vue-3-DF4kzEFI.js → vendor-tiptap-vue-3-CnYccgV4.js} +3 -3
  97. package/dist/{vendor-truncate-html-Bx1HJzRq.js → vendor-truncate-html-DYC0Lj9o.js} +1 -1
  98. package/dist/{vendor-vee-validate-rules-DDeNM2Gc.js → vendor-vee-validate-rules-4oWUZPpG.js} +4 -2
  99. package/dist/{vendor-vue-currency-input-DxWnS-HB.js → vendor-vue-currency-input-BqaYAdhD.js} +88 -86
  100. package/dist/vendor-vue-demi-CD9yLWd7.js +1 -0
  101. package/dist/{vendor-vue-i18n-DC6m6S7G.js → vendor-vue-i18n-BeXi5L3e.js} +423 -412
  102. package/dist/{vendor-vue3-application-insights-dAGGfA_M.js → vendor-vue3-application-insights-C8xbxXXX.js} +2 -2
  103. package/dist/{vendor-vuepic-vue-datepicker-_JffV5We.js → vendor-vuepic-vue-datepicker-DkHsqyoL.js} +257 -257
  104. package/dist/vendor-vueuse-components-B0zqjNRW.js +542 -0
  105. package/dist/{vendor-vueuse-core-cB-c7DzH.js → vendor-vueuse-core-CYgwn-B2.js} +31 -30
  106. package/dist/{vendor-vueuse-shared-Dg7PMM0z.js → vendor-vueuse-shared-B_uDJJ6V.js} +33 -33
  107. package/package.json +5 -5
  108. package/shared/components/language-selector/language-selector.vue +16 -8
  109. package/dist/vendor-boolbase-Bgn9I6iN.js +0 -21
  110. package/dist/vendor-core-js-l0sNRNKZ.js +0 -1
  111. package/dist/vendor-prosemirror-commands-C6teL3Xo.js +0 -344
  112. package/dist/vendor-tanstack-vue-virtual-l0sNRNKZ.js +0 -1
  113. package/dist/vendor-tiptap-pm-l0sNRNKZ.js +0 -1
  114. package/dist/vendor-vue-demi-l0sNRNKZ.js +0 -1
  115. package/dist/vendor-vueuse-components-DtK_mxpP.js +0 -219
@@ -1,20 +1,20 @@
1
- import { C as Yt, D as qe, u as B, c as jt, a as Ae, b as De, i as K, A as Bt, s as Xt, g as Jt, N as Kt, d as zt, e as qt, f as Qe, h as Qt, j as Se, p as ye, t as Ve, M as Me, k as Ue, l as We, m as $e, n as we, o as Zt, q as ea, r as ta, v as aa, w as na, x as sa, y as la, z as ra, B as oa } from "./vendor-intlify-core-base-FyGSkd6r.js";
2
- import { w as Ze, e as N, l as ia, B as S, a as F, C as Ne, b, i as P, f as le, r as re, d as A, c as C, D as se, k as oe, j as R, g as $, n as z, h as Te, o as ca, m as J } from "./vendor-intlify-shared-BMbzEQSk.js";
3
- import { effectScope as _a, ref as ua, shallowRef as ma, computed as X, watch as ge, isRef as fa, defineComponent as Le, getCurrentInstance as q, h as et, Fragment as tt, inject as ga, onMounted as Ea, onUnmounted as da, createVNode as ba, Text as va } from "vue";
4
- import { s as Ia } from "./vendor-vue-devtools-api-aVYGocXp.js";
5
- import { c as pa } from "./vendor-intlify-message-compiler-D_vL9-DK.js";
1
+ import { C as jt, D as qe, u as X, c as Bt, a as Ce, b as Ae, i as z, A as Xt, s as Jt, g as Kt, N as zt, d as qt, e as Qt, f as Zt, h as Qe, j as Se, p as ye, t as Ve, M as Me, k as Ue, l as We, m as $e, n as we, o as ea, q as ta, r as aa, v as na, w as sa, x as ra, y as la, z as oa, B as ia } from "./vendor-intlify-core-base-txnziOTW.js";
2
+ import { f as N, h as Ze, B as S, l as ca, c as h, C as Te, a as d, b as P, g as re, i as $, r as le, e as A, d as C, D as se, k as oe, j as R, n as q, w as ie, o as _a, m as K } from "./vendor-intlify-shared-CE1Dfvjf.js";
3
+ import { effectScope as ua, ref as ma, shallowRef as fa, computed as J, watch as Ee, isRef as ga, defineComponent as Le, getCurrentInstance as Q, h as et, Fragment as tt, inject as Ea, onMounted as da, onUnmounted as ba, createVNode as va, Text as Ia } from "vue";
4
+ import { s as pa } from "./vendor-vue-devtools-api-aVYGocXp.js";
5
+ import { c as Na } from "./vendor-intlify-message-compiler-XquMv3aB.js";
6
6
  /*!
7
- * vue-i18n v11.1.10
7
+ * vue-i18n v11.1.11
8
8
  * (c) 2025 kazuya kawaguchi
9
9
  * Released under the MIT License.
10
10
  */
11
- const at = "11.1.10";
12
- function Na() {
13
- typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (J().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (J().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (J().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (J().__INTLIFY_PROD_DEVTOOLS__ = !1);
11
+ const at = "11.1.11";
12
+ function Ta() {
13
+ typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (K().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (K().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (K().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (K().__INTLIFY_PROD_DEVTOOLS__ = !1);
14
14
  }
15
- const E = {
15
+ const b = {
16
16
  // composer module errors
17
- UNEXPECTED_RETURN_TYPE: Qt,
17
+ UNEXPECTED_RETURN_TYPE: Zt,
18
18
  // 24
19
19
  // legacy module errors
20
20
  INVALID_ARGUMENT: 25,
@@ -32,28 +32,25 @@ const E = {
32
32
  // not compatible legacy vue-i18n constructor
33
33
  NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
34
34
  // Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
35
- NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34,
36
- // duplicate `useI18n` calling
37
- DUPLICATE_USE_I18N_CALLING: 35
35
+ NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
38
36
  };
39
- function L(e, ...t) {
40
- return pa(e, null, process.env.NODE_ENV !== "production" ? { messages: Ta, args: t } : void 0);
37
+ function F(e, ...t) {
38
+ return Na(e, null, process.env.NODE_ENV !== "production" ? { messages: La, args: t } : void 0);
41
39
  }
42
- const Ta = {
43
- [E.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
44
- [E.INVALID_ARGUMENT]: "Invalid argument",
45
- [E.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
46
- [E.NOT_INSTALLED]: "Need to install with `app.use` function",
47
- [E.UNEXPECTED_ERROR]: "Unexpected error",
48
- [E.REQUIRED_VALUE]: "Required in value: {0}",
49
- [E.INVALID_VALUE]: "Invalid value",
50
- [E.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
51
- [E.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
52
- [E.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
53
- [E.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly",
54
- [E.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope"
55
- }, Ee = /* @__PURE__ */ S("__translateVNode"), de = /* @__PURE__ */ S("__datetimeParts"), be = /* @__PURE__ */ S("__numberParts"), w = /* @__PURE__ */ S("__enableEmitter"), Q = /* @__PURE__ */ S("__disableEmitter"), nt = S("__setPluralRules"), st = /* @__PURE__ */ S("__injectWithOption"), ve = /* @__PURE__ */ S("__dispose"), D = {
56
- FALLBACK_TO_ROOT: Yt,
40
+ const La = {
41
+ [b.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
42
+ [b.INVALID_ARGUMENT]: "Invalid argument",
43
+ [b.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
44
+ [b.NOT_INSTALLED]: "Need to install with `app.use` function",
45
+ [b.UNEXPECTED_ERROR]: "Unexpected error",
46
+ [b.REQUIRED_VALUE]: "Required in value: {0}",
47
+ [b.INVALID_VALUE]: "Invalid value",
48
+ [b.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
49
+ [b.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
50
+ [b.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
51
+ [b.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
52
+ }, de = /* @__PURE__ */ S("__translateVNode"), be = /* @__PURE__ */ S("__datetimeParts"), ve = /* @__PURE__ */ S("__numberParts"), w = /* @__PURE__ */ S("__enableEmitter"), Z = /* @__PURE__ */ S("__disableEmitter"), nt = S("__setPluralRules"), st = /* @__PURE__ */ S("__injectWithOption"), Ie = /* @__PURE__ */ S("__dispose"), D = {
53
+ FALLBACK_TO_ROOT: jt,
57
54
  // 8
58
55
  NOT_FOUND_PARENT_SCOPE: 9,
59
56
  IGNORE_OBJ_FLATTEN: 10,
@@ -64,8 +61,10 @@ const Ta = {
64
61
  /**
65
62
  * @deprecated will be removed at vue-i18n v12
66
63
  */
67
- DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12
68
- }, La = {
64
+ DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
65
+ // duplicate `useI18n` calling
66
+ DUPLICATE_USE_I18N_CALLING: 13
67
+ }, Oa = {
69
68
  [D.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
70
69
  [D.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
71
70
  [D.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
@@ -77,56 +76,57 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
77
76
  /**
78
77
  * @deprecated will be removed at vue-i18n v12
79
78
  */
80
- [D.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."
79
+ [D.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
80
+ [D.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
81
81
  };
82
- function te(e, ...t) {
83
- return ia(La[e], ...t);
82
+ function G(e, ...t) {
83
+ return ca(Oa[e], ...t);
84
84
  }
85
- function Z(e) {
86
- if (!R(e) || K(e))
85
+ function ee(e) {
86
+ if (!R(e) || z(e))
87
87
  return e;
88
88
  for (const t in e)
89
89
  if (oe(e, t))
90
90
  if (!t.includes("."))
91
- R(e[t]) && Z(e[t]);
91
+ R(e[t]) && ee(e[t]);
92
92
  else {
93
93
  const s = t.split("."), n = s.length - 1;
94
94
  let a = e, o = !1;
95
- for (let r = 0; r < n; r++) {
96
- if (s[r] === "__proto__")
97
- throw new Error(`unsafe key: ${s[r]}`);
98
- if (s[r] in a || (a[s[r]] = C()), !R(a[s[r]])) {
99
- process.env.NODE_ENV !== "production" && Te(te(D.IGNORE_OBJ_FLATTEN, {
100
- key: s[r]
95
+ for (let l = 0; l < n; l++) {
96
+ if (s[l] === "__proto__")
97
+ throw new Error(`unsafe key: ${s[l]}`);
98
+ if (s[l] in a || (a[s[l]] = C()), !R(a[s[l]])) {
99
+ process.env.NODE_ENV !== "production" && ie(G(D.IGNORE_OBJ_FLATTEN, {
100
+ key: s[l]
101
101
  })), o = !0;
102
102
  break;
103
103
  }
104
- a = a[s[r]];
104
+ a = a[s[l]];
105
105
  }
106
- if (o || (K(a) ? Bt.includes(s[n]) || delete e[t] : (a[s[n]] = e[t], delete e[t])), !K(a)) {
107
- const r = a[s[n]];
108
- R(r) && Z(r);
106
+ if (o || (z(a) ? Xt.includes(s[n]) || delete e[t] : (a[s[n]] = e[t], delete e[t])), !z(a)) {
107
+ const l = a[s[n]];
108
+ R(l) && ee(l);
109
109
  }
110
110
  }
111
111
  return e;
112
112
  }
113
113
  function Oe(e, t) {
114
- const { messages: s, __i18n: n, messageResolver: a, flatJson: o } = t, r = F(s) ? s : P(n) ? C() : { [e]: C() };
114
+ const { messages: s, __i18n: n, messageResolver: a, flatJson: o } = t, l = h(s) ? s : P(n) ? C() : { [e]: C() };
115
115
  if (P(n) && n.forEach((c) => {
116
116
  if ("locale" in c && "resource" in c) {
117
117
  const { locale: u, resource: m } = c;
118
- u ? (r[u] = r[u] || C(), se(m, r[u])) : se(m, r);
118
+ u ? (l[u] = l[u] || C(), se(m, l[u])) : se(m, l);
119
119
  } else
120
- b(c) && se(JSON.parse(c), r);
120
+ d(c) && se(JSON.parse(c), l);
121
121
  }), a == null && o)
122
- for (const c in r)
123
- oe(r, c) && Z(r[c]);
124
- return r;
122
+ for (const c in l)
123
+ oe(l, c) && ee(l[c]);
124
+ return l;
125
125
  }
126
- function lt(e) {
126
+ function rt(e) {
127
127
  return e.type;
128
128
  }
129
- function rt(e, t, s) {
129
+ function lt(e, t, s) {
130
130
  let n = R(t.messages) ? t.messages : C();
131
131
  "__i18nGlobal" in s && (n = Oe(e.locale.value, {
132
132
  messages: n,
@@ -139,181 +139,191 @@ function rt(e, t, s) {
139
139
  {
140
140
  if (R(t.datetimeFormats)) {
141
141
  const o = Object.keys(t.datetimeFormats);
142
- o.length && o.forEach((r) => {
143
- e.mergeDateTimeFormat(r, t.datetimeFormats[r]);
142
+ o.length && o.forEach((l) => {
143
+ e.mergeDateTimeFormat(l, t.datetimeFormats[l]);
144
144
  });
145
145
  }
146
146
  if (R(t.numberFormats)) {
147
147
  const o = Object.keys(t.numberFormats);
148
- o.length && o.forEach((r) => {
149
- e.mergeNumberFormat(r, t.numberFormats[r]);
148
+ o.length && o.forEach((l) => {
149
+ e.mergeNumberFormat(l, t.numberFormats[l]);
150
150
  });
151
151
  }
152
152
  }
153
153
  }
154
154
  function xe(e) {
155
- return ba(va, null, e, 0);
155
+ return va(Ia, null, e, 0);
156
156
  }
157
- const Ge = "__INTLIFY_META__", He = () => [], Oa = () => !1;
157
+ const Ge = "__INTLIFY_META__", He = () => [], ha = () => !1;
158
158
  let Ye = 0;
159
159
  function je(e) {
160
- return (t, s, n, a) => e(s, n, q() || void 0, a);
160
+ return (t, s, n, a) => e(s, n, Q() || void 0, a);
161
161
  }
162
- const ha = /* @__NO_SIDE_EFFECTS__ */ () => {
163
- const e = q();
162
+ const Fa = /* @__NO_SIDE_EFFECTS__ */ () => {
163
+ const e = Q();
164
164
  let t = null;
165
- return e && (t = lt(e)[Ge]) ? { [Ge]: t } : null;
165
+ return e && (t = rt(e)[Ge]) ? { [Ge]: t } : null;
166
166
  };
167
167
  function he(e = {}) {
168
- const { __root: t, __injectWithOption: s } = e, n = t === void 0, a = e.flatJson, o = re ? ua : ma;
169
- let r = N(e.inheritLocale) ? e.inheritLocale : !0;
168
+ const { __root: t, __injectWithOption: s } = e, n = t === void 0, a = e.flatJson, o = le ? ma : fa;
169
+ let l = N(e.inheritLocale) ? e.inheritLocale : !0;
170
170
  const c = o(
171
171
  // prettier-ignore
172
- t && r ? t.locale.value : b(e.locale) ? e.locale : qe
172
+ t && l ? t.locale.value : d(e.locale) ? e.locale : qe
173
173
  ), u = o(
174
174
  // prettier-ignore
175
- t && r ? t.fallbackLocale.value : b(e.fallbackLocale) || P(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
176
- ), m = o(Oe(c.value, e)), d = o(F(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), f = o(F(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
177
- let v = t ? t.missingWarn : N(e.missingWarn) || le(e.missingWarn) ? e.missingWarn : !0, T = t ? t.fallbackWarn : N(e.fallbackWarn) || le(e.fallbackWarn) ? e.fallbackWarn : !0, O = t ? t.fallbackRoot : N(e.fallbackRoot) ? e.fallbackRoot : !0, h = !!e.fallbackFormat, y = $(e.missing) ? e.missing : null, k = $(e.missing) ? je(e.missing) : null, V = $(e.postTranslation) ? e.postTranslation : null, G = t ? t.warnHtmlMessage : N(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, H = !!e.escapeParameter;
178
- const Y = t ? t.modifiers : F(e.modifiers) ? e.modifiers : {};
179
- let j = e.pluralRules || t && t.pluralRules, _;
175
+ t && l ? t.fallbackLocale.value : d(e.fallbackLocale) || P(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
176
+ ), m = o(Oe(c.value, e)), E = o(h(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), f = o(h(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
177
+ let v = t ? t.missingWarn : N(e.missingWarn) || re(e.missingWarn) ? e.missingWarn : !0, T = t ? t.fallbackWarn : N(e.fallbackWarn) || re(e.fallbackWarn) ? e.fallbackWarn : !0, L = t ? t.fallbackRoot : N(e.fallbackRoot) ? e.fallbackRoot : !0, O = !!e.fallbackFormat, y = $(e.missing) ? e.missing : null, k = $(e.missing) ? je(e.missing) : null, V = $(e.postTranslation) ? e.postTranslation : null, H = t ? t.warnHtmlMessage : N(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, Y = !!e.escapeParameter;
178
+ const j = t ? t.modifiers : h(e.modifiers) ? e.modifiers : {};
179
+ let B = e.pluralRules || t && t.pluralRules, _;
180
180
  _ = (() => {
181
181
  n && Se(null);
182
- const l = {
182
+ const r = {
183
183
  version: at,
184
184
  locale: c.value,
185
185
  fallbackLocale: u.value,
186
186
  messages: m.value,
187
- modifiers: Y,
188
- pluralRules: j,
187
+ modifiers: j,
188
+ pluralRules: B,
189
189
  missing: k === null ? void 0 : k,
190
190
  missingWarn: v,
191
191
  fallbackWarn: T,
192
- fallbackFormat: h,
192
+ fallbackFormat: O,
193
193
  unresolving: !0,
194
194
  postTranslation: V === null ? void 0 : V,
195
- warnHtmlMessage: G,
196
- escapeParameter: H,
195
+ warnHtmlMessage: H,
196
+ escapeParameter: Y,
197
197
  messageResolver: e.messageResolver,
198
198
  messageCompiler: e.messageCompiler,
199
199
  __meta: { framework: "vue" }
200
200
  };
201
- l.datetimeFormats = d.value, l.numberFormats = f.value, l.__datetimeFormatters = F(_) ? _.__datetimeFormatters : void 0, l.__numberFormatters = F(_) ? _.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (l.__v_emitter = F(_) ? _.__v_emitter : void 0);
202
- const i = jt(l);
201
+ r.datetimeFormats = E.value, r.numberFormats = f.value, r.__datetimeFormatters = h(_) ? _.__datetimeFormatters : void 0, r.__numberFormatters = h(_) ? _.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (r.__v_emitter = h(_) ? _.__v_emitter : void 0);
202
+ const i = Bt(r);
203
203
  return n && Se(i), i;
204
- })(), B(_, c.value, u.value);
205
- const me = X({
204
+ })(), X(_, c.value, u.value);
205
+ function fe() {
206
+ return [
207
+ c.value,
208
+ u.value,
209
+ m.value,
210
+ E.value,
211
+ f.value
212
+ ];
213
+ }
214
+ const gt = J({
206
215
  get: () => c.value,
207
- set: (l) => {
208
- _.locale = l, c.value = l;
216
+ set: (r) => {
217
+ _.locale = r, c.value = r;
209
218
  }
210
- }), gt = X({
219
+ }), Et = J({
211
220
  get: () => u.value,
212
- set: (l) => {
213
- _.fallbackLocale = l, u.value = l, B(_, c.value, l);
221
+ set: (r) => {
222
+ _.fallbackLocale = r, u.value = r, X(_, c.value, r);
214
223
  }
215
- }), Et = X(() => m.value), dt = /* @__PURE__ */ X(() => d.value), bt = /* @__PURE__ */ X(() => f.value);
216
- function vt() {
224
+ }), dt = J(() => m.value), bt = /* @__PURE__ */ J(() => E.value), vt = /* @__PURE__ */ J(() => f.value);
225
+ function It() {
217
226
  return $(V) ? V : null;
218
227
  }
219
- function It(l) {
220
- V = l, _.postTranslation = l;
228
+ function pt(r) {
229
+ V = r, _.postTranslation = r;
221
230
  }
222
- function pt() {
231
+ function Nt() {
223
232
  return y;
224
233
  }
225
- function Nt(l) {
226
- l !== null && (k = je(l)), y = l, _.missing = k;
234
+ function Tt(r) {
235
+ r !== null && (k = je(r)), y = r, _.missing = k;
227
236
  }
228
- function Tt(l, i) {
229
- return l !== "translate" || !i.resolvedMessage;
237
+ function Lt(r, i) {
238
+ return r !== "translate" || !i.resolvedMessage;
230
239
  }
231
- const M = (l, i, g, I, U, ne) => {
240
+ const M = (r, i, g, I, U, ne) => {
241
+ fe();
232
242
  let x;
233
243
  try {
234
- (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Xt(/* @__PURE__ */ ha()), n || (_.fallbackContext = t ? Jt() : void 0), x = l(_);
244
+ (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Jt(/* @__PURE__ */ Fa()), n || (_.fallbackContext = t ? Kt() : void 0), x = r(_);
235
245
  } finally {
236
- n || (_.fallbackContext = void 0);
246
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (_.fallbackContext = void 0);
237
247
  }
238
248
  if (g !== "translate exists" && // for not `te` (e.g `t`)
239
- z(x) && x === Kt || g === "translate exists" && !x) {
240
- const [W, Ht] = i();
241
- if (process.env.NODE_ENV !== "production" && t && b(W) && Tt(g, Ht) && (O && (zt(T, W) || qt(v, W)) && Te(te(D.FALLBACK_TO_ROOT, {
249
+ q(x) && x === zt || g === "translate exists" && !x) {
250
+ const [W, Yt] = i();
251
+ if (process.env.NODE_ENV !== "production" && t && d(W) && Lt(g, Yt) && (L && (qt(T, W) || Qt(v, W)) && ie(G(D.FALLBACK_TO_ROOT, {
242
252
  key: W,
243
253
  type: g
244
254
  })), process.env.NODE_ENV !== "production")) {
245
- const { __v_emitter: Ce } = _;
246
- Ce && O && Ce.emit("fallback", {
255
+ const { __v_emitter: De } = _;
256
+ De && L && De.emit("fallback", {
247
257
  type: g,
248
258
  key: W,
249
259
  to: "global",
250
260
  groupId: `${g}:${W}`
251
261
  });
252
262
  }
253
- return t && O ? I(t) : U(W);
263
+ return t && L ? I(t) : U(W);
254
264
  } else {
255
265
  if (ne(x))
256
266
  return x;
257
- throw L(E.UNEXPECTED_RETURN_TYPE);
267
+ throw F(b.UNEXPECTED_RETURN_TYPE);
258
268
  }
259
269
  };
260
- function ke(...l) {
261
- return M((i) => Reflect.apply(Ve, null, [i, ...l]), () => ye(...l), "translate", (i) => Reflect.apply(i.t, i, [...l]), (i) => i, (i) => b(i));
270
+ function ke(...r) {
271
+ return M((i) => Reflect.apply(Ve, null, [i, ...r]), () => ye(...r), "translate", (i) => Reflect.apply(i.t, i, [...r]), (i) => i, (i) => d(i));
262
272
  }
263
- function Lt(...l) {
264
- const [i, g, I] = l;
273
+ function Ot(...r) {
274
+ const [i, g, I] = r;
265
275
  if (I && !R(I))
266
- throw L(E.INVALID_ARGUMENT);
276
+ throw F(b.INVALID_ARGUMENT);
267
277
  return ke(i, g, A({ resolvedMessage: !0 }, I || {}));
268
278
  }
269
- function Ot(...l) {
270
- return M((i) => Reflect.apply(We, null, [i, ...l]), () => Ue(...l), "datetime format", (i) => Reflect.apply(i.d, i, [...l]), () => Me, (i) => b(i) || P(i));
279
+ function ht(...r) {
280
+ return M((i) => Reflect.apply(We, null, [i, ...r]), () => Ue(...r), "datetime format", (i) => Reflect.apply(i.d, i, [...r]), () => Me, (i) => d(i) || P(i));
271
281
  }
272
- function ht(...l) {
273
- return M((i) => Reflect.apply(we, null, [i, ...l]), () => $e(...l), "number format", (i) => Reflect.apply(i.n, i, [...l]), () => Me, (i) => b(i) || P(i));
282
+ function Ft(...r) {
283
+ return M((i) => Reflect.apply(we, null, [i, ...r]), () => $e(...r), "number format", (i) => Reflect.apply(i.n, i, [...r]), () => Me, (i) => d(i) || P(i));
274
284
  }
275
- function Ft(l) {
276
- return l.map((i) => b(i) || z(i) || N(i) ? xe(String(i)) : i);
285
+ function Rt(r) {
286
+ return r.map((i) => d(i) || q(i) || N(i) ? xe(String(i)) : i);
277
287
  }
278
- const Rt = {
279
- normalize: Ft,
280
- interpolate: (l) => l,
288
+ const kt = {
289
+ normalize: Rt,
290
+ interpolate: (r) => r,
281
291
  type: "vnode"
282
292
  };
283
- function kt(...l) {
293
+ function Pt(...r) {
284
294
  return M((i) => {
285
295
  let g;
286
296
  const I = i;
287
297
  try {
288
- I.processor = Rt, g = Reflect.apply(Ve, null, [I, ...l]);
298
+ I.processor = kt, g = Reflect.apply(Ve, null, [I, ...r]);
289
299
  } finally {
290
300
  I.processor = null;
291
301
  }
292
302
  return g;
293
- }, () => ye(...l), "translate", (i) => i[Ee](...l), (i) => [xe(i)], (i) => P(i));
303
+ }, () => ye(...r), "translate", (i) => i[de](...r), (i) => [xe(i)], (i) => P(i));
294
304
  }
295
- function Pt(...l) {
296
- return M((i) => Reflect.apply(we, null, [i, ...l]), () => $e(...l), "number format", (i) => i[be](...l), He, (i) => b(i) || P(i));
305
+ function Dt(...r) {
306
+ return M((i) => Reflect.apply(we, null, [i, ...r]), () => $e(...r), "number format", (i) => i[ve](...r), He, (i) => d(i) || P(i));
297
307
  }
298
- function Ct(...l) {
299
- return M((i) => Reflect.apply(We, null, [i, ...l]), () => Ue(...l), "datetime format", (i) => i[de](...l), He, (i) => b(i) || P(i));
308
+ function Ct(...r) {
309
+ return M((i) => Reflect.apply(We, null, [i, ...r]), () => Ue(...r), "datetime format", (i) => i[be](...r), He, (i) => d(i) || P(i));
300
310
  }
301
- function At(l) {
302
- j = l, _.pluralRules = j;
311
+ function At(r) {
312
+ B = r, _.pluralRules = B;
303
313
  }
304
- function Dt(l, i) {
314
+ function St(r, i) {
305
315
  return M(() => {
306
- if (!l)
316
+ if (!r)
307
317
  return !1;
308
- const g = b(i) ? i : c.value, I = Pe(g), U = _.messageResolver(I, l);
309
- return K(U) || Zt(U) || b(U);
310
- }, () => [l], "translate exists", (g) => Reflect.apply(g.te, g, [l, i]), Oa, (g) => N(g));
318
+ const g = d(i) ? i : c.value, I = Pe(g), U = _.messageResolver(I, r);
319
+ return z(U) || ea(U) || d(U);
320
+ }, () => [r], "translate exists", (g) => Reflect.apply(g.te, g, [r, i]), ha, (g) => N(g));
311
321
  }
312
- function St(l) {
322
+ function yt(r) {
313
323
  let i = null;
314
324
  const g = Qe(_, u.value, c.value);
315
325
  for (let I = 0; I < g.length; I++) {
316
- const U = m.value[g[I]] || {}, ne = _.messageResolver(U, l);
326
+ const U = m.value[g[I]] || {}, ne = _.messageResolver(U, r);
317
327
  if (ne != null) {
318
328
  i = ne;
319
329
  break;
@@ -321,72 +331,72 @@ function he(e = {}) {
321
331
  }
322
332
  return i;
323
333
  }
324
- function yt(l) {
325
- const i = St(l);
326
- return i ?? (t ? t.tm(l) || {} : {});
334
+ function Vt(r) {
335
+ const i = yt(r);
336
+ return i ?? (t ? t.tm(r) || {} : {});
327
337
  }
328
- function Pe(l) {
329
- return m.value[l] || {};
338
+ function Pe(r) {
339
+ return m.value[r] || {};
330
340
  }
331
- function Vt(l, i) {
341
+ function Mt(r, i) {
332
342
  if (a) {
333
- const g = { [l]: i };
343
+ const g = { [r]: i };
334
344
  for (const I in g)
335
- oe(g, I) && Z(g[I]);
336
- i = g[l];
345
+ oe(g, I) && ee(g[I]);
346
+ i = g[r];
337
347
  }
338
- m.value[l] = i, _.messages = m.value;
348
+ m.value[r] = i, _.messages = m.value;
339
349
  }
340
- function Mt(l, i) {
341
- m.value[l] = m.value[l] || {};
342
- const g = { [l]: i };
350
+ function Ut(r, i) {
351
+ m.value[r] = m.value[r] || {};
352
+ const g = { [r]: i };
343
353
  if (a)
344
354
  for (const I in g)
345
- oe(g, I) && Z(g[I]);
346
- i = g[l], se(i, m.value[l]), _.messages = m.value;
355
+ oe(g, I) && ee(g[I]);
356
+ i = g[r], se(i, m.value[r]), _.messages = m.value;
347
357
  }
348
- function Ut(l) {
349
- return d.value[l] || {};
358
+ function Wt(r) {
359
+ return E.value[r] || {};
350
360
  }
351
- function Wt(l, i) {
352
- d.value[l] = i, _.datetimeFormats = d.value, Ae(_, l, i);
361
+ function $t(r, i) {
362
+ E.value[r] = i, _.datetimeFormats = E.value, Ce(_, r, i);
353
363
  }
354
- function $t(l, i) {
355
- d.value[l] = A(d.value[l] || {}, i), _.datetimeFormats = d.value, Ae(_, l, i);
364
+ function wt(r, i) {
365
+ E.value[r] = A(E.value[r] || {}, i), _.datetimeFormats = E.value, Ce(_, r, i);
356
366
  }
357
- function wt(l) {
358
- return f.value[l] || {};
367
+ function xt(r) {
368
+ return f.value[r] || {};
359
369
  }
360
- function xt(l, i) {
361
- f.value[l] = i, _.numberFormats = f.value, De(_, l, i);
370
+ function Gt(r, i) {
371
+ f.value[r] = i, _.numberFormats = f.value, Ae(_, r, i);
362
372
  }
363
- function Gt(l, i) {
364
- f.value[l] = A(f.value[l] || {}, i), _.numberFormats = f.value, De(_, l, i);
373
+ function Ht(r, i) {
374
+ f.value[r] = A(f.value[r] || {}, i), _.numberFormats = f.value, Ae(_, r, i);
365
375
  }
366
- Ye++, t && re && (ge(t.locale, (l) => {
367
- r && (c.value = l, _.locale = l, B(_, c.value, u.value));
368
- }), ge(t.fallbackLocale, (l) => {
369
- r && (u.value = l, _.fallbackLocale = l, B(_, c.value, u.value));
376
+ Ye++, t && le && (Ee(t.locale, (r) => {
377
+ l && (c.value = r, _.locale = r, X(_, c.value, u.value));
378
+ }), Ee(t.fallbackLocale, (r) => {
379
+ l && (u.value = r, _.fallbackLocale = r, X(_, c.value, u.value));
370
380
  }));
371
381
  const p = {
372
382
  id: Ye,
373
- locale: me,
374
- fallbackLocale: gt,
383
+ locale: gt,
384
+ fallbackLocale: Et,
375
385
  get inheritLocale() {
376
- return r;
386
+ return l;
377
387
  },
378
- set inheritLocale(l) {
379
- r = l, l && t && (c.value = t.locale.value, u.value = t.fallbackLocale.value, B(_, c.value, u.value));
388
+ set inheritLocale(r) {
389
+ l = r, r && t && (c.value = t.locale.value, u.value = t.fallbackLocale.value, X(_, c.value, u.value));
380
390
  },
381
391
  get availableLocales() {
382
392
  return Object.keys(m.value).sort();
383
393
  },
384
- messages: Et,
394
+ messages: dt,
385
395
  get modifiers() {
386
- return Y;
396
+ return j;
387
397
  },
388
398
  get pluralRules() {
389
- return j || {};
399
+ return B || {};
390
400
  },
391
401
  get isGlobal() {
392
402
  return n;
@@ -394,71 +404,71 @@ function he(e = {}) {
394
404
  get missingWarn() {
395
405
  return v;
396
406
  },
397
- set missingWarn(l) {
398
- v = l, _.missingWarn = v;
407
+ set missingWarn(r) {
408
+ v = r, _.missingWarn = v;
399
409
  },
400
410
  get fallbackWarn() {
401
411
  return T;
402
412
  },
403
- set fallbackWarn(l) {
404
- T = l, _.fallbackWarn = T;
413
+ set fallbackWarn(r) {
414
+ T = r, _.fallbackWarn = T;
405
415
  },
406
416
  get fallbackRoot() {
407
- return O;
417
+ return L;
408
418
  },
409
- set fallbackRoot(l) {
410
- O = l;
419
+ set fallbackRoot(r) {
420
+ L = r;
411
421
  },
412
422
  get fallbackFormat() {
413
- return h;
423
+ return O;
414
424
  },
415
- set fallbackFormat(l) {
416
- h = l, _.fallbackFormat = h;
425
+ set fallbackFormat(r) {
426
+ O = r, _.fallbackFormat = O;
417
427
  },
418
428
  get warnHtmlMessage() {
419
- return G;
429
+ return H;
420
430
  },
421
- set warnHtmlMessage(l) {
422
- G = l, _.warnHtmlMessage = l;
431
+ set warnHtmlMessage(r) {
432
+ H = r, _.warnHtmlMessage = r;
423
433
  },
424
434
  get escapeParameter() {
425
- return H;
435
+ return Y;
426
436
  },
427
- set escapeParameter(l) {
428
- H = l, _.escapeParameter = l;
437
+ set escapeParameter(r) {
438
+ Y = r, _.escapeParameter = r;
429
439
  },
430
440
  t: ke,
431
441
  getLocaleMessage: Pe,
432
- setLocaleMessage: Vt,
433
- mergeLocaleMessage: Mt,
434
- getPostTranslationHandler: vt,
435
- setPostTranslationHandler: It,
436
- getMissingHandler: pt,
437
- setMissingHandler: Nt,
442
+ setLocaleMessage: Mt,
443
+ mergeLocaleMessage: Ut,
444
+ getPostTranslationHandler: It,
445
+ setPostTranslationHandler: pt,
446
+ getMissingHandler: Nt,
447
+ setMissingHandler: Tt,
438
448
  [nt]: At
439
449
  };
440
- return p.datetimeFormats = dt, p.numberFormats = bt, p.rt = Lt, p.te = Dt, p.tm = yt, p.d = Ot, p.n = ht, p.getDateTimeFormat = Ut, p.setDateTimeFormat = Wt, p.mergeDateTimeFormat = $t, p.getNumberFormat = wt, p.setNumberFormat = xt, p.mergeNumberFormat = Gt, p[st] = s, p[Ee] = kt, p[de] = Ct, p[be] = Pt, process.env.NODE_ENV !== "production" && (p[w] = (l) => {
441
- _.__v_emitter = l;
442
- }, p[Q] = () => {
450
+ return p.datetimeFormats = bt, p.numberFormats = vt, p.rt = Ot, p.te = St, p.tm = Vt, p.d = ht, p.n = Ft, p.getDateTimeFormat = Wt, p.setDateTimeFormat = $t, p.mergeDateTimeFormat = wt, p.getNumberFormat = xt, p.setNumberFormat = Gt, p.mergeNumberFormat = Ht, p[st] = s, p[de] = Pt, p[be] = Ct, p[ve] = Dt, process.env.NODE_ENV !== "production" && (p[w] = (r) => {
451
+ _.__v_emitter = r;
452
+ }, p[Z] = () => {
443
453
  _.__v_emitter = void 0;
444
454
  }), p;
445
455
  }
446
- const ot = "vue-i18n: composer properties", fe = {
456
+ const ot = "vue-i18n: composer properties", ge = {
447
457
  "vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
448
458
  "vue-i18n-resource-inspector": "Vue I18n DevTools",
449
459
  "vue-i18n-timeline": "Vue I18n"
450
- }, Fa = {
451
- "vue-i18n-resource-inspector": "Search for scopes ..."
452
460
  }, Ra = {
461
+ "vue-i18n-resource-inspector": "Search for scopes ..."
462
+ }, ka = {
453
463
  "vue-i18n-timeline": 16764185
454
464
  };
455
- let Ie;
456
- async function ka(e, t) {
465
+ let pe;
466
+ async function Pa(e, t) {
457
467
  return new Promise((s, n) => {
458
468
  try {
459
- Ia({
469
+ pa({
460
470
  id: "vue-devtools-plugin-vue-i18n",
461
- label: fe["vue-devtools-plugin-vue-i18n"],
471
+ label: ge["vue-devtools-plugin-vue-i18n"],
462
472
  packageName: "vue-i18n",
463
473
  homepage: "https://vue-i18n.intlify.dev",
464
474
  logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
@@ -466,37 +476,37 @@ async function ka(e, t) {
466
476
  app: e
467
477
  // eslint-disable-line @typescript-eslint/no-explicit-any
468
478
  }, (a) => {
469
- Ie = a, a.on.visitComponentTree(({ componentInstance: r, treeNode: c }) => {
470
- Pa(r, c, t);
471
- }), a.on.inspectComponent(({ componentInstance: r, instanceData: c }) => {
472
- r.vnode.el && r.vnode.el.__VUE_I18N__ && c && (t.mode === "legacy" ? r.vnode.el.__VUE_I18N__ !== t.global.__composer && Be(c, r.vnode.el.__VUE_I18N__) : Be(c, r.vnode.el.__VUE_I18N__));
479
+ pe = a, a.on.visitComponentTree(({ componentInstance: l, treeNode: c }) => {
480
+ Da(l, c, t);
481
+ }), a.on.inspectComponent(({ componentInstance: l, instanceData: c }) => {
482
+ l.vnode.el && l.vnode.el.__VUE_I18N__ && c && (t.mode === "legacy" ? l.vnode.el.__VUE_I18N__ !== t.global.__composer && Be(c, l.vnode.el.__VUE_I18N__) : Be(c, l.vnode.el.__VUE_I18N__));
473
483
  }), a.addInspector({
474
484
  id: "vue-i18n-resource-inspector",
475
- label: fe["vue-i18n-resource-inspector"],
485
+ label: ge["vue-i18n-resource-inspector"],
476
486
  icon: "language",
477
- treeFilterPlaceholder: Fa["vue-i18n-resource-inspector"]
478
- }), a.on.getInspectorTree((r) => {
479
- r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && ya(r, t);
487
+ treeFilterPlaceholder: Ra["vue-i18n-resource-inspector"]
488
+ }), a.on.getInspectorTree((l) => {
489
+ l.app === e && l.inspectorId === "vue-i18n-resource-inspector" && Va(l, t);
480
490
  });
481
491
  const o = /* @__PURE__ */ new Map();
482
- a.on.getInspectorState(async (r) => {
483
- if (r.app === e && r.inspectorId === "vue-i18n-resource-inspector")
484
- if (a.unhighlightElement(), Ma(r, t), r.nodeId === "global") {
485
- if (!o.has(r.app)) {
486
- const [c] = await a.getComponentInstances(r.app);
487
- o.set(r.app, c);
492
+ a.on.getInspectorState(async (l) => {
493
+ if (l.app === e && l.inspectorId === "vue-i18n-resource-inspector")
494
+ if (a.unhighlightElement(), Ua(l, t), l.nodeId === "global") {
495
+ if (!o.has(l.app)) {
496
+ const [c] = await a.getComponentInstances(l.app);
497
+ o.set(l.app, c);
488
498
  }
489
- a.highlightElement(o.get(r.app));
499
+ a.highlightElement(o.get(l.app));
490
500
  } else {
491
- const c = Va(r.nodeId, t);
501
+ const c = Ma(l.nodeId, t);
492
502
  c && a.highlightElement(c);
493
503
  }
494
- }), a.on.editInspectorState((r) => {
495
- r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && Wa(r, t);
504
+ }), a.on.editInspectorState((l) => {
505
+ l.app === e && l.inspectorId === "vue-i18n-resource-inspector" && $a(l, t);
496
506
  }), a.addTimelineLayer({
497
507
  id: "vue-i18n-timeline",
498
- label: fe["vue-i18n-timeline"],
499
- color: Ra["vue-i18n-timeline"]
508
+ label: ge["vue-i18n-timeline"],
509
+ color: ka["vue-i18n-timeline"]
500
510
  }), s(!0);
501
511
  });
502
512
  } catch (a) {
@@ -507,7 +517,7 @@ async function ka(e, t) {
507
517
  function it(e) {
508
518
  return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
509
519
  }
510
- function Pa(e, t, s) {
520
+ function Da(e, t, s) {
511
521
  const n = s.mode === "composition" ? s.global : s.global.__composer;
512
522
  if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== n) {
513
523
  const a = {
@@ -561,7 +571,7 @@ function Fe(e) {
561
571
  const t = {};
562
572
  return Object.keys(e).forEach((s) => {
563
573
  const n = e[s];
564
- $(n) && "source" in n ? t[s] = Sa(n) : K(n) && n.loc && n.loc.source ? t[s] = n.loc.source : R(n) ? t[s] = Fe(n) : t[s] = n;
574
+ $(n) && "source" in n ? t[s] = ya(n) : z(n) && n.loc && n.loc.source ? t[s] = n.loc.source : R(n) ? t[s] = Fe(n) : t[s] = n;
565
575
  }), t;
566
576
  }
567
577
  const Ca = {
@@ -571,12 +581,12 @@ const Ca = {
571
581
  "&": "&amp;"
572
582
  };
573
583
  function Aa(e) {
574
- return e.replace(/[<>"&]/g, Da);
584
+ return e.replace(/[<>"&]/g, Sa);
575
585
  }
576
- function Da(e) {
586
+ function Sa(e) {
577
587
  return Ca[e] || e;
578
588
  }
579
- function Sa(e) {
589
+ function ya(e) {
580
590
  return {
581
591
  _custom: {
582
592
  type: "function",
@@ -584,7 +594,7 @@ function Sa(e) {
584
594
  }
585
595
  };
586
596
  }
587
- function ya(e, t) {
597
+ function Va(e, t) {
588
598
  e.rootNodes.push({
589
599
  id: "global",
590
600
  label: "Global Scope"
@@ -598,7 +608,7 @@ function ya(e, t) {
598
608
  });
599
609
  }
600
610
  }
601
- function Va(e, t) {
611
+ function Ma(e, t) {
602
612
  let s = null;
603
613
  if (e !== "global") {
604
614
  for (const [n, a] of t.__instances.entries())
@@ -617,11 +627,11 @@ function ct(e, t) {
617
627
  return s ? t.mode === "composition" ? s : s.__composer : null;
618
628
  }
619
629
  }
620
- function Ma(e, t) {
630
+ function Ua(e, t) {
621
631
  const s = ct(e.nodeId, t);
622
- return s && (e.state = Ua(s)), null;
632
+ return s && (e.state = Wa(s)), null;
623
633
  }
624
- function Ua(e) {
634
+ function Wa(e) {
625
635
  const t = {}, s = "Locale related info", n = [
626
636
  {
627
637
  type: s,
@@ -659,15 +669,15 @@ function Ua(e) {
659
669
  ];
660
670
  t[a] = o;
661
671
  {
662
- const r = "Datetime formats info", c = [
672
+ const l = "Datetime formats info", c = [
663
673
  {
664
- type: r,
674
+ type: l,
665
675
  key: "datetimeFormats",
666
676
  editable: !1,
667
677
  value: e.datetimeFormats.value
668
678
  }
669
679
  ];
670
- t[r] = c;
680
+ t[l] = c;
671
681
  const u = "Datetime formats info", m = [
672
682
  {
673
683
  type: u,
@@ -680,10 +690,10 @@ function Ua(e) {
680
690
  }
681
691
  return t;
682
692
  }
683
- function ee(e, t) {
684
- if (Ie) {
693
+ function te(e, t) {
694
+ if (pe) {
685
695
  let s;
686
- t && "groupId" in t && (s = t.groupId, delete t.groupId), Ie.addTimelineEvent({
696
+ t && "groupId" in t && (s = t.groupId, delete t.groupId), pe.addTimelineEvent({
687
697
  layerId: "vue-i18n-timeline",
688
698
  event: {
689
699
  title: e,
@@ -696,50 +706,50 @@ function ee(e, t) {
696
706
  });
697
707
  }
698
708
  }
699
- function Wa(e, t) {
709
+ function $a(e, t) {
700
710
  const s = ct(e.nodeId, t);
701
711
  if (s) {
702
712
  const [n] = e.path;
703
- n === "locale" && b(e.state.value) ? s.locale.value = e.state.value : n === "fallbackLocale" && (b(e.state.value) || P(e.state.value) || R(e.state.value)) ? s.fallbackLocale.value = e.state.value : n === "inheritLocale" && N(e.state.value) && (s.inheritLocale = e.state.value);
713
+ n === "locale" && d(e.state.value) ? s.locale.value = e.state.value : n === "fallbackLocale" && (d(e.state.value) || P(e.state.value) || R(e.state.value)) ? s.fallbackLocale.value = e.state.value : n === "inheritLocale" && N(e.state.value) && (s.inheritLocale = e.state.value);
704
714
  }
705
715
  }
706
- function $a(e) {
707
- const t = b(e.locale) ? e.locale : qe, s = b(e.fallbackLocale) || P(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = $(e.missing) ? e.missing : void 0, a = N(e.silentTranslationWarn) || le(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = N(e.silentFallbackWarn) || le(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, r = N(e.fallbackRoot) ? e.fallbackRoot : !0, c = !!e.formatFallbackMessages, u = F(e.modifiers) ? e.modifiers : {}, m = e.pluralizationRules, d = $(e.postTranslation) ? e.postTranslation : void 0, f = b(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, v = !!e.escapeParameterHtml, T = N(e.sync) ? e.sync : !0;
708
- let O = e.messages;
709
- if (F(e.sharedMessages)) {
710
- const Y = e.sharedMessages;
711
- O = Object.keys(Y).reduce((_, ae) => {
712
- const me = _[ae] || (_[ae] = {});
713
- return A(me, Y[ae]), _;
714
- }, O || {});
716
+ function wa(e) {
717
+ const t = d(e.locale) ? e.locale : qe, s = d(e.fallbackLocale) || P(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = $(e.missing) ? e.missing : void 0, a = N(e.silentTranslationWarn) || re(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = N(e.silentFallbackWarn) || re(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, l = N(e.fallbackRoot) ? e.fallbackRoot : !0, c = !!e.formatFallbackMessages, u = h(e.modifiers) ? e.modifiers : {}, m = e.pluralizationRules, E = $(e.postTranslation) ? e.postTranslation : void 0, f = d(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, v = !!e.escapeParameterHtml, T = N(e.sync) ? e.sync : !0;
718
+ let L = e.messages;
719
+ if (h(e.sharedMessages)) {
720
+ const j = e.sharedMessages;
721
+ L = Object.keys(j).reduce((_, ae) => {
722
+ const fe = _[ae] || (_[ae] = {});
723
+ return A(fe, j[ae]), _;
724
+ }, L || {});
715
725
  }
716
- const { __i18n: h, __root: y, __injectWithOption: k } = e, V = e.datetimeFormats, G = e.numberFormats, H = e.flatJson;
726
+ const { __i18n: O, __root: y, __injectWithOption: k } = e, V = e.datetimeFormats, H = e.numberFormats, Y = e.flatJson;
717
727
  return {
718
728
  locale: t,
719
729
  fallbackLocale: s,
720
- messages: O,
721
- flatJson: H,
730
+ messages: L,
731
+ flatJson: Y,
722
732
  datetimeFormats: V,
723
- numberFormats: G,
733
+ numberFormats: H,
724
734
  missing: n,
725
735
  missingWarn: a,
726
736
  fallbackWarn: o,
727
- fallbackRoot: r,
737
+ fallbackRoot: l,
728
738
  fallbackFormat: c,
729
739
  modifiers: u,
730
740
  pluralRules: m,
731
- postTranslation: d,
741
+ postTranslation: E,
732
742
  warnHtmlMessage: f,
733
743
  escapeParameter: v,
734
744
  messageResolver: e.messageResolver,
735
745
  inheritLocale: T,
736
- __i18n: h,
746
+ __i18n: O,
737
747
  __root: y,
738
748
  __injectWithOption: k
739
749
  };
740
750
  }
741
- function pe(e = {}) {
742
- const t = he($a(e)), { __extender: s } = e, n = {
751
+ function Ne(e = {}) {
752
+ const t = he(wa(e)), { __extender: s } = e, n = {
743
753
  // id
744
754
  id: t.id,
745
755
  // locale
@@ -904,30 +914,30 @@ function pe(e = {}) {
904
914
  o[w] && o[w](a);
905
915
  }, n.__disableEmitter = () => {
906
916
  const a = t;
907
- a[Q] && a[Q]();
917
+ a[Z] && a[Z]();
908
918
  }), n;
909
919
  }
910
- function wa(e, t, s) {
920
+ function xa(e, t, s) {
911
921
  return {
912
922
  beforeCreate() {
913
- const n = q();
923
+ const n = Q();
914
924
  if (!n)
915
- throw L(E.UNEXPECTED_ERROR);
925
+ throw F(b.UNEXPECTED_ERROR);
916
926
  const a = this.$options;
917
927
  if (a.i18n) {
918
928
  const o = a.i18n;
919
929
  if (a.__i18n && (o.__i18n = a.__i18n), o.__root = t, this === this.$root)
920
930
  this.$i18n = Xe(e, o);
921
931
  else {
922
- o.__injectWithOption = !0, o.__extender = s.__vueI18nExtend, this.$i18n = pe(o);
923
- const r = this.$i18n;
924
- r.__extender && (r.__disposer = r.__extender(this.$i18n));
932
+ o.__injectWithOption = !0, o.__extender = s.__vueI18nExtend, this.$i18n = Ne(o);
933
+ const l = this.$i18n;
934
+ l.__extender && (l.__disposer = l.__extender(this.$i18n));
925
935
  }
926
936
  } else if (a.__i18n)
927
937
  if (this === this.$root)
928
938
  this.$i18n = Xe(e, a);
929
939
  else {
930
- this.$i18n = pe({
940
+ this.$i18n = Ne({
931
941
  __i18n: a.__i18n,
932
942
  __injectWithOption: !0,
933
943
  __extender: s.__vueI18nExtend,
@@ -938,22 +948,22 @@ function wa(e, t, s) {
938
948
  }
939
949
  else
940
950
  this.$i18n = e;
941
- a.__i18nGlobal && rt(t, a, a), this.$t = (...o) => this.$i18n.t(...o), this.$rt = (...o) => this.$i18n.rt(...o), this.$te = (o, r) => this.$i18n.te(o, r), this.$d = (...o) => this.$i18n.d(...o), this.$n = (...o) => this.$i18n.n(...o), this.$tm = (o) => this.$i18n.tm(o), s.__setInstance(n, this.$i18n);
951
+ a.__i18nGlobal && lt(t, a, a), this.$t = (...o) => this.$i18n.t(...o), this.$rt = (...o) => this.$i18n.rt(...o), this.$te = (o, l) => this.$i18n.te(o, l), this.$d = (...o) => this.$i18n.d(...o), this.$n = (...o) => this.$i18n.n(...o), this.$tm = (o) => this.$i18n.tm(o), s.__setInstance(n, this.$i18n);
942
952
  },
943
953
  mounted() {
944
954
  if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
945
955
  const n = this.$i18n;
946
956
  this.$el.__VUE_I18N__ = n.__composer;
947
- const a = this.__v_emitter = Ne();
948
- n.__enableEmitter && n.__enableEmitter(a), a.on("*", ee);
957
+ const a = this.__v_emitter = Te();
958
+ n.__enableEmitter && n.__enableEmitter(a), a.on("*", te);
949
959
  }
950
960
  },
951
961
  unmounted() {
952
- const n = q();
962
+ const n = Q();
953
963
  if (!n)
954
- throw L(E.UNEXPECTED_ERROR);
964
+ throw F(b.UNEXPECTED_ERROR);
955
965
  const a = this.$i18n;
956
- process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", ee), delete this.__v_emitter), this.$i18n && (a.__disableEmitter && a.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, a.__disposer && (a.__disposer(), delete a.__disposer, delete a.__extender), s.__deleteInstance(n), delete this.$i18n;
966
+ process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", te), delete this.__v_emitter), this.$i18n && (a.__disableEmitter && a.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, a.__disposer && (a.__disposer(), delete a.__disposer, delete a.__extender), s.__deleteInstance(n), delete this.$i18n;
957
967
  }
958
968
  };
959
969
  }
@@ -983,7 +993,7 @@ const Re = {
983
993
  type: Object
984
994
  }
985
995
  };
986
- function xa({ slots: e }, t) {
996
+ function Ga({ slots: e }, t) {
987
997
  return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((n, a) => [
988
998
  ...n,
989
999
  // prettier-ignore
@@ -996,7 +1006,7 @@ function xa({ slots: e }, t) {
996
1006
  function _t() {
997
1007
  return tt;
998
1008
  }
999
- const Ga = /* @__PURE__ */ Le({
1009
+ const Ha = /* @__PURE__ */ Le({
1000
1010
  /* eslint-disable */
1001
1011
  name: "i18n-t",
1002
1012
  props: A({
@@ -1006,44 +1016,44 @@ const Ga = /* @__PURE__ */ Le({
1006
1016
  },
1007
1017
  plural: {
1008
1018
  type: [Number, String],
1009
- validator: (e) => z(e) || !isNaN(e)
1019
+ validator: (e) => q(e) || !isNaN(e)
1010
1020
  }
1011
1021
  }, Re),
1012
1022
  /* eslint-enable */
1013
1023
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1014
1024
  setup(e, t) {
1015
- const { slots: s, attrs: n } = t, a = e.i18n || ue({
1025
+ const { slots: s, attrs: n } = t, a = e.i18n || me({
1016
1026
  useScope: e.scope,
1017
1027
  __useComponent: !0
1018
1028
  });
1019
1029
  return () => {
1020
- const o = Object.keys(s).filter((f) => f[0] !== "_"), r = C();
1021
- e.locale && (r.locale = e.locale), e.plural !== void 0 && (r.plural = b(e.plural) ? +e.plural : e.plural);
1022
- const c = xa(t, o), u = a[Ee](e.keypath, c, r), m = A(C(), n), d = b(e.tag) || R(e.tag) ? e.tag : _t();
1023
- return et(d, m, u);
1030
+ const o = Object.keys(s).filter((f) => f[0] !== "_"), l = C();
1031
+ e.locale && (l.locale = e.locale), e.plural !== void 0 && (l.plural = d(e.plural) ? +e.plural : e.plural);
1032
+ const c = Ga(t, o), u = a[de](e.keypath, c, l), m = A(C(), n), E = d(e.tag) || R(e.tag) ? e.tag : _t();
1033
+ return et(E, m, u);
1024
1034
  };
1025
1035
  }
1026
- }), ie = Ga, Ha = ie;
1027
- function Ya(e) {
1028
- return P(e) && !b(e[0]);
1036
+ }), ce = Ha, Ya = ce;
1037
+ function ja(e) {
1038
+ return P(e) && !d(e[0]);
1029
1039
  }
1030
1040
  function ut(e, t, s, n) {
1031
1041
  const { slots: a, attrs: o } = t;
1032
1042
  return () => {
1033
- const r = { part: !0 };
1043
+ const l = { part: !0 };
1034
1044
  let c = C();
1035
- e.locale && (r.locale = e.locale), b(e.format) ? r.key = e.format : R(e.format) && (b(e.format.key) && (r.key = e.format.key), c = Object.keys(e.format).reduce((v, T) => s.includes(T) ? A(C(), v, { [T]: e.format[T] }) : v, C()));
1036
- const u = n(e.value, r, c);
1037
- let m = [r.key];
1045
+ e.locale && (l.locale = e.locale), d(e.format) ? l.key = e.format : R(e.format) && (d(e.format.key) && (l.key = e.format.key), c = Object.keys(e.format).reduce((v, T) => s.includes(T) ? A(C(), v, { [T]: e.format[T] }) : v, C()));
1046
+ const u = n(e.value, l, c);
1047
+ let m = [l.key];
1038
1048
  P(u) ? m = u.map((v, T) => {
1039
- const O = a[v.type], h = O ? O({ [v.type]: v.value, index: T, parts: u }) : [v.value];
1040
- return Ya(h) && (h[0].key = `${v.type}-${T}`), h;
1041
- }) : b(u) && (m = [u]);
1042
- const d = A(C(), o), f = b(e.tag) || R(e.tag) ? e.tag : _t();
1043
- return et(f, d, m);
1049
+ const L = a[v.type], O = L ? L({ [v.type]: v.value, index: T, parts: u }) : [v.value];
1050
+ return ja(O) && (O[0].key = `${v.type}-${T}`), O;
1051
+ }) : d(u) && (m = [u]);
1052
+ const E = A(C(), o), f = d(e.tag) || R(e.tag) ? e.tag : _t();
1053
+ return et(f, E, m);
1044
1054
  };
1045
1055
  }
1046
- const ja = /* @__PURE__ */ Le({
1056
+ const Ba = /* @__PURE__ */ Le({
1047
1057
  /* eslint-disable */
1048
1058
  name: "i18n-n",
1049
1059
  props: A({
@@ -1058,17 +1068,17 @@ const ja = /* @__PURE__ */ Le({
1058
1068
  /* eslint-enable */
1059
1069
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1060
1070
  setup(e, t) {
1061
- const s = e.i18n || ue({
1071
+ const s = e.i18n || me({
1062
1072
  useScope: e.scope,
1063
1073
  __useComponent: !0
1064
1074
  });
1065
- return ut(e, t, ea, (...n) => (
1075
+ return ut(e, t, ta, (...n) => (
1066
1076
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1067
- s[be](...n)
1077
+ s[ve](...n)
1068
1078
  ));
1069
1079
  }
1070
- }), ce = ja, Ba = ce;
1071
- function Xa(e, t) {
1080
+ }), _e = Ba, Xa = _e;
1081
+ function Ja(e, t) {
1072
1082
  const s = e;
1073
1083
  if (e.mode === "composition")
1074
1084
  return s.__getInstance(t) || e.global;
@@ -1078,64 +1088,64 @@ function Xa(e, t) {
1078
1088
  }
1079
1089
  }
1080
1090
  function mt(e) {
1081
- const t = (r) => {
1082
- process.env.NODE_ENV !== "production" && Ze(te(D.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
1083
- const { instance: c, value: u } = r;
1091
+ const t = (l) => {
1092
+ process.env.NODE_ENV !== "production" && Ze(G(D.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
1093
+ const { instance: c, value: u } = l;
1084
1094
  if (!c || !c.$)
1085
- throw L(E.UNEXPECTED_ERROR);
1086
- const m = Xa(e, c.$), d = Je(u);
1095
+ throw F(b.UNEXPECTED_ERROR);
1096
+ const m = Ja(e, c.$), E = Je(u);
1087
1097
  return [
1088
- Reflect.apply(m.t, m, [...Ke(d)]),
1098
+ Reflect.apply(m.t, m, [...Ke(E)]),
1089
1099
  m
1090
1100
  ];
1091
1101
  };
1092
1102
  return {
1093
- created: (r, c) => {
1103
+ created: (l, c) => {
1094
1104
  const [u, m] = t(c);
1095
- re && e.global === m && (r.__i18nWatcher = ge(m.locale, () => {
1105
+ le && e.global === m && (l.__i18nWatcher = Ee(m.locale, () => {
1096
1106
  c.instance && c.instance.$forceUpdate();
1097
- })), r.__composer = m, r.textContent = u;
1107
+ })), l.__composer = m, l.textContent = u;
1098
1108
  },
1099
- unmounted: (r) => {
1100
- re && r.__i18nWatcher && (r.__i18nWatcher(), r.__i18nWatcher = void 0, delete r.__i18nWatcher), r.__composer && (r.__composer = void 0, delete r.__composer);
1109
+ unmounted: (l) => {
1110
+ le && l.__i18nWatcher && (l.__i18nWatcher(), l.__i18nWatcher = void 0, delete l.__i18nWatcher), l.__composer && (l.__composer = void 0, delete l.__composer);
1101
1111
  },
1102
- beforeUpdate: (r, { value: c }) => {
1103
- if (r.__composer) {
1104
- const u = r.__composer, m = Je(c);
1105
- r.textContent = Reflect.apply(u.t, u, [
1112
+ beforeUpdate: (l, { value: c }) => {
1113
+ if (l.__composer) {
1114
+ const u = l.__composer, m = Je(c);
1115
+ l.textContent = Reflect.apply(u.t, u, [
1106
1116
  ...Ke(m)
1107
1117
  ]);
1108
1118
  }
1109
1119
  },
1110
- getSSRProps: (r) => {
1111
- const [c] = t(r);
1120
+ getSSRProps: (l) => {
1121
+ const [c] = t(l);
1112
1122
  return { textContent: c };
1113
1123
  }
1114
1124
  };
1115
1125
  }
1116
1126
  function Je(e) {
1117
- if (b(e))
1127
+ if (d(e))
1118
1128
  return { path: e };
1119
- if (F(e)) {
1129
+ if (h(e)) {
1120
1130
  if (!("path" in e))
1121
- throw L(E.REQUIRED_VALUE, "path");
1131
+ throw F(b.REQUIRED_VALUE, "path");
1122
1132
  return e;
1123
1133
  } else
1124
- throw L(E.INVALID_VALUE);
1134
+ throw F(b.INVALID_VALUE);
1125
1135
  }
1126
1136
  function Ke(e) {
1127
- const { path: t, locale: s, args: n, choice: a, plural: o } = e, r = {}, c = n || {};
1128
- return b(s) && (r.locale = s), z(a) && (r.plural = a), z(o) && (r.plural = o), [t, c, r];
1137
+ const { path: t, locale: s, args: n, choice: a, plural: o } = e, l = {}, c = n || {};
1138
+ return d(s) && (l.locale = s), q(a) && (l.plural = a), q(o) && (l.plural = o), [t, c, l];
1129
1139
  }
1130
- function Ja(e, t, ...s) {
1131
- const n = F(s[0]) ? s[0] : {};
1132
- (N(n.globalInstall) ? n.globalInstall : !0) && ([ie.name, "I18nT"].forEach((o) => e.component(o, ie)), [ce.name, "I18nN"].forEach((o) => e.component(o, ce)), [_e.name, "I18nD"].forEach((o) => e.component(o, _e))), e.directive("t", mt(t));
1140
+ function Ka(e, t, ...s) {
1141
+ const n = h(s[0]) ? s[0] : {};
1142
+ (N(n.globalInstall) ? n.globalInstall : !0) && ([ce.name, "I18nT"].forEach((o) => e.component(o, ce)), [_e.name, "I18nN"].forEach((o) => e.component(o, _e)), [ue.name, "I18nD"].forEach((o) => e.component(o, ue))), e.directive("t", mt(t));
1133
1143
  }
1134
1144
  const ft = /* @__PURE__ */ S("global-vue-i18n");
1135
- function Ka(e = {}) {
1145
+ function za(e = {}) {
1136
1146
  const t = __VUE_I18N_LEGACY_API__ && N(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
1137
- process.env.NODE_ENV !== "production" && t && Ze(te(D.DEPRECATE_LEGACY_MODE));
1138
- const s = N(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [a, o] = za(e, t), r = /* @__PURE__ */ S(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
1147
+ process.env.NODE_ENV !== "production" && t && Ze(G(D.DEPRECATE_LEGACY_MODE));
1148
+ const s = N(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [a, o] = qa(e, t), l = /* @__PURE__ */ S(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
1139
1149
  function c(f) {
1140
1150
  return n.get(f) || null;
1141
1151
  }
@@ -1145,26 +1155,26 @@ function Ka(e = {}) {
1145
1155
  function m(f) {
1146
1156
  n.delete(f);
1147
1157
  }
1148
- const d = {
1158
+ const E = {
1149
1159
  // mode
1150
1160
  get mode() {
1151
1161
  return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
1152
1162
  },
1153
1163
  // install plugin
1154
1164
  async install(f, ...v) {
1155
- if (process.env.NODE_ENV !== "production" && (f.__VUE_I18N__ = d), f.__VUE_I18N_SYMBOL__ = r, f.provide(f.__VUE_I18N_SYMBOL__, d), F(v[0])) {
1156
- const h = v[0];
1157
- d.__composerExtend = h.__composerExtend, d.__vueI18nExtend = h.__vueI18nExtend;
1165
+ if (process.env.NODE_ENV !== "production" && (f.__VUE_I18N__ = E), f.__VUE_I18N_SYMBOL__ = l, f.provide(f.__VUE_I18N_SYMBOL__, E), h(v[0])) {
1166
+ const O = v[0];
1167
+ E.__composerExtend = O.__composerExtend, E.__vueI18nExtend = O.__vueI18nExtend;
1158
1168
  }
1159
1169
  let T = null;
1160
- !t && s && (T = sn(f, d.global)), __VUE_I18N_FULL_INSTALL__ && Ja(f, d, ...v), __VUE_I18N_LEGACY_API__ && t && f.mixin(wa(o, o.__composer, d));
1161
- const O = f.unmount;
1170
+ !t && s && (T = rn(f, E.global)), __VUE_I18N_FULL_INSTALL__ && Ka(f, E, ...v), __VUE_I18N_LEGACY_API__ && t && f.mixin(xa(o, o.__composer, E));
1171
+ const L = f.unmount;
1162
1172
  if (f.unmount = () => {
1163
- T && T(), d.dispose(), O();
1173
+ T && T(), E.dispose(), L();
1164
1174
  }, process.env.NODE_ENV !== "production") {
1165
- if (!await ka(f, d))
1166
- throw L(E.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
1167
- const y = Ne();
1175
+ if (!await Pa(f, E))
1176
+ throw F(b.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
1177
+ const y = Te();
1168
1178
  if (t) {
1169
1179
  const k = o;
1170
1180
  k.__enableEmitter && k.__enableEmitter(y);
@@ -1172,7 +1182,7 @@ function Ka(e = {}) {
1172
1182
  const k = o;
1173
1183
  k[w] && k[w](y);
1174
1184
  }
1175
- y.on("*", ee);
1185
+ y.on("*", te);
1176
1186
  }
1177
1187
  },
1178
1188
  // global accessor
@@ -1191,58 +1201,58 @@ function Ka(e = {}) {
1191
1201
  // @internal
1192
1202
  __deleteInstance: m
1193
1203
  };
1194
- return d;
1204
+ return E;
1195
1205
  }
1196
- function ue(e = {}) {
1197
- const t = q();
1206
+ function me(e = {}) {
1207
+ const t = Q();
1198
1208
  if (t == null)
1199
- throw L(E.MUST_BE_CALL_SETUP_TOP);
1209
+ throw F(b.MUST_BE_CALL_SETUP_TOP);
1200
1210
  if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
1201
- throw L(E.NOT_INSTALLED);
1202
- const s = qa(t), n = Za(s), a = lt(t), o = Qa(e, a);
1211
+ throw F(b.NOT_INSTALLED);
1212
+ const s = Qa(t), n = en(s), a = rt(t), o = Za(e, a);
1203
1213
  if (o === "global")
1204
- return rt(n, e, a), n;
1214
+ return lt(n, e, a), n;
1205
1215
  if (o === "parent") {
1206
- let u = en(s, t, e.__useComponent);
1207
- return u == null && (process.env.NODE_ENV !== "production" && Te(te(D.NOT_FOUND_PARENT_SCOPE)), u = n), u;
1216
+ let u = tn(s, t, e.__useComponent);
1217
+ return u == null && (process.env.NODE_ENV !== "production" && ie(G(D.NOT_FOUND_PARENT_SCOPE)), u = n), u;
1208
1218
  }
1209
- const r = s;
1210
- let c = r.__getInstance(t);
1219
+ const l = s;
1220
+ let c = l.__getInstance(t);
1211
1221
  if (c == null) {
1212
1222
  const u = A({}, e);
1213
- "__i18n" in a && (u.__i18n = a.__i18n), n && (u.__root = n), c = he(u), r.__composerExtend && (c[ve] = r.__composerExtend(c)), an(r, t, c), r.__setInstance(t, c);
1214
- } else if (process.env.NODE_ENV !== "production" && o === "local")
1215
- throw L(E.DUPLICATE_USE_I18N_CALLING);
1223
+ "__i18n" in a && (u.__i18n = a.__i18n), n && (u.__root = n), c = he(u), l.__composerExtend && (c[Ie] = l.__composerExtend(c)), nn(l, t, c), l.__setInstance(t, c);
1224
+ } else
1225
+ process.env.NODE_ENV !== "production" && o === "local" && ie(G(D.DUPLICATE_USE_I18N_CALLING));
1216
1226
  return c;
1217
1227
  }
1218
- function za(e, t) {
1219
- const s = _a(), n = __VUE_I18N_LEGACY_API__ && t ? s.run(() => pe(e)) : s.run(() => he(e));
1228
+ function qa(e, t) {
1229
+ const s = ua(), n = __VUE_I18N_LEGACY_API__ && t ? s.run(() => Ne(e)) : s.run(() => he(e));
1220
1230
  if (n == null)
1221
- throw L(E.UNEXPECTED_ERROR);
1231
+ throw F(b.UNEXPECTED_ERROR);
1222
1232
  return [s, n];
1223
1233
  }
1224
- function qa(e) {
1225
- const t = ga(e.isCE ? ft : e.appContext.app.__VUE_I18N_SYMBOL__);
1234
+ function Qa(e) {
1235
+ const t = Ea(e.isCE ? ft : e.appContext.app.__VUE_I18N_SYMBOL__);
1226
1236
  if (!t)
1227
- throw L(e.isCE ? E.NOT_INSTALLED_WITH_PROVIDE : E.UNEXPECTED_ERROR);
1237
+ throw F(e.isCE ? b.NOT_INSTALLED_WITH_PROVIDE : b.UNEXPECTED_ERROR);
1228
1238
  return t;
1229
1239
  }
1230
- function Qa(e, t) {
1231
- return ca(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
1240
+ function Za(e, t) {
1241
+ return _a(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
1232
1242
  }
1233
- function Za(e) {
1243
+ function en(e) {
1234
1244
  return e.mode === "composition" ? e.global : e.global.__composer;
1235
1245
  }
1236
- function en(e, t, s = !1) {
1246
+ function tn(e, t, s = !1) {
1237
1247
  let n = null;
1238
1248
  const a = t.root;
1239
- let o = tn(t, s);
1249
+ let o = an(t, s);
1240
1250
  for (; o != null; ) {
1241
- const r = e;
1251
+ const l = e;
1242
1252
  if (e.mode === "composition")
1243
- n = r.__getInstance(o);
1253
+ n = l.__getInstance(o);
1244
1254
  else if (__VUE_I18N_LEGACY_API__) {
1245
- const c = r.__getInstance(o);
1255
+ const c = l.__getInstance(o);
1246
1256
  c != null && (n = c.__composer, s && n && !n[st] && (n = null));
1247
1257
  }
1248
1258
  if (n != null || a === o)
@@ -1251,36 +1261,36 @@ function en(e, t, s = !1) {
1251
1261
  }
1252
1262
  return n;
1253
1263
  }
1254
- function tn(e, t = !1) {
1264
+ function an(e, t = !1) {
1255
1265
  return e == null ? null : t && e.vnode.ctx || e.parent;
1256
1266
  }
1257
- function an(e, t, s) {
1267
+ function nn(e, t, s) {
1258
1268
  let n = null;
1259
- Ea(() => {
1269
+ da(() => {
1260
1270
  if (process.env.NODE_ENV !== "production" && t.vnode.el) {
1261
- t.vnode.el.__VUE_I18N__ = s, n = Ne();
1271
+ t.vnode.el.__VUE_I18N__ = s, n = Te();
1262
1272
  const a = s;
1263
- a[w] && a[w](n), n.on("*", ee);
1273
+ a[w] && a[w](n), n.on("*", te);
1264
1274
  }
1265
- }, t), da(() => {
1275
+ }, t), ba(() => {
1266
1276
  const a = s;
1267
- process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (n && n.off("*", ee), a[Q] && a[Q](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
1268
- const o = a[ve];
1269
- o && (o(), delete a[ve]);
1277
+ process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (n && n.off("*", te), a[Z] && a[Z](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
1278
+ const o = a[Ie];
1279
+ o && (o(), delete a[Ie]);
1270
1280
  }, t);
1271
1281
  }
1272
- const nn = [
1282
+ const sn = [
1273
1283
  "locale",
1274
1284
  "fallbackLocale",
1275
1285
  "availableLocales"
1276
1286
  ], ze = ["t", "rt", "d", "n", "tm", "te"];
1277
- function sn(e, t) {
1287
+ function rn(e, t) {
1278
1288
  const s = /* @__PURE__ */ Object.create(null);
1279
- return nn.forEach((a) => {
1289
+ return sn.forEach((a) => {
1280
1290
  const o = Object.getOwnPropertyDescriptor(t, a);
1281
1291
  if (!o)
1282
- throw L(E.UNEXPECTED_ERROR);
1283
- const r = fa(o.value) ? {
1292
+ throw F(b.UNEXPECTED_ERROR);
1293
+ const l = ga(o.value) ? {
1284
1294
  get() {
1285
1295
  return o.value.value;
1286
1296
  },
@@ -1293,11 +1303,11 @@ function sn(e, t) {
1293
1303
  return o.get && o.get();
1294
1304
  }
1295
1305
  };
1296
- Object.defineProperty(s, a, r);
1306
+ Object.defineProperty(s, a, l);
1297
1307
  }), e.config.globalProperties.$i18n = s, ze.forEach((a) => {
1298
1308
  const o = Object.getOwnPropertyDescriptor(t, a);
1299
1309
  if (!o || !o.value)
1300
- throw L(E.UNEXPECTED_ERROR);
1310
+ throw F(b.UNEXPECTED_ERROR);
1301
1311
  Object.defineProperty(e.config.globalProperties, `$${a}`, o);
1302
1312
  }), () => {
1303
1313
  delete e.config.globalProperties.$i18n, ze.forEach((a) => {
@@ -1320,40 +1330,41 @@ const ln = /* @__PURE__ */ Le({
1320
1330
  /* eslint-enable */
1321
1331
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1322
1332
  setup(e, t) {
1323
- const s = e.i18n || ue({
1333
+ const s = e.i18n || me({
1324
1334
  useScope: e.scope,
1325
1335
  __useComponent: !0
1326
1336
  });
1327
- return ut(e, t, ta, (...n) => (
1337
+ return ut(e, t, aa, (...n) => (
1328
1338
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1329
- s[de](...n)
1339
+ s[be](...n)
1330
1340
  ));
1331
1341
  }
1332
- }), _e = ln, rn = _e;
1333
- Na();
1334
- aa(la);
1335
- na(ra);
1336
- sa(Qe);
1342
+ }), ue = ln, on = ue;
1343
+ Ta();
1344
+ na(oa);
1345
+ sa(ia);
1346
+ ra(Qe);
1337
1347
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1338
- const e = J();
1339
- e.__INTLIFY__ = !0, oa(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
1348
+ const e = K();
1349
+ e.__INTLIFY__ = !0, la(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
1340
1350
  }
1341
- const gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1351
+ process.env.NODE_ENV;
1352
+ const En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1342
1353
  __proto__: null,
1343
- DatetimeFormat: _e,
1344
- I18nD: rn,
1354
+ DatetimeFormat: ue,
1355
+ I18nD: on,
1345
1356
  I18nInjectionKey: ft,
1346
- I18nN: Ba,
1347
- I18nT: Ha,
1348
- NumberFormat: ce,
1349
- Translation: ie,
1357
+ I18nN: Xa,
1358
+ I18nT: Ya,
1359
+ NumberFormat: _e,
1360
+ Translation: ce,
1350
1361
  VERSION: at,
1351
- createI18n: Ka,
1352
- useI18n: ue,
1362
+ createI18n: za,
1363
+ useI18n: me,
1353
1364
  vTDirective: mt
1354
1365
  }, Symbol.toStringTag, { value: "Module" }));
1355
1366
  export {
1356
- gn as V,
1357
- Ka as c,
1358
- ue as u
1367
+ En as V,
1368
+ za as c,
1369
+ me as u
1359
1370
  };