exploria-ui 2026.8.28 → 2026.9.26

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 (155) hide show
  1. package/dist/components/data/ECarousel/ECarousel.vue.d.ts +2 -2
  2. package/dist/components/data/EMediaViewer/EMediaViewer.d.ts +7 -1
  3. package/dist/components/feedback/EDialog/EDialog.vue.d.ts +6 -0
  4. package/dist/components/feedback/EDrawer/EDrawer.vue.d.ts +6 -0
  5. package/dist/components/feedback/EMessage/EMessage.d.ts +21 -7
  6. package/dist/components/feedback/EMessageBox/EMessageBox.d.ts +6 -0
  7. package/dist/components/feedback/ENotification/ENotification.d.ts +6 -3
  8. package/dist/components/hooks/useContainer.d.ts +103 -0
  9. package/dist/components/index.d.ts +1 -0
  10. package/dist/components/index.js +54 -54
  11. package/dist/directives/index.js +3 -3
  12. package/dist/index.css +1 -1
  13. package/dist/utils/index.js +13 -13
  14. package/package.json +8 -4
  15. package/dist/_virtual/_plugin-vue_export-helper.js +0 -8
  16. package/dist/node_modules/.pnpm/@intlify_core-base@11.4.9/node_modules/@intlify/core-base/dist/core-base.js +0 -829
  17. package/dist/node_modules/.pnpm/@intlify_message-compiler@11.4.9/node_modules/@intlify/message-compiler/dist/message-compiler.js +0 -775
  18. package/dist/node_modules/.pnpm/@intlify_shared@11.4.9/node_modules/@intlify/shared/dist/shared.js +0 -144
  19. package/dist/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js +0 -1110
  20. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/controls/OrbitControls.js +0 -439
  21. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/curves/NURBSCurve.js +0 -31
  22. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/curves/NURBSUtils.js +0 -115
  23. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/libs/fflate.module.js +0 -251
  24. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/loaders/FBXLoader.js +0 -1426
  25. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/loaders/FontLoader.js +0 -68
  26. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/loaders/GLTFLoader.js +0 -1340
  27. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/utils/BufferGeometryUtils.js +0 -24
  28. package/dist/node_modules/.pnpm/three@0.185.1/node_modules/three/examples/jsm/utils/SkeletonUtils.js +0 -20
  29. package/dist/node_modules/.pnpm/vue-i18n@11.4.9_vue@3.5.41_typescript@5.9.3_/node_modules/vue-i18n/dist/vue-i18n.js +0 -532
  30. package/dist/src/components/advanced/ERollingFollow/ERollingFollow.vue.js +0 -7
  31. package/dist/src/components/advanced/ERollingFollow/ERollingFollow.vue_vue_type_script_setup_true_lang.js +0 -42
  32. package/dist/src/components/advanced/EVirtualList/EVirtualList.vue.js +0 -7
  33. package/dist/src/components/advanced/EVirtualList/EVirtualList.vue_vue_type_script_setup_true_lang.js +0 -41
  34. package/dist/src/components/advanced/EWatermark/EWatermark.vue.js +0 -7
  35. package/dist/src/components/advanced/EWatermark/EWatermark.vue_vue_type_script_setup_true_lang.js +0 -98
  36. package/dist/src/components/basic/EAvatar/EAvatar.vue.js +0 -7
  37. package/dist/src/components/basic/EAvatar/EAvatar.vue_vue_type_script_setup_true_lang.js +0 -45
  38. package/dist/src/components/basic/EBadge/EBadge.vue.js +0 -7
  39. package/dist/src/components/basic/EBadge/EBadge.vue_vue_type_script_setup_true_lang.js +0 -48
  40. package/dist/src/components/basic/EButton/EButton.vue.js +0 -7
  41. package/dist/src/components/basic/EButton/EButton.vue_vue_type_script_setup_true_lang.js +0 -37
  42. package/dist/src/components/basic/ECard/ECard.vue.js +0 -7
  43. package/dist/src/components/basic/ECard/ECard.vue_vue_type_script_setup_true_lang.js +0 -41
  44. package/dist/src/components/basic/ESvgIcon/ESvgIcon.vue.js +0 -5
  45. package/dist/src/components/basic/ESvgIcon/ESvgIcon.vue_vue_type_script_setup_true_lang.js +0 -11
  46. package/dist/src/components/basic/EUnderLine/EUnderLine.vue.js +0 -11
  47. package/dist/src/components/data/ECalendar.vue.js +0 -7
  48. package/dist/src/components/data/ECalendar.vue_vue_type_script_setup_true_lang.js +0 -109
  49. package/dist/src/components/data/ECarousel/ECarousel.vue.js +0 -7
  50. package/dist/src/components/data/ECarousel/ECarousel.vue_vue_type_script_setup_true_lang.js +0 -165
  51. package/dist/src/components/data/ECarousel/ECarouselItem.vue.js +0 -7
  52. package/dist/src/components/data/ECarousel/ECarouselItem.vue_vue_type_script_setup_true_lang.js +0 -42
  53. package/dist/src/components/data/ECodeCollapse/ECodeCollapse.vue.js +0 -7
  54. package/dist/src/components/data/ECodeCollapse/ECodeCollapse.vue_vue_type_script_setup_true_lang.js +0 -46
  55. package/dist/src/components/data/ECollapse/ECollapse.vue.js +0 -7
  56. package/dist/src/components/data/ECollapse/ECollapse.vue_vue_type_script_setup_true_lang.js +0 -29
  57. package/dist/src/components/data/EImage.vue.js +0 -7
  58. package/dist/src/components/data/EImage.vue_vue_type_script_setup_true_lang.js +0 -31
  59. package/dist/src/components/data/EList.vue.js +0 -7
  60. package/dist/src/components/data/EList.vue_vue_type_script_setup_true_lang.js +0 -52
  61. package/dist/src/components/data/EMediaViewer/EMediaViewer.js +0 -61
  62. package/dist/src/components/data/EMediaViewer/EMediaViewer.vue.js +0 -7
  63. package/dist/src/components/data/EMediaViewer/EMediaViewer.vue_vue_type_script_setup_true_lang.js +0 -210
  64. package/dist/src/components/data/EProgress.vue.js +0 -7
  65. package/dist/src/components/data/EProgress.vue_vue_type_script_setup_true_lang.js +0 -100
  66. package/dist/src/components/data/ERollingPagination.vue.js +0 -7
  67. package/dist/src/components/data/ERollingPagination.vue_vue_type_script_setup_true_lang.js +0 -45
  68. package/dist/src/components/data/ESkeleton/ESkeleton.vue.js +0 -14
  69. package/dist/src/components/data/ESteps/EStepItem.vue.js +0 -7
  70. package/dist/src/components/data/ESteps/EStepItem.vue_vue_type_script_setup_true_lang.js +0 -144
  71. package/dist/src/components/data/ESteps/ESteps.vue.js +0 -7
  72. package/dist/src/components/data/ESteps/ESteps.vue_vue_type_script_setup_true_lang.js +0 -25
  73. package/dist/src/components/data/ETable/ETable.vue.js +0 -7
  74. package/dist/src/components/data/ETable/ETable.vue_vue_type_script_setup_true_lang.js +0 -60
  75. package/dist/src/components/data/ETable/ETableColumn.vue.js +0 -5
  76. package/dist/src/components/data/ETable/ETableColumn.vue_vue_type_script_setup_true_lang.js +0 -23
  77. package/dist/src/components/data/ETable/no_data.svg.js +0 -4
  78. package/dist/src/components/data/ETimeline/ETimeline.vue.js +0 -7
  79. package/dist/src/components/data/ETimeline/ETimeline.vue_vue_type_script_setup_true_lang.js +0 -41
  80. package/dist/src/components/data/ETimeline/ETimelineItem.vue.js +0 -7
  81. package/dist/src/components/data/ETimeline/ETimelineItem.vue_vue_type_script_setup_true_lang.js +0 -44
  82. package/dist/src/components/feedback/EDialog/EDialog.vue.js +0 -7
  83. package/dist/src/components/feedback/EDialog/EDialog.vue_vue_type_script_setup_true_lang.js +0 -209
  84. package/dist/src/components/feedback/EDrawer/EDrawer.vue.js +0 -7
  85. package/dist/src/components/feedback/EDrawer/EDrawer.vue_vue_type_script_setup_true_lang.js +0 -138
  86. package/dist/src/components/feedback/EMessage/EMessage.js +0 -123
  87. package/dist/src/components/feedback/EMessage/EMessage.vue.js +0 -7
  88. package/dist/src/components/feedback/EMessage/EMessage.vue_vue_type_script_setup_true_lang.js +0 -34
  89. package/dist/src/components/feedback/EMessageBox/EMessageBox.js +0 -134
  90. package/dist/src/components/feedback/EMessageBox/EMessageBox.vue.js +0 -7
  91. package/dist/src/components/feedback/EMessageBox/EMessageBox.vue_vue_type_script_setup_true_lang.js +0 -69
  92. package/dist/src/components/feedback/ENotification/ENotification.js +0 -166
  93. package/dist/src/components/feedback/ENotification/ENotification.vue.js +0 -7
  94. package/dist/src/components/feedback/ENotification/ENotification.vue_vue_type_script_setup_true_lang.js +0 -56
  95. package/dist/src/components/feedback/EPopover.vue.js +0 -7
  96. package/dist/src/components/feedback/EPopover.vue_vue_type_script_setup_true_lang.js +0 -102
  97. package/dist/src/components/feedback/ETooltip.vue.js +0 -7
  98. package/dist/src/components/feedback/ETooltip.vue_vue_type_script_setup_true_lang.js +0 -73
  99. package/dist/src/components/form/ECheckbox.vue.js +0 -7
  100. package/dist/src/components/form/ECheckbox.vue_vue_type_script_setup_true_lang.js +0 -36
  101. package/dist/src/components/form/EColorPicker.vue.js +0 -7
  102. package/dist/src/components/form/EColorPicker.vue_vue_type_script_setup_true_lang.js +0 -309
  103. package/dist/src/components/form/EConditionGroup/EConditionGroup.vue.js +0 -7
  104. package/dist/src/components/form/EConditionGroup/EConditionGroup.vue_vue_type_script_setup_true_lang.js +0 -119
  105. package/dist/src/components/form/EFileSelector.vue.js +0 -7
  106. package/dist/src/components/form/EFileSelector.vue_vue_type_script_setup_true_lang.js +0 -58
  107. package/dist/src/components/form/EForm/EForm.vue.js +0 -7
  108. package/dist/src/components/form/EForm/EForm.vue_vue_type_script_setup_true_lang.js +0 -21
  109. package/dist/src/components/form/EForm/EFormItem.vue.js +0 -7
  110. package/dist/src/components/form/EForm/EFormItem.vue_vue_type_script_setup_true_lang.js +0 -44
  111. package/dist/src/components/form/EInput/EInput.vue.js +0 -7
  112. package/dist/src/components/form/EInput/EInput.vue_vue_type_script_setup_true_lang.js +0 -150
  113. package/dist/src/components/form/ERadio.vue.js +0 -7
  114. package/dist/src/components/form/ERadio.vue_vue_type_script_setup_true_lang.js +0 -36
  115. package/dist/src/components/form/ESelect/ESelect.vue.js +0 -8
  116. package/dist/src/components/form/ESelect/ESelect.vue_vue_type_script_setup_true_lang.js +0 -85
  117. package/dist/src/components/form/ESlider.vue.js +0 -7
  118. package/dist/src/components/form/ESlider.vue_vue_type_script_setup_true_lang.js +0 -77
  119. package/dist/src/components/form/ETimePicker.vue.js +0 -7
  120. package/dist/src/components/form/ETimePicker.vue_vue_type_script_setup_true_lang.js +0 -98
  121. package/dist/src/components/geometry/ECube.vue.js +0 -7
  122. package/dist/src/components/geometry/ECube.vue_vue_type_script_setup_true_lang.js +0 -11
  123. package/dist/src/components/hooks/useLiquidGlass.js +0 -63
  124. package/dist/src/components/hooks/usePosition.js +0 -42
  125. package/dist/src/components/hooks/useZIndex.js +0 -15
  126. package/dist/src/components/layout/EContainerWithScrollbar.vue.js +0 -7
  127. package/dist/src/components/layout/EContainerWithScrollbar.vue_vue_type_script_setup_true_lang.js +0 -27
  128. package/dist/src/components/layout/EDivider.vue.js +0 -5
  129. package/dist/src/components/layout/EDivider.vue_vue_type_script_setup_true_lang.js +0 -38
  130. package/dist/src/components/layout/EScrollX.vue.js +0 -7
  131. package/dist/src/components/layout/EScrollX.vue_vue_type_script_setup_true_lang.js +0 -34
  132. package/dist/src/components/layout/EScrollbar.vue.js +0 -7
  133. package/dist/src/components/layout/EScrollbar.vue_vue_type_script_setup_true_lang.js +0 -56
  134. package/dist/src/components/navigation/EDropdown.vue.js +0 -7
  135. package/dist/src/components/navigation/EDropdown.vue_vue_type_script_setup_true_lang.js +0 -109
  136. package/dist/src/components/navigation/ETabs/ETabPane.vue.js +0 -7
  137. package/dist/src/components/navigation/ETabs/ETabPane.vue_vue_type_script_setup_true_lang.js +0 -20
  138. package/dist/src/components/navigation/ETabs/ETabs.vue.js +0 -7
  139. package/dist/src/components/navigation/ETabs/ETabs.vue_vue_type_script_setup_true_lang.js +0 -98
  140. package/dist/src/directives/EDrag.js +0 -27
  141. package/dist/src/directives/ESizeOb.js +0 -23
  142. package/dist/src/directives/ESlideIn.js +0 -128
  143. package/dist/src/utils/EAnimateCSSUtil.js +0 -13
  144. package/dist/src/utils/EClipboardUtil.js +0 -19
  145. package/dist/src/utils/EDomUtil.js +0 -41
  146. package/dist/src/utils/EEchartsUtil.js +0 -23
  147. package/dist/src/utils/EEventBus.js +0 -16
  148. package/dist/src/utils/EImageUtil.js +0 -26
  149. package/dist/src/utils/EJSONUtil.js +0 -12
  150. package/dist/src/utils/ELocalStorageUtil.js +0 -15
  151. package/dist/src/utils/EMediaQueryUtil.js +0 -28
  152. package/dist/src/utils/EStringUtil.js +0 -11
  153. package/dist/src/utils/EThreeUtil.js +0 -40
  154. package/dist/src/utils/ETimeUtil.js +0 -22
  155. package/dist/src/utils/EUUIDUtil.js +0 -11
