super-pages 0.0.29-up → 0.0.31-up

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.
@@ -30,13 +30,13 @@ function getDevtoolsGlobalHook() {
30
30
  return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
31
31
  }
32
32
  function getTarget() {
33
- return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
33
+ return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
34
34
  }
35
35
  const isProxyAvailable = typeof Proxy == "function", HOOK_SETUP = "devtools-plugin:setup", HOOK_PLUGIN_SETTINGS_SET = "plugin:settings:set";
36
36
  let supported, perf;
37
37
  function isPerformanceSupported() {
38
38
  var e;
39
- return supported !== void 0 || (typeof window < "u" && window.performance ? (supported = !0, perf = window.performance) : typeof global < "u" && (!((e = global.perf_hooks) === null || e === void 0) && e.performance) ? (supported = !0, perf = global.perf_hooks.performance) : supported = !1), supported;
39
+ return supported !== void 0 || (typeof window < "u" && window.performance ? (supported = !0, perf = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (supported = !0, perf = globalThis.perf_hooks.performance) : supported = !1), supported;
40
40
  }
41
41
  function now() {
42
42
  return isPerformanceSupported() ? perf.now() : Date.now();
@@ -804,8 +804,8 @@ function getModuleByNamespace(e, t, o) {
804
804
  return process.env.NODE_ENV !== "production" && !n && console.error("[vuex] module namespace not found in " + t + "(): " + o), n;
805
805
  }
806
806
  /*!
807
- * shared v9.8.0
808
- * (c) 2023 kazuya kawaguchi
807
+ * shared v9.12.0
808
+ * (c) 2024 kazuya kawaguchi
809
809
  * Released under the MIT License.
810
810
  */
811
811
  const inBrowser = typeof window < "u";
@@ -903,12 +903,17 @@ const isNotObjectOrIsArray = (e) => !isObject$2(e) || isArray$1(e);
903
903
  function deepCopy(e, t) {
904
904
  if (isNotObjectOrIsArray(e) || isNotObjectOrIsArray(t))
905
905
  throw new Error("Invalid value");
906
- for (const o in e)
907
- hasOwn(e, o) && (isNotObjectOrIsArray(e[o]) || isNotObjectOrIsArray(t[o]) ? t[o] = e[o] : deepCopy(e[o], t[o]));
906
+ const o = [{ src: e, des: t }];
907
+ for (; o.length; ) {
908
+ const { src: n, des: s } = o.pop();
909
+ Object.keys(n).forEach((i) => {
910
+ isNotObjectOrIsArray(n[i]) || isNotObjectOrIsArray(s[i]) ? s[i] = n[i] : o.push({ src: n[i], des: s[i] });
911
+ });
912
+ }
908
913
  }
909
914
  /*!
910
- * message-compiler v9.8.0
911
- * (c) 2023 kazuya kawaguchi
915
+ * message-compiler v9.12.0
916
+ * (c) 2024 kazuya kawaguchi
912
917
  * Released under the MIT License.
913
918
  */
914
919
  function createPosition(e, t, o) {
@@ -926,6 +931,16 @@ const assign$1 = Object.assign, isString$1 = (e) => typeof e == "string", isObje
926
931
  function join(e, t = "") {
927
932
  return e.reduce((o, n, s) => s === 0 ? o + n : o + t + n, "");
928
933
  }
934
+ const CompileWarnCodes = {
935
+ USE_MODULO_SYNTAX: 1,
936
+ __EXTEND_POINT__: 2
937
+ }, warnMessages$2 = {
938
+ [CompileWarnCodes.USE_MODULO_SYNTAX]: "Use modulo before '{{0}}'."
939
+ };
940
+ function createCompileWarn(e, t, ...o) {
941
+ const n = format$1(warnMessages$2[e] || "", ...o || []), s = { message: String(n), code: e };
942
+ return t && (s.location = t), s;
943
+ }
929
944
  const CompileErrorCodes = {
930
945
  // tokenizer error codes
931
946
  EXPECTED_TOKEN: 1,
@@ -985,23 +1000,23 @@ const RE_HTML_TAG = /<\/?[\w\s="/.':;#-\/]+>/, detectHtmlTag = (e) => RE_HTML_TA
985
1000
  function createScanner(e) {
986
1001
  const t = e;
987
1002
  let o = 0, n = 1, s = 1, i = 0;
988
- const a = (k) => t[k] === CHAR_CR && t[k + 1] === CHAR_LF, r = (k) => t[k] === CHAR_LF, l = (k) => t[k] === CHAR_PS, c = (k) => t[k] === CHAR_LS, u = (k) => a(k) || r(k) || l(k) || c(k), d = () => o, m = () => n, p = () => s, f = () => i, _ = (k) => a(k) || l(k) || c(k) ? CHAR_LF : t[k], C = () => _(o), y = () => _(o + i);
989
- function S() {
1003
+ const a = (v) => t[v] === CHAR_CR && t[v + 1] === CHAR_LF, r = (v) => t[v] === CHAR_LF, l = (v) => t[v] === CHAR_PS, c = (v) => t[v] === CHAR_LS, u = (v) => a(v) || r(v) || l(v) || c(v), d = () => o, m = () => n, p = () => s, f = () => i, _ = (v) => a(v) || l(v) || c(v) ? CHAR_LF : t[v], C = () => _(o), N = () => _(o + i);
1004
+ function P() {
990
1005
  return i = 0, u(o) && (n++, s = 0), a(o) && o++, o++, s++, t[o];
991
1006
  }
992
- function v() {
1007
+ function y() {
993
1008
  return a(o + i) && i++, i++, t[o + i];
994
1009
  }
995
- function E() {
1010
+ function S() {
996
1011
  o = 0, n = 1, s = 1, i = 0;
997
1012
  }
998
- function O(k = 0) {
999
- i = k;
1013
+ function T(v = 0) {
1014
+ i = v;
1000
1015
  }
1001
- function N() {
1002
- const k = o + i;
1003
- for (; k !== o; )
1004
- S();
1016
+ function E() {
1017
+ const v = o + i;
1018
+ for (; v !== o; )
1019
+ P();
1005
1020
  i = 0;
1006
1021
  }
1007
1022
  return {
@@ -1011,12 +1026,12 @@ function createScanner(e) {
1011
1026
  peekOffset: f,
1012
1027
  charAt: _,
1013
1028
  currentChar: C,
1014
- currentPeek: y,
1015
- next: S,
1016
- peek: v,
1017
- reset: E,
1018
- resetPeek: O,
1019
- skipToPeek: N
1029
+ currentPeek: N,
1030
+ next: P,
1031
+ peek: y,
1032
+ reset: S,
1033
+ resetPeek: T,
1034
+ skipToPeek: E
1020
1035
  };
1021
1036
  }
1022
1037
  const EOF = void 0, DOT = ".", LITERAL_DELIMITER = "'", ERROR_DOMAIN$3 = "tokenizer";
@@ -1034,20 +1049,20 @@ function createTokenizer(e, t = {}) {
1034
1049
  inLinked: !1,
1035
1050
  text: ""
1036
1051
  }, c = () => l, { onError: u } = t;
1037
- function d(b, g, w, ...I) {
1038
- const R = c();
1039
- if (g.column += w, g.offset += w, u) {
1040
- const L = o ? createLocation(R.startLoc, g) : null, G = createCompileError(b, L, {
1052
+ function d(b, g, k, ...R) {
1053
+ const F = c();
1054
+ if (g.column += k, g.offset += k, u) {
1055
+ const A = o ? createLocation(F.startLoc, g) : null, G = createCompileError(b, A, {
1041
1056
  domain: ERROR_DOMAIN$3,
1042
- args: I
1057
+ args: R
1043
1058
  });
1044
1059
  u(G);
1045
1060
  }
1046
1061
  }
1047
- function m(b, g, w) {
1062
+ function m(b, g, k) {
1048
1063
  b.endLoc = i(), b.currentType = g;
1049
- const I = { type: g };
1050
- return o && (I.loc = createLocation(b.startLoc, b.endLoc)), w != null && (I.value = w), I;
1064
+ const R = { type: g };
1065
+ return o && (R.loc = createLocation(b.startLoc, b.endLoc)), k != null && (R.value = k), R;
1051
1066
  }
1052
1067
  const p = (b) => m(
1053
1068
  b,
@@ -1067,7 +1082,7 @@ function createTokenizer(e, t = {}) {
1067
1082
  const g = _(b);
1068
1083
  return b.skipToPeek(), g;
1069
1084
  }
1070
- function y(b) {
1085
+ function N(b) {
1071
1086
  if (b === EOF)
1072
1087
  return !1;
1073
1088
  const g = b.charCodeAt(0);
@@ -1075,222 +1090,222 @@ function createTokenizer(e, t = {}) {
1075
1090
  g >= 65 && g <= 90 || // A-Z
1076
1091
  g === 95;
1077
1092
  }
1078
- function S(b) {
1093
+ function P(b) {
1079
1094
  if (b === EOF)
1080
1095
  return !1;
1081
1096
  const g = b.charCodeAt(0);
1082
1097
  return g >= 48 && g <= 57;
1083
1098
  }
1084
- function v(b, g) {
1085
- const { currentType: w } = g;
1086
- if (w !== 2)
1099
+ function y(b, g) {
1100
+ const { currentType: k } = g;
1101
+ if (k !== 2)
1087
1102
  return !1;
1088
1103
  _(b);
1089
- const I = y(b.currentPeek());
1090
- return b.resetPeek(), I;
1104
+ const R = N(b.currentPeek());
1105
+ return b.resetPeek(), R;
1091
1106
  }
1092
- function E(b, g) {
1093
- const { currentType: w } = g;
1094
- if (w !== 2)
1107
+ function S(b, g) {
1108
+ const { currentType: k } = g;
1109
+ if (k !== 2)
1095
1110
  return !1;
1096
1111
  _(b);
1097
- const I = b.currentPeek() === "-" ? b.peek() : b.currentPeek(), R = S(I);
1098
- return b.resetPeek(), R;
1112
+ const R = b.currentPeek() === "-" ? b.peek() : b.currentPeek(), F = P(R);
1113
+ return b.resetPeek(), F;
1099
1114
  }
1100
- function O(b, g) {
1101
- const { currentType: w } = g;
1102
- if (w !== 2)
1115
+ function T(b, g) {
1116
+ const { currentType: k } = g;
1117
+ if (k !== 2)
1103
1118
  return !1;
1104
1119
  _(b);
1105
- const I = b.currentPeek() === LITERAL_DELIMITER;
1106
- return b.resetPeek(), I;
1120
+ const R = b.currentPeek() === LITERAL_DELIMITER;
1121
+ return b.resetPeek(), R;
1107
1122
  }
1108
- function N(b, g) {
1109
- const { currentType: w } = g;
1110
- if (w !== 8)
1123
+ function E(b, g) {
1124
+ const { currentType: k } = g;
1125
+ if (k !== 8)
1111
1126
  return !1;
1112
1127
  _(b);
1113
- const I = b.currentPeek() === ".";
1114
- return b.resetPeek(), I;
1128
+ const R = b.currentPeek() === ".";
1129
+ return b.resetPeek(), R;
1115
1130
  }
1116
- function k(b, g) {
1117
- const { currentType: w } = g;
1118
- if (w !== 9)
1131
+ function v(b, g) {
1132
+ const { currentType: k } = g;
1133
+ if (k !== 9)
1119
1134
  return !1;
1120
1135
  _(b);
1121
- const I = y(b.currentPeek());
1122
- return b.resetPeek(), I;
1136
+ const R = N(b.currentPeek());
1137
+ return b.resetPeek(), R;
1123
1138
  }
1124
- function D(b, g) {
1125
- const { currentType: w } = g;
1126
- if (!(w === 8 || w === 12))
1139
+ function O(b, g) {
1140
+ const { currentType: k } = g;
1141
+ if (!(k === 8 || k === 12))
1127
1142
  return !1;
1128
1143
  _(b);
1129
- const I = b.currentPeek() === ":";
1130
- return b.resetPeek(), I;
1144
+ const R = b.currentPeek() === ":";
1145
+ return b.resetPeek(), R;
1131
1146
  }
1132
- function F(b, g) {
1133
- const { currentType: w } = g;
1134
- if (w !== 10)
1147
+ function I(b, g) {
1148
+ const { currentType: k } = g;
1149
+ if (k !== 10)
1135
1150
  return !1;
1136
- const I = () => {
1137
- const L = b.currentPeek();
1138
- return L === "{" ? y(b.peek()) : L === "@" || L === "%" || L === "|" || L === ":" || L === "." || L === CHAR_SP || !L ? !1 : L === CHAR_LF ? (b.peek(), I()) : y(L);
1139
- }, R = I();
1140
- return b.resetPeek(), R;
1151
+ const R = () => {
1152
+ const A = b.currentPeek();
1153
+ return A === "{" ? N(b.peek()) : A === "@" || A === "%" || A === "|" || A === ":" || A === "." || A === CHAR_SP || !A ? !1 : A === CHAR_LF ? (b.peek(), R()) : N(A);
1154
+ }, F = R();
1155
+ return b.resetPeek(), F;
1141
1156
  }
1142
- function A(b) {
1157
+ function B(b) {
1143
1158
  _(b);
1144
1159
  const g = b.currentPeek() === "|";
1145
1160
  return b.resetPeek(), g;
1146
1161
  }
1147
1162
  function $(b) {
1148
- const g = _(b), w = b.currentPeek() === "%" && b.peek() === "{";
1163
+ const g = _(b), k = b.currentPeek() === "%" && b.peek() === "{";
1149
1164
  return b.resetPeek(), {
1150
- isModulo: w,
1165
+ isModulo: k,
1151
1166
  hasSpace: g.length > 0
1152
1167
  };
1153
1168
  }
1154
- function B(b, g = !0) {
1155
- const w = (R = !1, L = "", G = !1) => {
1169
+ function L(b, g = !0) {
1170
+ const k = (F = !1, A = "", G = !1) => {
1156
1171
  const H = b.currentPeek();
1157
- return H === "{" ? L === "%" ? !1 : R : H === "@" || !H ? L === "%" ? !0 : R : H === "%" ? (b.peek(), w(R, "%", !0)) : H === "|" ? L === "%" || G ? !0 : !(L === CHAR_SP || L === CHAR_LF) : H === CHAR_SP ? (b.peek(), w(!0, CHAR_SP, G)) : H === CHAR_LF ? (b.peek(), w(!0, CHAR_LF, G)) : !0;
1158
- }, I = w();
1159
- return g && b.resetPeek(), I;
1172
+ return H === "{" ? A === "%" ? !1 : F : H === "@" || !H ? A === "%" ? !0 : F : H === "%" ? (b.peek(), k(F, "%", !0)) : H === "|" ? A === "%" || G ? !0 : !(A === CHAR_SP || A === CHAR_LF) : H === CHAR_SP ? (b.peek(), k(!0, CHAR_SP, G)) : H === CHAR_LF ? (b.peek(), k(!0, CHAR_LF, G)) : !0;
1173
+ }, R = k();
1174
+ return g && b.resetPeek(), R;
1160
1175
  }
1161
1176
  function U(b, g) {
1162
- const w = b.currentChar();
1163
- return w === EOF ? EOF : g(w) ? (b.next(), w) : null;
1164
- }
1165
- function X(b) {
1166
- return U(b, (w) => {
1167
- const I = w.charCodeAt(0);
1168
- return I >= 97 && I <= 122 || // a-z
1169
- I >= 65 && I <= 90 || // A-Z
1170
- I >= 48 && I <= 57 || // 0-9
1171
- I === 95 || // _
1172
- I === 36;
1177
+ const k = b.currentChar();
1178
+ return k === EOF ? EOF : g(k) ? (b.next(), k) : null;
1179
+ }
1180
+ function z(b) {
1181
+ return U(b, (k) => {
1182
+ const R = k.charCodeAt(0);
1183
+ return R >= 97 && R <= 122 || // a-z
1184
+ R >= 65 && R <= 90 || // A-Z
1185
+ R >= 48 && R <= 57 || // 0-9
1186
+ R === 95 || // _
1187
+ R === 36;
1173
1188
  });
1174
1189
  }
1175
1190
  function se(b) {
1176
- return U(b, (w) => {
1177
- const I = w.charCodeAt(0);
1178
- return I >= 48 && I <= 57;
1191
+ return U(b, (k) => {
1192
+ const R = k.charCodeAt(0);
1193
+ return R >= 48 && R <= 57;
1179
1194
  });
1180
1195
  }
1181
1196
  function W(b) {
1182
- return U(b, (w) => {
1183
- const I = w.charCodeAt(0);
1184
- return I >= 48 && I <= 57 || // 0-9
1185
- I >= 65 && I <= 70 || // A-F
1186
- I >= 97 && I <= 102;
1197
+ return U(b, (k) => {
1198
+ const R = k.charCodeAt(0);
1199
+ return R >= 48 && R <= 57 || // 0-9
1200
+ R >= 65 && R <= 70 || // A-F
1201
+ R >= 97 && R <= 102;
1187
1202
  });
1188
1203
  }
1189
- function Z(b) {
1190
- let g = "", w = "";
1204
+ function X(b) {
1205
+ let g = "", k = "";
1191
1206
  for (; g = se(b); )
1192
- w += g;
1193
- return w;
1207
+ k += g;
1208
+ return k;
1194
1209
  }
1195
1210
  function ie(b) {
1196
1211
  C(b);
1197
1212
  const g = b.currentChar();
1198
1213
  return g !== "%" && d(CompileErrorCodes.EXPECTED_TOKEN, i(), 0, g), b.next(), "%";
1199
1214
  }
1200
- function ee(b) {
1215
+ function Z(b) {
1201
1216
  let g = "";
1202
1217
  for (; ; ) {
1203
- const w = b.currentChar();
1204
- if (w === "{" || w === "}" || w === "@" || w === "|" || !w)
1218
+ const k = b.currentChar();
1219
+ if (k === "{" || k === "}" || k === "@" || k === "|" || !k)
1205
1220
  break;
1206
- if (w === "%")
1207
- if (B(b))
1208
- g += w, b.next();
1221
+ if (k === "%")
1222
+ if (L(b))
1223
+ g += k, b.next();
1209
1224
  else
1210
1225
  break;
1211
- else if (w === CHAR_SP || w === CHAR_LF)
1212
- if (B(b))
1213
- g += w, b.next();
1226
+ else if (k === CHAR_SP || k === CHAR_LF)
1227
+ if (L(b))
1228
+ g += k, b.next();
1214
1229
  else {
1215
- if (A(b))
1230
+ if (B(b))
1216
1231
  break;
1217
- g += w, b.next();
1232
+ g += k, b.next();
1218
1233
  }
1219
1234
  else
1220
- g += w, b.next();
1235
+ g += k, b.next();
1221
1236
  }
1222
1237
  return g;
1223
1238
  }
1224
- function j(b) {
1239
+ function ae(b) {
1225
1240
  C(b);
1226
- let g = "", w = "";
1227
- for (; g = X(b); )
1228
- w += g;
1229
- return b.currentChar() === EOF && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), w;
1241
+ let g = "", k = "";
1242
+ for (; g = z(b); )
1243
+ k += g;
1244
+ return b.currentChar() === EOF && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), k;
1230
1245
  }
1231
- function te(b) {
1246
+ function re(b) {
1232
1247
  C(b);
1233
1248
  let g = "";
1234
- return b.currentChar() === "-" ? (b.next(), g += `-${Z(b)}`) : g += Z(b), b.currentChar() === EOF && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), g;
1249
+ return b.currentChar() === "-" ? (b.next(), g += `-${X(b)}`) : g += X(b), b.currentChar() === EOF && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), g;
1235
1250
  }
1236
- function ae(b) {
1251
+ function j(b) {
1237
1252
  C(b), f(b, "'");
1238
- let g = "", w = "";
1239
- const I = (L) => L !== LITERAL_DELIMITER && L !== CHAR_LF;
1240
- for (; g = U(b, I); )
1241
- g === "\\" ? w += re(b) : w += g;
1242
- const R = b.currentChar();
1243
- return R === CHAR_LF || R === EOF ? (d(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), R === CHAR_LF && (b.next(), f(b, "'")), w) : (f(b, "'"), w);
1253
+ let g = "", k = "";
1254
+ const R = (A) => A !== LITERAL_DELIMITER && A !== CHAR_LF;
1255
+ for (; g = U(b, R); )
1256
+ g === "\\" ? k += ee(b) : k += g;
1257
+ const F = b.currentChar();
1258
+ return F === CHAR_LF || F === EOF ? (d(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), F === CHAR_LF && (b.next(), f(b, "'")), k) : (f(b, "'"), k);
1244
1259
  }
1245
- function re(b) {
1260
+ function ee(b) {
1246
1261
  const g = b.currentChar();
1247
1262
  switch (g) {
1248
1263
  case "\\":
1249
1264
  case "'":
1250
1265
  return b.next(), `\\${g}`;
1251
1266
  case "u":
1252
- return oe(b, g, 4);
1267
+ return te(b, g, 4);
1253
1268
  case "U":
1254
- return oe(b, g, 6);
1269
+ return te(b, g, 6);
1255
1270
  default:
1256
1271
  return d(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE, i(), 0, g), "";
1257
1272
  }
1258
1273
  }
1259
- function oe(b, g, w) {
1274
+ function te(b, g, k) {
1260
1275
  f(b, g);
1261
- let I = "";
1262
- for (let R = 0; R < w; R++) {
1263
- const L = W(b);
1264
- if (!L) {
1265
- d(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${g}${I}${b.currentChar()}`);
1276
+ let R = "";
1277
+ for (let F = 0; F < k; F++) {
1278
+ const A = W(b);
1279
+ if (!A) {
1280
+ d(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${g}${R}${b.currentChar()}`);
1266
1281
  break;
1267
1282
  }
1268
- I += L;
1283
+ R += A;
1269
1284
  }
1270
- return `\\${g}${I}`;
1285
+ return `\\${g}${R}`;
1271
1286
  }
1272
1287
  function le(b) {
1273
1288
  C(b);
1274
- let g = "", w = "";
1275
- const I = (R) => R !== "{" && R !== "}" && R !== CHAR_SP && R !== CHAR_LF;
1276
- for (; g = U(b, I); )
1277
- w += g;
1278
- return w;
1279
- }
1280
- function de(b) {
1281
- let g = "", w = "";
1282
- for (; g = X(b); )
1283
- w += g;
1284
- return w;
1289
+ let g = "", k = "";
1290
+ const R = (F) => F !== "{" && F !== "}" && F !== CHAR_SP && F !== CHAR_LF;
1291
+ for (; g = U(b, R); )
1292
+ k += g;
1293
+ return k;
1285
1294
  }
1286
1295
  function ce(b) {
1287
- const g = (w = !1, I) => {
1288
- const R = b.currentChar();
1289
- return R === "{" || R === "%" || R === "@" || R === "|" || R === "(" || R === ")" || !R || R === CHAR_SP ? I : R === CHAR_LF || R === DOT ? (I += R, b.next(), g(w, I)) : (I += R, b.next(), g(!0, I));
1296
+ let g = "", k = "";
1297
+ for (; g = z(b); )
1298
+ k += g;
1299
+ return k;
1300
+ }
1301
+ function ue(b) {
1302
+ const g = (k = !1, R) => {
1303
+ const F = b.currentChar();
1304
+ return F === "{" || F === "%" || F === "@" || F === "|" || F === "(" || F === ")" || !F || F === CHAR_SP ? R : F === CHAR_LF || F === DOT ? (R += F, b.next(), g(k, R)) : (R += F, b.next(), g(!0, R));
1290
1305
  };
1291
1306
  return g(!1, "");
1292
1307
  }
1293
- function J(b) {
1308
+ function oe(b) {
1294
1309
  C(b);
1295
1310
  const g = f(
1296
1311
  b,
@@ -1300,54 +1315,55 @@ function createTokenizer(e, t = {}) {
1300
1315
  return C(b), g;
1301
1316
  }
1302
1317
  function Q(b, g) {
1303
- let w = null;
1318
+ let k = null;
1304
1319
  switch (b.currentChar()) {
1305
1320
  case "{":
1306
- return g.braceNest >= 1 && d(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER, i(), 0), b.next(), w = m(
1321
+ return g.braceNest >= 1 && d(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER, i(), 0), b.next(), k = m(
1307
1322
  g,
1308
1323
  2,
1309
1324
  "{"
1310
1325
  /* TokenChars.BraceLeft */
1311
- ), C(b), g.braceNest++, w;
1326
+ ), C(b), g.braceNest++, k;
1312
1327
  case "}":
1313
- return g.braceNest > 0 && g.currentType === 2 && d(CompileErrorCodes.EMPTY_PLACEHOLDER, i(), 0), b.next(), w = m(
1328
+ return g.braceNest > 0 && g.currentType === 2 && d(CompileErrorCodes.EMPTY_PLACEHOLDER, i(), 0), b.next(), k = m(
1314
1329
  g,
1315
1330
  3,
1316
1331
  "}"
1317
1332
  /* TokenChars.BraceRight */
1318
- ), g.braceNest--, g.braceNest > 0 && C(b), g.inLinked && g.braceNest === 0 && (g.inLinked = !1), w;
1333
+ ), g.braceNest--, g.braceNest > 0 && C(b), g.inLinked && g.braceNest === 0 && (g.inLinked = !1), k;
1319
1334
  case "@":
1320
- return g.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), w = q(b, g) || p(g), g.braceNest = 0, w;
1321
- default:
1322
- let R = !0, L = !0, G = !0;
1323
- if (A(b))
1324
- return g.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), w = m(g, 1, J(b)), g.braceNest = 0, g.inLinked = !1, w;
1335
+ return g.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), k = q(b, g) || p(g), g.braceNest = 0, k;
1336
+ default: {
1337
+ let F = !0, A = !0, G = !0;
1338
+ if (B(b))
1339
+ return g.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), k = m(g, 1, oe(b)), g.braceNest = 0, g.inLinked = !1, k;
1325
1340
  if (g.braceNest > 0 && (g.currentType === 5 || g.currentType === 6 || g.currentType === 7))
1326
- return d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), g.braceNest = 0, z(b, g);
1327
- if (R = v(b, g))
1328
- return w = m(g, 5, j(b)), C(b), w;
1329
- if (L = E(b, g))
1330
- return w = m(g, 6, te(b)), C(b), w;
1331
- if (G = O(b, g))
1332
- return w = m(g, 7, ae(b)), C(b), w;
1333
- if (!R && !L && !G)
1334
- return w = m(g, 13, le(b)), d(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, w.value), C(b), w;
1341
+ return d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), g.braceNest = 0, K(b, g);
1342
+ if (F = y(b, g))
1343
+ return k = m(g, 5, ae(b)), C(b), k;
1344
+ if (A = S(b, g))
1345
+ return k = m(g, 6, re(b)), C(b), k;
1346
+ if (G = T(b, g))
1347
+ return k = m(g, 7, j(b)), C(b), k;
1348
+ if (!F && !A && !G)
1349
+ return k = m(g, 13, le(b)), d(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, k.value), C(b), k;
1335
1350
  break;
1351
+ }
1336
1352
  }
1337
- return w;
1353
+ return k;
1338
1354
  }
1339
1355
  function q(b, g) {
1340
- const { currentType: w } = g;
1341
- let I = null;
1342
- const R = b.currentChar();
1343
- switch ((w === 8 || w === 9 || w === 12 || w === 10) && (R === CHAR_LF || R === CHAR_SP) && d(CompileErrorCodes.INVALID_LINKED_FORMAT, i(), 0), R) {
1356
+ const { currentType: k } = g;
1357
+ let R = null;
1358
+ const F = b.currentChar();
1359
+ switch ((k === 8 || k === 9 || k === 12 || k === 10) && (F === CHAR_LF || F === CHAR_SP) && d(CompileErrorCodes.INVALID_LINKED_FORMAT, i(), 0), F) {
1344
1360
  case "@":
1345
- return b.next(), I = m(
1361
+ return b.next(), R = m(
1346
1362
  g,
1347
1363
  8,
1348
1364
  "@"
1349
1365
  /* TokenChars.LinkedAlias */
1350
- ), g.inLinked = !0, I;
1366
+ ), g.inLinked = !0, R;
1351
1367
  case ".":
1352
1368
  return C(b), b.next(), m(
1353
1369
  g,
@@ -1363,11 +1379,11 @@ function createTokenizer(e, t = {}) {
1363
1379
  /* TokenChars.LinkedDelimiter */
1364
1380
  );
1365
1381
  default:
1366
- return A(b) ? (I = m(g, 1, J(b)), g.braceNest = 0, g.inLinked = !1, I) : N(b, g) || D(b, g) ? (C(b), q(b, g)) : k(b, g) ? (C(b), m(g, 12, de(b))) : F(b, g) ? (C(b), R === "{" ? Q(b, g) || I : m(g, 11, ce(b))) : (w === 8 && d(CompileErrorCodes.INVALID_LINKED_FORMAT, i(), 0), g.braceNest = 0, g.inLinked = !1, z(b, g));
1382
+ return B(b) ? (R = m(g, 1, oe(b)), g.braceNest = 0, g.inLinked = !1, R) : E(b, g) || O(b, g) ? (C(b), q(b, g)) : v(b, g) ? (C(b), m(g, 12, ce(b))) : I(b, g) ? (C(b), F === "{" ? Q(b, g) || R : m(g, 11, ue(b))) : (k === 8 && d(CompileErrorCodes.INVALID_LINKED_FORMAT, i(), 0), g.braceNest = 0, g.inLinked = !1, K(b, g));
1367
1383
  }
1368
1384
  }
1369
- function z(b, g) {
1370
- let w = {
1385
+ function K(b, g) {
1386
+ let k = {
1371
1387
  type: 14
1372
1388
  /* TokenTypes.EOF */
1373
1389
  };
@@ -1387,28 +1403,29 @@ function createTokenizer(e, t = {}) {
1387
1403
  );
1388
1404
  case "@":
1389
1405
  return q(b, g) || p(g);
1390
- default:
1391
- if (A(b))
1392
- return w = m(g, 1, J(b)), g.braceNest = 0, g.inLinked = !1, w;
1393
- const { isModulo: R, hasSpace: L } = $(b);
1394
- if (R)
1395
- return L ? m(g, 0, ee(b)) : m(g, 4, ie(b));
1406
+ default: {
1396
1407
  if (B(b))
1397
- return m(g, 0, ee(b));
1408
+ return k = m(g, 1, oe(b)), g.braceNest = 0, g.inLinked = !1, k;
1409
+ const { isModulo: F, hasSpace: A } = $(b);
1410
+ if (F)
1411
+ return A ? m(g, 0, Z(b)) : m(g, 4, ie(b));
1412
+ if (L(b))
1413
+ return m(g, 0, Z(b));
1398
1414
  break;
1415
+ }
1399
1416
  }
1400
- return w;
1417
+ return k;
1401
1418
  }
1402
- function ue() {
1403
- const { currentType: b, offset: g, startLoc: w, endLoc: I } = l;
1404
- return l.lastType = b, l.lastOffset = g, l.lastStartLoc = w, l.lastEndLoc = I, l.offset = s(), l.startLoc = i(), n.currentChar() === EOF ? m(
1419
+ function de() {
1420
+ const { currentType: b, offset: g, startLoc: k, endLoc: R } = l;
1421
+ return l.lastType = b, l.lastOffset = g, l.lastStartLoc = k, l.lastEndLoc = R, l.offset = s(), l.startLoc = i(), n.currentChar() === EOF ? m(
1405
1422
  l,
1406
1423
  14
1407
1424
  /* TokenTypes.EOF */
1408
- ) : z(n, l);
1425
+ ) : K(n, l);
1409
1426
  }
1410
1427
  return {
1411
- nextToken: ue,
1428
+ nextToken: de,
1412
1429
  currentOffset: s,
1413
1430
  currentPosition: i,
1414
1431
  context: c
@@ -1428,133 +1445,145 @@ function fromEscapeSequence(e, t, o) {
1428
1445
  }
1429
1446
  }
1430
1447
  function createParser(e = {}) {
1431
- const t = e.location !== !1, { onError: o } = e;
1432
- function n(y, S, v, E, ...O) {
1433
- const N = y.currentPosition();
1434
- if (N.offset += E, N.column += E, o) {
1435
- const k = t ? createLocation(v, N) : null, D = createCompileError(S, k, {
1448
+ const t = e.location !== !1, { onError: o, onWarn: n } = e;
1449
+ function s(y, S, T, E, ...v) {
1450
+ const O = y.currentPosition();
1451
+ if (O.offset += E, O.column += E, o) {
1452
+ const I = t ? createLocation(T, O) : null, B = createCompileError(S, I, {
1436
1453
  domain: ERROR_DOMAIN$2,
1437
- args: O
1454
+ args: v
1438
1455
  });
1439
- o(D);
1456
+ o(B);
1440
1457
  }
1441
1458
  }
1442
- function s(y, S, v) {
1443
- const E = { type: y };
1444
- return t && (E.start = S, E.end = S, E.loc = { start: v, end: v }), E;
1445
- }
1446
- function i(y, S, v, E) {
1447
- E && (y.type = E), t && (y.end = S, y.loc && (y.loc.end = v));
1459
+ function i(y, S, T, E, ...v) {
1460
+ const O = y.currentPosition();
1461
+ if (O.offset += E, O.column += E, n) {
1462
+ const I = t ? createLocation(T, O) : null;
1463
+ n(createCompileWarn(S, I, v));
1464
+ }
1448
1465
  }
1449
- function a(y, S) {
1450
- const v = y.context(), E = s(3, v.offset, v.startLoc);
1451
- return E.value = S, i(E, y.currentOffset(), y.currentPosition()), E;
1466
+ function a(y, S, T) {
1467
+ const E = { type: y };
1468
+ return t && (E.start = S, E.end = S, E.loc = { start: T, end: T }), E;
1452
1469
  }
1453
- function r(y, S) {
1454
- const v = y.context(), { lastOffset: E, lastStartLoc: O } = v, N = s(5, E, O);
1455
- return N.index = parseInt(S, 10), y.nextToken(), i(N, y.currentOffset(), y.currentPosition()), N;
1470
+ function r(y, S, T, E) {
1471
+ E && (y.type = E), t && (y.end = S, y.loc && (y.loc.end = T));
1456
1472
  }
1457
1473
  function l(y, S) {
1458
- const v = y.context(), { lastOffset: E, lastStartLoc: O } = v, N = s(4, E, O);
1459
- return N.key = S, y.nextToken(), i(N, y.currentOffset(), y.currentPosition()), N;
1474
+ const T = y.context(), E = a(3, T.offset, T.startLoc);
1475
+ return E.value = S, r(E, y.currentOffset(), y.currentPosition()), E;
1460
1476
  }
1461
1477
  function c(y, S) {
1462
- const v = y.context(), { lastOffset: E, lastStartLoc: O } = v, N = s(9, E, O);
1463
- return N.value = S.replace(KNOWN_ESCAPES, fromEscapeSequence), y.nextToken(), i(N, y.currentOffset(), y.currentPosition()), N;
1478
+ const T = y.context(), { lastOffset: E, lastStartLoc: v } = T, O = a(5, E, v);
1479
+ return O.index = parseInt(S, 10), y.nextToken(), r(O, y.currentOffset(), y.currentPosition()), O;
1464
1480
  }
1465
- function u(y) {
1466
- const S = y.nextToken(), v = y.context(), { lastOffset: E, lastStartLoc: O } = v, N = s(8, E, O);
1467
- return S.type !== 12 ? (n(y, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER, v.lastStartLoc, 0), N.value = "", i(N, E, O), {
1468
- nextConsumeToken: S,
1469
- node: N
1470
- }) : (S.value == null && n(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, getTokenCaption(S)), N.value = S.value || "", i(N, y.currentOffset(), y.currentPosition()), {
1471
- node: N
1472
- });
1481
+ function u(y, S, T) {
1482
+ const E = y.context(), { lastOffset: v, lastStartLoc: O } = E, I = a(4, v, O);
1483
+ return I.key = S, T === !0 && (I.modulo = !0), y.nextToken(), r(I, y.currentOffset(), y.currentPosition()), I;
1473
1484
  }
1474
1485
  function d(y, S) {
1475
- const v = y.context(), E = s(7, v.offset, v.startLoc);
1476
- return E.value = S, i(E, y.currentOffset(), y.currentPosition()), E;
1486
+ const T = y.context(), { lastOffset: E, lastStartLoc: v } = T, O = a(9, E, v);
1487
+ return O.value = S.replace(KNOWN_ESCAPES, fromEscapeSequence), y.nextToken(), r(O, y.currentOffset(), y.currentPosition()), O;
1477
1488
  }
1478
1489
  function m(y) {
1479
- const S = y.context(), v = s(6, S.offset, S.startLoc);
1490
+ const S = y.nextToken(), T = y.context(), { lastOffset: E, lastStartLoc: v } = T, O = a(8, E, v);
1491
+ return S.type !== 12 ? (s(y, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER, T.lastStartLoc, 0), O.value = "", r(O, E, v), {
1492
+ nextConsumeToken: S,
1493
+ node: O
1494
+ }) : (S.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, getTokenCaption(S)), O.value = S.value || "", r(O, y.currentOffset(), y.currentPosition()), {
1495
+ node: O
1496
+ });
1497
+ }
1498
+ function p(y, S) {
1499
+ const T = y.context(), E = a(7, T.offset, T.startLoc);
1500
+ return E.value = S, r(E, y.currentOffset(), y.currentPosition()), E;
1501
+ }
1502
+ function f(y) {
1503
+ const S = y.context(), T = a(6, S.offset, S.startLoc);
1480
1504
  let E = y.nextToken();
1481
1505
  if (E.type === 9) {
1482
- const O = u(y);
1483
- v.modifier = O.node, E = O.nextConsumeToken || y.nextToken();
1506
+ const v = m(y);
1507
+ T.modifier = v.node, E = v.nextConsumeToken || y.nextToken();
1484
1508
  }
1485
- switch (E.type !== 10 && n(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(E)), E = y.nextToken(), E.type === 2 && (E = y.nextToken()), E.type) {
1509
+ switch (E.type !== 10 && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(E)), E = y.nextToken(), E.type === 2 && (E = y.nextToken()), E.type) {
1486
1510
  case 11:
1487
- E.value == null && n(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(E)), v.key = d(y, E.value || "");
1511
+ E.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(E)), T.key = p(y, E.value || "");
1488
1512
  break;
1489
1513
  case 5:
1490
- E.value == null && n(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(E)), v.key = l(y, E.value || "");
1514
+ E.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(E)), T.key = u(y, E.value || "");
1491
1515
  break;
1492
1516
  case 6:
1493
- E.value == null && n(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(E)), v.key = r(y, E.value || "");
1517
+ E.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(E)), T.key = c(y, E.value || "");
1494
1518
  break;
1495
1519
  case 7:
1496
- E.value == null && n(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(E)), v.key = c(y, E.value || "");
1520
+ E.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(E)), T.key = d(y, E.value || "");
1497
1521
  break;
1498
- default:
1499
- n(y, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY, S.lastStartLoc, 0);
1500
- const O = y.context(), N = s(7, O.offset, O.startLoc);
1501
- return N.value = "", i(N, O.offset, O.startLoc), v.key = N, i(v, O.offset, O.startLoc), {
1522
+ default: {
1523
+ s(y, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY, S.lastStartLoc, 0);
1524
+ const v = y.context(), O = a(7, v.offset, v.startLoc);
1525
+ return O.value = "", r(O, v.offset, v.startLoc), T.key = O, r(T, v.offset, v.startLoc), {
1502
1526
  nextConsumeToken: E,
1503
- node: v
1527
+ node: T
1504
1528
  };
1529
+ }
1505
1530
  }
1506
- return i(v, y.currentOffset(), y.currentPosition()), {
1507
- node: v
1531
+ return r(T, y.currentOffset(), y.currentPosition()), {
1532
+ node: T
1508
1533
  };
1509
1534
  }
1510
- function p(y) {
1511
- const S = y.context(), v = S.currentType === 1 ? y.currentOffset() : S.offset, E = S.currentType === 1 ? S.endLoc : S.startLoc, O = s(2, v, E);
1512
- O.items = [];
1513
- let N = null;
1535
+ function _(y) {
1536
+ const S = y.context(), T = S.currentType === 1 ? y.currentOffset() : S.offset, E = S.currentType === 1 ? S.endLoc : S.startLoc, v = a(2, T, E);
1537
+ v.items = [];
1538
+ let O = null, I = null;
1514
1539
  do {
1515
- const F = N || y.nextToken();
1516
- switch (N = null, F.type) {
1540
+ const L = O || y.nextToken();
1541
+ switch (O = null, L.type) {
1517
1542
  case 0:
1518
- F.value == null && n(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(F)), O.items.push(a(y, F.value || ""));
1543
+ L.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(L)), v.items.push(l(y, L.value || ""));
1519
1544
  break;
1520
1545
  case 6:
1521
- F.value == null && n(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(F)), O.items.push(r(y, F.value || ""));
1546
+ L.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(L)), v.items.push(c(y, L.value || ""));
1547
+ break;
1548
+ case 4:
1549
+ I = !0;
1522
1550
  break;
1523
1551
  case 5:
1524
- F.value == null && n(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(F)), O.items.push(l(y, F.value || ""));
1552
+ L.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(L)), v.items.push(u(y, L.value || "", !!I)), I && (i(y, CompileWarnCodes.USE_MODULO_SYNTAX, S.lastStartLoc, 0, getTokenCaption(L)), I = null);
1525
1553
  break;
1526
1554
  case 7:
1527
- F.value == null && n(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(F)), O.items.push(c(y, F.value || ""));
1555
+ L.value == null && s(y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, getTokenCaption(L)), v.items.push(d(y, L.value || ""));
1528
1556
  break;
1529
- case 8:
1530
- const A = m(y);
1531
- O.items.push(A.node), N = A.nextConsumeToken || null;
1557
+ case 8: {
1558
+ const U = f(y);
1559
+ v.items.push(U.node), O = U.nextConsumeToken || null;
1532
1560
  break;
1561
+ }
1533
1562
  }
1534
1563
  } while (S.currentType !== 14 && S.currentType !== 1);
1535
- const k = S.currentType === 1 ? S.lastOffset : y.currentOffset(), D = S.currentType === 1 ? S.lastEndLoc : y.currentPosition();
1536
- return i(O, k, D), O;
1537
- }
1538
- function f(y, S, v, E) {
1539
- const O = y.context();
1540
- let N = E.items.length === 0;
1541
- const k = s(1, S, v);
1542
- k.cases = [], k.cases.push(E);
1564
+ const B = S.currentType === 1 ? S.lastOffset : y.currentOffset(), $ = S.currentType === 1 ? S.lastEndLoc : y.currentPosition();
1565
+ return r(v, B, $), v;
1566
+ }
1567
+ function C(y, S, T, E) {
1568
+ const v = y.context();
1569
+ let O = E.items.length === 0;
1570
+ const I = a(1, S, T);
1571
+ I.cases = [], I.cases.push(E);
1543
1572
  do {
1544
- const D = p(y);
1545
- N || (N = D.items.length === 0), k.cases.push(D);
1546
- } while (O.currentType !== 14);
1547
- return N && n(y, CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL, v, 0), i(k, y.currentOffset(), y.currentPosition()), k;
1573
+ const B = _(y);
1574
+ O || (O = B.items.length === 0), I.cases.push(B);
1575
+ } while (v.currentType !== 14);
1576
+ return O && s(y, CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL, T, 0), r(I, y.currentOffset(), y.currentPosition()), I;
1548
1577
  }
1549
- function _(y) {
1550
- const S = y.context(), { offset: v, startLoc: E } = S, O = p(y);
1551
- return S.currentType === 14 ? O : f(y, v, E, O);
1578
+ function N(y) {
1579
+ const S = y.context(), { offset: T, startLoc: E } = S, v = _(y);
1580
+ return S.currentType === 14 ? v : C(y, T, E, v);
1552
1581
  }
1553
- function C(y) {
1554
- const S = createTokenizer(y, assign$1({}, e)), v = S.context(), E = s(0, v.offset, v.startLoc);
1555
- return t && E.loc && (E.loc.source = y), E.body = _(S), e.onCacheKey && (E.cacheKey = e.onCacheKey(y)), v.currentType !== 14 && n(S, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, y[v.offset] || ""), i(E, S.currentOffset(), S.currentPosition()), E;
1582
+ function P(y) {
1583
+ const S = createTokenizer(y, assign$1({}, e)), T = S.context(), E = a(0, T.offset, T.startLoc);
1584
+ return t && E.loc && (E.loc.source = y), E.body = N(S), e.onCacheKey && (E.cacheKey = e.onCacheKey(y)), T.currentType !== 14 && s(S, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, y[T.offset] || ""), r(E, S.currentOffset(), S.currentPosition()), E;
1556
1585
  }
1557
- return { parse: C };
1586
+ return { parse: P };
1558
1587
  }
1559
1588
  function getTokenCaption(e) {
1560
1589
  if (e.type === 14)
@@ -1584,7 +1613,7 @@ function traverseNode(e, t) {
1584
1613
  case 2:
1585
1614
  traverseNodes(e.items, t);
1586
1615
  break;
1587
- case 6:
1616
+ case 6: {
1588
1617
  traverseNode(e.key, t), t.helper(
1589
1618
  "linked"
1590
1619
  /* HelperNameMap.LINKED */
@@ -1593,6 +1622,7 @@ function traverseNode(e, t) {
1593
1622
  /* HelperNameMap.TYPE */
1594
1623
  );
1595
1624
  break;
1625
+ }
1596
1626
  case 5:
1597
1627
  t.helper(
1598
1628
  "interpolate"
@@ -1650,41 +1680,48 @@ function optimizeMessageNode(e) {
1650
1680
  const ERROR_DOMAIN$1 = "minifier";
1651
1681
  function minify(e) {
1652
1682
  switch (e.t = e.type, e.type) {
1653
- case 0:
1683
+ case 0: {
1654
1684
  const t = e;
1655
1685
  minify(t.body), t.b = t.body, delete t.body;
1656
1686
  break;
1657
- case 1:
1658
- const o = e, n = o.cases;
1659
- for (let u = 0; u < n.length; u++)
1660
- minify(n[u]);
1661
- o.c = n, delete o.cases;
1687
+ }
1688
+ case 1: {
1689
+ const t = e, o = t.cases;
1690
+ for (let n = 0; n < o.length; n++)
1691
+ minify(o[n]);
1692
+ t.c = o, delete t.cases;
1662
1693
  break;
1663
- case 2:
1664
- const s = e, i = s.items;
1665
- for (let u = 0; u < i.length; u++)
1666
- minify(i[u]);
1667
- s.i = i, delete s.items, s.static && (s.s = s.static, delete s.static);
1694
+ }
1695
+ case 2: {
1696
+ const t = e, o = t.items;
1697
+ for (let n = 0; n < o.length; n++)
1698
+ minify(o[n]);
1699
+ t.i = o, delete t.items, t.static && (t.s = t.static, delete t.static);
1668
1700
  break;
1701
+ }
1669
1702
  case 3:
1670
1703
  case 9:
1671
1704
  case 8:
1672
- case 7:
1673
- const a = e;
1674
- a.value && (a.v = a.value, delete a.value);
1705
+ case 7: {
1706
+ const t = e;
1707
+ t.value && (t.v = t.value, delete t.value);
1675
1708
  break;
1676
- case 6:
1677
- const r = e;
1678
- minify(r.key), r.k = r.key, delete r.key, r.modifier && (minify(r.modifier), r.m = r.modifier, delete r.modifier);
1709
+ }
1710
+ case 6: {
1711
+ const t = e;
1712
+ minify(t.key), t.k = t.key, delete t.key, t.modifier && (minify(t.modifier), t.m = t.modifier, delete t.modifier);
1679
1713
  break;
1680
- case 5:
1681
- const l = e;
1682
- l.i = l.index, delete l.index;
1714
+ }
1715
+ case 5: {
1716
+ const t = e;
1717
+ t.i = t.index, delete t.index;
1683
1718
  break;
1684
- case 4:
1685
- const c = e;
1686
- c.k = c.key, delete c.key;
1719
+ }
1720
+ case 4: {
1721
+ const t = e;
1722
+ t.k = t.key, delete t.key;
1687
1723
  break;
1724
+ }
1688
1725
  default:
1689
1726
  throw createCompileError(CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE, null, {
1690
1727
  domain: ERROR_DOMAIN$1,
@@ -1708,20 +1745,20 @@ function createCodeGenerator(e, t) {
1708
1745
  };
1709
1746
  a && e.loc && (r.source = e.loc.source);
1710
1747
  const l = () => r;
1711
- function c(C, y) {
1748
+ function c(C, N) {
1712
1749
  r.code += C;
1713
1750
  }
1714
- function u(C, y = !0) {
1715
- const S = y ? s : "";
1716
- c(i ? S + " ".repeat(C) : S);
1751
+ function u(C, N = !0) {
1752
+ const P = N ? s : "";
1753
+ c(i ? P + " ".repeat(C) : P);
1717
1754
  }
1718
1755
  function d(C = !0) {
1719
- const y = ++r.indentLevel;
1720
- C && u(y);
1756
+ const N = ++r.indentLevel;
1757
+ C && u(N);
1721
1758
  }
1722
1759
  function m(C = !0) {
1723
- const y = --r.indentLevel;
1724
- C && u(y);
1760
+ const N = --r.indentLevel;
1761
+ C && u(N);
1725
1762
  }
1726
1763
  function p() {
1727
1764
  u(r.indentLevel);
@@ -1845,8 +1882,8 @@ function baseCompile$1(e, t = {}) {
1845
1882
  return n ? (i && optimize(r), s && minify(r), { ast: r, code: "" }) : (transform(r, o), generate(r, o));
1846
1883
  }
1847
1884
  /*!
1848
- * core-base v9.8.0
1849
- * (c) 2023 kazuya kawaguchi
1885
+ * core-base v9.12.0
1886
+ * (c) 2024 kazuya kawaguchi
1850
1887
  * Released under the MIT License.
1851
1888
  */
1852
1889
  function initFeatureFlags$1() {
@@ -2138,26 +2175,26 @@ function normalizeNamed(e, t) {
2138
2175
  t.count || (t.count = e), t.n || (t.n = e);
2139
2176
  }
2140
2177
  function createMessageContext(e = {}) {
2141
- const t = e.locale, o = getPluralIndex(e), n = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? e.pluralRules[t] : pluralDefault, s = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? pluralDefault : void 0, i = (y) => y[n(o, y.length, s)], a = e.list || [], r = (y) => a[y], l = e.named || {};
2178
+ const t = e.locale, o = getPluralIndex(e), n = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? e.pluralRules[t] : pluralDefault, s = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? pluralDefault : void 0, i = (N) => N[n(o, N.length, s)], a = e.list || [], r = (N) => a[N], l = e.named || {};
2142
2179
  isNumber$1(e.pluralIndex) && normalizeNamed(o, l);
2143
- const c = (y) => l[y];
2144
- function u(y) {
2145
- const S = isFunction$1(e.messages) ? e.messages(y) : isObject$2(e.messages) ? e.messages[y] : !1;
2146
- return S || (e.parent ? e.parent.message(y) : DEFAULT_MESSAGE);
2180
+ const c = (N) => l[N];
2181
+ function u(N) {
2182
+ const P = isFunction$1(e.messages) ? e.messages(N) : isObject$2(e.messages) ? e.messages[N] : !1;
2183
+ return P || (e.parent ? e.parent.message(N) : DEFAULT_MESSAGE);
2147
2184
  }
2148
- const d = (y) => e.modifiers ? e.modifiers[y] : DEFAULT_MODIFIER, m = isPlainObject$1(e.processor) && isFunction$1(e.processor.normalize) ? e.processor.normalize : DEFAULT_NORMALIZE, p = isPlainObject$1(e.processor) && isFunction$1(e.processor.interpolate) ? e.processor.interpolate : DEFAULT_INTERPOLATE, f = isPlainObject$1(e.processor) && isString$2(e.processor.type) ? e.processor.type : DEFAULT_MESSAGE_DATA_TYPE, C = {
2185
+ const d = (N) => e.modifiers ? e.modifiers[N] : DEFAULT_MODIFIER, m = isPlainObject$1(e.processor) && isFunction$1(e.processor.normalize) ? e.processor.normalize : DEFAULT_NORMALIZE, p = isPlainObject$1(e.processor) && isFunction$1(e.processor.interpolate) ? e.processor.interpolate : DEFAULT_INTERPOLATE, f = isPlainObject$1(e.processor) && isString$2(e.processor.type) ? e.processor.type : DEFAULT_MESSAGE_DATA_TYPE, C = {
2149
2186
  list: r,
2150
2187
  named: c,
2151
2188
  plural: i,
2152
- linked: (y, ...S) => {
2153
- const [v, E] = S;
2154
- let O = "text", N = "";
2155
- S.length === 1 ? isObject$2(v) ? (N = v.modifier || N, O = v.type || O) : isString$2(v) && (N = v || N) : S.length === 2 && (isString$2(v) && (N = v || N), isString$2(E) && (O = E || O));
2156
- const k = u(y)(C), D = (
2189
+ linked: (N, ...P) => {
2190
+ const [y, S] = P;
2191
+ let T = "text", E = "";
2192
+ P.length === 1 ? isObject$2(y) ? (E = y.modifier || E, T = y.type || T) : isString$2(y) && (E = y || E) : P.length === 2 && (isString$2(y) && (E = y || E), isString$2(S) && (T = S || T));
2193
+ const v = u(N)(C), O = (
2157
2194
  // The message in vnode resolved with linked are returned as an array by processor.nomalize
2158
- O === "vnode" && isArray$1(k) && N ? k[0] : k
2195
+ T === "vnode" && isArray$1(v) && E ? v[0] : v
2159
2196
  );
2160
- return N ? d(N)(D, O) : D;
2197
+ return E ? d(E)(O, T) : O;
2161
2198
  },
2162
2199
  message: u,
2163
2200
  type: f,
@@ -2186,15 +2223,23 @@ const translateDevTools = /* @__PURE__ */ createDevToolsHook(
2186
2223
  function createDevToolsHook(e) {
2187
2224
  return (t) => devtools && devtools.emit(e, t);
2188
2225
  }
2189
- const CoreWarnCodes = {
2190
- NOT_FOUND_KEY: 1,
2191
- FALLBACK_TO_TRANSLATE: 2,
2192
- CANNOT_FORMAT_NUMBER: 3,
2193
- FALLBACK_TO_NUMBER_FORMAT: 4,
2194
- CANNOT_FORMAT_DATE: 5,
2195
- FALLBACK_TO_DATE_FORMAT: 6,
2196
- EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7,
2197
- __EXTEND_POINT__: 8
2226
+ const code$1$1 = CompileWarnCodes.__EXTEND_POINT__, inc$1$1 = incrementer(code$1$1), CoreWarnCodes = {
2227
+ NOT_FOUND_KEY: code$1$1,
2228
+ // 2
2229
+ FALLBACK_TO_TRANSLATE: inc$1$1(),
2230
+ // 3
2231
+ CANNOT_FORMAT_NUMBER: inc$1$1(),
2232
+ // 4
2233
+ FALLBACK_TO_NUMBER_FORMAT: inc$1$1(),
2234
+ // 5
2235
+ CANNOT_FORMAT_DATE: inc$1$1(),
2236
+ // 6
2237
+ FALLBACK_TO_DATE_FORMAT: inc$1$1(),
2238
+ // 7
2239
+ EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: inc$1$1(),
2240
+ // 8
2241
+ __EXTEND_POINT__: inc$1$1()
2242
+ // 9
2198
2243
  }, warnMessages$1 = {
2199
2244
  [CoreWarnCodes.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
2200
2245
  [CoreWarnCodes.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
@@ -2209,14 +2254,21 @@ function getWarnMessage$1(e, ...t) {
2209
2254
  }
2210
2255
  const code$2 = CompileErrorCodes.__EXTEND_POINT__, inc$2 = incrementer(code$2), CoreErrorCodes = {
2211
2256
  INVALID_ARGUMENT: code$2,
2257
+ // 17
2212
2258
  INVALID_DATE_ARGUMENT: inc$2(),
2259
+ // 18
2213
2260
  INVALID_ISO_DATE_ARGUMENT: inc$2(),
2261
+ // 19
2214
2262
  NOT_SUPPORT_NON_STRING_MESSAGE: inc$2(),
2263
+ // 20
2215
2264
  NOT_SUPPORT_LOCALE_PROMISE_VALUE: inc$2(),
2265
+ // 21
2216
2266
  NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: inc$2(),
2267
+ // 22
2217
2268
  NOT_SUPPORT_LOCALE_TYPE: inc$2(),
2269
+ // 23
2218
2270
  __EXTEND_POINT__: inc$2()
2219
- // 25
2271
+ // 24
2220
2272
  };
2221
2273
  function createCoreError(e) {
2222
2274
  return createCompileError(e, null, process.env.NODE_ENV !== "production" ? { messages: errorMessages$1 } : void 0);
@@ -2296,7 +2348,7 @@ function appendItemToChain(e, t, o) {
2296
2348
  }
2297
2349
  return n;
2298
2350
  }
2299
- const VERSION$2 = "9.8.0", NOT_REOSLVED = -1, DEFAULT_LOCALE = "en-US", MISSING_RESOLVE_VALUE = "", capitalize = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
2351
+ const VERSION$2 = "9.12.0", NOT_REOSLVED = -1, DEFAULT_LOCALE = "en-US", MISSING_RESOLVE_VALUE = "", capitalize = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
2300
2352
  function getDefaultLinkedModifiers() {
2301
2353
  return {
2302
2354
  upper: (e, t) => t === "text" && isString$2(e) ? e.toUpperCase() : t === "vnode" && isObject$2(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
@@ -2326,11 +2378,11 @@ const setFallbackContext = (e) => {
2326
2378
  }, getFallbackContext = () => _fallbackContext;
2327
2379
  let _cid = 0;
2328
2380
  function createCoreContext(e = {}) {
2329
- const t = isFunction$1(e.onWarn) ? e.onWarn : warn, o = isString$2(e.version) ? e.version : VERSION$2, n = isString$2(e.locale) || isFunction$1(e.locale) ? e.locale : DEFAULT_LOCALE, s = isFunction$1(n) ? DEFAULT_LOCALE : n, i = isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || isString$2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, a = isPlainObject$1(e.messages) ? e.messages : { [s]: {} }, r = isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [s]: {} }, l = isPlainObject$1(e.numberFormats) ? e.numberFormats : { [s]: {} }, c = assign$2({}, e.modifiers || {}, getDefaultLinkedModifiers()), u = e.pluralRules || {}, d = isFunction$1(e.missing) ? e.missing : null, m = isBoolean$1(e.missingWarn) || isRegExp$1(e.missingWarn) ? e.missingWarn : !0, p = isBoolean$1(e.fallbackWarn) || isRegExp$1(e.fallbackWarn) ? e.fallbackWarn : !0, f = !!e.fallbackFormat, _ = !!e.unresolving, C = isFunction$1(e.postTranslation) ? e.postTranslation : null, y = isPlainObject$1(e.processor) ? e.processor : null, S = isBoolean$1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, v = !!e.escapeParameter, E = isFunction$1(e.messageCompiler) ? e.messageCompiler : _compiler;
2381
+ const t = isFunction$1(e.onWarn) ? e.onWarn : warn, o = isString$2(e.version) ? e.version : VERSION$2, n = isString$2(e.locale) || isFunction$1(e.locale) ? e.locale : DEFAULT_LOCALE, s = isFunction$1(n) ? DEFAULT_LOCALE : n, i = isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || isString$2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, a = isPlainObject$1(e.messages) ? e.messages : { [s]: {} }, r = isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [s]: {} }, l = isPlainObject$1(e.numberFormats) ? e.numberFormats : { [s]: {} }, c = assign$2({}, e.modifiers || {}, getDefaultLinkedModifiers()), u = e.pluralRules || {}, d = isFunction$1(e.missing) ? e.missing : null, m = isBoolean$1(e.missingWarn) || isRegExp$1(e.missingWarn) ? e.missingWarn : !0, p = isBoolean$1(e.fallbackWarn) || isRegExp$1(e.fallbackWarn) ? e.fallbackWarn : !0, f = !!e.fallbackFormat, _ = !!e.unresolving, C = isFunction$1(e.postTranslation) ? e.postTranslation : null, N = isPlainObject$1(e.processor) ? e.processor : null, P = isBoolean$1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, S = isFunction$1(e.messageCompiler) ? e.messageCompiler : _compiler;
2330
2382
  process.env.NODE_ENV !== "production" && isFunction$1(e.messageCompiler) && warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
2331
- const O = isFunction$1(e.messageResolver) ? e.messageResolver : _resolver || resolveWithKeyValue, N = isFunction$1(e.localeFallbacker) ? e.localeFallbacker : _fallbacker || fallbackWithSimple, k = isObject$2(e.fallbackContext) ? e.fallbackContext : void 0, D = e, F = isObject$2(D.__datetimeFormatters) ? D.__datetimeFormatters : /* @__PURE__ */ new Map(), A = isObject$2(D.__numberFormatters) ? D.__numberFormatters : /* @__PURE__ */ new Map(), $ = isObject$2(D.__meta) ? D.__meta : {};
2383
+ const T = isFunction$1(e.messageResolver) ? e.messageResolver : _resolver || resolveWithKeyValue, E = isFunction$1(e.localeFallbacker) ? e.localeFallbacker : _fallbacker || fallbackWithSimple, v = isObject$2(e.fallbackContext) ? e.fallbackContext : void 0, O = e, I = isObject$2(O.__datetimeFormatters) ? O.__datetimeFormatters : /* @__PURE__ */ new Map(), B = isObject$2(O.__numberFormatters) ? O.__numberFormatters : /* @__PURE__ */ new Map(), $ = isObject$2(O.__meta) ? O.__meta : {};
2332
2384
  _cid++;
2333
- const B = {
2385
+ const L = {
2334
2386
  version: o,
2335
2387
  cid: _cid,
2336
2388
  locale: n,
@@ -2344,17 +2396,17 @@ function createCoreContext(e = {}) {
2344
2396
  fallbackFormat: f,
2345
2397
  unresolving: _,
2346
2398
  postTranslation: C,
2347
- processor: y,
2348
- warnHtmlMessage: S,
2349
- escapeParameter: v,
2350
- messageCompiler: E,
2351
- messageResolver: O,
2352
- localeFallbacker: N,
2353
- fallbackContext: k,
2399
+ processor: N,
2400
+ warnHtmlMessage: P,
2401
+ escapeParameter: y,
2402
+ messageCompiler: S,
2403
+ messageResolver: T,
2404
+ localeFallbacker: E,
2405
+ fallbackContext: v,
2354
2406
  onWarn: t,
2355
2407
  __meta: $
2356
2408
  };
2357
- return B.datetimeFormats = r, B.numberFormats = l, B.__datetimeFormatters = F, B.__numberFormatters = A, process.env.NODE_ENV !== "production" && (B.__v_emitter = D.__v_emitter != null ? D.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && initI18nDevTools(B, o, $), B;
2409
+ return L.datetimeFormats = r, L.numberFormats = l, L.__datetimeFormatters = I, L.__numberFormatters = B, process.env.NODE_ENV !== "production" && (L.__v_emitter = O.__v_emitter != null ? O.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && initI18nDevTools(L, o, $), L;
2358
2410
  }
2359
2411
  function isTranslateFallbackWarn(e, t) {
2360
2412
  return e instanceof RegExp ? e.test(t) : e;
@@ -2409,27 +2461,34 @@ function formatMessageParts(e, t) {
2409
2461
  function formatMessagePart(e, t) {
2410
2462
  const o = t.t || t.type;
2411
2463
  switch (o) {
2412
- case 3:
2464
+ case 3: {
2413
2465
  const n = t;
2414
2466
  return n.v || n.value;
2415
- case 9:
2416
- const s = t;
2417
- return s.v || s.value;
2418
- case 4:
2419
- const i = t;
2420
- return e.interpolate(e.named(i.k || i.key));
2421
- case 5:
2422
- const a = t;
2423
- return e.interpolate(e.list(a.i != null ? a.i : a.index));
2424
- case 6:
2425
- const r = t, l = r.m || r.modifier;
2426
- return e.linked(formatMessagePart(e, r.k || r.key), l ? formatMessagePart(e, l) : void 0, e.type);
2427
- case 7:
2428
- const c = t;
2429
- return c.v || c.value;
2430
- case 8:
2431
- const u = t;
2432
- return u.v || u.value;
2467
+ }
2468
+ case 9: {
2469
+ const n = t;
2470
+ return n.v || n.value;
2471
+ }
2472
+ case 4: {
2473
+ const n = t;
2474
+ return e.interpolate(e.named(n.k || n.key));
2475
+ }
2476
+ case 5: {
2477
+ const n = t;
2478
+ return e.interpolate(e.list(n.i != null ? n.i : n.index));
2479
+ }
2480
+ case 6: {
2481
+ const n = t, s = n.m || n.modifier;
2482
+ return e.linked(formatMessagePart(e, n.k || n.key), s ? formatMessagePart(e, s) : void 0, e.type);
2483
+ }
2484
+ case 7: {
2485
+ const n = t;
2486
+ return n.v || n.value;
2487
+ }
2488
+ case 8: {
2489
+ const n = t;
2490
+ return n.v || n.value;
2491
+ }
2433
2492
  default:
2434
2493
  throw new Error(`unhandled node type on format message part: ${o}`);
2435
2494
  }
@@ -2440,6 +2499,11 @@ function checkHtmlMessage(e, t) {
2440
2499
  }
2441
2500
  const defaultOnCacheKey = (e) => e;
2442
2501
  let compileCache = /* @__PURE__ */ Object.create(null);
2502
+ function onCompileWarn(e) {
2503
+ e.code === CompileWarnCodes.USE_MODULO_SYNTAX && warn(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
2504
+ reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
2505
+ (message compiler warning message: ${e.message})`);
2506
+ }
2443
2507
  const isMessageAST = (e) => isObject$2(e) && (e.t === 0 || e.type === 0) && ("b" in e || "body" in e);
2444
2508
  function baseCompile(e, t = {}) {
2445
2509
  let o = !1;
@@ -2451,6 +2515,7 @@ function baseCompile(e, t = {}) {
2451
2515
  const compileToFunction = /* @__NO_SIDE_EFFECTS__ */ (e, t) => {
2452
2516
  if (!isString$2(e))
2453
2517
  throw createCoreError(CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE);
2518
+ process.env.NODE_ENV !== "production" && (t.onWarn = onCompileWarn);
2454
2519
  {
2455
2520
  const o = isBoolean$1(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
2456
2521
  process.env.NODE_ENV !== "production" && checkHtmlMessage(e, o);
@@ -2462,7 +2527,7 @@ const compileToFunction = /* @__NO_SIDE_EFFECTS__ */ (e, t) => {
2462
2527
  }
2463
2528
  };
2464
2529
  function compile(e, t) {
2465
- if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && isString$2(e)) {
2530
+ if (process.env.NODE_ENV !== "production" && (t.onWarn = onCompileWarn), __INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && isString$2(e)) {
2466
2531
  const o = isBoolean$1(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
2467
2532
  process.env.NODE_ENV !== "production" && checkHtmlMessage(e, o);
2468
2533
  const s = (t.onCacheKey || defaultOnCacheKey)(e), i = compileCache[s];
@@ -2489,33 +2554,33 @@ const NOOP_MESSAGE_FUNCTION = () => "", isMessageFunction = (e) => isFunction$1(
2489
2554
  function translate(e, ...t) {
2490
2555
  const { fallbackFormat: o, postTranslation: n, unresolving: s, messageCompiler: i, fallbackLocale: a, messages: r } = e, [l, c] = parseTranslateArgs(...t), u = isBoolean$1(c.missingWarn) ? c.missingWarn : e.missingWarn, d = isBoolean$1(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, m = isBoolean$1(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, p = !!c.resolvedMessage, f = isString$2(c.default) || isBoolean$1(c.default) ? isBoolean$1(c.default) ? i ? l : () => l : c.default : o ? i ? l : () => l : "", _ = o || f !== "", C = getLocale(e, c);
2491
2556
  m && escapeParams(c);
2492
- let [y, S, v] = p ? [
2557
+ let [N, P, y] = p ? [
2493
2558
  l,
2494
2559
  C,
2495
2560
  r[C] || {}
2496
- ] : resolveMessageFormat(e, l, C, a, d, u), E = y, O = l;
2497
- if (!p && !(isString$2(E) || isMessageAST(E) || isMessageFunction(E)) && _ && (E = f, O = E), !p && (!(isString$2(E) || isMessageAST(E) || isMessageFunction(E)) || !isString$2(S)))
2561
+ ] : resolveMessageFormat(e, l, C, a, d, u), S = N, T = l;
2562
+ if (!p && !(isString$2(S) || isMessageAST(S) || isMessageFunction(S)) && _ && (S = f, T = S), !p && (!(isString$2(S) || isMessageAST(S) || isMessageFunction(S)) || !isString$2(P)))
2498
2563
  return s ? NOT_REOSLVED : l;
2499
- if (process.env.NODE_ENV !== "production" && isString$2(E) && e.messageCompiler == null)
2564
+ if (process.env.NODE_ENV !== "production" && isString$2(S) && e.messageCompiler == null)
2500
2565
  return warn(`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 '${l}'.`), l;
2501
- let N = !1;
2502
- const k = () => {
2503
- N = !0;
2504
- }, D = isMessageFunction(E) ? E : compileMessageFormat(e, l, S, E, O, k);
2505
- if (N)
2506
- return E;
2507
- const F = getMessageContextOptions(e, S, v, c), A = createMessageContext(F), $ = evaluateMessage(e, D, A), B = n ? n($, l) : $;
2566
+ let E = !1;
2567
+ const v = () => {
2568
+ E = !0;
2569
+ }, O = isMessageFunction(S) ? S : compileMessageFormat(e, l, P, S, T, v);
2570
+ if (E)
2571
+ return S;
2572
+ const I = getMessageContextOptions(e, P, y, c), B = createMessageContext(I), $ = evaluateMessage(e, O, B), L = n ? n($, l) : $;
2508
2573
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
2509
2574
  const U = {
2510
2575
  timestamp: Date.now(),
2511
- key: isString$2(l) ? l : isMessageFunction(E) ? E.key : "",
2512
- locale: S || (isMessageFunction(E) ? E.locale : ""),
2513
- format: isString$2(E) ? E : isMessageFunction(E) ? E.source : "",
2514
- message: B
2576
+ key: isString$2(l) ? l : isMessageFunction(S) ? S.key : "",
2577
+ locale: P || (isMessageFunction(S) ? S.locale : ""),
2578
+ format: isString$2(S) ? S : isMessageFunction(S) ? S.source : "",
2579
+ message: L
2515
2580
  };
2516
2581
  U.meta = assign$2({}, e.__meta, /* @__PURE__ */ getAdditionalMeta() || {}), translateDevTools(U);
2517
2582
  }
2518
- return B;
2583
+ return L;
2519
2584
  }
2520
2585
  function escapeParams(e) {
2521
2586
  isArray$1(e.list) ? e.list = e.list.map((t) => isString$2(t) ? escapeHtml(t) : t) : isObject$2(e.named) && Object.keys(e.named).forEach((t) => {
@@ -2526,13 +2591,13 @@ function resolveMessageFormat(e, t, o, n, s, i) {
2526
2591
  const { messages: a, onWarn: r, messageResolver: l, localeFallbacker: c } = e, u = c(e, n, o);
2527
2592
  let d = {}, m, p = null, f = o, _ = null;
2528
2593
  const C = "translate";
2529
- for (let y = 0; y < u.length; y++) {
2530
- if (m = _ = u[y], process.env.NODE_ENV !== "production" && o !== m && isTranslateFallbackWarn(s, t) && r(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_TRANSLATE, {
2594
+ for (let N = 0; N < u.length; N++) {
2595
+ if (m = _ = u[N], process.env.NODE_ENV !== "production" && o !== m && isTranslateFallbackWarn(s, t) && r(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_TRANSLATE, {
2531
2596
  key: t,
2532
2597
  target: m
2533
2598
  })), process.env.NODE_ENV !== "production" && o !== m) {
2534
- const N = e.__v_emitter;
2535
- N && N.emit("fallback", {
2599
+ const E = e.__v_emitter;
2600
+ E && E.emit("fallback", {
2536
2601
  type: C,
2537
2602
  key: t,
2538
2603
  from: f,
@@ -2541,20 +2606,20 @@ function resolveMessageFormat(e, t, o, n, s, i) {
2541
2606
  });
2542
2607
  }
2543
2608
  d = a[m] || {};
2544
- let S = null, v, E;
2545
- if (process.env.NODE_ENV !== "production" && inBrowser && (S = window.performance.now(), v = "intlify-message-resolve-start", E = "intlify-message-resolve-end", mark && mark(v)), (p = l(d, t)) === null && (p = d[t]), process.env.NODE_ENV !== "production" && inBrowser) {
2546
- const N = window.performance.now(), k = e.__v_emitter;
2547
- k && S && p && k.emit("message-resolve", {
2609
+ let P = null, y, S;
2610
+ if (process.env.NODE_ENV !== "production" && inBrowser && (P = window.performance.now(), y = "intlify-message-resolve-start", S = "intlify-message-resolve-end", mark && mark(y)), (p = l(d, t)) === null && (p = d[t]), process.env.NODE_ENV !== "production" && inBrowser) {
2611
+ const E = window.performance.now(), v = e.__v_emitter;
2612
+ v && P && p && v.emit("message-resolve", {
2548
2613
  type: "message-resolve",
2549
2614
  key: t,
2550
2615
  message: p,
2551
- time: N - S,
2616
+ time: E - P,
2552
2617
  groupId: `${C}:${t}`
2553
- }), v && E && mark && measure && (mark(E), measure("intlify message resolve", v, E));
2618
+ }), y && S && mark && measure && (mark(S), measure("intlify message resolve", y, S));
2554
2619
  }
2555
2620
  if (isString$2(p) || isMessageAST(p) || isMessageFunction(p))
2556
2621
  break;
2557
- const O = handleMissing(
2622
+ const T = handleMissing(
2558
2623
  e,
2559
2624
  // eslint-disable-line @typescript-eslint/no-explicit-any
2560
2625
  t,
@@ -2562,7 +2627,7 @@ function resolveMessageFormat(e, t, o, n, s, i) {
2562
2627
  i,
2563
2628
  C
2564
2629
  );
2565
- O !== t && (p = O), f = _;
2630
+ T !== t && (p = T), f = _;
2566
2631
  }
2567
2632
  return [p, m, d];
2568
2633
  }
@@ -2653,10 +2718,10 @@ function getMessageContextOptions(e, t, o, n) {
2653
2718
  }
2654
2719
  if (isString$2(f) || isMessageAST(f)) {
2655
2720
  let _ = !1;
2656
- const y = compileMessageFormat(e, p, t, f, p, () => {
2721
+ const N = compileMessageFormat(e, p, t, f, p, () => {
2657
2722
  _ = !0;
2658
2723
  });
2659
- return _ ? NOOP_MESSAGE_FUNCTION : y;
2724
+ return _ ? NOOP_MESSAGE_FUNCTION : N;
2660
2725
  } else
2661
2726
  return isMessageFunction(f) ? f : NOOP_MESSAGE_FUNCTION;
2662
2727
  }
@@ -2679,32 +2744,32 @@ function datetime(e, ...t) {
2679
2744
  );
2680
2745
  if (!isString$2(l) || l === "")
2681
2746
  return new Intl.DateTimeFormat(_, d).format(c);
2682
- let y = {}, S, v = null, E = _, O = null;
2683
- const N = "datetime format";
2684
- for (let F = 0; F < C.length; F++) {
2685
- if (S = O = C[F], process.env.NODE_ENV !== "production" && _ !== S && isTranslateFallbackWarn(p, l) && i(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT, {
2747
+ let N = {}, P, y = null, S = _, T = null;
2748
+ const E = "datetime format";
2749
+ for (let I = 0; I < C.length; I++) {
2750
+ if (P = T = C[I], process.env.NODE_ENV !== "production" && _ !== P && isTranslateFallbackWarn(p, l) && i(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT, {
2686
2751
  key: l,
2687
- target: S
2688
- })), process.env.NODE_ENV !== "production" && _ !== S) {
2689
- const A = e.__v_emitter;
2690
- A && A.emit("fallback", {
2691
- type: N,
2752
+ target: P
2753
+ })), process.env.NODE_ENV !== "production" && _ !== P) {
2754
+ const B = e.__v_emitter;
2755
+ B && B.emit("fallback", {
2756
+ type: E,
2692
2757
  key: l,
2693
- from: E,
2694
- to: O,
2695
- groupId: `${N}:${l}`
2758
+ from: S,
2759
+ to: T,
2760
+ groupId: `${E}:${l}`
2696
2761
  });
2697
2762
  }
2698
- if (y = o[S] || {}, v = y[l], isPlainObject$1(v))
2763
+ if (N = o[P] || {}, y = N[l], isPlainObject$1(y))
2699
2764
  break;
2700
- handleMissing(e, l, S, m, N), E = O;
2765
+ handleMissing(e, l, P, m, E), S = T;
2701
2766
  }
2702
- if (!isPlainObject$1(v) || !isString$2(S))
2767
+ if (!isPlainObject$1(y) || !isString$2(P))
2703
2768
  return n ? NOT_REOSLVED : l;
2704
- let k = `${S}__${l}`;
2705
- isEmptyObject(d) || (k = `${k}__${JSON.stringify(d)}`);
2706
- let D = r.get(k);
2707
- return D || (D = new Intl.DateTimeFormat(S, assign$2({}, v, d)), r.set(k, D)), f ? D.formatToParts(c) : D.format(c);
2769
+ let v = `${P}__${l}`;
2770
+ isEmptyObject(d) || (v = `${v}__${JSON.stringify(d)}`);
2771
+ let O = r.get(v);
2772
+ return O || (O = new Intl.DateTimeFormat(P, assign$2({}, y, d)), r.set(v, O)), f ? O.formatToParts(c) : O.format(c);
2708
2773
  }
2709
2774
  const DATETIME_FORMAT_OPTIONS_KEYS = [
2710
2775
  "localeMatcher",
@@ -2773,32 +2838,32 @@ function number(e, ...t) {
2773
2838
  );
2774
2839
  if (!isString$2(l) || l === "")
2775
2840
  return new Intl.NumberFormat(_, d).format(c);
2776
- let y = {}, S, v = null, E = _, O = null;
2777
- const N = "number format";
2778
- for (let F = 0; F < C.length; F++) {
2779
- if (S = O = C[F], process.env.NODE_ENV !== "production" && _ !== S && isTranslateFallbackWarn(p, l) && i(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT, {
2841
+ let N = {}, P, y = null, S = _, T = null;
2842
+ const E = "number format";
2843
+ for (let I = 0; I < C.length; I++) {
2844
+ if (P = T = C[I], process.env.NODE_ENV !== "production" && _ !== P && isTranslateFallbackWarn(p, l) && i(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT, {
2780
2845
  key: l,
2781
- target: S
2782
- })), process.env.NODE_ENV !== "production" && _ !== S) {
2783
- const A = e.__v_emitter;
2784
- A && A.emit("fallback", {
2785
- type: N,
2846
+ target: P
2847
+ })), process.env.NODE_ENV !== "production" && _ !== P) {
2848
+ const B = e.__v_emitter;
2849
+ B && B.emit("fallback", {
2850
+ type: E,
2786
2851
  key: l,
2787
- from: E,
2788
- to: O,
2789
- groupId: `${N}:${l}`
2852
+ from: S,
2853
+ to: T,
2854
+ groupId: `${E}:${l}`
2790
2855
  });
2791
2856
  }
2792
- if (y = o[S] || {}, v = y[l], isPlainObject$1(v))
2857
+ if (N = o[P] || {}, y = N[l], isPlainObject$1(y))
2793
2858
  break;
2794
- handleMissing(e, l, S, m, N), E = O;
2859
+ handleMissing(e, l, P, m, E), S = T;
2795
2860
  }
2796
- if (!isPlainObject$1(v) || !isString$2(S))
2861
+ if (!isPlainObject$1(y) || !isString$2(P))
2797
2862
  return n ? NOT_REOSLVED : l;
2798
- let k = `${S}__${l}`;
2799
- isEmptyObject(d) || (k = `${k}__${JSON.stringify(d)}`);
2800
- let D = r.get(k);
2801
- return D || (D = new Intl.NumberFormat(S, assign$2({}, v, d)), r.set(k, D)), f ? D.formatToParts(c) : D.format(c);
2863
+ let v = `${P}__${l}`;
2864
+ isEmptyObject(d) || (v = `${v}__${JSON.stringify(d)}`);
2865
+ let O = r.get(v);
2866
+ return O || (O = new Intl.NumberFormat(P, assign$2({}, y, d)), r.set(v, O)), f ? O.formatToParts(c) : O.format(c);
2802
2867
  }
2803
2868
  const NUMBER_FORMAT_OPTIONS_KEYS = [
2804
2869
  "localeMatcher",
@@ -2841,25 +2906,35 @@ function clearNumberFormat(e, t, o) {
2841
2906
  }
2842
2907
  initFeatureFlags$1();
2843
2908
  /*!
2844
- * vue-i18n v9.8.0
2845
- * (c) 2023 kazuya kawaguchi
2909
+ * vue-i18n v9.12.0
2910
+ * (c) 2024 kazuya kawaguchi
2846
2911
  * Released under the MIT License.
2847
2912
  */
2848
- const VERSION$1 = "9.8.0";
2913
+ const VERSION$1 = "9.12.0";
2849
2914
  function initFeatureFlags() {
2850
2915
  typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (getGlobalThis().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (getGlobalThis().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (getGlobalThis().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = !1);
2851
2916
  }
2852
2917
  const code$1 = CoreWarnCodes.__EXTEND_POINT__, inc$1 = incrementer(code$1), I18nWarnCodes = {
2853
2918
  FALLBACK_TO_ROOT: code$1,
2919
+ // 9
2854
2920
  NOT_SUPPORTED_PRESERVE: inc$1(),
2921
+ // 10
2855
2922
  NOT_SUPPORTED_FORMATTER: inc$1(),
2923
+ // 11
2856
2924
  NOT_SUPPORTED_PRESERVE_DIRECTIVE: inc$1(),
2925
+ // 12
2857
2926
  NOT_SUPPORTED_GET_CHOICE_INDEX: inc$1(),
2927
+ // 13
2858
2928
  COMPONENT_NAME_LEGACY_COMPATIBLE: inc$1(),
2929
+ // 14
2859
2930
  NOT_FOUND_PARENT_SCOPE: inc$1(),
2931
+ // 15
2860
2932
  IGNORE_OBJ_FLATTEN: inc$1(),
2861
- NOTICE_DROP_ALLOW_COMPOSITION: inc$1()
2933
+ // 16
2934
+ NOTICE_DROP_ALLOW_COMPOSITION: inc$1(),
2862
2935
  // 17
2936
+ NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG: inc$1()
2937
+ // 18
2863
2938
  }, warnMessages = {
2864
2939
  [I18nWarnCodes.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
2865
2940
  [I18nWarnCodes.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
@@ -2869,7 +2944,8 @@ const code$1 = CoreWarnCodes.__EXTEND_POINT__, inc$1 = incrementer(code$1), I18n
2869
2944
  [I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
2870
2945
  [I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
2871
2946
  [I18nWarnCodes.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
2872
- [I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION]: "'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"
2947
+ [I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION]: "'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",
2948
+ [I18nWarnCodes.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]: "'translateExistCompatible' option will be dropped in the next major version."
2873
2949
  };
2874
2950
  function getWarnMessage(e, ...t) {
2875
2951
  return format$2(warnMessages[e], ...t);
@@ -2877,31 +2953,45 @@ function getWarnMessage(e, ...t) {
2877
2953
  const code = CoreErrorCodes.__EXTEND_POINT__, inc = incrementer(code), I18nErrorCodes = {
2878
2954
  // composer module errors
2879
2955
  UNEXPECTED_RETURN_TYPE: code,
2956
+ // 24
2880
2957
  // legacy module errors
2881
2958
  INVALID_ARGUMENT: inc(),
2959
+ // 25
2882
2960
  // i18n module errors
2883
2961
  MUST_BE_CALL_SETUP_TOP: inc(),
2962
+ // 26
2884
2963
  NOT_INSTALLED: inc(),
2964
+ // 27
2885
2965
  NOT_AVAILABLE_IN_LEGACY_MODE: inc(),
2966
+ // 28
2886
2967
  // directive module errors
2887
2968
  REQUIRED_VALUE: inc(),
2969
+ // 29
2888
2970
  INVALID_VALUE: inc(),
2971
+ // 30
2889
2972
  // vue-devtools errors
2890
2973
  CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: inc(),
2974
+ // 31
2891
2975
  NOT_INSTALLED_WITH_PROVIDE: inc(),
2976
+ // 32
2892
2977
  // unexpected error
2893
2978
  UNEXPECTED_ERROR: inc(),
2979
+ // 33
2894
2980
  // not compatible legacy vue-i18n constructor
2895
2981
  NOT_COMPATIBLE_LEGACY_VUE_I18N: inc(),
2982
+ // 34
2896
2983
  // bridge support vue 2.x only
2897
2984
  BRIDGE_SUPPORT_VUE_2_ONLY: inc(),
2985
+ // 35
2898
2986
  // need to define `i18n` option in `allowComposition: true` and `useScope: 'local' at `useI18n``
2899
2987
  MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: inc(),
2988
+ // 36
2900
2989
  // Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
2901
2990
  NOT_AVAILABLE_COMPOSITION_IN_LEGACY: inc(),
2991
+ // 37
2902
2992
  // for enhancement
2903
2993
  __EXTEND_POINT__: inc()
2904
- // 40
2994
+ // 38
2905
2995
  };
2906
2996
  function createI18nError(e, ...t) {
2907
2997
  return createCompileError(e, null, process.env.NODE_ENV !== "production" ? { messages: errorMessages, args: t } : void 0);
@@ -3000,315 +3090,317 @@ const getMetaInfo = /* @__NO_SIDE_EFFECTS__ */ () => {
3000
3090
  return e && (t = getComponentOptions(e)[DEVTOOLS_META]) ? { [DEVTOOLS_META]: t } : null;
3001
3091
  };
3002
3092
  function createComposer(e = {}, t) {
3003
- const { __root: o, __injectWithOption: n } = e, s = o === void 0, i = e.flatJson;
3004
- let a = isBoolean$1(e.inheritLocale) ? e.inheritLocale : !0;
3005
- const r = ref(
3093
+ const { __root: o, __injectWithOption: n } = e, s = o === void 0, i = e.flatJson, a = inBrowser ? ref : shallowRef, r = !!e.translateExistCompatible;
3094
+ process.env.NODE_ENV !== "production" && r && warnOnce(getWarnMessage(I18nWarnCodes.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));
3095
+ let l = isBoolean$1(e.inheritLocale) ? e.inheritLocale : !0;
3096
+ const c = a(
3006
3097
  // prettier-ignore
3007
- o && a ? o.locale.value : isString$2(e.locale) ? e.locale : DEFAULT_LOCALE
3008
- ), l = ref(
3098
+ o && l ? o.locale.value : isString$2(e.locale) ? e.locale : DEFAULT_LOCALE
3099
+ ), u = a(
3009
3100
  // prettier-ignore
3010
- o && a ? o.fallbackLocale.value : isString$2(e.fallbackLocale) || isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r.value
3011
- ), c = ref(getLocaleMessages(r.value, e)), u = ref(isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [r.value]: {} }), d = ref(isPlainObject$1(e.numberFormats) ? e.numberFormats : { [r.value]: {} });
3012
- let m = o ? o.missingWarn : isBoolean$1(e.missingWarn) || isRegExp$1(e.missingWarn) ? e.missingWarn : !0, p = o ? o.fallbackWarn : isBoolean$1(e.fallbackWarn) || isRegExp$1(e.fallbackWarn) ? e.fallbackWarn : !0, f = o ? o.fallbackRoot : isBoolean$1(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, C = isFunction$1(e.missing) ? e.missing : null, y = isFunction$1(e.missing) ? defineCoreMissingHandler(e.missing) : null, S = isFunction$1(e.postTranslation) ? e.postTranslation : null, v = o ? o.warnHtmlMessage : isBoolean$1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
3013
- const O = o ? o.modifiers : isPlainObject$1(e.modifiers) ? e.modifiers : {};
3014
- let N = e.pluralRules || o && o.pluralRules, k;
3015
- k = (() => {
3101
+ o && l ? o.fallbackLocale.value : isString$2(e.fallbackLocale) || isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
3102
+ ), d = a(getLocaleMessages(c.value, e)), m = a(isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), p = a(isPlainObject$1(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
3103
+ let f = o ? o.missingWarn : isBoolean$1(e.missingWarn) || isRegExp$1(e.missingWarn) ? e.missingWarn : !0, _ = o ? o.fallbackWarn : isBoolean$1(e.fallbackWarn) || isRegExp$1(e.fallbackWarn) ? e.fallbackWarn : !0, C = o ? o.fallbackRoot : isBoolean$1(e.fallbackRoot) ? e.fallbackRoot : !0, N = !!e.fallbackFormat, P = isFunction$1(e.missing) ? e.missing : null, y = isFunction$1(e.missing) ? defineCoreMissingHandler(e.missing) : null, S = isFunction$1(e.postTranslation) ? e.postTranslation : null, T = o ? o.warnHtmlMessage : isBoolean$1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
3104
+ const v = o ? o.modifiers : isPlainObject$1(e.modifiers) ? e.modifiers : {};
3105
+ let O = e.pluralRules || o && o.pluralRules, I;
3106
+ I = (() => {
3016
3107
  s && setFallbackContext(null);
3017
- const P = {
3108
+ const w = {
3018
3109
  version: VERSION$1,
3019
- locale: r.value,
3020
- fallbackLocale: l.value,
3021
- messages: c.value,
3022
- modifiers: O,
3023
- pluralRules: N,
3110
+ locale: c.value,
3111
+ fallbackLocale: u.value,
3112
+ messages: d.value,
3113
+ modifiers: v,
3114
+ pluralRules: O,
3024
3115
  missing: y === null ? void 0 : y,
3025
- missingWarn: m,
3026
- fallbackWarn: p,
3027
- fallbackFormat: _,
3116
+ missingWarn: f,
3117
+ fallbackWarn: _,
3118
+ fallbackFormat: N,
3028
3119
  unresolving: !0,
3029
3120
  postTranslation: S === null ? void 0 : S,
3030
- warnHtmlMessage: v,
3121
+ warnHtmlMessage: T,
3031
3122
  escapeParameter: E,
3032
3123
  messageResolver: e.messageResolver,
3033
3124
  messageCompiler: e.messageCompiler,
3034
3125
  __meta: { framework: "vue" }
3035
3126
  };
3036
- P.datetimeFormats = u.value, P.numberFormats = d.value, P.__datetimeFormatters = isPlainObject$1(k) ? k.__datetimeFormatters : void 0, P.__numberFormatters = isPlainObject$1(k) ? k.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (P.__v_emitter = isPlainObject$1(k) ? k.__v_emitter : void 0);
3037
- const T = createCoreContext(P);
3038
- return s && setFallbackContext(T), T;
3039
- })(), updateFallbackLocale(k, r.value, l.value);
3040
- function F() {
3127
+ w.datetimeFormats = m.value, w.numberFormats = p.value, w.__datetimeFormatters = isPlainObject$1(I) ? I.__datetimeFormatters : void 0, w.__numberFormatters = isPlainObject$1(I) ? I.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (w.__v_emitter = isPlainObject$1(I) ? I.__v_emitter : void 0);
3128
+ const D = createCoreContext(w);
3129
+ return s && setFallbackContext(D), D;
3130
+ })(), updateFallbackLocale(I, c.value, u.value);
3131
+ function $() {
3041
3132
  return [
3042
- r.value,
3043
- l.value,
3044
3133
  c.value,
3045
3134
  u.value,
3046
- d.value
3135
+ d.value,
3136
+ m.value,
3137
+ p.value
3047
3138
  ];
3048
3139
  }
3049
- const A = computed({
3050
- get: () => r.value,
3051
- set: (P) => {
3052
- r.value = P, k.locale = r.value;
3140
+ const L = computed({
3141
+ get: () => c.value,
3142
+ set: (w) => {
3143
+ c.value = w, I.locale = c.value;
3053
3144
  }
3054
- }), $ = computed({
3055
- get: () => l.value,
3056
- set: (P) => {
3057
- l.value = P, k.fallbackLocale = l.value, updateFallbackLocale(k, r.value, P);
3145
+ }), U = computed({
3146
+ get: () => u.value,
3147
+ set: (w) => {
3148
+ u.value = w, I.fallbackLocale = u.value, updateFallbackLocale(I, c.value, w);
3058
3149
  }
3059
- }), B = computed(() => c.value), U = /* @__PURE__ */ computed(() => u.value), X = /* @__PURE__ */ computed(() => d.value);
3060
- function se() {
3150
+ }), z = computed(() => d.value), se = /* @__PURE__ */ computed(() => m.value), W = /* @__PURE__ */ computed(() => p.value);
3151
+ function X() {
3061
3152
  return isFunction$1(S) ? S : null;
3062
3153
  }
3063
- function W(P) {
3064
- S = P, k.postTranslation = P;
3154
+ function ie(w) {
3155
+ S = w, I.postTranslation = w;
3065
3156
  }
3066
3157
  function Z() {
3067
- return C;
3158
+ return P;
3068
3159
  }
3069
- function ie(P) {
3070
- P !== null && (y = defineCoreMissingHandler(P)), C = P, k.missing = y;
3160
+ function ae(w) {
3161
+ w !== null && (y = defineCoreMissingHandler(w)), P = w, I.missing = y;
3071
3162
  }
3072
- function ee(P, T) {
3073
- return P !== "translate" || !T.resolvedMessage;
3163
+ function re(w, D) {
3164
+ return w !== "translate" || !D.resolvedMessage;
3074
3165
  }
3075
- const j = (P, T, M, x, K, fe) => {
3076
- F();
3166
+ const j = (w, D, M, x, J, fe) => {
3167
+ $();
3077
3168
  let ne;
3078
3169
  try {
3079
- process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (k.fallbackContext = o ? getFallbackContext() : void 0), ne = P(k);
3170
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (I.fallbackContext = o ? getFallbackContext() : void 0), ne = w(I);
3080
3171
  } finally {
3081
- process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (k.fallbackContext = void 0);
3172
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (I.fallbackContext = void 0);
3082
3173
  }
3083
3174
  if (M !== "translate exists" && // for not `te` (e.g `t`)
3084
3175
  isNumber$1(ne) && ne === NOT_REOSLVED || M === "translate exists" && !ne) {
3085
- const [Y, _e] = T();
3086
- if (process.env.NODE_ENV !== "production" && o && isString$2(Y) && ee(M, _e) && (f && (isTranslateFallbackWarn(p, Y) || isTranslateMissingWarn(m, Y)) && warn(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT, {
3176
+ const [Y, ye] = D();
3177
+ if (process.env.NODE_ENV !== "production" && o && isString$2(Y) && re(M, ye) && (C && (isTranslateFallbackWarn(_, Y) || isTranslateMissingWarn(f, Y)) && warn(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT, {
3087
3178
  key: Y,
3088
3179
  type: M
3089
3180
  })), process.env.NODE_ENV !== "production")) {
3090
- const { __v_emitter: me } = k;
3091
- me && f && me.emit("fallback", {
3181
+ const { __v_emitter: me } = I;
3182
+ me && C && me.emit("fallback", {
3092
3183
  type: M,
3093
3184
  key: Y,
3094
3185
  to: "global",
3095
3186
  groupId: `${M}:${Y}`
3096
3187
  });
3097
3188
  }
3098
- return o && f ? x(o) : K(Y);
3189
+ return o && C ? x(o) : J(Y);
3099
3190
  } else {
3100
3191
  if (fe(ne))
3101
3192
  return ne;
3102
3193
  throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE);
3103
3194
  }
3104
3195
  };
3105
- function te(...P) {
3106
- return j((T) => Reflect.apply(translate, null, [T, ...P]), () => parseTranslateArgs(...P), "translate", (T) => Reflect.apply(T.t, T, [...P]), (T) => T, (T) => isString$2(T));
3196
+ function ee(...w) {
3197
+ return j((D) => Reflect.apply(translate, null, [D, ...w]), () => parseTranslateArgs(...w), "translate", (D) => Reflect.apply(D.t, D, [...w]), (D) => D, (D) => isString$2(D));
3107
3198
  }
3108
- function ae(...P) {
3109
- const [T, M, x] = P;
3199
+ function te(...w) {
3200
+ const [D, M, x] = w;
3110
3201
  if (x && !isObject$2(x))
3111
3202
  throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
3112
- return te(T, M, assign$2({ resolvedMessage: !0 }, x || {}));
3203
+ return ee(D, M, assign$2({ resolvedMessage: !0 }, x || {}));
3113
3204
  }
3114
- function re(...P) {
3115
- return j((T) => Reflect.apply(datetime, null, [T, ...P]), () => parseDateTimeArgs(...P), "datetime format", (T) => Reflect.apply(T.d, T, [...P]), () => MISSING_RESOLVE_VALUE, (T) => isString$2(T));
3205
+ function le(...w) {
3206
+ return j((D) => Reflect.apply(datetime, null, [D, ...w]), () => parseDateTimeArgs(...w), "datetime format", (D) => Reflect.apply(D.d, D, [...w]), () => MISSING_RESOLVE_VALUE, (D) => isString$2(D));
3116
3207
  }
3117
- function oe(...P) {
3118
- return j((T) => Reflect.apply(number, null, [T, ...P]), () => parseNumberArgs(...P), "number format", (T) => Reflect.apply(T.n, T, [...P]), () => MISSING_RESOLVE_VALUE, (T) => isString$2(T));
3208
+ function ce(...w) {
3209
+ return j((D) => Reflect.apply(number, null, [D, ...w]), () => parseNumberArgs(...w), "number format", (D) => Reflect.apply(D.n, D, [...w]), () => MISSING_RESOLVE_VALUE, (D) => isString$2(D));
3119
3210
  }
3120
- function le(P) {
3121
- return P.map((T) => isString$2(T) || isNumber$1(T) || isBoolean$1(T) ? createTextNode(String(T)) : T);
3211
+ function ue(w) {
3212
+ return w.map((D) => isString$2(D) || isNumber$1(D) || isBoolean$1(D) ? createTextNode(String(D)) : D);
3122
3213
  }
3123
- const ce = {
3124
- normalize: le,
3125
- interpolate: (P) => P,
3214
+ const Q = {
3215
+ normalize: ue,
3216
+ interpolate: (w) => w,
3126
3217
  type: "vnode"
3127
3218
  };
3128
- function J(...P) {
3219
+ function q(...w) {
3129
3220
  return j(
3130
- (T) => {
3221
+ (D) => {
3131
3222
  let M;
3132
- const x = T;
3223
+ const x = D;
3133
3224
  try {
3134
- x.processor = ce, M = Reflect.apply(translate, null, [x, ...P]);
3225
+ x.processor = Q, M = Reflect.apply(translate, null, [x, ...w]);
3135
3226
  } finally {
3136
3227
  x.processor = null;
3137
3228
  }
3138
3229
  return M;
3139
3230
  },
3140
- () => parseTranslateArgs(...P),
3231
+ () => parseTranslateArgs(...w),
3141
3232
  "translate",
3142
3233
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3143
- (T) => T[TranslateVNodeSymbol](...P),
3144
- (T) => [createTextNode(T)],
3145
- (T) => isArray$1(T)
3234
+ (D) => D[TranslateVNodeSymbol](...w),
3235
+ (D) => [createTextNode(D)],
3236
+ (D) => isArray$1(D)
3146
3237
  );
3147
3238
  }
3148
- function Q(...P) {
3239
+ function K(...w) {
3149
3240
  return j(
3150
- (T) => Reflect.apply(number, null, [T, ...P]),
3151
- () => parseNumberArgs(...P),
3241
+ (D) => Reflect.apply(number, null, [D, ...w]),
3242
+ () => parseNumberArgs(...w),
3152
3243
  "number format",
3153
3244
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3154
- (T) => T[NumberPartsSymbol](...P),
3245
+ (D) => D[NumberPartsSymbol](...w),
3155
3246
  NOOP_RETURN_ARRAY,
3156
- (T) => isString$2(T) || isArray$1(T)
3247
+ (D) => isString$2(D) || isArray$1(D)
3157
3248
  );
3158
3249
  }
3159
- function q(...P) {
3250
+ function de(...w) {
3160
3251
  return j(
3161
- (T) => Reflect.apply(datetime, null, [T, ...P]),
3162
- () => parseDateTimeArgs(...P),
3252
+ (D) => Reflect.apply(datetime, null, [D, ...w]),
3253
+ () => parseDateTimeArgs(...w),
3163
3254
  "datetime format",
3164
3255
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3165
- (T) => T[DatetimePartsSymbol](...P),
3256
+ (D) => D[DatetimePartsSymbol](...w),
3166
3257
  NOOP_RETURN_ARRAY,
3167
- (T) => isString$2(T) || isArray$1(T)
3258
+ (D) => isString$2(D) || isArray$1(D)
3168
3259
  );
3169
3260
  }
3170
- function z(P) {
3171
- N = P, k.pluralRules = N;
3261
+ function b(w) {
3262
+ O = w, I.pluralRules = O;
3172
3263
  }
3173
- function ue(P, T) {
3264
+ function g(w, D) {
3174
3265
  return j(() => {
3175
- if (!P)
3266
+ if (!w)
3176
3267
  return !1;
3177
- const M = isString$2(T) ? T : r.value, x = w(M), K = k.messageResolver(x, P);
3178
- return isMessageAST(K) || isMessageFunction(K) || isString$2(K);
3179
- }, () => [P], "translate exists", (M) => Reflect.apply(M.te, M, [P, T]), NOOP_RETURN_FALSE, (M) => isBoolean$1(M));
3268
+ const M = isString$2(D) ? D : c.value, x = F(M), J = I.messageResolver(x, w);
3269
+ return r ? J != null : isMessageAST(J) || isMessageFunction(J) || isString$2(J);
3270
+ }, () => [w], "translate exists", (M) => Reflect.apply(M.te, M, [w, D]), NOOP_RETURN_FALSE, (M) => isBoolean$1(M));
3180
3271
  }
3181
- function b(P) {
3182
- let T = null;
3183
- const M = fallbackWithLocaleChain(k, l.value, r.value);
3272
+ function k(w) {
3273
+ let D = null;
3274
+ const M = fallbackWithLocaleChain(I, u.value, c.value);
3184
3275
  for (let x = 0; x < M.length; x++) {
3185
- const K = c.value[M[x]] || {}, fe = k.messageResolver(K, P);
3276
+ const J = d.value[M[x]] || {}, fe = I.messageResolver(J, w);
3186
3277
  if (fe != null) {
3187
- T = fe;
3278
+ D = fe;
3188
3279
  break;
3189
3280
  }
3190
3281
  }
3191
- return T;
3282
+ return D;
3192
3283
  }
3193
- function g(P) {
3194
- const T = b(P);
3195
- return T ?? (o ? o.tm(P) || {} : {});
3284
+ function R(w) {
3285
+ const D = k(w);
3286
+ return D ?? (o ? o.tm(w) || {} : {});
3196
3287
  }
3197
- function w(P) {
3198
- return c.value[P] || {};
3288
+ function F(w) {
3289
+ return d.value[w] || {};
3199
3290
  }
3200
- function I(P, T) {
3291
+ function A(w, D) {
3201
3292
  if (i) {
3202
- const M = { [P]: T };
3293
+ const M = { [w]: D };
3203
3294
  for (const x in M)
3204
3295
  hasOwn(M, x) && handleFlatJson(M[x]);
3205
- T = M[P];
3296
+ D = M[w];
3206
3297
  }
3207
- c.value[P] = T, k.messages = c.value;
3298
+ d.value[w] = D, I.messages = d.value;
3208
3299
  }
3209
- function R(P, T) {
3210
- c.value[P] = c.value[P] || {};
3211
- const M = { [P]: T };
3212
- for (const x in M)
3213
- hasOwn(M, x) && handleFlatJson(M[x]);
3214
- T = M[P], deepCopy(T, c.value[P]), k.messages = c.value;
3300
+ function G(w, D) {
3301
+ d.value[w] = d.value[w] || {};
3302
+ const M = { [w]: D };
3303
+ if (i)
3304
+ for (const x in M)
3305
+ hasOwn(M, x) && handleFlatJson(M[x]);
3306
+ D = M[w], deepCopy(D, d.value[w]), I.messages = d.value;
3215
3307
  }
3216
- function L(P) {
3217
- return u.value[P] || {};
3308
+ function H(w) {
3309
+ return m.value[w] || {};
3218
3310
  }
3219
- function G(P, T) {
3220
- u.value[P] = T, k.datetimeFormats = u.value, clearDateTimeFormat(k, P, T);
3311
+ function pe(w, D) {
3312
+ m.value[w] = D, I.datetimeFormats = m.value, clearDateTimeFormat(I, w, D);
3221
3313
  }
3222
- function H(P, T) {
3223
- u.value[P] = assign$2(u.value[P] || {}, T), k.datetimeFormats = u.value, clearDateTimeFormat(k, P, T);
3314
+ function he(w, D) {
3315
+ m.value[w] = assign$2(m.value[w] || {}, D), I.datetimeFormats = m.value, clearDateTimeFormat(I, w, D);
3224
3316
  }
3225
- function pe(P) {
3226
- return d.value[P] || {};
3317
+ function ge(w) {
3318
+ return p.value[w] || {};
3227
3319
  }
3228
- function he(P, T) {
3229
- d.value[P] = T, k.numberFormats = d.value, clearNumberFormat(k, P, T);
3320
+ function _e(w, D) {
3321
+ p.value[w] = D, I.numberFormats = p.value, clearNumberFormat(I, w, D);
3230
3322
  }
3231
- function ge(P, T) {
3232
- d.value[P] = assign$2(d.value[P] || {}, T), k.numberFormats = d.value, clearNumberFormat(k, P, T);
3323
+ function be(w, D) {
3324
+ p.value[w] = assign$2(p.value[w] || {}, D), I.numberFormats = p.value, clearNumberFormat(I, w, D);
3233
3325
  }
3234
- composerID++, o && inBrowser && (watch(o.locale, (P) => {
3235
- a && (r.value = P, k.locale = P, updateFallbackLocale(k, r.value, l.value));
3236
- }), watch(o.fallbackLocale, (P) => {
3237
- a && (l.value = P, k.fallbackLocale = P, updateFallbackLocale(k, r.value, l.value));
3326
+ composerID++, o && inBrowser && (watch(o.locale, (w) => {
3327
+ l && (c.value = w, I.locale = w, updateFallbackLocale(I, c.value, u.value));
3328
+ }), watch(o.fallbackLocale, (w) => {
3329
+ l && (u.value = w, I.fallbackLocale = w, updateFallbackLocale(I, c.value, u.value));
3238
3330
  }));
3239
3331
  const V = {
3240
3332
  id: composerID,
3241
- locale: A,
3242
- fallbackLocale: $,
3333
+ locale: L,
3334
+ fallbackLocale: U,
3243
3335
  get inheritLocale() {
3244
- return a;
3336
+ return l;
3245
3337
  },
3246
- set inheritLocale(P) {
3247
- a = P, P && o && (r.value = o.locale.value, l.value = o.fallbackLocale.value, updateFallbackLocale(k, r.value, l.value));
3338
+ set inheritLocale(w) {
3339
+ l = w, w && o && (c.value = o.locale.value, u.value = o.fallbackLocale.value, updateFallbackLocale(I, c.value, u.value));
3248
3340
  },
3249
3341
  get availableLocales() {
3250
- return Object.keys(c.value).sort();
3342
+ return Object.keys(d.value).sort();
3251
3343
  },
3252
- messages: B,
3344
+ messages: z,
3253
3345
  get modifiers() {
3254
- return O;
3346
+ return v;
3255
3347
  },
3256
3348
  get pluralRules() {
3257
- return N || {};
3349
+ return O || {};
3258
3350
  },
3259
3351
  get isGlobal() {
3260
3352
  return s;
3261
3353
  },
3262
3354
  get missingWarn() {
3263
- return m;
3355
+ return f;
3264
3356
  },
3265
- set missingWarn(P) {
3266
- m = P, k.missingWarn = m;
3357
+ set missingWarn(w) {
3358
+ f = w, I.missingWarn = f;
3267
3359
  },
3268
3360
  get fallbackWarn() {
3269
- return p;
3361
+ return _;
3270
3362
  },
3271
- set fallbackWarn(P) {
3272
- p = P, k.fallbackWarn = p;
3363
+ set fallbackWarn(w) {
3364
+ _ = w, I.fallbackWarn = _;
3273
3365
  },
3274
3366
  get fallbackRoot() {
3275
- return f;
3367
+ return C;
3276
3368
  },
3277
- set fallbackRoot(P) {
3278
- f = P;
3369
+ set fallbackRoot(w) {
3370
+ C = w;
3279
3371
  },
3280
3372
  get fallbackFormat() {
3281
- return _;
3373
+ return N;
3282
3374
  },
3283
- set fallbackFormat(P) {
3284
- _ = P, k.fallbackFormat = _;
3375
+ set fallbackFormat(w) {
3376
+ N = w, I.fallbackFormat = N;
3285
3377
  },
3286
3378
  get warnHtmlMessage() {
3287
- return v;
3379
+ return T;
3288
3380
  },
3289
- set warnHtmlMessage(P) {
3290
- v = P, k.warnHtmlMessage = P;
3381
+ set warnHtmlMessage(w) {
3382
+ T = w, I.warnHtmlMessage = w;
3291
3383
  },
3292
3384
  get escapeParameter() {
3293
3385
  return E;
3294
3386
  },
3295
- set escapeParameter(P) {
3296
- E = P, k.escapeParameter = P;
3387
+ set escapeParameter(w) {
3388
+ E = w, I.escapeParameter = w;
3297
3389
  },
3298
- t: te,
3299
- getLocaleMessage: w,
3300
- setLocaleMessage: I,
3301
- mergeLocaleMessage: R,
3302
- getPostTranslationHandler: se,
3303
- setPostTranslationHandler: W,
3390
+ t: ee,
3391
+ getLocaleMessage: F,
3392
+ setLocaleMessage: A,
3393
+ mergeLocaleMessage: G,
3394
+ getPostTranslationHandler: X,
3395
+ setPostTranslationHandler: ie,
3304
3396
  getMissingHandler: Z,
3305
- setMissingHandler: ie,
3306
- [SetPluralRulesSymbol]: z
3397
+ setMissingHandler: ae,
3398
+ [SetPluralRulesSymbol]: b
3307
3399
  };
3308
- return V.datetimeFormats = U, V.numberFormats = X, V.rt = ae, V.te = ue, V.tm = g, V.d = re, V.n = oe, V.getDateTimeFormat = L, V.setDateTimeFormat = G, V.mergeDateTimeFormat = H, V.getNumberFormat = pe, V.setNumberFormat = he, V.mergeNumberFormat = ge, V[InejctWithOptionSymbol] = n, V[TranslateVNodeSymbol] = J, V[DatetimePartsSymbol] = q, V[NumberPartsSymbol] = Q, process.env.NODE_ENV !== "production" && (V[EnableEmitter] = (P) => {
3309
- k.__v_emitter = P;
3400
+ return V.datetimeFormats = se, V.numberFormats = W, V.rt = te, V.te = g, V.tm = R, V.d = le, V.n = ce, V.getDateTimeFormat = H, V.setDateTimeFormat = pe, V.mergeDateTimeFormat = he, V.getNumberFormat = ge, V.setNumberFormat = _e, V.mergeNumberFormat = be, V[InejctWithOptionSymbol] = n, V[TranslateVNodeSymbol] = q, V[DatetimePartsSymbol] = de, V[NumberPartsSymbol] = K, process.env.NODE_ENV !== "production" && (V[EnableEmitter] = (w) => {
3401
+ I.__v_emitter = w;
3310
3402
  }, V[DisableEmitter] = () => {
3311
- k.__v_emitter = void 0;
3403
+ I.__v_emitter = void 0;
3312
3404
  }), V;
3313
3405
  }
3314
3406
  function convertComposerOptions(e) {
@@ -3316,20 +3408,20 @@ function convertComposerOptions(e) {
3316
3408
  process.env.NODE_ENV !== "production" && e.formatter && warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
3317
3409
  let f = e.messages;
3318
3410
  if (isPlainObject$1(e.sharedMessages)) {
3319
- const O = e.sharedMessages;
3320
- f = Object.keys(O).reduce((k, D) => {
3321
- const F = k[D] || (k[D] = {});
3322
- return assign$2(F, O[D]), k;
3411
+ const E = e.sharedMessages;
3412
+ f = Object.keys(E).reduce((O, I) => {
3413
+ const B = O[I] || (O[I] = {});
3414
+ return assign$2(B, E[I]), O;
3323
3415
  }, f || {});
3324
3416
  }
3325
- const { __i18n: _, __root: C, __injectWithOption: y } = e, S = e.datetimeFormats, v = e.numberFormats, E = e.flatJson;
3417
+ const { __i18n: _, __root: C, __injectWithOption: N } = e, P = e.datetimeFormats, y = e.numberFormats, S = e.flatJson, T = e.translateExistCompatible;
3326
3418
  return {
3327
3419
  locale: t,
3328
3420
  fallbackLocale: o,
3329
3421
  messages: f,
3330
- flatJson: E,
3331
- datetimeFormats: S,
3332
- numberFormats: v,
3422
+ flatJson: S,
3423
+ datetimeFormats: P,
3424
+ numberFormats: y,
3333
3425
  missing: n,
3334
3426
  missingWarn: s,
3335
3427
  fallbackWarn: i,
@@ -3342,9 +3434,10 @@ function convertComposerOptions(e) {
3342
3434
  escapeParameter: m,
3343
3435
  messageResolver: e.messageResolver,
3344
3436
  inheritLocale: p,
3437
+ translateExistCompatible: T,
3345
3438
  __i18n: _,
3346
3439
  __root: C,
3347
- __injectWithOption: y
3440
+ __injectWithOption: N
3348
3441
  };
3349
3442
  }
3350
3443
  function createVueI18n(e = {}, t) {
@@ -3657,7 +3750,7 @@ const NumberFormatImpl = /* @__PURE__ */ defineComponent({
3657
3750
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3658
3751
  setup(e, t) {
3659
3752
  const o = e.i18n || useI18n({
3660
- useScope: "parent",
3753
+ useScope: e.scope,
3661
3754
  __useComponent: !0
3662
3755
  });
3663
3756
  return renderFormatter(e, t, NUMBER_FORMAT_OPTIONS_KEYS, (...n) => (
@@ -3681,7 +3774,7 @@ const NumberFormatImpl = /* @__PURE__ */ defineComponent({
3681
3774
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3682
3775
  setup(e, t) {
3683
3776
  const o = e.i18n || useI18n({
3684
- useScope: "parent",
3777
+ useScope: e.scope,
3685
3778
  __useComponent: !0
3686
3779
  });
3687
3780
  return renderFormatter(e, t, DATETIME_FORMAT_OPTIONS_KEYS, (...n) => (
@@ -4115,8 +4208,8 @@ function createI18n(e = {}, t) {
4115
4208
  // install plugin
4116
4209
  async install(p, ...f) {
4117
4210
  if (process.env.NODE_ENV !== "production" && (p.__VUE_I18N__ = m), p.__VUE_I18N_SYMBOL__ = l, p.provide(p.__VUE_I18N_SYMBOL__, m), isPlainObject$1(f[0])) {
4118
- const y = f[0];
4119
- m.__composerExtend = y.__composerExtend, m.__vueI18nExtend = y.__vueI18nExtend;
4211
+ const N = f[0];
4212
+ m.__composerExtend = N.__composerExtend, m.__vueI18nExtend = N.__vueI18nExtend;
4120
4213
  }
4121
4214
  let _ = null;
4122
4215
  !o && n && (_ = injectGlobalFields(p, m.global)), __VUE_I18N_FULL_INSTALL__ && apply(p, m, ...f), __VUE_I18N_LEGACY_API__ && o && p.mixin(defineMixin(r, r.__composer, m));
@@ -4126,15 +4219,15 @@ function createI18n(e = {}, t) {
4126
4219
  }, process.env.NODE_ENV !== "production") {
4127
4220
  if (!await enableDevTools(p, m))
4128
4221
  throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
4129
- const S = createEmitter();
4222
+ const P = createEmitter();
4130
4223
  if (o) {
4131
- const v = r;
4132
- v.__enableEmitter && v.__enableEmitter(S);
4224
+ const y = r;
4225
+ y.__enableEmitter && y.__enableEmitter(P);
4133
4226
  } else {
4134
- const v = r;
4135
- v[EnableEmitter] && v[EnableEmitter](S);
4227
+ const y = r;
4228
+ y[EnableEmitter] && y[EnableEmitter](P);
4136
4229
  }
4137
- S.on("*", addTimelineEvent);
4230
+ P.on("*", addTimelineEvent);
4138
4231
  }
4139
4232
  },
4140
4233
  // global accessor
@@ -4251,8 +4344,8 @@ function useI18nForLegacy(e, t, o, n = {}) {
4251
4344
  ), l = ref(
4252
4345
  // prettier-ignore
4253
4346
  !s || a ? o.fallbackLocale.value : isString$2(n.fallbackLocale) || isArray$1(n.fallbackLocale) || isPlainObject$1(n.fallbackLocale) || n.fallbackLocale === !1 ? n.fallbackLocale : r.value
4254
- ), c = ref(getLocaleMessages(r.value, n)), u = ref(isPlainObject$1(n.datetimeFormats) ? n.datetimeFormats : { [r.value]: {} }), d = ref(isPlainObject$1(n.numberFormats) ? n.numberFormats : { [r.value]: {} }), m = s ? o.missingWarn : isBoolean$1(n.missingWarn) || isRegExp$1(n.missingWarn) ? n.missingWarn : !0, p = s ? o.fallbackWarn : isBoolean$1(n.fallbackWarn) || isRegExp$1(n.fallbackWarn) ? n.fallbackWarn : !0, f = s ? o.fallbackRoot : isBoolean$1(n.fallbackRoot) ? n.fallbackRoot : !0, _ = !!n.fallbackFormat, C = isFunction$1(n.missing) ? n.missing : null, y = isFunction$1(n.postTranslation) ? n.postTranslation : null, S = s ? o.warnHtmlMessage : isBoolean$1(n.warnHtmlMessage) ? n.warnHtmlMessage : !0, v = !!n.escapeParameter, E = s ? o.modifiers : isPlainObject$1(n.modifiers) ? n.modifiers : {}, O = n.pluralRules || s && o.pluralRules;
4255
- function N() {
4347
+ ), c = ref(getLocaleMessages(r.value, n)), u = ref(isPlainObject$1(n.datetimeFormats) ? n.datetimeFormats : { [r.value]: {} }), d = ref(isPlainObject$1(n.numberFormats) ? n.numberFormats : { [r.value]: {} }), m = s ? o.missingWarn : isBoolean$1(n.missingWarn) || isRegExp$1(n.missingWarn) ? n.missingWarn : !0, p = s ? o.fallbackWarn : isBoolean$1(n.fallbackWarn) || isRegExp$1(n.fallbackWarn) ? n.fallbackWarn : !0, f = s ? o.fallbackRoot : isBoolean$1(n.fallbackRoot) ? n.fallbackRoot : !0, _ = !!n.fallbackFormat, C = isFunction$1(n.missing) ? n.missing : null, N = isFunction$1(n.postTranslation) ? n.postTranslation : null, P = s ? o.warnHtmlMessage : isBoolean$1(n.warnHtmlMessage) ? n.warnHtmlMessage : !0, y = !!n.escapeParameter, S = s ? o.modifiers : isPlainObject$1(n.modifiers) ? n.modifiers : {}, T = n.pluralRules || s && o.pluralRules;
4348
+ function E() {
4256
4349
  return [
4257
4350
  r.value,
4258
4351
  l.value,
@@ -4261,85 +4354,85 @@ function useI18nForLegacy(e, t, o, n = {}) {
4261
4354
  d.value
4262
4355
  ];
4263
4356
  }
4264
- const k = computed({
4357
+ const v = computed({
4265
4358
  get: () => i.value ? i.value.locale.value : r.value,
4266
4359
  set: (g) => {
4267
4360
  i.value && (i.value.locale.value = g), r.value = g;
4268
4361
  }
4269
- }), D = computed({
4362
+ }), O = computed({
4270
4363
  get: () => i.value ? i.value.fallbackLocale.value : l.value,
4271
4364
  set: (g) => {
4272
4365
  i.value && (i.value.fallbackLocale.value = g), l.value = g;
4273
4366
  }
4274
- }), F = computed(() => i.value ? i.value.messages.value : c.value), A = computed(() => u.value), $ = computed(() => d.value);
4275
- function B() {
4276
- return i.value ? i.value.getPostTranslationHandler() : y;
4367
+ }), I = computed(() => i.value ? i.value.messages.value : c.value), B = computed(() => u.value), $ = computed(() => d.value);
4368
+ function L() {
4369
+ return i.value ? i.value.getPostTranslationHandler() : N;
4277
4370
  }
4278
4371
  function U(g) {
4279
4372
  i.value && i.value.setPostTranslationHandler(g);
4280
4373
  }
4281
- function X() {
4374
+ function z() {
4282
4375
  return i.value ? i.value.getMissingHandler() : C;
4283
4376
  }
4284
4377
  function se(g) {
4285
4378
  i.value && i.value.setMissingHandler(g);
4286
4379
  }
4287
4380
  function W(g) {
4288
- return N(), g();
4381
+ return E(), g();
4289
4382
  }
4290
- function Z(...g) {
4383
+ function X(...g) {
4291
4384
  return i.value ? W(() => Reflect.apply(i.value.t, null, [...g])) : W(() => "");
4292
4385
  }
4293
4386
  function ie(...g) {
4294
4387
  return i.value ? Reflect.apply(i.value.rt, null, [...g]) : "";
4295
4388
  }
4296
- function ee(...g) {
4389
+ function Z(...g) {
4297
4390
  return i.value ? W(() => Reflect.apply(i.value.d, null, [...g])) : W(() => "");
4298
4391
  }
4299
- function j(...g) {
4392
+ function ae(...g) {
4300
4393
  return i.value ? W(() => Reflect.apply(i.value.n, null, [...g])) : W(() => "");
4301
4394
  }
4302
- function te(g) {
4395
+ function re(g) {
4303
4396
  return i.value ? i.value.tm(g) : {};
4304
4397
  }
4305
- function ae(g, w) {
4306
- return i.value ? i.value.te(g, w) : !1;
4398
+ function j(g, k) {
4399
+ return i.value ? i.value.te(g, k) : !1;
4307
4400
  }
4308
- function re(g) {
4401
+ function ee(g) {
4309
4402
  return i.value ? i.value.getLocaleMessage(g) : {};
4310
4403
  }
4311
- function oe(g, w) {
4312
- i.value && (i.value.setLocaleMessage(g, w), c.value[g] = w);
4404
+ function te(g, k) {
4405
+ i.value && (i.value.setLocaleMessage(g, k), c.value[g] = k);
4313
4406
  }
4314
- function le(g, w) {
4315
- i.value && i.value.mergeLocaleMessage(g, w);
4407
+ function le(g, k) {
4408
+ i.value && i.value.mergeLocaleMessage(g, k);
4316
4409
  }
4317
- function de(g) {
4410
+ function ce(g) {
4318
4411
  return i.value ? i.value.getDateTimeFormat(g) : {};
4319
4412
  }
4320
- function ce(g, w) {
4321
- i.value && (i.value.setDateTimeFormat(g, w), u.value[g] = w);
4413
+ function ue(g, k) {
4414
+ i.value && (i.value.setDateTimeFormat(g, k), u.value[g] = k);
4322
4415
  }
4323
- function J(g, w) {
4324
- i.value && i.value.mergeDateTimeFormat(g, w);
4416
+ function oe(g, k) {
4417
+ i.value && i.value.mergeDateTimeFormat(g, k);
4325
4418
  }
4326
4419
  function Q(g) {
4327
4420
  return i.value ? i.value.getNumberFormat(g) : {};
4328
4421
  }
4329
- function q(g, w) {
4330
- i.value && (i.value.setNumberFormat(g, w), d.value[g] = w);
4422
+ function q(g, k) {
4423
+ i.value && (i.value.setNumberFormat(g, k), d.value[g] = k);
4331
4424
  }
4332
- function z(g, w) {
4333
- i.value && i.value.mergeNumberFormat(g, w);
4425
+ function K(g, k) {
4426
+ i.value && i.value.mergeNumberFormat(g, k);
4334
4427
  }
4335
- const ue = {
4428
+ const de = {
4336
4429
  get id() {
4337
4430
  return i.value ? i.value.id : -1;
4338
4431
  },
4339
- locale: k,
4340
- fallbackLocale: D,
4341
- messages: F,
4342
- datetimeFormats: A,
4432
+ locale: v,
4433
+ fallbackLocale: O,
4434
+ messages: I,
4435
+ datetimeFormats: B,
4343
4436
  numberFormats: $,
4344
4437
  get inheritLocale() {
4345
4438
  return i.value ? i.value.inheritLocale : a;
@@ -4351,10 +4444,10 @@ function useI18nForLegacy(e, t, o, n = {}) {
4351
4444
  return i.value ? i.value.availableLocales : Object.keys(c.value);
4352
4445
  },
4353
4446
  get modifiers() {
4354
- return i.value ? i.value.modifiers : E;
4447
+ return i.value ? i.value.modifiers : S;
4355
4448
  },
4356
4449
  get pluralRules() {
4357
- return i.value ? i.value.pluralRules : O;
4450
+ return i.value ? i.value.pluralRules : T;
4358
4451
  },
4359
4452
  get isGlobal() {
4360
4453
  return i.value ? i.value.isGlobal : !1;
@@ -4384,52 +4477,52 @@ function useI18nForLegacy(e, t, o, n = {}) {
4384
4477
  i.value && (i.value.fallbackFormat = g);
4385
4478
  },
4386
4479
  get warnHtmlMessage() {
4387
- return i.value ? i.value.warnHtmlMessage : S;
4480
+ return i.value ? i.value.warnHtmlMessage : P;
4388
4481
  },
4389
4482
  set warnHtmlMessage(g) {
4390
4483
  i.value && (i.value.warnHtmlMessage = g);
4391
4484
  },
4392
4485
  get escapeParameter() {
4393
- return i.value ? i.value.escapeParameter : v;
4486
+ return i.value ? i.value.escapeParameter : y;
4394
4487
  },
4395
4488
  set escapeParameter(g) {
4396
4489
  i.value && (i.value.escapeParameter = g);
4397
4490
  },
4398
- t: Z,
4399
- getPostTranslationHandler: B,
4491
+ t: X,
4492
+ getPostTranslationHandler: L,
4400
4493
  setPostTranslationHandler: U,
4401
- getMissingHandler: X,
4494
+ getMissingHandler: z,
4402
4495
  setMissingHandler: se,
4403
4496
  rt: ie,
4404
- d: ee,
4405
- n: j,
4406
- tm: te,
4407
- te: ae,
4408
- getLocaleMessage: re,
4409
- setLocaleMessage: oe,
4497
+ d: Z,
4498
+ n: ae,
4499
+ tm: re,
4500
+ te: j,
4501
+ getLocaleMessage: ee,
4502
+ setLocaleMessage: te,
4410
4503
  mergeLocaleMessage: le,
4411
- getDateTimeFormat: de,
4412
- setDateTimeFormat: ce,
4413
- mergeDateTimeFormat: J,
4504
+ getDateTimeFormat: ce,
4505
+ setDateTimeFormat: ue,
4506
+ mergeDateTimeFormat: oe,
4414
4507
  getNumberFormat: Q,
4415
4508
  setNumberFormat: q,
4416
- mergeNumberFormat: z
4509
+ mergeNumberFormat: K
4417
4510
  };
4418
4511
  function b(g) {
4419
- g.locale.value = r.value, g.fallbackLocale.value = l.value, Object.keys(c.value).forEach((w) => {
4420
- g.mergeLocaleMessage(w, c.value[w]);
4421
- }), Object.keys(u.value).forEach((w) => {
4422
- g.mergeDateTimeFormat(w, u.value[w]);
4423
- }), Object.keys(d.value).forEach((w) => {
4424
- g.mergeNumberFormat(w, d.value[w]);
4425
- }), g.escapeParameter = v, g.fallbackFormat = _, g.fallbackRoot = f, g.fallbackWarn = p, g.missingWarn = m, g.warnHtmlMessage = S;
4512
+ g.locale.value = r.value, g.fallbackLocale.value = l.value, Object.keys(c.value).forEach((k) => {
4513
+ g.mergeLocaleMessage(k, c.value[k]);
4514
+ }), Object.keys(u.value).forEach((k) => {
4515
+ g.mergeDateTimeFormat(k, u.value[k]);
4516
+ }), Object.keys(d.value).forEach((k) => {
4517
+ g.mergeNumberFormat(k, d.value[k]);
4518
+ }), g.escapeParameter = y, g.fallbackFormat = _, g.fallbackRoot = f, g.fallbackWarn = p, g.missingWarn = m, g.warnHtmlMessage = P;
4426
4519
  }
4427
4520
  return onBeforeMount(() => {
4428
4521
  if (e.proxy == null || e.proxy.$i18n == null)
4429
4522
  throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
4430
4523
  const g = i.value = e.proxy.$i18n.__composer;
4431
4524
  t === "global" ? (r.value = g.locale.value, l.value = g.fallbackLocale.value, c.value = g.messages.value, u.value = g.datetimeFormats.value, d.value = g.numberFormats.value) : s && b(g);
4432
- }), ue;
4525
+ }), de;
4433
4526
  }
4434
4527
  const globalExportProps = [
4435
4528
  "locale",
@@ -4949,16 +5042,16 @@ function toFormData(e, t, o) {
4949
5042
  return utils$1.isArrayBuffer(f) || utils$1.isTypedArray(f) ? l && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
4950
5043
  }
4951
5044
  function u(f, _, C) {
4952
- let y = f;
5045
+ let N = f;
4953
5046
  if (f && !C && typeof f == "object") {
4954
5047
  if (utils$1.endsWith(_, "{}"))
4955
5048
  _ = n ? _ : _.slice(0, -2), f = JSON.stringify(f);
4956
- else if (utils$1.isArray(f) && isFlatArray(f) || (utils$1.isFileList(f) || utils$1.endsWith(_, "[]")) && (y = utils$1.toArray(f)))
4957
- return _ = removeBrackets(_), y.forEach(function(v, E) {
4958
- !(utils$1.isUndefined(v) || v === null) && t.append(
5049
+ else if (utils$1.isArray(f) && isFlatArray(f) || (utils$1.isFileList(f) || utils$1.endsWith(_, "[]")) && (N = utils$1.toArray(f)))
5050
+ return _ = removeBrackets(_), N.forEach(function(y, S) {
5051
+ !(utils$1.isUndefined(y) || y === null) && t.append(
4959
5052
  // eslint-disable-next-line no-nested-ternary
4960
- a === !0 ? renderKey([_], E, i) : a === null ? _ : _ + "[]",
4961
- c(v)
5053
+ a === !0 ? renderKey([_], S, i) : a === null ? _ : _ + "[]",
5054
+ c(y)
4962
5055
  );
4963
5056
  }), !1;
4964
5057
  }
@@ -4973,14 +5066,14 @@ function toFormData(e, t, o) {
4973
5066
  if (!utils$1.isUndefined(f)) {
4974
5067
  if (d.indexOf(f) !== -1)
4975
5068
  throw Error("Circular reference detected in " + _.join("."));
4976
- d.push(f), utils$1.forEach(f, function(y, S) {
4977
- (!(utils$1.isUndefined(y) || y === null) && s.call(
5069
+ d.push(f), utils$1.forEach(f, function(N, P) {
5070
+ (!(utils$1.isUndefined(N) || N === null) && s.call(
4978
5071
  t,
4979
- y,
4980
- utils$1.isString(S) ? S.trim() : S,
5072
+ N,
5073
+ utils$1.isString(P) ? P.trim() : P,
4981
5074
  _,
4982
5075
  m
4983
- )) === !0 && p(y, _ ? _.concat(S) : [S]);
5076
+ )) === !0 && p(N, _ ? _.concat(P) : [P]);
4984
5077
  }), d.pop();
4985
5078
  }
4986
5079
  }
@@ -5129,6 +5222,8 @@ function arrayToObject(e) {
5129
5222
  function formDataToJSON(e) {
5130
5223
  function t(o, n, s, i) {
5131
5224
  let a = o[i++];
5225
+ if (a === "__proto__")
5226
+ return !0;
5132
5227
  const r = Number.isFinite(+a), l = i >= o.length;
5133
5228
  return a = !a && utils$1.isArray(s) ? s.length : a, l ? (utils$1.hasOwnProp(s, a) ? s[a] = [s[a], n] : s[a] = n, !r) : ((!s[a] || !utils$1.isObject(s[a])) && (s[a] = []), t(o, n, s[a], i) && utils$1.isArray(s[a]) && (s[a] = arrayToObject(s[a])), !r);
5134
5229
  }
@@ -5156,7 +5251,7 @@ const defaults = {
5156
5251
  transformRequest: [function(t, o) {
5157
5252
  const n = o.getContentType() || "", s = n.indexOf("application/json") > -1, i = utils$1.isObject(t);
5158
5253
  if (i && utils$1.isHTMLForm(t) && (t = new FormData(t)), utils$1.isFormData(t))
5159
- return s && s ? JSON.stringify(formDataToJSON(t)) : t;
5254
+ return s ? JSON.stringify(formDataToJSON(t)) : t;
5160
5255
  if (utils$1.isArrayBuffer(t) || utils$1.isBuffer(t) || utils$1.isStream(t) || utils$1.isFile(t) || utils$1.isBlob(t))
5161
5256
  return t;
5162
5257
  if (utils$1.isArrayBufferView(t))
@@ -5459,7 +5554,7 @@ function isAbsoluteURL(e) {
5459
5554
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
5460
5555
  }
5461
5556
  function combineURLs(e, t) {
5462
- return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
5557
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
5463
5558
  }
5464
5559
  function buildFullPath(e, t) {
5465
5560
  return e && !isAbsoluteURL(t) ? combineURLs(e, t) : t;
@@ -5547,7 +5642,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest < "u", xhrAdapter = isXHRAda
5547
5642
  if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv)
5548
5643
  i.setContentType(!1);
5549
5644
  else if ((u = i.getContentType()) !== !1) {
5550
- const [_, ...C] = u ? u.split(";").map((y) => y.trim()).filter(Boolean) : [];
5645
+ const [_, ...C] = u ? u.split(";").map((N) => N.trim()).filter(Boolean) : [];
5551
5646
  i.setContentType([_ || "multipart/form-data", ...C].join("; "));
5552
5647
  }
5553
5648
  }
@@ -5563,7 +5658,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest < "u", xhrAdapter = isXHRAda
5563
5658
  return;
5564
5659
  const _ = AxiosHeaders$1.from(
5565
5660
  "getAllResponseHeaders" in d && d.getAllResponseHeaders()
5566
- ), y = {
5661
+ ), N = {
5567
5662
  data: !a || a === "text" || a === "json" ? d.responseText : d.response,
5568
5663
  status: d.status,
5569
5664
  statusText: d.statusText,
@@ -5571,11 +5666,11 @@ const isXHRAdapterSupported = typeof XMLHttpRequest < "u", xhrAdapter = isXHRAda
5571
5666
  config: e,
5572
5667
  request: d
5573
5668
  };
5574
- settle(function(v) {
5575
- o(v), c();
5576
- }, function(v) {
5577
- n(v), c();
5578
- }, y), d = null;
5669
+ settle(function(y) {
5670
+ o(y), c();
5671
+ }, function(y) {
5672
+ n(y), c();
5673
+ }, N), d = null;
5579
5674
  }
5580
5675
  if ("onloadend" in d ? d.onloadend = p : d.onreadystatechange = function() {
5581
5676
  !d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(p);
@@ -5585,10 +5680,10 @@ const isXHRAdapterSupported = typeof XMLHttpRequest < "u", xhrAdapter = isXHRAda
5585
5680
  n(new AxiosError("Network Error", AxiosError.ERR_NETWORK, e, d)), d = null;
5586
5681
  }, d.ontimeout = function() {
5587
5682
  let C = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
5588
- const y = e.transitional || transitionalDefaults;
5683
+ const N = e.transitional || transitionalDefaults;
5589
5684
  e.timeoutErrorMessage && (C = e.timeoutErrorMessage), n(new AxiosError(
5590
5685
  C,
5591
- y.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
5686
+ N.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
5592
5687
  e,
5593
5688
  d
5594
5689
  )), d = null;
@@ -5596,8 +5691,8 @@ const isXHRAdapterSupported = typeof XMLHttpRequest < "u", xhrAdapter = isXHRAda
5596
5691
  const _ = e.xsrfHeaderName && e.xsrfCookieName && cookies.read(e.xsrfCookieName);
5597
5692
  _ && i.set(e.xsrfHeaderName, _);
5598
5693
  }
5599
- s === void 0 && i.setContentType(null), "setRequestHeader" in d && utils$1.forEach(i.toJSON(), function(C, y) {
5600
- d.setRequestHeader(y, C);
5694
+ s === void 0 && i.setContentType(null), "setRequestHeader" in d && utils$1.forEach(i.toJSON(), function(C, N) {
5695
+ d.setRequestHeader(N, C);
5601
5696
  }), utils$1.isUndefined(e.withCredentials) || (d.withCredentials = !!e.withCredentials), a && a !== "json" && (d.responseType = e.responseType), typeof e.onDownloadProgress == "function" && d.addEventListener("progress", progressEventReducer(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", progressEventReducer(e.onUploadProgress)), (e.cancelToken || e.signal) && (l = (_) => {
5602
5697
  d && (n(!_ || _.type ? new CanceledError(null, e, d) : _), d.abort(), d = null);
5603
5698
  }, e.cancelToken && e.cancelToken.subscribe(l), e.signal && (e.signal.aborted ? l() : e.signal.addEventListener("abort", l)));
@@ -5674,7 +5769,7 @@ function dispatchRequest(e) {
5674
5769
  ), n.response.headers = AxiosHeaders$1.from(n.response.headers))), Promise.reject(n);
5675
5770
  });
5676
5771
  }
5677
- const headersToObject = (e) => e instanceof AxiosHeaders$1 ? e.toJSON() : e;
5772
+ const headersToObject = (e) => e instanceof AxiosHeaders$1 ? { ...e } : e;
5678
5773
  function mergeConfig(e, t) {
5679
5774
  t = t || {};
5680
5775
  const o = {};
@@ -5741,7 +5836,7 @@ function mergeConfig(e, t) {
5741
5836
  utils$1.isUndefined(m) && d !== r || (o[u] = m);
5742
5837
  }), o;
5743
5838
  }
5744
- const VERSION = "1.6.2", validators$1 = {};
5839
+ const VERSION = "1.6.8", validators$1 = {};
5745
5840
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
5746
5841
  validators$1[e] = function(n) {
5747
5842
  return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
@@ -5802,7 +5897,21 @@ class Axios {
5802
5897
  *
5803
5898
  * @returns {Promise} The Promise to be fulfilled
5804
5899
  */
5805
- request(t, o) {
5900
+ async request(t, o) {
5901
+ try {
5902
+ return await this._request(t, o);
5903
+ } catch (n) {
5904
+ if (n instanceof Error) {
5905
+ let s;
5906
+ Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
5907
+ const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
5908
+ n.stack ? i && !String(n.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (n.stack += `
5909
+ ` + i) : n.stack = i;
5910
+ }
5911
+ throw n;
5912
+ }
5913
+ }
5914
+ _request(t, o) {
5806
5915
  typeof t == "string" ? (o = o || {}, o.url = t) : o = t || {}, o = mergeConfig(this.defaults, o);
5807
5916
  const { transitional: n, paramsSerializer: s, headers: i } = o;
5808
5917
  n !== void 0 && validator.assertOptions(n, {
@@ -6881,9 +6990,12 @@ function init(e, t) {
6881
6990
  var api$1 = init(defaultConverter, { path: "/" });
6882
6991
  const jwtKey = "JWT", currentUserNameKey = "USERNAME", currentUserInfoKey = "CURRENT_USER", currentSystemUrlKey = "CURRENT_SYSTEM_URL_", langKey = "CURRENT_LANGUAGE", allLangKey = "AMB_LANG_INFO", versionEnv = "VERSION_ENVIRONMENT", userVersion = "CURRENT_USER_SYSTEM_VERSION";
6883
6992
  function getToken$1() {
6993
+ let t = getSessionCache("_runDevpJWT");
6994
+ return t || (t = getMyToken()), t;
6995
+ }
6996
+ function getMyToken() {
6884
6997
  let e = getCookieCache(jwtKey);
6885
- const t = window.$vueApp.config.globalProperties.projectModel;
6886
- return !e && t && t === "developing.model" && (e = getSessionCache(jwtKey)), e;
6998
+ return console.log("authAPI.getToken---getCookieCache=", e), e || (e = getSessionCache(jwtKey), console.log("authAPI.getToken---getSessionCache=", e)), console.log("authAPI.getToken---getToken=", e), e;
6887
6999
  }
6888
7000
  function setToken(e) {
6889
7001
  setCookieCache(jwtKey, e), setSessionCache(jwtKey, e);
@@ -6892,25 +7004,33 @@ function removeToken() {
6892
7004
  removeCookieCache(jwtKey), removeSessionCache(jwtKey);
6893
7005
  }
6894
7006
  function getUsername() {
6895
- let e = getCookieCache(currentUserNameKey);
6896
- return e || (e = getSessionCache(currentUserNameKey)), e;
7007
+ let t = getSessionCache("_runDevpJWT"), o = currentUserNameKey;
7008
+ t && (o = "_run_" + o);
7009
+ let n = getCookieCache(o);
7010
+ return n || (n = getSessionCache(o)), n;
6897
7011
  }
6898
7012
  function setUsername(e) {
6899
- setSessionCache(currentUserNameKey, e), setCookieCache(currentUserNameKey, e);
7013
+ let o = getSessionCache("_runDevpJWT"), n = currentUserNameKey;
7014
+ o && (n = "_run_" + n), setSessionCache(n, e), setCookieCache(n, e);
6900
7015
  }
6901
7016
  function removeUsername() {
6902
7017
  removeSessionCache(currentUserNameKey), removeCookieCache(currentUserNameKey);
6903
7018
  }
6904
7019
  function getCurrentUser() {
6905
- let e = getCookieCache(currentUserInfoKey);
6906
- if (e || (e = getSessionCache(currentUserInfoKey)), e)
6907
- return JSON.parse(e);
7020
+ let t = getSessionCache("_runDevpJWT"), o = currentUserInfoKey;
7021
+ return t && (o = "_run_" + o), getCurrentUserByKey(o);
7022
+ }
7023
+ function getCurrentUserByKey(e) {
7024
+ let t = getCookieCache(e);
7025
+ if (t || (t = getSessionCache(e)), t)
7026
+ return JSON.parse(t);
6908
7027
  }
6909
7028
  function setCurrentUser(e) {
6910
- if (e) {
7029
+ let o = getSessionCache("_runDevpJWT"), n = currentUserInfoKey;
7030
+ if (o && (n = "_run_" + n), e) {
6911
7031
  e.password && (e.password = null);
6912
- const t = JSON.stringify(e);
6913
- setSessionCache(currentUserInfoKey, t), setCookieCache(currentUserInfoKey, t);
7032
+ const s = JSON.stringify(e);
7033
+ setSessionCache(n, s), setCookieCache(n, s);
6914
7034
  }
6915
7035
  }
6916
7036
  function removeCurrentUser() {
@@ -7879,22 +7999,22 @@ const Util = {
7879
7999
  return typeof Array.isArray == "function" ? Array.isArray(e) : Object.prototype.toString.call(e) === "[object Array]";
7880
8000
  },
7881
8001
  // 获得普通表单保存时的request请求,表单页面和行编辑保存时使用了
7882
- getSaveFormRequest(e, t, o, n, s, i, a, r, l, c, u, d, m, p, f, _, C, y, S, v, E, O, N) {
7883
- N = N === void 0 || N === "true" || N;
7884
- const k = {
8002
+ getSaveFormRequest(e, t, o, n, s, i, a, r, l, c, u, d, m, p, f, _, C, N, P, y, S, T, E) {
8003
+ E = E === void 0 || E === "true" || E;
8004
+ const v = {
7885
8005
  entity: i,
7886
8006
  formViewCode: o,
7887
8007
  formViewVersion: n,
7888
8008
  tableName: s,
7889
8009
  formNoRuleCode: l,
7890
- isWorkflowEntity: v,
7891
- functionCode: E,
7892
- isPermission: N + ""
8010
+ isWorkflowEntity: y,
8011
+ functionCode: S,
8012
+ isPermission: E + ""
7893
8013
  };
7894
- return this.judgeHeavyList && (k.judgeHeavyList = JSON.stringify(this.judgeHeavyList)), c && (this.isArrayFn(c) ? k.dataConversionRule = c.join(",") : typeof c == "string" && (k.dataConversionRule = c)), u && (k.autoSetValueData = JSON.stringify(u)), m && (k.logSettingText = m), k.systemCode || (k.systemCode = e.code), a && (k.entityName = a), S && (k.beanName = S), _ && (k.taskMap = _), C && (k.needDeleteFileUuidS = C), this.dataTypeMap && (k.dataTypeMap = this.dataTypeMap), p && (k.dynamicColumnInfo = p), f && (k.mainDefaultValueColumns = f), y && (k.additionalParamMap = y), O !== void 0 && (k.unControlVersion = O), this.getSaveFormRequestByParam(
8014
+ return this.judgeHeavyList && (v.judgeHeavyList = JSON.stringify(this.judgeHeavyList)), c && (this.isArrayFn(c) ? v.dataConversionRule = c.join(",") : typeof c == "string" && (v.dataConversionRule = c)), u && (v.autoSetValueData = JSON.stringify(u)), m && (v.logSettingText = m), v.systemCode || (v.systemCode = e.code), a && (v.entityName = a), P && (v.beanName = P), _ && (v.taskMap = _), C && (v.needDeleteFileUuidS = C), this.dataTypeMap && (v.dataTypeMap = this.dataTypeMap), p && (v.dynamicColumnInfo = p), f && (v.mainDefaultValueColumns = f), N && (v.additionalParamMap = N), T !== void 0 && (v.unControlVersion = T), this.getSaveFormRequestByParam(
7895
8015
  e,
7896
8016
  t,
7897
- k,
8017
+ v,
7898
8018
  r,
7899
8019
  d,
7900
8020
  i
@@ -8278,7 +8398,9 @@ const Util = {
8278
8398
  },
8279
8399
  // 页面组件中点击按钮等组件关闭弹框调用
8280
8400
  closeInPageEvent(e, t, o, n) {
8281
- if (n.jumpPageSetting) {
8401
+ if (this.isShowContentPageDialog)
8402
+ this.closeContentPageDialog(this, { entity: e, pageCode: t });
8403
+ else if (n.jumpPageSetting) {
8282
8404
  const s = getStoreInfo(n.pageCode, "_pageEvents");
8283
8405
  if (s) {
8284
8406
  let a;
@@ -10599,16 +10721,16 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
10599
10721
  isPermission: _ + ""
10600
10722
  };
10601
10723
  this.judgeHeavyList && (C.judgeHeavyList = JSON.stringify(this.judgeHeavyList)), a.dataConversionRule && (C.dataConversionRule = a.dataConversionRule.join(",")), a.autoSetValueData && (C.autoSetValueData = JSON.stringify(a.autoSetValueData)), a.logSetting && (C.logSettingText = a.logSetting), C.systemCode || (C.systemCode = t.code), a.taskMap && (C.taskMap = a.taskMap), s && (C.entityName = s), m && (C.beanName = m), u && (C.additionalParamMap = u), C.isWorkflowEntity = p;
10602
- let y;
10603
- a.code === "submit" ? y = "/dsc/commons/batch-submits" : a.code === "agree" ? y = "/dsc/commons/batch-approves" : a.code === "disagree" && (y = "/dsc/commons/batch-refuses");
10604
- const S = this.getSaveFormRequestByParam(
10724
+ let N;
10725
+ a.code === "submit" ? N = "/dsc/commons/batch-submits" : a.code === "agree" ? N = "/dsc/commons/batch-approves" : a.code === "disagree" && (N = "/dsc/commons/batch-refuses");
10726
+ const P = this.getSaveFormRequestByParam(
10605
10727
  t,
10606
10728
  o,
10607
10729
  C,
10608
10730
  i,
10609
- y
10731
+ N
10610
10732
  );
10611
- S && (a.loading = !0, S.then((v) => {
10733
+ P && (a.loading = !0, P.then((y) => {
10612
10734
  this.refreshMyList(a.successOperation), this.$message({
10613
10735
  showClose: !0,
10614
10736
  type: "success",
@@ -10621,7 +10743,7 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
10621
10743
  additionalParamMap: this.additionalParamMap
10622
10744
  }
10623
10745
  ), a.loading = !1;
10624
- }).catch((v) => {
10746
+ }).catch((y) => {
10625
10747
  this.refreshMyList(a.successOperation), a.loading = !1;
10626
10748
  }));
10627
10749
  }).catch((_) => {
@@ -10792,58 +10914,58 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
10792
10914
  isEnableEnterEvent: this.colSetting.options.isEnableEnterEvent
10793
10915
  // 是否启用回车事件
10794
10916
  };
10795
- n && (f.extraParam.systemCode = n.code, f.system = n), this.colSetting.options.sortFields ? (f.initSortInfo = [], this.colSetting.options.sortFields.forEach((D) => {
10796
- const F = {
10797
- order: D.sortOrder
10917
+ n && (f.extraParam.systemCode = n.code, f.system = n), this.colSetting.options.sortFields ? (f.initSortInfo = [], this.colSetting.options.sortFields.forEach((O) => {
10918
+ const I = {
10919
+ order: O.sortOrder
10798
10920
  };
10799
- s ? F.prop = D.propDbName : F.prop = D.sortColumn, f.initSortInfo.push(F);
10921
+ s ? I.prop = O.propDbName : I.prop = O.sortColumn, f.initSortInfo.push(I);
10800
10922
  })) : this.colSetting.options.listViewOrderProp && this.colSetting.options.listViewOrderMode && (f.initSortInfo = {
10801
10923
  order: this.colSetting.options.listViewOrderMode
10802
10924
  }, s ? f.initSortInfo.prop = this.colSetting.options.listViewOrderPropDbName : f.initSortInfo.prop = this.colSetting.options.listViewOrderProp), this.colSetting.options.isWithDataPermission && (f.isWithDataPermission = this.colSetting.options.isWithDataPermission);
10803
10925
  const _ = this.colSetting.options.listViewTreeTableSetting;
10804
10926
  if (_) {
10805
- const D = _.parentProp;
10806
- let F, A;
10807
- if (D && D.indexOf("~~") > 0 && (F = D.substring(0, D.indexOf("~~")), A = D.substring(
10808
- D.indexOf("~~") + 2
10809
- )), s ? f.parentProp = A : f.parentProp = F, f.parentProp) {
10927
+ const O = _.parentProp;
10928
+ let I, B;
10929
+ if (O && O.indexOf("~~") > 0 && (I = O.substring(0, O.indexOf("~~")), B = O.substring(
10930
+ O.indexOf("~~") + 2
10931
+ )), s ? f.parentProp = B : f.parentProp = I, f.parentProp) {
10810
10932
  f.extraParam.listViewTreeSetting = JSON.stringify(
10811
10933
  _
10812
10934
  );
10813
10935
  const $ = _.lazy;
10814
10936
  $ == null ? f.lazy = !0 : f.lazy = $;
10815
- const B = _.defaultExpandAll;
10816
- B == null ? f.defaultExpandAll = !1 : f.defaultExpandAll = B, s && (f.subRowUrl = e + "/dsc/commons/list-subs");
10937
+ const L = _.defaultExpandAll;
10938
+ L == null ? f.defaultExpandAll = !1 : f.defaultExpandAll = L, s && (f.subRowUrl = e + "/dsc/commons/list-subs");
10817
10939
  }
10818
10940
  }
10819
10941
  const C = getStoreInfo(this.pageCode, "_pagePreview");
10820
10942
  C !== void 0 && C === !0 && (f.loadBeforeSend = function() {
10821
10943
  return !1;
10822
10944
  });
10823
- let y = getStoreInfo(this.pageCode, "_pageDevMode");
10824
- y == null && (y = !1), f.pageDevMode = y;
10825
- let S = "";
10826
- this.colSetting.options && this.colSetting.options.formNoRuleCode && (S = this.colSetting.options.formNoRuleCode);
10827
- let v;
10828
- this.colSetting.options && this.colSetting.options.listToolbarList && (v = this.colSetting.options.listToolbarList);
10829
- const E = this.colSetting.baseSetting.modelCode;
10830
- let O = "";
10831
- this.colSetting.options && this.colSetting.options.importRuleCode && (O = this.colSetting.options.importRuleCode), f.isWorkflowEntity = o;
10832
- let N;
10833
- const k = getStoreInfo(this.pageCode, "_pageEvents");
10834
- if (k) {
10835
- N = k.listEvents, N && N[E + "__beforeListLoad"] && (f.loadBeforeSend = N[E + "__beforeListLoad"]), N && N[E + "__onListLoad"] && (f.gridDataLoaded = N[E + "__onListLoad"]), N && N[E + "__afterListLoad"] && (f.gridComplete = N[E + "__afterListLoad"]), N && N[E + "__resizeTableHeight"] && (f.resizeHeight = N[E + "__resizeTableHeight"]), N && N[E + "__beforeEdit"] && (f.lineEditOptions === void 0 && (f.lineEditOptions = {}), f.lineEditOptions.beforeEdit = N[E + "__beforeEdit"]), N && N[E + "__beforeRestoreValidate"] && (f.lineEditOptions === void 0 && (f.lineEditOptions = {}), f.lineEditOptions.beforeRestoreValidate = N[E + "__beforeRestoreValidate"]), N && N[E + "__beforeRestore"] && (f.lineEditOptions === void 0 && (f.lineEditOptions = {}), f.lineEditOptions.beforeRestore = N[E + "__beforeRestore"]);
10836
- const D = k.customEvents;
10837
- D && (f.eventCallBack = D, this.colSetting.options.styleCustomMethod && this.colSetting.options.styleCustomMethod !== "" && D && D[this.colSetting.options.styleCustomMethod] && (f.rowStyleRender = D[this.colSetting.options.styleCustomMethod]));
10945
+ let N = getStoreInfo(this.pageCode, "_pageDevMode");
10946
+ N == null && (N = !1), f.pageDevMode = N;
10947
+ let P = "";
10948
+ this.colSetting.options && this.colSetting.options.formNoRuleCode && (P = this.colSetting.options.formNoRuleCode);
10949
+ let y;
10950
+ this.colSetting.options && this.colSetting.options.listToolbarList && (y = this.colSetting.options.listToolbarList);
10951
+ const S = this.colSetting.baseSetting.modelCode;
10952
+ let T = "";
10953
+ this.colSetting.options && this.colSetting.options.importRuleCode && (T = this.colSetting.options.importRuleCode), f.isWorkflowEntity = o;
10954
+ let E;
10955
+ const v = getStoreInfo(this.pageCode, "_pageEvents");
10956
+ if (v) {
10957
+ E = v.listEvents, E && E[S + "__beforeListLoad"] && (f.loadBeforeSend = E[S + "__beforeListLoad"]), E && E[S + "__onListLoad"] && (f.gridDataLoaded = E[S + "__onListLoad"]), E && E[S + "__afterListLoad"] && (f.gridComplete = E[S + "__afterListLoad"]), E && E[S + "__resizeTableHeight"] && (f.resizeHeight = E[S + "__resizeTableHeight"]), E && E[S + "__beforeEdit"] && (f.lineEditOptions === void 0 && (f.lineEditOptions = {}), f.lineEditOptions.beforeEdit = E[S + "__beforeEdit"]), E && E[S + "__beforeRestoreValidate"] && (f.lineEditOptions === void 0 && (f.lineEditOptions = {}), f.lineEditOptions.beforeRestoreValidate = E[S + "__beforeRestoreValidate"]), E && E[S + "__beforeRestore"] && (f.lineEditOptions === void 0 && (f.lineEditOptions = {}), f.lineEditOptions.beforeRestore = E[S + "__beforeRestore"]);
10958
+ const O = v.customEvents;
10959
+ O && (f.eventCallBack = O, this.colSetting.options.styleCustomMethod && this.colSetting.options.styleCustomMethod !== "" && O && O[this.colSetting.options.styleCustomMethod] && (f.rowStyleRender = O[this.colSetting.options.styleCustomMethod]));
10838
10960
  }
10839
10961
  return {
10840
- listToolbarList: v,
10962
+ listToolbarList: y,
10841
10963
  urlToListData: a,
10842
10964
  // 列表组件配置属性
10843
10965
  options: f,
10844
10966
  operationButtons: this.colSetting.options.operationButtons,
10845
10967
  selections: null,
10846
- listCode: E,
10968
+ listCode: S,
10847
10969
  permissionPrefix: u,
10848
10970
  // 按钮组中按钮的资源编码前缀,例如:系统编码.实体类名
10849
10971
  system: n,
@@ -10868,9 +10990,9 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
10868
10990
  // 按钮的“自动设值”配置
10869
10991
  dataConversionRule: null,
10870
10992
  // 数据转换规则编码
10871
- formNoRuleCode: S,
10993
+ formNoRuleCode: P,
10872
10994
  // 表单编号规则
10873
- importRuleCode: O,
10995
+ importRuleCode: T,
10874
10996
  // 导入编码
10875
10997
  isPreview: C,
10876
10998
  // 是否是预览
@@ -10885,8 +11007,8 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
10885
11007
  // 是否显示页面内容
10886
11008
  operationButtonObj: {},
10887
11009
  // 操作列按钮对象,key为按钮编码,value为按钮对象
10888
- listEvents: N,
10889
- pageDevMode: y,
11010
+ listEvents: E,
11011
+ pageDevMode: N,
10890
11012
  isShowPageDialog: !1,
10891
11013
  // 是否显示弹框页面
10892
11014
  isShowContentPageDialog: !1,
@@ -10897,7 +11019,7 @@ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_re
10897
11019
  // 行编辑时当前编辑的行记录
10898
11020
  searchIsPopup: !1,
10899
11021
  // 是否是弹窗查询
10900
- customEvents: k ? k.customEvents : null,
11022
+ customEvents: v ? v.customEvents : null,
10901
11023
  listToolbarFormData: null,
10902
11024
  // 列表工具栏的值对象
10903
11025
  isWorkflowEntity: o,
@@ -11852,33 +11974,33 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
11852
11974
  type: "warning"
11853
11975
  }
11854
11976
  ).then(() => {
11855
- const y = a.isPermission === void 0 || a.isPermission === "true" || a.isPermission, S = {
11977
+ const N = a.isPermission === void 0 || a.isPermission === "true" || a.isPermission, P = {
11856
11978
  entity: e,
11857
11979
  tableName: n,
11858
11980
  formNoRuleCode: r,
11859
11981
  functionCode: a.functionCode,
11860
- isPermission: y + ""
11982
+ isPermission: N + ""
11861
11983
  };
11862
- this.judgeHeavyList && (S.judgeHeavyList = JSON.stringify(this.judgeHeavyList)), a.dataConversionRule && (S.dataConversionRule = a.dataConversionRule.join(",")), a.autoSetValueData && (S.autoSetValueData = JSON.stringify(a.autoSetValueData)), a.logSetting && (S.logSettingText = a.logSetting), a.taskMap && (S.taskMap = a.taskMap), S.systemCode || (S.systemCode = t.code), s && (S.entityName = s), f && (S.beanName = f), u && u.length > 0 && (S.ids = u), m && (S.needDeleteFileUuidS = m), p && (S.additionalParamMap = p), _ != null && (S.isWorkflowEntity = _), a.successOperation && a.successOperation === "noOperation" && (S.unControlVersion = !0), S.isBatchProcessing = d;
11863
- const v = this.getSaveFormRequestByParam(
11984
+ this.judgeHeavyList && (P.judgeHeavyList = JSON.stringify(this.judgeHeavyList)), a.dataConversionRule && (P.dataConversionRule = a.dataConversionRule.join(",")), a.autoSetValueData && (P.autoSetValueData = JSON.stringify(a.autoSetValueData)), a.logSetting && (P.logSettingText = a.logSetting), a.taskMap && (P.taskMap = a.taskMap), P.systemCode || (P.systemCode = t.code), s && (P.entityName = s), f && (P.beanName = f), u && u.length > 0 && (P.ids = u), m && (P.needDeleteFileUuidS = m), p && (P.additionalParamMap = p), _ != null && (P.isWorkflowEntity = _), a.successOperation && a.successOperation === "noOperation" && (P.unControlVersion = !0), P.isBatchProcessing = d;
11985
+ const y = this.getSaveFormRequestByParam(
11864
11986
  t,
11865
11987
  o,
11866
- S,
11988
+ P,
11867
11989
  i,
11868
11990
  l
11869
11991
  );
11870
- return v && v.then((E) => {
11992
+ return y && y.then((S) => {
11871
11993
  this.dealAfterSaveForm(
11872
- E,
11994
+ S,
11873
11995
  t.standard,
11874
11996
  "superPageMessage.successfulOperation",
11875
11997
  a.successOperation,
11876
11998
  a.code,
11877
11999
  a.isNeedValueMapping
11878
12000
  );
11879
- }).catch((E) => {
11880
- console.log("getSubmitFormRequest error", E);
11881
- }), v;
12001
+ }).catch((S) => {
12002
+ console.log("getSubmitFormRequest error", S);
12003
+ }), y;
11882
12004
  }).catch(() => {
11883
12005
  });
11884
12006
  },
@@ -11999,14 +12121,14 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
11999
12121
  let _ = null;
12000
12122
  this.colSetting.baseSetting.modelVersion && (_ = parseInt(this.colSetting.baseSetting.modelVersion));
12001
12123
  const C = this.colSetting.baseSetting.modelCode;
12002
- let y = [];
12003
- const S = getStoreInfo(this.pageCode, "_pageEvents");
12004
- S && (y = S.formEvents), p.events = this.packageFormEvents(C);
12005
- let v = getStoreInfo(
12124
+ let N = [];
12125
+ const P = getStoreInfo(this.pageCode, "_pageEvents");
12126
+ P && (N = P.formEvents), p.events = this.packageFormEvents(C);
12127
+ let y = getStoreInfo(
12006
12128
  getStoreInfo(this.pageCode, "_pageCode"),
12007
12129
  "_formButtonPosition"
12008
12130
  );
12009
- return v || (v = "topLeft"), {
12131
+ return y || (y = "topLeft"), {
12010
12132
  formViewCode: C,
12011
12133
  formViewVersion: _,
12012
12134
  tableName: this.colSetting.baseSetting.modelDataTableCode,
@@ -12045,7 +12167,7 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
12045
12167
  // 解析完的附加参数
12046
12168
  dataTypeMap: null,
12047
12169
  // 数据类型map集合,key为字段名,value为字段类型,优化保存速度
12048
- formEvents: y,
12170
+ formEvents: N,
12049
12171
  pathQuery: i,
12050
12172
  pageDevMode: r,
12051
12173
  refreshButton: !0,
@@ -12058,9 +12180,9 @@ const formHead = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_rende
12058
12180
  // 是否是表单内部控件(超链接、按钮等)显示弹框
12059
12181
  jumpPageSetting: null,
12060
12182
  // 弹框页面的设置信息
12061
- customEvents: S ? S.customEvents : null,
12183
+ customEvents: P ? P.customEvents : null,
12062
12184
  isShowBuuton: !0,
12063
- formButtonPosition: v,
12185
+ formButtonPosition: y,
12064
12186
  pageType: "form",
12065
12187
  // 页面类型
12066
12188
  subTablePageInfo: {}
@@ -12399,7 +12521,7 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
12399
12521
  }
12400
12522
  },
12401
12523
  // 按钮组中各按钮的操作
12402
- clickWorflowButton(e, t, o, n, s, i, a, r, l, c, u, d, m, p, f, _, C, y, S, v, E, O, N, k) {
12524
+ clickWorflowButton(e, t, o, n, s, i, a, r, l, c, u, d, m, p, f, _, C, N, P, y, S, T, E, v) {
12403
12525
  if (e === "startInstance" || e === "update")
12404
12526
  this.startInstance(
12405
12527
  t,
@@ -12417,10 +12539,10 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
12417
12539
  _,
12418
12540
  C,
12419
12541
  e,
12420
- v,
12421
- E,
12422
- O,
12423
- N
12542
+ y,
12543
+ S,
12544
+ T,
12545
+ E
12424
12546
  );
12425
12547
  else if (e === "submitProcess")
12426
12548
  this.submitProcess(
@@ -12440,10 +12562,10 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
12440
12562
  _,
12441
12563
  C,
12442
12564
  e,
12443
- v,
12444
- E,
12445
- O,
12446
- N
12565
+ y,
12566
+ S,
12567
+ T,
12568
+ E
12447
12569
  );
12448
12570
  else if (e === "completeTask")
12449
12571
  this.complateTask(
@@ -12461,10 +12583,10 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
12461
12583
  _,
12462
12584
  C,
12463
12585
  e,
12464
- v,
12465
- E,
12466
- O,
12467
- N
12586
+ y,
12587
+ S,
12588
+ T,
12589
+ E
12468
12590
  );
12469
12591
  else if (e === "drawTask")
12470
12592
  this.drawTask(
@@ -12478,9 +12600,9 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
12478
12600
  m,
12479
12601
  C,
12480
12602
  e,
12481
- v,
12482
- E,
12483
- N
12603
+ y,
12604
+ S,
12605
+ E
12484
12606
  );
12485
12607
  else if (e === "abandonDraw")
12486
12608
  this.abandonReceive(
@@ -12494,9 +12616,9 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
12494
12616
  m,
12495
12617
  C,
12496
12618
  e,
12497
- v,
12498
- E,
12499
- N
12619
+ y,
12620
+ S,
12621
+ E
12500
12622
  );
12501
12623
  else if (e === "retrieveTask")
12502
12624
  this.retrieve(
@@ -12510,17 +12632,17 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
12510
12632
  m,
12511
12633
  C,
12512
12634
  e,
12513
- v,
12514
- E,
12515
- N
12635
+ y,
12636
+ S,
12637
+ E
12516
12638
  );
12517
12639
  else if (e === "assignTask")
12518
12640
  this.assignTask();
12519
12641
  else if (e.indexOf("#_default_#") === 0) {
12520
12642
  if (e === "#_default_#submit" || e === "#_default_#agree" || e === "#_default_#disagree") {
12521
- let D;
12522
- e === "#_default_#submit" ? D = "/dsc/workflow-commons/common-submits" : e === "#_default_#agree" ? D = "/dsc/workflow-commons/common-approves" : e === "#_default_#disagree" && (D = "/dsc/workflow-commons/common-refuses");
12523
- const F = e.substring(e.lastIndexOf("#") + 1);
12643
+ let O;
12644
+ e === "#_default_#submit" ? O = "/dsc/workflow-commons/common-submits" : e === "#_default_#agree" ? O = "/dsc/workflow-commons/common-approves" : e === "#_default_#disagree" && (O = "/dsc/workflow-commons/common-refuses");
12645
+ const I = e.substring(e.lastIndexOf("#") + 1);
12524
12646
  this.submitForm(
12525
12647
  t,
12526
12648
  o,
@@ -12533,20 +12655,20 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
12533
12655
  m,
12534
12656
  p,
12535
12657
  _,
12536
- D,
12658
+ O,
12537
12659
  C,
12538
- F,
12660
+ I,
12661
+ N,
12662
+ P,
12539
12663
  y,
12540
12664
  S,
12541
- v,
12665
+ T,
12542
12666
  E,
12543
- O,
12544
- N,
12545
- k ? k.functionCode : ""
12667
+ v ? v.functionCode : ""
12546
12668
  );
12547
12669
  }
12548
12670
  } else
12549
- e === "addSigner" ? this.addSigner() : e === "createCopyTask" ? this.createCopyTask() : e === "removeSigner" && this.removeSigner(t, c, n, C, N);
12671
+ e === "addSigner" ? this.addSigner() : e === "createCopyTask" ? this.createCopyTask() : e === "removeSigner" && this.removeSigner(t, c, n, C, E);
12550
12672
  },
12551
12673
  // 发起流程。保存按钮的操作
12552
12674
  startInstance(system, tableName, model, definitionId, emailTemplateCode, formViewCode, formViewVersion, myEntityName, myJsContent, formNoRuleCode, successOperation, dataConversionRule, autoSetValueData, logSettingText, buttonType, isNeedValueMapping, taskMap, needDeleteFileUuid, beanName) {
@@ -13045,13 +13167,13 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
13045
13167
  );
13046
13168
  },
13047
13169
  // 流程表单页面(非流程处理的)-提交/同意/不同意
13048
- submitForm(e, t, o, n, s, i, a, r, l, c, u, d, m, p, f, _, C, y, S, v, E) {
13049
- let O;
13050
- e.standard === !1 && (O = this.getBaseUrl(e) + d), this.transactTask(
13170
+ submitForm(e, t, o, n, s, i, a, r, l, c, u, d, m, p, f, _, C, N, P, y, S) {
13171
+ let T;
13172
+ e.standard === !1 && (T = this.getBaseUrl(e) + d), this.transactTask(
13051
13173
  e,
13052
13174
  t,
13053
13175
  o,
13054
- O,
13176
+ T,
13055
13177
  "superPageMessage.successfulOperation",
13056
13178
  !1,
13057
13179
  !1,
@@ -13069,10 +13191,10 @@ const CommonFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc
13069
13191
  f,
13070
13192
  _,
13071
13193
  C,
13194
+ N,
13195
+ P,
13072
13196
  y,
13073
- S,
13074
- v,
13075
- E
13197
+ S
13076
13198
  );
13077
13199
  },
13078
13200
  // 点击加签后,弹出组织结构树
@@ -13514,7 +13636,7 @@ function _sfc_render$e(e, t, o, n, s, i) {
13514
13636
  }, 8, ["title"])
13515
13637
  ]);
13516
13638
  }
13517
- const RemoveSignerDialog = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e]]), workflowFormPage_vue_vue_type_style_index_0_scoped_fe5625ee_lang = "", _sfc_main$d = {
13639
+ const RemoveSignerDialog = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e]]), workflowFormPage_vue_vue_type_style_index_0_scoped_b391f66c_lang = "", _sfc_main$d = {
13518
13640
  name: "WorkflowFormPage",
13519
13641
  components: {
13520
13642
  ButtonGroup,
@@ -13578,14 +13700,14 @@ const RemoveSignerDialog = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render",
13578
13700
  let _ = null;
13579
13701
  this.colSetting.baseSetting.modelVersion && (_ = parseInt(this.colSetting.baseSetting.modelVersion));
13580
13702
  const C = this.colSetting.baseSetting.modelCode;
13581
- let y = [];
13582
- const S = getStoreInfo(this.pageCode, "_pageEvents");
13583
- S && (y = S.formEvents), d.events = this.packageFormEvents(C);
13584
- let v = getStoreInfo(
13703
+ let N = [];
13704
+ const P = getStoreInfo(this.pageCode, "_pageEvents");
13705
+ P && (N = P.formEvents), d.events = this.packageFormEvents(C);
13706
+ let y = getStoreInfo(
13585
13707
  getStoreInfo(this.pageCode, "_pageCode"),
13586
13708
  "_formButtonPosition"
13587
13709
  );
13588
- return v || (v = "topLeft"), {
13710
+ return y || (y = "topLeft"), {
13589
13711
  formViewCode: C,
13590
13712
  formViewVersion: _,
13591
13713
  tableName: this.colSetting.baseSetting.modelDataTableCode,
@@ -13663,7 +13785,7 @@ const RemoveSignerDialog = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render",
13663
13785
  // 解析好的附加参数
13664
13786
  dataTypeMap: null,
13665
13787
  // 数据类型map集合,key为字段名,value为字段类型,优化保存速度
13666
- formEvents: y,
13788
+ formEvents: N,
13667
13789
  // 表单事件维护
13668
13790
  logSetting: null,
13669
13791
  // 日志维护
@@ -13684,9 +13806,9 @@ const RemoveSignerDialog = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render",
13684
13806
  // 关闭弹框时是否需要字段映射
13685
13807
  firstNodeInfo: null,
13686
13808
  // 第一节点的信息
13687
- customEvents: S ? S.customEvents : null,
13809
+ customEvents: P ? P.customEvents : null,
13688
13810
  isShowBuuton: !1,
13689
- formButtonPosition: v,
13811
+ formButtonPosition: y,
13690
13812
  // 表单按钮显示位置,
13691
13813
  pageType: "form",
13692
13814
  // 页面类型
@@ -14358,7 +14480,7 @@ function _sfc_render$d(e, t, o, n, s, i) {
14358
14480
  }, null, 8, ["preview", "dev-mode", "jump-page-setting", "onUpdateValue", "onClose"])) : createCommentVNode("", !0)
14359
14481
  ]);
14360
14482
  }
14361
- const WorkflowFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-fe5625ee"]]), _sfc_main$c = {
14483
+ const WorkflowFormPage = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-b391f66c"]]), _sfc_main$c = {
14362
14484
  name: "FormPage",
14363
14485
  components: {
14364
14486
  CommonFormPage,