@kestra-io/ui-libs 0.0.252 → 0.0.253
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/dist/components/nodes/BasicNode.vue.d.ts.map +1 -1
- package/dist/components/nodes/TaskNode.vue.d.ts +11 -0
- package/dist/components/nodes/TaskNode.vue.d.ts.map +1 -1
- package/dist/components/plugins/SchemaToHtml.vue.d.ts.map +1 -1
- package/dist/{index-DW1_iWyb.cjs → index-BHEKGUkl.cjs} +9 -9
- package/dist/index-BHEKGUkl.cjs.map +1 -0
- package/dist/{index-Crrb9CoI.js → index-BYv2BHLx.js} +978 -978
- package/dist/index-BYv2BHLx.js.map +1 -0
- package/dist/kestra-index.cjs.js +1 -1
- package/dist/kestra-index.es.js +1 -1
- package/dist/{shikiToolset-mYbRhLR0.cjs → shikiToolset-Cug2Uoye.cjs} +2 -2
- package/dist/{shikiToolset-mYbRhLR0.cjs.map → shikiToolset-Cug2Uoye.cjs.map} +1 -1
- package/dist/{shikiToolset-0ysIYkOQ.js → shikiToolset-vevNd9lM.js} +2 -2
- package/dist/{shikiToolset-0ysIYkOQ.js.map → shikiToolset-vevNd9lM.js.map} +1 -1
- package/dist/ui-libs.css +1 -1
- package/package.json +1 -1
- package/src/components/nodes/BasicNode.vue +5 -1
- package/src/components/nodes/TaskNode.vue +3 -1
- package/src/components/plugins/SchemaToHtml.vue +7 -7
- package/dist/index-Crrb9CoI.js.map +0 -1
- package/dist/index-DW1_iWyb.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import yl, { Document as vl, YAMLMap as Nn } from "yaml";
|
|
2
2
|
import { S as ut, r as jo, E as U, U as Re, h as Ko, d as Yo, a as qo, c as Xo, g as Zo, C as El, l as Jo } from "./VueFlowUtils-BzTE7TIL.js";
|
|
3
3
|
import { g as Qo, e as er, d as tr, r as nr, a as lr, f as ir, b as or, c as rr, h as ar, u as sr, i as ur, j as cr, k as dr, l as fr, m as mr, n as pr, s as gr, p as hr, o as _r, q as yr, t as Ei, v as vr, w as Er, x as Cl, y as bl, z as Cr, A as br, B as Ci, C as kr } from "./FlowYamlUtils-CEYKj9tP.js";
|
|
4
|
-
import { createElementBlock as d, openBlock as u, mergeProps as K, createElementVNode as
|
|
4
|
+
import { createElementBlock as d, openBlock as u, mergeProps as K, createElementVNode as v, createCommentVNode as L, toDisplayString as M, defineComponent as de, createBlock as X, getCurrentInstance as cn, inject as Rn, ref as te, shallowRef as qt, computed as G, watch as Ue, onMounted as Mt, onUnmounted as bi, h as bt, createVNode as V, Text as Ot, Fragment as Ee, nextTick as dn, onBeforeUnmount as ki, renderSlot as ae, createTextVNode as Ze, normalizeClass as re, withCtx as W, normalizeStyle as ct, unref as R, toRef as kl, renderList as Xe, resolveDynamicComponent as mt, createSlots as Li, provide as Ll, normalizeProps as Lr, guardReactiveProps as Sr, getCurrentScope as wr, onScopeDispose as Nr, reactive as Si, withModifiers as wi, withAsyncContext as Sl, toRaw as Tr, resolveComponent as Ar, defineAsyncComponent as Ir, Comment as Or, Suspense as $r } from "vue";
|
|
5
5
|
import { Handle as Me, useVueFlow as Ni, Position as Jt, getSmoothStepPath as Dr, EdgeLabelRenderer as Rr, VueFlow as Pr } from "@vue-flow/core";
|
|
6
6
|
import { Controls as Mr, ControlButton as wl } from "@vue-flow/controls";
|
|
7
7
|
import Tn from "moment";
|
|
@@ -13,7 +13,7 @@ const xr = { lineWidth: 0 }, Nl = [
|
|
|
13
13
|
"finally",
|
|
14
14
|
"afterExecution",
|
|
15
15
|
"pluginDefaults"
|
|
16
|
-
],
|
|
16
|
+
], w_ = {
|
|
17
17
|
stringify: yr,
|
|
18
18
|
parse: _r,
|
|
19
19
|
pairsToMap: hr,
|
|
@@ -167,7 +167,7 @@ function Wr(e, t, n, l, o, i) {
|
|
|
167
167
|
height: n.size,
|
|
168
168
|
viewBox: "0 0 24 24"
|
|
169
169
|
}, [
|
|
170
|
-
|
|
170
|
+
v("path", zr, [
|
|
171
171
|
n.title ? (u(), d("title", Gr, M(n.title), 1)) : L("", !0)
|
|
172
172
|
])
|
|
173
173
|
], 8, Br))
|
|
@@ -205,7 +205,7 @@ function Zr(e, t, n, l, o, i) {
|
|
|
205
205
|
height: n.size,
|
|
206
206
|
viewBox: "0 0 24 24"
|
|
207
207
|
}, [
|
|
208
|
-
|
|
208
|
+
v("path", qr, [
|
|
209
209
|
n.title ? (u(), d("title", Xr, M(n.title), 1)) : L("", !0)
|
|
210
210
|
])
|
|
211
211
|
], 8, Yr))
|
|
@@ -243,7 +243,7 @@ function ia(e, t, n, l, o, i) {
|
|
|
243
243
|
height: n.size,
|
|
244
244
|
viewBox: "0 0 24 24"
|
|
245
245
|
}, [
|
|
246
|
-
|
|
246
|
+
v("path", na, [
|
|
247
247
|
n.title ? (u(), d("title", la, M(n.title), 1)) : L("", !0)
|
|
248
248
|
])
|
|
249
249
|
], 8, ta))
|
|
@@ -281,7 +281,7 @@ function da(e, t, n, l, o, i) {
|
|
|
281
281
|
height: n.size,
|
|
282
282
|
viewBox: "0 0 24 24"
|
|
283
283
|
}, [
|
|
284
|
-
|
|
284
|
+
v("path", ua, [
|
|
285
285
|
n.title ? (u(), d("title", ca, M(n.title), 1)) : L("", !0)
|
|
286
286
|
])
|
|
287
287
|
], 8, sa))
|
|
@@ -319,7 +319,7 @@ function _a(e, t, n, l, o, i) {
|
|
|
319
319
|
height: n.size,
|
|
320
320
|
viewBox: "0 0 24 24"
|
|
321
321
|
}, [
|
|
322
|
-
|
|
322
|
+
v("path", ga, [
|
|
323
323
|
n.title ? (u(), d("title", ha, M(n.title), 1)) : L("", !0)
|
|
324
324
|
])
|
|
325
325
|
], 8, pa))
|
|
@@ -357,7 +357,7 @@ function La(e, t, n, l, o, i) {
|
|
|
357
357
|
height: n.size,
|
|
358
358
|
viewBox: "0 0 24 24"
|
|
359
359
|
}, [
|
|
360
|
-
|
|
360
|
+
v("path", ba, [
|
|
361
361
|
n.title ? (u(), d("title", ka, M(n.title), 1)) : L("", !0)
|
|
362
362
|
])
|
|
363
363
|
], 8, Ca))
|
|
@@ -395,7 +395,7 @@ function Oa(e, t, n, l, o, i) {
|
|
|
395
395
|
height: n.size,
|
|
396
396
|
viewBox: "0 0 24 24"
|
|
397
397
|
}, [
|
|
398
|
-
|
|
398
|
+
v("path", Aa, [
|
|
399
399
|
n.title ? (u(), d("title", Ia, M(n.title), 1)) : L("", !0)
|
|
400
400
|
])
|
|
401
401
|
], 8, Ta))
|
|
@@ -433,7 +433,7 @@ function Va(e, t, n, l, o, i) {
|
|
|
433
433
|
height: n.size,
|
|
434
434
|
viewBox: "0 0 24 24"
|
|
435
435
|
}, [
|
|
436
|
-
|
|
436
|
+
v("path", Pa, [
|
|
437
437
|
n.title ? (u(), d("title", Ma, M(n.title), 1)) : L("", !0)
|
|
438
438
|
])
|
|
439
439
|
], 8, Ra))
|
|
@@ -471,7 +471,7 @@ function Ga(e, t, n, l, o, i) {
|
|
|
471
471
|
height: n.size,
|
|
472
472
|
viewBox: "0 0 24 24"
|
|
473
473
|
}, [
|
|
474
|
-
|
|
474
|
+
v("path", Ba, [
|
|
475
475
|
n.title ? (u(), d("title", za, M(n.title), 1)) : L("", !0)
|
|
476
476
|
])
|
|
477
477
|
], 8, Ha))
|
|
@@ -509,7 +509,7 @@ function Za(e, t, n, l, o, i) {
|
|
|
509
509
|
height: n.size,
|
|
510
510
|
viewBox: "0 0 24 24"
|
|
511
511
|
}, [
|
|
512
|
-
|
|
512
|
+
v("path", qa, [
|
|
513
513
|
n.title ? (u(), d("title", Xa, M(n.title), 1)) : L("", !0)
|
|
514
514
|
])
|
|
515
515
|
], 8, Ya))
|
|
@@ -547,7 +547,7 @@ function ls(e, t, n, l, o, i) {
|
|
|
547
547
|
height: n.size,
|
|
548
548
|
viewBox: "0 0 24 24"
|
|
549
549
|
}, [
|
|
550
|
-
|
|
550
|
+
v("path", ts, [
|
|
551
551
|
n.title ? (u(), d("title", ns, M(n.title), 1)) : L("", !0)
|
|
552
552
|
])
|
|
553
553
|
], 8, es))
|
|
@@ -781,7 +781,7 @@ class _e {
|
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
783
|
let zt;
|
|
784
|
-
async function
|
|
784
|
+
async function N_() {
|
|
785
785
|
if (zt)
|
|
786
786
|
return zt;
|
|
787
787
|
const e = await import("./useMarkdownParser-B68_ivTy.js").then((n) => n.a0);
|
|
@@ -799,8 +799,8 @@ function os() {
|
|
|
799
799
|
throw new Error("slugify: string argument expected");
|
|
800
800
|
r = typeof r == "string" ? { replacement: r } : r || {};
|
|
801
801
|
var a = l[r.locale] || {}, s = r.replacement === void 0 ? "-" : r.replacement, c = r.trim === void 0 ? !0 : r.trim, m = i.normalize().split("").reduce(function(y, h) {
|
|
802
|
-
var
|
|
803
|
-
return
|
|
802
|
+
var b = a[h];
|
|
803
|
+
return b === void 0 && (b = n[h]), b === void 0 && (b = h), b === s && (b = " "), y + b.replace(r.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
|
|
804
804
|
}, "");
|
|
805
805
|
return r.strict && (m = m.replace(/[^A-Za-z0-9\s]/g, "")), c && (m = m.trim()), m = m.replace(/\s+/g, s), r.lower && (m = m.toLowerCase()), m;
|
|
806
806
|
}
|
|
@@ -858,7 +858,7 @@ function ms(e, t, n, l, o, i) {
|
|
|
858
858
|
height: n.size,
|
|
859
859
|
viewBox: "0 0 24 24"
|
|
860
860
|
}, [
|
|
861
|
-
|
|
861
|
+
v("path", ds, [
|
|
862
862
|
n.title ? (u(), d("title", fs, M(n.title), 1)) : L("", !0)
|
|
863
863
|
])
|
|
864
864
|
], 8, cs))
|
|
@@ -1054,38 +1054,38 @@ const Ds = /<\/?[\w\s="/.':;#-\/]+>/, Rs = (e) => Ds.test(e), Be = " ", Ps = "\r
|
|
|
1054
1054
|
function xs(e) {
|
|
1055
1055
|
const t = e;
|
|
1056
1056
|
let n = 0, l = 1, o = 1, i = 0;
|
|
1057
|
-
const r = (S) => t[S] === Ps && t[S + 1] === we, a = (S) => t[S] === we, s = (S) => t[S] === Vs, c = (S) => t[S] === Ms, m = (S) => r(S) || a(S) || s(S) || c(S), y = () => n, h = () => l,
|
|
1058
|
-
function
|
|
1057
|
+
const r = (S) => t[S] === Ps && t[S + 1] === we, a = (S) => t[S] === we, s = (S) => t[S] === Vs, c = (S) => t[S] === Ms, m = (S) => r(S) || a(S) || s(S) || c(S), y = () => n, h = () => l, b = () => o, N = () => i, T = (S) => r(S) || s(S) || c(S) ? we : t[S], k = () => T(n), g = () => T(n + i);
|
|
1058
|
+
function E() {
|
|
1059
1059
|
return i = 0, m(n) && (l++, o = 0), r(n) && n++, n++, o++, t[n];
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function A() {
|
|
1062
1062
|
return r(n + i) && i++, i++, t[n + i];
|
|
1063
1063
|
}
|
|
1064
1064
|
function _() {
|
|
1065
1065
|
n = 0, l = 1, o = 1, i = 0;
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1067
|
+
function D(S = 0) {
|
|
1068
1068
|
i = S;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function I() {
|
|
1071
1071
|
const S = n + i;
|
|
1072
1072
|
for (; S !== n; )
|
|
1073
|
-
|
|
1073
|
+
E();
|
|
1074
1074
|
i = 0;
|
|
1075
1075
|
}
|
|
1076
1076
|
return {
|
|
1077
1077
|
index: y,
|
|
1078
1078
|
line: h,
|
|
1079
|
-
column:
|
|
1080
|
-
peekOffset:
|
|
1081
|
-
charAt:
|
|
1079
|
+
column: b,
|
|
1080
|
+
peekOffset: N,
|
|
1081
|
+
charAt: T,
|
|
1082
1082
|
currentChar: k,
|
|
1083
1083
|
currentPeek: g,
|
|
1084
|
-
next:
|
|
1085
|
-
peek:
|
|
1084
|
+
next: E,
|
|
1085
|
+
peek: A,
|
|
1086
1086
|
reset: _,
|
|
1087
|
-
resetPeek:
|
|
1088
|
-
skipToPeek:
|
|
1087
|
+
resetPeek: D,
|
|
1088
|
+
skipToPeek: I
|
|
1089
1089
|
};
|
|
1090
1090
|
}
|
|
1091
1091
|
const Ke = void 0, Us = ".", Vl = "'", Fs = "tokenizer";
|
|
@@ -1118,22 +1118,22 @@ function Hs(e, t = {}) {
|
|
|
1118
1118
|
const F = { type: p };
|
|
1119
1119
|
return n && (F.loc = Mn(f.startLoc, f.endLoc)), w != null && (F.value = w), F;
|
|
1120
1120
|
}
|
|
1121
|
-
const
|
|
1121
|
+
const b = (f) => h(
|
|
1122
1122
|
f,
|
|
1123
1123
|
13
|
|
1124
1124
|
/* TokenTypes.EOF */
|
|
1125
1125
|
);
|
|
1126
|
-
function
|
|
1126
|
+
function N(f, p) {
|
|
1127
1127
|
return f.currentChar() === p ? (f.next(), p) : (y(j.EXPECTED_TOKEN, i(), 0, p), "");
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function T(f) {
|
|
1130
1130
|
let p = "";
|
|
1131
1131
|
for (; f.currentPeek() === Be || f.currentPeek() === we; )
|
|
1132
1132
|
p += f.currentPeek(), f.peek();
|
|
1133
1133
|
return p;
|
|
1134
1134
|
}
|
|
1135
1135
|
function k(f) {
|
|
1136
|
-
const p =
|
|
1136
|
+
const p = T(f);
|
|
1137
1137
|
return f.skipToPeek(), p;
|
|
1138
1138
|
}
|
|
1139
1139
|
function g(f) {
|
|
@@ -1144,17 +1144,17 @@ function Hs(e, t = {}) {
|
|
|
1144
1144
|
p >= 65 && p <= 90 || // A-Z
|
|
1145
1145
|
p === 95;
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function E(f) {
|
|
1148
1148
|
if (f === Ke)
|
|
1149
1149
|
return !1;
|
|
1150
1150
|
const p = f.charCodeAt(0);
|
|
1151
1151
|
return p >= 48 && p <= 57;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function A(f, p) {
|
|
1154
1154
|
const { currentType: w } = p;
|
|
1155
1155
|
if (w !== 2)
|
|
1156
1156
|
return !1;
|
|
1157
|
-
|
|
1157
|
+
T(f);
|
|
1158
1158
|
const F = g(f.currentPeek());
|
|
1159
1159
|
return f.resetPeek(), F;
|
|
1160
1160
|
}
|
|
@@ -1162,23 +1162,23 @@ function Hs(e, t = {}) {
|
|
|
1162
1162
|
const { currentType: w } = p;
|
|
1163
1163
|
if (w !== 2)
|
|
1164
1164
|
return !1;
|
|
1165
|
-
|
|
1166
|
-
const F = f.currentPeek() === "-" ? f.peek() : f.currentPeek(), fe =
|
|
1165
|
+
T(f);
|
|
1166
|
+
const F = f.currentPeek() === "-" ? f.peek() : f.currentPeek(), fe = E(F);
|
|
1167
1167
|
return f.resetPeek(), fe;
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function D(f, p) {
|
|
1170
1170
|
const { currentType: w } = p;
|
|
1171
1171
|
if (w !== 2)
|
|
1172
1172
|
return !1;
|
|
1173
|
-
|
|
1173
|
+
T(f);
|
|
1174
1174
|
const F = f.currentPeek() === Vl;
|
|
1175
1175
|
return f.resetPeek(), F;
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function I(f, p) {
|
|
1178
1178
|
const { currentType: w } = p;
|
|
1179
1179
|
if (w !== 7)
|
|
1180
1180
|
return !1;
|
|
1181
|
-
|
|
1181
|
+
T(f);
|
|
1182
1182
|
const F = f.currentPeek() === ".";
|
|
1183
1183
|
return f.resetPeek(), F;
|
|
1184
1184
|
}
|
|
@@ -1186,7 +1186,7 @@ function Hs(e, t = {}) {
|
|
|
1186
1186
|
const { currentType: w } = p;
|
|
1187
1187
|
if (w !== 8)
|
|
1188
1188
|
return !1;
|
|
1189
|
-
|
|
1189
|
+
T(f);
|
|
1190
1190
|
const F = g(f.currentPeek());
|
|
1191
1191
|
return f.resetPeek(), F;
|
|
1192
1192
|
}
|
|
@@ -1194,7 +1194,7 @@ function Hs(e, t = {}) {
|
|
|
1194
1194
|
const { currentType: w } = p;
|
|
1195
1195
|
if (!(w === 7 || w === 11))
|
|
1196
1196
|
return !1;
|
|
1197
|
-
|
|
1197
|
+
T(f);
|
|
1198
1198
|
const F = f.currentPeek() === ":";
|
|
1199
1199
|
return f.resetPeek(), F;
|
|
1200
1200
|
}
|
|
@@ -1209,7 +1209,7 @@ function Hs(e, t = {}) {
|
|
|
1209
1209
|
return f.resetPeek(), fe;
|
|
1210
1210
|
}
|
|
1211
1211
|
function pe(f) {
|
|
1212
|
-
|
|
1212
|
+
T(f);
|
|
1213
1213
|
const p = f.currentPeek() === "|";
|
|
1214
1214
|
return f.resetPeek(), p;
|
|
1215
1215
|
}
|
|
@@ -1244,7 +1244,7 @@ function Hs(e, t = {}) {
|
|
|
1244
1244
|
p === 36 || // $
|
|
1245
1245
|
p === 45;
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1247
|
+
function P(f) {
|
|
1248
1248
|
return ue(f, B);
|
|
1249
1249
|
}
|
|
1250
1250
|
function J(f) {
|
|
@@ -1291,7 +1291,7 @@ function Hs(e, t = {}) {
|
|
|
1291
1291
|
function vn(f) {
|
|
1292
1292
|
k(f);
|
|
1293
1293
|
let p = "", w = "";
|
|
1294
|
-
for (; p =
|
|
1294
|
+
for (; p = P(f); )
|
|
1295
1295
|
w += p;
|
|
1296
1296
|
const F = f.currentChar();
|
|
1297
1297
|
if (F && F !== "}" && F !== Ke && F !== Be && F !== we && F !== " ") {
|
|
@@ -1309,12 +1309,12 @@ function Hs(e, t = {}) {
|
|
|
1309
1309
|
return f !== Vl && f !== we;
|
|
1310
1310
|
}
|
|
1311
1311
|
function hl(f) {
|
|
1312
|
-
k(f),
|
|
1312
|
+
k(f), N(f, "'");
|
|
1313
1313
|
let p = "", w = "";
|
|
1314
1314
|
for (; p = ue(f, Cn); )
|
|
1315
1315
|
p === "\\" ? w += bn(f) : w += p;
|
|
1316
1316
|
const F = f.currentChar();
|
|
1317
|
-
return F === we || F === Ke ? (y(j.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), F === we && (f.next(),
|
|
1317
|
+
return F === we || F === Ke ? (y(j.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), F === we && (f.next(), N(f, "'")), w) : (N(f, "'"), w);
|
|
1318
1318
|
}
|
|
1319
1319
|
function bn(f) {
|
|
1320
1320
|
const p = f.currentChar();
|
|
@@ -1331,7 +1331,7 @@ function Hs(e, t = {}) {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
1333
|
function Ut(f, p, w) {
|
|
1334
|
-
|
|
1334
|
+
N(f, p);
|
|
1335
1335
|
let F = "";
|
|
1336
1336
|
for (let fe = 0; fe < w; fe++) {
|
|
1337
1337
|
const ge = Se(f);
|
|
@@ -1368,7 +1368,7 @@ function Hs(e, t = {}) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
function wt(f) {
|
|
1370
1370
|
k(f);
|
|
1371
|
-
const p =
|
|
1371
|
+
const p = N(
|
|
1372
1372
|
f,
|
|
1373
1373
|
"|"
|
|
1374
1374
|
/* TokenChars.Pipe */
|
|
@@ -1393,18 +1393,18 @@ function Hs(e, t = {}) {
|
|
|
1393
1393
|
/* TokenChars.BraceRight */
|
|
1394
1394
|
), p.braceNest--, p.braceNest > 0 && k(f), p.inLinked && p.braceNest === 0 && (p.inLinked = !1), w;
|
|
1395
1395
|
case "@":
|
|
1396
|
-
return p.braceNest > 0 && y(j.UNTERMINATED_CLOSING_BRACE, i(), 0), w = ot(f, p) ||
|
|
1396
|
+
return p.braceNest > 0 && y(j.UNTERMINATED_CLOSING_BRACE, i(), 0), w = ot(f, p) || b(p), p.braceNest = 0, w;
|
|
1397
1397
|
default: {
|
|
1398
1398
|
let fe = !0, ge = !0, ee = !0;
|
|
1399
1399
|
if (pe(f))
|
|
1400
1400
|
return p.braceNest > 0 && y(j.UNTERMINATED_CLOSING_BRACE, i(), 0), w = h(p, 1, wt(f)), p.braceNest = 0, p.inLinked = !1, w;
|
|
1401
1401
|
if (p.braceNest > 0 && (p.currentType === 4 || p.currentType === 5 || p.currentType === 6))
|
|
1402
1402
|
return y(j.UNTERMINATED_CLOSING_BRACE, i(), 0), p.braceNest = 0, Tt(f, p);
|
|
1403
|
-
if (fe =
|
|
1403
|
+
if (fe = A(f, p))
|
|
1404
1404
|
return w = h(p, 4, vn(f)), k(f), w;
|
|
1405
1405
|
if (ge = _(f, p))
|
|
1406
1406
|
return w = h(p, 5, En(f)), k(f), w;
|
|
1407
|
-
if (ee =
|
|
1407
|
+
if (ee = D(f, p))
|
|
1408
1408
|
return w = h(p, 6, hl(f)), k(f), w;
|
|
1409
1409
|
if (!fe && !ge && !ee)
|
|
1410
1410
|
return w = h(p, 12, Ft(f)), y(j.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, w.value), k(f), w;
|
|
@@ -1440,7 +1440,7 @@ function Hs(e, t = {}) {
|
|
|
1440
1440
|
/* TokenChars.LinkedDelimiter */
|
|
1441
1441
|
);
|
|
1442
1442
|
default:
|
|
1443
|
-
return pe(f) ? (F = h(p, 1, wt(f)), p.braceNest = 0, p.inLinked = !1, F) :
|
|
1443
|
+
return pe(f) ? (F = h(p, 1, wt(f)), p.braceNest = 0, p.inLinked = !1, F) : I(f, p) || Y(f, p) ? (k(f), ot(f, p)) : S(f, p) ? (k(f), h(p, 11, Ln(f))) : Z(f, p) ? (k(f), fe === "{" ? Nt(f, p) || F : h(p, 10, Sn(f))) : (w === 7 && y(j.INVALID_LINKED_FORMAT, i(), 0), p.braceNest = 0, p.inLinked = !1, Tt(f, p));
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
1446
|
function Tt(f, p) {
|
|
@@ -1449,12 +1449,12 @@ function Hs(e, t = {}) {
|
|
|
1449
1449
|
/* TokenTypes.EOF */
|
|
1450
1450
|
};
|
|
1451
1451
|
if (p.braceNest > 0)
|
|
1452
|
-
return Nt(f, p) ||
|
|
1452
|
+
return Nt(f, p) || b(p);
|
|
1453
1453
|
if (p.inLinked)
|
|
1454
|
-
return ot(f, p) ||
|
|
1454
|
+
return ot(f, p) || b(p);
|
|
1455
1455
|
switch (f.currentChar()) {
|
|
1456
1456
|
case "{":
|
|
1457
|
-
return Nt(f, p) ||
|
|
1457
|
+
return Nt(f, p) || b(p);
|
|
1458
1458
|
case "}":
|
|
1459
1459
|
return y(j.UNBALANCED_CLOSING_BRACE, i(), 0), f.next(), h(
|
|
1460
1460
|
p,
|
|
@@ -1463,7 +1463,7 @@ function Hs(e, t = {}) {
|
|
|
1463
1463
|
/* TokenChars.BraceRight */
|
|
1464
1464
|
);
|
|
1465
1465
|
case "@":
|
|
1466
|
-
return ot(f, p) ||
|
|
1466
|
+
return ot(f, p) || b(p);
|
|
1467
1467
|
default: {
|
|
1468
1468
|
if (pe(f))
|
|
1469
1469
|
return w = h(p, 1, wt(f)), p.braceNest = 0, p.inLinked = !1, w;
|
|
@@ -1505,132 +1505,132 @@ function Gs(e, t, n) {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
function Ws(e = {}) {
|
|
1507
1507
|
const t = e.location !== !1, { onError: n } = e;
|
|
1508
|
-
function l(g,
|
|
1509
|
-
const
|
|
1510
|
-
if (
|
|
1511
|
-
const S = t ? Mn(
|
|
1508
|
+
function l(g, E, A, _, ...D) {
|
|
1509
|
+
const I = g.currentPosition();
|
|
1510
|
+
if (I.offset += _, I.column += _, n) {
|
|
1511
|
+
const S = t ? Mn(A, I) : null, Y = Lt(E, S, {
|
|
1512
1512
|
domain: Bs,
|
|
1513
|
-
args:
|
|
1513
|
+
args: D
|
|
1514
1514
|
});
|
|
1515
1515
|
n(Y);
|
|
1516
1516
|
}
|
|
1517
1517
|
}
|
|
1518
|
-
function o(g,
|
|
1518
|
+
function o(g, E, A) {
|
|
1519
1519
|
const _ = { type: g };
|
|
1520
|
-
return t && (_.start =
|
|
1520
|
+
return t && (_.start = E, _.end = E, _.loc = { start: A, end: A }), _;
|
|
1521
1521
|
}
|
|
1522
|
-
function i(g,
|
|
1523
|
-
t && (g.end =
|
|
1522
|
+
function i(g, E, A, _) {
|
|
1523
|
+
t && (g.end = E, g.loc && (g.loc.end = A));
|
|
1524
1524
|
}
|
|
1525
|
-
function r(g,
|
|
1526
|
-
const
|
|
1527
|
-
return _.value =
|
|
1525
|
+
function r(g, E) {
|
|
1526
|
+
const A = g.context(), _ = o(3, A.offset, A.startLoc);
|
|
1527
|
+
return _.value = E, i(_, g.currentOffset(), g.currentPosition()), _;
|
|
1528
1528
|
}
|
|
1529
|
-
function a(g,
|
|
1530
|
-
const
|
|
1531
|
-
return
|
|
1529
|
+
function a(g, E) {
|
|
1530
|
+
const A = g.context(), { lastOffset: _, lastStartLoc: D } = A, I = o(5, _, D);
|
|
1531
|
+
return I.index = parseInt(E, 10), g.nextToken(), i(I, g.currentOffset(), g.currentPosition()), I;
|
|
1532
1532
|
}
|
|
1533
|
-
function s(g,
|
|
1534
|
-
const
|
|
1535
|
-
return
|
|
1533
|
+
function s(g, E) {
|
|
1534
|
+
const A = g.context(), { lastOffset: _, lastStartLoc: D } = A, I = o(4, _, D);
|
|
1535
|
+
return I.key = E, g.nextToken(), i(I, g.currentOffset(), g.currentPosition()), I;
|
|
1536
1536
|
}
|
|
1537
|
-
function c(g,
|
|
1538
|
-
const
|
|
1539
|
-
return
|
|
1537
|
+
function c(g, E) {
|
|
1538
|
+
const A = g.context(), { lastOffset: _, lastStartLoc: D } = A, I = o(9, _, D);
|
|
1539
|
+
return I.value = E.replace(zs, Gs), g.nextToken(), i(I, g.currentOffset(), g.currentPosition()), I;
|
|
1540
1540
|
}
|
|
1541
1541
|
function m(g) {
|
|
1542
|
-
const
|
|
1543
|
-
return
|
|
1544
|
-
nextConsumeToken:
|
|
1545
|
-
node:
|
|
1546
|
-
}) : (
|
|
1547
|
-
node:
|
|
1542
|
+
const E = g.nextToken(), A = g.context(), { lastOffset: _, lastStartLoc: D } = A, I = o(8, _, D);
|
|
1543
|
+
return E.type !== 11 ? (l(g, j.UNEXPECTED_EMPTY_LINKED_MODIFIER, A.lastStartLoc, 0), I.value = "", i(I, _, D), {
|
|
1544
|
+
nextConsumeToken: E,
|
|
1545
|
+
node: I
|
|
1546
|
+
}) : (E.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, ze(E)), I.value = E.value || "", i(I, g.currentOffset(), g.currentPosition()), {
|
|
1547
|
+
node: I
|
|
1548
1548
|
});
|
|
1549
1549
|
}
|
|
1550
|
-
function y(g,
|
|
1551
|
-
const
|
|
1552
|
-
return _.value =
|
|
1550
|
+
function y(g, E) {
|
|
1551
|
+
const A = g.context(), _ = o(7, A.offset, A.startLoc);
|
|
1552
|
+
return _.value = E, i(_, g.currentOffset(), g.currentPosition()), _;
|
|
1553
1553
|
}
|
|
1554
1554
|
function h(g) {
|
|
1555
|
-
const
|
|
1555
|
+
const E = g.context(), A = o(6, E.offset, E.startLoc);
|
|
1556
1556
|
let _ = g.nextToken();
|
|
1557
1557
|
if (_.type === 8) {
|
|
1558
|
-
const
|
|
1559
|
-
|
|
1558
|
+
const D = m(g);
|
|
1559
|
+
A.modifier = D.node, _ = D.nextConsumeToken || g.nextToken();
|
|
1560
1560
|
}
|
|
1561
|
-
switch (_.type !== 9 && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1561
|
+
switch (_.type !== 9 && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, ze(_)), _ = g.nextToken(), _.type === 2 && (_ = g.nextToken()), _.type) {
|
|
1562
1562
|
case 10:
|
|
1563
|
-
_.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1563
|
+
_.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, ze(_)), A.key = y(g, _.value || "");
|
|
1564
1564
|
break;
|
|
1565
1565
|
case 4:
|
|
1566
|
-
_.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1566
|
+
_.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, ze(_)), A.key = s(g, _.value || "");
|
|
1567
1567
|
break;
|
|
1568
1568
|
case 5:
|
|
1569
|
-
_.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1569
|
+
_.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, ze(_)), A.key = a(g, _.value || "");
|
|
1570
1570
|
break;
|
|
1571
1571
|
case 6:
|
|
1572
|
-
_.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1572
|
+
_.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, ze(_)), A.key = c(g, _.value || "");
|
|
1573
1573
|
break;
|
|
1574
1574
|
default: {
|
|
1575
|
-
l(g, j.UNEXPECTED_EMPTY_LINKED_KEY,
|
|
1576
|
-
const
|
|
1577
|
-
return
|
|
1575
|
+
l(g, j.UNEXPECTED_EMPTY_LINKED_KEY, E.lastStartLoc, 0);
|
|
1576
|
+
const D = g.context(), I = o(7, D.offset, D.startLoc);
|
|
1577
|
+
return I.value = "", i(I, D.offset, D.startLoc), A.key = I, i(A, D.offset, D.startLoc), {
|
|
1578
1578
|
nextConsumeToken: _,
|
|
1579
|
-
node:
|
|
1579
|
+
node: A
|
|
1580
1580
|
};
|
|
1581
1581
|
}
|
|
1582
1582
|
}
|
|
1583
|
-
return i(
|
|
1584
|
-
node:
|
|
1583
|
+
return i(A, g.currentOffset(), g.currentPosition()), {
|
|
1584
|
+
node: A
|
|
1585
1585
|
};
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1588
|
-
const
|
|
1589
|
-
|
|
1590
|
-
let
|
|
1587
|
+
function b(g) {
|
|
1588
|
+
const E = g.context(), A = E.currentType === 1 ? g.currentOffset() : E.offset, _ = E.currentType === 1 ? E.endLoc : E.startLoc, D = o(2, A, _);
|
|
1589
|
+
D.items = [];
|
|
1590
|
+
let I = null;
|
|
1591
1591
|
do {
|
|
1592
|
-
const Z =
|
|
1593
|
-
switch (
|
|
1592
|
+
const Z = I || g.nextToken();
|
|
1593
|
+
switch (I = null, Z.type) {
|
|
1594
1594
|
case 0:
|
|
1595
|
-
Z.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1595
|
+
Z.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, ze(Z)), D.items.push(r(g, Z.value || ""));
|
|
1596
1596
|
break;
|
|
1597
1597
|
case 5:
|
|
1598
|
-
Z.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1598
|
+
Z.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, ze(Z)), D.items.push(a(g, Z.value || ""));
|
|
1599
1599
|
break;
|
|
1600
1600
|
case 4:
|
|
1601
|
-
Z.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1601
|
+
Z.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, ze(Z)), D.items.push(s(g, Z.value || ""));
|
|
1602
1602
|
break;
|
|
1603
1603
|
case 6:
|
|
1604
|
-
Z.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
1604
|
+
Z.value == null && l(g, j.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, ze(Z)), D.items.push(c(g, Z.value || ""));
|
|
1605
1605
|
break;
|
|
1606
1606
|
case 7: {
|
|
1607
1607
|
const pe = h(g);
|
|
1608
|
-
|
|
1608
|
+
D.items.push(pe.node), I = pe.nextConsumeToken || null;
|
|
1609
1609
|
break;
|
|
1610
1610
|
}
|
|
1611
1611
|
}
|
|
1612
|
-
} while (
|
|
1613
|
-
const S =
|
|
1614
|
-
return i(
|
|
1615
|
-
}
|
|
1616
|
-
function
|
|
1617
|
-
const
|
|
1618
|
-
let
|
|
1619
|
-
const S = o(1,
|
|
1612
|
+
} while (E.currentType !== 13 && E.currentType !== 1);
|
|
1613
|
+
const S = E.currentType === 1 ? E.lastOffset : g.currentOffset(), Y = E.currentType === 1 ? E.lastEndLoc : g.currentPosition();
|
|
1614
|
+
return i(D, S, Y), D;
|
|
1615
|
+
}
|
|
1616
|
+
function N(g, E, A, _) {
|
|
1617
|
+
const D = g.context();
|
|
1618
|
+
let I = _.items.length === 0;
|
|
1619
|
+
const S = o(1, E, A);
|
|
1620
1620
|
S.cases = [], S.cases.push(_);
|
|
1621
1621
|
do {
|
|
1622
|
-
const Y =
|
|
1623
|
-
|
|
1624
|
-
} while (
|
|
1625
|
-
return
|
|
1622
|
+
const Y = b(g);
|
|
1623
|
+
I || (I = Y.items.length === 0), S.cases.push(Y);
|
|
1624
|
+
} while (D.currentType !== 13);
|
|
1625
|
+
return I && l(g, j.MUST_HAVE_MESSAGES_IN_PLURAL, A, 0), i(S, g.currentOffset(), g.currentPosition()), S;
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1628
|
-
const
|
|
1629
|
-
return
|
|
1627
|
+
function T(g) {
|
|
1628
|
+
const E = g.context(), { offset: A, startLoc: _ } = E, D = b(g);
|
|
1629
|
+
return E.currentType === 13 ? D : N(g, A, _, D);
|
|
1630
1630
|
}
|
|
1631
1631
|
function k(g) {
|
|
1632
|
-
const
|
|
1633
|
-
return t && _.loc && (_.loc.source = g), _.body =
|
|
1632
|
+
const E = Hs(g, ke({}, e)), A = E.context(), _ = o(0, A.offset, A.startLoc);
|
|
1633
|
+
return t && _.loc && (_.loc.source = g), _.body = T(E), e.onCacheKey && (_.cacheKey = e.onCacheKey(g)), A.currentType !== 13 && l(E, j.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, g[A.offset] || ""), i(_, E.currentOffset(), E.currentPosition()), _;
|
|
1634
1634
|
}
|
|
1635
1635
|
return { parse: k };
|
|
1636
1636
|
}
|
|
@@ -1795,20 +1795,20 @@ function Zs(e, t) {
|
|
|
1795
1795
|
};
|
|
1796
1796
|
i && e.loc && (r.source = e.loc.source);
|
|
1797
1797
|
const a = () => r;
|
|
1798
|
-
function s(
|
|
1799
|
-
r.code +=
|
|
1798
|
+
function s(T, k) {
|
|
1799
|
+
r.code += T;
|
|
1800
1800
|
}
|
|
1801
|
-
function c(
|
|
1801
|
+
function c(T, k = !0) {
|
|
1802
1802
|
const g = k ? l : "";
|
|
1803
|
-
s(o ? g + " ".repeat(
|
|
1803
|
+
s(o ? g + " ".repeat(T) : g);
|
|
1804
1804
|
}
|
|
1805
|
-
function m(
|
|
1805
|
+
function m(T = !0) {
|
|
1806
1806
|
const k = ++r.indentLevel;
|
|
1807
|
-
|
|
1807
|
+
T && c(k);
|
|
1808
1808
|
}
|
|
1809
|
-
function y(
|
|
1809
|
+
function y(T = !0) {
|
|
1810
1810
|
const k = --r.indentLevel;
|
|
1811
|
-
|
|
1811
|
+
T && c(k);
|
|
1812
1812
|
}
|
|
1813
1813
|
function h() {
|
|
1814
1814
|
c(r.indentLevel);
|
|
@@ -1819,7 +1819,7 @@ function Zs(e, t) {
|
|
|
1819
1819
|
indent: m,
|
|
1820
1820
|
deindent: y,
|
|
1821
1821
|
newline: h,
|
|
1822
|
-
helper: (
|
|
1822
|
+
helper: (T) => `_${T}`,
|
|
1823
1823
|
needIndent: () => r.needIndent
|
|
1824
1824
|
};
|
|
1825
1825
|
}
|
|
@@ -2460,16 +2460,16 @@ function Ou(e) {
|
|
|
2460
2460
|
]();
|
|
2461
2461
|
}
|
|
2462
2462
|
};
|
|
2463
|
-
function
|
|
2464
|
-
const
|
|
2465
|
-
if (l === 5 &&
|
|
2466
|
-
return n++, a = "\\" +
|
|
2463
|
+
function b() {
|
|
2464
|
+
const N = e[n + 1];
|
|
2465
|
+
if (l === 5 && N === "'" || l === 6 && N === '"')
|
|
2466
|
+
return n++, a = "\\" + N, h[
|
|
2467
2467
|
0
|
|
2468
2468
|
/* Actions.APPEND */
|
|
2469
2469
|
](), !0;
|
|
2470
2470
|
}
|
|
2471
2471
|
for (; l !== null; )
|
|
2472
|
-
if (n++, i = e[n], !(i === "\\" &&
|
|
2472
|
+
if (n++, i = e[n], !(i === "\\" && b())) {
|
|
2473
2473
|
if (s = Au(i), y = lt[l], c = y[s] || y.l || 8, c === 8 || (l = c[0], c[1] !== void 0 && (m = h[c[1]], m && (a = i, m() === !1))))
|
|
2474
2474
|
return;
|
|
2475
2475
|
if (l === 7)
|
|
@@ -2549,9 +2549,9 @@ const Wl = (e) => {
|
|
|
2549
2549
|
}, zu = () => Gi;
|
|
2550
2550
|
let jl = 0;
|
|
2551
2551
|
function Gu(e = {}) {
|
|
2552
|
-
const t = me(e.onWarn) ? e.onWarn : We, n = x(e.version) ? e.version : Mu, l = x(e.locale) || me(e.locale) ? e.locale : tn, o = me(l) ? tn : l, i = ve(e.fallbackLocale) || ne(e.fallbackLocale) || x(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : o, r = ne(e.messages) ? e.messages : On(o), a = ne(e.datetimeFormats) ? e.datetimeFormats : On(o), s = ne(e.numberFormats) ? e.numberFormats : On(o), c = ke(se(), e.modifiers, Vu()), m = e.pluralRules || se(), y = me(e.missing) ? e.missing : null, h = ye(e.missingWarn) || en(e.missingWarn) ? e.missingWarn : !0,
|
|
2552
|
+
const t = me(e.onWarn) ? e.onWarn : We, n = x(e.version) ? e.version : Mu, l = x(e.locale) || me(e.locale) ? e.locale : tn, o = me(l) ? tn : l, i = ve(e.fallbackLocale) || ne(e.fallbackLocale) || x(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : o, r = ne(e.messages) ? e.messages : On(o), a = ne(e.datetimeFormats) ? e.datetimeFormats : On(o), s = ne(e.numberFormats) ? e.numberFormats : On(o), c = ke(se(), e.modifiers, Vu()), m = e.pluralRules || se(), y = me(e.missing) ? e.missing : null, h = ye(e.missingWarn) || en(e.missingWarn) ? e.missingWarn : !0, b = ye(e.fallbackWarn) || en(e.fallbackWarn) ? e.fallbackWarn : !0, N = !!e.fallbackFormat, T = !!e.unresolving, k = me(e.postTranslation) ? e.postTranslation : null, g = ne(e.processor) ? e.processor : null, E = ye(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, A = !!e.escapeParameter, _ = me(e.messageCompiler) ? e.messageCompiler : Fi;
|
|
2553
2553
|
process.env.NODE_ENV !== "production" && me(e.messageCompiler) && _s(ft(Ae.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
2554
|
-
const
|
|
2554
|
+
const D = me(e.messageResolver) ? e.messageResolver : Hi || $u, I = me(e.localeFallbacker) ? e.localeFallbacker : Bi || ku, S = le(e.fallbackContext) ? e.fallbackContext : void 0, Y = e, Z = le(Y.__datetimeFormatters) ? Y.__datetimeFormatters : /* @__PURE__ */ new Map(), pe = le(Y.__numberFormatters) ? Y.__numberFormatters : /* @__PURE__ */ new Map(), Te = le(Y.__meta) ? Y.__meta : {};
|
|
2555
2555
|
jl++;
|
|
2556
2556
|
const ue = {
|
|
2557
2557
|
version: n,
|
|
@@ -2563,16 +2563,16 @@ function Gu(e = {}) {
|
|
|
2563
2563
|
pluralRules: m,
|
|
2564
2564
|
missing: y,
|
|
2565
2565
|
missingWarn: h,
|
|
2566
|
-
fallbackWarn:
|
|
2567
|
-
fallbackFormat:
|
|
2568
|
-
unresolving:
|
|
2566
|
+
fallbackWarn: b,
|
|
2567
|
+
fallbackFormat: N,
|
|
2568
|
+
unresolving: T,
|
|
2569
2569
|
postTranslation: k,
|
|
2570
2570
|
processor: g,
|
|
2571
|
-
warnHtmlMessage:
|
|
2572
|
-
escapeParameter:
|
|
2571
|
+
warnHtmlMessage: E,
|
|
2572
|
+
escapeParameter: A,
|
|
2573
2573
|
messageCompiler: _,
|
|
2574
|
-
messageResolver:
|
|
2575
|
-
localeFallbacker:
|
|
2574
|
+
messageResolver: D,
|
|
2575
|
+
localeFallbacker: I,
|
|
2576
2576
|
fallbackContext: S,
|
|
2577
2577
|
onWarn: t,
|
|
2578
2578
|
__meta: Te
|
|
@@ -2627,40 +2627,40 @@ function Yl(e, ...t) {
|
|
|
2627
2627
|
const { datetimeFormats: n, unresolving: l, fallbackLocale: o, onWarn: i, localeFallbacker: r } = e, { __datetimeFormatters: a } = e;
|
|
2628
2628
|
if (process.env.NODE_ENV !== "production" && !Ki.dateTimeFormat)
|
|
2629
2629
|
return i(ft(Ae.CANNOT_FORMAT_DATE)), nn;
|
|
2630
|
-
const [s, c, m, y] = xn(...t), h = ye(m.missingWarn) ? m.missingWarn : e.missingWarn,
|
|
2630
|
+
const [s, c, m, y] = xn(...t), h = ye(m.missingWarn) ? m.missingWarn : e.missingWarn, b = ye(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, N = !!m.part, T = ll(e, m), k = r(
|
|
2631
2631
|
e,
|
|
2632
2632
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2633
2633
|
o,
|
|
2634
|
-
|
|
2634
|
+
T
|
|
2635
2635
|
);
|
|
2636
2636
|
if (!x(s) || s === "")
|
|
2637
|
-
return new Intl.DateTimeFormat(
|
|
2638
|
-
let g = {},
|
|
2639
|
-
const
|
|
2637
|
+
return new Intl.DateTimeFormat(T, y).format(c);
|
|
2638
|
+
let g = {}, E, A = null, _ = T, D = null;
|
|
2639
|
+
const I = "datetime format";
|
|
2640
2640
|
for (let Z = 0; Z < k.length; Z++) {
|
|
2641
|
-
if (
|
|
2641
|
+
if (E = D = k[Z], process.env.NODE_ENV !== "production" && T !== E && gn(b, s) && i(ft(Ae.FALLBACK_TO_DATE_FORMAT, {
|
|
2642
2642
|
key: s,
|
|
2643
|
-
target:
|
|
2644
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
2643
|
+
target: E
|
|
2644
|
+
})), process.env.NODE_ENV !== "production" && T !== E) {
|
|
2645
2645
|
const pe = e.__v_emitter;
|
|
2646
2646
|
pe && pe.emit("fallback", {
|
|
2647
|
-
type:
|
|
2647
|
+
type: I,
|
|
2648
2648
|
key: s,
|
|
2649
2649
|
from: _,
|
|
2650
|
-
to:
|
|
2651
|
-
groupId: `${
|
|
2650
|
+
to: D,
|
|
2651
|
+
groupId: `${I}:${s}`
|
|
2652
2652
|
});
|
|
2653
2653
|
}
|
|
2654
|
-
if (g = n[
|
|
2654
|
+
if (g = n[E] || {}, A = g[s], ne(A))
|
|
2655
2655
|
break;
|
|
2656
|
-
il(e, s,
|
|
2656
|
+
il(e, s, E, h, I), _ = D;
|
|
2657
2657
|
}
|
|
2658
|
-
if (!ne(
|
|
2658
|
+
if (!ne(A) || !x(E))
|
|
2659
2659
|
return l ? pn : s;
|
|
2660
|
-
let S = `${
|
|
2660
|
+
let S = `${E}__${s}`;
|
|
2661
2661
|
mn(y) || (S = `${S}__${JSON.stringify(y)}`);
|
|
2662
2662
|
let Y = a.get(S);
|
|
2663
|
-
return Y || (Y = new Intl.DateTimeFormat(
|
|
2663
|
+
return Y || (Y = new Intl.DateTimeFormat(E, ke({}, A, y)), a.set(S, Y)), N ? Y.formatToParts(c) : Y.format(c);
|
|
2664
2664
|
}
|
|
2665
2665
|
const Yi = [
|
|
2666
2666
|
"localeMatcher",
|
|
@@ -2721,40 +2721,40 @@ function Xl(e, ...t) {
|
|
|
2721
2721
|
const { numberFormats: n, unresolving: l, fallbackLocale: o, onWarn: i, localeFallbacker: r } = e, { __numberFormatters: a } = e;
|
|
2722
2722
|
if (process.env.NODE_ENV !== "production" && !Ki.numberFormat)
|
|
2723
2723
|
return i(ft(Ae.CANNOT_FORMAT_NUMBER)), nn;
|
|
2724
|
-
const [s, c, m, y] = Un(...t), h = ye(m.missingWarn) ? m.missingWarn : e.missingWarn,
|
|
2724
|
+
const [s, c, m, y] = Un(...t), h = ye(m.missingWarn) ? m.missingWarn : e.missingWarn, b = ye(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, N = !!m.part, T = ll(e, m), k = r(
|
|
2725
2725
|
e,
|
|
2726
2726
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2727
2727
|
o,
|
|
2728
|
-
|
|
2728
|
+
T
|
|
2729
2729
|
);
|
|
2730
2730
|
if (!x(s) || s === "")
|
|
2731
|
-
return new Intl.NumberFormat(
|
|
2732
|
-
let g = {},
|
|
2733
|
-
const
|
|
2731
|
+
return new Intl.NumberFormat(T, y).format(c);
|
|
2732
|
+
let g = {}, E, A = null, _ = T, D = null;
|
|
2733
|
+
const I = "number format";
|
|
2734
2734
|
for (let Z = 0; Z < k.length; Z++) {
|
|
2735
|
-
if (
|
|
2735
|
+
if (E = D = k[Z], process.env.NODE_ENV !== "production" && T !== E && gn(b, s) && i(ft(Ae.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2736
2736
|
key: s,
|
|
2737
|
-
target:
|
|
2738
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
2737
|
+
target: E
|
|
2738
|
+
})), process.env.NODE_ENV !== "production" && T !== E) {
|
|
2739
2739
|
const pe = e.__v_emitter;
|
|
2740
2740
|
pe && pe.emit("fallback", {
|
|
2741
|
-
type:
|
|
2741
|
+
type: I,
|
|
2742
2742
|
key: s,
|
|
2743
2743
|
from: _,
|
|
2744
|
-
to:
|
|
2745
|
-
groupId: `${
|
|
2744
|
+
to: D,
|
|
2745
|
+
groupId: `${I}:${s}`
|
|
2746
2746
|
});
|
|
2747
2747
|
}
|
|
2748
|
-
if (g = n[
|
|
2748
|
+
if (g = n[E] || {}, A = g[s], ne(A))
|
|
2749
2749
|
break;
|
|
2750
|
-
il(e, s,
|
|
2750
|
+
il(e, s, E, h, I), _ = D;
|
|
2751
2751
|
}
|
|
2752
|
-
if (!ne(
|
|
2752
|
+
if (!ne(A) || !x(E))
|
|
2753
2753
|
return l ? pn : s;
|
|
2754
|
-
let S = `${
|
|
2754
|
+
let S = `${E}__${s}`;
|
|
2755
2755
|
mn(y) || (S = `${S}__${JSON.stringify(y)}`);
|
|
2756
2756
|
let Y = a.get(S);
|
|
2757
|
-
return Y || (Y = new Intl.NumberFormat(
|
|
2757
|
+
return Y || (Y = new Intl.NumberFormat(E, ke({}, A, y)), a.set(S, Y)), N ? Y.formatToParts(c) : Y.format(c);
|
|
2758
2758
|
}
|
|
2759
2759
|
const qi = [
|
|
2760
2760
|
"localeMatcher",
|
|
@@ -2810,27 +2810,27 @@ function Qu(e = {}) {
|
|
|
2810
2810
|
const t = e.locale, n = Zu(e), l = le(e.pluralRules) && x(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Jl, o = le(e.pluralRules) && x(t) && me(e.pluralRules[t]) ? Jl : void 0, i = (g) => g[l(n, g.length, o)], r = e.list || [], a = (g) => r[g], s = e.named || se();
|
|
2811
2811
|
be(e.pluralIndex) && Ju(n, s);
|
|
2812
2812
|
const c = (g) => s[g];
|
|
2813
|
-
function m(g,
|
|
2814
|
-
const
|
|
2815
|
-
return
|
|
2813
|
+
function m(g, E) {
|
|
2814
|
+
const A = me(e.messages) ? e.messages(g, !!E) : le(e.messages) ? e.messages[g] : !1;
|
|
2815
|
+
return A || (e.parent ? e.parent.message(g) : Ku);
|
|
2816
2816
|
}
|
|
2817
|
-
const y = (g) => e.modifiers ? e.modifiers[g] : ju, h = ne(e.processor) && me(e.processor.normalize) ? e.processor.normalize : qu,
|
|
2817
|
+
const y = (g) => e.modifiers ? e.modifiers[g] : ju, h = ne(e.processor) && me(e.processor.normalize) ? e.processor.normalize : qu, b = ne(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : Xu, N = ne(e.processor) && x(e.processor.type) ? e.processor.type : Yu, k = {
|
|
2818
2818
|
list: a,
|
|
2819
2819
|
named: c,
|
|
2820
2820
|
plural: i,
|
|
2821
|
-
linked: (g, ...
|
|
2822
|
-
const [
|
|
2823
|
-
let
|
|
2824
|
-
|
|
2821
|
+
linked: (g, ...E) => {
|
|
2822
|
+
const [A, _] = E;
|
|
2823
|
+
let D = "text", I = "";
|
|
2824
|
+
E.length === 1 ? le(A) ? (I = A.modifier || I, D = A.type || D) : x(A) && (I = A || I) : E.length === 2 && (x(A) && (I = A || I), x(_) && (D = _ || D));
|
|
2825
2825
|
const S = m(g, !0)(k), Y = (
|
|
2826
2826
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2827
|
-
|
|
2827
|
+
D === "vnode" && ve(S) && I ? S[0] : S
|
|
2828
2828
|
);
|
|
2829
|
-
return
|
|
2829
|
+
return I ? y(I)(Y, D) : Y;
|
|
2830
2830
|
},
|
|
2831
2831
|
message: m,
|
|
2832
|
-
type:
|
|
2833
|
-
interpolate:
|
|
2832
|
+
type: N,
|
|
2833
|
+
interpolate: b,
|
|
2834
2834
|
normalize: h,
|
|
2835
2835
|
values: ke(se(), r, s)
|
|
2836
2836
|
};
|
|
@@ -2838,30 +2838,30 @@ function Qu(e = {}) {
|
|
|
2838
2838
|
}
|
|
2839
2839
|
const Ql = () => "", xe = (e) => me(e);
|
|
2840
2840
|
function ei(e, ...t) {
|
|
2841
|
-
const { fallbackFormat: n, postTranslation: l, unresolving: o, messageCompiler: i, fallbackLocale: r, messages: a } = e, [s, c] = Fn(...t), m = ye(c.missingWarn) ? c.missingWarn : e.missingWarn, y = ye(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, h = ye(c.escapeParameter) ? c.escapeParameter : e.escapeParameter,
|
|
2841
|
+
const { fallbackFormat: n, postTranslation: l, unresolving: o, messageCompiler: i, fallbackLocale: r, messages: a } = e, [s, c] = Fn(...t), m = ye(c.missingWarn) ? c.missingWarn : e.missingWarn, y = ye(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, h = ye(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, b = !!c.resolvedMessage, N = x(c.default) || ye(c.default) ? ye(c.default) ? i ? s : () => s : c.default : n ? i ? s : () => s : null, T = n || N != null && (x(N) || me(N)), k = ll(e, c);
|
|
2842
2842
|
h && ec(c);
|
|
2843
|
-
let [g,
|
|
2843
|
+
let [g, E, A] = b ? [
|
|
2844
2844
|
s,
|
|
2845
2845
|
k,
|
|
2846
2846
|
a[k] || se()
|
|
2847
|
-
] : Xi(e, s, k, r, y, m), _ = g,
|
|
2848
|
-
if (!
|
|
2847
|
+
] : Xi(e, s, k, r, y, m), _ = g, D = s;
|
|
2848
|
+
if (!b && !(x(_) || He(_) || xe(_)) && T && (_ = N, D = _), !b && (!(x(_) || He(_) || xe(_)) || !x(E)))
|
|
2849
2849
|
return o ? pn : s;
|
|
2850
2850
|
if (process.env.NODE_ENV !== "production" && x(_) && e.messageCompiler == null)
|
|
2851
2851
|
return We(`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 '${s}'.`), s;
|
|
2852
|
-
let
|
|
2852
|
+
let I = !1;
|
|
2853
2853
|
const S = () => {
|
|
2854
|
-
|
|
2855
|
-
}, Y = xe(_) ? _ : Zi(e, s,
|
|
2856
|
-
if (
|
|
2854
|
+
I = !0;
|
|
2855
|
+
}, Y = xe(_) ? _ : Zi(e, s, E, _, D, S);
|
|
2856
|
+
if (I)
|
|
2857
2857
|
return _;
|
|
2858
|
-
const Z = ic(e,
|
|
2858
|
+
const Z = ic(e, E, A, c), pe = Qu(Z), Te = tc(e, Y, pe);
|
|
2859
2859
|
let ue = l ? l(Te, s) : Te;
|
|
2860
2860
|
if (h && x(ue) && (ue = ks(ue)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2861
2861
|
const et = {
|
|
2862
2862
|
timestamp: Date.now(),
|
|
2863
2863
|
key: x(s) ? s : xe(_) ? _.key : "",
|
|
2864
|
-
locale:
|
|
2864
|
+
locale: E || (xe(_) ? _.locale : ""),
|
|
2865
2865
|
format: x(_) ? _ : xe(_) ? _.source : "",
|
|
2866
2866
|
message: ue
|
|
2867
2867
|
};
|
|
@@ -2876,38 +2876,38 @@ function ec(e) {
|
|
|
2876
2876
|
}
|
|
2877
2877
|
function Xi(e, t, n, l, o, i) {
|
|
2878
2878
|
const { messages: r, onWarn: a, messageResolver: s, localeFallbacker: c } = e, m = c(e, l, n);
|
|
2879
|
-
let y = se(), h,
|
|
2879
|
+
let y = se(), h, b = null, N = n, T = null;
|
|
2880
2880
|
const k = "translate";
|
|
2881
2881
|
for (let g = 0; g < m.length; g++) {
|
|
2882
|
-
if (h =
|
|
2882
|
+
if (h = T = m[g], process.env.NODE_ENV !== "production" && n !== h && !ji(n, h) && gn(o, t) && a(ft(Ae.FALLBACK_TO_TRANSLATE, {
|
|
2883
2883
|
key: t,
|
|
2884
2884
|
target: h
|
|
2885
2885
|
})), process.env.NODE_ENV !== "production" && n !== h) {
|
|
2886
|
-
const
|
|
2887
|
-
|
|
2886
|
+
const D = e.__v_emitter;
|
|
2887
|
+
D && D.emit("fallback", {
|
|
2888
2888
|
type: k,
|
|
2889
2889
|
key: t,
|
|
2890
|
-
from:
|
|
2891
|
-
to:
|
|
2890
|
+
from: N,
|
|
2891
|
+
to: T,
|
|
2892
2892
|
groupId: `${k}:${t}`
|
|
2893
2893
|
});
|
|
2894
2894
|
}
|
|
2895
2895
|
y = r[h] || se();
|
|
2896
|
-
let
|
|
2897
|
-
if (process.env.NODE_ENV !== "production" && Je && (
|
|
2898
|
-
const
|
|
2899
|
-
|
|
2896
|
+
let E = null, A, _;
|
|
2897
|
+
if (process.env.NODE_ENV !== "production" && Je && (E = window.performance.now(), A = "intlify-message-resolve-start", _ = "intlify-message-resolve-end", Pe && Pe(A)), (b = s(y, t)) === null && (b = y[t]), process.env.NODE_ENV !== "production" && Je) {
|
|
2898
|
+
const D = window.performance.now(), I = e.__v_emitter;
|
|
2899
|
+
I && E && b && I.emit("message-resolve", {
|
|
2900
2900
|
type: "message-resolve",
|
|
2901
2901
|
key: t,
|
|
2902
|
-
message:
|
|
2903
|
-
time:
|
|
2902
|
+
message: b,
|
|
2903
|
+
time: D - E,
|
|
2904
2904
|
groupId: `${k}:${t}`
|
|
2905
|
-
}),
|
|
2905
|
+
}), A && _ && Pe && dt && (Pe(_), dt("intlify message resolve", A, _));
|
|
2906
2906
|
}
|
|
2907
|
-
if (x(
|
|
2907
|
+
if (x(b) || He(b) || xe(b))
|
|
2908
2908
|
break;
|
|
2909
2909
|
if (!Wu(h, m)) {
|
|
2910
|
-
const
|
|
2910
|
+
const D = il(
|
|
2911
2911
|
e,
|
|
2912
2912
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2913
2913
|
t,
|
|
@@ -2915,11 +2915,11 @@ function Xi(e, t, n, l, o, i) {
|
|
|
2915
2915
|
i,
|
|
2916
2916
|
k
|
|
2917
2917
|
);
|
|
2918
|
-
|
|
2918
|
+
D !== t && (b = D);
|
|
2919
2919
|
}
|
|
2920
|
-
|
|
2920
|
+
N = T;
|
|
2921
2921
|
}
|
|
2922
|
-
return [
|
|
2922
|
+
return [b, h, y];
|
|
2923
2923
|
}
|
|
2924
2924
|
function Zi(e, t, n, l, o, i) {
|
|
2925
2925
|
const { messageCompiler: r, warnHtmlMessage: a } = e;
|
|
@@ -2935,8 +2935,8 @@ function Zi(e, t, n, l, o, i) {
|
|
|
2935
2935
|
process.env.NODE_ENV !== "production" && Je && (s = window.performance.now(), c = "intlify-message-compilation-start", m = "intlify-message-compilation-end", Pe && Pe(c));
|
|
2936
2936
|
const y = r(l, nc(e, n, o, l, a, i));
|
|
2937
2937
|
if (process.env.NODE_ENV !== "production" && Je) {
|
|
2938
|
-
const h = window.performance.now(),
|
|
2939
|
-
|
|
2938
|
+
const h = window.performance.now(), b = e.__v_emitter;
|
|
2939
|
+
b && s && b.emit("message-compilation", {
|
|
2940
2940
|
type: "message-compilation",
|
|
2941
2941
|
message: l,
|
|
2942
2942
|
time: h - s,
|
|
@@ -3000,27 +3000,27 @@ function ic(e, t, n, l) {
|
|
|
3000
3000
|
locale: t,
|
|
3001
3001
|
modifiers: o,
|
|
3002
3002
|
pluralRules: i,
|
|
3003
|
-
messages: (
|
|
3004
|
-
let
|
|
3005
|
-
if (
|
|
3003
|
+
messages: (b, N) => {
|
|
3004
|
+
let T = r(n, b);
|
|
3005
|
+
if (T == null && (m || N)) {
|
|
3006
3006
|
const [, , k] = Xi(
|
|
3007
3007
|
m || e,
|
|
3008
3008
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
3009
|
-
|
|
3009
|
+
b,
|
|
3010
3010
|
t,
|
|
3011
3011
|
a,
|
|
3012
3012
|
s,
|
|
3013
3013
|
c
|
|
3014
3014
|
);
|
|
3015
|
-
|
|
3015
|
+
T = r(k, b);
|
|
3016
3016
|
}
|
|
3017
|
-
if (x(
|
|
3017
|
+
if (x(T) || He(T)) {
|
|
3018
3018
|
let k = !1;
|
|
3019
|
-
const
|
|
3019
|
+
const E = Zi(e, b, t, T, b, () => {
|
|
3020
3020
|
k = !0;
|
|
3021
3021
|
});
|
|
3022
|
-
return k ? Ql :
|
|
3023
|
-
} else return xe(
|
|
3022
|
+
return k ? Ql : E;
|
|
3023
|
+
} else return xe(T) ? T : Ql;
|
|
3024
3024
|
}
|
|
3025
3025
|
};
|
|
3026
3026
|
return e.processor && (h.processor = e.processor), l.list && (h.list = l.list), l.named && (h.named = l.named), be(l.plural) && (h.pluralIndex = l.plural), h;
|
|
@@ -3197,33 +3197,33 @@ function mc(e = {}) {
|
|
|
3197
3197
|
// prettier-ignore
|
|
3198
3198
|
t && r ? t.fallbackLocale.value : x(e.fallbackLocale) || ve(e.fallbackLocale) || ne(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
3199
3199
|
), c = i(Qi(a.value, e)), m = i(ne(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), y = i(ne(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
3200
|
-
let h = t ? t.missingWarn : ye(e.missingWarn) || en(e.missingWarn) ? e.missingWarn : !0,
|
|
3201
|
-
const
|
|
3202
|
-
let
|
|
3200
|
+
let h = t ? t.missingWarn : ye(e.missingWarn) || en(e.missingWarn) ? e.missingWarn : !0, b = t ? t.fallbackWarn : ye(e.fallbackWarn) || en(e.fallbackWarn) ? e.fallbackWarn : !0, N = t ? t.fallbackRoot : ye(e.fallbackRoot) ? e.fallbackRoot : !0, T = !!e.fallbackFormat, k = me(e.missing) ? e.missing : null, g = me(e.missing) ? oi(e.missing) : null, E = me(e.postTranslation) ? e.postTranslation : null, A = t ? t.warnHtmlMessage : ye(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter;
|
|
3201
|
+
const D = t ? t.modifiers : ne(e.modifiers) ? e.modifiers : {};
|
|
3202
|
+
let I = e.pluralRules || t && t.pluralRules, S;
|
|
3203
3203
|
S = (() => {
|
|
3204
3204
|
l && Wl(null);
|
|
3205
|
-
const
|
|
3205
|
+
const C = {
|
|
3206
3206
|
version: oc,
|
|
3207
3207
|
locale: a.value,
|
|
3208
3208
|
fallbackLocale: s.value,
|
|
3209
3209
|
messages: c.value,
|
|
3210
|
-
modifiers:
|
|
3211
|
-
pluralRules:
|
|
3210
|
+
modifiers: D,
|
|
3211
|
+
pluralRules: I,
|
|
3212
3212
|
missing: g === null ? void 0 : g,
|
|
3213
3213
|
missingWarn: h,
|
|
3214
|
-
fallbackWarn:
|
|
3215
|
-
fallbackFormat:
|
|
3214
|
+
fallbackWarn: b,
|
|
3215
|
+
fallbackFormat: T,
|
|
3216
3216
|
unresolving: !0,
|
|
3217
|
-
postTranslation:
|
|
3218
|
-
warnHtmlMessage:
|
|
3217
|
+
postTranslation: E === null ? void 0 : E,
|
|
3218
|
+
warnHtmlMessage: A,
|
|
3219
3219
|
escapeParameter: _,
|
|
3220
3220
|
messageResolver: e.messageResolver,
|
|
3221
3221
|
messageCompiler: e.messageCompiler,
|
|
3222
3222
|
__meta: { framework: "vue" }
|
|
3223
3223
|
};
|
|
3224
|
-
|
|
3225
|
-
const
|
|
3226
|
-
return l && Wl(
|
|
3224
|
+
C.datetimeFormats = m.value, C.numberFormats = y.value, C.__datetimeFormatters = ne(S) ? S.__datetimeFormatters : void 0, C.__numberFormatters = ne(S) ? S.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (C.__v_emitter = ne(S) ? S.__v_emitter : void 0);
|
|
3225
|
+
const O = Gu(C);
|
|
3226
|
+
return l && Wl(O), O;
|
|
3227
3227
|
})(), It(S, a.value, s.value);
|
|
3228
3228
|
function Z() {
|
|
3229
3229
|
return [
|
|
@@ -3234,172 +3234,172 @@ function mc(e = {}) {
|
|
|
3234
3234
|
y.value
|
|
3235
3235
|
];
|
|
3236
3236
|
}
|
|
3237
|
-
const pe =
|
|
3237
|
+
const pe = G({
|
|
3238
3238
|
get: () => a.value,
|
|
3239
|
-
set: (
|
|
3240
|
-
S.locale =
|
|
3239
|
+
set: (C) => {
|
|
3240
|
+
S.locale = C, a.value = C;
|
|
3241
3241
|
}
|
|
3242
|
-
}), Te =
|
|
3242
|
+
}), Te = G({
|
|
3243
3243
|
get: () => s.value,
|
|
3244
|
-
set: (
|
|
3245
|
-
S.fallbackLocale =
|
|
3244
|
+
set: (C) => {
|
|
3245
|
+
S.fallbackLocale = C, s.value = C, It(S, a.value, C);
|
|
3246
3246
|
}
|
|
3247
|
-
}), ue =
|
|
3247
|
+
}), ue = G(() => c.value), et = /* @__PURE__ */ G(() => m.value), gt = /* @__PURE__ */ G(() => y.value);
|
|
3248
3248
|
function B() {
|
|
3249
|
-
return me(
|
|
3249
|
+
return me(E) ? E : null;
|
|
3250
3250
|
}
|
|
3251
|
-
function
|
|
3252
|
-
|
|
3251
|
+
function P(C) {
|
|
3252
|
+
E = C, S.postTranslation = C;
|
|
3253
3253
|
}
|
|
3254
3254
|
function J() {
|
|
3255
3255
|
return k;
|
|
3256
3256
|
}
|
|
3257
|
-
function z(
|
|
3258
|
-
|
|
3257
|
+
function z(C) {
|
|
3258
|
+
C !== null && (g = oi(C)), k = C, S.missing = g;
|
|
3259
3259
|
}
|
|
3260
|
-
function je(
|
|
3261
|
-
return
|
|
3260
|
+
function je(C, O) {
|
|
3261
|
+
return C !== "translate" || !O.resolvedMessage;
|
|
3262
3262
|
}
|
|
3263
|
-
const Se = (
|
|
3263
|
+
const Se = (C, O, ie, he, rt, Ht) => {
|
|
3264
3264
|
Z();
|
|
3265
3265
|
let ht;
|
|
3266
3266
|
try {
|
|
3267
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, l || (S.fallbackContext = t ? zu() : void 0), ht =
|
|
3267
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, l || (S.fallbackContext = t ? zu() : void 0), ht = C(S);
|
|
3268
3268
|
} finally {
|
|
3269
3269
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, l || (S.fallbackContext = void 0);
|
|
3270
3270
|
}
|
|
3271
3271
|
if (ie !== "translate exists" && // for not `te` (e.g `t`)
|
|
3272
3272
|
be(ht) && ht === pn || ie === "translate exists" && !ht) {
|
|
3273
|
-
const [at, Wo] =
|
|
3274
|
-
if (process.env.NODE_ENV !== "production" && t && x(at) && je(ie, Wo) && (
|
|
3273
|
+
const [at, Wo] = O();
|
|
3274
|
+
if (process.env.NODE_ENV !== "production" && t && x(at) && je(ie, Wo) && (N && (gn(b, at) || Wi(h, at)) && We(ln(Ge.FALLBACK_TO_ROOT, {
|
|
3275
3275
|
key: at,
|
|
3276
3276
|
type: ie
|
|
3277
3277
|
})), process.env.NODE_ENV !== "production")) {
|
|
3278
3278
|
const { __v_emitter: _l } = S;
|
|
3279
|
-
_l &&
|
|
3279
|
+
_l && N && _l.emit("fallback", {
|
|
3280
3280
|
type: ie,
|
|
3281
3281
|
key: at,
|
|
3282
3282
|
to: "global",
|
|
3283
3283
|
groupId: `${ie}:${at}`
|
|
3284
3284
|
});
|
|
3285
3285
|
}
|
|
3286
|
-
return t &&
|
|
3286
|
+
return t && N ? he(t) : rt(at);
|
|
3287
3287
|
} else {
|
|
3288
3288
|
if (Ht(ht))
|
|
3289
3289
|
return ht;
|
|
3290
3290
|
throw Rt(Le.UNEXPECTED_RETURN_TYPE);
|
|
3291
3291
|
}
|
|
3292
3292
|
};
|
|
3293
|
-
function it(...
|
|
3294
|
-
return Se((
|
|
3293
|
+
function it(...C) {
|
|
3294
|
+
return Se((O) => Reflect.apply(ei, null, [O, ...C]), () => Fn(...C), "translate", (O) => Reflect.apply(O.t, O, [...C]), (O) => O, (O) => x(O));
|
|
3295
3295
|
}
|
|
3296
|
-
function yn(...
|
|
3297
|
-
const [
|
|
3296
|
+
function yn(...C) {
|
|
3297
|
+
const [O, ie, he] = C;
|
|
3298
3298
|
if (he && !le(he))
|
|
3299
3299
|
throw Rt(Le.INVALID_ARGUMENT);
|
|
3300
|
-
return it(
|
|
3300
|
+
return it(O, ie, ke({ resolvedMessage: !0 }, he || {}));
|
|
3301
3301
|
}
|
|
3302
|
-
function vn(...
|
|
3303
|
-
return Se((
|
|
3302
|
+
function vn(...C) {
|
|
3303
|
+
return Se((O) => Reflect.apply(Yl, null, [O, ...C]), () => xn(...C), "datetime format", (O) => Reflect.apply(O.d, O, [...C]), () => nn, (O) => x(O) || ve(O));
|
|
3304
3304
|
}
|
|
3305
|
-
function En(...
|
|
3306
|
-
return Se((
|
|
3305
|
+
function En(...C) {
|
|
3306
|
+
return Se((O) => Reflect.apply(Xl, null, [O, ...C]), () => Un(...C), "number format", (O) => Reflect.apply(O.n, O, [...C]), () => nn, (O) => x(O) || ve(O));
|
|
3307
3307
|
}
|
|
3308
|
-
function Cn(
|
|
3309
|
-
return
|
|
3308
|
+
function Cn(C) {
|
|
3309
|
+
return C.map((O) => x(O) || be(O) || ye(O) ? ti(String(O)) : O);
|
|
3310
3310
|
}
|
|
3311
3311
|
const bn = {
|
|
3312
3312
|
normalize: Cn,
|
|
3313
|
-
interpolate: (
|
|
3313
|
+
interpolate: (C) => C,
|
|
3314
3314
|
type: "vnode"
|
|
3315
3315
|
};
|
|
3316
|
-
function Ut(...
|
|
3317
|
-
return Se((
|
|
3316
|
+
function Ut(...C) {
|
|
3317
|
+
return Se((O) => {
|
|
3318
3318
|
let ie;
|
|
3319
|
-
const he =
|
|
3319
|
+
const he = O;
|
|
3320
3320
|
try {
|
|
3321
|
-
he.processor = bn, ie = Reflect.apply(ei, null, [he, ...
|
|
3321
|
+
he.processor = bn, ie = Reflect.apply(ei, null, [he, ...C]);
|
|
3322
3322
|
} finally {
|
|
3323
3323
|
he.processor = null;
|
|
3324
3324
|
}
|
|
3325
3325
|
return ie;
|
|
3326
|
-
}, () => Fn(...
|
|
3326
|
+
}, () => Fn(...C), "translate", (O) => O[Hn](...C), (O) => [ti(O)], (O) => ve(O));
|
|
3327
3327
|
}
|
|
3328
|
-
function kn(...
|
|
3329
|
-
return Se((
|
|
3328
|
+
function kn(...C) {
|
|
3329
|
+
return Se((O) => Reflect.apply(Xl, null, [O, ...C]), () => Un(...C), "number format", (O) => O[zn](...C), li, (O) => x(O) || ve(O));
|
|
3330
3330
|
}
|
|
3331
|
-
function Ft(...
|
|
3332
|
-
return Se((
|
|
3331
|
+
function Ft(...C) {
|
|
3332
|
+
return Se((O) => Reflect.apply(Yl, null, [O, ...C]), () => xn(...C), "datetime format", (O) => O[Bn](...C), li, (O) => x(O) || ve(O));
|
|
3333
3333
|
}
|
|
3334
|
-
function Ln(
|
|
3335
|
-
|
|
3334
|
+
function Ln(C) {
|
|
3335
|
+
I = C, S.pluralRules = I;
|
|
3336
3336
|
}
|
|
3337
|
-
function Sn(
|
|
3337
|
+
function Sn(C, O) {
|
|
3338
3338
|
return Se(() => {
|
|
3339
|
-
if (!
|
|
3339
|
+
if (!C)
|
|
3340
3340
|
return !1;
|
|
3341
|
-
const ie = x(
|
|
3341
|
+
const ie = x(O) ? O : a.value, he = ot(ie), rt = S.messageResolver(he, C);
|
|
3342
3342
|
return He(rt) || xe(rt) || x(rt);
|
|
3343
|
-
}, () => [
|
|
3343
|
+
}, () => [C], "translate exists", (ie) => Reflect.apply(ie.te, ie, [C, O]), dc, (ie) => ye(ie));
|
|
3344
3344
|
}
|
|
3345
|
-
function wt(
|
|
3346
|
-
let
|
|
3345
|
+
function wt(C) {
|
|
3346
|
+
let O = null;
|
|
3347
3347
|
const ie = Ui(S, s.value, a.value);
|
|
3348
3348
|
for (let he = 0; he < ie.length; he++) {
|
|
3349
|
-
const rt = c.value[ie[he]] || {}, Ht = S.messageResolver(rt,
|
|
3349
|
+
const rt = c.value[ie[he]] || {}, Ht = S.messageResolver(rt, C);
|
|
3350
3350
|
if (Ht != null) {
|
|
3351
|
-
|
|
3351
|
+
O = Ht;
|
|
3352
3352
|
break;
|
|
3353
3353
|
}
|
|
3354
3354
|
}
|
|
3355
|
-
return
|
|
3355
|
+
return O;
|
|
3356
3356
|
}
|
|
3357
|
-
function Nt(
|
|
3358
|
-
const
|
|
3359
|
-
return
|
|
3357
|
+
function Nt(C) {
|
|
3358
|
+
const O = wt(C);
|
|
3359
|
+
return O ?? (t ? t.tm(C) || {} : {});
|
|
3360
3360
|
}
|
|
3361
|
-
function ot(
|
|
3362
|
-
return c.value[
|
|
3361
|
+
function ot(C) {
|
|
3362
|
+
return c.value[C] || {};
|
|
3363
3363
|
}
|
|
3364
|
-
function Tt(
|
|
3364
|
+
function Tt(C, O) {
|
|
3365
3365
|
if (o) {
|
|
3366
|
-
const ie = { [
|
|
3366
|
+
const ie = { [C]: O };
|
|
3367
3367
|
for (const he in ie)
|
|
3368
3368
|
Fe(ie, he) && Pt(ie[he]);
|
|
3369
|
-
|
|
3369
|
+
O = ie[C];
|
|
3370
3370
|
}
|
|
3371
|
-
c.value[
|
|
3371
|
+
c.value[C] = O, S.messages = c.value;
|
|
3372
3372
|
}
|
|
3373
|
-
function wn(
|
|
3374
|
-
c.value[
|
|
3375
|
-
const ie = { [
|
|
3373
|
+
function wn(C, O) {
|
|
3374
|
+
c.value[C] = c.value[C] || {};
|
|
3375
|
+
const ie = { [C]: O };
|
|
3376
3376
|
if (o)
|
|
3377
3377
|
for (const he in ie)
|
|
3378
3378
|
Fe(ie, he) && Pt(ie[he]);
|
|
3379
|
-
|
|
3379
|
+
O = ie[C], Zt(O, c.value[C]), S.messages = c.value;
|
|
3380
3380
|
}
|
|
3381
|
-
function f(
|
|
3382
|
-
return m.value[
|
|
3381
|
+
function f(C) {
|
|
3382
|
+
return m.value[C] || {};
|
|
3383
3383
|
}
|
|
3384
|
-
function p(
|
|
3385
|
-
m.value[
|
|
3384
|
+
function p(C, O) {
|
|
3385
|
+
m.value[C] = O, S.datetimeFormats = m.value, ql(S, C, O);
|
|
3386
3386
|
}
|
|
3387
|
-
function w(
|
|
3388
|
-
m.value[
|
|
3387
|
+
function w(C, O) {
|
|
3388
|
+
m.value[C] = ke(m.value[C] || {}, O), S.datetimeFormats = m.value, ql(S, C, O);
|
|
3389
3389
|
}
|
|
3390
|
-
function F(
|
|
3391
|
-
return y.value[
|
|
3390
|
+
function F(C) {
|
|
3391
|
+
return y.value[C] || {};
|
|
3392
3392
|
}
|
|
3393
|
-
function fe(
|
|
3394
|
-
y.value[
|
|
3393
|
+
function fe(C, O) {
|
|
3394
|
+
y.value[C] = O, S.numberFormats = y.value, Zl(S, C, O);
|
|
3395
3395
|
}
|
|
3396
|
-
function ge(
|
|
3397
|
-
y.value[
|
|
3396
|
+
function ge(C, O) {
|
|
3397
|
+
y.value[C] = ke(y.value[C] || {}, O), S.numberFormats = y.value, Zl(S, C, O);
|
|
3398
3398
|
}
|
|
3399
|
-
ii++, t && Je && (Ue(t.locale, (
|
|
3400
|
-
r && (a.value =
|
|
3401
|
-
}), Ue(t.fallbackLocale, (
|
|
3402
|
-
r && (s.value =
|
|
3399
|
+
ii++, t && Je && (Ue(t.locale, (C) => {
|
|
3400
|
+
r && (a.value = C, S.locale = C, It(S, a.value, s.value));
|
|
3401
|
+
}), Ue(t.fallbackLocale, (C) => {
|
|
3402
|
+
r && (s.value = C, S.fallbackLocale = C, It(S, a.value, s.value));
|
|
3403
3403
|
}));
|
|
3404
3404
|
const ee = {
|
|
3405
3405
|
id: ii,
|
|
@@ -3408,18 +3408,18 @@ function mc(e = {}) {
|
|
|
3408
3408
|
get inheritLocale() {
|
|
3409
3409
|
return r;
|
|
3410
3410
|
},
|
|
3411
|
-
set inheritLocale(
|
|
3412
|
-
r =
|
|
3411
|
+
set inheritLocale(C) {
|
|
3412
|
+
r = C, C && t && (a.value = t.locale.value, s.value = t.fallbackLocale.value, It(S, a.value, s.value));
|
|
3413
3413
|
},
|
|
3414
3414
|
get availableLocales() {
|
|
3415
3415
|
return Object.keys(c.value).sort();
|
|
3416
3416
|
},
|
|
3417
3417
|
messages: ue,
|
|
3418
3418
|
get modifiers() {
|
|
3419
|
-
return
|
|
3419
|
+
return D;
|
|
3420
3420
|
},
|
|
3421
3421
|
get pluralRules() {
|
|
3422
|
-
return
|
|
3422
|
+
return I || {};
|
|
3423
3423
|
},
|
|
3424
3424
|
get isGlobal() {
|
|
3425
3425
|
return l;
|
|
@@ -3427,51 +3427,51 @@ function mc(e = {}) {
|
|
|
3427
3427
|
get missingWarn() {
|
|
3428
3428
|
return h;
|
|
3429
3429
|
},
|
|
3430
|
-
set missingWarn(
|
|
3431
|
-
h =
|
|
3430
|
+
set missingWarn(C) {
|
|
3431
|
+
h = C, S.missingWarn = h;
|
|
3432
3432
|
},
|
|
3433
3433
|
get fallbackWarn() {
|
|
3434
|
-
return
|
|
3434
|
+
return b;
|
|
3435
3435
|
},
|
|
3436
|
-
set fallbackWarn(
|
|
3437
|
-
|
|
3436
|
+
set fallbackWarn(C) {
|
|
3437
|
+
b = C, S.fallbackWarn = b;
|
|
3438
3438
|
},
|
|
3439
3439
|
get fallbackRoot() {
|
|
3440
|
-
return
|
|
3440
|
+
return N;
|
|
3441
3441
|
},
|
|
3442
|
-
set fallbackRoot(
|
|
3443
|
-
|
|
3442
|
+
set fallbackRoot(C) {
|
|
3443
|
+
N = C;
|
|
3444
3444
|
},
|
|
3445
3445
|
get fallbackFormat() {
|
|
3446
|
-
return
|
|
3446
|
+
return T;
|
|
3447
3447
|
},
|
|
3448
|
-
set fallbackFormat(
|
|
3449
|
-
|
|
3448
|
+
set fallbackFormat(C) {
|
|
3449
|
+
T = C, S.fallbackFormat = T;
|
|
3450
3450
|
},
|
|
3451
3451
|
get warnHtmlMessage() {
|
|
3452
|
-
return
|
|
3452
|
+
return A;
|
|
3453
3453
|
},
|
|
3454
|
-
set warnHtmlMessage(
|
|
3455
|
-
|
|
3454
|
+
set warnHtmlMessage(C) {
|
|
3455
|
+
A = C, S.warnHtmlMessage = C;
|
|
3456
3456
|
},
|
|
3457
3457
|
get escapeParameter() {
|
|
3458
3458
|
return _;
|
|
3459
3459
|
},
|
|
3460
|
-
set escapeParameter(
|
|
3461
|
-
_ =
|
|
3460
|
+
set escapeParameter(C) {
|
|
3461
|
+
_ = C, S.escapeParameter = C;
|
|
3462
3462
|
},
|
|
3463
3463
|
t: it,
|
|
3464
3464
|
getLocaleMessage: ot,
|
|
3465
3465
|
setLocaleMessage: Tt,
|
|
3466
3466
|
mergeLocaleMessage: wn,
|
|
3467
3467
|
getPostTranslationHandler: B,
|
|
3468
|
-
setPostTranslationHandler:
|
|
3468
|
+
setPostTranslationHandler: P,
|
|
3469
3469
|
getMissingHandler: J,
|
|
3470
3470
|
setMissingHandler: z,
|
|
3471
3471
|
[sc]: Ln
|
|
3472
3472
|
};
|
|
3473
|
-
return ee.datetimeFormats = et, ee.numberFormats = gt, ee.rt = yn, ee.te = Sn, ee.tm = Nt, ee.d = vn, ee.n = En, ee.getDateTimeFormat = f, ee.setDateTimeFormat = p, ee.mergeDateTimeFormat = w, ee.getNumberFormat = F, ee.setNumberFormat = fe, ee.mergeNumberFormat = ge, ee[Ji] = n, ee[Hn] = Ut, ee[Bn] = Ft, ee[zn] = kn, process.env.NODE_ENV !== "production" && (ee[Gn] = (
|
|
3474
|
-
S.__v_emitter =
|
|
3473
|
+
return ee.datetimeFormats = et, ee.numberFormats = gt, ee.rt = yn, ee.te = Sn, ee.tm = Nt, ee.d = vn, ee.n = En, ee.getDateTimeFormat = f, ee.setDateTimeFormat = p, ee.mergeDateTimeFormat = w, ee.getNumberFormat = F, ee.setNumberFormat = fe, ee.mergeNumberFormat = ge, ee[Ji] = n, ee[Hn] = Ut, ee[Bn] = Ft, ee[zn] = kn, process.env.NODE_ENV !== "production" && (ee[Gn] = (C) => {
|
|
3474
|
+
S.__v_emitter = C;
|
|
3475
3475
|
}, ee[Wn] = () => {
|
|
3476
3476
|
S.__v_emitter = void 0;
|
|
3477
3477
|
}), ee;
|
|
@@ -3527,12 +3527,12 @@ function no(e, t, n, l) {
|
|
|
3527
3527
|
return () => {
|
|
3528
3528
|
const r = { part: !0 };
|
|
3529
3529
|
let a = se();
|
|
3530
|
-
e.locale && (r.locale = e.locale), x(e.format) ? r.key = e.format : le(e.format) && (x(e.format.key) && (r.key = e.format.key), a = Object.keys(e.format).reduce((h,
|
|
3530
|
+
e.locale && (r.locale = e.locale), x(e.format) ? r.key = e.format : le(e.format) && (x(e.format.key) && (r.key = e.format.key), a = Object.keys(e.format).reduce((h, b) => n.includes(b) ? ke(se(), h, { [b]: e.format[b] }) : h, se()));
|
|
3531
3531
|
const s = l(e.value, r, a);
|
|
3532
3532
|
let c = [r.key];
|
|
3533
|
-
ve(s) ? c = s.map((h,
|
|
3534
|
-
const
|
|
3535
|
-
return gc(
|
|
3533
|
+
ve(s) ? c = s.map((h, b) => {
|
|
3534
|
+
const N = o[h.type], T = N ? N({ [h.type]: h.value, index: b, parts: s }) : [h.value];
|
|
3535
|
+
return gc(T) && (T[0].key = `${h.type}-${b}`), T;
|
|
3536
3536
|
}) : x(s) && (c = [s]);
|
|
3537
3537
|
const m = ke(se(), i), y = x(e.tag) || le(e.tag) ? e.tag : to();
|
|
3538
3538
|
return bt(y, m, c);
|
|
@@ -3660,13 +3660,13 @@ const oe = /* @__PURE__ */ de({
|
|
|
3660
3660
|
}), ki(async () => {
|
|
3661
3661
|
l.value?.dispose();
|
|
3662
3662
|
}), (r, a) => (u(), d(Ee, null, [
|
|
3663
|
-
|
|
3663
|
+
v("span", K({
|
|
3664
3664
|
ref_key: "$tooltip",
|
|
3665
3665
|
ref: o
|
|
3666
3666
|
}, r.$attrs), [
|
|
3667
3667
|
ae(r.$slots, "default")
|
|
3668
3668
|
], 16),
|
|
3669
|
-
|
|
3669
|
+
v("span", {
|
|
3670
3670
|
class: "d-none",
|
|
3671
3671
|
ref_key: "$tooltipContent",
|
|
3672
3672
|
ref: i
|
|
@@ -3689,17 +3689,17 @@ const oe = /* @__PURE__ */ de({
|
|
|
3689
3689
|
variable: {}
|
|
3690
3690
|
},
|
|
3691
3691
|
setup(e) {
|
|
3692
|
-
const t = e, n =
|
|
3692
|
+
const t = e, n = G(() => `data:image/svg+xml;base64,${i.value}`), l = G(() => ({
|
|
3693
3693
|
flowable: r.value ? r.value.flowable : !1
|
|
3694
|
-
})), o =
|
|
3694
|
+
})), o = G(() => ({
|
|
3695
3695
|
backgroundImage: `url(${n.value})`
|
|
3696
|
-
})), i =
|
|
3696
|
+
})), i = G(() => {
|
|
3697
3697
|
let s = r.value && r.value.icon ? window.atob(r.value.icon) : void 0;
|
|
3698
3698
|
s || (s = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="0.75em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 384 512"><path d="M288 32H0v448h384V128l-96-96zm64 416H32V64h224l96 96v288z" fill="currentColor"/></svg>');
|
|
3699
3699
|
const c = document.getElementsByTagName("html")[0].className.indexOf("dark") >= 0;
|
|
3700
3700
|
let m = Ve(c ? "--bs-gray-900" : "--bs-black") ?? "#FFFFFF";
|
|
3701
3701
|
return t.theme && (m = (t.theme === "dark" ? Ve("--bs-gray-900") : Ve("--bs-black")) ?? m), t.variable && (m = Ve(t.variable) ?? m), s = s.replace(/currentColor/g, m), window.btoa(s);
|
|
3702
|
-
}), r =
|
|
3702
|
+
}), r = G(() => t.cls ? (t.icons || {})[a(t.cls)] : t.customIcon);
|
|
3703
3703
|
function a(s) {
|
|
3704
3704
|
return s.includes("$") ? s.substring(0, s.indexOf("$")) : s;
|
|
3705
3705
|
}
|
|
@@ -3714,8 +3714,8 @@ const oe = /* @__PURE__ */ de({
|
|
|
3714
3714
|
key: 0,
|
|
3715
3715
|
title: s.cls
|
|
3716
3716
|
}, {
|
|
3717
|
-
default:
|
|
3718
|
-
|
|
3717
|
+
default: W(() => [
|
|
3718
|
+
v("div", {
|
|
3719
3719
|
class: "icon",
|
|
3720
3720
|
style: ct(o.value)
|
|
3721
3721
|
}, null, 4)
|
|
@@ -3756,7 +3756,7 @@ function Ac(e, t, n, l, o, i) {
|
|
|
3756
3756
|
height: n.size,
|
|
3757
3757
|
viewBox: "0 0 24 24"
|
|
3758
3758
|
}, [
|
|
3759
|
-
|
|
3759
|
+
v("path", Nc, [
|
|
3760
3760
|
n.title ? (u(), d("title", Tc, M(n.title), 1)) : L("", !0)
|
|
3761
3761
|
])
|
|
3762
3762
|
], 8, wc))
|
|
@@ -3794,7 +3794,7 @@ function Pc(e, t, n, l, o, i) {
|
|
|
3794
3794
|
height: n.size,
|
|
3795
3795
|
viewBox: "0 0 24 24"
|
|
3796
3796
|
}, [
|
|
3797
|
-
|
|
3797
|
+
v("path", Dc, [
|
|
3798
3798
|
n.title ? (u(), d("title", Rc, M(n.title), 1)) : L("", !0)
|
|
3799
3799
|
])
|
|
3800
3800
|
], 8, $c))
|
|
@@ -3829,15 +3829,15 @@ const Mc = /* @__PURE__ */ H(Ic, [["render", Pc]]), Vc = { class: "dependency-te
|
|
|
3829
3829
|
U.MOUSE_LEAVE
|
|
3830
3830
|
],
|
|
3831
3831
|
setup(e, { emit: t }) {
|
|
3832
|
-
const n = t, { t: l } = Vt(), o =
|
|
3832
|
+
const n = t, { t: l } = Vt(), o = G(() => window.btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="none">
|
|
3833
3833
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.34546 9.63757C4.74074 10.5277 5.31782 11.3221 6.03835 11.9681L7.03434 10.8209C6.4739 10.3185 6.02504 9.70059 5.71758 9.00824C5.41012 8.3159 5.25111 7.56496 5.25111 6.80532C5.25111 6.04568 5.41012 5.29475 5.71758 4.6024C6.02504 3.91006 6.4739 3.29216 7.03434 2.78977L6.03835 1.64258C5.31782 2.28851 4.74074 3.08293 4.34546 3.97307C3.95019 4.86321 3.74575 5.82867 3.74575 6.80532C3.74575 7.78197 3.95019 8.74744 4.34546 9.63757ZM16.955 4.38931C17.4802 3.97411 18.1261 3.74777 18.7913 3.74576C19.5894 3.74576 20.3547 4.06807 20.919 4.64177C21.4833 5.21548 21.8004 5.9936 21.8004 6.80494C21.8004 7.61628 21.4833 8.3944 20.919 8.96811C20.3547 9.54181 19.5894 9.86412 18.7913 9.86412C18.2559 9.86126 17.7312 9.71144 17.2725 9.43048L12.3325 14.4529L11.2688 13.3715L16.2088 8.34906C16.0668 8.10583 15.9592 7.84348 15.8891 7.56973H11.2688V6.04014H15.8891C16.055 5.38511 16.4298 4.80451 16.955 4.38931ZM17.9555 8.07674C18.2029 8.24482 18.4938 8.33453 18.7913 8.33453C19.1902 8.33412 19.5727 8.17284 19.8548 7.88607C20.1368 7.59931 20.2955 7.21049 20.2959 6.80494C20.2959 6.50241 20.2076 6.20668 20.0423 5.95514C19.877 5.70361 19.642 5.50756 19.3671 5.39178C19.0922 5.27601 18.7897 5.24572 18.4978 5.30474C18.206 5.36376 17.9379 5.50944 17.7275 5.72336C17.5171 5.93727 17.3738 6.20982 17.3157 6.50653C17.2577 6.80324 17.2875 7.11079 17.4014 7.39029C17.5152 7.66978 17.7081 7.90867 17.9555 8.07674ZM3.74621 15.2177V16.7473H7.19606L2.2417 21.7842L3.30539 22.8656L8.25975 17.8287V21.336H9.76427V15.2177H3.74621ZM15.7823 18.2769H12.7733V19.8064H15.7823V22.1008H21.8004V15.9825H15.7823V18.2769ZM17.2868 20.5712V17.5121H20.2959V20.5712H17.2868ZM8.02885 9.67292C7.62863 9.31407 7.30809 8.87275 7.08853 8.37827C6.86897 7.88378 6.75542 7.34747 6.75542 6.80494C6.75542 6.26241 6.86897 5.72609 7.08853 5.23161C7.30809 4.73713 7.62863 4.29581 8.02885 3.93696L9.02484 5.08415C8.78458 5.29946 8.59215 5.5643 8.46034 5.86106C8.32853 6.15782 8.26035 6.47971 8.26035 6.80532C8.26035 7.13094 8.32853 7.45282 8.46034 7.74958C8.59215 8.04634 8.78458 8.31118 9.02484 8.52649L8.02885 9.67292Z" fill="white"/>
|
|
3834
3834
|
</svg>`));
|
|
3835
3835
|
return (i, r) => (u(), d(Ee, null, [
|
|
3836
|
-
V(
|
|
3836
|
+
V(R(Me), {
|
|
3837
3837
|
type: "source",
|
|
3838
3838
|
position: e.sourcePosition
|
|
3839
3839
|
}, null, 8, ["position"]),
|
|
3840
|
-
|
|
3840
|
+
v("div", {
|
|
3841
3841
|
class: re([[`border-${e.data.color}`], "dependency-node-wrapper rounded-3 border"])
|
|
3842
3842
|
}, [
|
|
3843
3843
|
V(lo, {
|
|
@@ -3845,39 +3845,39 @@ const Mc = /* @__PURE__ */ H(Ic, [["render", Pc]]), Vc = { class: "dependency-te
|
|
|
3845
3845
|
class: "bg-pink rounded",
|
|
3846
3846
|
theme: "light"
|
|
3847
3847
|
}, null, 8, ["custom-icon"]),
|
|
3848
|
-
|
|
3849
|
-
|
|
3848
|
+
v("div", Vc, [
|
|
3849
|
+
v("div", xc, [
|
|
3850
3850
|
V(oe, {
|
|
3851
3851
|
title: e.data.flowId
|
|
3852
3852
|
}, {
|
|
3853
|
-
default:
|
|
3853
|
+
default: W(() => [
|
|
3854
3854
|
Ze(M(e.data.flowId), 1)
|
|
3855
3855
|
]),
|
|
3856
3856
|
_: 1
|
|
3857
3857
|
}, 8, ["title"])
|
|
3858
3858
|
]),
|
|
3859
|
-
|
|
3859
|
+
v("div", Uc, [
|
|
3860
3860
|
V(oe, {
|
|
3861
3861
|
title: e.data.namespace
|
|
3862
3862
|
}, {
|
|
3863
|
-
default:
|
|
3863
|
+
default: W(() => [
|
|
3864
3864
|
Ze(M(e.data.namespace), 1)
|
|
3865
3865
|
]),
|
|
3866
3866
|
_: 1
|
|
3867
3867
|
}, 8, ["title"])
|
|
3868
3868
|
])
|
|
3869
3869
|
]),
|
|
3870
|
-
|
|
3870
|
+
v("div", Fc, [
|
|
3871
3871
|
ae(i.$slots, "badge-button-before", {}, void 0, !0),
|
|
3872
3872
|
e.data.link ? (u(), d("span", {
|
|
3873
3873
|
key: 0,
|
|
3874
3874
|
class: re(["circle-button", [`bg-${e.data.color}`]]),
|
|
3875
|
-
onClick: r[0] || (r[0] = (a) => i.$emit(
|
|
3875
|
+
onClick: r[0] || (r[0] = (a) => i.$emit(R(U).OPEN_LINK, e.data))
|
|
3876
3876
|
}, [
|
|
3877
3877
|
V(oe, {
|
|
3878
|
-
title:
|
|
3878
|
+
title: R(l)("open")
|
|
3879
3879
|
}, {
|
|
3880
|
-
default:
|
|
3880
|
+
default: W(() => [
|
|
3881
3881
|
V(io, {
|
|
3882
3882
|
class: "button-icon",
|
|
3883
3883
|
alt: "Open in new tab"
|
|
@@ -3889,12 +3889,12 @@ const Mc = /* @__PURE__ */ H(Ic, [["render", Pc]]), Vc = { class: "dependency-te
|
|
|
3889
3889
|
e.data.expandEnabled ? (u(), d("span", {
|
|
3890
3890
|
key: 1,
|
|
3891
3891
|
class: re(["circle-button", [`bg-${e.data.color}`]]),
|
|
3892
|
-
onClick: r[1] || (r[1] = (a) => n(
|
|
3892
|
+
onClick: r[1] || (r[1] = (a) => n(R(U).EXPAND_DEPENDENCIES, e.data))
|
|
3893
3893
|
}, [
|
|
3894
3894
|
V(oe, {
|
|
3895
|
-
title:
|
|
3895
|
+
title: R(l)("expand")
|
|
3896
3896
|
}, {
|
|
3897
|
-
default:
|
|
3897
|
+
default: W(() => [
|
|
3898
3898
|
V(Mc, {
|
|
3899
3899
|
class: "button-icon",
|
|
3900
3900
|
alt: "Expand task"
|
|
@@ -3906,13 +3906,13 @@ const Mc = /* @__PURE__ */ H(Ic, [["render", Pc]]), Vc = { class: "dependency-te
|
|
|
3906
3906
|
ae(i.$slots, "badge-button-after", {}, void 0, !0)
|
|
3907
3907
|
])
|
|
3908
3908
|
], 2),
|
|
3909
|
-
V(
|
|
3909
|
+
V(R(Me), {
|
|
3910
3910
|
type: "target",
|
|
3911
3911
|
position: e.targetPosition
|
|
3912
3912
|
}, null, 8, ["position"])
|
|
3913
3913
|
], 64));
|
|
3914
3914
|
}
|
|
3915
|
-
}),
|
|
3915
|
+
}), T_ = /* @__PURE__ */ H(Hc, [["__scopeId", "data-v-2271d5b0"]]);
|
|
3916
3916
|
var qe = /* @__PURE__ */ ((e) => (e.Lines = "lines", e.Dots = "dots", e))(qe || {});
|
|
3917
3917
|
const oo = function({ dimensions: e, size: t, color: n }) {
|
|
3918
3918
|
return bt("path", {
|
|
@@ -3952,11 +3952,11 @@ const Bc = {
|
|
|
3952
3952
|
offset: { default: 0 }
|
|
3953
3953
|
},
|
|
3954
3954
|
setup(e) {
|
|
3955
|
-
const { id: t, viewport: n } = Ni(), l =
|
|
3956
|
-
const r = n.value.zoom, [a, s] = Array.isArray(e.gap) ? e.gap : [e.gap, e.gap], c = [a * r || 1, s * r || 1], m = e.size * r, [y, h] = Array.isArray(e.offset) ? e.offset : [e.offset, e.offset],
|
|
3955
|
+
const { id: t, viewport: n } = Ni(), l = G(() => {
|
|
3956
|
+
const r = n.value.zoom, [a, s] = Array.isArray(e.gap) ? e.gap : [e.gap, e.gap], c = [a * r || 1, s * r || 1], m = e.size * r, [y, h] = Array.isArray(e.offset) ? e.offset : [e.offset, e.offset], b = [y * r || 1 + c[0] / 2, h * r || 1 + c[1] / 2];
|
|
3957
3957
|
return {
|
|
3958
3958
|
scaledGap: c,
|
|
3959
|
-
offset:
|
|
3959
|
+
offset: b,
|
|
3960
3960
|
size: m
|
|
3961
3961
|
};
|
|
3962
3962
|
}), o = kl(() => `pattern-${t}${e.id ? `-${e.id}` : ""}`), i = kl(() => e.color || e.patternColor || Bc[e.variant || qe.Dots]);
|
|
@@ -3968,28 +3968,28 @@ const Bc = {
|
|
|
3968
3968
|
})
|
|
3969
3969
|
}, [
|
|
3970
3970
|
ae(r.$slots, "pattern-container", { id: o.value }, () => [
|
|
3971
|
-
|
|
3971
|
+
v("pattern", {
|
|
3972
3972
|
id: o.value,
|
|
3973
|
-
x:
|
|
3974
|
-
y:
|
|
3973
|
+
x: R(n).x % l.value.scaledGap[0],
|
|
3974
|
+
y: R(n).y % l.value.scaledGap[1],
|
|
3975
3975
|
width: l.value.scaledGap[0],
|
|
3976
3976
|
height: l.value.scaledGap[1],
|
|
3977
3977
|
patternTransform: `translate(-${l.value.offset[0]},-${l.value.offset[1]})`,
|
|
3978
3978
|
patternUnits: "userSpaceOnUse"
|
|
3979
3979
|
}, [
|
|
3980
3980
|
ae(r.$slots, "pattern", {}, () => [
|
|
3981
|
-
r.variant ===
|
|
3981
|
+
r.variant === R(qe).Lines ? (u(), X(R(oo), {
|
|
3982
3982
|
key: 0,
|
|
3983
3983
|
size: r.lineWidth,
|
|
3984
3984
|
color: i.value,
|
|
3985
3985
|
dimensions: l.value.scaledGap
|
|
3986
|
-
}, null, 8, ["size", "color", "dimensions"])) : r.variant ===
|
|
3986
|
+
}, null, 8, ["size", "color", "dimensions"])) : r.variant === R(qe).Dots ? (u(), X(R(ro), {
|
|
3987
3987
|
key: 1,
|
|
3988
3988
|
color: i.value,
|
|
3989
3989
|
radius: l.value.size / 2
|
|
3990
3990
|
}, null, 8, ["color", "radius"])) : L("", !0),
|
|
3991
3991
|
r.bgColor ? (u(), d("svg", Gc, [
|
|
3992
|
-
|
|
3992
|
+
v("rect", {
|
|
3993
3993
|
width: "100%",
|
|
3994
3994
|
height: "100%",
|
|
3995
3995
|
fill: r.bgColor
|
|
@@ -3998,7 +3998,7 @@ const Bc = {
|
|
|
3998
3998
|
])
|
|
3999
3999
|
], 8, zc)
|
|
4000
4000
|
]),
|
|
4001
|
-
|
|
4001
|
+
v("rect", {
|
|
4002
4002
|
x: r.x,
|
|
4003
4003
|
y: r.y,
|
|
4004
4004
|
width: "100%",
|
|
@@ -4040,7 +4040,7 @@ function ed(e, t, n, l, o, i) {
|
|
|
4040
4040
|
height: n.size,
|
|
4041
4041
|
viewBox: "0 0 24 24"
|
|
4042
4042
|
}, [
|
|
4043
|
-
|
|
4043
|
+
v("path", Jc, [
|
|
4044
4044
|
n.title ? (u(), d("title", Qc, M(n.title), 1)) : L("", !0)
|
|
4045
4045
|
])
|
|
4046
4046
|
], 8, Zc))
|
|
@@ -4095,10 +4095,10 @@ const td = /* @__PURE__ */ H(qc, [["render", ed]]), nd = { class: "top-button-di
|
|
|
4095
4095
|
return (i, r) => (u(), d("div", {
|
|
4096
4096
|
class: re(i.classes)
|
|
4097
4097
|
}, [
|
|
4098
|
-
|
|
4098
|
+
v("span", {
|
|
4099
4099
|
class: re(["badge rounded-pill text-truncate text-color position-reliative", [`bg-${e.data.color}`]])
|
|
4100
4100
|
}, M(i.clusterName), 3),
|
|
4101
|
-
|
|
4101
|
+
v("div", nd, [
|
|
4102
4102
|
e.data.collapsable ? (u(), d("span", {
|
|
4103
4103
|
key: 0,
|
|
4104
4104
|
class: re(["circle-button", [`bg-${e.data.color}`]]),
|
|
@@ -4107,7 +4107,7 @@ const td = /* @__PURE__ */ H(qc, [["render", ed]]), nd = { class: "top-button-di
|
|
|
4107
4107
|
V(oe, {
|
|
4108
4108
|
title: i.$t("collapse")
|
|
4109
4109
|
}, {
|
|
4110
|
-
default:
|
|
4110
|
+
default: W(() => [
|
|
4111
4111
|
V(td, {
|
|
4112
4112
|
class: "button-icon",
|
|
4113
4113
|
alt: "Collapse task"
|
|
@@ -4151,7 +4151,7 @@ function dd(e, t, n, l, o, i) {
|
|
|
4151
4151
|
height: n.size,
|
|
4152
4152
|
viewBox: "0 0 24 24"
|
|
4153
4153
|
}, [
|
|
4154
|
-
|
|
4154
|
+
v("path", ud, [
|
|
4155
4155
|
n.title ? (u(), d("title", cd, M(n.title), 1)) : L("", !0)
|
|
4156
4156
|
])
|
|
4157
4157
|
], 8, sd))
|
|
@@ -4192,12 +4192,12 @@ const ao = /* @__PURE__ */ H(rd, [["render", dd]]), fd = {
|
|
|
4192
4192
|
return (t, n) => (u(), d("div", {
|
|
4193
4193
|
class: re(t.classes)
|
|
4194
4194
|
}, [
|
|
4195
|
-
V(
|
|
4195
|
+
V(R(Me), {
|
|
4196
4196
|
type: "source",
|
|
4197
4197
|
class: "custom-handle",
|
|
4198
4198
|
position: e.sourcePosition
|
|
4199
4199
|
}, null, 8, ["position"]),
|
|
4200
|
-
|
|
4200
|
+
v("div", {
|
|
4201
4201
|
class: re(["dot", t.classes])
|
|
4202
4202
|
}, [
|
|
4203
4203
|
V(ao, {
|
|
@@ -4205,7 +4205,7 @@ const ao = /* @__PURE__ */ H(rd, [["render", dd]]), fd = {
|
|
|
4205
4205
|
alt: "circle"
|
|
4206
4206
|
}, null, 8, ["class"])
|
|
4207
4207
|
], 2),
|
|
4208
|
-
V(
|
|
4208
|
+
V(R(Me), {
|
|
4209
4209
|
type: "target",
|
|
4210
4210
|
class: "custom-handle",
|
|
4211
4211
|
position: e.targetPosition
|
|
@@ -4244,7 +4244,7 @@ function Ed(e, t, n, l, o, i) {
|
|
|
4244
4244
|
height: n.size,
|
|
4245
4245
|
viewBox: "0 0 24 24"
|
|
4246
4246
|
}, [
|
|
4247
|
-
|
|
4247
|
+
v("path", yd, [
|
|
4248
4248
|
n.title ? (u(), d("title", vd, M(n.title), 1)) : L("", !0)
|
|
4249
4249
|
])
|
|
4250
4250
|
], 8, _d))
|
|
@@ -4306,7 +4306,7 @@ const Cd = /* @__PURE__ */ H(gd, [["render", Ed]]), bd = { class: "add-task-div
|
|
|
4306
4306
|
}
|
|
4307
4307
|
},
|
|
4308
4308
|
setup(e) {
|
|
4309
|
-
const t = e, n =
|
|
4309
|
+
const t = e, n = G(() => t.data ? {
|
|
4310
4310
|
"vue-flow__edge-path": !0,
|
|
4311
4311
|
["stroke-" + t.data.color]: t.data.color,
|
|
4312
4312
|
"unused-path": t.data.unused
|
|
@@ -4317,10 +4317,10 @@ const Cd = /* @__PURE__ */ H(gd, [["render", Ed]]), bd = { class: "add-task-div
|
|
|
4317
4317
|
l = r;
|
|
4318
4318
|
} catch {
|
|
4319
4319
|
}
|
|
4320
|
-
const o =
|
|
4320
|
+
const o = G(() => {
|
|
4321
4321
|
const { haveAdd: r } = t.data ?? {};
|
|
4322
4322
|
return `${l("add task")} ${r?.length === 2 ? `${l(r[1])} ${r[0]}` : ""}`.trim();
|
|
4323
|
-
}), i =
|
|
4323
|
+
}), i = G(() => Dr(t));
|
|
4324
4324
|
return (r, a) => (u(), d(Ee, null, [
|
|
4325
4325
|
i.value?.length ? (u(), d("path", {
|
|
4326
4326
|
key: 0,
|
|
@@ -4332,12 +4332,12 @@ const Cd = /* @__PURE__ */ H(gd, [["render", Ed]]), bd = { class: "add-task-div
|
|
|
4332
4332
|
d: i.value[0],
|
|
4333
4333
|
"marker-end": e.markerEnd
|
|
4334
4334
|
}, null, 14, Sd)) : L("", !0),
|
|
4335
|
-
i.value?.length ? (u(), X(
|
|
4335
|
+
i.value?.length ? (u(), X(R(Rr), {
|
|
4336
4336
|
key: 1,
|
|
4337
4337
|
style: { "z-index": "10" }
|
|
4338
4338
|
}, {
|
|
4339
|
-
default:
|
|
4340
|
-
|
|
4339
|
+
default: W(() => [
|
|
4340
|
+
v("div", {
|
|
4341
4341
|
style: ct({
|
|
4342
4342
|
pointerEvents: "all",
|
|
4343
4343
|
position: "absolute",
|
|
@@ -4345,11 +4345,11 @@ const Cd = /* @__PURE__ */ H(gd, [["render", Ed]]), bd = { class: "add-task-div
|
|
|
4345
4345
|
})
|
|
4346
4346
|
}, [
|
|
4347
4347
|
V(oe, { title: o.value }, {
|
|
4348
|
-
default:
|
|
4348
|
+
default: W(() => [
|
|
4349
4349
|
e.data.haveAdd ? (u(), X(Ld, {
|
|
4350
4350
|
key: 0,
|
|
4351
4351
|
"add-task": !0,
|
|
4352
|
-
onClick: a[0] || (a[0] = (s) => r.$emit(
|
|
4352
|
+
onClick: a[0] || (a[0] = (s) => r.$emit(R(U).ADD_TASK, e.data.haveAdd)),
|
|
4353
4353
|
class: re({ "text-danger": e.data.color })
|
|
4354
4354
|
}, null, 8, ["class"])) : L("", !0)
|
|
4355
4355
|
]),
|
|
@@ -4370,15 +4370,15 @@ const Cd = /* @__PURE__ */ H(gd, [["render", Ed]]), bd = { class: "add-task-div
|
|
|
4370
4370
|
const t = e;
|
|
4371
4371
|
Ue(
|
|
4372
4372
|
() => t.histories,
|
|
4373
|
-
(
|
|
4374
|
-
|
|
4373
|
+
(b, N) => {
|
|
4374
|
+
N[0].date !== b[0].date && a();
|
|
4375
4375
|
}
|
|
4376
4376
|
);
|
|
4377
4377
|
const n = te(""), l = te();
|
|
4378
4378
|
Mt(() => {
|
|
4379
4379
|
a();
|
|
4380
4380
|
});
|
|
4381
|
-
const o =
|
|
4381
|
+
const o = G(() => t.histories?.length && new Date(t.histories[0].date.toString()).getTime()), i = G(() => t.histories[t.histories.length - 1]), r = G(() => t.histories.filter((b) => b.date.isValid() && b.date && b.state));
|
|
4382
4382
|
function a() {
|
|
4383
4383
|
l.value || (l.value = setInterval(() => {
|
|
4384
4384
|
y(), t.histories && !_e.isRunning(i.value.state) && s();
|
|
@@ -4396,29 +4396,29 @@ const Cd = /* @__PURE__ */ H(gd, [["render", Ed]]), bd = { class: "add-task-div
|
|
|
4396
4396
|
function y() {
|
|
4397
4397
|
n.value = r.value.length === 0 ? " " : Ko(c() / 1e3);
|
|
4398
4398
|
}
|
|
4399
|
-
function h(
|
|
4400
|
-
return "ks-duration-tt-square-" +
|
|
4399
|
+
function h(b) {
|
|
4400
|
+
return "ks-duration-tt-square-" + b.toLowerCase();
|
|
4401
4401
|
}
|
|
4402
4402
|
return ki(() => {
|
|
4403
4403
|
s();
|
|
4404
|
-
}), (
|
|
4404
|
+
}), (b, N) => (u(), X(oe, {
|
|
4405
4405
|
key: i.value.date.toString()
|
|
4406
4406
|
}, {
|
|
4407
|
-
content:
|
|
4408
|
-
(u(!0), d(Ee, null, Xe(r.value, (
|
|
4407
|
+
content: W(() => [
|
|
4408
|
+
(u(!0), d(Ee, null, Xe(r.value, (T, k) => (u(), d("span", {
|
|
4409
4409
|
key: "tt-" + k,
|
|
4410
4410
|
class: "ks-duration-tt"
|
|
4411
4411
|
}, [
|
|
4412
|
-
|
|
4413
|
-
class: re(["ks-duration-tt-square", h(
|
|
4412
|
+
v("span", {
|
|
4413
|
+
class: re(["ks-duration-tt-square", h(T.state)])
|
|
4414
4414
|
}, null, 2),
|
|
4415
|
-
|
|
4416
|
-
Ze(M(Yo(
|
|
4417
|
-
|
|
4415
|
+
v("strong", null, M(T.state) + ": ", 1),
|
|
4416
|
+
Ze(M(Yo(T.date.toISOString(), "iso")) + " ", 1),
|
|
4417
|
+
N[0] || (N[0] = v("br", null, null, -1))
|
|
4418
4418
|
]))), 128))
|
|
4419
4419
|
]),
|
|
4420
|
-
default:
|
|
4421
|
-
|
|
4420
|
+
default: W(() => [
|
|
4421
|
+
v("span", { innerHTML: n.value }, null, 8, Td)
|
|
4422
4422
|
]),
|
|
4423
4423
|
_: 1
|
|
4424
4424
|
}));
|
|
@@ -4437,9 +4437,9 @@ const Cd = /* @__PURE__ */ H(gd, [["render", Ed]]), bd = { class: "add-task-div
|
|
|
4437
4437
|
state: {}
|
|
4438
4438
|
},
|
|
4439
4439
|
setup(e) {
|
|
4440
|
-
const t = e, n =
|
|
4440
|
+
const t = e, n = G(() => t.execution?.taskRunList ? t.execution.taskRunList : []), l = G(() => n.value.filter(
|
|
4441
4441
|
(i) => i.taskId === qo(t.uid ?? "")
|
|
4442
|
-
)), o =
|
|
4442
|
+
)), o = G(() => {
|
|
4443
4443
|
if (!l.value)
|
|
4444
4444
|
return;
|
|
4445
4445
|
const i = Math.max(
|
|
@@ -4501,7 +4501,7 @@ function Hd(e, t, n, l, o, i) {
|
|
|
4501
4501
|
height: n.size,
|
|
4502
4502
|
viewBox: "0 0 24 24"
|
|
4503
4503
|
}, [
|
|
4504
|
-
|
|
4504
|
+
v("path", Ud, [
|
|
4505
4505
|
n.title ? (u(), d("title", Fd, M(n.title), 1)) : L("", !0)
|
|
4506
4506
|
])
|
|
4507
4507
|
], 8, xd))
|
|
@@ -4539,7 +4539,7 @@ function Yd(e, t, n, l, o, i) {
|
|
|
4539
4539
|
height: n.size,
|
|
4540
4540
|
viewBox: "0 0 24 24"
|
|
4541
4541
|
}, [
|
|
4542
|
-
|
|
4542
|
+
v("path", jd, [
|
|
4543
4543
|
n.title ? (u(), d("title", Kd, M(n.title), 1)) : L("", !0)
|
|
4544
4544
|
])
|
|
4545
4545
|
], 8, Wd))
|
|
@@ -4583,59 +4583,59 @@ const rl = /* @__PURE__ */ H(zd, [["render", Yd]]), qd = { class: "icon rounded"
|
|
|
4583
4583
|
function i() {
|
|
4584
4584
|
n(U.MOUSE_LEAVE);
|
|
4585
4585
|
}
|
|
4586
|
-
const r =
|
|
4587
|
-
const
|
|
4588
|
-
return
|
|
4589
|
-
}), s =
|
|
4586
|
+
const r = G(() => l.data?.expandable || !1), a = G(() => {
|
|
4587
|
+
const N = l.data.node.task ?? l.data.node.trigger ?? null;
|
|
4588
|
+
return N ? N.description ?? null : null;
|
|
4589
|
+
}), s = G(() => Re.afterLastDot(l.id ?? "")), c = G(() => ["default", "danger"].includes(l.data.color) ? "" : l.data.color), m = G(() => [
|
|
4590
4590
|
{
|
|
4591
4591
|
"unused-path": l.data.unused,
|
|
4592
4592
|
disabled: l.data.node.task?.disabled || l.data.parent?.taskNode?.task?.disabled
|
|
4593
4593
|
},
|
|
4594
4594
|
l.class
|
|
4595
|
-
]), y =
|
|
4595
|
+
]), y = G(() => {
|
|
4596
4596
|
if (l.data.node.triggerDeclaration)
|
|
4597
4597
|
return l.data.node.triggerDeclaration.type;
|
|
4598
4598
|
if (l.data.node?.task)
|
|
4599
4599
|
return l.data.node.task.type;
|
|
4600
|
-
}), h =
|
|
4600
|
+
}), h = G(() => {
|
|
4601
4601
|
if (l.data.node.type?.endsWith("SubflowGraphTask")) {
|
|
4602
|
-
const
|
|
4603
|
-
return
|
|
4602
|
+
const N = l.data.node.task.subflowId ?? l.data.node.task;
|
|
4603
|
+
return N.namespace + " " + N.flowId;
|
|
4604
4604
|
}
|
|
4605
4605
|
return s.value;
|
|
4606
|
-
});
|
|
4607
|
-
return (
|
|
4608
|
-
class: re(["node-wrapper rounded-3", { ...m.value, "running-border-animation":
|
|
4609
|
-
style: ct({ borderColor:
|
|
4606
|
+
}), b = G(() => l.title ?? s.value);
|
|
4607
|
+
return (N, T) => (u(), d("div", {
|
|
4608
|
+
class: re(["node-wrapper rounded-3", { ...m.value, "running-border-animation": N.state === "RUNNING" }]),
|
|
4609
|
+
style: ct({ borderColor: N.state ? `var(--ks-border-${N.state.toLowerCase()})` : void 0 }),
|
|
4610
4610
|
onMouseover: o,
|
|
4611
4611
|
onMouseleave: i
|
|
4612
4612
|
}, [
|
|
4613
|
-
|
|
4614
|
-
(u(), X(mt(
|
|
4613
|
+
v("div", qd, [
|
|
4614
|
+
(u(), X(mt(N.iconComponent || lo), {
|
|
4615
4615
|
cls: y.value,
|
|
4616
4616
|
class: re([c.value, "rounded bg-white"]),
|
|
4617
4617
|
theme: "light",
|
|
4618
|
-
icons:
|
|
4618
|
+
icons: N.icons
|
|
4619
4619
|
}, null, 8, ["cls", "class", "icons"]))
|
|
4620
4620
|
]),
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4621
|
+
v("div", Xd, [
|
|
4622
|
+
v("div", Zd, [
|
|
4623
|
+
v("div", Jd, [
|
|
4624
4624
|
V(oe, { title: h.value }, {
|
|
4625
|
-
default:
|
|
4626
|
-
Ze(M(
|
|
4625
|
+
default: W(() => [
|
|
4626
|
+
Ze(M(b.value), 1)
|
|
4627
4627
|
]),
|
|
4628
4628
|
_: 1
|
|
4629
4629
|
}, 8, ["title"])
|
|
4630
4630
|
]),
|
|
4631
4631
|
a.value ? (u(), d("span", Qd, [
|
|
4632
4632
|
V(oe, {
|
|
4633
|
-
title:
|
|
4633
|
+
title: N.$t("show description"),
|
|
4634
4634
|
class: "d-flex align-items-center"
|
|
4635
4635
|
}, {
|
|
4636
|
-
default:
|
|
4636
|
+
default: W(() => [
|
|
4637
4637
|
V(Bd, {
|
|
4638
|
-
onClick:
|
|
4638
|
+
onClick: T[0] || (T[0] = (k) => N.$emit(R(U).SHOW_DESCRIPTION, { id: s.value, description: a.value })),
|
|
4639
4639
|
class: "description-button ms-2"
|
|
4640
4640
|
})
|
|
4641
4641
|
]),
|
|
@@ -4643,19 +4643,19 @@ const rl = /* @__PURE__ */ H(zd, [["render", Yd]]), qd = { class: "icon rounded"
|
|
|
4643
4643
|
}, 8, ["title"])
|
|
4644
4644
|
])) : L("", !0)
|
|
4645
4645
|
]),
|
|
4646
|
-
ae(
|
|
4646
|
+
ae(N.$slots, "content", {}, void 0, !0)
|
|
4647
4647
|
]),
|
|
4648
|
-
|
|
4649
|
-
ae(
|
|
4650
|
-
|
|
4648
|
+
v("div", ef, [
|
|
4649
|
+
ae(N.$slots, "badge-button-before", {}, void 0, !0),
|
|
4650
|
+
N.data.link ? (u(), d("span", {
|
|
4651
4651
|
key: 0,
|
|
4652
|
-
class: re(["circle-button", [`bg-${
|
|
4653
|
-
onClick:
|
|
4652
|
+
class: re(["circle-button", [`bg-${N.data.color}`]]),
|
|
4653
|
+
onClick: T[1] || (T[1] = (k) => N.$emit(R(U).OPEN_LINK, { link: N.data.link }))
|
|
4654
4654
|
}, [
|
|
4655
4655
|
V(oe, {
|
|
4656
|
-
title:
|
|
4656
|
+
title: N.$t("open")
|
|
4657
4657
|
}, {
|
|
4658
|
-
default:
|
|
4658
|
+
default: W(() => [
|
|
4659
4659
|
V(io, {
|
|
4660
4660
|
class: "button-icon",
|
|
4661
4661
|
alt: "Open in new tab"
|
|
@@ -4666,13 +4666,13 @@ const rl = /* @__PURE__ */ H(zd, [["render", Yd]]), qd = { class: "icon rounded"
|
|
|
4666
4666
|
], 2)) : L("", !0),
|
|
4667
4667
|
r.value ? (u(), d("span", {
|
|
4668
4668
|
key: 1,
|
|
4669
|
-
class: re(["circle-button", [`bg-${
|
|
4670
|
-
onClick:
|
|
4669
|
+
class: re(["circle-button", [`bg-${N.data.color}`]]),
|
|
4670
|
+
onClick: T[2] || (T[2] = (k) => N.$emit(R(U).EXPAND))
|
|
4671
4671
|
}, [
|
|
4672
4672
|
V(oe, {
|
|
4673
|
-
title:
|
|
4673
|
+
title: N.$t("expand")
|
|
4674
4674
|
}, {
|
|
4675
|
-
default:
|
|
4675
|
+
default: W(() => [
|
|
4676
4676
|
V(rl, {
|
|
4677
4677
|
class: "button-icon",
|
|
4678
4678
|
alt: "Expand task"
|
|
@@ -4681,11 +4681,11 @@ const rl = /* @__PURE__ */ H(zd, [["render", Yd]]), qd = { class: "icon rounded"
|
|
|
4681
4681
|
_: 1
|
|
4682
4682
|
}, 8, ["title"])
|
|
4683
4683
|
], 2)) : L("", !0),
|
|
4684
|
-
ae(
|
|
4684
|
+
ae(N.$slots, "badge-button-after", {}, void 0, !0)
|
|
4685
4685
|
])
|
|
4686
4686
|
], 38));
|
|
4687
4687
|
}
|
|
4688
|
-
}), so = /* @__PURE__ */ H(tf, [["__scopeId", "data-v-
|
|
4688
|
+
}), so = /* @__PURE__ */ H(tf, [["__scopeId", "data-v-a7581f1b"]]), al = Symbol("execution-injection-key"), uo = Symbol("subflows-executions-injection-key"), nf = {
|
|
4689
4689
|
name: "PencilIcon",
|
|
4690
4690
|
emits: ["click"],
|
|
4691
4691
|
props: {
|
|
@@ -4717,7 +4717,7 @@ function sf(e, t, n, l, o, i) {
|
|
|
4717
4717
|
height: n.size,
|
|
4718
4718
|
viewBox: "0 0 24 24"
|
|
4719
4719
|
}, [
|
|
4720
|
-
|
|
4720
|
+
v("path", rf, [
|
|
4721
4721
|
n.title ? (u(), d("title", af, M(n.title), 1)) : L("", !0)
|
|
4722
4722
|
])
|
|
4723
4723
|
], 8, of))
|
|
@@ -4755,7 +4755,7 @@ function pf(e, t, n, l, o, i) {
|
|
|
4755
4755
|
height: n.size,
|
|
4756
4756
|
viewBox: "0 0 24 24"
|
|
4757
4757
|
}, [
|
|
4758
|
-
|
|
4758
|
+
v("path", ff, [
|
|
4759
4759
|
n.title ? (u(), d("title", mf, M(n.title), 1)) : L("", !0)
|
|
4760
4760
|
])
|
|
4761
4761
|
], 8, df))
|
|
@@ -4793,7 +4793,7 @@ function Ef(e, t, n, l, o, i) {
|
|
|
4793
4793
|
height: n.size,
|
|
4794
4794
|
viewBox: "0 0 24 24"
|
|
4795
4795
|
}, [
|
|
4796
|
-
|
|
4796
|
+
v("path", yf, [
|
|
4797
4797
|
n.title ? (u(), d("title", vf, M(n.title), 1)) : L("", !0)
|
|
4798
4798
|
])
|
|
4799
4799
|
], 8, _f))
|
|
@@ -4831,7 +4831,7 @@ function Nf(e, t, n, l, o, i) {
|
|
|
4831
4831
|
height: n.size,
|
|
4832
4832
|
viewBox: "0 0 24 24"
|
|
4833
4833
|
}, [
|
|
4834
|
-
|
|
4834
|
+
v("path", Sf, [
|
|
4835
4835
|
n.title ? (u(), d("title", wf, M(n.title), 1)) : L("", !0)
|
|
4836
4836
|
])
|
|
4837
4837
|
], 8, Lf))
|
|
@@ -4869,7 +4869,7 @@ function Rf(e, t, n, l, o, i) {
|
|
|
4869
4869
|
height: n.size,
|
|
4870
4870
|
viewBox: "0 0 24 24"
|
|
4871
4871
|
}, [
|
|
4872
|
-
|
|
4872
|
+
v("path", $f, [
|
|
4873
4873
|
n.title ? (u(), d("title", Df, M(n.title), 1)) : L("", !0)
|
|
4874
4874
|
])
|
|
4875
4875
|
], 8, Of))
|
|
@@ -4907,7 +4907,7 @@ function Hf(e, t, n, l, o, i) {
|
|
|
4907
4907
|
height: n.size,
|
|
4908
4908
|
viewBox: "0 0 24 24"
|
|
4909
4909
|
}, [
|
|
4910
|
-
|
|
4910
|
+
v("path", Uf, [
|
|
4911
4911
|
n.title ? (u(), d("title", Ff, M(n.title), 1)) : L("", !0)
|
|
4912
4912
|
])
|
|
4913
4913
|
], 8, xf))
|
|
@@ -4945,7 +4945,7 @@ function Yf(e, t, n, l, o, i) {
|
|
|
4945
4945
|
height: n.size,
|
|
4946
4946
|
viewBox: "0 0 24 24"
|
|
4947
4947
|
}, [
|
|
4948
|
-
|
|
4948
|
+
v("path", jf, [
|
|
4949
4949
|
n.title ? (u(), d("title", Kf, M(n.title), 1)) : L("", !0)
|
|
4950
4950
|
])
|
|
4951
4951
|
], 8, Wf))
|
|
@@ -4983,7 +4983,7 @@ function em(e, t, n, l, o, i) {
|
|
|
4983
4983
|
height: n.size,
|
|
4984
4984
|
viewBox: "0 0 24 24"
|
|
4985
4985
|
}, [
|
|
4986
|
-
|
|
4986
|
+
v("path", Jf, [
|
|
4987
4987
|
n.title ? (u(), d("title", Qf, M(n.title), 1)) : L("", !0)
|
|
4988
4988
|
])
|
|
4989
4989
|
], 8, Zf))
|
|
@@ -5021,7 +5021,7 @@ function rm(e, t, n, l, o, i) {
|
|
|
5021
5021
|
height: n.size,
|
|
5022
5022
|
viewBox: "0 0 24 24"
|
|
5023
5023
|
}, [
|
|
5024
|
-
|
|
5024
|
+
v("path", im, [
|
|
5025
5025
|
n.title ? (u(), d("title", om, M(n.title), 1)) : L("", !0)
|
|
5026
5026
|
])
|
|
5027
5027
|
], 8, lm))
|
|
@@ -5043,18 +5043,18 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5043
5043
|
playgroundReadyToStart: { type: Boolean }
|
|
5044
5044
|
},
|
|
5045
5045
|
setup(e, { emit: t }) {
|
|
5046
|
-
const n = e, l = t, o = Rn(al), i = Rn(uo), r =
|
|
5046
|
+
const n = e, l = t, o = Rn(al), i = Rn(uo), r = G(() => n.data.color ?? "primary"), a = G(() => Re.afterLastDot(n.id)), s = G(() => {
|
|
5047
5047
|
const k = n.data.executionId;
|
|
5048
5048
|
if (k)
|
|
5049
5049
|
return k === o?.value?.id ? o?.value : Object.values(i?.value || {}).find((g) => g.id === k);
|
|
5050
|
-
}), c =
|
|
5050
|
+
}), c = G(() => s.value && s.value.taskRunList ? s.value.taskRunList : []), m = G(() => c.value.filter(
|
|
5051
5051
|
(k) => k.taskId === Re.afterLastDot(n.data.node.uid)
|
|
5052
|
-
)), y =
|
|
5052
|
+
)), y = G(() => {
|
|
5053
5053
|
if (!m.value?.length)
|
|
5054
5054
|
return null;
|
|
5055
5055
|
if (m.value.length === 1)
|
|
5056
5056
|
return m.value[0].state.current;
|
|
5057
|
-
const k = m.value.map((
|
|
5057
|
+
const k = m.value.map((A) => A.state.current), g = [
|
|
5058
5058
|
_e.FAILED,
|
|
5059
5059
|
_e.KILLED,
|
|
5060
5060
|
_e.WARNING,
|
|
@@ -5065,13 +5065,13 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5065
5065
|
_e.RESTARTED,
|
|
5066
5066
|
_e.CREATED
|
|
5067
5067
|
];
|
|
5068
|
-
return k.map((
|
|
5069
|
-
}), h =
|
|
5068
|
+
return k.map((A) => [g.indexOf(A[1]), A]).sort().map((A) => A[1])[0];
|
|
5069
|
+
}), h = G(() => ({
|
|
5070
5070
|
"execution-no-taskrun": !!(s.value && m.value && m.value.length === 0)
|
|
5071
|
-
})),
|
|
5071
|
+
})), b = G(() => ({
|
|
5072
5072
|
id: n.id,
|
|
5073
5073
|
type: String(n.data.node.task.type)
|
|
5074
|
-
})),
|
|
5074
|
+
})), N = G(() => {
|
|
5075
5075
|
if (n.data.node.type?.endsWith("SubflowGraphTask") && n.enableSubflowInteraction) {
|
|
5076
5076
|
const k = n.data.node.task.subflowId ?? n.data.node.task;
|
|
5077
5077
|
return {
|
|
@@ -5080,13 +5080,13 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5080
5080
|
namespace: k.namespace,
|
|
5081
5081
|
id: k.flowId,
|
|
5082
5082
|
executionId: s.value?.taskRunList.filter(
|
|
5083
|
-
(g) => g.
|
|
5083
|
+
(g) => g.id === n.data.node.taskRun.id && g.outputs?.executionId
|
|
5084
5084
|
)?.[0]?.outputs?.executionId
|
|
5085
5085
|
}
|
|
5086
5086
|
};
|
|
5087
5087
|
}
|
|
5088
5088
|
return n.data;
|
|
5089
|
-
}),
|
|
5089
|
+
}), T = G(() => {
|
|
5090
5090
|
if (y.value === _e.RUNNING)
|
|
5091
5091
|
return "task is running";
|
|
5092
5092
|
if (y.value === _e.SUCCESS)
|
|
@@ -5099,24 +5099,24 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5099
5099
|
return "task failed";
|
|
5100
5100
|
});
|
|
5101
5101
|
return (k, g) => (u(), d(Ee, null, [
|
|
5102
|
-
V(
|
|
5102
|
+
V(R(Me), {
|
|
5103
5103
|
type: "source",
|
|
5104
5104
|
position: k.sourcePosition
|
|
5105
5105
|
}, null, 8, ["position"]),
|
|
5106
5106
|
V(so, {
|
|
5107
5107
|
id: k.id,
|
|
5108
|
-
data:
|
|
5108
|
+
data: N.value,
|
|
5109
5109
|
state: y.value,
|
|
5110
5110
|
class: re(h.value),
|
|
5111
5111
|
icons: k.icons,
|
|
5112
5112
|
"icon-component": k.iconComponent,
|
|
5113
|
-
onShowDescription: g[6] || (g[6] = (
|
|
5114
|
-
onExpand: g[7] || (g[7] = (
|
|
5115
|
-
onOpenLink: g[8] || (g[8] = (
|
|
5116
|
-
onMouseover: g[9] || (g[9] = (
|
|
5117
|
-
onMouseleave: g[10] || (g[10] = (
|
|
5113
|
+
onShowDescription: g[6] || (g[6] = (E) => l(R(U).SHOW_DESCRIPTION, E)),
|
|
5114
|
+
onExpand: g[7] || (g[7] = (E) => l(R(U).EXPAND, b.value)),
|
|
5115
|
+
onOpenLink: g[8] || (g[8] = (E) => l(R(U).OPEN_LINK, E)),
|
|
5116
|
+
onMouseover: g[9] || (g[9] = (E) => l(R(U).MOUSE_OVER, E)),
|
|
5117
|
+
onMouseleave: g[10] || (g[10] = (E) => l(R(U).MOUSE_LEAVE))
|
|
5118
5118
|
}, {
|
|
5119
|
-
content:
|
|
5119
|
+
content: W(() => [
|
|
5120
5120
|
s.value ? (u(), X(Pd, {
|
|
5121
5121
|
key: 0,
|
|
5122
5122
|
execution: s.value,
|
|
@@ -5130,13 +5130,13 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5130
5130
|
key: 0,
|
|
5131
5131
|
type: "button",
|
|
5132
5132
|
class: "playground-button",
|
|
5133
|
-
onClick: g[0] || (g[0] = (
|
|
5133
|
+
onClick: g[0] || (g[0] = (E) => l(R(U).RUN_TASK, { task: k.data.node.task }))
|
|
5134
5134
|
}, [
|
|
5135
5135
|
V(oe, {
|
|
5136
5136
|
style: { display: "flex" },
|
|
5137
5137
|
title: k.$t("run task in playground")
|
|
5138
5138
|
}, {
|
|
5139
|
-
default:
|
|
5139
|
+
default: W(() => [
|
|
5140
5140
|
V(Bf, {
|
|
5141
5141
|
class: "button-play-icon",
|
|
5142
5142
|
alt: k.$t("run task in playground")
|
|
@@ -5154,24 +5154,24 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5154
5154
|
}, [
|
|
5155
5155
|
V(oe, {
|
|
5156
5156
|
style: { display: "flex" },
|
|
5157
|
-
title:
|
|
5157
|
+
title: T.value ? k.$t(T.value) : void 0
|
|
5158
5158
|
}, {
|
|
5159
|
-
default:
|
|
5160
|
-
y.value ===
|
|
5159
|
+
default: W(() => [
|
|
5160
|
+
y.value === R(_e).RUNNING ? (u(), X(hs, {
|
|
5161
5161
|
key: 0,
|
|
5162
|
-
alt:
|
|
5163
|
-
}, null, 8, ["alt"])) : y.value ===
|
|
5162
|
+
alt: T.value ? k.$t(T.value) : void 0
|
|
5163
|
+
}, null, 8, ["alt"])) : y.value === R(_e).SUCCESS ? (u(), X(co, {
|
|
5164
5164
|
key: 1,
|
|
5165
|
-
alt:
|
|
5166
|
-
}, null, 8, ["alt"])) : y.value ===
|
|
5165
|
+
alt: T.value ? k.$t(T.value) : void 0
|
|
5166
|
+
}, null, 8, ["alt"])) : y.value === R(_e).WARNING ? (u(), X(cl, {
|
|
5167
5167
|
key: 2,
|
|
5168
|
-
alt:
|
|
5169
|
-
}, null, 8, ["alt"])) : y.value ===
|
|
5168
|
+
alt: T.value ? k.$t(T.value) : void 0
|
|
5169
|
+
}, null, 8, ["alt"])) : y.value === R(_e).SKIPPED ? (u(), X(am, {
|
|
5170
5170
|
key: 3,
|
|
5171
|
-
alt:
|
|
5172
|
-
}, null, 8, ["alt"])) : y.value ===
|
|
5171
|
+
alt: T.value ? k.$t(T.value) : void 0
|
|
5172
|
+
}, null, 8, ["alt"])) : y.value === R(_e).FAILED ? (u(), X(Qt, {
|
|
5173
5173
|
key: 4,
|
|
5174
|
-
alt:
|
|
5174
|
+
alt: T.value ? k.$t(T.value) : void 0
|
|
5175
5175
|
}, null, 8, ["alt"])) : L("", !0)
|
|
5176
5176
|
]),
|
|
5177
5177
|
_: 1
|
|
@@ -5179,16 +5179,16 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5179
5179
|
], 4))
|
|
5180
5180
|
], 64)) : L("", !0)
|
|
5181
5181
|
]),
|
|
5182
|
-
"badge-button-before":
|
|
5182
|
+
"badge-button-before": W(() => [
|
|
5183
5183
|
k.data.node.task && k.data.node.task.runIf ? (u(), d("span", {
|
|
5184
5184
|
key: 0,
|
|
5185
5185
|
class: re(["circle-button", ["bg-warning"]]),
|
|
5186
|
-
onClick: g[1] || (g[1] = (
|
|
5186
|
+
onClick: g[1] || (g[1] = (E) => l(R(U).SHOW_CONDITION, { id: a.value, task: k.data.node.task, section: R(ut).TASKS }))
|
|
5187
5187
|
}, [
|
|
5188
5188
|
V(oe, {
|
|
5189
5189
|
title: k.$t("show task condition")
|
|
5190
5190
|
}, {
|
|
5191
|
-
default:
|
|
5191
|
+
default: W(() => [
|
|
5192
5192
|
V(Pf, {
|
|
5193
5193
|
class: "button-icon",
|
|
5194
5194
|
alt: "Show condition"
|
|
@@ -5200,12 +5200,12 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5200
5200
|
s.value ? (u(), d("span", {
|
|
5201
5201
|
key: 1,
|
|
5202
5202
|
class: re(["circle-button", [`bg-${r.value}`]]),
|
|
5203
|
-
onClick: g[2] || (g[2] = (
|
|
5203
|
+
onClick: g[2] || (g[2] = (E) => l(R(U).SHOW_LOGS, { id: a.value, execution: s.value, taskRuns: m.value }))
|
|
5204
5204
|
}, [
|
|
5205
5205
|
V(oe, {
|
|
5206
5206
|
title: k.$t("show task logs")
|
|
5207
5207
|
}, {
|
|
5208
|
-
default:
|
|
5208
|
+
default: W(() => [
|
|
5209
5209
|
V(Cf, {
|
|
5210
5210
|
class: "button-icon",
|
|
5211
5211
|
alt: "Show logs"
|
|
@@ -5217,12 +5217,12 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5217
5217
|
!s.value && !k.data.isReadOnly && k.data.isFlowable ? (u(), d("span", {
|
|
5218
5218
|
key: 2,
|
|
5219
5219
|
class: re(["circle-button", [`bg-${r.value}`]]),
|
|
5220
|
-
onClick: g[3] || (g[3] = (
|
|
5220
|
+
onClick: g[3] || (g[3] = (E) => l(R(U).ADD_ERROR, { task: k.data.node.task }))
|
|
5221
5221
|
}, [
|
|
5222
5222
|
V(oe, {
|
|
5223
5223
|
title: k.$t("add error handler")
|
|
5224
5224
|
}, {
|
|
5225
|
-
default:
|
|
5225
|
+
default: W(() => [
|
|
5226
5226
|
V(Tf, {
|
|
5227
5227
|
class: "button-icon",
|
|
5228
5228
|
alt: "Add error handler"
|
|
@@ -5234,12 +5234,12 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5234
5234
|
!s.value && !k.data.isReadOnly ? (u(), d("span", {
|
|
5235
5235
|
key: 3,
|
|
5236
5236
|
class: re(["circle-button", [`bg-${r.value}`]]),
|
|
5237
|
-
onClick: g[4] || (g[4] = (
|
|
5237
|
+
onClick: g[4] || (g[4] = (E) => l(R(U).EDIT, { task: k.data.node.task, section: R(ut).TASKS }))
|
|
5238
5238
|
}, [
|
|
5239
5239
|
V(oe, {
|
|
5240
5240
|
title: k.$t("edit")
|
|
5241
5241
|
}, {
|
|
5242
|
-
default:
|
|
5242
|
+
default: W(() => [
|
|
5243
5243
|
V(sl, {
|
|
5244
5244
|
class: "button-icon",
|
|
5245
5245
|
alt: "Edit task"
|
|
@@ -5251,12 +5251,12 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5251
5251
|
!s.value && !k.data.isReadOnly ? (u(), d("span", {
|
|
5252
5252
|
key: 4,
|
|
5253
5253
|
class: re(["circle-button", [`bg-${r.value}`]]),
|
|
5254
|
-
onClick: g[5] || (g[5] = (
|
|
5254
|
+
onClick: g[5] || (g[5] = (E) => l(R(U).DELETE, { id: a.value, section: R(ut).TASKS }))
|
|
5255
5255
|
}, [
|
|
5256
5256
|
V(oe, {
|
|
5257
5257
|
title: k.$t("delete")
|
|
5258
5258
|
}, {
|
|
5259
|
-
default:
|
|
5259
|
+
default: W(() => [
|
|
5260
5260
|
V(ul, {
|
|
5261
5261
|
class: "button-icon",
|
|
5262
5262
|
alt: "Delete task"
|
|
@@ -5268,13 +5268,13 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5268
5268
|
]),
|
|
5269
5269
|
_: 1
|
|
5270
5270
|
}, 8, ["id", "data", "state", "class", "icons", "icon-component"]),
|
|
5271
|
-
V(
|
|
5271
|
+
V(R(Me), {
|
|
5272
5272
|
type: "target",
|
|
5273
5273
|
position: k.targetPosition
|
|
5274
5274
|
}, null, 8, ["position"])
|
|
5275
5275
|
], 64));
|
|
5276
5276
|
}
|
|
5277
|
-
}), um = /* @__PURE__ */ H(sm, [["__scopeId", "data-v-
|
|
5277
|
+
}), um = /* @__PURE__ */ H(sm, [["__scopeId", "data-v-3bf9185b"]]), cm = {
|
|
5278
5278
|
name: "Task",
|
|
5279
5279
|
inheritAttrs: !1,
|
|
5280
5280
|
inject: {
|
|
@@ -5347,7 +5347,7 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5347
5347
|
}, dm = /* @__PURE__ */ Object.assign(cm, {
|
|
5348
5348
|
setup(e) {
|
|
5349
5349
|
return (t, n) => (u(), d(Ee, null, [
|
|
5350
|
-
V(
|
|
5350
|
+
V(R(Me), {
|
|
5351
5351
|
type: "source",
|
|
5352
5352
|
position: e.sourcePosition
|
|
5353
5353
|
}, null, 8, ["position"]),
|
|
@@ -5357,21 +5357,21 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5357
5357
|
color: t.color,
|
|
5358
5358
|
icons: e.icons,
|
|
5359
5359
|
"icon-component": e.iconComponent,
|
|
5360
|
-
onShowDescription: n[2] || (n[2] = (l) => t.forwardEvent(
|
|
5361
|
-
onExpand: n[3] || (n[3] = (l) => t.forwardEvent(
|
|
5360
|
+
onShowDescription: n[2] || (n[2] = (l) => t.forwardEvent(R(U).SHOW_DESCRIPTION, l)),
|
|
5361
|
+
onExpand: n[3] || (n[3] = (l) => t.forwardEvent(R(U).EXPAND, { id: e.id }))
|
|
5362
5362
|
}, Li({ _: 2 }, [
|
|
5363
5363
|
e.data.isReadOnly ? void 0 : {
|
|
5364
5364
|
name: "badge-button-before",
|
|
5365
|
-
fn:
|
|
5365
|
+
fn: W(() => [
|
|
5366
5366
|
t.execution ? L("", !0) : (u(), d("span", {
|
|
5367
5367
|
key: 0,
|
|
5368
5368
|
class: re(["circle-button", [`bg-${t.color}`]]),
|
|
5369
|
-
onClick: n[0] || (n[0] = (l) => t.$emit(
|
|
5369
|
+
onClick: n[0] || (n[0] = (l) => t.$emit(R(U).EDIT, { task: e.data.node.triggerDeclaration, section: R(ut).TRIGGERS }))
|
|
5370
5370
|
}, [
|
|
5371
5371
|
V(oe, {
|
|
5372
5372
|
title: t.$t("edit")
|
|
5373
5373
|
}, {
|
|
5374
|
-
default:
|
|
5374
|
+
default: W(() => [
|
|
5375
5375
|
V(sl, {
|
|
5376
5376
|
class: "button-icon",
|
|
5377
5377
|
alt: "Edit task"
|
|
@@ -5383,12 +5383,12 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5383
5383
|
t.execution ? L("", !0) : (u(), d("span", {
|
|
5384
5384
|
key: 1,
|
|
5385
5385
|
class: re(["circle-button", [`bg-${t.color}`]]),
|
|
5386
|
-
onClick: n[1] || (n[1] = (l) => t.$emit(
|
|
5386
|
+
onClick: n[1] || (n[1] = (l) => t.$emit(R(U).DELETE, { id: t.triggerId, section: R(ut).TRIGGERS }))
|
|
5387
5387
|
}, [
|
|
5388
5388
|
V(oe, {
|
|
5389
5389
|
title: t.$t("delete")
|
|
5390
5390
|
}, {
|
|
5391
|
-
default:
|
|
5391
|
+
default: W(() => [
|
|
5392
5392
|
V(ul, {
|
|
5393
5393
|
class: "button-icon",
|
|
5394
5394
|
alt: "Delete task"
|
|
@@ -5401,7 +5401,7 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5401
5401
|
key: "0"
|
|
5402
5402
|
}
|
|
5403
5403
|
]), 1032, ["id", "data", "color", "icons", "icon-component"]),
|
|
5404
|
-
V(
|
|
5404
|
+
V(R(Me), {
|
|
5405
5405
|
type: "target",
|
|
5406
5406
|
position: e.targetPosition
|
|
5407
5407
|
}, null, 8, ["position"])
|
|
@@ -5439,7 +5439,7 @@ function _m(e, t, n, l, o, i) {
|
|
|
5439
5439
|
height: n.size,
|
|
5440
5440
|
viewBox: "0 0 24 24"
|
|
5441
5441
|
}, [
|
|
5442
|
-
|
|
5442
|
+
v("path", gm, [
|
|
5443
5443
|
n.title ? (u(), d("title", hm, M(n.title), 1)) : L("", !0)
|
|
5444
5444
|
])
|
|
5445
5445
|
], 8, pm))
|
|
@@ -5493,29 +5493,29 @@ const ym = /* @__PURE__ */ H(fm, [["render", _m]]), vm = { class: "collapsed-clu
|
|
|
5493
5493
|
__name: "CollapsedClusterNode",
|
|
5494
5494
|
setup(e) {
|
|
5495
5495
|
return (t, n) => (u(), d(Ee, null, [
|
|
5496
|
-
V(
|
|
5496
|
+
V(R(Me), {
|
|
5497
5497
|
type: "source",
|
|
5498
5498
|
position: e.sourcePosition
|
|
5499
5499
|
}, null, 8, ["position"]),
|
|
5500
|
-
|
|
5501
|
-
|
|
5500
|
+
v("div", vm, [
|
|
5501
|
+
v("span", Em, [
|
|
5502
5502
|
e.data.iconComponent ? (u(), X(mt(e.data.iconComponent), {
|
|
5503
5503
|
key: 0,
|
|
5504
5504
|
class: re(`text-${e.data.color} me-2`)
|
|
5505
5505
|
}, null, 8, ["class"])) : L("", !0),
|
|
5506
|
-
Ze(" " + M(
|
|
5506
|
+
Ze(" " + M(R(Re).afterLastDot(e.id)), 1)
|
|
5507
5507
|
]),
|
|
5508
|
-
|
|
5508
|
+
v("div", Cm, [
|
|
5509
5509
|
ae(t.$slots, "badge-button-before", {}, void 0, !0),
|
|
5510
5510
|
t.expandable ? (u(), d("span", {
|
|
5511
5511
|
key: 0,
|
|
5512
5512
|
class: re(["circle-button", [`bg-${e.data.color}`]]),
|
|
5513
|
-
onClick: n[0] || (n[0] = (l) => t.$emit(
|
|
5513
|
+
onClick: n[0] || (n[0] = (l) => t.$emit(R(U).EXPAND, { id: e.id }))
|
|
5514
5514
|
}, [
|
|
5515
5515
|
V(oe, {
|
|
5516
5516
|
title: t.$t("expand")
|
|
5517
5517
|
}, {
|
|
5518
|
-
default:
|
|
5518
|
+
default: W(() => [
|
|
5519
5519
|
V(rl, {
|
|
5520
5520
|
class: "button-icon",
|
|
5521
5521
|
alt: "Expand task"
|
|
@@ -5527,7 +5527,7 @@ const ym = /* @__PURE__ */ H(fm, [["render", _m]]), vm = { class: "collapsed-clu
|
|
|
5527
5527
|
ae(t.$slots, "badge-button-after", {}, void 0, !0)
|
|
5528
5528
|
])
|
|
5529
5529
|
]),
|
|
5530
|
-
V(
|
|
5530
|
+
V(R(Me), {
|
|
5531
5531
|
type: "target",
|
|
5532
5532
|
position: e.targetPosition
|
|
5533
5533
|
}, null, 8, ["position"])
|
|
@@ -5545,15 +5545,15 @@ const ym = /* @__PURE__ */ H(fm, [["render", _m]]), vm = { class: "collapsed-clu
|
|
|
5545
5545
|
};
|
|
5546
5546
|
function Nm(e, t, n, l, o, i) {
|
|
5547
5547
|
return u(), d("svg", wm, [...t[0] || (t[0] = [
|
|
5548
|
-
|
|
5549
|
-
|
|
5548
|
+
v("g", { "clip-path": "url(#clip0_1111_7266)" }, [
|
|
5549
|
+
v("path", {
|
|
5550
5550
|
d: "M1.97852 2.63349C1.97852 2.26366 2.27832 1.96387 2.64814 1.96387L13.3621 1.96387C13.7319 1.96387 14.0317 2.26366 14.0317 2.63349L14.0317 13.3475C14.0317 13.7173 13.7319 14.0171 13.3621 14.0171L2.64814 14.0171C2.27832 14.0171 1.97852 13.7173 1.97852 13.3475L1.97852 2.63349ZM3.31776 8.6601L3.31776 12.6778L12.6925 12.6778L12.6925 8.6601L10.014 8.6601L10.014 7.32085L12.6925 7.32085L12.6925 3.30311L3.31776 3.30311L3.31776 7.32086L5.99626 7.32085L5.99626 8.6601L3.31776 8.6601ZM5.99626 5.98161L8.00513 3.97274L10.014 5.98161L8.67475 5.98161L8.67475 9.99935L10.014 9.99935L8.00513 12.0082L5.99626 9.99935L7.3355 9.99935L7.3355 5.98161L5.99626 5.98161Z",
|
|
5551
5551
|
fill: "currentColor"
|
|
5552
5552
|
})
|
|
5553
5553
|
], -1),
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5554
|
+
v("defs", null, [
|
|
5555
|
+
v("clipPath", { id: "clip0_1111_7266" }, [
|
|
5556
|
+
v("rect", {
|
|
5557
5557
|
width: "16",
|
|
5558
5558
|
height: "16",
|
|
5559
5559
|
fill: "currentColor",
|
|
@@ -5575,15 +5575,15 @@ const Tm = /* @__PURE__ */ H(Sm, [["render", Nm], ["__scopeId", "data-v-084c51e6
|
|
|
5575
5575
|
};
|
|
5576
5576
|
function Om(e, t, n, l, o, i) {
|
|
5577
5577
|
return u(), d("svg", Im, [...t[0] || (t[0] = [
|
|
5578
|
-
|
|
5579
|
-
|
|
5578
|
+
v("g", { "clip-path": "url(#clip0_796_3996)" }, [
|
|
5579
|
+
v("path", {
|
|
5580
5580
|
d: "M13.367 1.979C13.7368 1.979 14.0366 2.27881 14.0366 2.64863V13.3626C14.0366 13.7324 13.7368 14.0322 13.367 14.0322H2.65302C2.2832 14.0322 1.9834 13.7324 1.9834 13.3626V2.64863C1.9834 2.27881 2.2832 1.979 2.65302 1.979H13.367ZM7.34039 3.31825H3.32265V12.693H7.34039V10.0145H8.67963V12.693H12.6974V3.31825H8.67963V5.99675H7.34039V3.31825ZM10.0189 5.99675L12.0278 8.00562L10.0189 10.0145V8.67524H6.00114V10.0145L3.99227 8.00562L6.00114 5.99675V7.33599H10.0189V5.99675Z",
|
|
5581
5581
|
fill: "currentColor"
|
|
5582
5582
|
})
|
|
5583
5583
|
], -1),
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5584
|
+
v("defs", null, [
|
|
5585
|
+
v("clipPath", { id: "clip0_796_3996" }, [
|
|
5586
|
+
v("rect", {
|
|
5587
5587
|
width: "16",
|
|
5588
5588
|
height: "16",
|
|
5589
5589
|
fill: "currentColor"
|
|
@@ -5624,7 +5624,7 @@ function xm(e, t, n, l, o, i) {
|
|
|
5624
5624
|
height: n.size,
|
|
5625
5625
|
viewBox: "0 0 24 24"
|
|
5626
5626
|
}, [
|
|
5627
|
-
|
|
5627
|
+
v("path", Mm, [
|
|
5628
5628
|
n.title ? (u(), d("title", Vm, M(n.title), 1)) : L("", !0)
|
|
5629
5629
|
])
|
|
5630
5630
|
], 8, Pm))
|
|
@@ -6244,87 +6244,87 @@ const R1 = {
|
|
|
6244
6244
|
U.SHOW_CONDITION
|
|
6245
6245
|
],
|
|
6246
6246
|
setup(e, { emit: t }) {
|
|
6247
|
-
const n = e, l = te(!1), o = te(), { getNodes: i, onNodeDrag: r, onNodeDragStart: a, onNodeDragStop: s, fitView: c, setElements: m, vueFlowRef: y } = Ni(n.id), h = te({}),
|
|
6248
|
-
Ll(al,
|
|
6247
|
+
const n = e, l = te(!1), o = te(), { getNodes: i, onNodeDrag: r, onNodeDragStart: a, onNodeDragStop: s, fitView: c, setElements: m, vueFlowRef: y } = Ni(n.id), h = te({}), b = te([]), N = te(/* @__PURE__ */ new Set()), T = te([]), { capture: k } = D1();
|
|
6248
|
+
Ll(al, G(() => n.execution)), Ll(uo, G(() => n.subflowsExecutions));
|
|
6249
6249
|
const g = t;
|
|
6250
6250
|
Mt(() => {
|
|
6251
|
-
|
|
6251
|
+
E();
|
|
6252
6252
|
}), Ue(() => n.flowGraph, () => {
|
|
6253
|
-
|
|
6253
|
+
E();
|
|
6254
6254
|
}), Ue(() => n.isHorizontal, () => {
|
|
6255
|
-
|
|
6255
|
+
E();
|
|
6256
6256
|
});
|
|
6257
|
-
const
|
|
6257
|
+
const E = () => {
|
|
6258
6258
|
Xo(n.id), dn(() => {
|
|
6259
6259
|
g("loading", !0);
|
|
6260
|
-
const B =
|
|
6261
|
-
|
|
6262
|
-
const
|
|
6260
|
+
const B = N.value;
|
|
6261
|
+
N.value = /* @__PURE__ */ new Set(), b.value = [], h.value = {}, B.forEach((J) => Y(El + J, !1, !1));
|
|
6262
|
+
const P = Zo(
|
|
6263
6263
|
n.id,
|
|
6264
6264
|
n.flowId,
|
|
6265
6265
|
n.namespace,
|
|
6266
6266
|
n.flowGraph,
|
|
6267
6267
|
n.source,
|
|
6268
|
-
|
|
6268
|
+
b.value,
|
|
6269
6269
|
n.isHorizontal,
|
|
6270
6270
|
h.value,
|
|
6271
|
-
|
|
6272
|
-
|
|
6271
|
+
N.value,
|
|
6272
|
+
T.value,
|
|
6273
6273
|
n.isReadOnly,
|
|
6274
6274
|
n.isAllowedEdit,
|
|
6275
6275
|
n.enableSubflowInteraction
|
|
6276
6276
|
);
|
|
6277
|
-
|
|
6277
|
+
P && (m(P), c(), g("loading", !1));
|
|
6278
6278
|
});
|
|
6279
|
-
},
|
|
6280
|
-
l.value || Jo(n.id, B.uid).forEach((
|
|
6281
|
-
|
|
6279
|
+
}, A = (B) => {
|
|
6280
|
+
l.value || Jo(n.id, B.uid).forEach((P) => {
|
|
6281
|
+
P?.type === "task" && (P.style = { ...P.style, outline: "0.5px solid " + Ve("--bs-gray-900") }, P.class = "rounded-3");
|
|
6282
6282
|
});
|
|
6283
6283
|
}, _ = () => {
|
|
6284
|
-
|
|
6285
|
-
},
|
|
6284
|
+
D();
|
|
6285
|
+
}, D = () => {
|
|
6286
6286
|
i.value.filter((B) => B.type === "task" || B.type === "trigger").forEach((B) => {
|
|
6287
6287
|
B.style = { ...B.style, opacity: "1", outline: "none" }, B.class = "";
|
|
6288
6288
|
});
|
|
6289
6289
|
};
|
|
6290
6290
|
a((B) => {
|
|
6291
|
-
l.value = !0,
|
|
6291
|
+
l.value = !0, D(), B.node.style = { ...B.node.style, zIndex: 1976 }, o.value = B.node.position;
|
|
6292
6292
|
}), s((B) => {
|
|
6293
6293
|
if (l.value = !1, B.intersections && S(B.intersections, B.node) === null) {
|
|
6294
|
-
const
|
|
6294
|
+
const P = B.node, J = B.intersections.find((z) => z.type === "task");
|
|
6295
6295
|
if (J)
|
|
6296
6296
|
try {
|
|
6297
6297
|
n.source && g("swapped-task", {
|
|
6298
6298
|
newSource: kr({
|
|
6299
6299
|
source: n.source,
|
|
6300
6300
|
section: "tasks",
|
|
6301
|
-
key1: Re.afterLastDot(
|
|
6301
|
+
key1: Re.afterLastDot(P.id) ?? "",
|
|
6302
6302
|
key2: Re.afterLastDot(J.id) ?? ""
|
|
6303
6303
|
}),
|
|
6304
|
-
swappedTasks: [
|
|
6304
|
+
swappedTasks: [P.id, J.id]
|
|
6305
6305
|
});
|
|
6306
6306
|
} catch (z) {
|
|
6307
6307
|
g("message", {
|
|
6308
6308
|
variant: "error",
|
|
6309
6309
|
title: "cannot swap tasks",
|
|
6310
6310
|
message: `${z.message}, ${z.messageOptions}`
|
|
6311
|
-
}),
|
|
6311
|
+
}), P.position = o.value;
|
|
6312
6312
|
}
|
|
6313
6313
|
else
|
|
6314
|
-
|
|
6314
|
+
P.position = o.value;
|
|
6315
6315
|
} else
|
|
6316
6316
|
B.node.position = o.value;
|
|
6317
|
-
|
|
6317
|
+
D(), B.node.style = { ...B.node.style, zIndex: 5 }, o.value = null;
|
|
6318
6318
|
});
|
|
6319
|
-
const
|
|
6319
|
+
const I = G(() => n.flowGraph?.clusters ? n.flowGraph.clusters.filter((B) => B.cluster.type.endsWith("SubflowGraphCluster")).map((B) => B.cluster.taskNode.uid + ".") : []);
|
|
6320
6320
|
r((B) => {
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
}), B.intersections && !S(B.intersections, B.node) && B.intersections.filter((
|
|
6324
|
-
|
|
6321
|
+
D(), i.value.filter((P) => P.id !== B.node.id).forEach((P) => {
|
|
6322
|
+
P.type === "trigger" || P.type === "task" && (P.id.startsWith(B.node.id + ".") || B.node.id.startsWith(P.id + ".")) || I?.value?.some((J) => P.id.startsWith(J)) ? P.style = { ...P.style, opacity: "0.5" } : P.style = { ...P.style, opacity: "1" };
|
|
6323
|
+
}), B.intersections && !S(B.intersections, B.node) && B.intersections.filter((P) => P.type === "task").length === 1 && (B.intersections.forEach((P) => {
|
|
6324
|
+
P.type === "task" && (P.style = { ...P.style, outline: "0.5px solid " + Ve("--bs-primary") }, P.class = "rounded-3");
|
|
6325
6325
|
}), B.node.style = { ...B.node.style, outline: "0.5px solid " + Ve("--bs-primary") }, B.node.class = "rounded-3");
|
|
6326
6326
|
});
|
|
6327
|
-
const S = (B,
|
|
6327
|
+
const S = (B, P) => {
|
|
6328
6328
|
const J = B.filter((z) => z.type === "task").map((z) => Re.afterLastDot(z.id));
|
|
6329
6329
|
if (J.length > 1)
|
|
6330
6330
|
return "toomuchtaskerror";
|
|
@@ -6333,7 +6333,7 @@ const R1 = {
|
|
|
6333
6333
|
source: n.source,
|
|
6334
6334
|
sections: ["tasks", "triggers"],
|
|
6335
6335
|
key1: Re.afterLastDot(J[0]) ?? "",
|
|
6336
|
-
key2: Re.afterLastDot(
|
|
6336
|
+
key2: Re.afterLastDot(P.id) ?? "",
|
|
6337
6337
|
keyName: "id"
|
|
6338
6338
|
}))
|
|
6339
6339
|
return "parentchildrenerror";
|
|
@@ -6341,9 +6341,9 @@ const R1 = {
|
|
|
6341
6341
|
return "parentchildrenerror";
|
|
6342
6342
|
}
|
|
6343
6343
|
return B.filter((z) => z.type === "trigger").length > 0 ? "triggererror" : null;
|
|
6344
|
-
}, Y = (B,
|
|
6344
|
+
}, Y = (B, P, J = !1) => {
|
|
6345
6345
|
const z = n.flowGraph.clusters.find((Se) => Se.cluster.uid.endsWith(B)), je = B.replace(El, "");
|
|
6346
|
-
|
|
6346
|
+
N.value.add(je), b.value = b.value.concat(z.nodes.filter((Se) => Se !== je || J)), b.value = b.value.concat([z.cluster.uid]), h.value = {
|
|
6347
6347
|
...h.value,
|
|
6348
6348
|
[z.cluster.uid]: je,
|
|
6349
6349
|
[z.start]: je,
|
|
@@ -6351,7 +6351,7 @@ const R1 = {
|
|
|
6351
6351
|
};
|
|
6352
6352
|
for (let Se of z.nodes)
|
|
6353
6353
|
n.flowGraph.clusters.map((it) => it.cluster.uid).includes(Se) && Y(Se, !1, !0);
|
|
6354
|
-
|
|
6354
|
+
P && E();
|
|
6355
6355
|
}, Z = (B) => {
|
|
6356
6356
|
if ([
|
|
6357
6357
|
"io.kestra.core.tasks.flows.Flow",
|
|
@@ -6363,7 +6363,7 @@ const R1 = {
|
|
|
6363
6363
|
g("expand-subflow", [...n.expandedSubflows, B.id]);
|
|
6364
6364
|
return;
|
|
6365
6365
|
}
|
|
6366
|
-
h.value = {},
|
|
6366
|
+
h.value = {}, b.value = [], T.value = [], N.value.delete(B.id), N.value.forEach((J) => Y(J, !1, !1)), E();
|
|
6367
6367
|
}, pe = document.getElementsByTagName("html")[0].className.indexOf("dark") >= 0, Te = te(!0), ue = te(!1), et = () => ue.value = !ue.value;
|
|
6368
6368
|
function gt(B) {
|
|
6369
6369
|
if (!y.value) {
|
|
@@ -6372,98 +6372,98 @@ const R1 = {
|
|
|
6372
6372
|
}
|
|
6373
6373
|
Te.value = !1, k(y.value, { type: B, shouldDownload: !0 }).then(() => Te.value = !0).finally(() => ue.value = !1);
|
|
6374
6374
|
}
|
|
6375
|
-
return (B,
|
|
6375
|
+
return (B, P) => (u(), X(R(Pr), {
|
|
6376
6376
|
id: e.id,
|
|
6377
|
-
"default-marker-color":
|
|
6377
|
+
"default-marker-color": R(Ve)("--bs-cyan"),
|
|
6378
6378
|
"fit-view-on-init": "",
|
|
6379
6379
|
"nodes-draggable": !1,
|
|
6380
6380
|
"nodes-connectable": !1,
|
|
6381
6381
|
"elevate-nodes-on-select": !1,
|
|
6382
6382
|
"elevate-edges-on-select": !1
|
|
6383
6383
|
}, {
|
|
6384
|
-
"node-cluster":
|
|
6384
|
+
"node-cluster": W((J) => [
|
|
6385
6385
|
V(od, K(J, {
|
|
6386
|
-
onCollapse:
|
|
6386
|
+
onCollapse: P[0] || (P[0] = (z) => Y(z, !0))
|
|
6387
6387
|
}), null, 16)
|
|
6388
6388
|
]),
|
|
6389
|
-
"node-dot":
|
|
6389
|
+
"node-dot": W((J) => [
|
|
6390
6390
|
V(pd, Lr(Sr(J)), null, 16)
|
|
6391
6391
|
]),
|
|
6392
|
-
"node-task":
|
|
6392
|
+
"node-task": W((J) => [
|
|
6393
6393
|
V(um, K(J, {
|
|
6394
6394
|
icons: e.icons,
|
|
6395
6395
|
"icon-component": e.iconComponent,
|
|
6396
6396
|
"playground-enabled": e.playgroundEnabled,
|
|
6397
6397
|
"playground-ready-to-start": e.playgroundReadyToStart,
|
|
6398
|
-
onEdit:
|
|
6399
|
-
onDelete:
|
|
6400
|
-
onRunTask:
|
|
6401
|
-
onExpand:
|
|
6402
|
-
onOpenLink:
|
|
6403
|
-
onShowLogs:
|
|
6404
|
-
onShowDescription:
|
|
6405
|
-
onShowCondition:
|
|
6406
|
-
onMouseover:
|
|
6407
|
-
onMouseleave:
|
|
6408
|
-
onAddError:
|
|
6398
|
+
onEdit: P[1] || (P[1] = (z) => g(R(U).EDIT, z)),
|
|
6399
|
+
onDelete: P[2] || (P[2] = (z) => g(R(U).DELETE, z)),
|
|
6400
|
+
onRunTask: P[3] || (P[3] = (z) => g(R(U).RUN_TASK, z)),
|
|
6401
|
+
onExpand: P[4] || (P[4] = (z) => Z(z)),
|
|
6402
|
+
onOpenLink: P[5] || (P[5] = (z) => g(R(U).OPEN_LINK, z)),
|
|
6403
|
+
onShowLogs: P[6] || (P[6] = (z) => g(R(U).SHOW_LOGS, z)),
|
|
6404
|
+
onShowDescription: P[7] || (P[7] = (z) => g(R(U).SHOW_DESCRIPTION, z)),
|
|
6405
|
+
onShowCondition: P[8] || (P[8] = (z) => g(R(U).SHOW_CONDITION, z)),
|
|
6406
|
+
onMouseover: P[9] || (P[9] = (z) => A(z)),
|
|
6407
|
+
onMouseleave: P[10] || (P[10] = (z) => _()),
|
|
6408
|
+
onAddError: P[11] || (P[11] = (z) => g("on-add-flowable-error", z)),
|
|
6409
6409
|
"enable-subflow-interaction": e.enableSubflowInteraction
|
|
6410
6410
|
}), null, 16, ["icons", "icon-component", "playground-enabled", "playground-ready-to-start", "enable-subflow-interaction"])
|
|
6411
6411
|
]),
|
|
6412
|
-
"node-trigger":
|
|
6412
|
+
"node-trigger": W((J) => [
|
|
6413
6413
|
V(dm, K(J, {
|
|
6414
6414
|
icons: e.icons,
|
|
6415
6415
|
"icon-component": e.iconComponent,
|
|
6416
6416
|
"is-read-only": e.isReadOnly,
|
|
6417
6417
|
"is-allowed-edit": e.isAllowedEdit,
|
|
6418
|
-
onDelete:
|
|
6419
|
-
onEdit:
|
|
6420
|
-
onShowDescription:
|
|
6418
|
+
onDelete: P[12] || (P[12] = (z) => g(R(U).DELETE, z)),
|
|
6419
|
+
onEdit: P[13] || (P[13] = (z) => g(R(U).EDIT, z)),
|
|
6420
|
+
onShowDescription: P[14] || (P[14] = (z) => g(R(U).SHOW_DESCRIPTION, z))
|
|
6421
6421
|
}), null, 16, ["icons", "icon-component", "is-read-only", "is-allowed-edit"])
|
|
6422
6422
|
]),
|
|
6423
|
-
"node-collapsedcluster":
|
|
6423
|
+
"node-collapsedcluster": W((J) => [
|
|
6424
6424
|
V(Lm, K(J, {
|
|
6425
|
-
onExpand:
|
|
6425
|
+
onExpand: P[15] || (P[15] = (z) => Z(z))
|
|
6426
6426
|
}), null, 16)
|
|
6427
6427
|
]),
|
|
6428
|
-
"edge-edge":
|
|
6428
|
+
"edge-edge": W((J) => [
|
|
6429
6429
|
V(Nd, K(J, {
|
|
6430
6430
|
"yaml-source": e.source,
|
|
6431
|
-
onAddTask:
|
|
6431
|
+
onAddTask: P[16] || (P[16] = (z) => g(R(U).ADD_TASK, z)),
|
|
6432
6432
|
"is-read-only": e.isReadOnly,
|
|
6433
6433
|
"is-allowed-edit": e.isAllowedEdit
|
|
6434
6434
|
}), null, 16, ["yaml-source", "is-read-only", "is-allowed-edit"])
|
|
6435
6435
|
]),
|
|
6436
|
-
default:
|
|
6437
|
-
V(
|
|
6438
|
-
"pattern-color": pe ?
|
|
6436
|
+
default: W(() => [
|
|
6437
|
+
V(R(Yc), {
|
|
6438
|
+
"pattern-color": pe ? R(Ve)("--bs-grey-500") : R(Ve)("--bs-grey-300")
|
|
6439
6439
|
}, null, 8, ["pattern-color"]),
|
|
6440
|
-
Te.value ? (u(), X(
|
|
6440
|
+
Te.value ? (u(), X(R(Mr), {
|
|
6441
6441
|
key: 0,
|
|
6442
6442
|
"show-interactive": !1
|
|
6443
6443
|
}, {
|
|
6444
|
-
default:
|
|
6445
|
-
e.toggleOrientationButton ? (u(), X(
|
|
6444
|
+
default: W(() => [
|
|
6445
|
+
e.toggleOrientationButton ? (u(), X(R(wl), {
|
|
6446
6446
|
key: 0,
|
|
6447
|
-
onClick:
|
|
6447
|
+
onClick: P[17] || (P[17] = (J) => g("toggle-orientation", J))
|
|
6448
6448
|
}, {
|
|
6449
|
-
default:
|
|
6449
|
+
default: W(() => [
|
|
6450
6450
|
(u(), X(mt(e.isHorizontal ? $m : Tm)))
|
|
6451
6451
|
]),
|
|
6452
6452
|
_: 1
|
|
6453
6453
|
})) : L("", !0),
|
|
6454
|
-
V(
|
|
6455
|
-
default:
|
|
6454
|
+
V(R(wl), { onClick: et }, {
|
|
6455
|
+
default: W(() => [
|
|
6456
6456
|
V(Um)
|
|
6457
6457
|
]),
|
|
6458
6458
|
_: 1
|
|
6459
6459
|
}),
|
|
6460
6460
|
ue.value ? (u(), d("ul", R1, [
|
|
6461
|
-
|
|
6462
|
-
onClick:
|
|
6461
|
+
v("li", {
|
|
6462
|
+
onClick: P[18] || (P[18] = (J) => gt("jpeg")),
|
|
6463
6463
|
class: "item"
|
|
6464
6464
|
}, " Export as .JPEG "),
|
|
6465
|
-
|
|
6466
|
-
onClick:
|
|
6465
|
+
v("li", {
|
|
6466
|
+
onClick: P[19] || (P[19] = (J) => gt("png")),
|
|
6467
6467
|
class: "item"
|
|
6468
6468
|
}, " Export as .PNG ")
|
|
6469
6469
|
])) : L("", !0)
|
|
@@ -6474,7 +6474,7 @@ const R1 = {
|
|
|
6474
6474
|
_: 1
|
|
6475
6475
|
}, 8, ["id", "default-marker-color"]));
|
|
6476
6476
|
}
|
|
6477
|
-
}),
|
|
6477
|
+
}), A_ = /* @__PURE__ */ H(P1, [["__scopeId", "data-v-f889d0c2"]]), M1 = {
|
|
6478
6478
|
name: "ContentCopyIcon",
|
|
6479
6479
|
emits: ["click"],
|
|
6480
6480
|
props: {
|
|
@@ -6506,7 +6506,7 @@ function H1(e, t, n, l, o, i) {
|
|
|
6506
6506
|
height: n.size,
|
|
6507
6507
|
viewBox: "0 0 24 24"
|
|
6508
6508
|
}, [
|
|
6509
|
-
|
|
6509
|
+
v("path", U1, [
|
|
6510
6510
|
n.title ? (u(), d("title", F1, M(n.title), 1)) : L("", !0)
|
|
6511
6511
|
])
|
|
6512
6512
|
], 8, x1))
|
|
@@ -6530,7 +6530,7 @@ const B1 = /* @__PURE__ */ H(M1, [["render", H1]]), z1 = {
|
|
|
6530
6530
|
const t = {
|
|
6531
6531
|
ContentCopy: qt(B1),
|
|
6532
6532
|
Check: qt(co)
|
|
6533
|
-
}, n = e, l = te(!1), o = te(), i = qt(t.ContentCopy.value), r = te(), a = te(), s =
|
|
6533
|
+
}, n = e, l = te(!1), o = te(), i = qt(t.ContentCopy.value), r = te(), a = te(), s = G(() => n.highlighter.codeToHtml(n.code, {
|
|
6534
6534
|
lang: n.language,
|
|
6535
6535
|
theme: n.theme
|
|
6536
6536
|
}));
|
|
@@ -6549,11 +6549,11 @@ const B1 = /* @__PURE__ */ H(M1, [["render", H1]]), z1 = {
|
|
|
6549
6549
|
return (y, h) => (u(), d("div", {
|
|
6550
6550
|
class: "code-block",
|
|
6551
6551
|
onMouseover: c,
|
|
6552
|
-
onMouseleave: h[0] || (h[0] = (
|
|
6552
|
+
onMouseleave: h[0] || (h[0] = (b) => l.value = !1)
|
|
6553
6553
|
}, [
|
|
6554
6554
|
y.language && !l.value ? (u(), d("div", z1, M(y.language), 1)) : L("", !0),
|
|
6555
6555
|
l.value ? (u(), d(Ee, { key: 1 }, [
|
|
6556
|
-
|
|
6556
|
+
v("button", {
|
|
6557
6557
|
ref_key: "copyButton",
|
|
6558
6558
|
ref: r,
|
|
6559
6559
|
class: "copy"
|
|
@@ -6568,13 +6568,13 @@ const B1 = /* @__PURE__ */ H(M1, [["render", H1]]), z1 = {
|
|
|
6568
6568
|
role: "tooltip"
|
|
6569
6569
|
}, [...h[1] || (h[1] = [
|
|
6570
6570
|
Ze(" Copied! ", -1),
|
|
6571
|
-
|
|
6571
|
+
v("div", {
|
|
6572
6572
|
id: "arrow",
|
|
6573
6573
|
"data-popper-arrow": ""
|
|
6574
6574
|
}, null, -1)
|
|
6575
6575
|
])], 512)) : L("", !0)
|
|
6576
6576
|
], 64)) : L("", !0),
|
|
6577
|
-
|
|
6577
|
+
v("div", { innerHTML: s.value }, null, 8, G1)
|
|
6578
6578
|
], 32));
|
|
6579
6579
|
}
|
|
6580
6580
|
}), pi = /* @__PURE__ */ H(W1, [["__scopeId", "data-v-a899f6a1"]]), j1 = {
|
|
@@ -6609,7 +6609,7 @@ function Z1(e, t, n, l, o, i) {
|
|
|
6609
6609
|
height: n.size,
|
|
6610
6610
|
viewBox: "0 0 24 24"
|
|
6611
6611
|
}, [
|
|
6612
|
-
|
|
6612
|
+
v("path", q1, [
|
|
6613
6613
|
n.title ? (u(), d("title", X1, M(n.title), 1)) : L("", !0)
|
|
6614
6614
|
])
|
|
6615
6615
|
], 8, Y1))
|
|
@@ -6647,7 +6647,7 @@ function ip(e, t, n, l, o, i) {
|
|
|
6647
6647
|
height: n.size,
|
|
6648
6648
|
viewBox: "0 0 24 24"
|
|
6649
6649
|
}, [
|
|
6650
|
-
|
|
6650
|
+
v("path", np, [
|
|
6651
6651
|
n.title ? (u(), d("title", lp, M(n.title), 1)) : L("", !0)
|
|
6652
6652
|
])
|
|
6653
6653
|
], 8, tp))
|
|
@@ -6658,7 +6658,7 @@ function rp(e) {
|
|
|
6658
6658
|
return wr() ? (Nr(e), !0) : !1;
|
|
6659
6659
|
}
|
|
6660
6660
|
function bo(e) {
|
|
6661
|
-
return typeof e == "function" ? e() :
|
|
6661
|
+
return typeof e == "function" ? e() : R(e);
|
|
6662
6662
|
}
|
|
6663
6663
|
const ap = typeof window < "u" && typeof document < "u";
|
|
6664
6664
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -6680,14 +6680,14 @@ function gi(...e) {
|
|
|
6680
6680
|
Array.isArray(n) || (n = [n]), Array.isArray(l) || (l = [l]);
|
|
6681
6681
|
const i = [], r = () => {
|
|
6682
6682
|
i.forEach((m) => m()), i.length = 0;
|
|
6683
|
-
}, a = (m, y, h,
|
|
6683
|
+
}, a = (m, y, h, b) => (m.addEventListener(y, h, b), () => m.removeEventListener(y, h, b)), s = Ue(
|
|
6684
6684
|
() => [fp(t), bo(o)],
|
|
6685
6685
|
([m, y]) => {
|
|
6686
6686
|
if (r(), !m)
|
|
6687
6687
|
return;
|
|
6688
6688
|
const h = up(y) ? { ...y } : y;
|
|
6689
6689
|
i.push(
|
|
6690
|
-
...n.flatMap((
|
|
6690
|
+
...n.flatMap((b) => l.map((N) => a(m, b, N, h)))
|
|
6691
6691
|
);
|
|
6692
6692
|
},
|
|
6693
6693
|
{ immediate: !0, flush: "post" }
|
|
@@ -6743,7 +6743,7 @@ const pp = ["id", "open"], gp = { class: "d-flex gap-2 align-items-center" }, hp
|
|
|
6743
6743
|
},
|
|
6744
6744
|
emits: ["expand"],
|
|
6745
6745
|
setup(e, { emit: t }) {
|
|
6746
|
-
const n = e, l = te(!0), o = mp(), i = t, r =
|
|
6746
|
+
const n = e, l = te(!0), o = mp(), i = t, r = G(() => `#${n.href}-body`), a = (c) => {
|
|
6747
6747
|
c.preventDefault(), l.value = !l.value, s.value = !l.value, l.value || i("expand"), !n.noUrlChange && (window.location.hash = l.value ? "" : r.value);
|
|
6748
6748
|
}, s = te(!1);
|
|
6749
6749
|
return Ue(
|
|
@@ -6762,11 +6762,11 @@ const pp = ["id", "open"], gp = { class: "d-flex gap-2 align-items-center" }, hp
|
|
|
6762
6762
|
id: c.href,
|
|
6763
6763
|
open: s.value
|
|
6764
6764
|
}, [
|
|
6765
|
-
|
|
6765
|
+
v("summary", {
|
|
6766
6766
|
class: re(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button", { collapsed: l.value }]),
|
|
6767
6767
|
onClick: a
|
|
6768
6768
|
}, [
|
|
6769
|
-
|
|
6769
|
+
v("span", gp, [
|
|
6770
6770
|
c.arrow ? (u(), X(mt(l.value ? J1 : op), {
|
|
6771
6771
|
key: 0,
|
|
6772
6772
|
class: "arrow"
|
|
@@ -6782,7 +6782,7 @@ const pp = ["id", "open"], gp = { class: "d-flex gap-2 align-items-center" }, hp
|
|
|
6782
6782
|
key: 0,
|
|
6783
6783
|
id: c.href + "-body"
|
|
6784
6784
|
}, [
|
|
6785
|
-
|
|
6785
|
+
v("div", null, [
|
|
6786
6786
|
ae(c.$slots, "content", {}, void 0, !0)
|
|
6787
6787
|
])
|
|
6788
6788
|
], 8, _p)) : L("", !0)
|
|
@@ -6859,7 +6859,7 @@ function wp(e, t, n, l, o, i) {
|
|
|
6859
6859
|
height: n.size,
|
|
6860
6860
|
viewBox: "0 0 24 24"
|
|
6861
6861
|
}, [
|
|
6862
|
-
|
|
6862
|
+
v("path", Lp, [
|
|
6863
6863
|
n.title ? (u(), d("title", Sp, M(n.title), 1)) : L("", !0)
|
|
6864
6864
|
])
|
|
6865
6865
|
], 8, kp))
|
|
@@ -6897,7 +6897,7 @@ function Dp(e, t, n, l, o, i) {
|
|
|
6897
6897
|
height: n.size,
|
|
6898
6898
|
viewBox: "0 0 24 24"
|
|
6899
6899
|
}, [
|
|
6900
|
-
|
|
6900
|
+
v("path", Op, [
|
|
6901
6901
|
n.title ? (u(), d("title", $p, M(n.title), 1)) : L("", !0)
|
|
6902
6902
|
])
|
|
6903
6903
|
], 8, Ip))
|
|
@@ -6935,7 +6935,7 @@ function Up(e, t, n, l, o, i) {
|
|
|
6935
6935
|
height: n.size,
|
|
6936
6936
|
viewBox: "0 0 24 24"
|
|
6937
6937
|
}, [
|
|
6938
|
-
|
|
6938
|
+
v("path", Vp, [
|
|
6939
6939
|
n.title ? (u(), d("title", xp, M(n.title), 1)) : L("", !0)
|
|
6940
6940
|
])
|
|
6941
6941
|
], 8, Mp))
|
|
@@ -6948,7 +6948,7 @@ const Fp = /* @__PURE__ */ H(Rp, [["render", Up]]), Hp = { class: "me-3" }, Bp =
|
|
|
6948
6948
|
type: {}
|
|
6949
6949
|
},
|
|
6950
6950
|
setup(e) {
|
|
6951
|
-
const t = e, n =
|
|
6951
|
+
const t = e, n = G(() => {
|
|
6952
6952
|
switch (t.type) {
|
|
6953
6953
|
case "success":
|
|
6954
6954
|
return Fp;
|
|
@@ -6966,10 +6966,10 @@ const Fp = /* @__PURE__ */ H(Rp, [["render", Up]]), Hp = { class: "me-3" }, Bp =
|
|
|
6966
6966
|
class: re("doc-alert alert alert-" + l.type),
|
|
6967
6967
|
role: "alert"
|
|
6968
6968
|
}, [
|
|
6969
|
-
|
|
6969
|
+
v("div", Hp, [
|
|
6970
6970
|
(u(), X(mt(n.value), { class: "alert-icon" }))
|
|
6971
6971
|
]),
|
|
6972
|
-
|
|
6972
|
+
v("div", Bp, [
|
|
6973
6973
|
ae(l.$slots, "default", {}, void 0, !0)
|
|
6974
6974
|
])
|
|
6975
6975
|
], 2));
|
|
@@ -6986,70 +6986,70 @@ const Fp = /* @__PURE__ */ H(Rp, [["render", Up]]), Hp = { class: "me-3" }, Bp =
|
|
|
6986
6986
|
const t = e, n = te(So(t.property).subType), l = te(vp(t.property)), o = (i) => i.replace(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g, "$1$2$3").replace(new RegExp("(?<!:):(?![: /])", "g"), ": ");
|
|
6987
6987
|
return (i, r) => (u(), d("div", Wp, [
|
|
6988
6988
|
n.value ? (u(), d("div", jp, [
|
|
6989
|
-
r[1] || (r[1] =
|
|
6989
|
+
r[1] || (r[1] = v("span", null, " SubType ", -1)),
|
|
6990
6990
|
n.value.startsWith("#") ? (u(), d("a", {
|
|
6991
6991
|
key: 0,
|
|
6992
6992
|
href: n.value,
|
|
6993
6993
|
onClick: r[0] || (r[0] = wi(() => {
|
|
6994
6994
|
}, ["stop"]))
|
|
6995
6995
|
}, [
|
|
6996
|
-
|
|
6997
|
-
|
|
6996
|
+
v("button", Yp, [
|
|
6997
|
+
v("span", qp, M(R(Lo)(n.value)), 1),
|
|
6998
6998
|
V(wo)
|
|
6999
6999
|
])
|
|
7000
7000
|
], 8, Kp)) : (u(), d("span", Xp, M(n.value), 1))
|
|
7001
7001
|
])) : L("", !0),
|
|
7002
7002
|
i.property.default !== void 0 ? (u(), d("div", Zp, [
|
|
7003
|
-
r[2] || (r[2] =
|
|
7004
|
-
|
|
7003
|
+
r[2] || (r[2] = v("span", null, " Default ", -1)),
|
|
7004
|
+
v("code", Jp, M(i.property.default), 1)
|
|
7005
7005
|
])) : L("", !0),
|
|
7006
7006
|
i.property.pattern !== void 0 ? (u(), d("div", Qp, [
|
|
7007
|
-
r[3] || (r[3] =
|
|
7008
|
-
|
|
7007
|
+
r[3] || (r[3] = v("span", null, " Validation RegExp ", -1)),
|
|
7008
|
+
v("code", eg, M(i.property.pattern), 1)
|
|
7009
7009
|
])) : L("", !0),
|
|
7010
7010
|
i.property.unit !== void 0 && i.property.unit.trim().length > 0 ? (u(), d("div", tg, [
|
|
7011
|
-
r[4] || (r[4] =
|
|
7012
|
-
|
|
7011
|
+
r[4] || (r[4] = v("span", null, " Unit ", -1)),
|
|
7012
|
+
v("code", ng, M(i.property.unit), 1)
|
|
7013
7013
|
])) : L("", !0),
|
|
7014
7014
|
i.property.minLength !== void 0 ? (u(), d("div", lg, [
|
|
7015
|
-
r[5] || (r[5] =
|
|
7016
|
-
|
|
7015
|
+
r[5] || (r[5] = v("span", null, " Min length ", -1)),
|
|
7016
|
+
v("code", ig, M(i.property.minLength), 1)
|
|
7017
7017
|
])) : L("", !0),
|
|
7018
7018
|
i.property.maxLength !== void 0 ? (u(), d("div", og, [
|
|
7019
|
-
r[6] || (r[6] =
|
|
7020
|
-
|
|
7019
|
+
r[6] || (r[6] = v("span", null, " Max length ", -1)),
|
|
7020
|
+
v("code", rg, M(i.property.maxLength), 1)
|
|
7021
7021
|
])) : L("", !0),
|
|
7022
7022
|
i.property.minItems !== void 0 ? (u(), d("div", ag, [
|
|
7023
|
-
r[7] || (r[7] =
|
|
7024
|
-
|
|
7023
|
+
r[7] || (r[7] = v("span", null, " Min items ", -1)),
|
|
7024
|
+
v("code", sg, M(i.property.minItems), 1)
|
|
7025
7025
|
])) : L("", !0),
|
|
7026
7026
|
i.property.maxItems !== void 0 ? (u(), d("div", ug, [
|
|
7027
|
-
r[8] || (r[8] =
|
|
7028
|
-
|
|
7027
|
+
r[8] || (r[8] = v("span", null, " Max items ", -1)),
|
|
7028
|
+
v("code", cg, M(i.property.maxItems), 1)
|
|
7029
7029
|
])) : L("", !0),
|
|
7030
7030
|
i.property.minimum !== void 0 ? (u(), d("div", dg, [
|
|
7031
|
-
r[9] || (r[9] =
|
|
7032
|
-
|
|
7031
|
+
r[9] || (r[9] = v("span", null, " Minimum ", -1)),
|
|
7032
|
+
v("code", fg, " >= " + M(i.property.minimum), 1)
|
|
7033
7033
|
])) : L("", !0),
|
|
7034
7034
|
i.property.exclusiveMinimum !== void 0 ? (u(), d("div", mg, [
|
|
7035
|
-
r[10] || (r[10] =
|
|
7036
|
-
|
|
7035
|
+
r[10] || (r[10] = v("span", null, " Minimum ", -1)),
|
|
7036
|
+
v("code", pg, " > " + M(i.property.minimum), 1)
|
|
7037
7037
|
])) : L("", !0),
|
|
7038
7038
|
i.property.maximum !== void 0 ? (u(), d("div", gg, [
|
|
7039
|
-
r[11] || (r[11] =
|
|
7040
|
-
|
|
7039
|
+
r[11] || (r[11] = v("span", null, " Maximum ", -1)),
|
|
7040
|
+
v("code", hg, " <= " + M(i.property.maximum), 1)
|
|
7041
7041
|
])) : L("", !0),
|
|
7042
7042
|
i.property.exclusiveMaximum !== void 0 ? (u(), d("div", _g, [
|
|
7043
|
-
r[12] || (r[12] =
|
|
7044
|
-
|
|
7043
|
+
r[12] || (r[12] = v("span", null, " Maximum ", -1)),
|
|
7044
|
+
v("code", yg, " < " + M(i.property.maximum), 1)
|
|
7045
7045
|
])) : L("", !0),
|
|
7046
7046
|
i.property.format !== void 0 ? (u(), d("div", vg, [
|
|
7047
|
-
r[13] || (r[13] =
|
|
7048
|
-
|
|
7047
|
+
r[13] || (r[13] = v("span", null, " Format ", -1)),
|
|
7048
|
+
v("code", Eg, M(i.property.format), 1)
|
|
7049
7049
|
])) : L("", !0),
|
|
7050
7050
|
l.value !== void 0 ? (u(), d("div", Cg, [
|
|
7051
|
-
r[14] || (r[14] =
|
|
7052
|
-
|
|
7051
|
+
r[14] || (r[14] = v("span", null, " Possible Values ", -1)),
|
|
7052
|
+
v("div", bg, [
|
|
7053
7053
|
(u(!0), d(Ee, null, Xe(l.value, (a, s) => (u(), d("code", {
|
|
7054
7054
|
class: "border rounded px-2 py-1",
|
|
7055
7055
|
key: s
|
|
@@ -7057,7 +7057,7 @@ const Fp = /* @__PURE__ */ H(Rp, [["render", Up]]), Hp = { class: "me-3" }, Bp =
|
|
|
7057
7057
|
])
|
|
7058
7058
|
])) : L("", !0),
|
|
7059
7059
|
i.property.title !== void 0 || i.property.description !== void 0 ? (u(), d("div", kg, [
|
|
7060
|
-
|
|
7060
|
+
v("div", Lg, [
|
|
7061
7061
|
i.property.title !== void 0 ? ae(i.$slots, "markdown", {
|
|
7062
7062
|
key: 0,
|
|
7063
7063
|
content: o(i.property.title)
|
|
@@ -7068,7 +7068,7 @@ const Fp = /* @__PURE__ */ H(Rp, [["render", Up]]), Hp = { class: "me-3" }, Bp =
|
|
|
7068
7068
|
}, void 0, !0) : L("", !0),
|
|
7069
7069
|
i.property.$internalStorageURI ? (u(), d("div", Sg, [
|
|
7070
7070
|
V(Gp, { type: "info" }, {
|
|
7071
|
-
default:
|
|
7071
|
+
default: W(() => [
|
|
7072
7072
|
ae(i.$slots, "markdown", { content: "Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`." }, void 0, !0)
|
|
7073
7073
|
]),
|
|
7074
7074
|
_: 3
|
|
@@ -7110,7 +7110,7 @@ function Dg(e, t, n, l, o, i) {
|
|
|
7110
7110
|
height: n.size,
|
|
7111
7111
|
viewBox: "0 0 24 24"
|
|
7112
7112
|
}, [
|
|
7113
|
-
|
|
7113
|
+
v("path", Og, [
|
|
7114
7114
|
n.title ? (u(), d("title", $g, M(n.title), 1)) : L("", !0)
|
|
7115
7115
|
])
|
|
7116
7116
|
], 8, Ig))
|
|
@@ -7148,7 +7148,7 @@ function Fg(e, t, n, l, o, i) {
|
|
|
7148
7148
|
height: n.size,
|
|
7149
7149
|
viewBox: "0 0 24 24"
|
|
7150
7150
|
}, [
|
|
7151
|
-
|
|
7151
|
+
v("path", xg, [
|
|
7152
7152
|
n.title ? (u(), d("title", Ug, M(n.title), 1)) : L("", !0)
|
|
7153
7153
|
])
|
|
7154
7154
|
], 8, Vg))
|
|
@@ -7186,7 +7186,7 @@ function Kg(e, t, n, l, o, i) {
|
|
|
7186
7186
|
height: n.size,
|
|
7187
7187
|
viewBox: "0 0 24 24"
|
|
7188
7188
|
}, [
|
|
7189
|
-
|
|
7189
|
+
v("path", Wg, [
|
|
7190
7190
|
n.title ? (u(), d("title", jg, M(n.title), 1)) : L("", !0)
|
|
7191
7191
|
])
|
|
7192
7192
|
], 8, Gg))
|
|
@@ -7234,8 +7234,8 @@ const Yg = /* @__PURE__ */ H(Bg, [["render", Kg]]), qg = { class: "border overfl
|
|
|
7234
7234
|
}, Li({ _: 2 }, [
|
|
7235
7235
|
Object.keys(a.properties ?? {}).length > 0 ? {
|
|
7236
7236
|
name: "content",
|
|
7237
|
-
fn:
|
|
7238
|
-
|
|
7237
|
+
fn: W(() => [
|
|
7238
|
+
v("div", qg, [
|
|
7239
7239
|
(u(!0), d(Ee, null, Xe(r(a.properties), (c, m) => (u(), X(an, {
|
|
7240
7240
|
class: "property",
|
|
7241
7241
|
key: m,
|
|
@@ -7245,27 +7245,27 @@ const Yg = /* @__PURE__ */ H(Bg, [["render", Kg]]), qg = { class: "border overfl
|
|
|
7245
7245
|
onExpand: s[1] || (s[1] = (y) => o.value = !0),
|
|
7246
7246
|
"no-url-change": a.noUrlChange
|
|
7247
7247
|
}, {
|
|
7248
|
-
additionalButtonText:
|
|
7248
|
+
additionalButtonText: W(() => [
|
|
7249
7249
|
c.$required ? (u(), X(oe, {
|
|
7250
7250
|
key: 0,
|
|
7251
7251
|
class: "d-flex",
|
|
7252
7252
|
title: "Required"
|
|
7253
7253
|
}, {
|
|
7254
|
-
default:
|
|
7255
|
-
|
|
7254
|
+
default: W(() => [...s[3] || (s[3] = [
|
|
7255
|
+
v("span", { class: "text-danger" }, " *", -1)
|
|
7256
7256
|
])]),
|
|
7257
7257
|
_: 1
|
|
7258
7258
|
})) : L("", !0)
|
|
7259
7259
|
]),
|
|
7260
|
-
buttonRight:
|
|
7261
|
-
|
|
7262
|
-
|
|
7260
|
+
buttonRight: W(({ collapsed: y }) => [
|
|
7261
|
+
v("span", Xg, [
|
|
7262
|
+
v("span", Zg, [
|
|
7263
7263
|
a.showDynamic && !i(c) ? (u(), X(oe, {
|
|
7264
7264
|
key: 0,
|
|
7265
7265
|
class: "d-flex",
|
|
7266
7266
|
title: "Non-dynamic"
|
|
7267
7267
|
}, {
|
|
7268
|
-
default:
|
|
7268
|
+
default: W(() => [
|
|
7269
7269
|
V(Hg, { class: "text-info" })
|
|
7270
7270
|
]),
|
|
7271
7271
|
_: 1
|
|
@@ -7275,7 +7275,7 @@ const Yg = /* @__PURE__ */ H(Bg, [["render", Kg]]), qg = { class: "border overfl
|
|
|
7275
7275
|
class: "d-flex",
|
|
7276
7276
|
title: "Beta"
|
|
7277
7277
|
}, {
|
|
7278
|
-
default:
|
|
7278
|
+
default: W(() => [
|
|
7279
7279
|
V(Yg, { class: "text-warning" })
|
|
7280
7280
|
]),
|
|
7281
7281
|
_: 1
|
|
@@ -7285,14 +7285,14 @@ const Yg = /* @__PURE__ */ H(Bg, [["render", Kg]]), qg = { class: "border overfl
|
|
|
7285
7285
|
class: "d-flex",
|
|
7286
7286
|
title: "Deprecated"
|
|
7287
7287
|
}, {
|
|
7288
|
-
default:
|
|
7288
|
+
default: W(() => [
|
|
7289
7289
|
V(cl, { class: "text-warning" })
|
|
7290
7290
|
]),
|
|
7291
7291
|
_: 1
|
|
7292
7292
|
})) : L("", !0)
|
|
7293
7293
|
]),
|
|
7294
|
-
|
|
7295
|
-
(u(!0), d(Ee, null, Xe(
|
|
7294
|
+
v("span", Jg, [
|
|
7295
|
+
(u(!0), d(Ee, null, Xe(R(So)(c).types, (h) => (u(), d(Ee, { key: h }, [
|
|
7296
7296
|
h.startsWith("#") ? (u(), d("a", {
|
|
7297
7297
|
key: 0,
|
|
7298
7298
|
class: "d-flex fw-bold type-box rounded fs-7 px-2 py-1",
|
|
@@ -7300,7 +7300,7 @@ const Yg = /* @__PURE__ */ H(Bg, [["render", Kg]]), qg = { class: "border overfl
|
|
|
7300
7300
|
onClick: s[0] || (s[0] = wi(() => {
|
|
7301
7301
|
}, ["stop"]))
|
|
7302
7302
|
}, [
|
|
7303
|
-
|
|
7303
|
+
v("span", eh, M(R(Lo)(h)), 1),
|
|
7304
7304
|
V(wo)
|
|
7305
7305
|
], 8, Qg)) : (u(), d("span", th, M(h), 1))
|
|
7306
7306
|
], 64))), 128)),
|
|
@@ -7308,9 +7308,9 @@ const Yg = /* @__PURE__ */ H(Bg, [["render", Kg]]), qg = { class: "border overfl
|
|
|
7308
7308
|
])
|
|
7309
7309
|
])
|
|
7310
7310
|
]),
|
|
7311
|
-
content:
|
|
7311
|
+
content: W(() => [
|
|
7312
7312
|
V(Ng, { property: c }, {
|
|
7313
|
-
markdown:
|
|
7313
|
+
markdown: W(({ content: y }) => [
|
|
7314
7314
|
ae(a.$slots, "markdown", { content: y }, void 0, !0)
|
|
7315
7315
|
]),
|
|
7316
7316
|
_: 3
|
|
@@ -7324,20 +7324,20 @@ const Yg = /* @__PURE__ */ H(Bg, [["render", Kg]]), qg = { class: "border overfl
|
|
|
7324
7324
|
} : void 0
|
|
7325
7325
|
]), 1032, ["clickable-text", "href", "initially-expanded"]));
|
|
7326
7326
|
}
|
|
7327
|
-
}), Yt = /* @__PURE__ */ H(nh, [["__scopeId", "data-v-1d731489"]]), lh = { class: "d-flex flex-column gap-6" }, ih = {
|
|
7327
|
+
}), Yt = /* @__PURE__ */ H(nh, [["__scopeId", "data-v-1d731489"]]), lh = { class: "d-flex flex-column gap-6" }, ih = { class: "d-flex flex-column gap-3" }, oh = {
|
|
7328
7328
|
key: 0,
|
|
7329
7329
|
class: "alert alert-info mb-2",
|
|
7330
7330
|
role: "alert"
|
|
7331
|
-
},
|
|
7331
|
+
}, rh = {
|
|
7332
7332
|
key: 1,
|
|
7333
7333
|
class: "plugin-title markdown"
|
|
7334
|
-
},
|
|
7334
|
+
}, ah = {
|
|
7335
7335
|
key: 2,
|
|
7336
7336
|
class: "markdown"
|
|
7337
|
-
},
|
|
7337
|
+
}, sh = { class: "d-flex flex-column gap-4" }, uh = { class: "d-flex flex-column gap-3" }, ch = { class: "markdown" }, dh = {
|
|
7338
7338
|
key: 0,
|
|
7339
7339
|
class: "w-100 align-self-center"
|
|
7340
|
-
},
|
|
7340
|
+
}, fh = { class: "markdown" }, mh = { class: "markdown" }, ph = { class: "markdown" }, gh = { class: "d-flex flex-column gap-7 ps-3" }, hh = { class: "markdown" }, _h = /* @__PURE__ */ de({
|
|
7341
7341
|
__name: "SchemaToHtml",
|
|
7342
7342
|
props: {
|
|
7343
7343
|
schema: {},
|
|
@@ -7355,61 +7355,61 @@ const Yg = /* @__PURE__ */ H(Bg, [["render", Kg]]), qg = { class: "border overfl
|
|
|
7355
7355
|
i.value.clear();
|
|
7356
7356
|
return;
|
|
7357
7357
|
}
|
|
7358
|
-
const
|
|
7359
|
-
if (
|
|
7360
|
-
o.value = !0, r.value += 1, i.value.clear(), i.value.add(
|
|
7361
|
-
let
|
|
7358
|
+
const D = _.includes("#") ? _.split("#").pop()?.split(".").pop() : _;
|
|
7359
|
+
if (D && D in l.schema.definitions) {
|
|
7360
|
+
o.value = !0, r.value += 1, i.value.clear(), i.value.add(D), await dn();
|
|
7361
|
+
let I = 0;
|
|
7362
7362
|
const S = 30, Y = () => {
|
|
7363
|
-
const Z = document.getElementById(
|
|
7364
|
-
Z ? Z.scrollIntoView({ behavior: "smooth", block: "start" }) :
|
|
7363
|
+
const Z = document.getElementById(D);
|
|
7364
|
+
Z ? Z.scrollIntoView({ behavior: "smooth", block: "start" }) : I < S && (I++, requestAnimationFrame(Y));
|
|
7365
7365
|
};
|
|
7366
7366
|
requestAnimationFrame(Y);
|
|
7367
7367
|
} else
|
|
7368
7368
|
i.value.clear();
|
|
7369
7369
|
};
|
|
7370
|
-
Ue([() => l.schema, () => l.pluginType], ([_,
|
|
7371
|
-
(_ !==
|
|
7370
|
+
Ue([() => l.schema, () => l.pluginType], ([_, D], [I, S]) => {
|
|
7371
|
+
(_ !== I || D !== S) && l.schema.definitions && a();
|
|
7372
7372
|
});
|
|
7373
7373
|
const s = (_) => _?.full ? _.code : `id: "${l.pluginType.split(".").reverse()[0]?.toLowerCase()}"
|
|
7374
7374
|
type: "${l.pluginType}"
|
|
7375
|
-
`.concat(_.code), c = te(null), m =
|
|
7375
|
+
`.concat(_.code), c = te(null), m = G(() => l.schema.properties?.$examples), y = G(() => Object.fromEntries(
|
|
7376
7376
|
l.schema.properties?.$metrics?.map((_) => [_.name, { ..._, name: void 0 }])
|
|
7377
7377
|
)), {
|
|
7378
7378
|
githubLight: h,
|
|
7379
|
-
githubDark:
|
|
7380
|
-
yaml:
|
|
7381
|
-
python:
|
|
7379
|
+
githubDark: b,
|
|
7380
|
+
yaml: N,
|
|
7381
|
+
python: T,
|
|
7382
7382
|
javascript: k,
|
|
7383
7383
|
createJavaScriptRegexEngine: g,
|
|
7384
|
-
createHighlighterCore:
|
|
7385
|
-
} = ([t, n] = Sl(() => import("./shikiToolset-
|
|
7386
|
-
c.value = ([t, n] = Sl(() =>
|
|
7384
|
+
createHighlighterCore: E
|
|
7385
|
+
} = ([t, n] = Sl(() => import("./shikiToolset-vevNd9lM.js")), t = await t, n(), t);
|
|
7386
|
+
c.value = ([t, n] = Sl(() => E({
|
|
7387
7387
|
themes: [
|
|
7388
|
-
l.darkMode ?
|
|
7388
|
+
l.darkMode ? b : h
|
|
7389
7389
|
],
|
|
7390
7390
|
langs: [
|
|
7391
|
-
|
|
7392
|
-
|
|
7391
|
+
N,
|
|
7392
|
+
T,
|
|
7393
7393
|
k
|
|
7394
7394
|
],
|
|
7395
7395
|
engine: g()
|
|
7396
7396
|
})), t = await t, n(), t);
|
|
7397
|
-
const
|
|
7397
|
+
const A = "github-" + (l.darkMode ? "dark" : "light");
|
|
7398
7398
|
return Mt(() => {
|
|
7399
7399
|
a(), window.addEventListener("hashchange", a);
|
|
7400
7400
|
}), bi(() => {
|
|
7401
7401
|
window.removeEventListener("hashchange", a), c.value?.dispose();
|
|
7402
|
-
}), (_,
|
|
7403
|
-
|
|
7404
|
-
_.schema.properties?.$beta ? (u(), d("div",
|
|
7405
|
-
|
|
7402
|
+
}), (_, D) => (u(), d("div", lh, [
|
|
7403
|
+
v("div", ih, [
|
|
7404
|
+
_.schema.properties?.$beta ? (u(), d("div", oh, [...D[0] || (D[0] = [
|
|
7405
|
+
v("p", null, " This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ", -1)
|
|
7406
7406
|
])])) : L("", !0),
|
|
7407
|
-
_.schema.properties?.title ? (u(), d("div",
|
|
7407
|
+
_.schema.properties?.title ? (u(), d("div", rh, [
|
|
7408
7408
|
ae(_.$slots, "markdown", {
|
|
7409
7409
|
content: _.schema.properties.title.replace(/ *:(?![ /])/g, ": ")
|
|
7410
7410
|
}, void 0, !0)
|
|
7411
7411
|
])) : L("", !0),
|
|
7412
|
-
_.schema.properties?.description ? (u(), d("div",
|
|
7412
|
+
_.schema.properties?.description ? (u(), d("div", ah, [
|
|
7413
7413
|
ae(_.$slots, "markdown", {
|
|
7414
7414
|
content: _.schema.properties.description.replace(/ *:(?![ /])/g, ": ")
|
|
7415
7415
|
}, void 0, !0)
|
|
@@ -7417,7 +7417,7 @@ type: "${l.pluginType}"
|
|
|
7417
7417
|
(u(), X(pi, {
|
|
7418
7418
|
highlighter: c.value,
|
|
7419
7419
|
language: "yaml",
|
|
7420
|
-
theme:
|
|
7420
|
+
theme: A,
|
|
7421
7421
|
code: `type: "${_.pluginType}"`,
|
|
7422
7422
|
key: _.pluginType
|
|
7423
7423
|
}, null, 8, ["highlighter", "code"]))
|
|
@@ -7433,27 +7433,27 @@ type: "${l.pluginType}"
|
|
|
7433
7433
|
href: "examples",
|
|
7434
7434
|
"no-url-change": _.noUrlChange
|
|
7435
7435
|
}, {
|
|
7436
|
-
content:
|
|
7437
|
-
|
|
7438
|
-
(u(!0), d(Ee, null, Xe(m.value, (
|
|
7436
|
+
content: W(() => [
|
|
7437
|
+
v("div", sh, [
|
|
7438
|
+
(u(!0), d(Ee, null, Xe(m.value, (I, S) => (u(), d(Ee, {
|
|
7439
7439
|
key: _.pluginType + "-" + S
|
|
7440
7440
|
}, [
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7441
|
+
v("div", uh, [
|
|
7442
|
+
v("div", ch, [
|
|
7443
|
+
I.title ? ae(_.$slots, "markdown", {
|
|
7444
7444
|
key: 0,
|
|
7445
|
-
content:
|
|
7445
|
+
content: I.title.replace(/ *:(?![ /])/g, ": ")
|
|
7446
7446
|
}, void 0, !0) : L("", !0)
|
|
7447
7447
|
]),
|
|
7448
|
-
|
|
7448
|
+
I.code ? (u(), X(pi, {
|
|
7449
7449
|
key: 0,
|
|
7450
7450
|
highlighter: c.value,
|
|
7451
|
-
language:
|
|
7452
|
-
theme:
|
|
7453
|
-
code: s(
|
|
7451
|
+
language: I.lang ?? "yaml",
|
|
7452
|
+
theme: A,
|
|
7453
|
+
code: s(I)
|
|
7454
7454
|
}, null, 8, ["highlighter", "language", "code"])) : L("", !0)
|
|
7455
7455
|
]),
|
|
7456
|
-
S < m.value.length - 1 ? (u(), d("hr",
|
|
7456
|
+
S < m.value.length - 1 ? (u(), d("hr", dh)) : L("", !0)
|
|
7457
7457
|
], 64))), 128))
|
|
7458
7458
|
])
|
|
7459
7459
|
]),
|
|
@@ -7469,9 +7469,9 @@ type: "${l.pluginType}"
|
|
|
7469
7469
|
"force-include": _.forceIncludeProperties,
|
|
7470
7470
|
"no-url-change": _.noUrlChange
|
|
7471
7471
|
}, {
|
|
7472
|
-
markdown:
|
|
7473
|
-
|
|
7474
|
-
ae(_.$slots, "markdown", { content:
|
|
7472
|
+
markdown: W(({ content: I }) => [
|
|
7473
|
+
v("div", fh, [
|
|
7474
|
+
ae(_.$slots, "markdown", { content: I }, void 0, !0)
|
|
7475
7475
|
])
|
|
7476
7476
|
]),
|
|
7477
7477
|
_: 3
|
|
@@ -7485,9 +7485,9 @@ type: "${l.pluginType}"
|
|
|
7485
7485
|
"show-dynamic": !1,
|
|
7486
7486
|
"no-url-change": _.noUrlChange
|
|
7487
7487
|
}, {
|
|
7488
|
-
markdown:
|
|
7489
|
-
|
|
7490
|
-
ae(_.$slots, "markdown", { content:
|
|
7488
|
+
markdown: W(({ content: I }) => [
|
|
7489
|
+
v("div", mh, [
|
|
7490
|
+
ae(_.$slots, "markdown", { content: I }, void 0, !0)
|
|
7491
7491
|
])
|
|
7492
7492
|
]),
|
|
7493
7493
|
_: 3
|
|
@@ -7501,9 +7501,9 @@ type: "${l.pluginType}"
|
|
|
7501
7501
|
"show-dynamic": !1,
|
|
7502
7502
|
"no-url-change": _.noUrlChange
|
|
7503
7503
|
}, {
|
|
7504
|
-
markdown:
|
|
7505
|
-
|
|
7506
|
-
ae(_.$slots, "markdown", { content:
|
|
7504
|
+
markdown: W(({ content: I }) => [
|
|
7505
|
+
v("div", ph, [
|
|
7506
|
+
ae(_.$slots, "markdown", { content: I }, void 0, !0)
|
|
7507
7507
|
])
|
|
7508
7508
|
]),
|
|
7509
7509
|
_: 3
|
|
@@ -7516,23 +7516,23 @@ type: "${l.pluginType}"
|
|
|
7516
7516
|
key: `definitions-${_.pluginType}-${r.value}`,
|
|
7517
7517
|
"no-url-change": _.noUrlChange
|
|
7518
7518
|
}, {
|
|
7519
|
-
content:
|
|
7520
|
-
|
|
7521
|
-
(u(!0), d(Ee, null, Xe(Object.entries(_.schema.definitions), ([
|
|
7519
|
+
content: W(() => [
|
|
7520
|
+
v("div", gh, [
|
|
7521
|
+
(u(!0), d(Ee, null, Xe(Object.entries(_.schema.definitions), ([I, S]) => (u(), X(Yt, {
|
|
7522
7522
|
properties: S.properties,
|
|
7523
|
-
"section-name": S.title ??
|
|
7524
|
-
href:
|
|
7523
|
+
"section-name": S.title ?? I.split("_")[0],
|
|
7524
|
+
href: I,
|
|
7525
7525
|
"show-dynamic": !1,
|
|
7526
|
-
"initially-expanded": i.value.has(
|
|
7527
|
-
key: _.pluginType + "-" +
|
|
7526
|
+
"initially-expanded": i.value.has(I),
|
|
7527
|
+
key: _.pluginType + "-" + I,
|
|
7528
7528
|
class: "plugin-section nested-button-py-2",
|
|
7529
7529
|
onExpand: (Y) => {
|
|
7530
|
-
o.value = !0, i.value.add(
|
|
7530
|
+
o.value = !0, i.value.add(I);
|
|
7531
7531
|
},
|
|
7532
7532
|
"no-url-change": _.noUrlChange
|
|
7533
7533
|
}, {
|
|
7534
|
-
markdown:
|
|
7535
|
-
|
|
7534
|
+
markdown: W(({ content: Y }) => [
|
|
7535
|
+
v("div", hh, [
|
|
7536
7536
|
ae(_.$slots, "markdown", { content: Y }, void 0, !0)
|
|
7537
7537
|
])
|
|
7538
7538
|
]),
|
|
@@ -7545,7 +7545,7 @@ type: "${l.pluginType}"
|
|
|
7545
7545
|
]))
|
|
7546
7546
|
]));
|
|
7547
7547
|
}
|
|
7548
|
-
}),
|
|
7548
|
+
}), I_ = /* @__PURE__ */ H(_h, [["__scopeId", "data-v-1eee53e2"]]), yh = {
|
|
7549
7549
|
name: "ChevronRightIcon",
|
|
7550
7550
|
emits: ["click"],
|
|
7551
7551
|
props: {
|
|
@@ -7561,8 +7561,8 @@ type: "${l.pluginType}"
|
|
|
7561
7561
|
default: 24
|
|
7562
7562
|
}
|
|
7563
7563
|
}
|
|
7564
|
-
},
|
|
7565
|
-
function
|
|
7564
|
+
}, vh = ["aria-hidden", "aria-label"], Eh = ["fill", "width", "height"], Ch = { d: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z" }, bh = { key: 0 };
|
|
7565
|
+
function kh(e, t, n, l, o, i) {
|
|
7566
7566
|
return u(), d("span", K(e.$attrs, {
|
|
7567
7567
|
"aria-hidden": n.title ? null : "true",
|
|
7568
7568
|
"aria-label": n.title,
|
|
@@ -7577,13 +7577,13 @@ function bh(e, t, n, l, o, i) {
|
|
|
7577
7577
|
height: n.size,
|
|
7578
7578
|
viewBox: "0 0 24 24"
|
|
7579
7579
|
}, [
|
|
7580
|
-
|
|
7581
|
-
n.title ? (u(), d("title",
|
|
7580
|
+
v("path", Ch, [
|
|
7581
|
+
n.title ? (u(), d("title", bh, M(n.title), 1)) : L("", !0)
|
|
7582
7582
|
])
|
|
7583
|
-
], 8,
|
|
7584
|
-
], 16,
|
|
7583
|
+
], 8, Eh))
|
|
7584
|
+
], 16, vh);
|
|
7585
7585
|
}
|
|
7586
|
-
const
|
|
7586
|
+
const Lh = /* @__PURE__ */ H(yh, [["render", kh]]), Sh = ["href"], wh = ["src", "alt"], Nh = /* @__PURE__ */ de({
|
|
7587
7587
|
__name: "RowLink",
|
|
7588
7588
|
props: {
|
|
7589
7589
|
iconB64Svg: {},
|
|
@@ -7592,23 +7592,23 @@ const kh = /* @__PURE__ */ H(_h, [["render", bh]]), Lh = ["href"], Sh = ["src",
|
|
|
7592
7592
|
href: {}
|
|
7593
7593
|
},
|
|
7594
7594
|
setup(e) {
|
|
7595
|
-
const t = e, n =
|
|
7595
|
+
const t = e, n = G(() => t.href === void 0 ? `${t.routePath}/${vt(t.text)}` : t.href);
|
|
7596
7596
|
return (l, o) => (u(), d("a", {
|
|
7597
7597
|
href: n.value,
|
|
7598
7598
|
class: "row-link d-flex flex-grow-1 align-items-center gap-7 rounded"
|
|
7599
7599
|
}, [
|
|
7600
|
-
|
|
7600
|
+
v("img", {
|
|
7601
7601
|
src: l.iconB64Svg,
|
|
7602
7602
|
alt: `${l.text} icon`
|
|
7603
|
-
}, null, 8,
|
|
7603
|
+
}, null, 8, wh),
|
|
7604
7604
|
Ze(M(l.text) + " ", 1),
|
|
7605
|
-
V(
|
|
7606
|
-
], 8,
|
|
7605
|
+
V(Lh, { class: "ms-auto" })
|
|
7606
|
+
], 8, Sh));
|
|
7607
7607
|
}
|
|
7608
|
-
}), _i = /* @__PURE__ */ H(
|
|
7608
|
+
}), _i = /* @__PURE__ */ H(Nh, [["__scopeId", "data-v-a361531e"]]), Th = { class: "d-flex flex-column gap-4" }, Ah = {
|
|
7609
7609
|
key: 1,
|
|
7610
7610
|
class: "d-flex flex-column"
|
|
7611
|
-
},
|
|
7611
|
+
}, Ih = ["id"], Oh = { class: "d-flex flex-column" }, O_ = /* @__PURE__ */ de({
|
|
7612
7612
|
__name: "PluginIndex",
|
|
7613
7613
|
props: {
|
|
7614
7614
|
plugins: {},
|
|
@@ -7619,67 +7619,67 @@ const kh = /* @__PURE__ */ H(_h, [["render", bh]]), Lh = ["href"], Sh = ["src",
|
|
|
7619
7619
|
},
|
|
7620
7620
|
emits: ["goTo"],
|
|
7621
7621
|
setup(e) {
|
|
7622
|
-
const t = e, n =
|
|
7622
|
+
const t = e, n = G(() => t.plugins.find((m) => t.subGroup === void 0 ? !0 : vt(At(m)) === t.subGroup)), l = G(() => n.value?.longDescription ?? n.value?.description), o = G(() => t.plugins.filter((m) => m.name.toLowerCase() === t.pluginName.toLowerCase() && m.subGroup !== void 0)), i = (m) => {
|
|
7623
7623
|
let y = m.split(".");
|
|
7624
7624
|
return y?.[y.length - 1];
|
|
7625
7625
|
}, r = (m) => `${t.routePath}/${vt(m)}`, a = (m) => `${t.routePath}/${m}`;
|
|
7626
7626
|
function s(m) {
|
|
7627
7627
|
return Object.fromEntries(
|
|
7628
|
-
Object.entries(m).filter(([y, h]) => as(y, h)).map(([y, h]) => [y.replace(/[A-Z]/g, (
|
|
7628
|
+
Object.entries(m).filter(([y, h]) => as(y, h)).map(([y, h]) => [y.replace(/[A-Z]/g, (b) => ` ${b}`), h.filter(({ deprecated: b }) => !b).map(({ cls: b }) => b)])
|
|
7629
7629
|
);
|
|
7630
7630
|
}
|
|
7631
|
-
const c =
|
|
7632
|
-
return (m, y) => (u(), d("div",
|
|
7631
|
+
const c = G(() => s(n.value));
|
|
7632
|
+
return (m, y) => (u(), d("div", Th, [
|
|
7633
7633
|
l.value !== void 0 ? ae(m.$slots, "markdown", {
|
|
7634
7634
|
key: 0,
|
|
7635
7635
|
content: l.value.replace(/ *:(?![ /])/g, ": ")
|
|
7636
7636
|
}) : L("", !0),
|
|
7637
|
-
m.subGroup === void 0 && m.plugins.length > 1 ? (u(), d("div",
|
|
7637
|
+
m.subGroup === void 0 && m.plugins.length > 1 ? (u(), d("div", Ah, [
|
|
7638
7638
|
(u(!0), d(Ee, null, Xe(o.value, (h) => (u(), X(_i, {
|
|
7639
|
-
id: `group-${
|
|
7639
|
+
id: `group-${R(vt)(R(At)(h))}`,
|
|
7640
7640
|
"icon-b64-svg": "data:image/svg+xml;base64," + (m.icons[h.subGroup] ?? m.icons[h.group]),
|
|
7641
|
-
text:
|
|
7642
|
-
href: r(
|
|
7643
|
-
key:
|
|
7641
|
+
text: R(At)(h),
|
|
7642
|
+
href: r(R(At)(h)),
|
|
7643
|
+
key: R(At)(h),
|
|
7644
7644
|
"route-path": m.routePath,
|
|
7645
7645
|
class: "text-capitalize",
|
|
7646
|
-
onClick: (
|
|
7646
|
+
onClick: (b) => m.$emit("goTo", { subGroup: h })
|
|
7647
7647
|
}, null, 8, ["id", "icon-b64-svg", "text", "href", "route-path", "onClick"]))), 128))
|
|
7648
|
-
])) : (u(!0), d(Ee, { key: 2 }, Xe(c.value, (h,
|
|
7648
|
+
])) : (u(!0), d(Ee, { key: 2 }, Xe(c.value, (h, b) => (u(), d("div", {
|
|
7649
7649
|
class: "d-flex flex-column elements-section",
|
|
7650
|
-
key:
|
|
7650
|
+
key: b
|
|
7651
7651
|
}, [
|
|
7652
|
-
|
|
7653
|
-
id: `section-${
|
|
7652
|
+
v("h4", {
|
|
7653
|
+
id: `section-${R(vt)(b)}`,
|
|
7654
7654
|
class: "text-capitalize"
|
|
7655
|
-
}, M(
|
|
7656
|
-
|
|
7657
|
-
(u(!0), d(Ee, null, Xe(h, (
|
|
7658
|
-
id:
|
|
7659
|
-
"icon-b64-svg": "data:image/svg+xml;base64," + (m.icons[
|
|
7660
|
-
text: i(
|
|
7661
|
-
href: a(
|
|
7662
|
-
key:
|
|
7655
|
+
}, M(b), 9, Ih),
|
|
7656
|
+
v("div", Oh, [
|
|
7657
|
+
(u(!0), d(Ee, null, Xe(h, (N) => (u(), X(_i, {
|
|
7658
|
+
id: R(vt)(N),
|
|
7659
|
+
"icon-b64-svg": "data:image/svg+xml;base64," + (m.icons[N] ?? m.icons[n.value.subGroup ?? n.value.group] ?? m.icons[n.value.group]),
|
|
7660
|
+
text: i(N),
|
|
7661
|
+
href: a(N),
|
|
7662
|
+
key: N,
|
|
7663
7663
|
"route-path": m.routePath,
|
|
7664
7664
|
class: "text-capitalize",
|
|
7665
|
-
onClick: (
|
|
7665
|
+
onClick: (T) => m.$emit("goTo", { element: N })
|
|
7666
7666
|
}, null, 8, ["id", "icon-b64-svg", "text", "href", "route-path", "onClick"]))), 128))
|
|
7667
7667
|
])
|
|
7668
7668
|
]))), 128))
|
|
7669
7669
|
]));
|
|
7670
7670
|
}
|
|
7671
|
-
}),
|
|
7672
|
-
function
|
|
7671
|
+
}), $h = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, Dh = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, Rh = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
7672
|
+
function Ph(e, t) {
|
|
7673
7673
|
if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
7674
|
-
|
|
7674
|
+
Mh(e);
|
|
7675
7675
|
return;
|
|
7676
7676
|
}
|
|
7677
7677
|
return t;
|
|
7678
7678
|
}
|
|
7679
|
-
function
|
|
7679
|
+
function Mh(e) {
|
|
7680
7680
|
console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
|
|
7681
7681
|
}
|
|
7682
|
-
function
|
|
7682
|
+
function Vh(e, t = {}) {
|
|
7683
7683
|
if (typeof e != "string")
|
|
7684
7684
|
return e;
|
|
7685
7685
|
if (e[0] === '"' && e[e.length - 1] === '"' && e.indexOf("\\") === -1)
|
|
@@ -7702,16 +7702,16 @@ function Mh(e, t = {}) {
|
|
|
7702
7702
|
case "-infinity":
|
|
7703
7703
|
return Number.NEGATIVE_INFINITY;
|
|
7704
7704
|
}
|
|
7705
|
-
if (!
|
|
7705
|
+
if (!Rh.test(e)) {
|
|
7706
7706
|
if (t.strict)
|
|
7707
7707
|
throw new SyntaxError("[destr] Invalid JSON");
|
|
7708
7708
|
return e;
|
|
7709
7709
|
}
|
|
7710
7710
|
try {
|
|
7711
|
-
if (
|
|
7711
|
+
if ($h.test(e) || Dh.test(e)) {
|
|
7712
7712
|
if (t.strict)
|
|
7713
7713
|
throw new Error("[destr] Possible prototype pollution");
|
|
7714
|
-
return JSON.parse(e,
|
|
7714
|
+
return JSON.parse(e, Ph);
|
|
7715
7715
|
}
|
|
7716
7716
|
return JSON.parse(e);
|
|
7717
7717
|
} catch (l) {
|
|
@@ -7720,13 +7720,13 @@ function Mh(e, t = {}) {
|
|
|
7720
7720
|
return e;
|
|
7721
7721
|
}
|
|
7722
7722
|
}
|
|
7723
|
-
const
|
|
7724
|
-
function
|
|
7725
|
-
if (!
|
|
7723
|
+
const xh = /\d/, Uh = ["-", "_", "/", "."];
|
|
7724
|
+
function Fh(e = "") {
|
|
7725
|
+
if (!xh.test(e))
|
|
7726
7726
|
return e !== e.toLowerCase();
|
|
7727
7727
|
}
|
|
7728
7728
|
function No(e, t) {
|
|
7729
|
-
const n =
|
|
7729
|
+
const n = Uh, l = [];
|
|
7730
7730
|
if (!e || typeof e != "string")
|
|
7731
7731
|
return l;
|
|
7732
7732
|
let o = "", i, r;
|
|
@@ -7736,7 +7736,7 @@ function No(e, t) {
|
|
|
7736
7736
|
l.push(o), o = "", i = void 0;
|
|
7737
7737
|
continue;
|
|
7738
7738
|
}
|
|
7739
|
-
const c =
|
|
7739
|
+
const c = Fh(a);
|
|
7740
7740
|
if (r === !1) {
|
|
7741
7741
|
if (i === !1 && c === !0) {
|
|
7742
7742
|
l.push(o), o = a, i = c;
|
|
@@ -7752,13 +7752,13 @@ function No(e, t) {
|
|
|
7752
7752
|
}
|
|
7753
7753
|
return l.push(o), l;
|
|
7754
7754
|
}
|
|
7755
|
-
function
|
|
7755
|
+
function Hh(e) {
|
|
7756
7756
|
return e ? e[0].toUpperCase() + e.slice(1) : "";
|
|
7757
7757
|
}
|
|
7758
7758
|
function To(e, t) {
|
|
7759
|
-
return e ? (Array.isArray(e) ? e : No(e)).map((n) =>
|
|
7759
|
+
return e ? (Array.isArray(e) ? e : No(e)).map((n) => Hh(n)).join("") : "";
|
|
7760
7760
|
}
|
|
7761
|
-
function
|
|
7761
|
+
function Bh(e, t) {
|
|
7762
7762
|
return e ? (Array.isArray(e) ? e : No(e)).map((n) => n.toLowerCase()).join("-") : "";
|
|
7763
7763
|
}
|
|
7764
7764
|
class xt {
|
|
@@ -7813,10 +7813,10 @@ Oe.prototype.overloadedBoolean = !1;
|
|
|
7813
7813
|
Oe.prototype.property = "";
|
|
7814
7814
|
Oe.prototype.spaceSeparated = !1;
|
|
7815
7815
|
Oe.prototype.space = void 0;
|
|
7816
|
-
let
|
|
7817
|
-
const q = pt(), Ce = pt(), qn = pt(),
|
|
7816
|
+
let zh = 0;
|
|
7817
|
+
const q = pt(), Ce = pt(), qn = pt(), $ = pt(), ce = pt(), Ct = pt(), De = pt();
|
|
7818
7818
|
function pt() {
|
|
7819
|
-
return 2 ** ++
|
|
7819
|
+
return 2 ** ++zh;
|
|
7820
7820
|
}
|
|
7821
7821
|
const Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7822
7822
|
__proto__: null,
|
|
@@ -7824,7 +7824,7 @@ const Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7824
7824
|
booleanish: Ce,
|
|
7825
7825
|
commaOrSpaceSeparated: De,
|
|
7826
7826
|
commaSeparated: Ct,
|
|
7827
|
-
number:
|
|
7827
|
+
number: $,
|
|
7828
7828
|
overloadedBoolean: qn,
|
|
7829
7829
|
spaceSeparated: ce
|
|
7830
7830
|
}, Symbol.toStringTag, { value: "Module" })), Dn = (
|
|
@@ -7878,9 +7878,9 @@ const Io = St({
|
|
|
7878
7878
|
ariaAutoComplete: null,
|
|
7879
7879
|
ariaBusy: Ce,
|
|
7880
7880
|
ariaChecked: Ce,
|
|
7881
|
-
ariaColCount:
|
|
7882
|
-
ariaColIndex:
|
|
7883
|
-
ariaColSpan:
|
|
7881
|
+
ariaColCount: $,
|
|
7882
|
+
ariaColIndex: $,
|
|
7883
|
+
ariaColSpan: $,
|
|
7884
7884
|
ariaControls: ce,
|
|
7885
7885
|
ariaCurrent: null,
|
|
7886
7886
|
ariaDescribedBy: ce,
|
|
@@ -7897,7 +7897,7 @@ const Io = St({
|
|
|
7897
7897
|
ariaKeyShortcuts: null,
|
|
7898
7898
|
ariaLabel: null,
|
|
7899
7899
|
ariaLabelledBy: ce,
|
|
7900
|
-
ariaLevel:
|
|
7900
|
+
ariaLevel: $,
|
|
7901
7901
|
ariaLive: null,
|
|
7902
7902
|
ariaModal: Ce,
|
|
7903
7903
|
ariaMultiLine: Ce,
|
|
@@ -7905,21 +7905,21 @@ const Io = St({
|
|
|
7905
7905
|
ariaOrientation: null,
|
|
7906
7906
|
ariaOwns: ce,
|
|
7907
7907
|
ariaPlaceholder: null,
|
|
7908
|
-
ariaPosInSet:
|
|
7908
|
+
ariaPosInSet: $,
|
|
7909
7909
|
ariaPressed: Ce,
|
|
7910
7910
|
ariaReadOnly: Ce,
|
|
7911
7911
|
ariaRelevant: null,
|
|
7912
7912
|
ariaRequired: Ce,
|
|
7913
7913
|
ariaRoleDescription: ce,
|
|
7914
|
-
ariaRowCount:
|
|
7915
|
-
ariaRowIndex:
|
|
7916
|
-
ariaRowSpan:
|
|
7914
|
+
ariaRowCount: $,
|
|
7915
|
+
ariaRowIndex: $,
|
|
7916
|
+
ariaRowSpan: $,
|
|
7917
7917
|
ariaSelected: Ce,
|
|
7918
|
-
ariaSetSize:
|
|
7918
|
+
ariaSetSize: $,
|
|
7919
7919
|
ariaSort: null,
|
|
7920
|
-
ariaValueMax:
|
|
7921
|
-
ariaValueMin:
|
|
7922
|
-
ariaValueNow:
|
|
7920
|
+
ariaValueMax: $,
|
|
7921
|
+
ariaValueMin: $,
|
|
7922
|
+
ariaValueNow: $,
|
|
7923
7923
|
ariaValueText: null,
|
|
7924
7924
|
role: null
|
|
7925
7925
|
},
|
|
@@ -7933,7 +7933,7 @@ function Oo(e, t) {
|
|
|
7933
7933
|
function $o(e, t) {
|
|
7934
7934
|
return Oo(e, t.toLowerCase());
|
|
7935
7935
|
}
|
|
7936
|
-
const
|
|
7936
|
+
const Gh = St({
|
|
7937
7937
|
attributes: {
|
|
7938
7938
|
acceptcharset: "accept-charset",
|
|
7939
7939
|
classname: "class",
|
|
@@ -7965,13 +7965,13 @@ const zh = St({
|
|
|
7965
7965
|
checked: q,
|
|
7966
7966
|
cite: null,
|
|
7967
7967
|
className: ce,
|
|
7968
|
-
cols:
|
|
7968
|
+
cols: $,
|
|
7969
7969
|
colSpan: null,
|
|
7970
7970
|
content: null,
|
|
7971
7971
|
contentEditable: Ce,
|
|
7972
7972
|
controls: q,
|
|
7973
7973
|
controlsList: ce,
|
|
7974
|
-
coords:
|
|
7974
|
+
coords: $ | Ct,
|
|
7975
7975
|
crossOrigin: null,
|
|
7976
7976
|
data: null,
|
|
7977
7977
|
dateTime: null,
|
|
@@ -7993,9 +7993,9 @@ const zh = St({
|
|
|
7993
7993
|
formNoValidate: q,
|
|
7994
7994
|
formTarget: null,
|
|
7995
7995
|
headers: ce,
|
|
7996
|
-
height:
|
|
7996
|
+
height: $,
|
|
7997
7997
|
hidden: qn,
|
|
7998
|
-
high:
|
|
7998
|
+
high: $,
|
|
7999
7999
|
href: null,
|
|
8000
8000
|
hrefLang: null,
|
|
8001
8001
|
htmlFor: ce,
|
|
@@ -8020,14 +8020,14 @@ const zh = St({
|
|
|
8020
8020
|
list: null,
|
|
8021
8021
|
loading: null,
|
|
8022
8022
|
loop: q,
|
|
8023
|
-
low:
|
|
8023
|
+
low: $,
|
|
8024
8024
|
manifest: null,
|
|
8025
8025
|
max: null,
|
|
8026
|
-
maxLength:
|
|
8026
|
+
maxLength: $,
|
|
8027
8027
|
media: null,
|
|
8028
8028
|
method: null,
|
|
8029
8029
|
min: null,
|
|
8030
|
-
minLength:
|
|
8030
|
+
minLength: $,
|
|
8031
8031
|
multiple: q,
|
|
8032
8032
|
muted: q,
|
|
8033
8033
|
name: null,
|
|
@@ -8123,7 +8123,7 @@ const zh = St({
|
|
|
8123
8123
|
onWaiting: null,
|
|
8124
8124
|
onWheel: null,
|
|
8125
8125
|
open: q,
|
|
8126
|
-
optimum:
|
|
8126
|
+
optimum: $,
|
|
8127
8127
|
pattern: null,
|
|
8128
8128
|
ping: ce,
|
|
8129
8129
|
placeholder: null,
|
|
@@ -8138,8 +8138,8 @@ const zh = St({
|
|
|
8138
8138
|
rel: ce,
|
|
8139
8139
|
required: q,
|
|
8140
8140
|
reversed: q,
|
|
8141
|
-
rows:
|
|
8142
|
-
rowSpan:
|
|
8141
|
+
rows: $,
|
|
8142
|
+
rowSpan: $,
|
|
8143
8143
|
sandbox: ce,
|
|
8144
8144
|
scope: null,
|
|
8145
8145
|
scoped: q,
|
|
@@ -8149,19 +8149,19 @@ const zh = St({
|
|
|
8149
8149
|
shadowRootDelegatesFocus: q,
|
|
8150
8150
|
shadowRootMode: null,
|
|
8151
8151
|
shape: null,
|
|
8152
|
-
size:
|
|
8152
|
+
size: $,
|
|
8153
8153
|
sizes: null,
|
|
8154
8154
|
slot: null,
|
|
8155
|
-
span:
|
|
8155
|
+
span: $,
|
|
8156
8156
|
spellCheck: Ce,
|
|
8157
8157
|
src: null,
|
|
8158
8158
|
srcDoc: null,
|
|
8159
8159
|
srcLang: null,
|
|
8160
8160
|
srcSet: null,
|
|
8161
|
-
start:
|
|
8161
|
+
start: $,
|
|
8162
8162
|
step: null,
|
|
8163
8163
|
style: null,
|
|
8164
|
-
tabIndex:
|
|
8164
|
+
tabIndex: $,
|
|
8165
8165
|
target: null,
|
|
8166
8166
|
title: null,
|
|
8167
8167
|
translate: null,
|
|
@@ -8169,7 +8169,7 @@ const zh = St({
|
|
|
8169
8169
|
typeMustMatch: q,
|
|
8170
8170
|
useMap: null,
|
|
8171
8171
|
value: Ce,
|
|
8172
|
-
width:
|
|
8172
|
+
width: $,
|
|
8173
8173
|
wrap: null,
|
|
8174
8174
|
writingSuggestions: null,
|
|
8175
8175
|
// Legacy.
|
|
@@ -8186,11 +8186,11 @@ const zh = St({
|
|
|
8186
8186
|
// `<body>`. Use CSS `background-image` instead
|
|
8187
8187
|
bgColor: null,
|
|
8188
8188
|
// `<body>` and table elements. Use CSS `background-color` instead
|
|
8189
|
-
border:
|
|
8189
|
+
border: $,
|
|
8190
8190
|
// `<table>`. Use CSS `border-width` instead,
|
|
8191
8191
|
borderColor: null,
|
|
8192
8192
|
// `<table>`. Use CSS `border-color` instead,
|
|
8193
|
-
bottomMargin:
|
|
8193
|
+
bottomMargin: $,
|
|
8194
8194
|
// `<body>`
|
|
8195
8195
|
cellPadding: null,
|
|
8196
8196
|
// `<table>`
|
|
@@ -8224,9 +8224,9 @@ const zh = St({
|
|
|
8224
8224
|
// `<table>`
|
|
8225
8225
|
frameBorder: null,
|
|
8226
8226
|
// `<iframe>`. Use CSS `border` instead
|
|
8227
|
-
hSpace:
|
|
8227
|
+
hSpace: $,
|
|
8228
8228
|
// `<img>` and `<object>`
|
|
8229
|
-
leftMargin:
|
|
8229
|
+
leftMargin: $,
|
|
8230
8230
|
// `<body>`
|
|
8231
8231
|
link: null,
|
|
8232
8232
|
// `<body>`. Use CSS `a:link {color: *}` instead
|
|
@@ -8234,9 +8234,9 @@ const zh = St({
|
|
|
8234
8234
|
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
|
8235
8235
|
lowSrc: null,
|
|
8236
8236
|
// `<img>`. Use a `<picture>`
|
|
8237
|
-
marginHeight:
|
|
8237
|
+
marginHeight: $,
|
|
8238
8238
|
// `<body>`
|
|
8239
|
-
marginWidth:
|
|
8239
|
+
marginWidth: $,
|
|
8240
8240
|
// `<body>`
|
|
8241
8241
|
noResize: q,
|
|
8242
8242
|
// `<frame>`
|
|
@@ -8254,7 +8254,7 @@ const zh = St({
|
|
|
8254
8254
|
// `<isindex>`
|
|
8255
8255
|
rev: null,
|
|
8256
8256
|
// `<link>`
|
|
8257
|
-
rightMargin:
|
|
8257
|
+
rightMargin: $,
|
|
8258
8258
|
// `<body>`
|
|
8259
8259
|
rules: null,
|
|
8260
8260
|
// `<table>`
|
|
@@ -8268,7 +8268,7 @@ const zh = St({
|
|
|
8268
8268
|
// `<table>`
|
|
8269
8269
|
text: null,
|
|
8270
8270
|
// `<body>`. Use CSS `color` instead
|
|
8271
|
-
topMargin:
|
|
8271
|
+
topMargin: $,
|
|
8272
8272
|
// `<body>`
|
|
8273
8273
|
valueType: null,
|
|
8274
8274
|
// `<param>`
|
|
@@ -8278,7 +8278,7 @@ const zh = St({
|
|
|
8278
8278
|
// Several. Use CSS `vertical-align` instead
|
|
8279
8279
|
vLink: null,
|
|
8280
8280
|
// `<body>`. Use CSS `a:visited {color}` instead
|
|
8281
|
-
vSpace:
|
|
8281
|
+
vSpace: $,
|
|
8282
8282
|
// `<img>` and `<object>`
|
|
8283
8283
|
// Non-standard Properties.
|
|
8284
8284
|
allowTransparency: null,
|
|
@@ -8288,13 +8288,13 @@ const zh = St({
|
|
|
8288
8288
|
disableRemotePlayback: q,
|
|
8289
8289
|
prefix: null,
|
|
8290
8290
|
property: null,
|
|
8291
|
-
results:
|
|
8291
|
+
results: $,
|
|
8292
8292
|
security: null,
|
|
8293
8293
|
unselectable: null
|
|
8294
8294
|
},
|
|
8295
8295
|
space: "html",
|
|
8296
8296
|
transform: $o
|
|
8297
|
-
}),
|
|
8297
|
+
}), Wh = St({
|
|
8298
8298
|
attributes: {
|
|
8299
8299
|
accentHeight: "accent-height",
|
|
8300
8300
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -8472,27 +8472,27 @@ const zh = St({
|
|
|
8472
8472
|
},
|
|
8473
8473
|
properties: {
|
|
8474
8474
|
about: De,
|
|
8475
|
-
accentHeight:
|
|
8475
|
+
accentHeight: $,
|
|
8476
8476
|
accumulate: null,
|
|
8477
8477
|
additive: null,
|
|
8478
8478
|
alignmentBaseline: null,
|
|
8479
|
-
alphabetic:
|
|
8480
|
-
amplitude:
|
|
8479
|
+
alphabetic: $,
|
|
8480
|
+
amplitude: $,
|
|
8481
8481
|
arabicForm: null,
|
|
8482
|
-
ascent:
|
|
8482
|
+
ascent: $,
|
|
8483
8483
|
attributeName: null,
|
|
8484
8484
|
attributeType: null,
|
|
8485
|
-
azimuth:
|
|
8485
|
+
azimuth: $,
|
|
8486
8486
|
bandwidth: null,
|
|
8487
8487
|
baselineShift: null,
|
|
8488
8488
|
baseFrequency: null,
|
|
8489
8489
|
baseProfile: null,
|
|
8490
8490
|
bbox: null,
|
|
8491
8491
|
begin: null,
|
|
8492
|
-
bias:
|
|
8492
|
+
bias: $,
|
|
8493
8493
|
by: null,
|
|
8494
8494
|
calcMode: null,
|
|
8495
|
-
capHeight:
|
|
8495
|
+
capHeight: $,
|
|
8496
8496
|
className: ce,
|
|
8497
8497
|
clip: null,
|
|
8498
8498
|
clipPath: null,
|
|
@@ -8513,26 +8513,26 @@ const zh = St({
|
|
|
8513
8513
|
d: null,
|
|
8514
8514
|
dataType: null,
|
|
8515
8515
|
defaultAction: null,
|
|
8516
|
-
descent:
|
|
8517
|
-
diffuseConstant:
|
|
8516
|
+
descent: $,
|
|
8517
|
+
diffuseConstant: $,
|
|
8518
8518
|
direction: null,
|
|
8519
8519
|
display: null,
|
|
8520
8520
|
dur: null,
|
|
8521
|
-
divisor:
|
|
8521
|
+
divisor: $,
|
|
8522
8522
|
dominantBaseline: null,
|
|
8523
8523
|
download: q,
|
|
8524
8524
|
dx: null,
|
|
8525
8525
|
dy: null,
|
|
8526
8526
|
edgeMode: null,
|
|
8527
8527
|
editable: null,
|
|
8528
|
-
elevation:
|
|
8528
|
+
elevation: $,
|
|
8529
8529
|
enableBackground: null,
|
|
8530
8530
|
end: null,
|
|
8531
8531
|
event: null,
|
|
8532
|
-
exponent:
|
|
8532
|
+
exponent: $,
|
|
8533
8533
|
externalResourcesRequired: null,
|
|
8534
8534
|
fill: null,
|
|
8535
|
-
fillOpacity:
|
|
8535
|
+
fillOpacity: $,
|
|
8536
8536
|
fillRule: null,
|
|
8537
8537
|
filter: null,
|
|
8538
8538
|
filterRes: null,
|
|
@@ -8562,27 +8562,27 @@ const zh = St({
|
|
|
8562
8562
|
gradientTransform: null,
|
|
8563
8563
|
gradientUnits: null,
|
|
8564
8564
|
handler: null,
|
|
8565
|
-
hanging:
|
|
8565
|
+
hanging: $,
|
|
8566
8566
|
hatchContentUnits: null,
|
|
8567
8567
|
hatchUnits: null,
|
|
8568
8568
|
height: null,
|
|
8569
8569
|
href: null,
|
|
8570
8570
|
hrefLang: null,
|
|
8571
|
-
horizAdvX:
|
|
8572
|
-
horizOriginX:
|
|
8573
|
-
horizOriginY:
|
|
8571
|
+
horizAdvX: $,
|
|
8572
|
+
horizOriginX: $,
|
|
8573
|
+
horizOriginY: $,
|
|
8574
8574
|
id: null,
|
|
8575
|
-
ideographic:
|
|
8575
|
+
ideographic: $,
|
|
8576
8576
|
imageRendering: null,
|
|
8577
8577
|
initialVisibility: null,
|
|
8578
8578
|
in: null,
|
|
8579
8579
|
in2: null,
|
|
8580
|
-
intercept:
|
|
8581
|
-
k:
|
|
8582
|
-
k1:
|
|
8583
|
-
k2:
|
|
8584
|
-
k3:
|
|
8585
|
-
k4:
|
|
8580
|
+
intercept: $,
|
|
8581
|
+
k: $,
|
|
8582
|
+
k1: $,
|
|
8583
|
+
k2: $,
|
|
8584
|
+
k3: $,
|
|
8585
|
+
k4: $,
|
|
8586
8586
|
kernelMatrix: De,
|
|
8587
8587
|
kernelUnitLength: null,
|
|
8588
8588
|
keyPoints: null,
|
|
@@ -8596,7 +8596,7 @@ const zh = St({
|
|
|
8596
8596
|
lengthAdjust: null,
|
|
8597
8597
|
letterSpacing: null,
|
|
8598
8598
|
lightingColor: null,
|
|
8599
|
-
limitingConeAngle:
|
|
8599
|
+
limitingConeAngle: $,
|
|
8600
8600
|
local: null,
|
|
8601
8601
|
markerEnd: null,
|
|
8602
8602
|
markerMid: null,
|
|
@@ -8612,7 +8612,7 @@ const zh = St({
|
|
|
8612
8612
|
media: null,
|
|
8613
8613
|
mediaCharacterEncoding: null,
|
|
8614
8614
|
mediaContentEncodings: null,
|
|
8615
|
-
mediaSize:
|
|
8615
|
+
mediaSize: $,
|
|
8616
8616
|
mediaTime: null,
|
|
8617
8617
|
method: null,
|
|
8618
8618
|
min: null,
|
|
@@ -8718,12 +8718,12 @@ const zh = St({
|
|
|
8718
8718
|
origin: null,
|
|
8719
8719
|
overflow: null,
|
|
8720
8720
|
overlay: null,
|
|
8721
|
-
overlinePosition:
|
|
8722
|
-
overlineThickness:
|
|
8721
|
+
overlinePosition: $,
|
|
8722
|
+
overlineThickness: $,
|
|
8723
8723
|
paintOrder: null,
|
|
8724
8724
|
panose1: null,
|
|
8725
8725
|
path: null,
|
|
8726
|
-
pathLength:
|
|
8726
|
+
pathLength: $,
|
|
8727
8727
|
patternContentUnits: null,
|
|
8728
8728
|
patternTransform: null,
|
|
8729
8729
|
patternUnits: null,
|
|
@@ -8733,9 +8733,9 @@ const zh = St({
|
|
|
8733
8733
|
playbackOrder: null,
|
|
8734
8734
|
pointerEvents: null,
|
|
8735
8735
|
points: null,
|
|
8736
|
-
pointsAtX:
|
|
8737
|
-
pointsAtY:
|
|
8738
|
-
pointsAtZ:
|
|
8736
|
+
pointsAtX: $,
|
|
8737
|
+
pointsAtY: $,
|
|
8738
|
+
pointsAtZ: $,
|
|
8739
8739
|
preserveAlpha: null,
|
|
8740
8740
|
preserveAspectRatio: null,
|
|
8741
8741
|
primitiveUnits: null,
|
|
@@ -8767,8 +8767,8 @@ const zh = St({
|
|
|
8767
8767
|
side: null,
|
|
8768
8768
|
slope: null,
|
|
8769
8769
|
snapshotTime: null,
|
|
8770
|
-
specularConstant:
|
|
8771
|
-
specularExponent:
|
|
8770
|
+
specularConstant: $,
|
|
8771
|
+
specularExponent: $,
|
|
8772
8772
|
spreadMethod: null,
|
|
8773
8773
|
spacing: null,
|
|
8774
8774
|
startOffset: null,
|
|
@@ -8778,30 +8778,30 @@ const zh = St({
|
|
|
8778
8778
|
stitchTiles: null,
|
|
8779
8779
|
stopColor: null,
|
|
8780
8780
|
stopOpacity: null,
|
|
8781
|
-
strikethroughPosition:
|
|
8782
|
-
strikethroughThickness:
|
|
8781
|
+
strikethroughPosition: $,
|
|
8782
|
+
strikethroughThickness: $,
|
|
8783
8783
|
string: null,
|
|
8784
8784
|
stroke: null,
|
|
8785
8785
|
strokeDashArray: De,
|
|
8786
8786
|
strokeDashOffset: null,
|
|
8787
8787
|
strokeLineCap: null,
|
|
8788
8788
|
strokeLineJoin: null,
|
|
8789
|
-
strokeMiterLimit:
|
|
8790
|
-
strokeOpacity:
|
|
8789
|
+
strokeMiterLimit: $,
|
|
8790
|
+
strokeOpacity: $,
|
|
8791
8791
|
strokeWidth: null,
|
|
8792
8792
|
style: null,
|
|
8793
|
-
surfaceScale:
|
|
8793
|
+
surfaceScale: $,
|
|
8794
8794
|
syncBehavior: null,
|
|
8795
8795
|
syncBehaviorDefault: null,
|
|
8796
8796
|
syncMaster: null,
|
|
8797
8797
|
syncTolerance: null,
|
|
8798
8798
|
syncToleranceDefault: null,
|
|
8799
8799
|
systemLanguage: De,
|
|
8800
|
-
tabIndex:
|
|
8800
|
+
tabIndex: $,
|
|
8801
8801
|
tableValues: null,
|
|
8802
8802
|
target: null,
|
|
8803
|
-
targetX:
|
|
8804
|
-
targetY:
|
|
8803
|
+
targetX: $,
|
|
8804
|
+
targetY: $,
|
|
8805
8805
|
textAnchor: null,
|
|
8806
8806
|
textDecoration: null,
|
|
8807
8807
|
textRendering: null,
|
|
@@ -8816,22 +8816,22 @@ const zh = St({
|
|
|
8816
8816
|
transformOrigin: null,
|
|
8817
8817
|
u1: null,
|
|
8818
8818
|
u2: null,
|
|
8819
|
-
underlinePosition:
|
|
8820
|
-
underlineThickness:
|
|
8819
|
+
underlinePosition: $,
|
|
8820
|
+
underlineThickness: $,
|
|
8821
8821
|
unicode: null,
|
|
8822
8822
|
unicodeBidi: null,
|
|
8823
8823
|
unicodeRange: null,
|
|
8824
|
-
unitsPerEm:
|
|
8824
|
+
unitsPerEm: $,
|
|
8825
8825
|
values: null,
|
|
8826
|
-
vAlphabetic:
|
|
8827
|
-
vMathematical:
|
|
8826
|
+
vAlphabetic: $,
|
|
8827
|
+
vMathematical: $,
|
|
8828
8828
|
vectorEffect: null,
|
|
8829
|
-
vHanging:
|
|
8830
|
-
vIdeographic:
|
|
8829
|
+
vHanging: $,
|
|
8830
|
+
vIdeographic: $,
|
|
8831
8831
|
version: null,
|
|
8832
|
-
vertAdvY:
|
|
8833
|
-
vertOriginX:
|
|
8834
|
-
vertOriginY:
|
|
8832
|
+
vertAdvY: $,
|
|
8833
|
+
vertOriginX: $,
|
|
8834
|
+
vertOriginY: $,
|
|
8835
8835
|
viewBox: null,
|
|
8836
8836
|
viewTarget: null,
|
|
8837
8837
|
visibility: null,
|
|
@@ -8843,7 +8843,7 @@ const zh = St({
|
|
|
8843
8843
|
x1: null,
|
|
8844
8844
|
x2: null,
|
|
8845
8845
|
xChannelSelector: null,
|
|
8846
|
-
xHeight:
|
|
8846
|
+
xHeight: $,
|
|
8847
8847
|
y: null,
|
|
8848
8848
|
y1: null,
|
|
8849
8849
|
y2: null,
|
|
@@ -8878,20 +8878,20 @@ const zh = St({
|
|
|
8878
8878
|
transform(e, t) {
|
|
8879
8879
|
return "xml:" + t.slice(3).toLowerCase();
|
|
8880
8880
|
}
|
|
8881
|
-
}),
|
|
8882
|
-
function
|
|
8881
|
+
}), jh = /[A-Z]/g, vi = /-[a-z]/g, Kh = /^data[-\w.:]+$/i;
|
|
8882
|
+
function Yh(e, t) {
|
|
8883
8883
|
const n = Yn(t);
|
|
8884
8884
|
let l = t, o = Oe;
|
|
8885
8885
|
if (n in e.normal)
|
|
8886
8886
|
return e.property[e.normal[n]];
|
|
8887
|
-
if (n.length > 4 && n.slice(0, 4) === "data" &&
|
|
8887
|
+
if (n.length > 4 && n.slice(0, 4) === "data" && Kh.test(t)) {
|
|
8888
8888
|
if (t.charAt(4) === "-") {
|
|
8889
|
-
const i = t.slice(5).replace(vi,
|
|
8889
|
+
const i = t.slice(5).replace(vi, Xh);
|
|
8890
8890
|
l = "data" + i.charAt(0).toUpperCase() + i.slice(1);
|
|
8891
8891
|
} else {
|
|
8892
8892
|
const i = t.slice(4);
|
|
8893
8893
|
if (!vi.test(i)) {
|
|
8894
|
-
let r = i.replace(
|
|
8894
|
+
let r = i.replace(jh, qh);
|
|
8895
8895
|
r.charAt(0) !== "-" && (r = "-" + r), t = "data" + r;
|
|
8896
8896
|
}
|
|
8897
8897
|
}
|
|
@@ -8899,13 +8899,13 @@ function Kh(e, t) {
|
|
|
8899
8899
|
}
|
|
8900
8900
|
return new o(l, t);
|
|
8901
8901
|
}
|
|
8902
|
-
function
|
|
8902
|
+
function qh(e) {
|
|
8903
8903
|
return "-" + e.toLowerCase();
|
|
8904
8904
|
}
|
|
8905
|
-
function
|
|
8905
|
+
function Xh(e) {
|
|
8906
8906
|
return e.charAt(1).toUpperCase();
|
|
8907
8907
|
}
|
|
8908
|
-
const
|
|
8908
|
+
const Zh = Ao([Io, Gh, Do, Ro, Po], "html"), $_ = Ao([Io, Wh, Do, Ro, Po], "svg"), pl = [
|
|
8909
8909
|
"a",
|
|
8910
8910
|
"abbr",
|
|
8911
8911
|
"address",
|
|
@@ -9023,7 +9023,7 @@ const Xh = Ao([Io, zh, Do, Ro, Po], "html"), O_ = Ao([Io, Gh, Do, Ro, Po], "svg"
|
|
|
9023
9023
|
"var",
|
|
9024
9024
|
"video",
|
|
9025
9025
|
"wbr"
|
|
9026
|
-
],
|
|
9026
|
+
], Jh = ["p", "h1", "h2", "h3", "h4", "h5", "h6", "li"];
|
|
9027
9027
|
function sn(e, t) {
|
|
9028
9028
|
return e.type === t || typeof e.type == "object" && e.type.tag === t || e.tag === t;
|
|
9029
9029
|
}
|
|
@@ -9047,7 +9047,7 @@ function Vo(e, t = []) {
|
|
|
9047
9047
|
if (Array.isArray(e))
|
|
9048
9048
|
return e.flatMap((l) => Vo(l, t));
|
|
9049
9049
|
let n = e;
|
|
9050
|
-
return t.some((l) => l === "*" || sn(e, l)) && (n = Mo(e) || e, !Array.isArray(n) &&
|
|
9050
|
+
return t.some((l) => l === "*" || sn(e, l)) && (n = Mo(e) || e, !Array.isArray(n) && Jh.some((l) => sn(e, l)) && (n = [n])), n;
|
|
9051
9051
|
}
|
|
9052
9052
|
function xo(e, t = []) {
|
|
9053
9053
|
return e = Array.isArray(e) ? e : [e], t.length ? e.flatMap((n) => xo(Vo(n, [t[0]]), t.slice(1))).filter((n) => !(gl(n) && un(n).trim() === "")) : e;
|
|
@@ -9055,16 +9055,16 @@ function xo(e, t = []) {
|
|
|
9055
9055
|
function Uo(e, t = []) {
|
|
9056
9056
|
return typeof t == "string" && (t = t.split(/[,\s]/).map((n) => n.trim()).filter(Boolean)), t.length ? xo(e, t).reduce((n, l) => (gl(l) ? typeof n[n.length - 1] == "string" ? n[n.length - 1] += l.children : n.push(l.children) : n.push(l), n), []) : e;
|
|
9057
9057
|
}
|
|
9058
|
-
function
|
|
9058
|
+
function Qh(e, t) {
|
|
9059
9059
|
return t.reduce((n, l) => {
|
|
9060
|
-
const o =
|
|
9060
|
+
const o = e_(e, l);
|
|
9061
9061
|
return o !== void 0 && (n[l] = o), n;
|
|
9062
9062
|
}, {});
|
|
9063
9063
|
}
|
|
9064
|
-
function
|
|
9064
|
+
function e_(e, t) {
|
|
9065
9065
|
return t.split(".").reduce((n, l) => n && n[l], e);
|
|
9066
9066
|
}
|
|
9067
|
-
const Zn = "default", Fo = /^@|^v-on:/, Ho = /^:|^v-bind:/,
|
|
9067
|
+
const Zn = "default", Fo = /^@|^v-on:/, Ho = /^:|^v-bind:/, t_ = /^v-model/, n_ = ["select", "textarea", "input"], l_ = ["math", "svg"], i_ = Object.fromEntries(["p", "a", "blockquote", "code", "pre", "code", "em", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "img", "ul", "ol", "li", "strong", "table", "thead", "tbody", "td", "th", "tr", "script"].map((e) => [e, `prose-${e}`])), o_ = ["script", "base"], r_ = de({
|
|
9068
9068
|
name: "MDCRenderer",
|
|
9069
9069
|
props: {
|
|
9070
9070
|
/**
|
|
@@ -9119,12 +9119,12 @@ const Zn = "default", Fo = /^@|^v-on:/, Ho = /^:|^v-bind:/, e_ = /^v-model/, t_
|
|
|
9119
9119
|
}
|
|
9120
9120
|
},
|
|
9121
9121
|
async setup(e) {
|
|
9122
|
-
const n = cn()?.appContext?.app?.$nuxt, l = n?.$route || n?._route, { mdc: o } = n?.$config?.public || {}, i =
|
|
9123
|
-
...o?.components?.prose && e.prose !== !1 ?
|
|
9122
|
+
const n = cn()?.appContext?.app?.$nuxt, l = n?.$route || n?._route, { mdc: o } = n?.$config?.public || {}, i = G(() => ({
|
|
9123
|
+
...o?.components?.prose && e.prose !== !1 ? i_ : {},
|
|
9124
9124
|
...o?.components?.map || {},
|
|
9125
9125
|
...Tr(e.data?.mdc?.components || {}),
|
|
9126
9126
|
...e.components
|
|
9127
|
-
})), r =
|
|
9127
|
+
})), r = G(() => {
|
|
9128
9128
|
const c = (e.body?.children || []).map((m) => m.tag || m.type).filter((m) => !pl.includes(m));
|
|
9129
9129
|
return Array.from(new Set(c)).sort().join(".");
|
|
9130
9130
|
}), a = Si({
|
|
@@ -9132,10 +9132,10 @@ const Zn = "default", Fo = /^@|^v-on:/, Ho = /^:|^v-bind:/, e_ = /^v-model/, t_
|
|
|
9132
9132
|
});
|
|
9133
9133
|
Ue(() => e.data, (c) => {
|
|
9134
9134
|
Object.assign(a, c);
|
|
9135
|
-
}), await
|
|
9135
|
+
}), await __(e.body, { tags: i.value });
|
|
9136
9136
|
function s(c, m) {
|
|
9137
9137
|
const y = c.split(".").length - 1;
|
|
9138
|
-
return c.split(".").reduce((h,
|
|
9138
|
+
return c.split(".").reduce((h, b, N) => N == y && h ? (h[b] = m, h[b]) : typeof h == "object" ? h[b] : void 0, a);
|
|
9139
9139
|
}
|
|
9140
9140
|
return { tags: i, contentKey: r, route: l, runtimeData: a, updateRuntimeData: s };
|
|
9141
9141
|
},
|
|
@@ -9146,15 +9146,15 @@ const Zn = "default", Fo = /^@|^v-on:/, Ho = /^:|^v-bind:/, e_ = /^v-model/, t_
|
|
|
9146
9146
|
const m = { ...o, tags: t, $route: r, runtimeData: s, updateRuntimeData: c }, y = n !== !1 ? Jn(n || m.component?.name || m.component || "div") : void 0;
|
|
9147
9147
|
return y ? bt(y, { ...m.component?.props, class: e.class, ...this.$attrs, key: i }, { default: h }) : h?.();
|
|
9148
9148
|
function h() {
|
|
9149
|
-
const
|
|
9150
|
-
return
|
|
9151
|
-
|
|
9149
|
+
const b = Bo(l, bt, { documentMeta: m, parentScope: m, resolveComponent: Jn });
|
|
9150
|
+
return b?.default ? a ? Uo(
|
|
9151
|
+
b.default(),
|
|
9152
9152
|
typeof a == "string" ? a.split(" ") : ["*"]
|
|
9153
|
-
) :
|
|
9153
|
+
) : b.default() : null;
|
|
9154
9154
|
}
|
|
9155
9155
|
}
|
|
9156
9156
|
});
|
|
9157
|
-
function
|
|
9157
|
+
function a_(e, t, n, l) {
|
|
9158
9158
|
const { documentMeta: o, parentScope: i, resolveComponent: r } = n;
|
|
9159
9159
|
if (e.type === "text")
|
|
9160
9160
|
return t(Ot, e.value);
|
|
@@ -9162,9 +9162,9 @@ function r_(e, t, n, l) {
|
|
|
9162
9162
|
return t(Or, null, e.value);
|
|
9163
9163
|
const a = e.tag, s = Go(e, o.tags);
|
|
9164
9164
|
if (e.tag === "binding")
|
|
9165
|
-
return
|
|
9165
|
+
return s_(e, t, o, i);
|
|
9166
9166
|
const c = zo(s) ? (h) => h : r;
|
|
9167
|
-
if (
|
|
9167
|
+
if (o_.includes(s))
|
|
9168
9168
|
return t(
|
|
9169
9169
|
"pre",
|
|
9170
9170
|
{ class: "mdc-renderer-dangerous-tag" },
|
|
@@ -9172,7 +9172,7 @@ function r_(e, t, n, l) {
|
|
|
9172
9172
|
);
|
|
9173
9173
|
const m = c(s);
|
|
9174
9174
|
typeof m == "object" && (m.tag = a);
|
|
9175
|
-
const y =
|
|
9175
|
+
const y = u_(e, o);
|
|
9176
9176
|
return l && (y.key = l), t(
|
|
9177
9177
|
m,
|
|
9178
9178
|
y,
|
|
@@ -9189,29 +9189,29 @@ function r_(e, t, n, l) {
|
|
|
9189
9189
|
}
|
|
9190
9190
|
function Bo(e, t, n) {
|
|
9191
9191
|
const { documentMeta: l, parentScope: o, resolveComponent: i } = n, a = (e.children || []).reduce((c, m) => {
|
|
9192
|
-
if (!
|
|
9192
|
+
if (!g_(m))
|
|
9193
9193
|
return c[Zn].children.push(m), c;
|
|
9194
|
-
const y =
|
|
9194
|
+
const y = p_(m);
|
|
9195
9195
|
return c[y] = c[y] || { props: {}, children: [] }, m.type === "element" && (c[y].props = m.props, c[y].children.push(...m.children || [])), c;
|
|
9196
9196
|
}, {
|
|
9197
9197
|
[Zn]: { props: {}, children: [] }
|
|
9198
9198
|
});
|
|
9199
|
-
return Object.entries(a).reduce((c, [m, { props: y, children: h }]) => (h.length && (c[m] = (
|
|
9200
|
-
const
|
|
9201
|
-
let
|
|
9199
|
+
return Object.entries(a).reduce((c, [m, { props: y, children: h }]) => (h.length && (c[m] = (b = {}) => {
|
|
9200
|
+
const N = Qh(b, Object.keys(y || {}));
|
|
9201
|
+
let T = h.map((k, g) => a_(
|
|
9202
9202
|
k,
|
|
9203
9203
|
t,
|
|
9204
9204
|
{
|
|
9205
9205
|
documentMeta: l,
|
|
9206
|
-
parentScope: { ...o, ...
|
|
9206
|
+
parentScope: { ...o, ...N },
|
|
9207
9207
|
resolveComponent: i
|
|
9208
9208
|
},
|
|
9209
9209
|
String(k.props?.key || g)
|
|
9210
9210
|
));
|
|
9211
|
-
return y?.unwrap && (
|
|
9211
|
+
return y?.unwrap && (T = Uo(T, y.unwrap)), h_(T);
|
|
9212
9212
|
}), c), {});
|
|
9213
9213
|
}
|
|
9214
|
-
function
|
|
9214
|
+
function s_(e, t, n, l = {}) {
|
|
9215
9215
|
const o = {
|
|
9216
9216
|
...n.runtimeData,
|
|
9217
9217
|
...l,
|
|
@@ -9223,38 +9223,38 @@ function a_(e, t, n, l = {}) {
|
|
|
9223
9223
|
}, o), s = e.props?.defaultValue;
|
|
9224
9224
|
return t(Ot, a ?? s ?? "");
|
|
9225
9225
|
}
|
|
9226
|
-
function
|
|
9226
|
+
function u_(e, t) {
|
|
9227
9227
|
const { tag: n = "", props: l = {} } = e;
|
|
9228
9228
|
return Object.keys(l).reduce(function(o, i) {
|
|
9229
9229
|
if (i === "__ignoreMap")
|
|
9230
9230
|
return o;
|
|
9231
9231
|
const r = l[i];
|
|
9232
|
-
if (
|
|
9233
|
-
return
|
|
9232
|
+
if (t_.test(i))
|
|
9233
|
+
return c_(i, r, o, t, { native: n_.includes(n) });
|
|
9234
9234
|
if (i === "v-bind")
|
|
9235
|
-
return c_(i, r, o, t);
|
|
9236
|
-
if (Fo.test(i))
|
|
9237
9235
|
return d_(i, r, o, t);
|
|
9238
|
-
if (
|
|
9236
|
+
if (Fo.test(i))
|
|
9239
9237
|
return f_(i, r, o, t);
|
|
9240
|
-
|
|
9238
|
+
if (Ho.test(i))
|
|
9239
|
+
return m_(i, r, o, t);
|
|
9240
|
+
const { attribute: a } = Yh(Zh, i);
|
|
9241
9241
|
return Array.isArray(r) && r.every((s) => typeof s == "string") ? (o[a] = r.join(" "), o) : (o[a] = r, o);
|
|
9242
9242
|
}, {});
|
|
9243
9243
|
}
|
|
9244
|
-
function
|
|
9244
|
+
function c_(e, t, n, l, { native: o }) {
|
|
9245
9245
|
const i = e.match(/^v-model:([^=]+)/)?.[1] || "modelValue", r = o ? "value" : i, a = o ? "onInput" : `onUpdate:${i}`;
|
|
9246
9246
|
return n[r] = _n(t, l.runtimeData), n[a] = (s) => {
|
|
9247
9247
|
l.updateRuntimeData(t, o ? s.target?.value : s);
|
|
9248
9248
|
}, n;
|
|
9249
9249
|
}
|
|
9250
|
-
function
|
|
9250
|
+
function d_(e, t, n, l) {
|
|
9251
9251
|
const o = _n(t, l);
|
|
9252
9252
|
return n = Object.assign(n, o), n;
|
|
9253
9253
|
}
|
|
9254
|
-
function
|
|
9254
|
+
function f_(e, t, n, l) {
|
|
9255
9255
|
return e = e.replace(Fo, ""), n.on = n.on || {}, n.on[e] = () => _n(t, l), n;
|
|
9256
9256
|
}
|
|
9257
|
-
function
|
|
9257
|
+
function m_(e, t, n, l) {
|
|
9258
9258
|
return e = e.replace(Ho, ""), n[e] = _n(t, l), n;
|
|
9259
9259
|
}
|
|
9260
9260
|
const Jn = (e) => {
|
|
@@ -9268,9 +9268,9 @@ const Jn = (e) => {
|
|
|
9268
9268
|
};
|
|
9269
9269
|
function _n(e, t) {
|
|
9270
9270
|
const n = e.split(".").reduce((l, o) => typeof l == "object" ? l[o] : void 0, t);
|
|
9271
|
-
return typeof n > "u" ?
|
|
9271
|
+
return typeof n > "u" ? Vh(e) : n;
|
|
9272
9272
|
}
|
|
9273
|
-
function
|
|
9273
|
+
function p_(e) {
|
|
9274
9274
|
let t = "";
|
|
9275
9275
|
for (const n of Object.keys(e.props || {}))
|
|
9276
9276
|
if (!(!n.startsWith("#") && !n.startsWith("v-slot:"))) {
|
|
@@ -9279,13 +9279,13 @@ function m_(e) {
|
|
|
9279
9279
|
}
|
|
9280
9280
|
return t || Zn;
|
|
9281
9281
|
}
|
|
9282
|
-
function
|
|
9282
|
+
function g_(e) {
|
|
9283
9283
|
return e.tag === "template";
|
|
9284
9284
|
}
|
|
9285
9285
|
function zo(e) {
|
|
9286
|
-
return
|
|
9286
|
+
return l_.includes(e);
|
|
9287
9287
|
}
|
|
9288
|
-
function
|
|
9288
|
+
function h_(e) {
|
|
9289
9289
|
const t = [];
|
|
9290
9290
|
for (const n of e) {
|
|
9291
9291
|
const l = t[t.length - 1];
|
|
@@ -9293,7 +9293,7 @@ function g_(e) {
|
|
|
9293
9293
|
}
|
|
9294
9294
|
return t;
|
|
9295
9295
|
}
|
|
9296
|
-
async function
|
|
9296
|
+
async function __(e, t) {
|
|
9297
9297
|
if (!e)
|
|
9298
9298
|
return;
|
|
9299
9299
|
const n = Array.from(new Set(l(e, t)));
|
|
@@ -9319,37 +9319,37 @@ async function h_(e, t) {
|
|
|
9319
9319
|
}
|
|
9320
9320
|
function Go(e, t) {
|
|
9321
9321
|
const n = e.tag;
|
|
9322
|
-
return !n || typeof e.props?.__ignoreMap < "u" ? n : t[n] || t[To(n)] || t[
|
|
9322
|
+
return !n || typeof e.props?.__ignoreMap < "u" ? n : t[n] || t[To(n)] || t[Bh(e.tag)] || n;
|
|
9323
9323
|
}
|
|
9324
|
-
const
|
|
9324
|
+
const D_ = /* @__PURE__ */ de({
|
|
9325
9325
|
__name: "MDCRenderer",
|
|
9326
9326
|
setup(e) {
|
|
9327
9327
|
return (t, n) => (u(), X($r, null, {
|
|
9328
|
-
default:
|
|
9329
|
-
V(
|
|
9328
|
+
default: W(() => [
|
|
9329
|
+
V(r_, K(t.$attrs, { prose: !0 }), null, 16)
|
|
9330
9330
|
]),
|
|
9331
9331
|
_: 1
|
|
9332
9332
|
}));
|
|
9333
9333
|
}
|
|
9334
9334
|
});
|
|
9335
9335
|
export {
|
|
9336
|
-
|
|
9336
|
+
T_ as D,
|
|
9337
9337
|
hs as R,
|
|
9338
9338
|
_e as S,
|
|
9339
|
-
|
|
9340
|
-
|
|
9341
|
-
|
|
9339
|
+
A_ as T,
|
|
9340
|
+
w_ as Y,
|
|
9341
|
+
O_ as _,
|
|
9342
9342
|
Q as a,
|
|
9343
9343
|
vt as b,
|
|
9344
9344
|
Ve as c,
|
|
9345
9345
|
At as d,
|
|
9346
9346
|
lo as e,
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9347
|
+
Yh as f,
|
|
9348
|
+
N_ as g,
|
|
9349
|
+
Zh as h,
|
|
9350
9350
|
as as i,
|
|
9351
|
-
|
|
9352
|
-
|
|
9353
|
-
|
|
9351
|
+
I_ as j,
|
|
9352
|
+
D_ as k,
|
|
9353
|
+
$_ as s
|
|
9354
9354
|
};
|
|
9355
|
-
//# sourceMappingURL=index-
|
|
9355
|
+
//# sourceMappingURL=index-BYv2BHLx.js.map
|