@@ -1,829 +0,0 @@
1
- import { assign as e, create as t, escapeHtml as n, format as r, friendlyJSONstringify as i, generateCodeFrame as a, generateFormatCacheKey as o, getGlobalThis as s, hasOwn as c, inBrowser as l, isArray as u, isBoolean as d, isDate as f, isEmptyObject as p, isFunction as m, isNumber as h, isObject as g, isPlainObject as _, isPromise as v, isRegExp as y, isString as b, join as x, mark as S, measure as C, sanitizeTranslatedHtml as w, toDisplayString as T, warn as E, warnOnce as D } from "../../../../../@intlify_shared@11.4.9/node_modules/@intlify/shared/dist/shared.js";
2
- import { baseCompile as O, createCompileError as k, defaultOnError as ee, detectHtmlTag as A } from "../../../../../@intlify_message-compiler@11.4.9/node_modules/@intlify/message-compiler/dist/message-compiler.js";
3
- //#region node_modules/.pnpm/@intlify+core-base@11.4.9/node_modules/@intlify/core-base/dist/core-base.mjs
4
- function j() {
5
- typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (s().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (s().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
6
- }
7
- function M(e) {
8
- return g(e) && I(e) === 0 && (c(e, "b") || c(e, "body"));
9
- }
10
- var te = ["b", "body"];
11
- function N(e) {
12
- return R(e, te);
13
- }
14
- var ne = ["c", "cases"];
15
- function re(e) {
16
- return R(e, ne, []);
17
- }
18
- var P = ["s", "static"];
19
- function F(e) {
20
- return R(e, P);
21
- }
22
- var ie = ["i", "items"];
23
- function ae(e) {
24
- return R(e, ie, []);
25
- }
26
- var oe = ["t", "type"];
27
- function I(e) {
28
- return R(e, oe);
29
- }
30
- var se = ["v", "value"];
31
- function L(e, t) {
32
- let n = R(e, se);
33
- if (n != null) return n;
34
- throw z(t);
35
- }
36
- var ce = ["m", "modifier"];
37
- function le(e) {
38
- return R(e, ce);
39
- }
40
- var ue = ["k", "key"];
41
- function de(e) {
42
- let t = R(e, ue);
43
- if (t) return t;
44
- throw z(6);
45
- }
46
- function R(e, t, n) {
47
- for (let n = 0; n < t.length; n++) {
48
- let r = t[n];
49
- if (c(e, r) && e[r] != null) return e[r];
50
- }
51
- return n;
52
- }
53
- var fe = [
54
- ...te,
55
- ...ne,
56
- ...P,
57
- ...ie,
58
- ...ue,
59
- ...ce,
60
- ...se,
61
- ...oe
62
- ];
63
- function z(e) {
64
- return Error(`unhandled node type: ${e}`);
65
- }
66
- function B(e) {
67
- return (t) => pe(t, e);
68
- }
69
- function pe(e, t) {
70
- let n = N(t);
71
- if (n == null) throw z(0);
72
- if (I(n) === 1) {
73
- let t = re(n);
74
- return e.plural(t.reduce((t, n) => [...t, me(e, n)], []));
75
- }
76
- return me(e, n);
77
- }
78
- function me(e, t) {
79
- let n = F(t);
80
- if (n != null) return e.type === "text" ? n : e.normalize([n]);
81
- {
82
- let n = ae(t).reduce((t, n) => [...t, V(e, n)], []);
83
- return e.normalize(n);
84
- }
85
- }
86
- function V(e, t) {
87
- let n = I(t);
88
- switch (n) {
89
- case 3: return L(t, n);
90
- case 9: return L(t, n);
91
- case 4: {
92
- let r = t;
93
- if (c(r, "k") && r.k) return e.interpolate(e.named(r.k));
94
- if (c(r, "key") && r.key) return e.interpolate(e.named(r.key));
95
- throw z(n);
96
- }
97
- case 5: {
98
- let r = t;
99
- if (c(r, "i") && h(r.i)) return e.interpolate(e.list(r.i));
100
- if (c(r, "index") && h(r.index)) return e.interpolate(e.list(r.index));
101
- throw z(n);
102
- }
103
- case 6: {
104
- let n = t, r = le(n), i = de(n);
105
- return e.linked(V(e, i), r ? V(e, r) : void 0, e.type);
106
- }
107
- case 7: return L(t, n);
108
- case 8: return L(t, n);
109
- default: throw Error(`unhandled node on format message part: ${n}`);
110
- }
111
- }
112
- var he = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
113
- function ge(e, t) {
114
- t && A(e) && E(r(he, { source: e }));
115
- }
116
- var _e = (e) => e, H = t();
117
- function ve(e, t = {}) {
118
- let n = !1, r = t.onError || ee;
119
- return t.onError = (e) => {
120
- n = !0, r(e);
121
- }, {
122
- ...O(e, t),
123
- detectError: n
124
- };
125
- }
126
- function ye(e, t) {
127
- if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && b(e)) {
128
- let n = !d(t.warnHtmlMessage) || t.warnHtmlMessage;
129
- process.env.NODE_ENV !== "production" && ge(e, n);
130
- let r = (t.onCacheKey || _e)(e), i = H[r];
131
- if (i) return i;
132
- let { ast: a, detectError: o } = ve(e, {
133
- ...t,
134
- location: process.env.NODE_ENV !== "production",
135
- jit: !0
136
- }), s = B(a);
137
- return o ? s : H[r] = s;
138
- }
139
- {
140
- if (process.env.NODE_ENV !== "production" && !M(e)) return E(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
141
- let n = e.cacheKey;
142
- return n ? H[n] || (H[n] = B(e)) : B(e);
143
- }
144
- }
145
- var U = null;
146
- function be(e) {
147
- U = e;
148
- }
149
- function xe(e, t, n) {
150
- U && U.emit("i18n:init", {
151
- timestamp: Date.now(),
152
- i18n: e,
153
- version: t,
154
- meta: n
155
- });
156
- }
157
- var Se = Ce("function:translate");
158
- function Ce(e) {
159
- return (t) => U && U.emit(e, t);
160
- }
161
- var W = {
162
- INVALID_ARGUMENT: 17,
163
- INVALID_DATE_ARGUMENT: 18,
164
- INVALID_ISO_DATE_ARGUMENT: 19,
165
- NOT_SUPPORT_NON_STRING_MESSAGE: 20,
166
- NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
167
- NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
168
- NOT_SUPPORT_LOCALE_TYPE: 23
169
- };
170
- function G(e) {
171
- return k(e, null, process.env.NODE_ENV === "production" ? void 0 : { messages: we });
172
- }
173
- var we = {
174
- [W.INVALID_ARGUMENT]: "Invalid arguments",
175
- [W.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
176
- [W.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
177
- [W.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
178
- [W.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
179
- [W.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
180
- [W.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
181
- };
182
- function K(e, t) {
183
- return t.locale == null ? J(e.locale) : J(t.locale);
184
- }
185
- var q;
186
- function J(e) {
187
- if (b(e)) return e;
188
- if (m(e)) {
189
- if (e.resolvedOnce && q != null) return q;
190
- if (e.constructor.name === "Function") {
191
- let t = e();
192
- if (v(t)) throw G(W.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
193
- return q = t;
194
- }
195
- throw G(W.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
196
- }
197
- throw G(W.NOT_SUPPORT_LOCALE_TYPE);
198
- }
199
- function Te(e, t, n) {
200
- return [...new Set([n, ...u(t) ? t : g(t) ? Object.keys(t).filter((e) => e !== "default") : b(t) ? [t] : [n]])];
201
- }
202
- function Ee(e, t, n) {
203
- let r = b(n) ? n : Q, a = e;
204
- a.__localeChainCache ||= new Map();
205
- let o = i(t), s = a.__localeChainCache.get(r);
206
- s || (s = new Map(), a.__localeChainCache.set(r, s));
207
- let c = s.get(o);
208
- if (c) return c;
209
- let l = [], d = [n];
210
- for (; u(d);) d = De(l, d, t);
211
- let f = u(t) || !_(t) ? t : t.default ? t.default : null;
212
- return d = b(f) ? [f] : f, u(d) && De(l, d, !1), s.set(o, l), l;
213
- }
214
- function De(e, t, n) {
215
- let r = !0;
216
- for (let i = 0; i < t.length && d(r); i++) {
217
- let a = t[i];
218
- b(a) && (r = Oe(e, t[i], n));
219
- }
220
- return r;
221
- }
222
- function Oe(e, t, n) {
223
- let r, i = t.split("-");
224
- do
225
- r = ke(e, i.join("-"), n), i.splice(-1, 1);
226
- while (i.length && r === !0);
227
- return r;
228
- }
229
- function ke(e, t, n) {
230
- let r = !1;
231
- if (!e.includes(t) && (r = !0, t)) {
232
- r = t[t.length - 1] !== "!";
233
- let i = t.replace(/!/g, "");
234
- e.push(i), (u(n) || _(n)) && n[i] && (r = n[i]);
235
- }
236
- return r;
237
- }
238
- var Y = [];
239
- Y[0] = {
240
- w: [0],
241
- i: [3, 0],
242
- "[": [4],
243
- o: [7]
244
- }, Y[1] = {
245
- w: [1],
246
- ".": [2],
247
- "[": [4],
248
- o: [7]
249
- }, Y[2] = {
250
- w: [2],
251
- i: [3, 0],
252
- 0: [3, 0]
253
- }, Y[3] = {
254
- i: [3, 0],
255
- 0: [3, 0],
256
- w: [1, 1],
257
- ".": [2, 1],
258
- "[": [4, 1],
259
- o: [7, 1]
260
- }, Y[4] = {
261
- "'": [5, 0],
262
- "\"": [6, 0],
263
- "[": [4, 2],
264
- "]": [1, 3],
265
- o: 8,
266
- l: [4, 0]
267
- }, Y[5] = {
268
- "'": [4, 0],
269
- o: 8,
270
- l: [5, 0]
271
- }, Y[6] = {
272
- "\"": [4, 0],
273
- o: 8,
274
- l: [6, 0]
275
- };
276
- var Ae = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
277
- function je(e) {
278
- return Ae.test(e);
279
- }
280
- function Me(e) {
281
- let t = e.charCodeAt(0);
282
- return t === e.charCodeAt(e.length - 1) && (t === 34 || t === 39) ? e.slice(1, -1) : e;
283
- }
284
- function Ne(e) {
285
- if (e == null) return "o";
286
- switch (e.charCodeAt(0)) {
287
- case 91:
288
- case 93:
289
- case 46:
290
- case 34:
291
- case 39: return e;
292
- case 95:
293
- case 36:
294
- case 45: return "i";
295
- case 9:
296
- case 10:
297
- case 13:
298
- case 160:
299
- case 65279:
300
- case 8232:
301
- case 8233: return "w";
302
- }
303
- return "i";
304
- }
305
- function Pe(e) {
306
- let t = e.trim();
307
- return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : je(t) ? Me(t) : "*" + t;
308
- }
309
- function Fe(e) {
310
- let t = [], n = -1, r = 0, i = 0, a, o, s, c, l, u, d, f = [];
311
- f[0] = () => {
312
- o === void 0 ? o = s : o += s;
313
- }, f[1] = () => {
314
- o !== void 0 && (t.push(o), o = void 0);
315
- }, f[2] = () => {
316
- f[0](), i++;
317
- }, f[3] = () => {
318
- if (i > 0) i--, r = 4, f[0]();
319
- else {
320
- if (i = 0, o === void 0 || (o = Pe(o), o === !1)) return !1;
321
- f[1]();
322
- }
323
- };
324
- function p() {
325
- let t = e[n + 1];
326
- if (r === 5 && t === "'" || r === 6 && t === "\"") return n++, s = "\\" + t, f[0](), !0;
327
- }
328
- for (; r !== null;) if (n++, a = e[n], !(a === "\\" && p())) {
329
- if (c = Ne(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;
330
- if (r === 7) return t;
331
- }
332
- }
333
- var Ie = new Map();
334
- function Le(e, t) {
335
- return g(e) ? e[t] : null;
336
- }
337
- function Re(e, t) {
338
- if (!g(e)) return null;
339
- let n = Ie.get(t);
340
- if (n || (n = Fe(t), n && Ie.set(t, n)), !n) return null;
341
- let r = n.length, i = e, a = 0;
342
- for (; a < r;) {
343
- let e = n[a];
344
- if (fe.includes(e) && M(i) || !g(i) || !c(i, e)) return null;
345
- let t = i[e];
346
- if (t === void 0 || m(i)) return null;
347
- i = t, a++;
348
- }
349
- return i;
350
- }
351
- var X = {
352
- NOT_FOUND_KEY: 1,
353
- FALLBACK_TO_TRANSLATE: 2,
354
- CANNOT_FORMAT_NUMBER: 3,
355
- FALLBACK_TO_NUMBER_FORMAT: 4,
356
- CANNOT_FORMAT_DATE: 5,
357
- FALLBACK_TO_DATE_FORMAT: 6,
358
- EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7,
359
- INVALID_NUMBER_ARGUMENT: 8,
360
- INVALID_DATE_ARGUMENT: 9
361
- }, ze = {
362
- [X.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
363
- [X.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
364
- [X.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
365
- [X.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
366
- [X.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
367
- [X.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
368
- [X.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.",
369
- [X.INVALID_NUMBER_ARGUMENT]: "Invalid argument for number formatting: expected a number but received '{value}'.",
370
- [X.INVALID_DATE_ARGUMENT]: "Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."
371
- };
372
- function Z(e, ...t) {
373
- return r(ze[e], ...t);
374
- }
375
- var Be = "11.4.9", Q = "en-US", Ve = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
376
- function He() {
377
- return {
378
- upper: (e, t) => t === "text" && b(e) ? e.toUpperCase() : t === "vnode" && g(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
379
- lower: (e, t) => t === "text" && b(e) ? e.toLowerCase() : t === "vnode" && g(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
380
- capitalize: (e, t) => t === "text" && b(e) ? Ve(e) : t === "vnode" && g(e) && "__v_isVNode" in e ? Ve(e.children) : e
381
- };
382
- }
383
- var Ue;
384
- function We(e) {
385
- Ue = e;
386
- }
387
- var Ge;
388
- function Ke(e) {
389
- Ge = e;
390
- }
391
- var qe;
392
- function Je(e) {
393
- qe = e;
394
- }
395
- var Ye = null, Xe = (e) => {
396
- Ye = e;
397
- }, Ze = () => Ye, Qe = null, $e = (e) => {
398
- Qe = e;
399
- }, et = () => Qe, tt = 0;
400
- function nt(n = {}) {
401
- let r = m(n.onWarn) ? n.onWarn : E, i = b(n.version) ? n.version : Be, a = b(n.locale) || m(n.locale) ? n.locale : Q, o = m(a) ? Q : a, s = u(n.fallbackLocale) || _(n.fallbackLocale) || b(n.fallbackLocale) || n.fallbackLocale === !1 ? n.fallbackLocale : o, c = _(n.messages) ? n.messages : rt(o), l = _(n.datetimeFormats) ? n.datetimeFormats : rt(o), f = _(n.numberFormats) ? n.numberFormats : rt(o), p = e(t(), n.modifiers, He()), h = n.pluralRules || t(), v = m(n.missing) ? n.missing : null, x = d(n.missingWarn) || y(n.missingWarn) ? n.missingWarn : !0, S = d(n.fallbackWarn) || y(n.fallbackWarn) ? n.fallbackWarn : !0, C = !!n.fallbackFormat, w = !!n.unresolving, T = m(n.postTranslation) ? n.postTranslation : null, O = _(n.processor) ? n.processor : null, k = !d(n.warnHtmlMessage) || n.warnHtmlMessage, ee = !!n.escapeParameter, A = m(n.messageCompiler) ? n.messageCompiler : Ue;
402
- process.env.NODE_ENV !== "production" && m(n.messageCompiler) && D(Z(X.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
403
- let j = m(n.messageResolver) ? n.messageResolver : Ge || Le, M = m(n.localeFallbacker) ? n.localeFallbacker : qe || Te, te = g(n.fallbackContext) ? n.fallbackContext : void 0, N = n, ne = g(N.__datetimeFormatters) ? N.__datetimeFormatters : new Map(), re = g(N.__numberFormatters) ? N.__numberFormatters : new Map(), P = g(N.__meta) ? N.__meta : {};
404
- tt++;
405
- let F = {
406
- version: i,
407
- cid: tt,
408
- locale: a,
409
- fallbackLocale: s,
410
- messages: c,
411
- modifiers: p,
412
- pluralRules: h,
413
- missing: v,
414
- missingWarn: x,
415
- fallbackWarn: S,
416
- fallbackFormat: C,
417
- unresolving: w,
418
- postTranslation: T,
419
- processor: O,
420
- warnHtmlMessage: k,
421
- escapeParameter: ee,
422
- messageCompiler: A,
423
- messageResolver: j,
424
- localeFallbacker: M,
425
- fallbackContext: te,
426
- onWarn: r,
427
- __meta: P
428
- };
429
- return F.datetimeFormats = l, F.numberFormats = f, F.__datetimeFormatters = ne, F.__numberFormatters = re, process.env.NODE_ENV !== "production" && (F.__v_emitter = N.__v_emitter == null ? void 0 : N.__v_emitter), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && xe(F, i, P), F;
430
- }
431
- var rt = (e) => ({ [e]: t() });
432
- function it(e, t) {
433
- return e instanceof RegExp ? e.test(t) : e;
434
- }
435
- function at(e, t) {
436
- return e instanceof RegExp ? e.test(t) : e;
437
- }
438
- function ot(e, t, n, r, i) {
439
- let { missing: a, onWarn: o } = e;
440
- if (process.env.NODE_ENV !== "production") {
441
- let r = e.__v_emitter;
442
- r && r.emit("missing", {
443
- locale: n,
444
- key: t,
445
- type: i,
446
- groupId: `${i}:${t}`
447
- });
448
- }
449
- if (a !== null) {
450
- let r = a(e, n, t, i);
451
- return b(r) ? r : t;
452
- }
453
- return process.env.NODE_ENV !== "production" && at(r, t) && o(Z(X.NOT_FOUND_KEY, {
454
- key: t,
455
- locale: n
456
- })), t;
457
- }
458
- function st(e, t, n) {
459
- let r = e;
460
- r.__localeChainCache = new Map(), e.localeFallbacker(e, n, t);
461
- }
462
- function ct(e, t) {
463
- return e !== t && e.split("-")[0] === t.split("-")[0];
464
- }
465
- function lt(e, t) {
466
- let n = t.indexOf(e);
467
- if (n === -1) return !1;
468
- for (let r = n + 1; r < t.length; r++) if (ct(e, t[r])) return !0;
469
- return !1;
470
- }
471
- function ut(e, t, n, r, i, a, o) {
472
- let { fallbackLocale: s, localeFallbacker: c, onWarn: l } = e, u = c(e, s, n), d = n;
473
- for (let s = 0; s < u.length; s++) {
474
- let c = u[s];
475
- if (process.env.NODE_ENV !== "production" && n !== c && it(a, t) && l(Z(o === "datetime format" ? X.FALLBACK_TO_DATE_FORMAT : X.FALLBACK_TO_NUMBER_FORMAT, {
476
- key: t,
477
- target: c
478
- })), process.env.NODE_ENV !== "production" && n !== c) {
479
- let n = e.__v_emitter;
480
- n && n.emit("fallback", {
481
- type: o,
482
- key: t,
483
- from: d,
484
- to: c,
485
- groupId: `${o}:${t}`
486
- });
487
- }
488
- let f = (r[c] || {})[t];
489
- if (_(f) && b(c)) return c;
490
- ot(e, t, c, i, o), d = c;
491
- }
492
- return null;
493
- }
494
- function dt(e, t, n) {
495
- let r = `${e}__${t}`;
496
- return _(n) && !p(n) && (r = `${r}__${JSON.stringify(n)}`), r;
497
- }
498
- function ft(e, t, n) {
499
- for (let r in n) {
500
- let n = `${t}__${r}`;
501
- for (let t of e.keys()) (t === n || t.startsWith(`${n}__`)) && e.delete(t);
502
- }
503
- }
504
- function pt(e, t, n, r) {
505
- let [, i, a, o] = e, s = n;
506
- return b(i) ? t.key = i : _(i) && Object.keys(i).forEach((e) => {
507
- r.includes(e) ? s[e] = i[e] : t[e] = i[e];
508
- }), b(a) ? t.locale = a : _(a) && (s = a), _(o) && (s = o), s;
509
- }
510
- var mt = typeof Intl < "u", ht = {
511
- dateTimeFormat: mt && Intl.DateTimeFormat !== void 0,
512
- numberFormat: mt && Intl.NumberFormat !== void 0
513
- };
514
- function gt(t, ...n) {
515
- let { datetimeFormats: r, unresolving: i, onWarn: a } = t, { __datetimeFormatters: o } = t;
516
- if (process.env.NODE_ENV !== "production" && !ht.dateTimeFormat) return a(Z(X.CANNOT_FORMAT_DATE)), "";
517
- if (!b(n[0]) && !f(n[0]) && !h(n[0])) return process.env.NODE_ENV !== "production" && a(Z(X.INVALID_DATE_ARGUMENT, { value: String(n[0]) })), "";
518
- let [s, c, l, u] = vt(...n), p = d(l.missingWarn) ? l.missingWarn : t.missingWarn, m = d(l.fallbackWarn) ? l.fallbackWarn : t.fallbackWarn, g = !!l.part, _ = K(t, l);
519
- if (!b(s) || s === "") {
520
- let e = new Intl.DateTimeFormat(_.replace(/!/g, ""), u);
521
- return g ? e.formatToParts(c) : e.format(c);
522
- }
523
- let v = ut(t, s, _, r, p, m, "datetime format");
524
- if (!b(v)) return i ? -1 : s;
525
- let y = r[v][s], x = dt(v, s, u), S = o.get(x);
526
- return S || (S = new Intl.DateTimeFormat(v, e({}, y, u)), o.set(x, S)), g ? S.formatToParts(c) : S.format(c);
527
- }
528
- var _t = [
529
- "localeMatcher",
530
- "weekday",
531
- "era",
532
- "year",
533
- "month",
534
- "day",
535
- "hour",
536
- "minute",
537
- "second",
538
- "timeZoneName",
539
- "formatMatcher",
540
- "hour12",
541
- "timeZone",
542
- "dateStyle",
543
- "timeStyle",
544
- "calendar",
545
- "dayPeriod",
546
- "numberingSystem",
547
- "hourCycle",
548
- "fractionalSecondDigits"
549
- ];
550
- function vt(...e) {
551
- let [n] = e, r = t(), i = t(), a;
552
- if (b(n)) {
553
- let e = n.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
554
- if (!e) throw G(W.INVALID_ISO_DATE_ARGUMENT);
555
- let t = e[3] ? e[3].trim().startsWith("T") ? `${e[1].trim()}${e[3].trim()}` : `${e[1].trim()}T${e[3].trim()}` : e[1].trim();
556
- a = new Date(t);
557
- try {
558
- a.toISOString();
559
- } catch {
560
- throw G(W.INVALID_ISO_DATE_ARGUMENT);
561
- }
562
- } else if (f(n)) {
563
- if (isNaN(n.getTime())) throw G(W.INVALID_DATE_ARGUMENT);
564
- a = n;
565
- } else if (h(n)) a = n;
566
- else throw G(W.INVALID_ARGUMENT);
567
- let o = pt(e, r, i, _t);
568
- return [
569
- r.key || "",
570
- a,
571
- r,
572
- o
573
- ];
574
- }
575
- function yt(e, t, n) {
576
- ft(e.__datetimeFormatters, t, n);
577
- }
578
- function bt(t, ...n) {
579
- let { numberFormats: r, unresolving: i, onWarn: a } = t, { __numberFormatters: o } = t;
580
- if (process.env.NODE_ENV !== "production" && !ht.numberFormat) return a(Z(X.CANNOT_FORMAT_NUMBER)), "";
581
- if (!h(n[0])) return process.env.NODE_ENV !== "production" && a(Z(X.INVALID_NUMBER_ARGUMENT, { value: String(n[0]) })), "";
582
- let [s, c, l, u] = St(...n), f = d(l.missingWarn) ? l.missingWarn : t.missingWarn, p = d(l.fallbackWarn) ? l.fallbackWarn : t.fallbackWarn, m = !!l.part, g = K(t, l);
583
- if (!b(s) || s === "") {
584
- let e = new Intl.NumberFormat(g.replace(/!/g, ""), u);
585
- return m ? e.formatToParts(c) : e.format(c);
586
- }
587
- let _ = ut(t, s, g, r, f, p, "number format");
588
- if (!b(_)) return i ? -1 : s;
589
- let v = r[_][s], y = dt(_, s, u), x = o.get(y);
590
- return x || (x = new Intl.NumberFormat(_, e({}, v, u)), o.set(y, x)), m ? x.formatToParts(c) : x.format(c);
591
- }
592
- var xt = [
593
- "localeMatcher",
594
- "style",
595
- "currency",
596
- "currencyDisplay",
597
- "currencySign",
598
- "useGrouping",
599
- "minimumIntegerDigits",
600
- "minimumFractionDigits",
601
- "maximumFractionDigits",
602
- "minimumSignificantDigits",
603
- "maximumSignificantDigits",
604
- "compactDisplay",
605
- "notation",
606
- "signDisplay",
607
- "unit",
608
- "unitDisplay",
609
- "roundingMode",
610
- "roundingPriority",
611
- "roundingIncrement",
612
- "trailingZeroDisplay"
613
- ];
614
- function St(...e) {
615
- let [n] = e, r = t(), i = t();
616
- if (!h(n)) throw G(W.INVALID_ARGUMENT);
617
- let a = n, o = pt(e, r, i, xt);
618
- return [
619
- r.key || "",
620
- a,
621
- r,
622
- o
623
- ];
624
- }
625
- function Ct(e, t, n) {
626
- ft(e.__numberFormatters, t, n);
627
- }
628
- var wt = (e) => e, Tt = (e) => "", Et = "text", Dt = (e) => e.length === 0 ? "" : x(e), Ot = T;
629
- function kt(e, t) {
630
- return e = Math.abs(e), t === 2 ? e === 1 ? 0 : 1 : Math.min(e, 2);
631
- }
632
- function At(e) {
633
- let t = h(e.pluralIndex) ? e.pluralIndex : -1;
634
- return h(e.named?.count) ? e.named.count : h(e.named?.n) ? e.named.n : t;
635
- }
636
- function jt(n = {}) {
637
- let r = n.locale, i = At(n), a = b(r) && m(n.pluralRules?.[r]) ? n.pluralRules[r] : kt, o = a === kt ? void 0 : kt, s = (e) => e[a(i, e.length, o)], c = n.list || [], l = (e) => c[e], d = n.named || t();
638
- h(n.pluralIndex) && (d.count ||= n.pluralIndex, d.n ||= n.pluralIndex);
639
- let f = (e) => d[e];
640
- function p(e, t) {
641
- return (m(n.messages) ? n.messages(e, !!t) : g(n.messages) ? n.messages[e] : !1) || (n.parent ? n.parent.message(e) : Tt);
642
- }
643
- let _ = (e) => n.modifiers ? n.modifiers[e] : wt, v = m(n.processor?.normalize) ? n.processor.normalize : Dt, y = m(n.processor?.interpolate) ? n.processor.interpolate : Ot, x = {
644
- list: l,
645
- named: f,
646
- plural: s,
647
- linked: (e, ...t) => {
648
- let [n, r] = t, i = "text", a = "";
649
- t.length === 1 ? g(n) ? (a = n.modifier || a, i = n.type || i) : b(n) && (a = n || a) : t.length === 2 && (b(n) && (a = n || a), b(r) && (i = r || i));
650
- let o = p(e, !0)(x), s = o === "" || o === void 0 ? e : o, c = i === "vnode" && u(s) && a ? s[0] : s;
651
- return a ? _(a)(c, i) : c;
652
- },
653
- message: p,
654
- type: b(n.processor?.type) ? n.processor.type : Et,
655
- interpolate: y,
656
- normalize: v,
657
- values: e(t(), c, d)
658
- };
659
- return x;
660
- }
661
- var Mt = () => "", $ = (e) => m(e);
662
- function Nt(n, ...r) {
663
- let { fallbackFormat: i, postTranslation: a, unresolving: o, messageCompiler: s, fallbackLocale: c, messages: l } = n, [u, f] = Rt(...r), p = d(f.missingWarn) ? f.missingWarn : n.missingWarn, h = d(f.fallbackWarn) ? f.fallbackWarn : n.fallbackWarn, g = d(f.escapeParameter) ? f.escapeParameter : n.escapeParameter, _ = !!f.resolvedMessage, v = b(f.default) || d(f.default) ? d(f.default) ? s ? u : () => u : f.default : i ? s ? u : () => u : null, y = i || v != null && (b(v) || m(v)), x = K(n, f);
664
- g && Pt(f);
665
- let [S, C, T] = _ ? [
666
- u,
667
- x,
668
- l[x] || t()
669
- ] : Ft(n, u, x, c, h, p), D = S, O = u;
670
- if (!_ && !(b(D) || M(D) || $(D)) && y && (D = v, O = D), !_ && (!(b(D) || M(D) || $(D)) || !b(C))) return o ? -1 : u;
671
- if (process.env.NODE_ENV !== "production" && b(D) && n.messageCompiler == null) return E(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`), u;
672
- let k = !1, ee = $(D) ? D : It(n, u, C, D, O, () => {
673
- k = !0;
674
- });
675
- if (k) return D;
676
- let A = Lt(n, ee, jt(Vt(n, C, T, f))), j = a ? a(A, u) : A;
677
- if (g && b(j) && (j = w(j)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
678
- let t = {
679
- timestamp: Date.now(),
680
- key: b(u) ? u : $(D) ? D.key : "",
681
- locale: C || ($(D) ? D.locale : ""),
682
- format: b(D) ? D : $(D) ? D.source : "",
683
- message: j
684
- };
685
- t.meta = e({}, n.__meta, Ze() || {}), Se(t);
686
- }
687
- return j;
688
- }
689
- function Pt(e) {
690
- u(e.list) ? e.list = e.list.map((e) => b(e) ? n(e) : e) : g(e.named) && Object.keys(e.named).forEach((t) => {
691
- b(e.named[t]) && (e.named[t] = n(e.named[t]));
692
- });
693
- }
694
- function Ft(e, n, r, i, a, o) {
695
- let { messages: s, onWarn: c, messageResolver: u, localeFallbacker: d } = e, f = d(e, i, r), p = t(), m, h = null, g = r, _ = null, v = "translate";
696
- for (let i = 0; i < f.length; i++) {
697
- m = _ = f[i], process.env.NODE_ENV !== "production" && r !== m && !ct(r, m) && it(a, n) && c(Z(X.FALLBACK_TO_TRANSLATE, {
698
- key: n,
699
- target: m
700
- }));
701
- let d = process.env.NODE_ENV === "production" ? void 0 : e.__v_emitter;
702
- process.env.NODE_ENV !== "production" && r !== m && d && d.emit("fallback", {
703
- type: v,
704
- key: n,
705
- from: g,
706
- to: _,
707
- groupId: `${v}:${n}`
708
- }), p = s[m] || t();
709
- let y = null, x, w;
710
- if (process.env.NODE_ENV !== "production" && l && d && (y = window.performance.now(), x = "intlify-message-resolve-start", w = "intlify-message-resolve-end", S && S(x)), (h = u(p, n)) === null && (h = p[n]), process.env.NODE_ENV !== "production" && l && d) {
711
- let e = window.performance.now();
712
- d && y && h && d.emit("message-resolve", {
713
- type: "message-resolve",
714
- key: n,
715
- message: h,
716
- time: e - y,
717
- groupId: `${v}:${n}`
718
- }), x && w && S && C && (S(w), C("intlify message resolve", x, w));
719
- }
720
- if (b(h) || M(h) || $(h)) break;
721
- if (!lt(m, f)) {
722
- let t = ot(e, n, m, o, v);
723
- t !== n && (h = t);
724
- }
725
- g = _;
726
- }
727
- return [
728
- h,
729
- m,
730
- p
731
- ];
732
- }
733
- function It(e, t, n, r, i, a) {
734
- let { messageCompiler: o, warnHtmlMessage: s } = e;
735
- if ($(r)) {
736
- let e = r;
737
- return e.locale = e.locale || n, e.key = e.key || t, e;
738
- }
739
- if (o == null) {
740
- let e = (() => r);
741
- return e.locale = n, e.key = t, e;
742
- }
743
- let c = process.env.NODE_ENV === "production" ? void 0 : e.__v_emitter, u = null, d, f;
744
- process.env.NODE_ENV !== "production" && l && c && (u = window.performance.now(), d = "intlify-message-compilation-start", f = "intlify-message-compilation-end", S && S(d));
745
- let p = o(r, zt(e, n, i, r, s, a));
746
- if (process.env.NODE_ENV !== "production" && l && c) {
747
- let e = window.performance.now();
748
- c && u && c.emit("message-compilation", {
749
- type: "message-compilation",
750
- message: r,
751
- time: e - u,
752
- groupId: `translate:${t}`
753
- }), d && f && S && C && (S(f), C("intlify message compilation", d, f));
754
- }
755
- return p.locale = n, p.key = t, p.source = r, p;
756
- }
757
- function Lt(e, t, n) {
758
- let r = process.env.NODE_ENV === "production" ? void 0 : e.__v_emitter, i = null, a, o;
759
- process.env.NODE_ENV !== "production" && l && r && (i = window.performance.now(), a = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", S && S(a));
760
- let s = t(n);
761
- if (process.env.NODE_ENV !== "production" && l && r) {
762
- let e = window.performance.now();
763
- r && i && r.emit("message-evaluation", {
764
- type: "message-evaluation",
765
- value: s,
766
- time: e - i,
767
- groupId: `translate:${t.key}`
768
- }), a && o && S && C && (S(o), C("intlify message evaluation", a, o));
769
- }
770
- return s;
771
- }
772
- function Rt(...n) {
773
- let [r, i, a] = n, o = t();
774
- if (!b(r) && !h(r) && !$(r) && !M(r)) throw G(W.INVALID_ARGUMENT);
775
- let s = h(r) ? String(r) : ($(r), r);
776
- return h(i) ? o.plural = i : b(i) ? o.default = i : _(i) && !p(i) ? o.named = i : u(i) && (o.list = i), h(a) ? o.plural = a : b(a) ? o.default = a : _(a) && e(o, a), [s, o];
777
- }
778
- function zt(e, t, n, r, i, s) {
779
- return {
780
- locale: t,
781
- key: n,
782
- warnHtmlMessage: i,
783
- onError: (t) => {
784
- if (s && s(t), process.env.NODE_ENV !== "production") {
785
- let i = Bt(r), o = t.location && i && a(i, t.location.start.offset, t.location.end.offset), s = e.__v_emitter;
786
- s && i && s.emit("compile-error", {
787
- message: i,
788
- error: t.message,
789
- start: t.location && t.location.start.offset,
790
- end: t.location && t.location.end.offset,
791
- groupId: `translate:${n}`
792
- });
793
- let c = `Message compilation error: ${t.message}`;
794
- throw SyntaxError(o ? `${c}\n${o}` : c);
795
- }
796
- throw t;
797
- },
798
- onCacheKey: (e) => o(t, n, e)
799
- };
800
- }
801
- function Bt(e) {
802
- if (b(e)) return e;
803
- if (e.loc && e.loc.source) return e.loc.source;
804
- }
805
- function Vt(e, t, n, r) {
806
- let { modifiers: i, pluralRules: a, messageResolver: o, fallbackLocale: s, fallbackWarn: c, missingWarn: l, fallbackContext: u } = e, d = {
807
- locale: t,
808
- modifiers: i,
809
- pluralRules: a,
810
- messages: (r, i) => {
811
- let a = o(n, r);
812
- if (a == null && (u || i)) {
813
- let [n, , i] = Ft(u || e, r, t, s, c, l);
814
- a = n ?? o(i, r);
815
- }
816
- if (b(a) || M(a)) {
817
- let n = !1, i = It(e, r, t, a, r, () => {
818
- n = !0;
819
- });
820
- return n ? Mt : i;
821
- }
822
- return $(a) ? a : Mt;
823
- }
824
- };
825
- return e.processor && (d.processor = e.processor), r.list && (d.list = r.list), r.named && (d.named = r.named), h(r.plural) && (d.pluralIndex = r.plural), d;
826
- }
827
- j();
828
- //#endregion
829
- export { fe as AST_NODE_PROPS_KEYS, W as CoreErrorCodes, X as CoreWarnCodes, _t as DATETIME_FORMAT_OPTIONS_KEYS, Q as DEFAULT_LOCALE, Et as DEFAULT_MESSAGE_DATA_TYPE, xt as NUMBER_FORMAT_OPTIONS_KEYS, Be as VERSION, yt as clearDateTimeFormat, Ct as clearNumberFormat, ye as compile, k as createCompileError, nt as createCoreContext, G as createCoreError, jt as createMessageContext, gt as datetime, Ee as fallbackWithLocaleChain, Te as fallbackWithSimple, Ze as getAdditionalMeta, et as getFallbackContext, K as getLocale, Z as getWarnMessage, ot as handleMissing, xe as initI18nDevTools, ct as isAlmostSameLocale, lt as isImplicitFallback, M as isMessageAST, $ as isMessageFunction, it as isTranslateFallbackWarn, at as isTranslateMissingWarn, bt as number, Fe as parse, vt as parseDateTimeArgs, St as parseNumberArgs, Rt as parseTranslateArgs, Je as registerLocaleFallbacker, We as registerMessageCompiler, Ke as registerMessageResolver, J as resolveLocale, Re as resolveValue, Le as resolveWithKeyValue, Xe as setAdditionalMeta, be as setDevToolsHook, $e as setFallbackContext, Nt as translate, Se as translateDevTools, st as updateFallbackLocale };