workflow-editor 0.0.89-up → 0.0.90-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.
- package/lib/{401-ff27e685.js → 401-d08148ed.js} +1 -1
- package/lib/{404-33de0149.js → 404-472e39c1.js} +1 -1
- package/lib/{iframe-page-1982a263.js → iframe-page-2cdd0517.js} +1 -1
- package/lib/{index-41d47f5c.js → index-75e12df6.js} +906 -825
- package/lib/{tab-content-iframe-index-df889a3a.js → tab-content-iframe-index-1cf3d70e.js} +1 -1
- package/lib/{tab-content-index-3d780597.js → tab-content-index-2f104b32.js} +1 -1
- package/lib/{tache-subprocess-history-33260653.js → tache-subprocess-history-1ad5b2a1.js} +1 -1
- package/lib/workflow-editor.css +1 -1
- package/lib/workflow-editor.js +1 -1
- package/lib/workflow-editor.umd.cjs +23 -23
- package/package.json +1 -1
- package/packages/workflow-editor/src/properties-editors/common/notice.vue +30 -15
- package/packages/workflow-editor/src/properties-editors/common/reminder.vue +40 -0
- package/src/i18n/langs/cn.js +5 -1
- package/src/i18n/langs/en.js +5 -1
|
@@ -1014,7 +1014,7 @@ const RE_HTML_TAG = /<\/?[\w\s="/.':;#-\/]+>/, detectHtmlTag = (e) => RE_HTML_TA
|
|
|
1014
1014
|
function createScanner(e) {
|
|
1015
1015
|
const t = e;
|
|
1016
1016
|
let o = 0, n = 1, r = 1, i = 0;
|
|
1017
|
-
const s = (
|
|
1017
|
+
const s = (O) => t[O] === CHAR_CR && t[O + 1] === CHAR_LF, a = (O) => t[O] === CHAR_LF, l = (O) => t[O] === CHAR_PS, d = (O) => t[O] === CHAR_LS, c = (O) => s(O) || a(O) || l(O) || d(O), u = () => o, m = () => n, p = () => r, _ = () => i, v = (O) => s(O) || l(O) || d(O) ? CHAR_LF : t[O], C = () => v(o), g = () => v(o + i);
|
|
1018
1018
|
function f() {
|
|
1019
1019
|
return i = 0, c(o) && (n++, r = 0), s(o) && o++, o++, r++, t[o];
|
|
1020
1020
|
}
|
|
@@ -1024,12 +1024,12 @@ function createScanner(e) {
|
|
|
1024
1024
|
function E() {
|
|
1025
1025
|
o = 0, n = 1, r = 1, i = 0;
|
|
1026
1026
|
}
|
|
1027
|
-
function T(
|
|
1028
|
-
i =
|
|
1027
|
+
function T(O = 0) {
|
|
1028
|
+
i = O;
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1031
|
-
const
|
|
1032
|
-
for (;
|
|
1030
|
+
function P() {
|
|
1031
|
+
const O = o + i;
|
|
1032
|
+
for (; O !== o; )
|
|
1033
1033
|
f();
|
|
1034
1034
|
i = 0;
|
|
1035
1035
|
}
|
|
@@ -1045,7 +1045,7 @@ function createScanner(e) {
|
|
|
1045
1045
|
peek: w,
|
|
1046
1046
|
reset: E,
|
|
1047
1047
|
resetPeek: T,
|
|
1048
|
-
skipToPeek:
|
|
1048
|
+
skipToPeek: P
|
|
1049
1049
|
};
|
|
1050
1050
|
}
|
|
1051
1051
|
const EOF = void 0, DOT = ".", LITERAL_DELIMITER = "'", ERROR_DOMAIN$3 = "tokenizer";
|
|
@@ -1063,19 +1063,19 @@ function createTokenizer(e, t = {}) {
|
|
|
1063
1063
|
inLinked: !1,
|
|
1064
1064
|
text: ""
|
|
1065
1065
|
}, d = () => l, { onError: c } = t;
|
|
1066
|
-
function u(N,
|
|
1066
|
+
function u(N, S, I, ...F) {
|
|
1067
1067
|
const M = d();
|
|
1068
|
-
if (
|
|
1069
|
-
const G = o ? createLocation(M.startLoc,
|
|
1068
|
+
if (S.column += I, S.offset += I, c) {
|
|
1069
|
+
const G = o ? createLocation(M.startLoc, S) : null, ae = createCompileError(N, G, {
|
|
1070
1070
|
domain: ERROR_DOMAIN$3,
|
|
1071
1071
|
args: F
|
|
1072
1072
|
});
|
|
1073
1073
|
c(ae);
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
|
-
function m(N,
|
|
1077
|
-
N.endLoc = i(), N.currentType =
|
|
1078
|
-
const F = { type:
|
|
1076
|
+
function m(N, S, I) {
|
|
1077
|
+
N.endLoc = i(), N.currentType = S;
|
|
1078
|
+
const F = { type: S };
|
|
1079
1079
|
return o && (F.loc = createLocation(N.startLoc, N.endLoc)), I != null && (F.value = I), F;
|
|
1080
1080
|
}
|
|
1081
1081
|
const p = (N) => m(
|
|
@@ -1083,83 +1083,83 @@ function createTokenizer(e, t = {}) {
|
|
|
1083
1083
|
14
|
|
1084
1084
|
/* TokenTypes.EOF */
|
|
1085
1085
|
);
|
|
1086
|
-
function _(N,
|
|
1087
|
-
return N.currentChar() ===
|
|
1086
|
+
function _(N, S) {
|
|
1087
|
+
return N.currentChar() === S ? (N.next(), S) : (u(CompileErrorCodes.EXPECTED_TOKEN, i(), 0, S), "");
|
|
1088
1088
|
}
|
|
1089
1089
|
function v(N) {
|
|
1090
|
-
let
|
|
1090
|
+
let S = "";
|
|
1091
1091
|
for (; N.currentPeek() === CHAR_SP || N.currentPeek() === CHAR_LF; )
|
|
1092
|
-
|
|
1093
|
-
return
|
|
1092
|
+
S += N.currentPeek(), N.peek();
|
|
1093
|
+
return S;
|
|
1094
1094
|
}
|
|
1095
1095
|
function C(N) {
|
|
1096
|
-
const
|
|
1097
|
-
return N.skipToPeek(),
|
|
1096
|
+
const S = v(N);
|
|
1097
|
+
return N.skipToPeek(), S;
|
|
1098
1098
|
}
|
|
1099
1099
|
function g(N) {
|
|
1100
1100
|
if (N === EOF)
|
|
1101
1101
|
return !1;
|
|
1102
|
-
const
|
|
1103
|
-
return
|
|
1104
|
-
|
|
1105
|
-
|
|
1102
|
+
const S = N.charCodeAt(0);
|
|
1103
|
+
return S >= 97 && S <= 122 || // a-z
|
|
1104
|
+
S >= 65 && S <= 90 || // A-Z
|
|
1105
|
+
S === 95;
|
|
1106
1106
|
}
|
|
1107
1107
|
function f(N) {
|
|
1108
1108
|
if (N === EOF)
|
|
1109
1109
|
return !1;
|
|
1110
|
-
const
|
|
1111
|
-
return
|
|
1110
|
+
const S = N.charCodeAt(0);
|
|
1111
|
+
return S >= 48 && S <= 57;
|
|
1112
1112
|
}
|
|
1113
|
-
function w(N,
|
|
1114
|
-
const { currentType: I } =
|
|
1113
|
+
function w(N, S) {
|
|
1114
|
+
const { currentType: I } = S;
|
|
1115
1115
|
if (I !== 2)
|
|
1116
1116
|
return !1;
|
|
1117
1117
|
v(N);
|
|
1118
1118
|
const F = g(N.currentPeek());
|
|
1119
1119
|
return N.resetPeek(), F;
|
|
1120
1120
|
}
|
|
1121
|
-
function E(N,
|
|
1122
|
-
const { currentType: I } =
|
|
1121
|
+
function E(N, S) {
|
|
1122
|
+
const { currentType: I } = S;
|
|
1123
1123
|
if (I !== 2)
|
|
1124
1124
|
return !1;
|
|
1125
1125
|
v(N);
|
|
1126
1126
|
const F = N.currentPeek() === "-" ? N.peek() : N.currentPeek(), M = f(F);
|
|
1127
1127
|
return N.resetPeek(), M;
|
|
1128
1128
|
}
|
|
1129
|
-
function T(N,
|
|
1130
|
-
const { currentType: I } =
|
|
1129
|
+
function T(N, S) {
|
|
1130
|
+
const { currentType: I } = S;
|
|
1131
1131
|
if (I !== 2)
|
|
1132
1132
|
return !1;
|
|
1133
1133
|
v(N);
|
|
1134
1134
|
const F = N.currentPeek() === LITERAL_DELIMITER;
|
|
1135
1135
|
return N.resetPeek(), F;
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1138
|
-
const { currentType: I } =
|
|
1137
|
+
function P(N, S) {
|
|
1138
|
+
const { currentType: I } = S;
|
|
1139
1139
|
if (I !== 8)
|
|
1140
1140
|
return !1;
|
|
1141
1141
|
v(N);
|
|
1142
1142
|
const F = N.currentPeek() === ".";
|
|
1143
1143
|
return N.resetPeek(), F;
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1146
|
-
const { currentType: I } =
|
|
1145
|
+
function O(N, S) {
|
|
1146
|
+
const { currentType: I } = S;
|
|
1147
1147
|
if (I !== 9)
|
|
1148
1148
|
return !1;
|
|
1149
1149
|
v(N);
|
|
1150
1150
|
const F = g(N.currentPeek());
|
|
1151
1151
|
return N.resetPeek(), F;
|
|
1152
1152
|
}
|
|
1153
|
-
function A(N,
|
|
1154
|
-
const { currentType: I } =
|
|
1153
|
+
function A(N, S) {
|
|
1154
|
+
const { currentType: I } = S;
|
|
1155
1155
|
if (!(I === 8 || I === 12))
|
|
1156
1156
|
return !1;
|
|
1157
1157
|
v(N);
|
|
1158
1158
|
const F = N.currentPeek() === ":";
|
|
1159
1159
|
return N.resetPeek(), F;
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1162
|
-
const { currentType: I } =
|
|
1161
|
+
function k(N, S) {
|
|
1162
|
+
const { currentType: I } = S;
|
|
1163
1163
|
if (I !== 10)
|
|
1164
1164
|
return !1;
|
|
1165
1165
|
const F = () => {
|
|
@@ -1170,26 +1170,26 @@ function createTokenizer(e, t = {}) {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
function B(N) {
|
|
1172
1172
|
v(N);
|
|
1173
|
-
const
|
|
1174
|
-
return N.resetPeek(),
|
|
1173
|
+
const S = N.currentPeek() === "|";
|
|
1174
|
+
return N.resetPeek(), S;
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1177
|
-
const
|
|
1176
|
+
function H(N) {
|
|
1177
|
+
const S = v(N), I = N.currentPeek() === "%" && N.peek() === "{";
|
|
1178
1178
|
return N.resetPeek(), {
|
|
1179
1179
|
isModulo: I,
|
|
1180
|
-
hasSpace:
|
|
1180
|
+
hasSpace: S.length > 0
|
|
1181
1181
|
};
|
|
1182
1182
|
}
|
|
1183
|
-
function R(N,
|
|
1183
|
+
function R(N, S = !0) {
|
|
1184
1184
|
const I = (M = !1, G = "", ae = !1) => {
|
|
1185
1185
|
const le = N.currentPeek();
|
|
1186
1186
|
return le === "{" ? G === "%" ? !1 : M : le === "@" || !le ? G === "%" ? !0 : M : le === "%" ? (N.peek(), I(M, "%", !0)) : le === "|" ? G === "%" || ae ? !0 : !(G === CHAR_SP || G === CHAR_LF) : le === CHAR_SP ? (N.peek(), I(!0, CHAR_SP, ae)) : le === CHAR_LF ? (N.peek(), I(!0, CHAR_LF, ae)) : !0;
|
|
1187
1187
|
}, F = I();
|
|
1188
|
-
return
|
|
1188
|
+
return S && N.resetPeek(), F;
|
|
1189
1189
|
}
|
|
1190
|
-
function U(N,
|
|
1190
|
+
function U(N, S) {
|
|
1191
1191
|
const I = N.currentChar();
|
|
1192
|
-
return I === EOF ? EOF :
|
|
1192
|
+
return I === EOF ? EOF : S(I) ? (N.next(), I) : null;
|
|
1193
1193
|
}
|
|
1194
1194
|
function z(N) {
|
|
1195
1195
|
return U(N, (I) => {
|
|
@@ -1215,222 +1215,222 @@ function createTokenizer(e, t = {}) {
|
|
|
1215
1215
|
F >= 97 && F <= 102;
|
|
1216
1216
|
});
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1219
|
-
let
|
|
1220
|
-
for (;
|
|
1221
|
-
I +=
|
|
1218
|
+
function j(N) {
|
|
1219
|
+
let S = "", I = "";
|
|
1220
|
+
for (; S = Q(N); )
|
|
1221
|
+
I += S;
|
|
1222
1222
|
return I;
|
|
1223
1223
|
}
|
|
1224
1224
|
function K(N) {
|
|
1225
1225
|
C(N);
|
|
1226
|
-
const
|
|
1227
|
-
return
|
|
1226
|
+
const S = N.currentChar();
|
|
1227
|
+
return S !== "%" && u(CompileErrorCodes.EXPECTED_TOKEN, i(), 0, S), N.next(), "%";
|
|
1228
1228
|
}
|
|
1229
1229
|
function Z(N) {
|
|
1230
|
-
let
|
|
1230
|
+
let S = "";
|
|
1231
1231
|
for (; ; ) {
|
|
1232
1232
|
const I = N.currentChar();
|
|
1233
1233
|
if (I === "{" || I === "}" || I === "@" || I === "|" || !I)
|
|
1234
1234
|
break;
|
|
1235
1235
|
if (I === "%")
|
|
1236
1236
|
if (R(N))
|
|
1237
|
-
|
|
1237
|
+
S += I, N.next();
|
|
1238
1238
|
else
|
|
1239
1239
|
break;
|
|
1240
1240
|
else if (I === CHAR_SP || I === CHAR_LF)
|
|
1241
1241
|
if (R(N))
|
|
1242
|
-
|
|
1242
|
+
S += I, N.next();
|
|
1243
1243
|
else {
|
|
1244
1244
|
if (B(N))
|
|
1245
1245
|
break;
|
|
1246
|
-
|
|
1246
|
+
S += I, N.next();
|
|
1247
1247
|
}
|
|
1248
1248
|
else
|
|
1249
|
-
|
|
1249
|
+
S += I, N.next();
|
|
1250
1250
|
}
|
|
1251
|
-
return
|
|
1251
|
+
return S;
|
|
1252
1252
|
}
|
|
1253
1253
|
function Y(N) {
|
|
1254
1254
|
C(N);
|
|
1255
|
-
let
|
|
1256
|
-
for (;
|
|
1257
|
-
I +=
|
|
1255
|
+
let S = "", I = "";
|
|
1256
|
+
for (; S = z(N); )
|
|
1257
|
+
I += S;
|
|
1258
1258
|
return N.currentChar() === EOF && u(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), I;
|
|
1259
1259
|
}
|
|
1260
1260
|
function ee(N) {
|
|
1261
1261
|
C(N);
|
|
1262
|
-
let
|
|
1263
|
-
return N.currentChar() === "-" ? (N.next(),
|
|
1262
|
+
let S = "";
|
|
1263
|
+
return N.currentChar() === "-" ? (N.next(), S += `-${j(N)}`) : S += j(N), N.currentChar() === EOF && u(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), S;
|
|
1264
1264
|
}
|
|
1265
1265
|
function X(N) {
|
|
1266
1266
|
C(N), _(N, "'");
|
|
1267
|
-
let
|
|
1267
|
+
let S = "", I = "";
|
|
1268
1268
|
const F = (G) => G !== LITERAL_DELIMITER && G !== CHAR_LF;
|
|
1269
|
-
for (;
|
|
1270
|
-
|
|
1269
|
+
for (; S = U(N, F); )
|
|
1270
|
+
S === "\\" ? I += se(N) : I += S;
|
|
1271
1271
|
const M = N.currentChar();
|
|
1272
1272
|
return M === CHAR_LF || M === EOF ? (u(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), M === CHAR_LF && (N.next(), _(N, "'")), I) : (_(N, "'"), I);
|
|
1273
1273
|
}
|
|
1274
1274
|
function se(N) {
|
|
1275
|
-
const
|
|
1276
|
-
switch (
|
|
1275
|
+
const S = N.currentChar();
|
|
1276
|
+
switch (S) {
|
|
1277
1277
|
case "\\":
|
|
1278
1278
|
case "'":
|
|
1279
|
-
return N.next(), `\\${
|
|
1279
|
+
return N.next(), `\\${S}`;
|
|
1280
1280
|
case "u":
|
|
1281
|
-
return te(N,
|
|
1281
|
+
return te(N, S, 4);
|
|
1282
1282
|
case "U":
|
|
1283
|
-
return te(N,
|
|
1283
|
+
return te(N, S, 6);
|
|
1284
1284
|
default:
|
|
1285
|
-
return u(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE, i(), 0,
|
|
1285
|
+
return u(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE, i(), 0, S), "";
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
-
function te(N,
|
|
1289
|
-
_(N,
|
|
1288
|
+
function te(N, S, I) {
|
|
1289
|
+
_(N, S);
|
|
1290
1290
|
let F = "";
|
|
1291
1291
|
for (let M = 0; M < I; M++) {
|
|
1292
1292
|
const G = J(N);
|
|
1293
1293
|
if (!G) {
|
|
1294
|
-
u(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${
|
|
1294
|
+
u(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${S}${F}${N.currentChar()}`);
|
|
1295
1295
|
break;
|
|
1296
1296
|
}
|
|
1297
1297
|
F += G;
|
|
1298
1298
|
}
|
|
1299
|
-
return `\\${
|
|
1299
|
+
return `\\${S}${F}`;
|
|
1300
1300
|
}
|
|
1301
1301
|
function ie(N) {
|
|
1302
1302
|
C(N);
|
|
1303
|
-
let
|
|
1303
|
+
let S = "", I = "";
|
|
1304
1304
|
const F = (M) => M !== "{" && M !== "}" && M !== CHAR_SP && M !== CHAR_LF;
|
|
1305
|
-
for (;
|
|
1306
|
-
I +=
|
|
1305
|
+
for (; S = U(N, F); )
|
|
1306
|
+
I += S;
|
|
1307
1307
|
return I;
|
|
1308
1308
|
}
|
|
1309
1309
|
function re(N) {
|
|
1310
|
-
let
|
|
1311
|
-
for (;
|
|
1312
|
-
I +=
|
|
1310
|
+
let S = "", I = "";
|
|
1311
|
+
for (; S = z(N); )
|
|
1312
|
+
I += S;
|
|
1313
1313
|
return I;
|
|
1314
1314
|
}
|
|
1315
1315
|
function y(N) {
|
|
1316
|
-
const
|
|
1316
|
+
const S = (I = !1, F) => {
|
|
1317
1317
|
const M = N.currentChar();
|
|
1318
|
-
return M === "{" || M === "%" || M === "@" || M === "|" || M === "(" || M === ")" || !M || M === CHAR_SP ? F : M === CHAR_LF || M === DOT ? (F += M, N.next(),
|
|
1318
|
+
return M === "{" || M === "%" || M === "@" || M === "|" || M === "(" || M === ")" || !M || M === CHAR_SP ? F : M === CHAR_LF || M === DOT ? (F += M, N.next(), S(I, F)) : (F += M, N.next(), S(!0, F));
|
|
1319
1319
|
};
|
|
1320
|
-
return
|
|
1320
|
+
return S(!1, "");
|
|
1321
1321
|
}
|
|
1322
1322
|
function b(N) {
|
|
1323
1323
|
C(N);
|
|
1324
|
-
const
|
|
1324
|
+
const S = _(
|
|
1325
1325
|
N,
|
|
1326
1326
|
"|"
|
|
1327
1327
|
/* TokenChars.Pipe */
|
|
1328
1328
|
);
|
|
1329
|
-
return C(N),
|
|
1329
|
+
return C(N), S;
|
|
1330
1330
|
}
|
|
1331
|
-
function D(N,
|
|
1331
|
+
function D(N, S) {
|
|
1332
1332
|
let I = null;
|
|
1333
1333
|
switch (N.currentChar()) {
|
|
1334
1334
|
case "{":
|
|
1335
|
-
return
|
|
1336
|
-
|
|
1335
|
+
return S.braceNest >= 1 && u(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER, i(), 0), N.next(), I = m(
|
|
1336
|
+
S,
|
|
1337
1337
|
2,
|
|
1338
1338
|
"{"
|
|
1339
1339
|
/* TokenChars.BraceLeft */
|
|
1340
|
-
), C(N),
|
|
1340
|
+
), C(N), S.braceNest++, I;
|
|
1341
1341
|
case "}":
|
|
1342
|
-
return
|
|
1343
|
-
|
|
1342
|
+
return S.braceNest > 0 && S.currentType === 2 && u(CompileErrorCodes.EMPTY_PLACEHOLDER, i(), 0), N.next(), I = m(
|
|
1343
|
+
S,
|
|
1344
1344
|
3,
|
|
1345
1345
|
"}"
|
|
1346
1346
|
/* TokenChars.BraceRight */
|
|
1347
|
-
),
|
|
1347
|
+
), S.braceNest--, S.braceNest > 0 && C(N), S.inLinked && S.braceNest === 0 && (S.inLinked = !1), I;
|
|
1348
1348
|
case "@":
|
|
1349
|
-
return
|
|
1349
|
+
return S.braceNest > 0 && u(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), I = V(N, S) || p(S), S.braceNest = 0, I;
|
|
1350
1350
|
default:
|
|
1351
1351
|
let M = !0, G = !0, ae = !0;
|
|
1352
1352
|
if (B(N))
|
|
1353
|
-
return
|
|
1354
|
-
if (
|
|
1355
|
-
return u(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0),
|
|
1356
|
-
if (M = w(N,
|
|
1357
|
-
return I = m(
|
|
1358
|
-
if (G = E(N,
|
|
1359
|
-
return I = m(
|
|
1360
|
-
if (ae = T(N,
|
|
1361
|
-
return I = m(
|
|
1353
|
+
return S.braceNest > 0 && u(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), I = m(S, 1, b(N)), S.braceNest = 0, S.inLinked = !1, I;
|
|
1354
|
+
if (S.braceNest > 0 && (S.currentType === 5 || S.currentType === 6 || S.currentType === 7))
|
|
1355
|
+
return u(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), S.braceNest = 0, L(N, S);
|
|
1356
|
+
if (M = w(N, S))
|
|
1357
|
+
return I = m(S, 5, Y(N)), C(N), I;
|
|
1358
|
+
if (G = E(N, S))
|
|
1359
|
+
return I = m(S, 6, ee(N)), C(N), I;
|
|
1360
|
+
if (ae = T(N, S))
|
|
1361
|
+
return I = m(S, 7, X(N)), C(N), I;
|
|
1362
1362
|
if (!M && !G && !ae)
|
|
1363
|
-
return I = m(
|
|
1363
|
+
return I = m(S, 13, ie(N)), u(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, I.value), C(N), I;
|
|
1364
1364
|
break;
|
|
1365
1365
|
}
|
|
1366
1366
|
return I;
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1369
|
-
const { currentType: I } =
|
|
1368
|
+
function V(N, S) {
|
|
1369
|
+
const { currentType: I } = S;
|
|
1370
1370
|
let F = null;
|
|
1371
1371
|
const M = N.currentChar();
|
|
1372
1372
|
switch ((I === 8 || I === 9 || I === 12 || I === 10) && (M === CHAR_LF || M === CHAR_SP) && u(CompileErrorCodes.INVALID_LINKED_FORMAT, i(), 0), M) {
|
|
1373
1373
|
case "@":
|
|
1374
1374
|
return N.next(), F = m(
|
|
1375
|
-
|
|
1375
|
+
S,
|
|
1376
1376
|
8,
|
|
1377
1377
|
"@"
|
|
1378
1378
|
/* TokenChars.LinkedAlias */
|
|
1379
|
-
),
|
|
1379
|
+
), S.inLinked = !0, F;
|
|
1380
1380
|
case ".":
|
|
1381
1381
|
return C(N), N.next(), m(
|
|
1382
|
-
|
|
1382
|
+
S,
|
|
1383
1383
|
9,
|
|
1384
1384
|
"."
|
|
1385
1385
|
/* TokenChars.LinkedDot */
|
|
1386
1386
|
);
|
|
1387
1387
|
case ":":
|
|
1388
1388
|
return C(N), N.next(), m(
|
|
1389
|
-
|
|
1389
|
+
S,
|
|
1390
1390
|
10,
|
|
1391
1391
|
":"
|
|
1392
1392
|
/* TokenChars.LinkedDelimiter */
|
|
1393
1393
|
);
|
|
1394
1394
|
default:
|
|
1395
|
-
return B(N) ? (F = m(
|
|
1395
|
+
return B(N) ? (F = m(S, 1, b(N)), S.braceNest = 0, S.inLinked = !1, F) : P(N, S) || A(N, S) ? (C(N), V(N, S)) : O(N, S) ? (C(N), m(S, 12, re(N))) : k(N, S) ? (C(N), M === "{" ? D(N, S) || F : m(S, 11, y(N))) : (I === 8 && u(CompileErrorCodes.INVALID_LINKED_FORMAT, i(), 0), S.braceNest = 0, S.inLinked = !1, L(N, S));
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
|
-
function L(N,
|
|
1398
|
+
function L(N, S) {
|
|
1399
1399
|
let I = {
|
|
1400
1400
|
type: 14
|
|
1401
1401
|
/* TokenTypes.EOF */
|
|
1402
1402
|
};
|
|
1403
|
-
if (
|
|
1404
|
-
return D(N,
|
|
1405
|
-
if (
|
|
1406
|
-
return
|
|
1403
|
+
if (S.braceNest > 0)
|
|
1404
|
+
return D(N, S) || p(S);
|
|
1405
|
+
if (S.inLinked)
|
|
1406
|
+
return V(N, S) || p(S);
|
|
1407
1407
|
switch (N.currentChar()) {
|
|
1408
1408
|
case "{":
|
|
1409
|
-
return D(N,
|
|
1409
|
+
return D(N, S) || p(S);
|
|
1410
1410
|
case "}":
|
|
1411
1411
|
return u(CompileErrorCodes.UNBALANCED_CLOSING_BRACE, i(), 0), N.next(), m(
|
|
1412
|
-
|
|
1412
|
+
S,
|
|
1413
1413
|
3,
|
|
1414
1414
|
"}"
|
|
1415
1415
|
/* TokenChars.BraceRight */
|
|
1416
1416
|
);
|
|
1417
1417
|
case "@":
|
|
1418
|
-
return
|
|
1418
|
+
return V(N, S) || p(S);
|
|
1419
1419
|
default:
|
|
1420
1420
|
if (B(N))
|
|
1421
|
-
return I = m(
|
|
1422
|
-
const { isModulo: M, hasSpace: G } =
|
|
1421
|
+
return I = m(S, 1, b(N)), S.braceNest = 0, S.inLinked = !1, I;
|
|
1422
|
+
const { isModulo: M, hasSpace: G } = H(N);
|
|
1423
1423
|
if (M)
|
|
1424
|
-
return G ? m(
|
|
1424
|
+
return G ? m(S, 0, Z(N)) : m(S, 4, K(N));
|
|
1425
1425
|
if (R(N))
|
|
1426
|
-
return m(
|
|
1426
|
+
return m(S, 0, Z(N));
|
|
1427
1427
|
break;
|
|
1428
1428
|
}
|
|
1429
1429
|
return I;
|
|
1430
1430
|
}
|
|
1431
1431
|
function W() {
|
|
1432
|
-
const { currentType: N, offset:
|
|
1433
|
-
return l.lastType = N, l.lastOffset =
|
|
1432
|
+
const { currentType: N, offset: S, startLoc: I, endLoc: F } = l;
|
|
1433
|
+
return l.lastType = N, l.lastOffset = S, l.lastStartLoc = I, l.lastEndLoc = F, l.offset = r(), l.startLoc = i(), n.currentChar() === EOF ? m(
|
|
1434
1434
|
l,
|
|
1435
1435
|
14
|
|
1436
1436
|
/* TokenTypes.EOF */
|
|
@@ -1459,9 +1459,9 @@ function fromEscapeSequence(e, t, o) {
|
|
|
1459
1459
|
function createParser(e = {}) {
|
|
1460
1460
|
const t = e.location !== !1, { onError: o } = e;
|
|
1461
1461
|
function n(g, f, w, E, ...T) {
|
|
1462
|
-
const
|
|
1463
|
-
if (
|
|
1464
|
-
const
|
|
1462
|
+
const P = g.currentPosition();
|
|
1463
|
+
if (P.offset += E, P.column += E, o) {
|
|
1464
|
+
const O = t ? createLocation(w, P) : null, A = createCompileError(f, O, {
|
|
1465
1465
|
domain: ERROR_DOMAIN$2,
|
|
1466
1466
|
args: T
|
|
1467
1467
|
});
|
|
@@ -1480,24 +1480,24 @@ function createParser(e = {}) {
|
|
|
1480
1480
|
return E.value = f, i(E, g.currentOffset(), g.currentPosition()), E;
|
|
1481
1481
|
}
|
|
1482
1482
|
function a(g, f) {
|
|
1483
|
-
const w = g.context(), { lastOffset: E, lastStartLoc: T } = w,
|
|
1484
|
-
return
|
|
1483
|
+
const w = g.context(), { lastOffset: E, lastStartLoc: T } = w, P = r(5, E, T);
|
|
1484
|
+
return P.index = parseInt(f, 10), g.nextToken(), i(P, g.currentOffset(), g.currentPosition()), P;
|
|
1485
1485
|
}
|
|
1486
1486
|
function l(g, f) {
|
|
1487
|
-
const w = g.context(), { lastOffset: E, lastStartLoc: T } = w,
|
|
1488
|
-
return
|
|
1487
|
+
const w = g.context(), { lastOffset: E, lastStartLoc: T } = w, P = r(4, E, T);
|
|
1488
|
+
return P.key = f, g.nextToken(), i(P, g.currentOffset(), g.currentPosition()), P;
|
|
1489
1489
|
}
|
|
1490
1490
|
function d(g, f) {
|
|
1491
|
-
const w = g.context(), { lastOffset: E, lastStartLoc: T } = w,
|
|
1492
|
-
return
|
|
1491
|
+
const w = g.context(), { lastOffset: E, lastStartLoc: T } = w, P = r(9, E, T);
|
|
1492
|
+
return P.value = f.replace(KNOWN_ESCAPES, fromEscapeSequence), g.nextToken(), i(P, g.currentOffset(), g.currentPosition()), P;
|
|
1493
1493
|
}
|
|
1494
1494
|
function c(g) {
|
|
1495
|
-
const f = g.nextToken(), w = g.context(), { lastOffset: E, lastStartLoc: T } = w,
|
|
1496
|
-
return f.type !== 12 ? (n(g, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER, w.lastStartLoc, 0),
|
|
1495
|
+
const f = g.nextToken(), w = g.context(), { lastOffset: E, lastStartLoc: T } = w, P = r(8, E, T);
|
|
1496
|
+
return f.type !== 12 ? (n(g, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER, w.lastStartLoc, 0), P.value = "", i(P, E, T), {
|
|
1497
1497
|
nextConsumeToken: f,
|
|
1498
|
-
node:
|
|
1499
|
-
}) : (f.value == null && n(g, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, w.lastStartLoc, 0, getTokenCaption(f)),
|
|
1500
|
-
node:
|
|
1498
|
+
node: P
|
|
1499
|
+
}) : (f.value == null && n(g, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, w.lastStartLoc, 0, getTokenCaption(f)), P.value = f.value || "", i(P, g.currentOffset(), g.currentPosition()), {
|
|
1500
|
+
node: P
|
|
1501
1501
|
});
|
|
1502
1502
|
}
|
|
1503
1503
|
function u(g, f) {
|
|
@@ -1526,8 +1526,8 @@ function createParser(e = {}) {
|
|
|
1526
1526
|
break;
|
|
1527
1527
|
default:
|
|
1528
1528
|
n(g, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY, f.lastStartLoc, 0);
|
|
1529
|
-
const T = g.context(),
|
|
1530
|
-
return
|
|
1529
|
+
const T = g.context(), P = r(7, T.offset, T.startLoc);
|
|
1530
|
+
return P.value = "", i(P, T.offset, T.startLoc), w.key = P, i(w, T.offset, T.startLoc), {
|
|
1531
1531
|
nextConsumeToken: E,
|
|
1532
1532
|
node: w
|
|
1533
1533
|
};
|
|
@@ -1539,41 +1539,41 @@ function createParser(e = {}) {
|
|
|
1539
1539
|
function p(g) {
|
|
1540
1540
|
const f = g.context(), w = f.currentType === 1 ? g.currentOffset() : f.offset, E = f.currentType === 1 ? f.endLoc : f.startLoc, T = r(2, w, E);
|
|
1541
1541
|
T.items = [];
|
|
1542
|
-
let
|
|
1542
|
+
let P = null;
|
|
1543
1543
|
do {
|
|
1544
|
-
const
|
|
1545
|
-
switch (
|
|
1544
|
+
const k = P || g.nextToken();
|
|
1545
|
+
switch (P = null, k.type) {
|
|
1546
1546
|
case 0:
|
|
1547
|
-
|
|
1547
|
+
k.value == null && n(g, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, getTokenCaption(k)), T.items.push(s(g, k.value || ""));
|
|
1548
1548
|
break;
|
|
1549
1549
|
case 6:
|
|
1550
|
-
|
|
1550
|
+
k.value == null && n(g, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, getTokenCaption(k)), T.items.push(a(g, k.value || ""));
|
|
1551
1551
|
break;
|
|
1552
1552
|
case 5:
|
|
1553
|
-
|
|
1553
|
+
k.value == null && n(g, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, getTokenCaption(k)), T.items.push(l(g, k.value || ""));
|
|
1554
1554
|
break;
|
|
1555
1555
|
case 7:
|
|
1556
|
-
|
|
1556
|
+
k.value == null && n(g, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, getTokenCaption(k)), T.items.push(d(g, k.value || ""));
|
|
1557
1557
|
break;
|
|
1558
1558
|
case 8:
|
|
1559
1559
|
const B = m(g);
|
|
1560
|
-
T.items.push(B.node),
|
|
1560
|
+
T.items.push(B.node), P = B.nextConsumeToken || null;
|
|
1561
1561
|
break;
|
|
1562
1562
|
}
|
|
1563
1563
|
} while (f.currentType !== 14 && f.currentType !== 1);
|
|
1564
|
-
const
|
|
1565
|
-
return i(T,
|
|
1564
|
+
const O = f.currentType === 1 ? f.lastOffset : g.currentOffset(), A = f.currentType === 1 ? f.lastEndLoc : g.currentPosition();
|
|
1565
|
+
return i(T, O, A), T;
|
|
1566
1566
|
}
|
|
1567
1567
|
function _(g, f, w, E) {
|
|
1568
1568
|
const T = g.context();
|
|
1569
|
-
let
|
|
1570
|
-
const
|
|
1571
|
-
|
|
1569
|
+
let P = E.items.length === 0;
|
|
1570
|
+
const O = r(1, f, w);
|
|
1571
|
+
O.cases = [], O.cases.push(E);
|
|
1572
1572
|
do {
|
|
1573
1573
|
const A = p(g);
|
|
1574
|
-
|
|
1574
|
+
P || (P = A.items.length === 0), O.cases.push(A);
|
|
1575
1575
|
} while (T.currentType !== 14);
|
|
1576
|
-
return
|
|
1576
|
+
return P && n(g, CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL, w, 0), i(O, g.currentOffset(), g.currentPosition()), O;
|
|
1577
1577
|
}
|
|
1578
1578
|
function v(g) {
|
|
1579
1579
|
const f = g.context(), { offset: w, startLoc: E } = f, T = p(g);
|
|
@@ -2180,13 +2180,13 @@ function createMessageContext(e = {}) {
|
|
|
2180
2180
|
plural: i,
|
|
2181
2181
|
linked: (g, ...f) => {
|
|
2182
2182
|
const [w, E] = f;
|
|
2183
|
-
let T = "text",
|
|
2184
|
-
f.length === 1 ? isObject$4(w) ? (
|
|
2185
|
-
const
|
|
2183
|
+
let T = "text", P = "";
|
|
2184
|
+
f.length === 1 ? isObject$4(w) ? (P = w.modifier || P, T = w.type || T) : isString$5(w) && (P = w || P) : f.length === 2 && (isString$5(w) && (P = w || P), isString$5(E) && (T = E || T));
|
|
2185
|
+
const O = c(g)(C), A = (
|
|
2186
2186
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2187
|
-
T === "vnode" && isArray$7(
|
|
2187
|
+
T === "vnode" && isArray$7(O) && P ? O[0] : O
|
|
2188
2188
|
);
|
|
2189
|
-
return
|
|
2189
|
+
return P ? u(P)(A, T) : A;
|
|
2190
2190
|
},
|
|
2191
2191
|
message: c,
|
|
2192
2192
|
type: _,
|
|
@@ -2321,7 +2321,7 @@ let _cid = 0;
|
|
|
2321
2321
|
function createCoreContext(e = {}) {
|
|
2322
2322
|
const t = isFunction$3(e.onWarn) ? e.onWarn : warn$1, o = isString$5(e.version) ? e.version : VERSION$2, n = isString$5(e.locale) || isFunction$3(e.locale) ? e.locale : DEFAULT_LOCALE, r = isFunction$3(n) ? DEFAULT_LOCALE : n, i = isArray$7(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || isString$5(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, s = isPlainObject$1(e.messages) ? e.messages : { [r]: {} }, a = isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [r]: {} }, l = isPlainObject$1(e.numberFormats) ? e.numberFormats : { [r]: {} }, d = assign$3({}, e.modifiers || {}, getDefaultLinkedModifiers()), c = e.pluralRules || {}, u = isFunction$3(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, _ = !!e.fallbackFormat, v = !!e.unresolving, C = isFunction$3(e.postTranslation) ? e.postTranslation : null, g = isPlainObject$1(e.processor) ? e.processor : null, f = isBoolean$1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, w = !!e.escapeParameter, E = isFunction$3(e.messageCompiler) ? e.messageCompiler : _compiler;
|
|
2323
2323
|
process.env.NODE_ENV !== "production" && isFunction$3(e.messageCompiler) && warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
2324
|
-
const T = isFunction$3(e.messageResolver) ? e.messageResolver : _resolver || resolveWithKeyValue,
|
|
2324
|
+
const T = isFunction$3(e.messageResolver) ? e.messageResolver : _resolver || resolveWithKeyValue, P = isFunction$3(e.localeFallbacker) ? e.localeFallbacker : _fallbacker || fallbackWithSimple, O = isObject$4(e.fallbackContext) ? e.fallbackContext : void 0, A = e, k = isObject$4(A.__datetimeFormatters) ? A.__datetimeFormatters : /* @__PURE__ */ new Map(), B = isObject$4(A.__numberFormatters) ? A.__numberFormatters : /* @__PURE__ */ new Map(), H = isObject$4(A.__meta) ? A.__meta : {};
|
|
2325
2325
|
_cid++;
|
|
2326
2326
|
const R = {
|
|
2327
2327
|
version: o,
|
|
@@ -2342,12 +2342,12 @@ function createCoreContext(e = {}) {
|
|
|
2342
2342
|
escapeParameter: w,
|
|
2343
2343
|
messageCompiler: E,
|
|
2344
2344
|
messageResolver: T,
|
|
2345
|
-
localeFallbacker:
|
|
2346
|
-
fallbackContext:
|
|
2345
|
+
localeFallbacker: P,
|
|
2346
|
+
fallbackContext: O,
|
|
2347
2347
|
onWarn: t,
|
|
2348
|
-
__meta:
|
|
2348
|
+
__meta: H
|
|
2349
2349
|
};
|
|
2350
|
-
return R.datetimeFormats = a, R.numberFormats = l, R.__datetimeFormatters =
|
|
2350
|
+
return R.datetimeFormats = a, R.numberFormats = l, R.__datetimeFormatters = k, R.__numberFormatters = B, process.env.NODE_ENV !== "production" && (R.__v_emitter = A.__v_emitter != null ? A.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && initI18nDevTools(R, o, H), R;
|
|
2351
2351
|
}
|
|
2352
2352
|
function isTranslateFallbackWarn(e, t) {
|
|
2353
2353
|
return e instanceof RegExp ? e.test(t) : e;
|
|
@@ -2507,13 +2507,13 @@ function translate$1(e, ...t) {
|
|
|
2507
2507
|
return r ? NOT_REOSLVED : l;
|
|
2508
2508
|
if (process.env.NODE_ENV !== "production" && isString$5(E) && e.messageCompiler == null)
|
|
2509
2509
|
return warn$1(`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;
|
|
2510
|
-
let
|
|
2511
|
-
const
|
|
2512
|
-
|
|
2513
|
-
}, A = isMessageFunction(E) ? E : compileMessageFormat(e, l, f, E, T,
|
|
2514
|
-
if (
|
|
2510
|
+
let P = !1;
|
|
2511
|
+
const O = () => {
|
|
2512
|
+
P = !0;
|
|
2513
|
+
}, A = isMessageFunction(E) ? E : compileMessageFormat(e, l, f, E, T, O);
|
|
2514
|
+
if (P)
|
|
2515
2515
|
return E;
|
|
2516
|
-
const
|
|
2516
|
+
const k = getMessageContextOptions(e, f, w, d), B = createMessageContext(k), H = evaluateMessage(e, A, B), R = n ? n(H, l) : H;
|
|
2517
2517
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2518
2518
|
const U = {
|
|
2519
2519
|
timestamp: Date.now(),
|
|
@@ -2540,8 +2540,8 @@ function resolveMessageFormat(e, t, o, n, r, i) {
|
|
|
2540
2540
|
key: t,
|
|
2541
2541
|
target: m
|
|
2542
2542
|
})), process.env.NODE_ENV !== "production" && o !== m) {
|
|
2543
|
-
const
|
|
2544
|
-
|
|
2543
|
+
const P = e.__v_emitter;
|
|
2544
|
+
P && P.emit("fallback", {
|
|
2545
2545
|
type: C,
|
|
2546
2546
|
key: t,
|
|
2547
2547
|
from: _,
|
|
@@ -2552,12 +2552,12 @@ function resolveMessageFormat(e, t, o, n, r, i) {
|
|
|
2552
2552
|
u = s[m] || {};
|
|
2553
2553
|
let f = null, w, E;
|
|
2554
2554
|
if (process.env.NODE_ENV !== "production" && inBrowser && (f = window.performance.now(), w = "intlify-message-resolve-start", E = "intlify-message-resolve-end", mark && mark(w)), (p = l(u, t)) === null && (p = u[t]), process.env.NODE_ENV !== "production" && inBrowser) {
|
|
2555
|
-
const
|
|
2556
|
-
|
|
2555
|
+
const P = window.performance.now(), O = e.__v_emitter;
|
|
2556
|
+
O && f && p && O.emit("message-resolve", {
|
|
2557
2557
|
type: "message-resolve",
|
|
2558
2558
|
key: t,
|
|
2559
2559
|
message: p,
|
|
2560
|
-
time:
|
|
2560
|
+
time: P - f,
|
|
2561
2561
|
groupId: `${C}:${t}`
|
|
2562
2562
|
}), w && E && mark && measure && (mark(E), measure("intlify message resolve", w, E));
|
|
2563
2563
|
}
|
|
@@ -2689,31 +2689,31 @@ function datetime(e, ...t) {
|
|
|
2689
2689
|
if (!isString$5(l) || l === "")
|
|
2690
2690
|
return new Intl.DateTimeFormat(v, u).format(d);
|
|
2691
2691
|
let g = {}, f, w = null, E = v, T = null;
|
|
2692
|
-
const
|
|
2693
|
-
for (let
|
|
2694
|
-
if (f = T = C[
|
|
2692
|
+
const P = "datetime format";
|
|
2693
|
+
for (let k = 0; k < C.length; k++) {
|
|
2694
|
+
if (f = T = C[k], process.env.NODE_ENV !== "production" && v !== f && isTranslateFallbackWarn(p, l) && i(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT, {
|
|
2695
2695
|
key: l,
|
|
2696
2696
|
target: f
|
|
2697
2697
|
})), process.env.NODE_ENV !== "production" && v !== f) {
|
|
2698
2698
|
const B = e.__v_emitter;
|
|
2699
2699
|
B && B.emit("fallback", {
|
|
2700
|
-
type:
|
|
2700
|
+
type: P,
|
|
2701
2701
|
key: l,
|
|
2702
2702
|
from: E,
|
|
2703
2703
|
to: T,
|
|
2704
|
-
groupId: `${
|
|
2704
|
+
groupId: `${P}:${l}`
|
|
2705
2705
|
});
|
|
2706
2706
|
}
|
|
2707
2707
|
if (g = o[f] || {}, w = g[l], isPlainObject$1(w))
|
|
2708
2708
|
break;
|
|
2709
|
-
handleMissing(e, l, f, m,
|
|
2709
|
+
handleMissing(e, l, f, m, P), E = T;
|
|
2710
2710
|
}
|
|
2711
2711
|
if (!isPlainObject$1(w) || !isString$5(f))
|
|
2712
2712
|
return n ? NOT_REOSLVED : l;
|
|
2713
|
-
let
|
|
2714
|
-
isEmptyObject(u) || (
|
|
2715
|
-
let A = a.get(
|
|
2716
|
-
return A || (A = new Intl.DateTimeFormat(f, assign$3({}, w, u)), a.set(
|
|
2713
|
+
let O = `${f}__${l}`;
|
|
2714
|
+
isEmptyObject(u) || (O = `${O}__${JSON.stringify(u)}`);
|
|
2715
|
+
let A = a.get(O);
|
|
2716
|
+
return A || (A = new Intl.DateTimeFormat(f, assign$3({}, w, u)), a.set(O, A)), _ ? A.formatToParts(d) : A.format(d);
|
|
2717
2717
|
}
|
|
2718
2718
|
const DATETIME_FORMAT_OPTIONS_KEYS = [
|
|
2719
2719
|
"localeMatcher",
|
|
@@ -2783,31 +2783,31 @@ function number$1(e, ...t) {
|
|
|
2783
2783
|
if (!isString$5(l) || l === "")
|
|
2784
2784
|
return new Intl.NumberFormat(v, u).format(d);
|
|
2785
2785
|
let g = {}, f, w = null, E = v, T = null;
|
|
2786
|
-
const
|
|
2787
|
-
for (let
|
|
2788
|
-
if (f = T = C[
|
|
2786
|
+
const P = "number format";
|
|
2787
|
+
for (let k = 0; k < C.length; k++) {
|
|
2788
|
+
if (f = T = C[k], process.env.NODE_ENV !== "production" && v !== f && isTranslateFallbackWarn(p, l) && i(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2789
2789
|
key: l,
|
|
2790
2790
|
target: f
|
|
2791
2791
|
})), process.env.NODE_ENV !== "production" && v !== f) {
|
|
2792
2792
|
const B = e.__v_emitter;
|
|
2793
2793
|
B && B.emit("fallback", {
|
|
2794
|
-
type:
|
|
2794
|
+
type: P,
|
|
2795
2795
|
key: l,
|
|
2796
2796
|
from: E,
|
|
2797
2797
|
to: T,
|
|
2798
|
-
groupId: `${
|
|
2798
|
+
groupId: `${P}:${l}`
|
|
2799
2799
|
});
|
|
2800
2800
|
}
|
|
2801
2801
|
if (g = o[f] || {}, w = g[l], isPlainObject$1(w))
|
|
2802
2802
|
break;
|
|
2803
|
-
handleMissing(e, l, f, m,
|
|
2803
|
+
handleMissing(e, l, f, m, P), E = T;
|
|
2804
2804
|
}
|
|
2805
2805
|
if (!isPlainObject$1(w) || !isString$5(f))
|
|
2806
2806
|
return n ? NOT_REOSLVED : l;
|
|
2807
|
-
let
|
|
2808
|
-
isEmptyObject(u) || (
|
|
2809
|
-
let A = a.get(
|
|
2810
|
-
return A || (A = new Intl.NumberFormat(f, assign$3({}, w, u)), a.set(
|
|
2807
|
+
let O = `${f}__${l}`;
|
|
2808
|
+
isEmptyObject(u) || (O = `${O}__${JSON.stringify(u)}`);
|
|
2809
|
+
let A = a.get(O);
|
|
2810
|
+
return A || (A = new Intl.NumberFormat(f, assign$3({}, w, u)), a.set(O, A)), _ ? A.formatToParts(d) : A.format(d);
|
|
2811
2811
|
}
|
|
2812
2812
|
const NUMBER_FORMAT_OPTIONS_KEYS = [
|
|
2813
2813
|
"localeMatcher",
|
|
@@ -3027,8 +3027,8 @@ function createComposer(e = {}, t) {
|
|
|
3027
3027
|
), d = ref(getLocaleMessages(a.value, e)), c = ref(isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), u = ref(isPlainObject$1(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
3028
3028
|
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, _ = o ? o.fallbackRoot : isBoolean$1(e.fallbackRoot) ? e.fallbackRoot : !0, v = !!e.fallbackFormat, C = isFunction$3(e.missing) ? e.missing : null, g = isFunction$3(e.missing) ? defineCoreMissingHandler(e.missing) : null, f = isFunction$3(e.postTranslation) ? e.postTranslation : null, w = o ? o.warnHtmlMessage : isBoolean$1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
|
|
3029
3029
|
const T = o ? o.modifiers : isPlainObject$1(e.modifiers) ? e.modifiers : {};
|
|
3030
|
-
let
|
|
3031
|
-
|
|
3030
|
+
let P = e.pluralRules || o && o.pluralRules, O;
|
|
3031
|
+
O = (() => {
|
|
3032
3032
|
r && setFallbackContext(null);
|
|
3033
3033
|
const $ = {
|
|
3034
3034
|
version: VERSION$1,
|
|
@@ -3036,7 +3036,7 @@ function createComposer(e = {}, t) {
|
|
|
3036
3036
|
fallbackLocale: l.value,
|
|
3037
3037
|
messages: d.value,
|
|
3038
3038
|
modifiers: T,
|
|
3039
|
-
pluralRules:
|
|
3039
|
+
pluralRules: P,
|
|
3040
3040
|
missing: g === null ? void 0 : g,
|
|
3041
3041
|
missingWarn: m,
|
|
3042
3042
|
fallbackWarn: p,
|
|
@@ -3049,11 +3049,11 @@ function createComposer(e = {}, t) {
|
|
|
3049
3049
|
messageCompiler: e.messageCompiler,
|
|
3050
3050
|
__meta: { framework: "vue" }
|
|
3051
3051
|
};
|
|
3052
|
-
$.datetimeFormats = c.value, $.numberFormats = u.value, $.__datetimeFormatters = isPlainObject$1(
|
|
3052
|
+
$.datetimeFormats = c.value, $.numberFormats = u.value, $.__datetimeFormatters = isPlainObject$1(O) ? O.__datetimeFormatters : void 0, $.__numberFormatters = isPlainObject$1(O) ? O.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && ($.__v_emitter = isPlainObject$1(O) ? O.__v_emitter : void 0);
|
|
3053
3053
|
const x = createCoreContext($);
|
|
3054
3054
|
return r && setFallbackContext(x), x;
|
|
3055
|
-
})(), updateFallbackLocale(
|
|
3056
|
-
function
|
|
3055
|
+
})(), updateFallbackLocale(O, a.value, l.value);
|
|
3056
|
+
function k() {
|
|
3057
3057
|
return [
|
|
3058
3058
|
a.value,
|
|
3059
3059
|
l.value,
|
|
@@ -3065,36 +3065,36 @@ function createComposer(e = {}, t) {
|
|
|
3065
3065
|
const B = computed({
|
|
3066
3066
|
get: () => a.value,
|
|
3067
3067
|
set: ($) => {
|
|
3068
|
-
a.value = $,
|
|
3068
|
+
a.value = $, O.locale = a.value;
|
|
3069
3069
|
}
|
|
3070
|
-
}),
|
|
3070
|
+
}), H = computed({
|
|
3071
3071
|
get: () => l.value,
|
|
3072
3072
|
set: ($) => {
|
|
3073
|
-
l.value = $,
|
|
3073
|
+
l.value = $, O.fallbackLocale = l.value, updateFallbackLocale(O, a.value, $);
|
|
3074
3074
|
}
|
|
3075
3075
|
}), R = computed(() => d.value), U = /* @__PURE__ */ computed(() => c.value), z = /* @__PURE__ */ computed(() => u.value);
|
|
3076
3076
|
function Q() {
|
|
3077
3077
|
return isFunction$3(f) ? f : null;
|
|
3078
3078
|
}
|
|
3079
3079
|
function J($) {
|
|
3080
|
-
f = $,
|
|
3080
|
+
f = $, O.postTranslation = $;
|
|
3081
3081
|
}
|
|
3082
|
-
function
|
|
3082
|
+
function j() {
|
|
3083
3083
|
return C;
|
|
3084
3084
|
}
|
|
3085
3085
|
function K($) {
|
|
3086
|
-
$ !== null && (g = defineCoreMissingHandler($)), C = $,
|
|
3086
|
+
$ !== null && (g = defineCoreMissingHandler($)), C = $, O.missing = g;
|
|
3087
3087
|
}
|
|
3088
3088
|
function Z($, x) {
|
|
3089
3089
|
return $ !== "translate" || !x.resolvedMessage;
|
|
3090
3090
|
}
|
|
3091
3091
|
const Y = ($, x, q, oe, ce, pe) => {
|
|
3092
|
-
|
|
3092
|
+
k();
|
|
3093
3093
|
let ue;
|
|
3094
3094
|
try {
|
|
3095
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (
|
|
3095
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (O.fallbackContext = o ? getFallbackContext() : void 0), ue = $(O);
|
|
3096
3096
|
} finally {
|
|
3097
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (
|
|
3097
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (O.fallbackContext = void 0);
|
|
3098
3098
|
}
|
|
3099
3099
|
if (q !== "translate exists" && // for not `te` (e.g `t`)
|
|
3100
3100
|
isNumber$3(ue) && ue === NOT_REOSLVED || q === "translate exists" && !ue) {
|
|
@@ -3103,7 +3103,7 @@ function createComposer(e = {}, t) {
|
|
|
3103
3103
|
key: de,
|
|
3104
3104
|
type: q
|
|
3105
3105
|
})), process.env.NODE_ENV !== "production")) {
|
|
3106
|
-
const { __v_emitter: he } =
|
|
3106
|
+
const { __v_emitter: he } = O;
|
|
3107
3107
|
he && _ && he.emit("fallback", {
|
|
3108
3108
|
type: q,
|
|
3109
3109
|
key: de,
|
|
@@ -3172,7 +3172,7 @@ function createComposer(e = {}, t) {
|
|
|
3172
3172
|
(x) => isString$5(x) || isArray$7(x)
|
|
3173
3173
|
);
|
|
3174
3174
|
}
|
|
3175
|
-
function
|
|
3175
|
+
function V(...$) {
|
|
3176
3176
|
return Y(
|
|
3177
3177
|
(x) => Reflect.apply(datetime, null, [x, ...$]),
|
|
3178
3178
|
() => parseDateTimeArgs(...$),
|
|
@@ -3184,21 +3184,21 @@ function createComposer(e = {}, t) {
|
|
|
3184
3184
|
);
|
|
3185
3185
|
}
|
|
3186
3186
|
function L($) {
|
|
3187
|
-
|
|
3187
|
+
P = $, O.pluralRules = P;
|
|
3188
3188
|
}
|
|
3189
3189
|
function W($, x) {
|
|
3190
3190
|
return Y(() => {
|
|
3191
3191
|
if (!$)
|
|
3192
3192
|
return !1;
|
|
3193
|
-
const q = isString$5(x) ? x : a.value, oe = I(q), ce =
|
|
3193
|
+
const q = isString$5(x) ? x : a.value, oe = I(q), ce = O.messageResolver(oe, $);
|
|
3194
3194
|
return isMessageAST(ce) || isMessageFunction(ce) || isString$5(ce);
|
|
3195
3195
|
}, () => [$], "translate exists", (q) => Reflect.apply(q.te, q, [$, x]), NOOP_RETURN_FALSE, (q) => isBoolean$1(q));
|
|
3196
3196
|
}
|
|
3197
3197
|
function N($) {
|
|
3198
3198
|
let x = null;
|
|
3199
|
-
const q = fallbackWithLocaleChain(
|
|
3199
|
+
const q = fallbackWithLocaleChain(O, l.value, a.value);
|
|
3200
3200
|
for (let oe = 0; oe < q.length; oe++) {
|
|
3201
|
-
const ce = d.value[q[oe]] || {}, pe =
|
|
3201
|
+
const ce = d.value[q[oe]] || {}, pe = O.messageResolver(ce, $);
|
|
3202
3202
|
if (pe != null) {
|
|
3203
3203
|
x = pe;
|
|
3204
3204
|
break;
|
|
@@ -3206,7 +3206,7 @@ function createComposer(e = {}, t) {
|
|
|
3206
3206
|
}
|
|
3207
3207
|
return x;
|
|
3208
3208
|
}
|
|
3209
|
-
function
|
|
3209
|
+
function S($) {
|
|
3210
3210
|
const x = N($);
|
|
3211
3211
|
return x ?? (o ? o.tm($) || {} : {});
|
|
3212
3212
|
}
|
|
@@ -3220,47 +3220,47 @@ function createComposer(e = {}, t) {
|
|
|
3220
3220
|
hasOwn$1(q, oe) && handleFlatJson(q[oe]);
|
|
3221
3221
|
x = q[$];
|
|
3222
3222
|
}
|
|
3223
|
-
d.value[$] = x,
|
|
3223
|
+
d.value[$] = x, O.messages = d.value;
|
|
3224
3224
|
}
|
|
3225
3225
|
function M($, x) {
|
|
3226
3226
|
d.value[$] = d.value[$] || {};
|
|
3227
3227
|
const q = { [$]: x };
|
|
3228
3228
|
for (const oe in q)
|
|
3229
3229
|
hasOwn$1(q, oe) && handleFlatJson(q[oe]);
|
|
3230
|
-
x = q[$], deepCopy$1(x, d.value[$]),
|
|
3230
|
+
x = q[$], deepCopy$1(x, d.value[$]), O.messages = d.value;
|
|
3231
3231
|
}
|
|
3232
3232
|
function G($) {
|
|
3233
3233
|
return c.value[$] || {};
|
|
3234
3234
|
}
|
|
3235
3235
|
function ae($, x) {
|
|
3236
|
-
c.value[$] = x,
|
|
3236
|
+
c.value[$] = x, O.datetimeFormats = c.value, clearDateTimeFormat(O, $, x);
|
|
3237
3237
|
}
|
|
3238
3238
|
function le($, x) {
|
|
3239
|
-
c.value[$] = assign$3(c.value[$] || {}, x),
|
|
3239
|
+
c.value[$] = assign$3(c.value[$] || {}, x), O.datetimeFormats = c.value, clearDateTimeFormat(O, $, x);
|
|
3240
3240
|
}
|
|
3241
3241
|
function me($) {
|
|
3242
3242
|
return u.value[$] || {};
|
|
3243
3243
|
}
|
|
3244
3244
|
function fe($, x) {
|
|
3245
|
-
u.value[$] = x,
|
|
3245
|
+
u.value[$] = x, O.numberFormats = u.value, clearNumberFormat(O, $, x);
|
|
3246
3246
|
}
|
|
3247
3247
|
function ge($, x) {
|
|
3248
|
-
u.value[$] = assign$3(u.value[$] || {}, x),
|
|
3248
|
+
u.value[$] = assign$3(u.value[$] || {}, x), O.numberFormats = u.value, clearNumberFormat(O, $, x);
|
|
3249
3249
|
}
|
|
3250
3250
|
composerID++, o && inBrowser && (watch(o.locale, ($) => {
|
|
3251
|
-
s && (a.value = $,
|
|
3251
|
+
s && (a.value = $, O.locale = $, updateFallbackLocale(O, a.value, l.value));
|
|
3252
3252
|
}), watch(o.fallbackLocale, ($) => {
|
|
3253
|
-
s && (l.value = $,
|
|
3253
|
+
s && (l.value = $, O.fallbackLocale = $, updateFallbackLocale(O, a.value, l.value));
|
|
3254
3254
|
}));
|
|
3255
3255
|
const ne = {
|
|
3256
3256
|
id: composerID,
|
|
3257
3257
|
locale: B,
|
|
3258
|
-
fallbackLocale:
|
|
3258
|
+
fallbackLocale: H,
|
|
3259
3259
|
get inheritLocale() {
|
|
3260
3260
|
return s;
|
|
3261
3261
|
},
|
|
3262
3262
|
set inheritLocale($) {
|
|
3263
|
-
s = $, $ && o && (a.value = o.locale.value, l.value = o.fallbackLocale.value, updateFallbackLocale(
|
|
3263
|
+
s = $, $ && o && (a.value = o.locale.value, l.value = o.fallbackLocale.value, updateFallbackLocale(O, a.value, l.value));
|
|
3264
3264
|
},
|
|
3265
3265
|
get availableLocales() {
|
|
3266
3266
|
return Object.keys(d.value).sort();
|
|
@@ -3270,7 +3270,7 @@ function createComposer(e = {}, t) {
|
|
|
3270
3270
|
return T;
|
|
3271
3271
|
},
|
|
3272
3272
|
get pluralRules() {
|
|
3273
|
-
return
|
|
3273
|
+
return P || {};
|
|
3274
3274
|
},
|
|
3275
3275
|
get isGlobal() {
|
|
3276
3276
|
return r;
|
|
@@ -3279,13 +3279,13 @@ function createComposer(e = {}, t) {
|
|
|
3279
3279
|
return m;
|
|
3280
3280
|
},
|
|
3281
3281
|
set missingWarn($) {
|
|
3282
|
-
m = $,
|
|
3282
|
+
m = $, O.missingWarn = m;
|
|
3283
3283
|
},
|
|
3284
3284
|
get fallbackWarn() {
|
|
3285
3285
|
return p;
|
|
3286
3286
|
},
|
|
3287
3287
|
set fallbackWarn($) {
|
|
3288
|
-
p = $,
|
|
3288
|
+
p = $, O.fallbackWarn = p;
|
|
3289
3289
|
},
|
|
3290
3290
|
get fallbackRoot() {
|
|
3291
3291
|
return _;
|
|
@@ -3297,19 +3297,19 @@ function createComposer(e = {}, t) {
|
|
|
3297
3297
|
return v;
|
|
3298
3298
|
},
|
|
3299
3299
|
set fallbackFormat($) {
|
|
3300
|
-
v = $,
|
|
3300
|
+
v = $, O.fallbackFormat = v;
|
|
3301
3301
|
},
|
|
3302
3302
|
get warnHtmlMessage() {
|
|
3303
3303
|
return w;
|
|
3304
3304
|
},
|
|
3305
3305
|
set warnHtmlMessage($) {
|
|
3306
|
-
w = $,
|
|
3306
|
+
w = $, O.warnHtmlMessage = $;
|
|
3307
3307
|
},
|
|
3308
3308
|
get escapeParameter() {
|
|
3309
3309
|
return E;
|
|
3310
3310
|
},
|
|
3311
3311
|
set escapeParameter($) {
|
|
3312
|
-
E = $,
|
|
3312
|
+
E = $, O.escapeParameter = $;
|
|
3313
3313
|
},
|
|
3314
3314
|
t: ee,
|
|
3315
3315
|
getLocaleMessage: I,
|
|
@@ -3317,14 +3317,14 @@ function createComposer(e = {}, t) {
|
|
|
3317
3317
|
mergeLocaleMessage: M,
|
|
3318
3318
|
getPostTranslationHandler: Q,
|
|
3319
3319
|
setPostTranslationHandler: J,
|
|
3320
|
-
getMissingHandler:
|
|
3320
|
+
getMissingHandler: j,
|
|
3321
3321
|
setMissingHandler: K,
|
|
3322
3322
|
[SetPluralRulesSymbol]: L
|
|
3323
3323
|
};
|
|
3324
|
-
return ne.datetimeFormats = U, ne.numberFormats = z, ne.rt = X, ne.te = W, ne.tm =
|
|
3325
|
-
|
|
3324
|
+
return ne.datetimeFormats = U, ne.numberFormats = z, ne.rt = X, ne.te = W, ne.tm = S, ne.d = se, ne.n = te, ne.getDateTimeFormat = G, ne.setDateTimeFormat = ae, ne.mergeDateTimeFormat = le, ne.getNumberFormat = me, ne.setNumberFormat = fe, ne.mergeNumberFormat = ge, ne[InejctWithOptionSymbol] = n, ne[TranslateVNodeSymbol] = b, ne[DatetimePartsSymbol] = V, ne[NumberPartsSymbol] = D, process.env.NODE_ENV !== "production" && (ne[EnableEmitter] = ($) => {
|
|
3325
|
+
O.__v_emitter = $;
|
|
3326
3326
|
}, ne[DisableEmitter] = () => {
|
|
3327
|
-
|
|
3327
|
+
O.__v_emitter = void 0;
|
|
3328
3328
|
}), ne;
|
|
3329
3329
|
}
|
|
3330
3330
|
function convertComposerOptions(e) {
|
|
@@ -3333,9 +3333,9 @@ function convertComposerOptions(e) {
|
|
|
3333
3333
|
let _ = e.messages;
|
|
3334
3334
|
if (isPlainObject$1(e.sharedMessages)) {
|
|
3335
3335
|
const T = e.sharedMessages;
|
|
3336
|
-
_ = Object.keys(T).reduce((
|
|
3337
|
-
const
|
|
3338
|
-
return assign$3(
|
|
3336
|
+
_ = Object.keys(T).reduce((O, A) => {
|
|
3337
|
+
const k = O[A] || (O[A] = {});
|
|
3338
|
+
return assign$3(k, T[A]), O;
|
|
3339
3339
|
}, _ || {});
|
|
3340
3340
|
}
|
|
3341
3341
|
const { __i18n: v, __root: C, __injectWithOption: g } = e, f = e.datetimeFormats, w = e.numberFormats, E = e.flatJson;
|
|
@@ -4268,7 +4268,7 @@ function useI18nForLegacy(e, t, o, n = {}) {
|
|
|
4268
4268
|
// prettier-ignore
|
|
4269
4269
|
!r || s ? o.fallbackLocale.value : isString$5(n.fallbackLocale) || isArray$7(n.fallbackLocale) || isPlainObject$1(n.fallbackLocale) || n.fallbackLocale === !1 ? n.fallbackLocale : a.value
|
|
4270
4270
|
), d = ref(getLocaleMessages(a.value, n)), c = ref(isPlainObject$1(n.datetimeFormats) ? n.datetimeFormats : { [a.value]: {} }), u = ref(isPlainObject$1(n.numberFormats) ? n.numberFormats : { [a.value]: {} }), m = r ? o.missingWarn : isBoolean$1(n.missingWarn) || isRegExp$1(n.missingWarn) ? n.missingWarn : !0, p = r ? o.fallbackWarn : isBoolean$1(n.fallbackWarn) || isRegExp$1(n.fallbackWarn) ? n.fallbackWarn : !0, _ = r ? o.fallbackRoot : isBoolean$1(n.fallbackRoot) ? n.fallbackRoot : !0, v = !!n.fallbackFormat, C = isFunction$3(n.missing) ? n.missing : null, g = isFunction$3(n.postTranslation) ? n.postTranslation : null, f = r ? o.warnHtmlMessage : isBoolean$1(n.warnHtmlMessage) ? n.warnHtmlMessage : !0, w = !!n.escapeParameter, E = r ? o.modifiers : isPlainObject$1(n.modifiers) ? n.modifiers : {}, T = n.pluralRules || r && o.pluralRules;
|
|
4271
|
-
function
|
|
4271
|
+
function P() {
|
|
4272
4272
|
return [
|
|
4273
4273
|
a.value,
|
|
4274
4274
|
l.value,
|
|
@@ -4277,91 +4277,91 @@ function useI18nForLegacy(e, t, o, n = {}) {
|
|
|
4277
4277
|
u.value
|
|
4278
4278
|
];
|
|
4279
4279
|
}
|
|
4280
|
-
const
|
|
4280
|
+
const O = computed({
|
|
4281
4281
|
get: () => i.value ? i.value.locale.value : a.value,
|
|
4282
|
-
set: (
|
|
4283
|
-
i.value && (i.value.locale.value =
|
|
4282
|
+
set: (S) => {
|
|
4283
|
+
i.value && (i.value.locale.value = S), a.value = S;
|
|
4284
4284
|
}
|
|
4285
4285
|
}), A = computed({
|
|
4286
4286
|
get: () => i.value ? i.value.fallbackLocale.value : l.value,
|
|
4287
|
-
set: (
|
|
4288
|
-
i.value && (i.value.fallbackLocale.value =
|
|
4287
|
+
set: (S) => {
|
|
4288
|
+
i.value && (i.value.fallbackLocale.value = S), l.value = S;
|
|
4289
4289
|
}
|
|
4290
|
-
}),
|
|
4290
|
+
}), k = computed(() => i.value ? i.value.messages.value : d.value), B = computed(() => c.value), H = computed(() => u.value);
|
|
4291
4291
|
function R() {
|
|
4292
4292
|
return i.value ? i.value.getPostTranslationHandler() : g;
|
|
4293
4293
|
}
|
|
4294
|
-
function U(
|
|
4295
|
-
i.value && i.value.setPostTranslationHandler(
|
|
4294
|
+
function U(S) {
|
|
4295
|
+
i.value && i.value.setPostTranslationHandler(S);
|
|
4296
4296
|
}
|
|
4297
4297
|
function z() {
|
|
4298
4298
|
return i.value ? i.value.getMissingHandler() : C;
|
|
4299
4299
|
}
|
|
4300
|
-
function Q(
|
|
4301
|
-
i.value && i.value.setMissingHandler(
|
|
4300
|
+
function Q(S) {
|
|
4301
|
+
i.value && i.value.setMissingHandler(S);
|
|
4302
4302
|
}
|
|
4303
|
-
function J(
|
|
4304
|
-
return
|
|
4303
|
+
function J(S) {
|
|
4304
|
+
return P(), S();
|
|
4305
4305
|
}
|
|
4306
|
-
function
|
|
4307
|
-
return i.value ? J(() => Reflect.apply(i.value.t, null, [...
|
|
4306
|
+
function j(...S) {
|
|
4307
|
+
return i.value ? J(() => Reflect.apply(i.value.t, null, [...S])) : J(() => "");
|
|
4308
4308
|
}
|
|
4309
|
-
function K(...
|
|
4310
|
-
return i.value ? Reflect.apply(i.value.rt, null, [...
|
|
4309
|
+
function K(...S) {
|
|
4310
|
+
return i.value ? Reflect.apply(i.value.rt, null, [...S]) : "";
|
|
4311
4311
|
}
|
|
4312
|
-
function Z(...
|
|
4313
|
-
return i.value ? J(() => Reflect.apply(i.value.d, null, [...
|
|
4312
|
+
function Z(...S) {
|
|
4313
|
+
return i.value ? J(() => Reflect.apply(i.value.d, null, [...S])) : J(() => "");
|
|
4314
4314
|
}
|
|
4315
|
-
function Y(...
|
|
4316
|
-
return i.value ? J(() => Reflect.apply(i.value.n, null, [...
|
|
4315
|
+
function Y(...S) {
|
|
4316
|
+
return i.value ? J(() => Reflect.apply(i.value.n, null, [...S])) : J(() => "");
|
|
4317
4317
|
}
|
|
4318
|
-
function ee(
|
|
4319
|
-
return i.value ? i.value.tm(
|
|
4318
|
+
function ee(S) {
|
|
4319
|
+
return i.value ? i.value.tm(S) : {};
|
|
4320
4320
|
}
|
|
4321
|
-
function X(
|
|
4322
|
-
return i.value ? i.value.te(
|
|
4321
|
+
function X(S, I) {
|
|
4322
|
+
return i.value ? i.value.te(S, I) : !1;
|
|
4323
4323
|
}
|
|
4324
|
-
function se(
|
|
4325
|
-
return i.value ? i.value.getLocaleMessage(
|
|
4324
|
+
function se(S) {
|
|
4325
|
+
return i.value ? i.value.getLocaleMessage(S) : {};
|
|
4326
4326
|
}
|
|
4327
|
-
function te(
|
|
4328
|
-
i.value && (i.value.setLocaleMessage(
|
|
4327
|
+
function te(S, I) {
|
|
4328
|
+
i.value && (i.value.setLocaleMessage(S, I), d.value[S] = I);
|
|
4329
4329
|
}
|
|
4330
|
-
function ie(
|
|
4331
|
-
i.value && i.value.mergeLocaleMessage(
|
|
4330
|
+
function ie(S, I) {
|
|
4331
|
+
i.value && i.value.mergeLocaleMessage(S, I);
|
|
4332
4332
|
}
|
|
4333
|
-
function re(
|
|
4334
|
-
return i.value ? i.value.getDateTimeFormat(
|
|
4333
|
+
function re(S) {
|
|
4334
|
+
return i.value ? i.value.getDateTimeFormat(S) : {};
|
|
4335
4335
|
}
|
|
4336
|
-
function y(
|
|
4337
|
-
i.value && (i.value.setDateTimeFormat(
|
|
4336
|
+
function y(S, I) {
|
|
4337
|
+
i.value && (i.value.setDateTimeFormat(S, I), c.value[S] = I);
|
|
4338
4338
|
}
|
|
4339
|
-
function b(
|
|
4340
|
-
i.value && i.value.mergeDateTimeFormat(
|
|
4339
|
+
function b(S, I) {
|
|
4340
|
+
i.value && i.value.mergeDateTimeFormat(S, I);
|
|
4341
4341
|
}
|
|
4342
|
-
function D(
|
|
4343
|
-
return i.value ? i.value.getNumberFormat(
|
|
4342
|
+
function D(S) {
|
|
4343
|
+
return i.value ? i.value.getNumberFormat(S) : {};
|
|
4344
4344
|
}
|
|
4345
|
-
function
|
|
4346
|
-
i.value && (i.value.setNumberFormat(
|
|
4345
|
+
function V(S, I) {
|
|
4346
|
+
i.value && (i.value.setNumberFormat(S, I), u.value[S] = I);
|
|
4347
4347
|
}
|
|
4348
|
-
function L(
|
|
4349
|
-
i.value && i.value.mergeNumberFormat(
|
|
4348
|
+
function L(S, I) {
|
|
4349
|
+
i.value && i.value.mergeNumberFormat(S, I);
|
|
4350
4350
|
}
|
|
4351
4351
|
const W = {
|
|
4352
4352
|
get id() {
|
|
4353
4353
|
return i.value ? i.value.id : -1;
|
|
4354
4354
|
},
|
|
4355
|
-
locale:
|
|
4355
|
+
locale: O,
|
|
4356
4356
|
fallbackLocale: A,
|
|
4357
|
-
messages:
|
|
4357
|
+
messages: k,
|
|
4358
4358
|
datetimeFormats: B,
|
|
4359
|
-
numberFormats:
|
|
4359
|
+
numberFormats: H,
|
|
4360
4360
|
get inheritLocale() {
|
|
4361
4361
|
return i.value ? i.value.inheritLocale : s;
|
|
4362
4362
|
},
|
|
4363
|
-
set inheritLocale(
|
|
4364
|
-
i.value && (i.value.inheritLocale =
|
|
4363
|
+
set inheritLocale(S) {
|
|
4364
|
+
i.value && (i.value.inheritLocale = S);
|
|
4365
4365
|
},
|
|
4366
4366
|
get availableLocales() {
|
|
4367
4367
|
return i.value ? i.value.availableLocales : Object.keys(d.value);
|
|
@@ -4378,40 +4378,40 @@ function useI18nForLegacy(e, t, o, n = {}) {
|
|
|
4378
4378
|
get missingWarn() {
|
|
4379
4379
|
return i.value ? i.value.missingWarn : m;
|
|
4380
4380
|
},
|
|
4381
|
-
set missingWarn(
|
|
4382
|
-
i.value && (i.value.missingWarn =
|
|
4381
|
+
set missingWarn(S) {
|
|
4382
|
+
i.value && (i.value.missingWarn = S);
|
|
4383
4383
|
},
|
|
4384
4384
|
get fallbackWarn() {
|
|
4385
4385
|
return i.value ? i.value.fallbackWarn : p;
|
|
4386
4386
|
},
|
|
4387
|
-
set fallbackWarn(
|
|
4388
|
-
i.value && (i.value.missingWarn =
|
|
4387
|
+
set fallbackWarn(S) {
|
|
4388
|
+
i.value && (i.value.missingWarn = S);
|
|
4389
4389
|
},
|
|
4390
4390
|
get fallbackRoot() {
|
|
4391
4391
|
return i.value ? i.value.fallbackRoot : _;
|
|
4392
4392
|
},
|
|
4393
|
-
set fallbackRoot(
|
|
4394
|
-
i.value && (i.value.fallbackRoot =
|
|
4393
|
+
set fallbackRoot(S) {
|
|
4394
|
+
i.value && (i.value.fallbackRoot = S);
|
|
4395
4395
|
},
|
|
4396
4396
|
get fallbackFormat() {
|
|
4397
4397
|
return i.value ? i.value.fallbackFormat : v;
|
|
4398
4398
|
},
|
|
4399
|
-
set fallbackFormat(
|
|
4400
|
-
i.value && (i.value.fallbackFormat =
|
|
4399
|
+
set fallbackFormat(S) {
|
|
4400
|
+
i.value && (i.value.fallbackFormat = S);
|
|
4401
4401
|
},
|
|
4402
4402
|
get warnHtmlMessage() {
|
|
4403
4403
|
return i.value ? i.value.warnHtmlMessage : f;
|
|
4404
4404
|
},
|
|
4405
|
-
set warnHtmlMessage(
|
|
4406
|
-
i.value && (i.value.warnHtmlMessage =
|
|
4405
|
+
set warnHtmlMessage(S) {
|
|
4406
|
+
i.value && (i.value.warnHtmlMessage = S);
|
|
4407
4407
|
},
|
|
4408
4408
|
get escapeParameter() {
|
|
4409
4409
|
return i.value ? i.value.escapeParameter : w;
|
|
4410
4410
|
},
|
|
4411
|
-
set escapeParameter(
|
|
4412
|
-
i.value && (i.value.escapeParameter =
|
|
4411
|
+
set escapeParameter(S) {
|
|
4412
|
+
i.value && (i.value.escapeParameter = S);
|
|
4413
4413
|
},
|
|
4414
|
-
t:
|
|
4414
|
+
t: j,
|
|
4415
4415
|
getPostTranslationHandler: R,
|
|
4416
4416
|
setPostTranslationHandler: U,
|
|
4417
4417
|
getMissingHandler: z,
|
|
@@ -4428,23 +4428,23 @@ function useI18nForLegacy(e, t, o, n = {}) {
|
|
|
4428
4428
|
setDateTimeFormat: y,
|
|
4429
4429
|
mergeDateTimeFormat: b,
|
|
4430
4430
|
getNumberFormat: D,
|
|
4431
|
-
setNumberFormat:
|
|
4431
|
+
setNumberFormat: V,
|
|
4432
4432
|
mergeNumberFormat: L
|
|
4433
4433
|
};
|
|
4434
|
-
function N(
|
|
4435
|
-
|
|
4436
|
-
|
|
4434
|
+
function N(S) {
|
|
4435
|
+
S.locale.value = a.value, S.fallbackLocale.value = l.value, Object.keys(d.value).forEach((I) => {
|
|
4436
|
+
S.mergeLocaleMessage(I, d.value[I]);
|
|
4437
4437
|
}), Object.keys(c.value).forEach((I) => {
|
|
4438
|
-
|
|
4438
|
+
S.mergeDateTimeFormat(I, c.value[I]);
|
|
4439
4439
|
}), Object.keys(u.value).forEach((I) => {
|
|
4440
|
-
|
|
4441
|
-
}),
|
|
4440
|
+
S.mergeNumberFormat(I, u.value[I]);
|
|
4441
|
+
}), S.escapeParameter = w, S.fallbackFormat = v, S.fallbackRoot = _, S.fallbackWarn = p, S.missingWarn = m, S.warnHtmlMessage = f;
|
|
4442
4442
|
}
|
|
4443
4443
|
return onBeforeMount(() => {
|
|
4444
4444
|
if (e.proxy == null || e.proxy.$i18n == null)
|
|
4445
4445
|
throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
|
4446
|
-
const
|
|
4447
|
-
t === "global" ? (a.value =
|
|
4446
|
+
const S = i.value = e.proxy.$i18n.__composer;
|
|
4447
|
+
t === "global" ? (a.value = S.locale.value, l.value = S.fallbackLocale.value, d.value = S.messages.value, c.value = S.datetimeFormats.value, u.value = S.numberFormats.value) : r && N(S);
|
|
4448
4448
|
}), W;
|
|
4449
4449
|
}
|
|
4450
4450
|
const globalExportProps = [
|
|
@@ -7217,12 +7217,12 @@ const getBodyLength = async (e) => {
|
|
|
7217
7217
|
let f;
|
|
7218
7218
|
try {
|
|
7219
7219
|
if (l && supportsRequestStream && o !== "get" && o !== "head" && (f = await resolveBodyLength(c, n)) !== 0) {
|
|
7220
|
-
let
|
|
7220
|
+
let P = new Request(t, {
|
|
7221
7221
|
method: "POST",
|
|
7222
7222
|
body: n,
|
|
7223
7223
|
duplex: "half"
|
|
7224
|
-
}),
|
|
7225
|
-
utils$1.isFormData(n) && (
|
|
7224
|
+
}), O;
|
|
7225
|
+
utils$1.isFormData(n) && (O = P.headers.get("content-type")) && c.setContentType(O), P.body && (n = trackStream(P.body, DEFAULT_CHUNK_SIZE, fetchProgressDecorator(
|
|
7226
7226
|
f,
|
|
7227
7227
|
progressEventReducer(l)
|
|
7228
7228
|
), null, encodeText));
|
|
@@ -7239,23 +7239,23 @@ const getBodyLength = async (e) => {
|
|
|
7239
7239
|
let w = await fetch(C);
|
|
7240
7240
|
const E = supportsResponseStream && (d === "stream" || d === "response");
|
|
7241
7241
|
if (supportsResponseStream && (a || E)) {
|
|
7242
|
-
const
|
|
7242
|
+
const P = {};
|
|
7243
7243
|
["status", "statusText", "headers"].forEach((A) => {
|
|
7244
|
-
|
|
7244
|
+
P[A] = w[A];
|
|
7245
7245
|
});
|
|
7246
|
-
const
|
|
7246
|
+
const O = utils$1.toFiniteNumber(w.headers.get("content-length"));
|
|
7247
7247
|
w = new Response(
|
|
7248
7248
|
trackStream(w.body, DEFAULT_CHUNK_SIZE, a && fetchProgressDecorator(
|
|
7249
|
-
|
|
7249
|
+
O,
|
|
7250
7250
|
progressEventReducer(a, !0)
|
|
7251
7251
|
), E && g, encodeText),
|
|
7252
|
-
|
|
7252
|
+
P
|
|
7253
7253
|
);
|
|
7254
7254
|
}
|
|
7255
7255
|
d = d || "text";
|
|
7256
7256
|
let T = await resolvers[utils$1.findKey(resolvers, d) || "text"](w, e);
|
|
7257
|
-
return !E && g(), _ && _(), await new Promise((
|
|
7258
|
-
settle(
|
|
7257
|
+
return !E && g(), _ && _(), await new Promise((P, O) => {
|
|
7258
|
+
settle(P, O, {
|
|
7259
7259
|
data: T,
|
|
7260
7260
|
headers: AxiosHeaders$1.from(w.headers),
|
|
7261
7261
|
status: w.status,
|
|
@@ -9320,17 +9320,17 @@ var messages$1 = newMessages(), Schema = /* @__PURE__ */ function() {
|
|
|
9320
9320
|
return asyncMap(m, l, function(v, C) {
|
|
9321
9321
|
var g = v.rule, f = (g.type === "object" || g.type === "array") && (typeof g.fields == "object" || typeof g.defaultField == "object");
|
|
9322
9322
|
f = f && (g.required || !g.required && v.value), g.field = v.field;
|
|
9323
|
-
function w(
|
|
9324
|
-
return _extends$1({},
|
|
9325
|
-
fullField: g.fullField + "." +
|
|
9326
|
-
fullFields: g.fullFields ? [].concat(g.fullFields, [
|
|
9323
|
+
function w(P, O) {
|
|
9324
|
+
return _extends$1({}, O, {
|
|
9325
|
+
fullField: g.fullField + "." + P,
|
|
9326
|
+
fullFields: g.fullFields ? [].concat(g.fullFields, [P]) : [P]
|
|
9327
9327
|
});
|
|
9328
9328
|
}
|
|
9329
|
-
function E(
|
|
9330
|
-
|
|
9331
|
-
var
|
|
9332
|
-
!l.suppressWarning &&
|
|
9333
|
-
var A =
|
|
9329
|
+
function E(P) {
|
|
9330
|
+
P === void 0 && (P = []);
|
|
9331
|
+
var O = Array.isArray(P) ? P : [P];
|
|
9332
|
+
!l.suppressWarning && O.length && e.warning("async-validator:", O), O.length && g.message !== void 0 && (O = [].concat(g.message));
|
|
9333
|
+
var A = O.map(complementError(g, a));
|
|
9334
9334
|
if (l.first && A.length)
|
|
9335
9335
|
return _[g.field] = 1, C(A);
|
|
9336
9336
|
if (!f)
|
|
@@ -9338,17 +9338,17 @@ var messages$1 = newMessages(), Schema = /* @__PURE__ */ function() {
|
|
|
9338
9338
|
else {
|
|
9339
9339
|
if (g.required && !v.value)
|
|
9340
9340
|
return g.message !== void 0 ? A = [].concat(g.message).map(complementError(g, a)) : l.error && (A = [l.error(g, format(l.messages.required, g.field))]), C(A);
|
|
9341
|
-
var
|
|
9341
|
+
var k = {};
|
|
9342
9342
|
g.defaultField && Object.keys(v.value).map(function(R) {
|
|
9343
|
-
|
|
9344
|
-
}),
|
|
9343
|
+
k[R] = g.defaultField;
|
|
9344
|
+
}), k = _extends$1({}, k, v.rule.fields);
|
|
9345
9345
|
var B = {};
|
|
9346
|
-
Object.keys(
|
|
9347
|
-
var U =
|
|
9346
|
+
Object.keys(k).forEach(function(R) {
|
|
9347
|
+
var U = k[R], z = Array.isArray(U) ? U : [U];
|
|
9348
9348
|
B[R] = z.map(w.bind(null, R));
|
|
9349
9349
|
});
|
|
9350
|
-
var
|
|
9351
|
-
|
|
9350
|
+
var H = new e(B);
|
|
9351
|
+
H.messages(l.messages), v.rule.options && (v.rule.options.messages = l.messages, v.rule.options.error = l.error), H.validate(v.value, v.rule.options || l, function(R) {
|
|
9352
9352
|
var U = [];
|
|
9353
9353
|
A && A.length && U.push.apply(U, A), R && R.length && U.push.apply(U, R), C(U.length ? U : null);
|
|
9354
9354
|
});
|
|
@@ -9360,17 +9360,17 @@ var messages$1 = newMessages(), Schema = /* @__PURE__ */ function() {
|
|
|
9360
9360
|
else if (g.validator) {
|
|
9361
9361
|
try {
|
|
9362
9362
|
T = g.validator(g, v.value, E, v.source, l);
|
|
9363
|
-
} catch (
|
|
9364
|
-
console.error == null || console.error(
|
|
9365
|
-
throw
|
|
9366
|
-
}, 0), E(
|
|
9363
|
+
} catch (P) {
|
|
9364
|
+
console.error == null || console.error(P), l.suppressValidatorError || setTimeout(function() {
|
|
9365
|
+
throw P;
|
|
9366
|
+
}, 0), E(P.message);
|
|
9367
9367
|
}
|
|
9368
9368
|
T === !0 ? E() : T === !1 ? E(typeof g.message == "function" ? g.message(g.fullField || g.field) : g.message || (g.fullField || g.field) + " fails") : T instanceof Array ? E(T) : T instanceof Error && E(T.message);
|
|
9369
9369
|
}
|
|
9370
9370
|
T && T.then && T.then(function() {
|
|
9371
9371
|
return E();
|
|
9372
|
-
}, function(
|
|
9373
|
-
return E(
|
|
9372
|
+
}, function(P) {
|
|
9373
|
+
return E(P);
|
|
9374
9374
|
});
|
|
9375
9375
|
}, function(v) {
|
|
9376
9376
|
c(v);
|
|
@@ -9569,8 +9569,8 @@ const messageTypes = ["success", "info", "warning", "error"], messageDefaults =
|
|
|
9569
9569
|
const o = e, { Close: n } = TypeComponents, { ns: r, zIndex: i } = useGlobalComponentSettings("message"), { currentZIndex: s, nextZIndex: a } = i, l = ref(), d = ref(!1), c = ref(0);
|
|
9570
9570
|
let u;
|
|
9571
9571
|
const m = computed(() => o.type ? o.type === "error" ? "danger" : o.type : "info"), p = computed(() => {
|
|
9572
|
-
const
|
|
9573
|
-
return { [r.bm("icon",
|
|
9572
|
+
const O = o.type;
|
|
9573
|
+
return { [r.bm("icon", O)]: O && TypeComponentsMap[O] };
|
|
9574
9574
|
}), _ = computed(() => o.icon || TypeComponentsMap[o.type] || ""), v = computed(() => getLastOffset(o.id)), C = computed(() => getOffsetOrSpace(o.id, o.offset) + v.value), g = computed(() => c.value + C.value), f = computed(() => ({
|
|
9575
9575
|
top: `${C.value}px`,
|
|
9576
9576
|
zIndex: s.value
|
|
@@ -9586,45 +9586,45 @@ const messageTypes = ["success", "info", "warning", "error"], messageDefaults =
|
|
|
9586
9586
|
function T() {
|
|
9587
9587
|
d.value = !1;
|
|
9588
9588
|
}
|
|
9589
|
-
function
|
|
9590
|
-
|
|
9589
|
+
function P({ code: O }) {
|
|
9590
|
+
O === EVENT_CODE.esc && T();
|
|
9591
9591
|
}
|
|
9592
9592
|
return onMounted(() => {
|
|
9593
9593
|
w(), a(), d.value = !0;
|
|
9594
9594
|
}), watch(() => o.repeatNum, () => {
|
|
9595
9595
|
E(), w();
|
|
9596
|
-
}), useEventListener(document, "keydown",
|
|
9596
|
+
}), useEventListener(document, "keydown", P), useResizeObserver(l, () => {
|
|
9597
9597
|
c.value = l.value.getBoundingClientRect().height;
|
|
9598
9598
|
}), t({
|
|
9599
9599
|
visible: d,
|
|
9600
9600
|
bottom: g,
|
|
9601
9601
|
close: T
|
|
9602
|
-
}), (
|
|
9602
|
+
}), (O, A) => (openBlock(), createBlock(Transition$1, {
|
|
9603
9603
|
name: unref(r).b("fade"),
|
|
9604
|
-
onBeforeLeave:
|
|
9605
|
-
onAfterLeave: A[0] || (A[0] = (
|
|
9604
|
+
onBeforeLeave: O.onClose,
|
|
9605
|
+
onAfterLeave: A[0] || (A[0] = (k) => O.$emit("destroy")),
|
|
9606
9606
|
persisted: ""
|
|
9607
9607
|
}, {
|
|
9608
9608
|
default: withCtx(() => [
|
|
9609
9609
|
withDirectives(createElementVNode("div", {
|
|
9610
|
-
id:
|
|
9610
|
+
id: O.id,
|
|
9611
9611
|
ref_key: "messageRef",
|
|
9612
9612
|
ref: l,
|
|
9613
9613
|
class: normalizeClass([
|
|
9614
9614
|
unref(r).b(),
|
|
9615
|
-
{ [unref(r).m(
|
|
9616
|
-
unref(r).is("center",
|
|
9617
|
-
unref(r).is("closable",
|
|
9618
|
-
|
|
9615
|
+
{ [unref(r).m(O.type)]: O.type && !O.icon },
|
|
9616
|
+
unref(r).is("center", O.center),
|
|
9617
|
+
unref(r).is("closable", O.showClose),
|
|
9618
|
+
O.customClass
|
|
9619
9619
|
]),
|
|
9620
9620
|
style: normalizeStyle(unref(f)),
|
|
9621
9621
|
role: "alert",
|
|
9622
9622
|
onMouseenter: E,
|
|
9623
9623
|
onMouseleave: w
|
|
9624
9624
|
}, [
|
|
9625
|
-
|
|
9625
|
+
O.repeatNum > 1 ? (openBlock(), createBlock(unref(ElBadge), {
|
|
9626
9626
|
key: 0,
|
|
9627
|
-
value:
|
|
9627
|
+
value: O.repeatNum,
|
|
9628
9628
|
type: unref(m),
|
|
9629
9629
|
class: normalizeClass(unref(r).e("badge"))
|
|
9630
9630
|
}, null, 8, ["value", "type", "class"])) : createCommentVNode("v-if", !0),
|
|
@@ -9637,19 +9637,19 @@ const messageTypes = ["success", "info", "warning", "error"], messageDefaults =
|
|
|
9637
9637
|
]),
|
|
9638
9638
|
_: 1
|
|
9639
9639
|
}, 8, ["class"])) : createCommentVNode("v-if", !0),
|
|
9640
|
-
renderSlot(
|
|
9641
|
-
|
|
9640
|
+
renderSlot(O.$slots, "default", {}, () => [
|
|
9641
|
+
O.dangerouslyUseHTMLString ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
9642
9642
|
createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),
|
|
9643
9643
|
createElementVNode("p", {
|
|
9644
9644
|
class: normalizeClass(unref(r).e("content")),
|
|
9645
|
-
innerHTML:
|
|
9645
|
+
innerHTML: O.message
|
|
9646
9646
|
}, null, 10, _hoisted_2$y)
|
|
9647
9647
|
], 2112)) : (openBlock(), createElementBlock("p", {
|
|
9648
9648
|
key: 0,
|
|
9649
9649
|
class: normalizeClass(unref(r).e("content"))
|
|
9650
|
-
}, toDisplayString$1(
|
|
9650
|
+
}, toDisplayString$1(O.message), 3))
|
|
9651
9651
|
]),
|
|
9652
|
-
|
|
9652
|
+
O.showClose ? (openBlock(), createBlock(unref(ElIcon), {
|
|
9653
9653
|
key: 2,
|
|
9654
9654
|
class: normalizeClass(unref(r).e("closeBtn")),
|
|
9655
9655
|
onClick: withModifiers(T, ["stop"])
|
|
@@ -10724,16 +10724,16 @@ function createRouterMatcher(e, t) {
|
|
|
10724
10724
|
for (const w of C) {
|
|
10725
10725
|
const { path: E } = w;
|
|
10726
10726
|
if (u && E[0] !== "/") {
|
|
10727
|
-
const T = u.record.path,
|
|
10728
|
-
w.path = u.record.path + (E &&
|
|
10727
|
+
const T = u.record.path, P = T[T.length - 1] === "/" ? "" : "/";
|
|
10728
|
+
w.path = u.record.path + (E && P + E);
|
|
10729
10729
|
}
|
|
10730
10730
|
if (process.env.NODE_ENV !== "production" && w.path === "*")
|
|
10731
10731
|
throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
10732
10732
|
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);
|
|
10733
10733
|
if (g = createRouteRecordMatcher(w, u, v), process.env.NODE_ENV !== "production" && u && E[0] === "/" && checkMissingParamsInAbsolutePath(g, u), m ? (m.alias.push(g), process.env.NODE_ENV !== "production" && checkSameParams(m, g)) : (f = f || g, f !== g && f.alias.push(g), p && c.name && !isAliasRecord(g) && s(c.name)), _.children) {
|
|
10734
10734
|
const T = _.children;
|
|
10735
|
-
for (let
|
|
10736
|
-
i(T[
|
|
10735
|
+
for (let P = 0; P < T.length; P++)
|
|
10736
|
+
i(T[P], g, m && m.children[P]);
|
|
10737
10737
|
}
|
|
10738
10738
|
m = m || g, (g.record.components && Object.keys(g.record.components).length || g.record.name || g.record.redirect) && l(g);
|
|
10739
10739
|
}
|
|
@@ -11506,8 +11506,8 @@ function createRouter(e) {
|
|
|
11506
11506
|
applyToParams.bind(null, decode)
|
|
11507
11507
|
);
|
|
11508
11508
|
function p(y, b) {
|
|
11509
|
-
let D,
|
|
11510
|
-
return isRouteName(y) ? (D = t.getRecordMatcher(y),
|
|
11509
|
+
let D, V;
|
|
11510
|
+
return isRouteName(y) ? (D = t.getRecordMatcher(y), V = b) : V = y, t.addRoute(V, D);
|
|
11511
11511
|
}
|
|
11512
11512
|
function _(y) {
|
|
11513
11513
|
const b = t.getRecordMatcher(y);
|
|
@@ -11521,10 +11521,10 @@ function createRouter(e) {
|
|
|
11521
11521
|
}
|
|
11522
11522
|
function g(y, b) {
|
|
11523
11523
|
if (b = assign({}, b || l.value), typeof y == "string") {
|
|
11524
|
-
const
|
|
11525
|
-
return process.env.NODE_ENV !== "production" && (F.startsWith("//") ? warn(`Location "${y}" resolved to "${F}". A resolved location cannot start with multiple slashes.`) : I.matched.length || warn(`No match found for location with path "${y}"`)), assign(
|
|
11524
|
+
const S = parseURL(o, y, b.path), I = t.resolve({ path: S.path }, b), F = r.createHref(S.fullPath);
|
|
11525
|
+
return process.env.NODE_ENV !== "production" && (F.startsWith("//") ? warn(`Location "${y}" resolved to "${F}". A resolved location cannot start with multiple slashes.`) : I.matched.length || warn(`No match found for location with path "${y}"`)), assign(S, I, {
|
|
11526
11526
|
params: m(I.params),
|
|
11527
|
-
hash: decode(
|
|
11527
|
+
hash: decode(S.hash),
|
|
11528
11528
|
redirectedFrom: void 0,
|
|
11529
11529
|
href: F
|
|
11530
11530
|
});
|
|
@@ -11536,20 +11536,20 @@ function createRouter(e) {
|
|
|
11536
11536
|
path: parseURL(o, y.path, b.path).path
|
|
11537
11537
|
});
|
|
11538
11538
|
else {
|
|
11539
|
-
const
|
|
11540
|
-
for (const I in
|
|
11541
|
-
|
|
11539
|
+
const S = assign({}, y.params);
|
|
11540
|
+
for (const I in S)
|
|
11541
|
+
S[I] == null && delete S[I];
|
|
11542
11542
|
D = assign({}, y, {
|
|
11543
|
-
params: u(
|
|
11543
|
+
params: u(S)
|
|
11544
11544
|
}), b.params = u(b.params);
|
|
11545
11545
|
}
|
|
11546
|
-
const
|
|
11547
|
-
process.env.NODE_ENV !== "production" && L && !L.startsWith("#") && warn(`A \`hash\` should always start with the character "#". Replace "${L}" with "#${L}".`),
|
|
11546
|
+
const V = t.resolve(D, b), L = y.hash || "";
|
|
11547
|
+
process.env.NODE_ENV !== "production" && L && !L.startsWith("#") && warn(`A \`hash\` should always start with the character "#". Replace "${L}" with "#${L}".`), V.params = c(m(V.params));
|
|
11548
11548
|
const W = stringifyURL(n, assign({}, y, {
|
|
11549
11549
|
hash: encodeHash(L),
|
|
11550
|
-
path:
|
|
11550
|
+
path: V.path
|
|
11551
11551
|
})), N = r.createHref(W);
|
|
11552
|
-
return process.env.NODE_ENV !== "production" && (N.startsWith("//") ? warn(`Location "${y}" resolved to "${N}". A resolved location cannot start with multiple slashes.`) :
|
|
11552
|
+
return process.env.NODE_ENV !== "production" && (N.startsWith("//") ? warn(`Location "${y}" resolved to "${N}". A resolved location cannot start with multiple slashes.`) : V.matched.length || warn(`No match found for location with path "${"path" in y ? y.path : y}"`)), assign({
|
|
11553
11553
|
fullPath: W,
|
|
11554
11554
|
// keep the hash encoded so fullPath is effectively path + encodedQuery +
|
|
11555
11555
|
// hash
|
|
@@ -11562,7 +11562,7 @@ function createRouter(e) {
|
|
|
11562
11562
|
// https://github.com/vuejs/router/issues/328#issuecomment-649481567
|
|
11563
11563
|
n === stringifyQuery ? normalizeQuery(y.query) : y.query || {}
|
|
11564
11564
|
)
|
|
11565
|
-
},
|
|
11565
|
+
}, V, {
|
|
11566
11566
|
redirectedFrom: void 0,
|
|
11567
11567
|
href: N
|
|
11568
11568
|
});
|
|
@@ -11578,37 +11578,37 @@ function createRouter(e) {
|
|
|
11578
11578
|
});
|
|
11579
11579
|
}
|
|
11580
11580
|
function E(y) {
|
|
11581
|
-
return
|
|
11581
|
+
return O(y);
|
|
11582
11582
|
}
|
|
11583
11583
|
function T(y) {
|
|
11584
11584
|
return E(assign(f(y), { replace: !0 }));
|
|
11585
11585
|
}
|
|
11586
|
-
function
|
|
11586
|
+
function P(y) {
|
|
11587
11587
|
const b = y.matched[y.matched.length - 1];
|
|
11588
11588
|
if (b && b.redirect) {
|
|
11589
11589
|
const { redirect: D } = b;
|
|
11590
|
-
let
|
|
11591
|
-
if (typeof
|
|
11590
|
+
let V = typeof D == "function" ? D(y) : D;
|
|
11591
|
+
if (typeof V == "string" && (V = V.includes("?") || V.includes("#") ? V = f(V) : (
|
|
11592
11592
|
// force empty params
|
|
11593
|
-
{ path:
|
|
11594
|
-
),
|
|
11593
|
+
{ path: V }
|
|
11594
|
+
), V.params = {}), process.env.NODE_ENV !== "production" && !("path" in V) && !("name" in V))
|
|
11595
11595
|
throw warn(`Invalid redirect found:
|
|
11596
|
-
${JSON.stringify(
|
|
11596
|
+
${JSON.stringify(V, null, 2)}
|
|
11597
11597
|
when navigating to "${y.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
|
|
11598
11598
|
return assign({
|
|
11599
11599
|
query: y.query,
|
|
11600
11600
|
hash: y.hash,
|
|
11601
11601
|
// avoid transferring params if the redirect has a path
|
|
11602
|
-
params: "path" in
|
|
11603
|
-
},
|
|
11602
|
+
params: "path" in V ? {} : y.params
|
|
11603
|
+
}, V);
|
|
11604
11604
|
}
|
|
11605
11605
|
}
|
|
11606
|
-
function
|
|
11607
|
-
const D = d = g(y),
|
|
11608
|
-
if (
|
|
11609
|
-
return
|
|
11610
|
-
assign(f(
|
|
11611
|
-
state: typeof
|
|
11606
|
+
function O(y, b) {
|
|
11607
|
+
const D = d = g(y), V = l.value, L = y.state, W = y.force, N = y.replace === !0, S = P(D);
|
|
11608
|
+
if (S)
|
|
11609
|
+
return O(
|
|
11610
|
+
assign(f(S), {
|
|
11611
|
+
state: typeof S == "object" ? assign({}, L, S.state) : L,
|
|
11612
11612
|
force: W,
|
|
11613
11613
|
replace: N
|
|
11614
11614
|
}),
|
|
@@ -11618,16 +11618,16 @@ ${JSON.stringify(O, null, 2)}
|
|
|
11618
11618
|
const I = D;
|
|
11619
11619
|
I.redirectedFrom = b;
|
|
11620
11620
|
let F;
|
|
11621
|
-
return !W && isSameRouteLocation(n,
|
|
11622
|
-
|
|
11623
|
-
|
|
11621
|
+
return !W && isSameRouteLocation(n, V, D) && (F = createRouterError(16, { to: I, from: V }), ee(
|
|
11622
|
+
V,
|
|
11623
|
+
V,
|
|
11624
11624
|
// this is a push, the only way for it to be triggered from a
|
|
11625
11625
|
// history.listen is with a redirect, which makes it become a push
|
|
11626
11626
|
!0,
|
|
11627
11627
|
// This cannot be the first navigation because the initial location
|
|
11628
11628
|
// cannot be manually navigated to
|
|
11629
11629
|
!1
|
|
11630
|
-
)), (F ? Promise.resolve(F) : B(I,
|
|
11630
|
+
)), (F ? Promise.resolve(F) : B(I, V)).catch((M) => isNavigationFailure(M) ? (
|
|
11631
11631
|
// navigation redirects still mark the router as ready
|
|
11632
11632
|
isNavigationFailure(
|
|
11633
11633
|
M,
|
|
@@ -11636,7 +11636,7 @@ ${JSON.stringify(O, null, 2)}
|
|
|
11636
11636
|
) ? M : Y(M)
|
|
11637
11637
|
) : (
|
|
11638
11638
|
// reject any unknown error
|
|
11639
|
-
K(M, I,
|
|
11639
|
+
K(M, I, V)
|
|
11640
11640
|
)).then((M) => {
|
|
11641
11641
|
if (M) {
|
|
11642
11642
|
if (isNavigationFailure(
|
|
@@ -11650,8 +11650,8 @@ ${JSON.stringify(O, null, 2)}
|
|
|
11650
11650
|
(b._count = b._count ? (
|
|
11651
11651
|
// @ts-expect-error
|
|
11652
11652
|
b._count + 1
|
|
11653
|
-
) : 1) > 30 ? (warn(`Detected a possibly infinite redirection in a navigation guard when going from "${
|
|
11654
|
-
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) :
|
|
11653
|
+
) : 1) > 30 ? (warn(`Detected a possibly infinite redirection in a navigation guard when going from "${V.fullPath}" to "${I.fullPath}". Aborting to avoid a Stack Overflow.
|
|
11654
|
+
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) : O(
|
|
11655
11655
|
// keep options
|
|
11656
11656
|
assign({
|
|
11657
11657
|
// preserve an existing replacement but allow the redirect to override it
|
|
@@ -11664,83 +11664,83 @@ ${JSON.stringify(O, null, 2)}
|
|
|
11664
11664
|
b || I
|
|
11665
11665
|
);
|
|
11666
11666
|
} else
|
|
11667
|
-
M = R(I,
|
|
11668
|
-
return
|
|
11667
|
+
M = R(I, V, !0, N, L);
|
|
11668
|
+
return H(I, V, M), M;
|
|
11669
11669
|
});
|
|
11670
11670
|
}
|
|
11671
11671
|
function A(y, b) {
|
|
11672
11672
|
const D = w(y, b);
|
|
11673
11673
|
return D ? Promise.reject(D) : Promise.resolve();
|
|
11674
11674
|
}
|
|
11675
|
-
function
|
|
11675
|
+
function k(y) {
|
|
11676
11676
|
const b = te.values().next().value;
|
|
11677
11677
|
return b && typeof b.runWithContext == "function" ? b.runWithContext(y) : y();
|
|
11678
11678
|
}
|
|
11679
11679
|
function B(y, b) {
|
|
11680
11680
|
let D;
|
|
11681
|
-
const [
|
|
11682
|
-
D = extractComponentsGuards(
|
|
11683
|
-
for (const
|
|
11684
|
-
|
|
11681
|
+
const [V, L, W] = extractChangingRecords(y, b);
|
|
11682
|
+
D = extractComponentsGuards(V.reverse(), "beforeRouteLeave", y, b);
|
|
11683
|
+
for (const S of V)
|
|
11684
|
+
S.leaveGuards.forEach((I) => {
|
|
11685
11685
|
D.push(guardToPromiseFn(I, y, b));
|
|
11686
11686
|
});
|
|
11687
11687
|
const N = A.bind(null, y, b);
|
|
11688
11688
|
return D.push(N), re(D).then(() => {
|
|
11689
11689
|
D = [];
|
|
11690
|
-
for (const
|
|
11691
|
-
D.push(guardToPromiseFn(
|
|
11690
|
+
for (const S of i.list())
|
|
11691
|
+
D.push(guardToPromiseFn(S, y, b));
|
|
11692
11692
|
return D.push(N), re(D);
|
|
11693
11693
|
}).then(() => {
|
|
11694
11694
|
D = extractComponentsGuards(L, "beforeRouteUpdate", y, b);
|
|
11695
|
-
for (const
|
|
11696
|
-
|
|
11695
|
+
for (const S of L)
|
|
11696
|
+
S.updateGuards.forEach((I) => {
|
|
11697
11697
|
D.push(guardToPromiseFn(I, y, b));
|
|
11698
11698
|
});
|
|
11699
11699
|
return D.push(N), re(D);
|
|
11700
11700
|
}).then(() => {
|
|
11701
11701
|
D = [];
|
|
11702
|
-
for (const
|
|
11703
|
-
if (
|
|
11704
|
-
if (isArray$3(
|
|
11705
|
-
for (const I of
|
|
11702
|
+
for (const S of W)
|
|
11703
|
+
if (S.beforeEnter)
|
|
11704
|
+
if (isArray$3(S.beforeEnter))
|
|
11705
|
+
for (const I of S.beforeEnter)
|
|
11706
11706
|
D.push(guardToPromiseFn(I, y, b));
|
|
11707
11707
|
else
|
|
11708
|
-
D.push(guardToPromiseFn(
|
|
11708
|
+
D.push(guardToPromiseFn(S.beforeEnter, y, b));
|
|
11709
11709
|
return D.push(N), re(D);
|
|
11710
|
-
}).then(() => (y.matched.forEach((
|
|
11710
|
+
}).then(() => (y.matched.forEach((S) => S.enterCallbacks = {}), D = extractComponentsGuards(W, "beforeRouteEnter", y, b), D.push(N), re(D))).then(() => {
|
|
11711
11711
|
D = [];
|
|
11712
|
-
for (const
|
|
11713
|
-
D.push(guardToPromiseFn(
|
|
11712
|
+
for (const S of s.list())
|
|
11713
|
+
D.push(guardToPromiseFn(S, y, b));
|
|
11714
11714
|
return D.push(N), re(D);
|
|
11715
|
-
}).catch((
|
|
11716
|
-
|
|
11715
|
+
}).catch((S) => isNavigationFailure(
|
|
11716
|
+
S,
|
|
11717
11717
|
8
|
|
11718
11718
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
11719
|
-
) ?
|
|
11719
|
+
) ? S : Promise.reject(S));
|
|
11720
11720
|
}
|
|
11721
|
-
function
|
|
11722
|
-
a.list().forEach((
|
|
11721
|
+
function H(y, b, D) {
|
|
11722
|
+
a.list().forEach((V) => k(() => V(y, b, D)));
|
|
11723
11723
|
}
|
|
11724
|
-
function R(y, b, D,
|
|
11724
|
+
function R(y, b, D, V, L) {
|
|
11725
11725
|
const W = w(y, b);
|
|
11726
11726
|
if (W)
|
|
11727
11727
|
return W;
|
|
11728
|
-
const N = b === START_LOCATION_NORMALIZED,
|
|
11729
|
-
D && (
|
|
11730
|
-
scroll: N &&
|
|
11728
|
+
const N = b === START_LOCATION_NORMALIZED, S = isBrowser ? history.state : {};
|
|
11729
|
+
D && (V || N ? r.replace(y.fullPath, assign({
|
|
11730
|
+
scroll: N && S && S.scroll
|
|
11731
11731
|
}, L)) : r.push(y.fullPath, L)), l.value = y, ee(y, b, D, N), Y();
|
|
11732
11732
|
}
|
|
11733
11733
|
let U;
|
|
11734
11734
|
function z() {
|
|
11735
11735
|
U || (U = r.listen((y, b, D) => {
|
|
11736
|
-
const
|
|
11736
|
+
const V = g(y), L = P(V);
|
|
11737
11737
|
if (L) {
|
|
11738
|
-
|
|
11738
|
+
O(assign(L, { replace: !0 }), V).catch(noop);
|
|
11739
11739
|
return;
|
|
11740
11740
|
}
|
|
11741
|
-
d =
|
|
11741
|
+
d = V;
|
|
11742
11742
|
const W = l.value;
|
|
11743
|
-
isBrowser && saveScrollPosition(getScrollKey(W.fullPath, D.delta), computeScrollPosition()), B(
|
|
11743
|
+
isBrowser && saveScrollPosition(getScrollKey(W.fullPath, D.delta), computeScrollPosition()), B(V, W).catch((N) => isNavigationFailure(
|
|
11744
11744
|
N,
|
|
11745
11745
|
12
|
|
11746
11746
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
@@ -11748,20 +11748,20 @@ ${JSON.stringify(O, null, 2)}
|
|
|
11748
11748
|
N,
|
|
11749
11749
|
2
|
|
11750
11750
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
11751
|
-
) ? (
|
|
11751
|
+
) ? (O(
|
|
11752
11752
|
N.to,
|
|
11753
|
-
|
|
11753
|
+
V
|
|
11754
11754
|
// avoid an uncaught rejection, let push call triggerError
|
|
11755
|
-
).then((
|
|
11755
|
+
).then((S) => {
|
|
11756
11756
|
isNavigationFailure(
|
|
11757
|
-
|
|
11757
|
+
S,
|
|
11758
11758
|
20
|
|
11759
11759
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
|
11760
11760
|
) && !D.delta && D.type === NavigationType.pop && r.go(-1, !1);
|
|
11761
|
-
}).catch(noop), Promise.reject()) : (D.delta && r.go(-D.delta, !1), K(N,
|
|
11761
|
+
}).catch(noop), Promise.reject()) : (D.delta && r.go(-D.delta, !1), K(N, V, W))).then((N) => {
|
|
11762
11762
|
N = N || R(
|
|
11763
11763
|
// after navigation, all matched components are resolved
|
|
11764
|
-
|
|
11764
|
+
V,
|
|
11765
11765
|
W,
|
|
11766
11766
|
!1
|
|
11767
11767
|
), N && (D.delta && // a new navigation has been triggered, so we do not want to revert, that will change the current history
|
|
@@ -11774,29 +11774,29 @@ ${JSON.stringify(O, null, 2)}
|
|
|
11774
11774
|
N,
|
|
11775
11775
|
20
|
|
11776
11776
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
|
11777
|
-
) && r.go(-1, !1)),
|
|
11777
|
+
) && r.go(-1, !1)), H(V, W, N);
|
|
11778
11778
|
}).catch(noop);
|
|
11779
11779
|
}));
|
|
11780
11780
|
}
|
|
11781
|
-
let Q = useCallbacks(), J = useCallbacks(),
|
|
11781
|
+
let Q = useCallbacks(), J = useCallbacks(), j;
|
|
11782
11782
|
function K(y, b, D) {
|
|
11783
11783
|
Y(y);
|
|
11784
|
-
const
|
|
11785
|
-
return
|
|
11784
|
+
const V = J.list();
|
|
11785
|
+
return V.length ? V.forEach((L) => L(y, b, D)) : (process.env.NODE_ENV !== "production" && warn("uncaught error during route navigation:"), console.error(y)), Promise.reject(y);
|
|
11786
11786
|
}
|
|
11787
11787
|
function Z() {
|
|
11788
|
-
return
|
|
11788
|
+
return j && l.value !== START_LOCATION_NORMALIZED ? Promise.resolve() : new Promise((y, b) => {
|
|
11789
11789
|
Q.add([y, b]);
|
|
11790
11790
|
});
|
|
11791
11791
|
}
|
|
11792
11792
|
function Y(y) {
|
|
11793
|
-
return
|
|
11793
|
+
return j || (j = !y, z(), Q.list().forEach(([b, D]) => y ? D(y) : b()), Q.reset()), y;
|
|
11794
11794
|
}
|
|
11795
|
-
function ee(y, b, D,
|
|
11795
|
+
function ee(y, b, D, V) {
|
|
11796
11796
|
const { scrollBehavior: L } = e;
|
|
11797
11797
|
if (!isBrowser || !L)
|
|
11798
11798
|
return Promise.resolve();
|
|
11799
|
-
const W = !D && getSavedScrollPosition(getScrollKey(y.fullPath, 0)) || (
|
|
11799
|
+
const W = !D && getSavedScrollPosition(getScrollKey(y.fullPath, 0)) || (V || !D) && history.state && history.state.scroll || null;
|
|
11800
11800
|
return nextTick().then(() => L(y, b, W)).then((N) => N && scrollToPosition(N)).catch((N) => K(N, y, b));
|
|
11801
11801
|
}
|
|
11802
11802
|
const X = (y) => r.go(y);
|
|
@@ -11837,14 +11837,14 @@ ${JSON.stringify(O, null, 2)}
|
|
|
11837
11837
|
enumerable: !0
|
|
11838
11838
|
});
|
|
11839
11839
|
y.provide(routerKey, b), y.provide(routeLocationKey, shallowReactive(D)), y.provide(routerViewLocationKey, l);
|
|
11840
|
-
const
|
|
11840
|
+
const V = y.unmount;
|
|
11841
11841
|
te.add(y), y.unmount = function() {
|
|
11842
|
-
te.delete(y), te.size < 1 && (d = START_LOCATION_NORMALIZED, U && U(), U = null, l.value = START_LOCATION_NORMALIZED, se = !1,
|
|
11842
|
+
te.delete(y), te.size < 1 && (d = START_LOCATION_NORMALIZED, U && U(), U = null, l.value = START_LOCATION_NORMALIZED, se = !1, j = !1), V();
|
|
11843
11843
|
}, process.env.NODE_ENV !== "production" && isBrowser && addDevtools(y, b, t);
|
|
11844
11844
|
}
|
|
11845
11845
|
};
|
|
11846
11846
|
function re(y) {
|
|
11847
|
-
return y.reduce((b, D) => b.then(() =>
|
|
11847
|
+
return y.reduce((b, D) => b.then(() => k(D)), Promise.resolve());
|
|
11848
11848
|
}
|
|
11849
11849
|
return ie;
|
|
11850
11850
|
}
|
|
@@ -11931,7 +11931,7 @@ const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render
|
|
|
11931
11931
|
children: [
|
|
11932
11932
|
{
|
|
11933
11933
|
path: "page",
|
|
11934
|
-
component: () => import("./iframe-page-
|
|
11934
|
+
component: () => import("./iframe-page-2cdd0517.js"),
|
|
11935
11935
|
hidden: !0
|
|
11936
11936
|
}
|
|
11937
11937
|
]
|
|
@@ -11948,27 +11948,27 @@ const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render
|
|
|
11948
11948
|
},
|
|
11949
11949
|
{
|
|
11950
11950
|
path: "/404",
|
|
11951
|
-
component: () => import("./404-
|
|
11951
|
+
component: () => import("./404-472e39c1.js"),
|
|
11952
11952
|
hidden: !0
|
|
11953
11953
|
},
|
|
11954
11954
|
{
|
|
11955
11955
|
path: "/401",
|
|
11956
|
-
component: () => import("./401-
|
|
11956
|
+
component: () => import("./401-d08148ed.js"),
|
|
11957
11957
|
hidden: !0
|
|
11958
11958
|
},
|
|
11959
11959
|
{
|
|
11960
11960
|
path: "/show-sub-wf-history",
|
|
11961
|
-
component: () => import("./tache-subprocess-history-
|
|
11961
|
+
component: () => import("./tache-subprocess-history-1ad5b2a1.js"),
|
|
11962
11962
|
hidden: !0
|
|
11963
11963
|
},
|
|
11964
11964
|
{
|
|
11965
11965
|
path: "/tab-content-index",
|
|
11966
|
-
component: () => import("./tab-content-index-
|
|
11966
|
+
component: () => import("./tab-content-index-2f104b32.js"),
|
|
11967
11967
|
hidden: !0
|
|
11968
11968
|
},
|
|
11969
11969
|
{
|
|
11970
11970
|
path: "/tab-content-iframe-index",
|
|
11971
|
-
component: () => import("./tab-content-iframe-index-
|
|
11971
|
+
component: () => import("./tab-content-iframe-index-1cf3d70e.js"),
|
|
11972
11972
|
hidden: !0
|
|
11973
11973
|
}
|
|
11974
11974
|
], protectedRouterMap = [];
|
|
@@ -13133,7 +13133,9 @@ const en = {
|
|
|
13133
13133
|
reminderTipRemindHistory: "The processing time limit, processing time granularity (days/hours), reminder interval, reminder interval time granularity (days/hours) are only effective for newly initiated processes. If historical data also requires the latest configuration, please contact the operation and maintenance personnel to adjust",
|
|
13134
13134
|
timeLimitTypeDefault: "Default",
|
|
13135
13135
|
timeLimitTypeFormField: "Form Field",
|
|
13136
|
-
timeLimitTypeCustom: "Custom"
|
|
13136
|
+
timeLimitTypeCustom: "Custom",
|
|
13137
|
+
reminderCustombeanNameTip: "Custom bean needs to implement the cn.ambitionq.api.service.WorkflowCustomReminderService interface and override getNoticeUser",
|
|
13138
|
+
reminderHandoverCustombeanNameTip: "Custom bean needs to implement the cn.ambitionq.api.service.WorkflowCustomHandoverService interface and override getNoticeHandoverPersonnel"
|
|
13137
13139
|
},
|
|
13138
13140
|
// 流向属性
|
|
13139
13141
|
transition: {
|
|
@@ -13653,7 +13655,9 @@ const en = {
|
|
|
13653
13655
|
reminderTipRemindHistory: "办理时限、办理时限的时间粒度(天/小时)、催办间隔、催办间隔的时间粒度(天/小时)仅对新发起的流程生效,如历史数据也需要应用最新配置,请联系运维人员调整",
|
|
13654
13656
|
timeLimitTypeDefault: "默认",
|
|
13655
13657
|
timeLimitTypeFormField: "表单字段",
|
|
13656
|
-
timeLimitTypeCustom: "自定义"
|
|
13658
|
+
timeLimitTypeCustom: "自定义",
|
|
13659
|
+
reminderCustombeanNameTip: "自定义bean需要实现cn.ambitionq.api.service.WorkflowCustomReminderService接口,重写getNoticeUser",
|
|
13660
|
+
reminderHandoverCustombeanNameTip: "自定义bean需要实现cn.ambitionq.api.service.WorkflowCustomHandoverService接口,重写getNoticeHandoverPersonnel"
|
|
13657
13661
|
},
|
|
13658
13662
|
// 流向属性
|
|
13659
13663
|
transition: {
|
|
@@ -17167,23 +17171,23 @@ Sortable.prototype = /** @lends Sortable.prototype */
|
|
|
17167
17171
|
return g(), o.insertBefore(dragEl, T), parentEl = o, w(), f(!0);
|
|
17168
17172
|
} else if (n.parentNode === o) {
|
|
17169
17173
|
i = getRect(n);
|
|
17170
|
-
var
|
|
17171
|
-
lastTarget !== n && (
|
|
17174
|
+
var P = 0, O, A = dragEl.parentNode !== o, k = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || r, n.animated && n.toRect || i, p), B = p ? "top" : "left", H = isScrolledPast(n, "top", "top") || isScrolledPast(dragEl, "top", "top"), R = H ? H.scrollTop : void 0;
|
|
17175
|
+
lastTarget !== n && (O = i[B], pastFirstInvertThresh = !1, isCircumstantialInvert = !k && a.invertSwap || A), P = _getSwapDirection(t, n, i, p, k ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, isCircumstantialInvert, lastTarget === n);
|
|
17172
17176
|
var U;
|
|
17173
|
-
if (
|
|
17177
|
+
if (P !== 0) {
|
|
17174
17178
|
var z = index$1(dragEl);
|
|
17175
17179
|
do
|
|
17176
|
-
z -=
|
|
17180
|
+
z -= P, U = parentEl.children[z];
|
|
17177
17181
|
while (U && (css(U, "display") === "none" || U === ghostEl));
|
|
17178
17182
|
}
|
|
17179
|
-
if (
|
|
17183
|
+
if (P === 0 || U === n)
|
|
17180
17184
|
return f(!1);
|
|
17181
|
-
lastTarget = n, lastDirection =
|
|
17185
|
+
lastTarget = n, lastDirection = P;
|
|
17182
17186
|
var Q = n.nextElementSibling, J = !1;
|
|
17183
|
-
J =
|
|
17184
|
-
var
|
|
17185
|
-
if (
|
|
17186
|
-
return (
|
|
17187
|
+
J = P === 1;
|
|
17188
|
+
var j = _onMove(rootEl, o, dragEl, r, n, i, t, J);
|
|
17189
|
+
if (j !== !1)
|
|
17190
|
+
return (j === 1 || j === -1) && (J = j === 1), _silent = !0, setTimeout(_unsilent, 30), g(), J && !Q ? o.appendChild(dragEl) : n.parentNode.insertBefore(dragEl, J ? Q : n), H && scrollBy(H, 0, R - H.scrollTop), parentEl = dragEl.parentNode, O !== void 0 && !isCircumstantialInvert && (targetMoveDistance = Math.abs(O - getRect(n)[B])), w(), f(!0);
|
|
17187
17191
|
}
|
|
17188
17192
|
if (o.contains(dragEl))
|
|
17189
17193
|
return f(!1);
|
|
@@ -17518,9 +17522,9 @@ var autoScroll = throttle(function(e, t, o, n) {
|
|
|
17518
17522
|
scrollRootEl !== o && (scrollRootEl = o, clearAutoScrolls(), scrollEl = t.scroll, c = t.scrollFn, scrollEl === !0 && (scrollEl = getParentAutoScrollElement(o, !0)));
|
|
17519
17523
|
var u = 0, m = scrollEl;
|
|
17520
17524
|
do {
|
|
17521
|
-
var p = m, _ = getRect(p), v = _.top, C = _.bottom, g = _.left, f = _.right, w = _.width, E = _.height, T = void 0,
|
|
17522
|
-
p === l ? (T = w <
|
|
17523
|
-
var R = T && (Math.abs(f - r) <= s && B + w <
|
|
17525
|
+
var p = m, _ = getRect(p), v = _.top, C = _.bottom, g = _.left, f = _.right, w = _.width, E = _.height, T = void 0, P = void 0, O = p.scrollWidth, A = p.scrollHeight, k = css(p), B = p.scrollLeft, H = p.scrollTop;
|
|
17526
|
+
p === l ? (T = w < O && (k.overflowX === "auto" || k.overflowX === "scroll" || k.overflowX === "visible"), P = E < A && (k.overflowY === "auto" || k.overflowY === "scroll" || k.overflowY === "visible")) : (T = w < O && (k.overflowX === "auto" || k.overflowX === "scroll"), P = E < A && (k.overflowY === "auto" || k.overflowY === "scroll"));
|
|
17527
|
+
var R = T && (Math.abs(f - r) <= s && B + w < O) - (Math.abs(g - r) <= s && !!B), U = P && (Math.abs(C - i) <= s && H + E < A) - (Math.abs(v - i) <= s && !!H);
|
|
17524
17528
|
if (!autoScrolls[u])
|
|
17525
17529
|
for (var z = 0; z <= u; z++)
|
|
17526
17530
|
autoScrolls[z] || (autoScrolls[z] = {});
|
|
@@ -20193,7 +20197,7 @@ function _sfc_render$M(e, t, o, n, r, i) {
|
|
|
20193
20197
|
r.availableFields[T * 3 + 0].name.indexOf("$") === -1 ? (openBlock(), createBlock(s, {
|
|
20194
20198
|
key: 0,
|
|
20195
20199
|
label: r.availableFields[T * 3 + 0].name,
|
|
20196
|
-
onChange: (
|
|
20200
|
+
onChange: (P) => i.pinSelect(
|
|
20197
20201
|
r.availableFields[T * 3 + 0].name,
|
|
20198
20202
|
r.availableFields[T * 3 + 0].index
|
|
20199
20203
|
)
|
|
@@ -20207,7 +20211,7 @@ function _sfc_render$M(e, t, o, n, r, i) {
|
|
|
20207
20211
|
}, 1032, ["label", "onChange"])) : (openBlock(), createBlock(s, {
|
|
20208
20212
|
key: 1,
|
|
20209
20213
|
label: r.availableFields[T * 3 + 0].name,
|
|
20210
|
-
onChange: (
|
|
20214
|
+
onChange: (P) => i.pinSelect(
|
|
20211
20215
|
r.availableFields[T * 3 + 0].name,
|
|
20212
20216
|
r.availableFields[T * 3 + 0].index
|
|
20213
20217
|
)
|
|
@@ -20232,7 +20236,7 @@ function _sfc_render$M(e, t, o, n, r, i) {
|
|
|
20232
20236
|
r.availableFields[T * 3 + 1].name.indexOf("$") === -1 ? (openBlock(), createBlock(s, {
|
|
20233
20237
|
key: 0,
|
|
20234
20238
|
label: r.availableFields[T * 3 + 1].name,
|
|
20235
|
-
onChange: (
|
|
20239
|
+
onChange: (P) => i.pinSelect(
|
|
20236
20240
|
r.availableFields[T * 3 + 1].name,
|
|
20237
20241
|
r.availableFields[T * 3 + 1].index
|
|
20238
20242
|
)
|
|
@@ -20246,7 +20250,7 @@ function _sfc_render$M(e, t, o, n, r, i) {
|
|
|
20246
20250
|
}, 1032, ["label", "onChange"])) : (openBlock(), createBlock(s, {
|
|
20247
20251
|
key: 1,
|
|
20248
20252
|
label: r.availableFields[T * 3 + 1].name,
|
|
20249
|
-
onChange: (
|
|
20253
|
+
onChange: (P) => i.pinSelect(
|
|
20250
20254
|
r.availableFields[T * 3 + 1].name,
|
|
20251
20255
|
r.availableFields[T * 3 + 1].index
|
|
20252
20256
|
)
|
|
@@ -20271,7 +20275,7 @@ function _sfc_render$M(e, t, o, n, r, i) {
|
|
|
20271
20275
|
r.availableFields[T * 3 + 2].name.indexOf("$") === -1 ? (openBlock(), createBlock(s, {
|
|
20272
20276
|
key: 0,
|
|
20273
20277
|
label: r.availableFields[T * 3 + 2].name,
|
|
20274
|
-
onChange: (
|
|
20278
|
+
onChange: (P) => i.pinSelect(
|
|
20275
20279
|
r.availableFields[T * 3 + 2].name,
|
|
20276
20280
|
r.availableFields[T * 3 + 2].index
|
|
20277
20281
|
)
|
|
@@ -20285,7 +20289,7 @@ function _sfc_render$M(e, t, o, n, r, i) {
|
|
|
20285
20289
|
}, 1032, ["label", "onChange"])) : (openBlock(), createBlock(s, {
|
|
20286
20290
|
key: 1,
|
|
20287
20291
|
label: r.availableFields[T * 3 + 2].name,
|
|
20288
|
-
onChange: (
|
|
20292
|
+
onChange: (P) => i.pinSelect(
|
|
20289
20293
|
r.availableFields[T * 3 + 2].name,
|
|
20290
20294
|
r.availableFields[T * 3 + 2].index
|
|
20291
20295
|
)
|
|
@@ -20329,7 +20333,7 @@ function _sfc_render$M(e, t, o, n, r, i) {
|
|
|
20329
20333
|
r.availableFields[T * 3 + 0].name.indexOf("$") === -1 ? (openBlock(), createBlock(s, {
|
|
20330
20334
|
key: 0,
|
|
20331
20335
|
label: r.availableFields[T * 3 + 0].name,
|
|
20332
|
-
onChange: (
|
|
20336
|
+
onChange: (P) => i.pinSelect(
|
|
20333
20337
|
r.availableFields[T * 3 + 0].name,
|
|
20334
20338
|
r.availableFields[T * 3 + 0].index
|
|
20335
20339
|
)
|
|
@@ -20343,7 +20347,7 @@ function _sfc_render$M(e, t, o, n, r, i) {
|
|
|
20343
20347
|
}, 1032, ["label", "onChange"])) : (openBlock(), createBlock(s, {
|
|
20344
20348
|
key: 1,
|
|
20345
20349
|
label: r.availableFields[T * 3 + 0].name,
|
|
20346
|
-
onChange: (
|
|
20350
|
+
onChange: (P) => i.pinSelect(
|
|
20347
20351
|
r.availableFields[T * 3 + 0].name,
|
|
20348
20352
|
r.availableFields[T * 3 + 0].index
|
|
20349
20353
|
)
|
|
@@ -20368,7 +20372,7 @@ function _sfc_render$M(e, t, o, n, r, i) {
|
|
|
20368
20372
|
r.availableFields[T * 3 + 1].name.indexOf("$") === -1 ? (openBlock(), createBlock(s, {
|
|
20369
20373
|
key: 0,
|
|
20370
20374
|
label: r.availableFields[T * 3 + 1].name,
|
|
20371
|
-
onChange: (
|
|
20375
|
+
onChange: (P) => i.pinSelect(
|
|
20372
20376
|
r.availableFields[T * 3 + 1].name,
|
|
20373
20377
|
r.availableFields[T * 3 + 1].index
|
|
20374
20378
|
)
|
|
@@ -20382,7 +20386,7 @@ function _sfc_render$M(e, t, o, n, r, i) {
|
|
|
20382
20386
|
}, 1032, ["label", "onChange"])) : (openBlock(), createBlock(s, {
|
|
20383
20387
|
key: 1,
|
|
20384
20388
|
label: r.availableFields[T * 3 + 1].name,
|
|
20385
|
-
onChange: (
|
|
20389
|
+
onChange: (P) => i.pinSelect(
|
|
20386
20390
|
r.availableFields[T * 3 + 1].name,
|
|
20387
20391
|
r.availableFields[T * 3 + 1].index
|
|
20388
20392
|
)
|
|
@@ -20407,7 +20411,7 @@ function _sfc_render$M(e, t, o, n, r, i) {
|
|
|
20407
20411
|
r.availableFields[T * 3 + 2].name.indexOf("$") === -1 ? (openBlock(), createBlock(s, {
|
|
20408
20412
|
key: 0,
|
|
20409
20413
|
label: r.availableFields[T * 3 + 2].name,
|
|
20410
|
-
onChange: (
|
|
20414
|
+
onChange: (P) => i.pinSelect(
|
|
20411
20415
|
r.availableFields[T * 3 + 2].name,
|
|
20412
20416
|
r.availableFields[T * 3 + 2].index
|
|
20413
20417
|
)
|
|
@@ -20421,7 +20425,7 @@ function _sfc_render$M(e, t, o, n, r, i) {
|
|
|
20421
20425
|
}, 1032, ["label", "onChange"])) : (openBlock(), createBlock(s, {
|
|
20422
20426
|
key: 1,
|
|
20423
20427
|
label: r.availableFields[T * 3 + 2].name,
|
|
20424
|
-
onChange: (
|
|
20428
|
+
onChange: (P) => i.pinSelect(
|
|
20425
20429
|
r.availableFields[T * 3 + 2].name,
|
|
20426
20430
|
r.availableFields[T * 3 + 2].index
|
|
20427
20431
|
)
|
|
@@ -24264,7 +24268,7 @@ function _sfc_render$z(e, t, o, n, r, i) {
|
|
|
24264
24268
|
}, 8, ["label"])) : createCommentVNode("", !0)
|
|
24265
24269
|
]);
|
|
24266
24270
|
}
|
|
24267
|
-
const CommonNoticeTool = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z]]),
|
|
24271
|
+
const CommonNoticeTool = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z]]), reminder_vue_vue_type_style_index_0_scoped_fb5f89cc_lang = "", _sfc_main$y = {
|
|
24268
24272
|
name: "Reminder",
|
|
24269
24273
|
components: {
|
|
24270
24274
|
CommonNoticeTool,
|
|
@@ -24378,8 +24382,8 @@ const CommonNoticeTool = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _s
|
|
|
24378
24382
|
}
|
|
24379
24383
|
}, _hoisted_1$b = { key: 0 }, _hoisted_2$9 = { key: 2 };
|
|
24380
24384
|
function _sfc_render$y(e, t, o, n, r, i) {
|
|
24381
|
-
const s = resolveComponent("el-switch"), a = resolveComponent("el-form-item"), l = resolveComponent("common-notice-tool"), d = resolveComponent("select-mail-templates"), c = resolveComponent("el-radio-button"), u = resolveComponent("el-radio-group"), m = resolveComponent("el-input-number"), p = resolveComponent("el-option"), _ = resolveComponent("el-select"), v = resolveComponent("el-button"), C = resolveComponent("el-input"), g = resolveComponent("form-fields"), f = resolveComponent("el-radio"), w = resolveComponent("el-checkbox"), E = resolveComponent("common-user-condition"),
|
|
24382
|
-
return openBlock(), createBlock(
|
|
24385
|
+
const s = resolveComponent("el-switch"), a = resolveComponent("el-form-item"), l = resolveComponent("common-notice-tool"), d = resolveComponent("select-mail-templates"), c = resolveComponent("el-radio-button"), u = resolveComponent("el-radio-group"), m = resolveComponent("el-input-number"), p = resolveComponent("el-option"), _ = resolveComponent("el-select"), v = resolveComponent("el-button"), C = resolveComponent("el-input"), g = resolveComponent("form-fields"), f = resolveComponent("el-radio"), w = resolveComponent("el-checkbox"), E = resolveComponent("InfoFilled"), T = resolveComponent("el-icon"), P = resolveComponent("el-tooltip"), O = resolveComponent("common-user-condition"), A = resolveComponent("el-form");
|
|
24386
|
+
return openBlock(), createBlock(A, {
|
|
24383
24387
|
model: r.model,
|
|
24384
24388
|
"label-width": "80px"
|
|
24385
24389
|
}, {
|
|
@@ -24390,7 +24394,7 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24390
24394
|
default: withCtx(() => [
|
|
24391
24395
|
createVNode(s, {
|
|
24392
24396
|
modelValue: r.showReminder,
|
|
24393
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
24397
|
+
"onUpdate:modelValue": t[0] || (t[0] = (k) => r.showReminder = k)
|
|
24394
24398
|
}, null, 8, ["modelValue"])
|
|
24395
24399
|
]),
|
|
24396
24400
|
_: 1
|
|
@@ -24398,7 +24402,7 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24398
24402
|
r.showReminder ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
24399
24403
|
createVNode(l, {
|
|
24400
24404
|
modelValue: r.model.remindType,
|
|
24401
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
24405
|
+
"onUpdate:modelValue": t[1] || (t[1] = (k) => r.model.remindType = k),
|
|
24402
24406
|
label: e.$t("workflowEditor.task.urgingMethod"),
|
|
24403
24407
|
"custom-msg": r.model.reminderCustomMsg,
|
|
24404
24408
|
onInputMsg: i.setReminderCustomMsg
|
|
@@ -24411,7 +24415,7 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24411
24415
|
default: withCtx(() => [
|
|
24412
24416
|
createVNode(d, {
|
|
24413
24417
|
modelValue: r.model.mailTemplateCode,
|
|
24414
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
24418
|
+
"onUpdate:modelValue": t[2] || (t[2] = (k) => r.model.mailTemplateCode = k),
|
|
24415
24419
|
onSetValue: i.setMailTemplateCode
|
|
24416
24420
|
}, null, 8, ["modelValue", "onSetValue"])
|
|
24417
24421
|
]),
|
|
@@ -24425,7 +24429,7 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24425
24429
|
default: withCtx(() => [
|
|
24426
24430
|
createVNode(d, {
|
|
24427
24431
|
modelValue: r.model.mailPointTemplateCode,
|
|
24428
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
24432
|
+
"onUpdate:modelValue": t[3] || (t[3] = (k) => r.model.mailPointTemplateCode = k),
|
|
24429
24433
|
onSetValue: i.setMailPointTemplateCode
|
|
24430
24434
|
}, null, 8, ["modelValue", "onSetValue"])
|
|
24431
24435
|
]),
|
|
@@ -24437,7 +24441,7 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24437
24441
|
default: withCtx(() => [
|
|
24438
24442
|
createVNode(u, {
|
|
24439
24443
|
modelValue: r.model.timeLimitType,
|
|
24440
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
24444
|
+
"onUpdate:modelValue": t[4] || (t[4] = (k) => r.model.timeLimitType = k),
|
|
24441
24445
|
"aria-label": "size control",
|
|
24442
24446
|
size: "small",
|
|
24443
24447
|
onClick: i.clearDueDateSourceField
|
|
@@ -24472,7 +24476,7 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24472
24476
|
!r.model.timeLimitType || r.model.timeLimitType === "DEFAULT" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
24473
24477
|
createVNode(m, {
|
|
24474
24478
|
modelValue: r.model.dueDate,
|
|
24475
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
24479
|
+
"onUpdate:modelValue": t[5] || (t[5] = (k) => r.model.dueDate = k),
|
|
24476
24480
|
"controls-position": "right",
|
|
24477
24481
|
min: 1,
|
|
24478
24482
|
max: 30,
|
|
@@ -24481,7 +24485,7 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24481
24485
|
}, null, 8, ["modelValue"]),
|
|
24482
24486
|
createVNode(_, {
|
|
24483
24487
|
modelValue: r.model.dueTimeUnit,
|
|
24484
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
24488
|
+
"onUpdate:modelValue": t[6] || (t[6] = (k) => r.model.dueTimeUnit = k),
|
|
24485
24489
|
style: { width: "70px" },
|
|
24486
24490
|
size: "small"
|
|
24487
24491
|
}, {
|
|
@@ -24523,7 +24527,7 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24523
24527
|
createElementVNode("span", null, toDisplayString$1(e.$t("workflowEditor.task.urgingInterval")), 1),
|
|
24524
24528
|
createVNode(m, {
|
|
24525
24529
|
modelValue: r.model.repeat,
|
|
24526
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
24530
|
+
"onUpdate:modelValue": t[7] || (t[7] = (k) => r.model.repeat = k),
|
|
24527
24531
|
"controls-position": "right",
|
|
24528
24532
|
min: 1,
|
|
24529
24533
|
max: 30,
|
|
@@ -24532,7 +24536,7 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24532
24536
|
}, null, 8, ["modelValue"]),
|
|
24533
24537
|
createVNode(_, {
|
|
24534
24538
|
modelValue: r.model.timeUnit,
|
|
24535
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
24539
|
+
"onUpdate:modelValue": t[8] || (t[8] = (k) => r.model.timeUnit = k),
|
|
24536
24540
|
style: { width: "70px" },
|
|
24537
24541
|
size: "small"
|
|
24538
24542
|
}, {
|
|
@@ -24555,7 +24559,7 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24555
24559
|
default: withCtx(() => [
|
|
24556
24560
|
createVNode(f, {
|
|
24557
24561
|
modelValue: r.showNotice,
|
|
24558
|
-
"onUpdate:modelValue": t[9] || (t[9] = (
|
|
24562
|
+
"onUpdate:modelValue": t[9] || (t[9] = (k) => r.showNotice = k),
|
|
24559
24563
|
label: !1
|
|
24560
24564
|
}, {
|
|
24561
24565
|
default: withCtx(() => [
|
|
@@ -24565,7 +24569,7 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24565
24569
|
}, 8, ["modelValue"]),
|
|
24566
24570
|
createVNode(f, {
|
|
24567
24571
|
modelValue: r.showNotice,
|
|
24568
|
-
"onUpdate:modelValue": t[10] || (t[10] = (
|
|
24572
|
+
"onUpdate:modelValue": t[10] || (t[10] = (k) => r.showNotice = k),
|
|
24569
24573
|
label: !0
|
|
24570
24574
|
}, {
|
|
24571
24575
|
default: withCtx(() => [
|
|
@@ -24584,7 +24588,7 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24584
24588
|
default: withCtx(() => [
|
|
24585
24589
|
createVNode(m, {
|
|
24586
24590
|
modelValue: r.model.remindTimes,
|
|
24587
|
-
"onUpdate:modelValue": t[11] || (t[11] = (
|
|
24591
|
+
"onUpdate:modelValue": t[11] || (t[11] = (k) => r.model.remindTimes = k),
|
|
24588
24592
|
"controls-position": "right",
|
|
24589
24593
|
min: 1,
|
|
24590
24594
|
max: 99,
|
|
@@ -24595,7 +24599,7 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24595
24599
|
}, 8, ["label"]),
|
|
24596
24600
|
createVNode(l, {
|
|
24597
24601
|
modelValue: r.model.noticeType,
|
|
24598
|
-
"onUpdate:modelValue": t[12] || (t[12] = (
|
|
24602
|
+
"onUpdate:modelValue": t[12] || (t[12] = (k) => r.model.noticeType = k),
|
|
24599
24603
|
label: e.$t("workflowEditor.common.notificationMethod"),
|
|
24600
24604
|
"custom-msg": r.model.noticeCustomMsg,
|
|
24601
24605
|
onInputMsg: i.setNoticeCustomMsg
|
|
@@ -24608,21 +24612,57 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24608
24612
|
default: withCtx(() => [
|
|
24609
24613
|
createVNode(w, {
|
|
24610
24614
|
modelValue: r.model.containTransferUser,
|
|
24611
|
-
"onUpdate:modelValue": t[13] || (t[13] = (
|
|
24615
|
+
"onUpdate:modelValue": t[13] || (t[13] = (k) => r.model.containTransferUser = k)
|
|
24612
24616
|
}, {
|
|
24613
24617
|
default: withCtx(() => [
|
|
24614
24618
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.task.includingHandoverPersonnel")), 1)
|
|
24615
24619
|
]),
|
|
24616
24620
|
_: 1
|
|
24617
|
-
}, 8, ["modelValue"])
|
|
24621
|
+
}, 8, ["modelValue"]),
|
|
24622
|
+
createVNode(w, {
|
|
24623
|
+
modelValue: r.model.noticeUserCustom,
|
|
24624
|
+
"onUpdate:modelValue": t[14] || (t[14] = (k) => r.model.noticeUserCustom = k)
|
|
24625
|
+
}, {
|
|
24626
|
+
default: withCtx(() => [
|
|
24627
|
+
createTextVNode(toDisplayString$1(e.$t("workflowEditor.task.custombeanName")), 1)
|
|
24628
|
+
]),
|
|
24629
|
+
_: 1
|
|
24630
|
+
}, 8, ["modelValue"]),
|
|
24631
|
+
r.model.noticeUserCustom ? (openBlock(), createBlock(C, {
|
|
24632
|
+
key: 0,
|
|
24633
|
+
modelValue: r.model.noticeUserCustombeanName,
|
|
24634
|
+
"onUpdate:modelValue": t[15] || (t[15] = (k) => r.model.noticeUserCustombeanName = k),
|
|
24635
|
+
style: { width: "240px" },
|
|
24636
|
+
placeholder: e.$t("workflowEditor.task.custombeanName")
|
|
24637
|
+
}, {
|
|
24638
|
+
append: withCtx(() => [
|
|
24639
|
+
createVNode(P, {
|
|
24640
|
+
class: "box-item",
|
|
24641
|
+
effect: "dark",
|
|
24642
|
+
content: e.$t("workflowEditor.task.reminderCustombeanNameTip"),
|
|
24643
|
+
placement: "top-start"
|
|
24644
|
+
}, {
|
|
24645
|
+
default: withCtx(() => [
|
|
24646
|
+
createVNode(T, null, {
|
|
24647
|
+
default: withCtx(() => [
|
|
24648
|
+
createVNode(E)
|
|
24649
|
+
]),
|
|
24650
|
+
_: 1
|
|
24651
|
+
})
|
|
24652
|
+
]),
|
|
24653
|
+
_: 1
|
|
24654
|
+
}, 8, ["content"])
|
|
24655
|
+
]),
|
|
24656
|
+
_: 1
|
|
24657
|
+
}, 8, ["modelValue", "placeholder"])) : createCommentVNode("", !0)
|
|
24618
24658
|
]),
|
|
24619
24659
|
_: 1
|
|
24620
24660
|
}, 8, ["label"])),
|
|
24621
24661
|
createVNode(a, { "label-width": "0" }, {
|
|
24622
24662
|
default: withCtx(() => [
|
|
24623
|
-
createVNode(
|
|
24663
|
+
createVNode(O, {
|
|
24624
24664
|
modelValue: r.model.noticeUserCondition,
|
|
24625
|
-
"onUpdate:modelValue": t[
|
|
24665
|
+
"onUpdate:modelValue": t[16] || (t[16] = (k) => r.model.noticeUserCondition = k)
|
|
24626
24666
|
}, null, 8, ["modelValue"])
|
|
24627
24667
|
]),
|
|
24628
24668
|
_: 1
|
|
@@ -24635,13 +24675,49 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24635
24675
|
default: withCtx(() => [
|
|
24636
24676
|
createVNode(w, {
|
|
24637
24677
|
modelValue: r.model.containNoticeUser,
|
|
24638
|
-
"onUpdate:modelValue": t[
|
|
24678
|
+
"onUpdate:modelValue": t[17] || (t[17] = (k) => r.model.containNoticeUser = k)
|
|
24639
24679
|
}, {
|
|
24640
24680
|
default: withCtx(() => [
|
|
24641
24681
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.task.includeNotifyPeople")), 1)
|
|
24642
24682
|
]),
|
|
24643
24683
|
_: 1
|
|
24644
|
-
}, 8, ["modelValue"])
|
|
24684
|
+
}, 8, ["modelValue"]),
|
|
24685
|
+
createVNode(w, {
|
|
24686
|
+
modelValue: r.model.noticeHandoverPersonnelCustom,
|
|
24687
|
+
"onUpdate:modelValue": t[18] || (t[18] = (k) => r.model.noticeHandoverPersonnelCustom = k)
|
|
24688
|
+
}, {
|
|
24689
|
+
default: withCtx(() => [
|
|
24690
|
+
createTextVNode(toDisplayString$1(e.$t("workflowEditor.task.custombeanName")), 1)
|
|
24691
|
+
]),
|
|
24692
|
+
_: 1
|
|
24693
|
+
}, 8, ["modelValue"]),
|
|
24694
|
+
r.model.noticeHandoverPersonnelCustom ? (openBlock(), createBlock(C, {
|
|
24695
|
+
key: 0,
|
|
24696
|
+
modelValue: r.model.noticeHandoverPersonnelCustombeanName,
|
|
24697
|
+
"onUpdate:modelValue": t[19] || (t[19] = (k) => r.model.noticeHandoverPersonnelCustombeanName = k),
|
|
24698
|
+
style: { width: "240px" },
|
|
24699
|
+
placeholder: e.$t("workflowEditor.task.custombeanName")
|
|
24700
|
+
}, {
|
|
24701
|
+
append: withCtx(() => [
|
|
24702
|
+
createVNode(P, {
|
|
24703
|
+
class: "box-item",
|
|
24704
|
+
effect: "dark",
|
|
24705
|
+
content: e.$t("workflowEditor.task.reminderHandoverCustombeanNameTip"),
|
|
24706
|
+
placement: "top-start"
|
|
24707
|
+
}, {
|
|
24708
|
+
default: withCtx(() => [
|
|
24709
|
+
createVNode(T, null, {
|
|
24710
|
+
default: withCtx(() => [
|
|
24711
|
+
createVNode(E)
|
|
24712
|
+
]),
|
|
24713
|
+
_: 1
|
|
24714
|
+
})
|
|
24715
|
+
]),
|
|
24716
|
+
_: 1
|
|
24717
|
+
}, 8, ["content"])
|
|
24718
|
+
]),
|
|
24719
|
+
_: 1
|
|
24720
|
+
}, 8, ["modelValue", "placeholder"])) : createCommentVNode("", !0)
|
|
24645
24721
|
]),
|
|
24646
24722
|
_: 1
|
|
24647
24723
|
}, 8, ["label"])),
|
|
@@ -24650,9 +24726,9 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24650
24726
|
"label-width": "0"
|
|
24651
24727
|
}, {
|
|
24652
24728
|
default: withCtx(() => [
|
|
24653
|
-
createVNode(
|
|
24729
|
+
createVNode(O, {
|
|
24654
24730
|
modelValue: r.model.transferUserCondition,
|
|
24655
|
-
"onUpdate:modelValue": t[
|
|
24731
|
+
"onUpdate:modelValue": t[20] || (t[20] = (k) => r.model.transferUserCondition = k)
|
|
24656
24732
|
}, null, 8, ["modelValue"])
|
|
24657
24733
|
]),
|
|
24658
24734
|
_: 1
|
|
@@ -24663,7 +24739,7 @@ function _sfc_render$y(e, t, o, n, r, i) {
|
|
|
24663
24739
|
_: 1
|
|
24664
24740
|
}, 8, ["model"]);
|
|
24665
24741
|
}
|
|
24666
|
-
const Reminder = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$y], ["__scopeId", "data-v-
|
|
24742
|
+
const Reminder = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$y], ["__scopeId", "data-v-fb5f89cc"]]), noticeReminder_vue_vue_type_style_index_0_scoped_b82251c5_lang = "", _sfc_main$x = {
|
|
24667
24743
|
name: "NoticeReminder",
|
|
24668
24744
|
components: {
|
|
24669
24745
|
Reminder,
|
|
@@ -25237,7 +25313,7 @@ function requireString_decoder() {
|
|
|
25237
25313
|
if (!(this instanceof n))
|
|
25238
25314
|
return new n(y, b);
|
|
25239
25315
|
var D = this;
|
|
25240
|
-
i(D), D.q = D.c = "", D.bufferCheckPosition = t.MAX_BUFFER_LENGTH, D.opt = b || {}, D.opt.lowercase = D.opt.lowercase || D.opt.lowercasetags, D.looseCase = D.opt.lowercase ? "toLowerCase" : "toUpperCase", D.tags = [], D.closed = D.closedRoot = D.sawRoot = !1, D.tag = D.error = null, D.strict = !!y, D.noscript = !!(y || D.opt.noscript), D.state =
|
|
25316
|
+
i(D), D.q = D.c = "", D.bufferCheckPosition = t.MAX_BUFFER_LENGTH, D.opt = b || {}, D.opt.lowercase = D.opt.lowercase || D.opt.lowercasetags, D.looseCase = D.opt.lowercase ? "toLowerCase" : "toUpperCase", D.tags = [], D.closed = D.closedRoot = D.sawRoot = !1, D.tag = D.error = null, D.strict = !!y, D.noscript = !!(y || D.opt.noscript), D.state = k.BEGIN, D.strictEntities = D.opt.strictEntities, D.ENTITIES = D.strictEntities ? Object.create(t.XML_ENTITIES) : Object.create(t.ENTITIES), D.attribList = [], D.opt.xmlns && (D.ns = Object.create(v)), D.trackPosition = D.opt.position !== !1, D.trackPosition && (D.position = D.line = D.column = 0), H(D, "onready");
|
|
25241
25317
|
}
|
|
25242
25318
|
Object.create || (Object.create = function(y) {
|
|
25243
25319
|
function b() {
|
|
@@ -25252,10 +25328,10 @@ function requireString_decoder() {
|
|
|
25252
25328
|
return b;
|
|
25253
25329
|
});
|
|
25254
25330
|
function r(y) {
|
|
25255
|
-
for (var b = Math.max(t.MAX_BUFFER_LENGTH, 10), D = 0,
|
|
25256
|
-
var W = y[o[
|
|
25331
|
+
for (var b = Math.max(t.MAX_BUFFER_LENGTH, 10), D = 0, V = 0, L = o.length; V < L; V++) {
|
|
25332
|
+
var W = y[o[V]].length;
|
|
25257
25333
|
if (W > b)
|
|
25258
|
-
switch (o[
|
|
25334
|
+
switch (o[V]) {
|
|
25259
25335
|
case "textNode":
|
|
25260
25336
|
U(y);
|
|
25261
25337
|
break;
|
|
@@ -25266,7 +25342,7 @@ function requireString_decoder() {
|
|
|
25266
25342
|
R(y, "onscript", y.script), y.script = "";
|
|
25267
25343
|
break;
|
|
25268
25344
|
default:
|
|
25269
|
-
Q(y, "Max buffer length exceeded: " + o[
|
|
25345
|
+
Q(y, "Max buffer length exceeded: " + o[V]);
|
|
25270
25346
|
}
|
|
25271
25347
|
D = Math.max(D, W);
|
|
25272
25348
|
}
|
|
@@ -25317,17 +25393,17 @@ function requireString_decoder() {
|
|
|
25317
25393
|
var D = this;
|
|
25318
25394
|
this._parser.onend = function() {
|
|
25319
25395
|
D.emit("end");
|
|
25320
|
-
}, this._parser.onerror = function(
|
|
25321
|
-
D.emit("error",
|
|
25322
|
-
}, this._decoder = null, l.forEach(function(
|
|
25323
|
-
Object.defineProperty(D, "on" +
|
|
25396
|
+
}, this._parser.onerror = function(V) {
|
|
25397
|
+
D.emit("error", V), D._parser.error = null;
|
|
25398
|
+
}, this._decoder = null, l.forEach(function(V) {
|
|
25399
|
+
Object.defineProperty(D, "on" + V, {
|
|
25324
25400
|
get: function() {
|
|
25325
|
-
return D._parser["on" +
|
|
25401
|
+
return D._parser["on" + V];
|
|
25326
25402
|
},
|
|
25327
25403
|
set: function(L) {
|
|
25328
25404
|
if (!L)
|
|
25329
|
-
return D.removeAllListeners(
|
|
25330
|
-
D.on(
|
|
25405
|
+
return D.removeAllListeners(V), D._parser["on" + V] = L, L;
|
|
25406
|
+
D.on(V, L);
|
|
25331
25407
|
},
|
|
25332
25408
|
enumerable: !0,
|
|
25333
25409
|
configurable: !1
|
|
@@ -25352,8 +25428,8 @@ function requireString_decoder() {
|
|
|
25352
25428
|
}, c.prototype.on = function(y, b) {
|
|
25353
25429
|
var D = this;
|
|
25354
25430
|
return !D._parser["on" + y] && l.indexOf(y) !== -1 && (D._parser["on" + y] = function() {
|
|
25355
|
-
var
|
|
25356
|
-
|
|
25431
|
+
var V = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
25432
|
+
V.splice(0, 0, y), D.emit.apply(D, V);
|
|
25357
25433
|
}), a.prototype.on.call(D, y, b);
|
|
25358
25434
|
};
|
|
25359
25435
|
var u = "[CDATA[", m = "DOCTYPE", p = "http://www.w3.org/XML/1998/namespace", _ = "http://www.w3.org/2000/xmlns/", v = { xml: p, xmlns: _ }, C = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, g = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/, f = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, w = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
|
|
@@ -25364,88 +25440,88 @@ function requireString_decoder() {
|
|
|
25364
25440
|
function T(y) {
|
|
25365
25441
|
return y === '"' || y === "'";
|
|
25366
25442
|
}
|
|
25367
|
-
function
|
|
25443
|
+
function P(y) {
|
|
25368
25444
|
return y === ">" || E(y);
|
|
25369
25445
|
}
|
|
25370
|
-
function
|
|
25446
|
+
function O(y, b) {
|
|
25371
25447
|
return y.test(b);
|
|
25372
25448
|
}
|
|
25373
25449
|
function A(y, b) {
|
|
25374
|
-
return !
|
|
25450
|
+
return !O(y, b);
|
|
25375
25451
|
}
|
|
25376
|
-
var
|
|
25452
|
+
var k = 0;
|
|
25377
25453
|
t.STATE = {
|
|
25378
|
-
BEGIN:
|
|
25454
|
+
BEGIN: k++,
|
|
25379
25455
|
// leading byte order mark or whitespace
|
|
25380
|
-
BEGIN_WHITESPACE:
|
|
25456
|
+
BEGIN_WHITESPACE: k++,
|
|
25381
25457
|
// leading whitespace
|
|
25382
|
-
TEXT:
|
|
25458
|
+
TEXT: k++,
|
|
25383
25459
|
// general stuff
|
|
25384
|
-
TEXT_ENTITY:
|
|
25460
|
+
TEXT_ENTITY: k++,
|
|
25385
25461
|
// & and such.
|
|
25386
|
-
OPEN_WAKA:
|
|
25462
|
+
OPEN_WAKA: k++,
|
|
25387
25463
|
// <
|
|
25388
|
-
SGML_DECL:
|
|
25464
|
+
SGML_DECL: k++,
|
|
25389
25465
|
// <!BLARG
|
|
25390
|
-
SGML_DECL_QUOTED:
|
|
25466
|
+
SGML_DECL_QUOTED: k++,
|
|
25391
25467
|
// <!BLARG foo "bar
|
|
25392
|
-
DOCTYPE:
|
|
25468
|
+
DOCTYPE: k++,
|
|
25393
25469
|
// <!DOCTYPE
|
|
25394
|
-
DOCTYPE_QUOTED:
|
|
25470
|
+
DOCTYPE_QUOTED: k++,
|
|
25395
25471
|
// <!DOCTYPE "//blah
|
|
25396
|
-
DOCTYPE_DTD:
|
|
25472
|
+
DOCTYPE_DTD: k++,
|
|
25397
25473
|
// <!DOCTYPE "//blah" [ ...
|
|
25398
|
-
DOCTYPE_DTD_QUOTED:
|
|
25474
|
+
DOCTYPE_DTD_QUOTED: k++,
|
|
25399
25475
|
// <!DOCTYPE "//blah" [ "foo
|
|
25400
|
-
COMMENT_STARTING:
|
|
25476
|
+
COMMENT_STARTING: k++,
|
|
25401
25477
|
// <!-
|
|
25402
|
-
COMMENT:
|
|
25478
|
+
COMMENT: k++,
|
|
25403
25479
|
// <!--
|
|
25404
|
-
COMMENT_ENDING:
|
|
25480
|
+
COMMENT_ENDING: k++,
|
|
25405
25481
|
// <!-- blah -
|
|
25406
|
-
COMMENT_ENDED:
|
|
25482
|
+
COMMENT_ENDED: k++,
|
|
25407
25483
|
// <!-- blah --
|
|
25408
|
-
CDATA:
|
|
25484
|
+
CDATA: k++,
|
|
25409
25485
|
// <![CDATA[ something
|
|
25410
|
-
CDATA_ENDING:
|
|
25486
|
+
CDATA_ENDING: k++,
|
|
25411
25487
|
// ]
|
|
25412
|
-
CDATA_ENDING_2:
|
|
25488
|
+
CDATA_ENDING_2: k++,
|
|
25413
25489
|
// ]]
|
|
25414
|
-
PROC_INST:
|
|
25490
|
+
PROC_INST: k++,
|
|
25415
25491
|
// <?hi
|
|
25416
|
-
PROC_INST_BODY:
|
|
25492
|
+
PROC_INST_BODY: k++,
|
|
25417
25493
|
// <?hi there
|
|
25418
|
-
PROC_INST_ENDING:
|
|
25494
|
+
PROC_INST_ENDING: k++,
|
|
25419
25495
|
// <?hi "there" ?
|
|
25420
|
-
OPEN_TAG:
|
|
25496
|
+
OPEN_TAG: k++,
|
|
25421
25497
|
// <strong
|
|
25422
|
-
OPEN_TAG_SLASH:
|
|
25498
|
+
OPEN_TAG_SLASH: k++,
|
|
25423
25499
|
// <strong /
|
|
25424
|
-
ATTRIB:
|
|
25500
|
+
ATTRIB: k++,
|
|
25425
25501
|
// <a
|
|
25426
|
-
ATTRIB_NAME:
|
|
25502
|
+
ATTRIB_NAME: k++,
|
|
25427
25503
|
// <a foo
|
|
25428
|
-
ATTRIB_NAME_SAW_WHITE:
|
|
25504
|
+
ATTRIB_NAME_SAW_WHITE: k++,
|
|
25429
25505
|
// <a foo _
|
|
25430
|
-
ATTRIB_VALUE:
|
|
25506
|
+
ATTRIB_VALUE: k++,
|
|
25431
25507
|
// <a foo=
|
|
25432
|
-
ATTRIB_VALUE_QUOTED:
|
|
25508
|
+
ATTRIB_VALUE_QUOTED: k++,
|
|
25433
25509
|
// <a foo="bar
|
|
25434
|
-
ATTRIB_VALUE_CLOSED:
|
|
25510
|
+
ATTRIB_VALUE_CLOSED: k++,
|
|
25435
25511
|
// <a foo="bar"
|
|
25436
|
-
ATTRIB_VALUE_UNQUOTED:
|
|
25512
|
+
ATTRIB_VALUE_UNQUOTED: k++,
|
|
25437
25513
|
// <a foo=bar
|
|
25438
|
-
ATTRIB_VALUE_ENTITY_Q:
|
|
25514
|
+
ATTRIB_VALUE_ENTITY_Q: k++,
|
|
25439
25515
|
// <foo bar="""
|
|
25440
|
-
ATTRIB_VALUE_ENTITY_U:
|
|
25516
|
+
ATTRIB_VALUE_ENTITY_U: k++,
|
|
25441
25517
|
// <foo bar="
|
|
25442
|
-
CLOSE_TAG:
|
|
25518
|
+
CLOSE_TAG: k++,
|
|
25443
25519
|
// </a
|
|
25444
|
-
CLOSE_TAG_SAW_WHITE:
|
|
25520
|
+
CLOSE_TAG_SAW_WHITE: k++,
|
|
25445
25521
|
// </a >
|
|
25446
|
-
SCRIPT:
|
|
25522
|
+
SCRIPT: k++,
|
|
25447
25523
|
// <script> ...
|
|
25448
|
-
SCRIPT_ENDING:
|
|
25524
|
+
SCRIPT_ENDING: k++
|
|
25449
25525
|
// <script> ... <
|
|
25450
25526
|
}, t.XML_ENTITIES = {
|
|
25451
25527
|
amp: "&",
|
|
@@ -25713,15 +25789,15 @@ function requireString_decoder() {
|
|
|
25713
25789
|
});
|
|
25714
25790
|
for (var B in t.STATE)
|
|
25715
25791
|
t.STATE[t.STATE[B]] = B;
|
|
25716
|
-
|
|
25717
|
-
function
|
|
25792
|
+
k = t.STATE;
|
|
25793
|
+
function H(y, b, D) {
|
|
25718
25794
|
y[b] && y[b](D);
|
|
25719
25795
|
}
|
|
25720
25796
|
function R(y, b, D) {
|
|
25721
|
-
y.textNode && U(y),
|
|
25797
|
+
y.textNode && U(y), H(y, b, D);
|
|
25722
25798
|
}
|
|
25723
25799
|
function U(y) {
|
|
25724
|
-
y.textNode = z(y.opt, y.textNode), y.textNode &&
|
|
25800
|
+
y.textNode = z(y.opt, y.textNode), y.textNode && H(y, "ontext", y.textNode), y.textNode = "";
|
|
25725
25801
|
}
|
|
25726
25802
|
function z(y, b) {
|
|
25727
25803
|
return y.trim && (b = b.trim()), y.normalize && (b = b.replace(/\s+/g, " ")), b;
|
|
@@ -25730,12 +25806,12 @@ function requireString_decoder() {
|
|
|
25730
25806
|
return U(y), y.trackPosition && (b += `
|
|
25731
25807
|
Line: ` + y.line + `
|
|
25732
25808
|
Column: ` + y.column + `
|
|
25733
|
-
Char: ` + y.c), b = new Error(b), y.error = b,
|
|
25809
|
+
Char: ` + y.c), b = new Error(b), y.error = b, H(y, "onerror", b), y;
|
|
25734
25810
|
}
|
|
25735
25811
|
function J(y) {
|
|
25736
|
-
return y.sawRoot && !y.closedRoot &&
|
|
25812
|
+
return y.sawRoot && !y.closedRoot && j(y, "Unclosed root tag"), y.state !== k.BEGIN && y.state !== k.BEGIN_WHITESPACE && y.state !== k.TEXT && Q(y, "Unexpected end"), U(y), y.c = "", y.closed = !0, H(y, "onend"), n.call(y, y.strict, y.opt), y;
|
|
25737
25813
|
}
|
|
25738
|
-
function
|
|
25814
|
+
function j(y, b) {
|
|
25739
25815
|
if (typeof y != "object" || !(y instanceof n))
|
|
25740
25816
|
throw new Error("bad call to strictFail");
|
|
25741
25817
|
y.strict && Q(y, b);
|
|
@@ -25746,7 +25822,7 @@ Char: ` + y.c), b = new Error(b), y.error = b, j(y, "onerror", b), y;
|
|
|
25746
25822
|
y.opt.xmlns && (D.ns = b.ns), y.attribList.length = 0, R(y, "onopentagstart", D);
|
|
25747
25823
|
}
|
|
25748
25824
|
function Z(y, b) {
|
|
25749
|
-
var D = y.indexOf(":"),
|
|
25825
|
+
var D = y.indexOf(":"), V = D < 0 ? ["", y] : y.split(":"), L = V[0], W = V[1];
|
|
25750
25826
|
return b && y === "xmlns" && (L = "xmlns", W = ""), { prefix: L, local: W };
|
|
25751
25827
|
}
|
|
25752
25828
|
function Y(y) {
|
|
@@ -25755,23 +25831,23 @@ Char: ` + y.c), b = new Error(b), y.error = b, j(y, "onerror", b), y;
|
|
|
25755
25831
|
return;
|
|
25756
25832
|
}
|
|
25757
25833
|
if (y.opt.xmlns) {
|
|
25758
|
-
var b = Z(y.attribName, !0), D = b.prefix,
|
|
25834
|
+
var b = Z(y.attribName, !0), D = b.prefix, V = b.local;
|
|
25759
25835
|
if (D === "xmlns")
|
|
25760
|
-
if (
|
|
25761
|
-
|
|
25836
|
+
if (V === "xml" && y.attribValue !== p)
|
|
25837
|
+
j(
|
|
25762
25838
|
y,
|
|
25763
25839
|
"xml: prefix must be bound to " + p + `
|
|
25764
25840
|
Actual: ` + y.attribValue
|
|
25765
25841
|
);
|
|
25766
|
-
else if (
|
|
25767
|
-
|
|
25842
|
+
else if (V === "xmlns" && y.attribValue !== _)
|
|
25843
|
+
j(
|
|
25768
25844
|
y,
|
|
25769
25845
|
"xmlns: prefix must be bound to " + _ + `
|
|
25770
25846
|
Actual: ` + y.attribValue
|
|
25771
25847
|
);
|
|
25772
25848
|
else {
|
|
25773
25849
|
var L = y.tag, W = y.tags[y.tags.length - 1] || y;
|
|
25774
|
-
L.ns === W.ns && (L.ns = Object.create(W.ns)), L.ns[
|
|
25850
|
+
L.ns === W.ns && (L.ns = Object.create(W.ns)), L.ns[V] = y.attribValue;
|
|
25775
25851
|
}
|
|
25776
25852
|
y.attribList.push([y.attribName, y.attribValue]);
|
|
25777
25853
|
} else
|
|
@@ -25783,8 +25859,8 @@ Actual: ` + y.attribValue
|
|
|
25783
25859
|
}
|
|
25784
25860
|
function ee(y, b) {
|
|
25785
25861
|
if (y.opt.xmlns) {
|
|
25786
|
-
var D = y.tag,
|
|
25787
|
-
D.prefix =
|
|
25862
|
+
var D = y.tag, V = Z(y.tagName);
|
|
25863
|
+
D.prefix = V.prefix, D.local = V.local, D.uri = D.ns[V.prefix] || "", D.prefix && !D.uri && (j(y, "Unbound namespace prefix: " + JSON.stringify(y.tagName)), D.uri = V.prefix);
|
|
25788
25864
|
var L = y.tags[y.tags.length - 1] || y;
|
|
25789
25865
|
D.ns && L.ns !== D.ns && Object.keys(D.ns).forEach(function(fe) {
|
|
25790
25866
|
R(y, "onopennamespace", {
|
|
@@ -25793,65 +25869,65 @@ Actual: ` + y.attribValue
|
|
|
25793
25869
|
});
|
|
25794
25870
|
});
|
|
25795
25871
|
for (var W = 0, N = y.attribList.length; W < N; W++) {
|
|
25796
|
-
var
|
|
25872
|
+
var S = y.attribList[W], I = S[0], F = S[1], M = Z(I, !0), G = M.prefix, ae = M.local, le = G === "" ? "" : D.ns[G] || "", me = {
|
|
25797
25873
|
name: I,
|
|
25798
25874
|
value: F,
|
|
25799
25875
|
prefix: G,
|
|
25800
25876
|
local: ae,
|
|
25801
25877
|
uri: le
|
|
25802
25878
|
};
|
|
25803
|
-
G && G !== "xmlns" && !le && (
|
|
25879
|
+
G && G !== "xmlns" && !le && (j(y, "Unbound namespace prefix: " + JSON.stringify(G)), me.uri = G), y.tag.attributes[I] = me, R(y, "onattribute", me);
|
|
25804
25880
|
}
|
|
25805
25881
|
y.attribList.length = 0;
|
|
25806
25882
|
}
|
|
25807
|
-
y.tag.isSelfClosing = !!b, y.sawRoot = !0, y.tags.push(y.tag), R(y, "onopentag", y.tag), b || (!y.noscript && y.tagName.toLowerCase() === "script" ? y.state =
|
|
25883
|
+
y.tag.isSelfClosing = !!b, y.sawRoot = !0, y.tags.push(y.tag), R(y, "onopentag", y.tag), b || (!y.noscript && y.tagName.toLowerCase() === "script" ? y.state = k.SCRIPT : y.state = k.TEXT, y.tag = null, y.tagName = ""), y.attribName = y.attribValue = "", y.attribList.length = 0;
|
|
25808
25884
|
}
|
|
25809
25885
|
function X(y) {
|
|
25810
25886
|
if (!y.tagName) {
|
|
25811
|
-
|
|
25887
|
+
j(y, "Weird empty close tag."), y.textNode += "</>", y.state = k.TEXT;
|
|
25812
25888
|
return;
|
|
25813
25889
|
}
|
|
25814
25890
|
if (y.script) {
|
|
25815
25891
|
if (y.tagName !== "script") {
|
|
25816
|
-
y.script += "</" + y.tagName + ">", y.tagName = "", y.state =
|
|
25892
|
+
y.script += "</" + y.tagName + ">", y.tagName = "", y.state = k.SCRIPT;
|
|
25817
25893
|
return;
|
|
25818
25894
|
}
|
|
25819
25895
|
R(y, "onscript", y.script), y.script = "";
|
|
25820
25896
|
}
|
|
25821
25897
|
var b = y.tags.length, D = y.tagName;
|
|
25822
25898
|
y.strict || (D = D[y.looseCase]());
|
|
25823
|
-
for (var
|
|
25899
|
+
for (var V = D; b--; ) {
|
|
25824
25900
|
var L = y.tags[b];
|
|
25825
|
-
if (L.name !==
|
|
25826
|
-
|
|
25901
|
+
if (L.name !== V)
|
|
25902
|
+
j(y, "Unexpected close tag");
|
|
25827
25903
|
else
|
|
25828
25904
|
break;
|
|
25829
25905
|
}
|
|
25830
25906
|
if (b < 0) {
|
|
25831
|
-
|
|
25907
|
+
j(y, "Unmatched closing tag: " + y.tagName), y.textNode += "</" + y.tagName + ">", y.state = k.TEXT;
|
|
25832
25908
|
return;
|
|
25833
25909
|
}
|
|
25834
25910
|
y.tagName = D;
|
|
25835
25911
|
for (var W = y.tags.length; W-- > b; ) {
|
|
25836
25912
|
var N = y.tag = y.tags.pop();
|
|
25837
25913
|
y.tagName = y.tag.name, R(y, "onclosetag", y.tagName);
|
|
25838
|
-
var
|
|
25914
|
+
var S = {};
|
|
25839
25915
|
for (var I in N.ns)
|
|
25840
|
-
|
|
25916
|
+
S[I] = N.ns[I];
|
|
25841
25917
|
var F = y.tags[y.tags.length - 1] || y;
|
|
25842
25918
|
y.opt.xmlns && N.ns !== F.ns && Object.keys(N.ns).forEach(function(M) {
|
|
25843
25919
|
var G = N.ns[M];
|
|
25844
25920
|
R(y, "onclosenamespace", { prefix: M, uri: G });
|
|
25845
25921
|
});
|
|
25846
25922
|
}
|
|
25847
|
-
b === 0 && (y.closedRoot = !0), y.tagName = y.attribValue = y.attribName = "", y.attribList.length = 0, y.state =
|
|
25923
|
+
b === 0 && (y.closedRoot = !0), y.tagName = y.attribValue = y.attribName = "", y.attribList.length = 0, y.state = k.TEXT;
|
|
25848
25924
|
}
|
|
25849
25925
|
function se(y) {
|
|
25850
|
-
var b = y.entity, D = b.toLowerCase(),
|
|
25851
|
-
return y.ENTITIES[b] ? y.ENTITIES[b] : y.ENTITIES[D] ? y.ENTITIES[D] : (b = D, b.charAt(0) === "#" && (b.charAt(1) === "x" ? (b = b.slice(2),
|
|
25926
|
+
var b = y.entity, D = b.toLowerCase(), V, L = "";
|
|
25927
|
+
return y.ENTITIES[b] ? y.ENTITIES[b] : y.ENTITIES[D] ? y.ENTITIES[D] : (b = D, b.charAt(0) === "#" && (b.charAt(1) === "x" ? (b = b.slice(2), V = parseInt(b, 16), L = V.toString(16)) : (b = b.slice(1), V = parseInt(b, 10), L = V.toString(10))), b = b.replace(/^0+/, ""), isNaN(V) || L.toLowerCase() !== b ? (j(y, "Invalid character entity"), "&" + y.entity + ";") : String.fromCodePoint(V));
|
|
25852
25928
|
}
|
|
25853
25929
|
function te(y, b) {
|
|
25854
|
-
b === "<" ? (y.state =
|
|
25930
|
+
b === "<" ? (y.state = k.OPEN_WAKA, y.startTagPosition = y.position) : E(b) || (j(y, "Non-whitespace before first tag."), y.textNode = b, y.state = k.TEXT);
|
|
25855
25931
|
}
|
|
25856
25932
|
function ie(y, b) {
|
|
25857
25933
|
var D = "";
|
|
@@ -25869,188 +25945,188 @@ Actual: ` + y.attribValue
|
|
|
25869
25945
|
if (y === null)
|
|
25870
25946
|
return J(b);
|
|
25871
25947
|
typeof y == "object" && (y = y.toString());
|
|
25872
|
-
for (var D = 0,
|
|
25873
|
-
switch (b.trackPosition && (b.position++,
|
|
25948
|
+
for (var D = 0, V = ""; V = ie(y, D++), b.c = V, !!V; )
|
|
25949
|
+
switch (b.trackPosition && (b.position++, V === `
|
|
25874
25950
|
` ? (b.line++, b.column = 0) : b.column++), b.state) {
|
|
25875
|
-
case
|
|
25876
|
-
if (b.state =
|
|
25951
|
+
case k.BEGIN:
|
|
25952
|
+
if (b.state = k.BEGIN_WHITESPACE, V === "\uFEFF")
|
|
25877
25953
|
continue;
|
|
25878
|
-
te(b,
|
|
25954
|
+
te(b, V);
|
|
25879
25955
|
continue;
|
|
25880
|
-
case
|
|
25881
|
-
te(b,
|
|
25956
|
+
case k.BEGIN_WHITESPACE:
|
|
25957
|
+
te(b, V);
|
|
25882
25958
|
continue;
|
|
25883
|
-
case
|
|
25959
|
+
case k.TEXT:
|
|
25884
25960
|
if (b.sawRoot && !b.closedRoot) {
|
|
25885
|
-
for (var L = D - 1;
|
|
25886
|
-
|
|
25961
|
+
for (var L = D - 1; V && V !== "<" && V !== "&"; )
|
|
25962
|
+
V = ie(y, D++), V && b.trackPosition && (b.position++, V === `
|
|
25887
25963
|
` ? (b.line++, b.column = 0) : b.column++);
|
|
25888
25964
|
b.textNode += y.substring(L, D - 1);
|
|
25889
25965
|
}
|
|
25890
|
-
|
|
25966
|
+
V === "<" && !(b.sawRoot && b.closedRoot && !b.strict) ? (b.state = k.OPEN_WAKA, b.startTagPosition = b.position) : (!E(V) && (!b.sawRoot || b.closedRoot) && j(b, "Text data outside of root node."), V === "&" ? b.state = k.TEXT_ENTITY : b.textNode += V);
|
|
25891
25967
|
continue;
|
|
25892
|
-
case
|
|
25893
|
-
|
|
25968
|
+
case k.SCRIPT:
|
|
25969
|
+
V === "<" ? b.state = k.SCRIPT_ENDING : b.script += V;
|
|
25894
25970
|
continue;
|
|
25895
|
-
case
|
|
25896
|
-
|
|
25971
|
+
case k.SCRIPT_ENDING:
|
|
25972
|
+
V === "/" ? b.state = k.CLOSE_TAG : (b.script += "<" + V, b.state = k.SCRIPT);
|
|
25897
25973
|
continue;
|
|
25898
|
-
case
|
|
25899
|
-
if (
|
|
25900
|
-
b.state =
|
|
25901
|
-
else if (!E(
|
|
25902
|
-
if (
|
|
25903
|
-
b.state =
|
|
25904
|
-
else if (
|
|
25905
|
-
b.state =
|
|
25906
|
-
else if (
|
|
25907
|
-
b.state =
|
|
25974
|
+
case k.OPEN_WAKA:
|
|
25975
|
+
if (V === "!")
|
|
25976
|
+
b.state = k.SGML_DECL, b.sgmlDecl = "";
|
|
25977
|
+
else if (!E(V))
|
|
25978
|
+
if (O(C, V))
|
|
25979
|
+
b.state = k.OPEN_TAG, b.tagName = V;
|
|
25980
|
+
else if (V === "/")
|
|
25981
|
+
b.state = k.CLOSE_TAG, b.tagName = "";
|
|
25982
|
+
else if (V === "?")
|
|
25983
|
+
b.state = k.PROC_INST, b.procInstName = b.procInstBody = "";
|
|
25908
25984
|
else {
|
|
25909
|
-
if (
|
|
25985
|
+
if (j(b, "Unencoded <"), b.startTagPosition + 1 < b.position) {
|
|
25910
25986
|
var W = b.position - b.startTagPosition;
|
|
25911
|
-
|
|
25987
|
+
V = new Array(W).join(" ") + V;
|
|
25912
25988
|
}
|
|
25913
|
-
b.textNode += "<" +
|
|
25989
|
+
b.textNode += "<" + V, b.state = k.TEXT;
|
|
25914
25990
|
}
|
|
25915
25991
|
continue;
|
|
25916
|
-
case
|
|
25917
|
-
(b.sgmlDecl +
|
|
25992
|
+
case k.SGML_DECL:
|
|
25993
|
+
(b.sgmlDecl + V).toUpperCase() === u ? (R(b, "onopencdata"), b.state = k.CDATA, b.sgmlDecl = "", b.cdata = "") : b.sgmlDecl + V === "--" ? (b.state = k.COMMENT, b.comment = "", b.sgmlDecl = "") : (b.sgmlDecl + V).toUpperCase() === m ? (b.state = k.DOCTYPE, (b.doctype || b.sawRoot) && j(
|
|
25918
25994
|
b,
|
|
25919
25995
|
"Inappropriately located doctype declaration"
|
|
25920
|
-
), b.doctype = "", b.sgmlDecl = "") :
|
|
25996
|
+
), b.doctype = "", b.sgmlDecl = "") : V === ">" ? (R(b, "onsgmldeclaration", b.sgmlDecl), b.sgmlDecl = "", b.state = k.TEXT) : (T(V) && (b.state = k.SGML_DECL_QUOTED), b.sgmlDecl += V);
|
|
25921
25997
|
continue;
|
|
25922
|
-
case
|
|
25923
|
-
|
|
25998
|
+
case k.SGML_DECL_QUOTED:
|
|
25999
|
+
V === b.q && (b.state = k.SGML_DECL, b.q = ""), b.sgmlDecl += V;
|
|
25924
26000
|
continue;
|
|
25925
|
-
case
|
|
25926
|
-
|
|
26001
|
+
case k.DOCTYPE:
|
|
26002
|
+
V === ">" ? (b.state = k.TEXT, R(b, "ondoctype", b.doctype), b.doctype = !0) : (b.doctype += V, V === "[" ? b.state = k.DOCTYPE_DTD : T(V) && (b.state = k.DOCTYPE_QUOTED, b.q = V));
|
|
25927
26003
|
continue;
|
|
25928
|
-
case
|
|
25929
|
-
b.doctype +=
|
|
26004
|
+
case k.DOCTYPE_QUOTED:
|
|
26005
|
+
b.doctype += V, V === b.q && (b.q = "", b.state = k.DOCTYPE);
|
|
25930
26006
|
continue;
|
|
25931
|
-
case
|
|
25932
|
-
b.doctype +=
|
|
26007
|
+
case k.DOCTYPE_DTD:
|
|
26008
|
+
b.doctype += V, V === "]" ? b.state = k.DOCTYPE : T(V) && (b.state = k.DOCTYPE_DTD_QUOTED, b.q = V);
|
|
25933
26009
|
continue;
|
|
25934
|
-
case
|
|
25935
|
-
b.doctype +=
|
|
26010
|
+
case k.DOCTYPE_DTD_QUOTED:
|
|
26011
|
+
b.doctype += V, V === b.q && (b.state = k.DOCTYPE_DTD, b.q = "");
|
|
25936
26012
|
continue;
|
|
25937
|
-
case
|
|
25938
|
-
|
|
26013
|
+
case k.COMMENT:
|
|
26014
|
+
V === "-" ? b.state = k.COMMENT_ENDING : b.comment += V;
|
|
25939
26015
|
continue;
|
|
25940
|
-
case
|
|
25941
|
-
|
|
26016
|
+
case k.COMMENT_ENDING:
|
|
26017
|
+
V === "-" ? (b.state = k.COMMENT_ENDED, b.comment = z(b.opt, b.comment), b.comment && R(b, "oncomment", b.comment), b.comment = "") : (b.comment += "-" + V, b.state = k.COMMENT);
|
|
25942
26018
|
continue;
|
|
25943
|
-
case
|
|
25944
|
-
|
|
26019
|
+
case k.COMMENT_ENDED:
|
|
26020
|
+
V !== ">" ? (j(b, "Malformed comment"), b.comment += "--" + V, b.state = k.COMMENT) : b.state = k.TEXT;
|
|
25945
26021
|
continue;
|
|
25946
|
-
case
|
|
25947
|
-
|
|
26022
|
+
case k.CDATA:
|
|
26023
|
+
V === "]" ? b.state = k.CDATA_ENDING : b.cdata += V;
|
|
25948
26024
|
continue;
|
|
25949
|
-
case
|
|
25950
|
-
|
|
26025
|
+
case k.CDATA_ENDING:
|
|
26026
|
+
V === "]" ? b.state = k.CDATA_ENDING_2 : (b.cdata += "]" + V, b.state = k.CDATA);
|
|
25951
26027
|
continue;
|
|
25952
|
-
case
|
|
25953
|
-
|
|
26028
|
+
case k.CDATA_ENDING_2:
|
|
26029
|
+
V === ">" ? (b.cdata && R(b, "oncdata", b.cdata), R(b, "onclosecdata"), b.cdata = "", b.state = k.TEXT) : V === "]" ? b.cdata += "]" : (b.cdata += "]]" + V, b.state = k.CDATA);
|
|
25954
26030
|
continue;
|
|
25955
|
-
case
|
|
25956
|
-
|
|
26031
|
+
case k.PROC_INST:
|
|
26032
|
+
V === "?" ? b.state = k.PROC_INST_ENDING : E(V) ? b.state = k.PROC_INST_BODY : b.procInstName += V;
|
|
25957
26033
|
continue;
|
|
25958
|
-
case
|
|
25959
|
-
if (!b.procInstBody && E(
|
|
26034
|
+
case k.PROC_INST_BODY:
|
|
26035
|
+
if (!b.procInstBody && E(V))
|
|
25960
26036
|
continue;
|
|
25961
|
-
|
|
26037
|
+
V === "?" ? b.state = k.PROC_INST_ENDING : b.procInstBody += V;
|
|
25962
26038
|
continue;
|
|
25963
|
-
case
|
|
25964
|
-
|
|
26039
|
+
case k.PROC_INST_ENDING:
|
|
26040
|
+
V === ">" ? (R(b, "onprocessinginstruction", {
|
|
25965
26041
|
name: b.procInstName,
|
|
25966
26042
|
body: b.procInstBody
|
|
25967
|
-
}), b.procInstName = b.procInstBody = "", b.state =
|
|
26043
|
+
}), b.procInstName = b.procInstBody = "", b.state = k.TEXT) : (b.procInstBody += "?" + V, b.state = k.PROC_INST_BODY);
|
|
25968
26044
|
continue;
|
|
25969
|
-
case
|
|
25970
|
-
|
|
26045
|
+
case k.OPEN_TAG:
|
|
26046
|
+
O(g, V) ? b.tagName += V : (K(b), V === ">" ? ee(b) : V === "/" ? b.state = k.OPEN_TAG_SLASH : (E(V) || j(b, "Invalid character in tag name"), b.state = k.ATTRIB));
|
|
25971
26047
|
continue;
|
|
25972
|
-
case
|
|
25973
|
-
|
|
26048
|
+
case k.OPEN_TAG_SLASH:
|
|
26049
|
+
V === ">" ? (ee(b, !0), X(b)) : (j(b, "Forward-slash in opening tag not followed by >"), b.state = k.ATTRIB);
|
|
25974
26050
|
continue;
|
|
25975
|
-
case
|
|
25976
|
-
if (E(
|
|
26051
|
+
case k.ATTRIB:
|
|
26052
|
+
if (E(V))
|
|
25977
26053
|
continue;
|
|
25978
|
-
|
|
26054
|
+
V === ">" ? ee(b) : V === "/" ? b.state = k.OPEN_TAG_SLASH : O(C, V) ? (b.attribName = V, b.attribValue = "", b.state = k.ATTRIB_NAME) : j(b, "Invalid attribute name");
|
|
25979
26055
|
continue;
|
|
25980
|
-
case
|
|
25981
|
-
|
|
26056
|
+
case k.ATTRIB_NAME:
|
|
26057
|
+
V === "=" ? b.state = k.ATTRIB_VALUE : V === ">" ? (j(b, "Attribute without value"), b.attribValue = b.attribName, Y(b), ee(b)) : E(V) ? b.state = k.ATTRIB_NAME_SAW_WHITE : O(g, V) ? b.attribName += V : j(b, "Invalid attribute name");
|
|
25982
26058
|
continue;
|
|
25983
|
-
case
|
|
25984
|
-
if (
|
|
25985
|
-
b.state =
|
|
26059
|
+
case k.ATTRIB_NAME_SAW_WHITE:
|
|
26060
|
+
if (V === "=")
|
|
26061
|
+
b.state = k.ATTRIB_VALUE;
|
|
25986
26062
|
else {
|
|
25987
|
-
if (E(
|
|
26063
|
+
if (E(V))
|
|
25988
26064
|
continue;
|
|
25989
|
-
|
|
26065
|
+
j(b, "Attribute without value"), b.tag.attributes[b.attribName] = "", b.attribValue = "", R(b, "onattribute", {
|
|
25990
26066
|
name: b.attribName,
|
|
25991
26067
|
value: ""
|
|
25992
|
-
}), b.attribName = "",
|
|
26068
|
+
}), b.attribName = "", V === ">" ? ee(b) : O(C, V) ? (b.attribName = V, b.state = k.ATTRIB_NAME) : (j(b, "Invalid attribute name"), b.state = k.ATTRIB);
|
|
25993
26069
|
}
|
|
25994
26070
|
continue;
|
|
25995
|
-
case
|
|
25996
|
-
if (E(
|
|
26071
|
+
case k.ATTRIB_VALUE:
|
|
26072
|
+
if (E(V))
|
|
25997
26073
|
continue;
|
|
25998
|
-
T(
|
|
26074
|
+
T(V) ? (b.q = V, b.state = k.ATTRIB_VALUE_QUOTED) : (j(b, "Unquoted attribute value"), b.state = k.ATTRIB_VALUE_UNQUOTED, b.attribValue = V);
|
|
25999
26075
|
continue;
|
|
26000
|
-
case
|
|
26001
|
-
if (
|
|
26002
|
-
|
|
26076
|
+
case k.ATTRIB_VALUE_QUOTED:
|
|
26077
|
+
if (V !== b.q) {
|
|
26078
|
+
V === "&" ? b.state = k.ATTRIB_VALUE_ENTITY_Q : b.attribValue += V;
|
|
26003
26079
|
continue;
|
|
26004
26080
|
}
|
|
26005
|
-
Y(b), b.q = "", b.state =
|
|
26081
|
+
Y(b), b.q = "", b.state = k.ATTRIB_VALUE_CLOSED;
|
|
26006
26082
|
continue;
|
|
26007
|
-
case
|
|
26008
|
-
E(
|
|
26083
|
+
case k.ATTRIB_VALUE_CLOSED:
|
|
26084
|
+
E(V) ? b.state = k.ATTRIB : V === ">" ? ee(b) : V === "/" ? b.state = k.OPEN_TAG_SLASH : O(C, V) ? (j(b, "No whitespace between attributes"), b.attribName = V, b.attribValue = "", b.state = k.ATTRIB_NAME) : j(b, "Invalid attribute name");
|
|
26009
26085
|
continue;
|
|
26010
|
-
case
|
|
26011
|
-
if (!V
|
|
26012
|
-
|
|
26086
|
+
case k.ATTRIB_VALUE_UNQUOTED:
|
|
26087
|
+
if (!P(V)) {
|
|
26088
|
+
V === "&" ? b.state = k.ATTRIB_VALUE_ENTITY_U : b.attribValue += V;
|
|
26013
26089
|
continue;
|
|
26014
26090
|
}
|
|
26015
|
-
Y(b),
|
|
26091
|
+
Y(b), V === ">" ? ee(b) : b.state = k.ATTRIB;
|
|
26016
26092
|
continue;
|
|
26017
|
-
case
|
|
26093
|
+
case k.CLOSE_TAG:
|
|
26018
26094
|
if (b.tagName)
|
|
26019
|
-
|
|
26095
|
+
V === ">" ? X(b) : O(g, V) ? b.tagName += V : b.script ? (b.script += "</" + b.tagName, b.tagName = "", b.state = k.SCRIPT) : (E(V) || j(b, "Invalid tagname in closing tag"), b.state = k.CLOSE_TAG_SAW_WHITE);
|
|
26020
26096
|
else {
|
|
26021
|
-
if (E(
|
|
26097
|
+
if (E(V))
|
|
26022
26098
|
continue;
|
|
26023
|
-
A(C,
|
|
26099
|
+
A(C, V) ? b.script ? (b.script += "</" + V, b.state = k.SCRIPT) : j(b, "Invalid tagname in closing tag.") : b.tagName = V;
|
|
26024
26100
|
}
|
|
26025
26101
|
continue;
|
|
26026
|
-
case
|
|
26027
|
-
if (E(
|
|
26102
|
+
case k.CLOSE_TAG_SAW_WHITE:
|
|
26103
|
+
if (E(V))
|
|
26028
26104
|
continue;
|
|
26029
|
-
|
|
26105
|
+
V === ">" ? X(b) : j(b, "Invalid characters in closing tag");
|
|
26030
26106
|
continue;
|
|
26031
|
-
case
|
|
26032
|
-
case
|
|
26033
|
-
case
|
|
26034
|
-
var N,
|
|
26107
|
+
case k.TEXT_ENTITY:
|
|
26108
|
+
case k.ATTRIB_VALUE_ENTITY_Q:
|
|
26109
|
+
case k.ATTRIB_VALUE_ENTITY_U:
|
|
26110
|
+
var N, S;
|
|
26035
26111
|
switch (b.state) {
|
|
26036
|
-
case
|
|
26037
|
-
N =
|
|
26112
|
+
case k.TEXT_ENTITY:
|
|
26113
|
+
N = k.TEXT, S = "textNode";
|
|
26038
26114
|
break;
|
|
26039
|
-
case
|
|
26040
|
-
N =
|
|
26115
|
+
case k.ATTRIB_VALUE_ENTITY_Q:
|
|
26116
|
+
N = k.ATTRIB_VALUE_QUOTED, S = "attribValue";
|
|
26041
26117
|
break;
|
|
26042
|
-
case
|
|
26043
|
-
N =
|
|
26118
|
+
case k.ATTRIB_VALUE_ENTITY_U:
|
|
26119
|
+
N = k.ATTRIB_VALUE_UNQUOTED, S = "attribValue";
|
|
26044
26120
|
break;
|
|
26045
26121
|
}
|
|
26046
|
-
if (
|
|
26122
|
+
if (V === ";")
|
|
26047
26123
|
if (b.opt.unparsedEntities) {
|
|
26048
26124
|
var I = se(b);
|
|
26049
26125
|
b.entity = "", b.state = N, b.write(I);
|
|
26050
26126
|
} else
|
|
26051
|
-
b[
|
|
26127
|
+
b[S] += se(b), b.entity = "", b.state = N;
|
|
26052
26128
|
else
|
|
26053
|
-
|
|
26129
|
+
O(b.entity.length ? w : f, V) ? b.entity += V : (j(b, "Invalid character in entity name"), b[S] += "&" + b.entity + V, b.entity = "", b.state = N);
|
|
26054
26130
|
continue;
|
|
26055
26131
|
default:
|
|
26056
26132
|
throw new Error(b, "Unknown state: " + b.state);
|
|
@@ -26060,17 +26136,17 @@ Actual: ` + y.attribValue
|
|
|
26060
26136
|
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
26061
26137
|
String.fromCodePoint || function() {
|
|
26062
26138
|
var y = String.fromCharCode, b = Math.floor, D = function() {
|
|
26063
|
-
var
|
|
26139
|
+
var V = 16384, L = [], W, N, S = -1, I = arguments.length;
|
|
26064
26140
|
if (!I)
|
|
26065
26141
|
return "";
|
|
26066
|
-
for (var F = ""; ++
|
|
26067
|
-
var M = Number(arguments[
|
|
26142
|
+
for (var F = ""; ++S < I; ) {
|
|
26143
|
+
var M = Number(arguments[S]);
|
|
26068
26144
|
if (!isFinite(M) || // `NaN`, `+Infinity`, or `-Infinity`
|
|
26069
26145
|
M < 0 || // not a valid Unicode code point
|
|
26070
26146
|
M > 1114111 || // not a valid Unicode code point
|
|
26071
26147
|
b(M) !== M)
|
|
26072
26148
|
throw RangeError("Invalid code point: " + M);
|
|
26073
|
-
M <= 65535 ? L.push(M) : (M -= 65536, W = (M >> 10) + 55296, N = M % 1024 + 56320, L.push(W, N)), (
|
|
26149
|
+
M <= 65535 ? L.push(M) : (M -= 65536, W = (M >> 10) + 55296, N = M % 1024 + 56320, L.push(W, N)), (S + 1 === I || L.length > V) && (F += y.apply(null, L), L.length = 0);
|
|
26074
26150
|
}
|
|
26075
26151
|
return F;
|
|
26076
26152
|
};
|
|
@@ -27321,6 +27397,7 @@ const Events$1 = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_rende
|
|
|
27321
27397
|
subject: null,
|
|
27322
27398
|
content: null
|
|
27323
27399
|
};
|
|
27400
|
+
debugger;
|
|
27324
27401
|
return this.modelValue !== null && this.modelValue !== void 0 && this.modelValue !== "" && (t = this.modelValue, t.informType && t.informType !== "" && (e = !0)), {
|
|
27325
27402
|
showNotice: e,
|
|
27326
27403
|
model: t,
|
|
@@ -27336,11 +27413,15 @@ const Events$1 = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_rende
|
|
|
27336
27413
|
}
|
|
27337
27414
|
},
|
|
27338
27415
|
created() {
|
|
27339
|
-
this.$watch(
|
|
27340
|
-
|
|
27341
|
-
|
|
27342
|
-
|
|
27343
|
-
|
|
27416
|
+
this.$watch(
|
|
27417
|
+
"model",
|
|
27418
|
+
function(e, t) {
|
|
27419
|
+
this.getValue();
|
|
27420
|
+
},
|
|
27421
|
+
{
|
|
27422
|
+
deep: !0
|
|
27423
|
+
}
|
|
27424
|
+
);
|
|
27344
27425
|
},
|
|
27345
27426
|
methods: {
|
|
27346
27427
|
getValue() {
|
|
@@ -27372,13 +27453,13 @@ function _sfc_render$q(e, t, o, n, r, i) {
|
|
|
27372
27453
|
}, {
|
|
27373
27454
|
default: withCtx(() => [
|
|
27374
27455
|
createVNode(s, {
|
|
27375
|
-
modelValue: r.showNotice,
|
|
27376
|
-
"onUpdate:modelValue": t[0] || (t[0] = (p) => r.showNotice = p)
|
|
27456
|
+
modelValue: r.model.showNotice,
|
|
27457
|
+
"onUpdate:modelValue": t[0] || (t[0] = (p) => r.model.showNotice = p)
|
|
27377
27458
|
}, null, 8, ["modelValue"])
|
|
27378
27459
|
]),
|
|
27379
27460
|
_: 1
|
|
27380
27461
|
}, 8, ["label"]),
|
|
27381
|
-
r.showNotice ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
27462
|
+
r.model.showNotice ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
27382
27463
|
createVNode(l, {
|
|
27383
27464
|
modelValue: r.model.informType,
|
|
27384
27465
|
"onUpdate:modelValue": t[1] || (t[1] = (p) => r.model.informType = p),
|
|
@@ -30111,24 +30192,24 @@ var prism = { exports: {} };
|
|
|
30111
30192
|
*/
|
|
30112
30193
|
clone: function f(w, E) {
|
|
30113
30194
|
E = E || {};
|
|
30114
|
-
var T,
|
|
30195
|
+
var T, P;
|
|
30115
30196
|
switch (a.util.type(w)) {
|
|
30116
30197
|
case "Object":
|
|
30117
|
-
if (
|
|
30118
|
-
return E[
|
|
30198
|
+
if (P = a.util.objId(w), E[P])
|
|
30199
|
+
return E[P];
|
|
30119
30200
|
T = /** @type {Record<string, any>} */
|
|
30120
|
-
{}, E[
|
|
30121
|
-
for (var
|
|
30122
|
-
w.hasOwnProperty(
|
|
30201
|
+
{}, E[P] = T;
|
|
30202
|
+
for (var O in w)
|
|
30203
|
+
w.hasOwnProperty(O) && (T[O] = f(w[O], E));
|
|
30123
30204
|
return (
|
|
30124
30205
|
/** @type {any} */
|
|
30125
30206
|
T
|
|
30126
30207
|
);
|
|
30127
30208
|
case "Array":
|
|
30128
|
-
return
|
|
30209
|
+
return P = a.util.objId(w), E[P] ? E[P] : (T = [], E[P] = T, /** @type {Array} */
|
|
30129
30210
|
/** @type {any} */
|
|
30130
|
-
w.forEach(function(A,
|
|
30131
|
-
T[
|
|
30211
|
+
w.forEach(function(A, k) {
|
|
30212
|
+
T[k] = f(A, E);
|
|
30132
30213
|
}), /** @type {any} */
|
|
30133
30214
|
T);
|
|
30134
30215
|
default:
|
|
@@ -30211,10 +30292,10 @@ var prism = { exports: {} };
|
|
|
30211
30292
|
*/
|
|
30212
30293
|
isActive: function(f, w, E) {
|
|
30213
30294
|
for (var T = "no-" + w; f; ) {
|
|
30214
|
-
var
|
|
30215
|
-
if (
|
|
30295
|
+
var P = f.classList;
|
|
30296
|
+
if (P.contains(w))
|
|
30216
30297
|
return !0;
|
|
30217
|
-
if (
|
|
30298
|
+
if (P.contains(T))
|
|
30218
30299
|
return !1;
|
|
30219
30300
|
f = f.parentElement;
|
|
30220
30301
|
}
|
|
@@ -30348,28 +30429,28 @@ var prism = { exports: {} };
|
|
|
30348
30429
|
insertBefore: function(f, w, E, T) {
|
|
30349
30430
|
T = T || /** @type {any} */
|
|
30350
30431
|
a.languages;
|
|
30351
|
-
var
|
|
30352
|
-
for (var A in
|
|
30353
|
-
if (
|
|
30432
|
+
var P = T[f], O = {};
|
|
30433
|
+
for (var A in P)
|
|
30434
|
+
if (P.hasOwnProperty(A)) {
|
|
30354
30435
|
if (A == w)
|
|
30355
|
-
for (var
|
|
30356
|
-
E.hasOwnProperty(
|
|
30357
|
-
E.hasOwnProperty(A) || (
|
|
30436
|
+
for (var k in E)
|
|
30437
|
+
E.hasOwnProperty(k) && (O[k] = E[k]);
|
|
30438
|
+
E.hasOwnProperty(A) || (O[A] = P[A]);
|
|
30358
30439
|
}
|
|
30359
30440
|
var B = T[f];
|
|
30360
|
-
return T[f] =
|
|
30361
|
-
R === B &&
|
|
30362
|
-
}),
|
|
30441
|
+
return T[f] = O, a.languages.DFS(a.languages, function(H, R) {
|
|
30442
|
+
R === B && H != f && (this[H] = O);
|
|
30443
|
+
}), O;
|
|
30363
30444
|
},
|
|
30364
30445
|
// Traverse a language definition with Depth First Search
|
|
30365
|
-
DFS: function f(w, E, T,
|
|
30366
|
-
|
|
30367
|
-
var
|
|
30446
|
+
DFS: function f(w, E, T, P) {
|
|
30447
|
+
P = P || {};
|
|
30448
|
+
var O = a.util.objId;
|
|
30368
30449
|
for (var A in w)
|
|
30369
30450
|
if (w.hasOwnProperty(A)) {
|
|
30370
30451
|
E.call(w, A, w[A], T || A);
|
|
30371
|
-
var
|
|
30372
|
-
B === "Object" && !
|
|
30452
|
+
var k = w[A], B = a.util.type(k);
|
|
30453
|
+
B === "Object" && !P[O(k)] ? (P[O(k)] = !0, f(k, E, null, P)) : B === "Array" && !P[O(k)] && (P[O(k)] = !0, f(k, E, A, P));
|
|
30373
30454
|
}
|
|
30374
30455
|
}
|
|
30375
30456
|
},
|
|
@@ -30411,8 +30492,8 @@ var prism = { exports: {} };
|
|
|
30411
30492
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
30412
30493
|
};
|
|
30413
30494
|
a.hooks.run("before-highlightall", T), T.elements = Array.prototype.slice.apply(T.container.querySelectorAll(T.selector)), a.hooks.run("before-all-elements-highlight", T);
|
|
30414
|
-
for (var
|
|
30415
|
-
a.highlightElement(
|
|
30495
|
+
for (var P = 0, O; O = T.elements[P++]; )
|
|
30496
|
+
a.highlightElement(O, w === !0, T.callback);
|
|
30416
30497
|
},
|
|
30417
30498
|
/**
|
|
30418
30499
|
* Highlights the code inside a single element.
|
|
@@ -30443,38 +30524,38 @@ var prism = { exports: {} };
|
|
|
30443
30524
|
* @public
|
|
30444
30525
|
*/
|
|
30445
30526
|
highlightElement: function(f, w, E) {
|
|
30446
|
-
var T = a.util.getLanguage(f),
|
|
30527
|
+
var T = a.util.getLanguage(f), P = a.languages[T];
|
|
30447
30528
|
a.util.setLanguage(f, T);
|
|
30448
|
-
var
|
|
30449
|
-
|
|
30450
|
-
var A = f.textContent,
|
|
30529
|
+
var O = f.parentElement;
|
|
30530
|
+
O && O.nodeName.toLowerCase() === "pre" && a.util.setLanguage(O, T);
|
|
30531
|
+
var A = f.textContent, k = {
|
|
30451
30532
|
element: f,
|
|
30452
30533
|
language: T,
|
|
30453
|
-
grammar:
|
|
30534
|
+
grammar: P,
|
|
30454
30535
|
code: A
|
|
30455
30536
|
};
|
|
30456
30537
|
function B(R) {
|
|
30457
|
-
|
|
30538
|
+
k.highlightedCode = R, a.hooks.run("before-insert", k), k.element.innerHTML = k.highlightedCode, a.hooks.run("after-highlight", k), a.hooks.run("complete", k), E && E.call(k.element);
|
|
30458
30539
|
}
|
|
30459
|
-
if (a.hooks.run("before-sanity-check",
|
|
30460
|
-
a.hooks.run("complete",
|
|
30540
|
+
if (a.hooks.run("before-sanity-check", k), O = k.element.parentElement, O && O.nodeName.toLowerCase() === "pre" && !O.hasAttribute("tabindex") && O.setAttribute("tabindex", "0"), !k.code) {
|
|
30541
|
+
a.hooks.run("complete", k), E && E.call(k.element);
|
|
30461
30542
|
return;
|
|
30462
30543
|
}
|
|
30463
|
-
if (a.hooks.run("before-highlight",
|
|
30464
|
-
B(a.util.encode(
|
|
30544
|
+
if (a.hooks.run("before-highlight", k), !k.grammar) {
|
|
30545
|
+
B(a.util.encode(k.code));
|
|
30465
30546
|
return;
|
|
30466
30547
|
}
|
|
30467
30548
|
if (w && n.Worker) {
|
|
30468
|
-
var
|
|
30469
|
-
|
|
30549
|
+
var H = new Worker(a.filename);
|
|
30550
|
+
H.onmessage = function(R) {
|
|
30470
30551
|
B(R.data);
|
|
30471
|
-
},
|
|
30472
|
-
language:
|
|
30473
|
-
code:
|
|
30552
|
+
}, H.postMessage(JSON.stringify({
|
|
30553
|
+
language: k.language,
|
|
30554
|
+
code: k.code,
|
|
30474
30555
|
immediateClose: !0
|
|
30475
30556
|
}));
|
|
30476
30557
|
} else
|
|
30477
|
-
B(a.highlight(
|
|
30558
|
+
B(a.highlight(k.code, k.grammar, k.language));
|
|
30478
30559
|
},
|
|
30479
30560
|
/**
|
|
30480
30561
|
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
@@ -30537,8 +30618,8 @@ var prism = { exports: {} };
|
|
|
30537
30618
|
w[T] = E[T];
|
|
30538
30619
|
delete w.rest;
|
|
30539
30620
|
}
|
|
30540
|
-
var
|
|
30541
|
-
return m(
|
|
30621
|
+
var P = new u();
|
|
30622
|
+
return m(P, P.head, f), c(f, P, w, P.head, 0), _(P);
|
|
30542
30623
|
},
|
|
30543
30624
|
/**
|
|
30544
30625
|
* @namespace
|
|
@@ -30575,8 +30656,8 @@ var prism = { exports: {} };
|
|
|
30575
30656
|
run: function(f, w) {
|
|
30576
30657
|
var E = a.hooks.all[f];
|
|
30577
30658
|
if (!(!E || !E.length))
|
|
30578
|
-
for (var T = 0,
|
|
30579
|
-
|
|
30659
|
+
for (var T = 0, P; P = E[T++]; )
|
|
30660
|
+
P(w);
|
|
30580
30661
|
}
|
|
30581
30662
|
},
|
|
30582
30663
|
Token: l
|
|
@@ -30594,50 +30675,50 @@ var prism = { exports: {} };
|
|
|
30594
30675
|
T += f(B, E);
|
|
30595
30676
|
}), T;
|
|
30596
30677
|
}
|
|
30597
|
-
var
|
|
30678
|
+
var P = {
|
|
30598
30679
|
type: w.type,
|
|
30599
30680
|
content: f(w.content, E),
|
|
30600
30681
|
tag: "span",
|
|
30601
30682
|
classes: ["token", w.type],
|
|
30602
30683
|
attributes: {},
|
|
30603
30684
|
language: E
|
|
30604
|
-
},
|
|
30605
|
-
|
|
30685
|
+
}, O = w.alias;
|
|
30686
|
+
O && (Array.isArray(O) ? Array.prototype.push.apply(P.classes, O) : P.classes.push(O)), a.hooks.run("wrap", P);
|
|
30606
30687
|
var A = "";
|
|
30607
|
-
for (var
|
|
30608
|
-
A += " " +
|
|
30609
|
-
return "<" +
|
|
30688
|
+
for (var k in P.attributes)
|
|
30689
|
+
A += " " + k + '="' + (P.attributes[k] || "").replace(/"/g, """) + '"';
|
|
30690
|
+
return "<" + P.tag + ' class="' + P.classes.join(" ") + '"' + A + ">" + P.content + "</" + P.tag + ">";
|
|
30610
30691
|
};
|
|
30611
30692
|
function d(f, w, E, T) {
|
|
30612
30693
|
f.lastIndex = w;
|
|
30613
|
-
var
|
|
30614
|
-
if (
|
|
30615
|
-
var
|
|
30616
|
-
|
|
30694
|
+
var P = f.exec(E);
|
|
30695
|
+
if (P && T && P[1]) {
|
|
30696
|
+
var O = P[1].length;
|
|
30697
|
+
P.index += O, P[0] = P[0].slice(O);
|
|
30617
30698
|
}
|
|
30618
|
-
return
|
|
30699
|
+
return P;
|
|
30619
30700
|
}
|
|
30620
|
-
function c(f, w, E, T,
|
|
30701
|
+
function c(f, w, E, T, P, O) {
|
|
30621
30702
|
for (var A in E)
|
|
30622
30703
|
if (!(!E.hasOwnProperty(A) || !E[A])) {
|
|
30623
|
-
var
|
|
30624
|
-
|
|
30625
|
-
for (var B = 0; B <
|
|
30626
|
-
if (
|
|
30704
|
+
var k = E[A];
|
|
30705
|
+
k = Array.isArray(k) ? k : [k];
|
|
30706
|
+
for (var B = 0; B < k.length; ++B) {
|
|
30707
|
+
if (O && O.cause == A + "," + B)
|
|
30627
30708
|
return;
|
|
30628
|
-
var
|
|
30629
|
-
if (z && !
|
|
30630
|
-
var J =
|
|
30631
|
-
|
|
30709
|
+
var H = k[B], R = H.inside, U = !!H.lookbehind, z = !!H.greedy, Q = H.alias;
|
|
30710
|
+
if (z && !H.pattern.global) {
|
|
30711
|
+
var J = H.pattern.toString().match(/[imsuy]*$/)[0];
|
|
30712
|
+
H.pattern = RegExp(H.pattern.source, J + "g");
|
|
30632
30713
|
}
|
|
30633
|
-
for (var
|
|
30714
|
+
for (var j = H.pattern || H, K = T.next, Z = P; K !== w.tail && !(O && Z >= O.reach); Z += K.value.length, K = K.next) {
|
|
30634
30715
|
var Y = K.value;
|
|
30635
30716
|
if (w.length > f.length)
|
|
30636
30717
|
return;
|
|
30637
30718
|
if (!(Y instanceof l)) {
|
|
30638
30719
|
var ee = 1, X;
|
|
30639
30720
|
if (z) {
|
|
30640
|
-
if (X = d(
|
|
30721
|
+
if (X = d(j, Z, f, U), !X || X.index >= f.length)
|
|
30641
30722
|
break;
|
|
30642
30723
|
var re = X.index, se = X.index + X[0].length, te = Z;
|
|
30643
30724
|
for (te += K.value.length; re >= te; )
|
|
@@ -30647,19 +30728,19 @@ var prism = { exports: {} };
|
|
|
30647
30728
|
for (var ie = K; ie !== w.tail && (te < se || typeof ie.value == "string"); ie = ie.next)
|
|
30648
30729
|
ee++, te += ie.value.length;
|
|
30649
30730
|
ee--, Y = f.slice(Z, te), X.index -= Z;
|
|
30650
|
-
} else if (X = d(
|
|
30731
|
+
} else if (X = d(j, 0, Y, U), !X)
|
|
30651
30732
|
continue;
|
|
30652
|
-
var re = X.index, y = X[0], b = Y.slice(0, re), D = Y.slice(re + y.length),
|
|
30653
|
-
|
|
30733
|
+
var re = X.index, y = X[0], b = Y.slice(0, re), D = Y.slice(re + y.length), V = Z + Y.length;
|
|
30734
|
+
O && V > O.reach && (O.reach = V);
|
|
30654
30735
|
var L = K.prev;
|
|
30655
30736
|
b && (L = m(w, L, b), Z += b.length), p(w, L, ee);
|
|
30656
30737
|
var W = new l(A, R ? a.tokenize(y, R) : y, Q, y);
|
|
30657
30738
|
if (K = m(w, L, W), D && m(w, K, D), ee > 1) {
|
|
30658
30739
|
var N = {
|
|
30659
30740
|
cause: A + "," + B,
|
|
30660
|
-
reach:
|
|
30741
|
+
reach: V
|
|
30661
30742
|
};
|
|
30662
|
-
c(f, w, E, K.prev, Z, N),
|
|
30743
|
+
c(f, w, E, K.prev, Z, N), O && N.reach > O.reach && (O.reach = N.reach);
|
|
30663
30744
|
}
|
|
30664
30745
|
}
|
|
30665
30746
|
}
|
|
@@ -30671,13 +30752,13 @@ var prism = { exports: {} };
|
|
|
30671
30752
|
f.next = w, this.head = f, this.tail = w, this.length = 0;
|
|
30672
30753
|
}
|
|
30673
30754
|
function m(f, w, E) {
|
|
30674
|
-
var T = w.next,
|
|
30675
|
-
return w.next =
|
|
30755
|
+
var T = w.next, P = { value: E, prev: w, next: T };
|
|
30756
|
+
return w.next = P, T.prev = P, f.length++, P;
|
|
30676
30757
|
}
|
|
30677
30758
|
function p(f, w, E) {
|
|
30678
|
-
for (var T = w.next,
|
|
30759
|
+
for (var T = w.next, P = 0; P < E && T !== f.tail; P++)
|
|
30679
30760
|
T = T.next;
|
|
30680
|
-
w.next = T, T.prev = w, f.length -=
|
|
30761
|
+
w.next = T, T.prev = w, f.length -= P;
|
|
30681
30762
|
}
|
|
30682
30763
|
function _(f) {
|
|
30683
30764
|
for (var w = [], E = f.head.next; E !== f.tail; )
|
|
@@ -30686,8 +30767,8 @@ var prism = { exports: {} };
|
|
|
30686
30767
|
}
|
|
30687
30768
|
if (!n.document)
|
|
30688
30769
|
return n.addEventListener && (a.disableWorkerMessageHandler || n.addEventListener("message", function(f) {
|
|
30689
|
-
var w = JSON.parse(f.data), E = w.language, T = w.code,
|
|
30690
|
-
n.postMessage(a.highlight(T, a.languages[E], E)),
|
|
30770
|
+
var w = JSON.parse(f.data), E = w.language, T = w.code, P = w.immediateClose;
|
|
30771
|
+
n.postMessage(a.highlight(T, a.languages[E], E)), P && n.close();
|
|
30691
30772
|
}, !1)), a;
|
|
30692
30773
|
var v = a.util.currentScript();
|
|
30693
30774
|
v && (a.filename = v.src, v.hasAttribute("data-manual") && (a.manual = !0));
|
|
@@ -31124,18 +31205,18 @@ var prism = { exports: {} };
|
|
|
31124
31205
|
var T = o.plugins.autoloader;
|
|
31125
31206
|
T && T.loadLanguages(w), m(
|
|
31126
31207
|
f,
|
|
31127
|
-
function(
|
|
31208
|
+
function(P) {
|
|
31128
31209
|
C.setAttribute(a, d);
|
|
31129
|
-
var
|
|
31130
|
-
if (
|
|
31131
|
-
var A =
|
|
31132
|
-
|
|
31133
|
-
`), C.hasAttribute("data-start") || C.setAttribute("data-start", String(
|
|
31210
|
+
var O = p(C.getAttribute("data-range"));
|
|
31211
|
+
if (O) {
|
|
31212
|
+
var A = P.split(/\r\n?|\n/g), k = O[0], B = O[1] == null ? A.length : O[1];
|
|
31213
|
+
k < 0 && (k += A.length), k = Math.max(0, Math.min(k - 1, A.length)), B < 0 && (B += A.length), B = Math.max(0, Math.min(B, A.length)), P = A.slice(k, B).join(`
|
|
31214
|
+
`), C.hasAttribute("data-start") || C.setAttribute("data-start", String(k + 1));
|
|
31134
31215
|
}
|
|
31135
|
-
g.textContent =
|
|
31216
|
+
g.textContent = P, o.highlightElement(g);
|
|
31136
31217
|
},
|
|
31137
|
-
function(
|
|
31138
|
-
C.setAttribute(a, c), g.textContent =
|
|
31218
|
+
function(P) {
|
|
31219
|
+
C.setAttribute(a, c), g.textContent = P;
|
|
31139
31220
|
}
|
|
31140
31221
|
);
|
|
31141
31222
|
}
|
|
@@ -32591,34 +32672,34 @@ function validateSub(e, t, o, n, r, i, s, a, l, d, c) {
|
|
|
32591
32672
|
}
|
|
32592
32673
|
return d ? { msg: E, listCode: C } : E;
|
|
32593
32674
|
}
|
|
32594
|
-
let T,
|
|
32595
|
-
l && l[C] && (T = l[C].pageSize,
|
|
32596
|
-
for (let
|
|
32597
|
-
const A = w[
|
|
32675
|
+
let T, P = [];
|
|
32676
|
+
l && l[C] && (T = l[C].pageSize, P = l[C].fields || []);
|
|
32677
|
+
for (let O = 0; O < w.length; O++) {
|
|
32678
|
+
const A = w[O], k = packageRowRule(
|
|
32598
32679
|
f,
|
|
32599
32680
|
g,
|
|
32600
|
-
w[
|
|
32681
|
+
w[O],
|
|
32601
32682
|
r,
|
|
32602
32683
|
e,
|
|
32603
32684
|
i,
|
|
32604
32685
|
s,
|
|
32605
32686
|
a,
|
|
32606
|
-
|
|
32687
|
+
P
|
|
32607
32688
|
);
|
|
32608
|
-
console.log("formValidator666--rowRule=",
|
|
32609
|
-
let B,
|
|
32610
|
-
T !== void 0 && T > 0 && (B = Math.ceil((
|
|
32611
|
-
const z =
|
|
32612
|
-
if (z && z.rules && (
|
|
32689
|
+
console.log("formValidator666--rowRule=", k);
|
|
32690
|
+
let B, H;
|
|
32691
|
+
T !== void 0 && T > 0 && (B = Math.ceil((O + 1) / T), H = O + 1 - (B - 1) * T), Object.keys(k).forEach((U) => {
|
|
32692
|
+
const z = k[U];
|
|
32693
|
+
if (z && z.rules && (k[U] = z.rules), z && z.beforeValidate) {
|
|
32613
32694
|
const Q = z.beforeValidate;
|
|
32614
32695
|
typeof Q == "function" && Q({
|
|
32615
32696
|
row: A,
|
|
32616
32697
|
parent: e,
|
|
32617
|
-
rowIndex:
|
|
32618
|
-
}) === !1 && (
|
|
32698
|
+
rowIndex: O
|
|
32699
|
+
}) === !1 && (k[U] = []);
|
|
32619
32700
|
}
|
|
32620
32701
|
});
|
|
32621
|
-
const R = validator(A,
|
|
32702
|
+
const R = validator(A, k, O, n, B, H, d, c);
|
|
32622
32703
|
if (m)
|
|
32623
32704
|
R && R.length > 0 && R.forEach((U) => {
|
|
32624
32705
|
l[C] && l[C].title && (U.message = l[C].title + ":" + U.message), U.listCode = C, p.push(U);
|