@kestra-io/ui-libs 0.0.258 → 0.0.259
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/{VueFlowUtils-CXNqz9kc.cjs → VueFlowUtils-CF-L3pYu.cjs} +2 -2
- package/dist/{VueFlowUtils-CXNqz9kc.cjs.map → VueFlowUtils-CF-L3pYu.cjs.map} +1 -1
- package/dist/{VueFlowUtils-CxR7tTss.js → VueFlowUtils-D6fVYEkI.js} +720 -715
- package/dist/{VueFlowUtils-CxR7tTss.js.map → VueFlowUtils-D6fVYEkI.js.map} +1 -1
- package/dist/components/topology/Topology.vue.d.ts.map +1 -1
- package/dist/kestra-index.cjs.js +10 -10
- package/dist/kestra-index.cjs.js.map +1 -1
- package/dist/kestra-index.es.js +931 -928
- package/dist/kestra-index.es.js.map +1 -1
- package/dist/kestra-vueflowutils.cjs.js +1 -1
- package/dist/kestra-vueflowutils.es.js +20 -19
- package/dist/ui-libs.css +1 -1
- package/dist/utils/VueFlowUtils.d.ts +1 -0
- package/dist/utils/VueFlowUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/nodes/BasicNode.vue +10 -10
- package/src/components/topology/Topology.vue +10 -0
- package/src/utils/VueFlowUtils.ts +19 -10
package/dist/kestra-index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
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
|
|
3
|
-
import { N as P_, V as M_, e as V_, i as x_, b as U_, j as F_, s as H_, f as B_ } from "./VueFlowUtils-
|
|
4
|
-
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
|
|
5
|
-
import { createElementBlock as d, openBlock as u, mergeProps as K, createElementVNode as v, createCommentVNode as
|
|
6
|
-
import { Handle as Me, useVueFlow as
|
|
7
|
-
import { Controls as Mr, ControlButton as
|
|
1
|
+
import vl, { Document as El, YAMLMap as Nn } from "yaml";
|
|
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 Cl, l as Jo } from "./VueFlowUtils-D6fVYEkI.js";
|
|
3
|
+
import { N as P_, V as M_, e as V_, i as x_, b as U_, j as F_, s as H_, f as B_ } from "./VueFlowUtils-D6fVYEkI.js";
|
|
4
|
+
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 Ci, v as vr, w as Er, x as bl, y as kl, z as Cr, A as br, B as bi, C as kr } from "./FlowYamlUtils-CEYKj9tP.js";
|
|
5
|
+
import { createElementBlock as d, openBlock as u, mergeProps as K, createElementVNode as v, createCommentVNode as w, toDisplayString as V, defineComponent as de, createBlock as q, getCurrentInstance as cn, inject as Rn, ref as te, shallowRef as qt, computed as G, watch as Ue, onMounted as Mt, onUnmounted as ki, h as bt, createVNode as M, Text as Ot, Fragment as Ee, nextTick as dn, onBeforeUnmount as Li, renderSlot as ae, createTextVNode as Ze, normalizeClass as re, withCtx as z, normalizeStyle as ct, unref as D, toRef as Ll, renderList as Xe, resolveDynamicComponent as mt, createSlots as Si, provide as Sl, normalizeProps as Lr, guardReactiveProps as Sr, getCurrentScope as wr, onScopeDispose as Nr, reactive as wi, withModifiers as Ni, withAsyncContext as wl, toRaw as Tr, resolveComponent as Ar, defineAsyncComponent as Ir, Comment as Or, Suspense as Dr } from "vue";
|
|
6
|
+
import { Handle as Me, useVueFlow as Ti, Position as Jt, getSmoothStepPath as $r, EdgeLabelRenderer as Rr, VueFlow as Pr } from "@vue-flow/core";
|
|
7
|
+
import { Controls as Mr, ControlButton as Nl } from "@vue-flow/controls";
|
|
8
8
|
import Tn from "moment";
|
|
9
9
|
import { createPopper as Vr } from "@popperjs/core";
|
|
10
|
-
const xr = { lineWidth: 0 },
|
|
10
|
+
const xr = { lineWidth: 0 }, Tl = [
|
|
11
11
|
"tasks",
|
|
12
12
|
"triggers",
|
|
13
13
|
"errors",
|
|
@@ -19,7 +19,7 @@ const xr = { lineWidth: 0 }, Nl = [
|
|
|
19
19
|
parse: _r,
|
|
20
20
|
pairsToMap: hr,
|
|
21
21
|
extractTask(e, t) {
|
|
22
|
-
for (const n of
|
|
22
|
+
for (const n of Tl) {
|
|
23
23
|
const l = br({ source: e, section: n, key: t });
|
|
24
24
|
if (l)
|
|
25
25
|
return l;
|
|
@@ -40,7 +40,7 @@ const xr = { lineWidth: 0 }, Nl = [
|
|
|
40
40
|
}
|
|
41
41
|
const o = l(e.contents);
|
|
42
42
|
if (o !== void 0)
|
|
43
|
-
return n ? new
|
|
43
|
+
return n ? new El(o) : new El(o);
|
|
44
44
|
},
|
|
45
45
|
replaceTaskInDocument(e, t, n, l = "tasks", o = "id") {
|
|
46
46
|
return Cr({
|
|
@@ -57,8 +57,8 @@ const xr = { lineWidth: 0 }, Nl = [
|
|
|
57
57
|
localizeElementAtIndex: fr,
|
|
58
58
|
getTaskType: dr,
|
|
59
59
|
swapTasks(e, t, n) {
|
|
60
|
-
const l =
|
|
61
|
-
return
|
|
60
|
+
const l = vl.parseDocument(e), o = this._extractTask(l, t), i = this._extractTask(l, n);
|
|
61
|
+
return vl.visit(l, {
|
|
62
62
|
Pair(r, a) {
|
|
63
63
|
if (a.key.value === "dependsOn" && a.value.items.map((s) => s.value).includes(n))
|
|
64
64
|
throw {
|
|
@@ -69,7 +69,7 @@ const xr = { lineWidth: 0 }, Nl = [
|
|
|
69
69
|
}), this._extractTask(l, t, () => i), this._extractTask(l, n, () => o), l.toString(xr);
|
|
70
70
|
},
|
|
71
71
|
insertTask(e, t, n, l, o) {
|
|
72
|
-
return
|
|
72
|
+
return kl({
|
|
73
73
|
source: e,
|
|
74
74
|
section: "tasks",
|
|
75
75
|
newBlock: n,
|
|
@@ -79,7 +79,7 @@ const xr = { lineWidth: 0 }, Nl = [
|
|
|
79
79
|
});
|
|
80
80
|
},
|
|
81
81
|
insertSection(e, t, n) {
|
|
82
|
-
return
|
|
82
|
+
return kl({ source: t, section: e, newBlock: n });
|
|
83
83
|
},
|
|
84
84
|
insertErrorInFlowable: cr,
|
|
85
85
|
/**
|
|
@@ -90,10 +90,10 @@ const xr = { lineWidth: 0 }, Nl = [
|
|
|
90
90
|
* @returns yaml (source) without the item
|
|
91
91
|
*/
|
|
92
92
|
deleteSection(e, t, n) {
|
|
93
|
-
return
|
|
93
|
+
return bl({ source: e, section: t, key: n });
|
|
94
94
|
},
|
|
95
95
|
deleteTask(e, t, n) {
|
|
96
|
-
return (n === ut.TASKS ? ["tasks", "errors"] : ["triggers"]).reduce((o, i) =>
|
|
96
|
+
return (n === ut.TASKS ? ["tasks", "errors"] : ["triggers"]).reduce((o, i) => bl({ source: o, section: i, key: t }), e);
|
|
97
97
|
},
|
|
98
98
|
getLastTask(e, t) {
|
|
99
99
|
return Er({ source: e, section: "tasks", parentKey: t });
|
|
@@ -107,9 +107,9 @@ const xr = { lineWidth: 0 }, Nl = [
|
|
|
107
107
|
});
|
|
108
108
|
},
|
|
109
109
|
isParentChildrenRelation(e, t, n) {
|
|
110
|
-
return
|
|
110
|
+
return Ci({
|
|
111
111
|
source: e,
|
|
112
|
-
sections:
|
|
112
|
+
sections: Tl,
|
|
113
113
|
key1: t,
|
|
114
114
|
key2: n,
|
|
115
115
|
keyName: "id"
|
|
@@ -131,7 +131,7 @@ const xr = { lineWidth: 0 }, Nl = [
|
|
|
131
131
|
return (t ? getComputedStyle(t) : null)?.getPropertyValue(e);
|
|
132
132
|
};
|
|
133
133
|
var Ur = jo();
|
|
134
|
-
const Bt = /* @__PURE__ */
|
|
134
|
+
const Bt = /* @__PURE__ */ bi(Ur), H = (e, t) => {
|
|
135
135
|
const n = e.__vccOpts || e;
|
|
136
136
|
for (const [l, o] of t)
|
|
137
137
|
n[l] = o;
|
|
@@ -169,12 +169,12 @@ function Wr(e, t, n, l, o, i) {
|
|
|
169
169
|
viewBox: "0 0 24 24"
|
|
170
170
|
}, [
|
|
171
171
|
v("path", zr, [
|
|
172
|
-
n.title ? (u(), d("title", Gr,
|
|
172
|
+
n.title ? (u(), d("title", Gr, V(n.title), 1)) : w("", !0)
|
|
173
173
|
])
|
|
174
174
|
], 8, Br))
|
|
175
175
|
], 16, Hr);
|
|
176
176
|
}
|
|
177
|
-
const
|
|
177
|
+
const Al = /* @__PURE__ */ H(Fr, [["render", Wr]]), jr = {
|
|
178
178
|
name: "CheckCircleIcon",
|
|
179
179
|
emits: ["click"],
|
|
180
180
|
props: {
|
|
@@ -207,7 +207,7 @@ function Zr(e, t, n, l, o, i) {
|
|
|
207
207
|
viewBox: "0 0 24 24"
|
|
208
208
|
}, [
|
|
209
209
|
v("path", qr, [
|
|
210
|
-
n.title ? (u(), d("title", Xr,
|
|
210
|
+
n.title ? (u(), d("title", Xr, V(n.title), 1)) : w("", !0)
|
|
211
211
|
])
|
|
212
212
|
], 8, Yr))
|
|
213
213
|
], 16, Kr);
|
|
@@ -245,7 +245,7 @@ function ia(e, t, n, l, o, i) {
|
|
|
245
245
|
viewBox: "0 0 24 24"
|
|
246
246
|
}, [
|
|
247
247
|
v("path", na, [
|
|
248
|
-
n.title ? (u(), d("title", la,
|
|
248
|
+
n.title ? (u(), d("title", la, V(n.title), 1)) : w("", !0)
|
|
249
249
|
])
|
|
250
250
|
], 8, ta))
|
|
251
251
|
], 16, ea);
|
|
@@ -283,7 +283,7 @@ function da(e, t, n, l, o, i) {
|
|
|
283
283
|
viewBox: "0 0 24 24"
|
|
284
284
|
}, [
|
|
285
285
|
v("path", ua, [
|
|
286
|
-
n.title ? (u(), d("title", ca,
|
|
286
|
+
n.title ? (u(), d("title", ca, V(n.title), 1)) : w("", !0)
|
|
287
287
|
])
|
|
288
288
|
], 8, sa))
|
|
289
289
|
], 16, aa);
|
|
@@ -321,7 +321,7 @@ function _a(e, t, n, l, o, i) {
|
|
|
321
321
|
viewBox: "0 0 24 24"
|
|
322
322
|
}, [
|
|
323
323
|
v("path", ga, [
|
|
324
|
-
n.title ? (u(), d("title", ha,
|
|
324
|
+
n.title ? (u(), d("title", ha, V(n.title), 1)) : w("", !0)
|
|
325
325
|
])
|
|
326
326
|
], 8, pa))
|
|
327
327
|
], 16, ma);
|
|
@@ -359,7 +359,7 @@ function La(e, t, n, l, o, i) {
|
|
|
359
359
|
viewBox: "0 0 24 24"
|
|
360
360
|
}, [
|
|
361
361
|
v("path", ba, [
|
|
362
|
-
n.title ? (u(), d("title", ka,
|
|
362
|
+
n.title ? (u(), d("title", ka, V(n.title), 1)) : w("", !0)
|
|
363
363
|
])
|
|
364
364
|
], 8, Ca))
|
|
365
365
|
], 16, Ea);
|
|
@@ -397,7 +397,7 @@ function Oa(e, t, n, l, o, i) {
|
|
|
397
397
|
viewBox: "0 0 24 24"
|
|
398
398
|
}, [
|
|
399
399
|
v("path", Aa, [
|
|
400
|
-
n.title ? (u(), d("title", Ia,
|
|
400
|
+
n.title ? (u(), d("title", Ia, V(n.title), 1)) : w("", !0)
|
|
401
401
|
])
|
|
402
402
|
], 8, Ta))
|
|
403
403
|
], 16, Na);
|
|
@@ -435,7 +435,7 @@ function Va(e, t, n, l, o, i) {
|
|
|
435
435
|
viewBox: "0 0 24 24"
|
|
436
436
|
}, [
|
|
437
437
|
v("path", Pa, [
|
|
438
|
-
n.title ? (u(), d("title", Ma,
|
|
438
|
+
n.title ? (u(), d("title", Ma, V(n.title), 1)) : w("", !0)
|
|
439
439
|
])
|
|
440
440
|
], 8, Ra))
|
|
441
441
|
], 16, $a);
|
|
@@ -473,7 +473,7 @@ function Ga(e, t, n, l, o, i) {
|
|
|
473
473
|
viewBox: "0 0 24 24"
|
|
474
474
|
}, [
|
|
475
475
|
v("path", Ba, [
|
|
476
|
-
n.title ? (u(), d("title", za,
|
|
476
|
+
n.title ? (u(), d("title", za, V(n.title), 1)) : w("", !0)
|
|
477
477
|
])
|
|
478
478
|
], 8, Ha))
|
|
479
479
|
], 16, Fa);
|
|
@@ -511,12 +511,12 @@ function Za(e, t, n, l, o, i) {
|
|
|
511
511
|
viewBox: "0 0 24 24"
|
|
512
512
|
}, [
|
|
513
513
|
v("path", qa, [
|
|
514
|
-
n.title ? (u(), d("title", Xa,
|
|
514
|
+
n.title ? (u(), d("title", Xa, V(n.title), 1)) : w("", !0)
|
|
515
515
|
])
|
|
516
516
|
], 8, Ya))
|
|
517
517
|
], 16, Ka);
|
|
518
518
|
}
|
|
519
|
-
const
|
|
519
|
+
const Il = /* @__PURE__ */ H(ja, [["render", Za]]), Ja = {
|
|
520
520
|
name: "CancelIcon",
|
|
521
521
|
emits: ["click"],
|
|
522
522
|
props: {
|
|
@@ -549,12 +549,12 @@ function ls(e, t, n, l, o, i) {
|
|
|
549
549
|
viewBox: "0 0 24 24"
|
|
550
550
|
}, [
|
|
551
551
|
v("path", ts, [
|
|
552
|
-
n.title ? (u(), d("title", ns,
|
|
552
|
+
n.title ? (u(), d("title", ns, V(n.title), 1)) : w("", !0)
|
|
553
553
|
])
|
|
554
554
|
], 8, es))
|
|
555
555
|
], 16, Qa);
|
|
556
556
|
}
|
|
557
|
-
const
|
|
557
|
+
const Ol = /* @__PURE__ */ H(Ja, [["render", ls]]), J = Object.freeze({
|
|
558
558
|
CREATED: {
|
|
559
559
|
name: "CREATED",
|
|
560
560
|
color: "#1761FD",
|
|
@@ -631,7 +631,7 @@ const Il = /* @__PURE__ */ H(Ja, [["render", ls]]), J = Object.freeze({
|
|
|
631
631
|
name: "PAUSED",
|
|
632
632
|
color: "#918BA9",
|
|
633
633
|
colorClass: "indigo",
|
|
634
|
-
icon:
|
|
634
|
+
icon: Al,
|
|
635
635
|
isRunning: !0,
|
|
636
636
|
isKillable: !0,
|
|
637
637
|
isFailed: !1
|
|
@@ -640,7 +640,7 @@ const Il = /* @__PURE__ */ H(Ja, [["render", ls]]), J = Object.freeze({
|
|
|
640
640
|
name: "CANCELLED",
|
|
641
641
|
color: "#918BA9",
|
|
642
642
|
colorClass: "gray",
|
|
643
|
-
icon:
|
|
643
|
+
icon: Ol,
|
|
644
644
|
isRunning: !1,
|
|
645
645
|
isKillable: !1,
|
|
646
646
|
isFailed: !0
|
|
@@ -649,7 +649,7 @@ const Il = /* @__PURE__ */ H(Ja, [["render", ls]]), J = Object.freeze({
|
|
|
649
649
|
name: "SKIPPED",
|
|
650
650
|
color: "#918BA9",
|
|
651
651
|
colorClass: "gray",
|
|
652
|
-
icon:
|
|
652
|
+
icon: Ol,
|
|
653
653
|
isRunning: !1,
|
|
654
654
|
isKillable: !1,
|
|
655
655
|
isFailed: !0
|
|
@@ -667,7 +667,7 @@ const Il = /* @__PURE__ */ H(Ja, [["render", ls]]), J = Object.freeze({
|
|
|
667
667
|
name: "RETRYING",
|
|
668
668
|
color: "#918BA9",
|
|
669
669
|
colorClass: "gray",
|
|
670
|
-
icon:
|
|
670
|
+
icon: Il,
|
|
671
671
|
isRunning: !1,
|
|
672
672
|
isKillable: !0,
|
|
673
673
|
isFailed: !1
|
|
@@ -676,7 +676,7 @@ const Il = /* @__PURE__ */ H(Ja, [["render", ls]]), J = Object.freeze({
|
|
|
676
676
|
name: "RETRIED",
|
|
677
677
|
color: "#918BA9",
|
|
678
678
|
colorClass: "gray",
|
|
679
|
-
icon:
|
|
679
|
+
icon: Il,
|
|
680
680
|
isRunning: !1,
|
|
681
681
|
isKillable: !1,
|
|
682
682
|
isFailed: !1
|
|
@@ -685,7 +685,7 @@ const Il = /* @__PURE__ */ H(Ja, [["render", ls]]), J = Object.freeze({
|
|
|
685
685
|
name: "BREAKPOINT",
|
|
686
686
|
color: "#918BA9",
|
|
687
687
|
colorClass: "gray",
|
|
688
|
-
icon:
|
|
688
|
+
icon: Al,
|
|
689
689
|
isRunning: !1,
|
|
690
690
|
isKillable: !1,
|
|
691
691
|
isFailed: !1
|
|
@@ -788,9 +788,9 @@ async function N_() {
|
|
|
788
788
|
const e = await import("./useMarkdownParser-Dm9LTWWl.js");
|
|
789
789
|
return zt = await (e.default ?? e)(), zt;
|
|
790
790
|
}
|
|
791
|
-
var Xt = { exports: {} }, is = Xt.exports,
|
|
791
|
+
var Xt = { exports: {} }, is = Xt.exports, Dl;
|
|
792
792
|
function os() {
|
|
793
|
-
return
|
|
793
|
+
return Dl || (Dl = 1, (function(e, t) {
|
|
794
794
|
(function(n, l, o) {
|
|
795
795
|
e.exports = o(), e.exports.default = o();
|
|
796
796
|
})("slugify", is, function() {
|
|
@@ -800,8 +800,8 @@ function os() {
|
|
|
800
800
|
throw new Error("slugify: string argument expected");
|
|
801
801
|
r = typeof r == "string" ? { replacement: r } : r || {};
|
|
802
802
|
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(_, h) {
|
|
803
|
-
var
|
|
804
|
-
return
|
|
803
|
+
var L = a[h];
|
|
804
|
+
return L === void 0 && (L = n[h]), L === void 0 && (L = h), L === s && (L = " "), _ + L.replace(r.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
|
|
805
805
|
}, "");
|
|
806
806
|
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;
|
|
807
807
|
}
|
|
@@ -812,10 +812,10 @@ function os() {
|
|
|
812
812
|
})(Xt)), Xt.exports;
|
|
813
813
|
}
|
|
814
814
|
var rs = os();
|
|
815
|
-
const
|
|
816
|
-
|
|
815
|
+
const Ai = /* @__PURE__ */ bi(rs);
|
|
816
|
+
Ai.extend({ "(": "-", ")": "" });
|
|
817
817
|
function vt(e) {
|
|
818
|
-
return
|
|
818
|
+
return Ai(e, {
|
|
819
819
|
lower: !0,
|
|
820
820
|
locale: "en"
|
|
821
821
|
});
|
|
@@ -860,7 +860,7 @@ function ms(e, t, n, l, o, i) {
|
|
|
860
860
|
viewBox: "0 0 24 24"
|
|
861
861
|
}, [
|
|
862
862
|
v("path", ds, [
|
|
863
|
-
n.title ? (u(), d("title", fs,
|
|
863
|
+
n.title ? (u(), d("title", fs, V(n.title), 1)) : w("", !0)
|
|
864
864
|
])
|
|
865
865
|
], 8, cs))
|
|
866
866
|
], 16, us);
|
|
@@ -885,9 +885,9 @@ const ps = /* @__PURE__ */ H(ss, [["render", ms]]), gs = /* @__PURE__ */ de({
|
|
|
885
885
|
function We(e, t) {
|
|
886
886
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
887
887
|
}
|
|
888
|
-
const
|
|
888
|
+
const $l = {};
|
|
889
889
|
function _s(e) {
|
|
890
|
-
|
|
890
|
+
$l[e] || ($l[e] = !0, We(e));
|
|
891
891
|
}
|
|
892
892
|
const Je = typeof window < "u";
|
|
893
893
|
let Pe, dt;
|
|
@@ -905,16 +905,16 @@ function fn(e, ...t) {
|
|
|
905
905
|
return t.length === 1 && le(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(ys, (n, l) => t.hasOwnProperty(l) ? t[l] : "");
|
|
906
906
|
}
|
|
907
907
|
const Qe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), vs = (e, t, n) => Es({ l: e, k: t, s: n }), Es = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), be = (e) => typeof e == "number" && isFinite(e), Cs = (e) => Qn(e) === "[object Date]", en = (e) => Qn(e) === "[object RegExp]", mn = (e) => ne(e) && Object.keys(e).length === 0, ke = Object.assign, bs = Object.create, se = (e = null) => bs(e);
|
|
908
|
-
let
|
|
909
|
-
const st = () =>
|
|
910
|
-
function
|
|
908
|
+
let Rl;
|
|
909
|
+
const st = () => Rl || (Rl = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : se());
|
|
910
|
+
function Pl(e) {
|
|
911
911
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function Ml(e) {
|
|
914
914
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
915
915
|
}
|
|
916
916
|
function ks(e) {
|
|
917
|
-
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (l, o, i) => `${o}="${
|
|
917
|
+
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (l, o, i) => `${o}="${Ml(i)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (l, o, i) => `${o}='${Ml(i)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && We("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [
|
|
918
918
|
// In href, src, action, formaction attributes
|
|
919
919
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
920
920
|
// In style attributes within url()
|
|
@@ -927,18 +927,18 @@ const Ls = Object.prototype.hasOwnProperty;
|
|
|
927
927
|
function Fe(e, t) {
|
|
928
928
|
return Ls.call(e, t);
|
|
929
929
|
}
|
|
930
|
-
const ve = Array.isArray, me = (e) => typeof e == "function", x = (e) => typeof e == "string", ye = (e) => typeof e == "boolean", le = (e) => e !== null && typeof e == "object", Ss = (e) => le(e) && me(e.then) && me(e.catch),
|
|
930
|
+
const ve = Array.isArray, me = (e) => typeof e == "function", x = (e) => typeof e == "string", ye = (e) => typeof e == "boolean", le = (e) => e !== null && typeof e == "object", Ss = (e) => le(e) && me(e.then) && me(e.catch), Ii = Object.prototype.toString, Qn = (e) => Ii.call(e), ne = (e) => Qn(e) === "[object Object]", ws = (e) => e == null ? "" : ve(e) || ne(e) && e.toString === Ii ? JSON.stringify(e, null, 2) : String(e);
|
|
931
931
|
function el(e, t = "") {
|
|
932
932
|
return e.reduce((n, l, o) => o === 0 ? n + l : n + t + l, "");
|
|
933
933
|
}
|
|
934
|
-
const
|
|
934
|
+
const Vl = 2;
|
|
935
935
|
function Ns(e, t = 0, n = e.length) {
|
|
936
936
|
const l = e.split(/\r?\n/);
|
|
937
937
|
let o = 0;
|
|
938
938
|
const i = [];
|
|
939
939
|
for (let r = 0; r < l.length; r++)
|
|
940
940
|
if (o += l[r].length + 1, o >= t) {
|
|
941
|
-
for (let a = r -
|
|
941
|
+
for (let a = r - Vl; a <= r + Vl || n > o; a++) {
|
|
942
942
|
if (a < 0 || a >= l.length)
|
|
943
943
|
continue;
|
|
944
944
|
const s = a + 1;
|
|
@@ -1055,14 +1055,14 @@ const $s = /<\/?[\w\s="/.':;#-\/]+>/, Rs = (e) => $s.test(e), Be = " ", Ps = "\r
|
|
|
1055
1055
|
function xs(e) {
|
|
1056
1056
|
const t = e;
|
|
1057
1057
|
let n = 0, l = 1, o = 1, i = 0;
|
|
1058
|
-
const r = (T) => t[T] === Ps && t[T + 1] === we, a = (T) => t[T] === we, s = (T) => t[T] === Vs, c = (T) => t[T] === Ms, m = (T) => r(T) || a(T) || s(T) || c(T), _ = () => n, h = () => l,
|
|
1058
|
+
const r = (T) => t[T] === Ps && t[T + 1] === we, a = (T) => t[T] === we, s = (T) => t[T] === Vs, c = (T) => t[T] === Ms, m = (T) => r(T) || a(T) || s(T) || c(T), _ = () => n, h = () => l, L = () => o, C = () => i, k = (T) => r(T) || s(T) || c(T) ? we : t[T], y = () => k(n), p = () => k(n + i);
|
|
1059
1059
|
function E() {
|
|
1060
1060
|
return i = 0, m(n) && (l++, o = 0), r(n) && n++, n++, o++, t[n];
|
|
1061
1061
|
}
|
|
1062
1062
|
function A() {
|
|
1063
1063
|
return r(n + i) && i++, i++, t[n + i];
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function S() {
|
|
1066
1066
|
n = 0, l = 1, o = 1, i = 0;
|
|
1067
1067
|
}
|
|
1068
1068
|
function R(T = 0) {
|
|
@@ -1077,19 +1077,19 @@ function xs(e) {
|
|
|
1077
1077
|
return {
|
|
1078
1078
|
index: _,
|
|
1079
1079
|
line: h,
|
|
1080
|
-
column:
|
|
1081
|
-
peekOffset:
|
|
1082
|
-
charAt:
|
|
1083
|
-
currentChar:
|
|
1080
|
+
column: L,
|
|
1081
|
+
peekOffset: C,
|
|
1082
|
+
charAt: k,
|
|
1083
|
+
currentChar: y,
|
|
1084
1084
|
currentPeek: p,
|
|
1085
1085
|
next: E,
|
|
1086
1086
|
peek: A,
|
|
1087
|
-
reset:
|
|
1087
|
+
reset: S,
|
|
1088
1088
|
resetPeek: R,
|
|
1089
1089
|
skipToPeek: P
|
|
1090
1090
|
};
|
|
1091
1091
|
}
|
|
1092
|
-
const Ke = void 0, Us = ".",
|
|
1092
|
+
const Ke = void 0, Us = ".", xl = "'", Fs = "tokenizer";
|
|
1093
1093
|
function Hs(e, t = {}) {
|
|
1094
1094
|
const n = t.location !== !1, l = xs(e), o = () => l.index(), i = () => As(l.line(), l.column(), l.index()), r = i(), a = o(), s = {
|
|
1095
1095
|
currentType: 13,
|
|
@@ -1119,22 +1119,22 @@ function Hs(e, t = {}) {
|
|
|
1119
1119
|
const F = { type: g };
|
|
1120
1120
|
return n && (F.loc = Mn(f.startLoc, f.endLoc)), N != null && (F.value = N), F;
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1122
|
+
const L = (f) => h(
|
|
1123
1123
|
f,
|
|
1124
1124
|
13
|
|
1125
1125
|
/* TokenTypes.EOF */
|
|
1126
1126
|
);
|
|
1127
|
-
function
|
|
1127
|
+
function C(f, g) {
|
|
1128
1128
|
return f.currentChar() === g ? (f.next(), g) : (_(j.EXPECTED_TOKEN, i(), 0, g), "");
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function k(f) {
|
|
1131
1131
|
let g = "";
|
|
1132
1132
|
for (; f.currentPeek() === Be || f.currentPeek() === we; )
|
|
1133
1133
|
g += f.currentPeek(), f.peek();
|
|
1134
1134
|
return g;
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1137
|
-
const g =
|
|
1136
|
+
function y(f) {
|
|
1137
|
+
const g = k(f);
|
|
1138
1138
|
return f.skipToPeek(), g;
|
|
1139
1139
|
}
|
|
1140
1140
|
function p(f) {
|
|
@@ -1155,15 +1155,15 @@ function Hs(e, t = {}) {
|
|
|
1155
1155
|
const { currentType: N } = g;
|
|
1156
1156
|
if (N !== 2)
|
|
1157
1157
|
return !1;
|
|
1158
|
-
|
|
1158
|
+
k(f);
|
|
1159
1159
|
const F = p(f.currentPeek());
|
|
1160
1160
|
return f.resetPeek(), F;
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1162
|
+
function S(f, g) {
|
|
1163
1163
|
const { currentType: N } = g;
|
|
1164
1164
|
if (N !== 2)
|
|
1165
1165
|
return !1;
|
|
1166
|
-
|
|
1166
|
+
k(f);
|
|
1167
1167
|
const F = f.currentPeek() === "-" ? f.peek() : f.currentPeek(), fe = E(F);
|
|
1168
1168
|
return f.resetPeek(), fe;
|
|
1169
1169
|
}
|
|
@@ -1171,15 +1171,15 @@ function Hs(e, t = {}) {
|
|
|
1171
1171
|
const { currentType: N } = g;
|
|
1172
1172
|
if (N !== 2)
|
|
1173
1173
|
return !1;
|
|
1174
|
-
|
|
1175
|
-
const F = f.currentPeek() ===
|
|
1174
|
+
k(f);
|
|
1175
|
+
const F = f.currentPeek() === xl;
|
|
1176
1176
|
return f.resetPeek(), F;
|
|
1177
1177
|
}
|
|
1178
1178
|
function P(f, g) {
|
|
1179
1179
|
const { currentType: N } = g;
|
|
1180
1180
|
if (N !== 7)
|
|
1181
1181
|
return !1;
|
|
1182
|
-
|
|
1182
|
+
k(f);
|
|
1183
1183
|
const F = f.currentPeek() === ".";
|
|
1184
1184
|
return f.resetPeek(), F;
|
|
1185
1185
|
}
|
|
@@ -1187,7 +1187,7 @@ function Hs(e, t = {}) {
|
|
|
1187
1187
|
const { currentType: N } = g;
|
|
1188
1188
|
if (N !== 8)
|
|
1189
1189
|
return !1;
|
|
1190
|
-
|
|
1190
|
+
k(f);
|
|
1191
1191
|
const F = p(f.currentPeek());
|
|
1192
1192
|
return f.resetPeek(), F;
|
|
1193
1193
|
}
|
|
@@ -1195,7 +1195,7 @@ function Hs(e, t = {}) {
|
|
|
1195
1195
|
const { currentType: N } = g;
|
|
1196
1196
|
if (!(N === 7 || N === 11))
|
|
1197
1197
|
return !1;
|
|
1198
|
-
|
|
1198
|
+
k(f);
|
|
1199
1199
|
const F = f.currentPeek() === ":";
|
|
1200
1200
|
return f.resetPeek(), F;
|
|
1201
1201
|
}
|
|
@@ -1210,7 +1210,7 @@ function Hs(e, t = {}) {
|
|
|
1210
1210
|
return f.resetPeek(), fe;
|
|
1211
1211
|
}
|
|
1212
1212
|
function pe(f) {
|
|
1213
|
-
|
|
1213
|
+
k(f);
|
|
1214
1214
|
const g = f.currentPeek() === "|";
|
|
1215
1215
|
return f.resetPeek(), g;
|
|
1216
1216
|
}
|
|
@@ -1252,7 +1252,7 @@ function Hs(e, t = {}) {
|
|
|
1252
1252
|
const g = f.charCodeAt(0);
|
|
1253
1253
|
return g >= 48 && g <= 57;
|
|
1254
1254
|
}
|
|
1255
|
-
function
|
|
1255
|
+
function W(f) {
|
|
1256
1256
|
return ue(f, Z);
|
|
1257
1257
|
}
|
|
1258
1258
|
function je(f) {
|
|
@@ -1266,7 +1266,7 @@ function Hs(e, t = {}) {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
function it(f) {
|
|
1268
1268
|
let g = "", N = "";
|
|
1269
|
-
for (; g =
|
|
1269
|
+
for (; g = W(f); )
|
|
1270
1270
|
N += g;
|
|
1271
1271
|
return N;
|
|
1272
1272
|
}
|
|
@@ -1290,7 +1290,7 @@ function Hs(e, t = {}) {
|
|
|
1290
1290
|
return g;
|
|
1291
1291
|
}
|
|
1292
1292
|
function vn(f) {
|
|
1293
|
-
|
|
1293
|
+
y(f);
|
|
1294
1294
|
let g = "", N = "";
|
|
1295
1295
|
for (; g = $(f); )
|
|
1296
1296
|
N += g;
|
|
@@ -1302,20 +1302,20 @@ function Hs(e, t = {}) {
|
|
|
1302
1302
|
return f.currentChar() === Ke && _(j.UNTERMINATED_CLOSING_BRACE, i(), 0), N;
|
|
1303
1303
|
}
|
|
1304
1304
|
function En(f) {
|
|
1305
|
-
|
|
1305
|
+
y(f);
|
|
1306
1306
|
let g = "";
|
|
1307
1307
|
return f.currentChar() === "-" ? (f.next(), g += `-${it(f)}`) : g += it(f), f.currentChar() === Ke && _(j.UNTERMINATED_CLOSING_BRACE, i(), 0), g;
|
|
1308
1308
|
}
|
|
1309
1309
|
function Cn(f) {
|
|
1310
|
-
return f !==
|
|
1310
|
+
return f !== xl && f !== we;
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1313
|
-
|
|
1312
|
+
function _l(f) {
|
|
1313
|
+
y(f), C(f, "'");
|
|
1314
1314
|
let g = "", N = "";
|
|
1315
1315
|
for (; g = ue(f, Cn); )
|
|
1316
1316
|
g === "\\" ? N += bn(f) : N += g;
|
|
1317
1317
|
const F = f.currentChar();
|
|
1318
|
-
return F === we || F === Ke ? (_(j.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), F === we && (f.next(),
|
|
1318
|
+
return F === we || F === Ke ? (_(j.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), F === we && (f.next(), C(f, "'")), N) : (C(f, "'"), N);
|
|
1319
1319
|
}
|
|
1320
1320
|
function bn(f) {
|
|
1321
1321
|
const g = f.currentChar();
|
|
@@ -1332,7 +1332,7 @@ function Hs(e, t = {}) {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
}
|
|
1334
1334
|
function Ut(f, g, N) {
|
|
1335
|
-
|
|
1335
|
+
C(f, g);
|
|
1336
1336
|
let F = "";
|
|
1337
1337
|
for (let fe = 0; fe < N; fe++) {
|
|
1338
1338
|
const ge = Se(f);
|
|
@@ -1348,7 +1348,7 @@ function Hs(e, t = {}) {
|
|
|
1348
1348
|
return f !== "{" && f !== "}" && f !== Be && f !== we;
|
|
1349
1349
|
}
|
|
1350
1350
|
function Ft(f) {
|
|
1351
|
-
|
|
1351
|
+
y(f);
|
|
1352
1352
|
let g = "", N = "";
|
|
1353
1353
|
for (; g = ue(f, kn); )
|
|
1354
1354
|
N += g;
|
|
@@ -1368,13 +1368,13 @@ function Hs(e, t = {}) {
|
|
|
1368
1368
|
return g("");
|
|
1369
1369
|
}
|
|
1370
1370
|
function wt(f) {
|
|
1371
|
-
|
|
1372
|
-
const g =
|
|
1371
|
+
y(f);
|
|
1372
|
+
const g = C(
|
|
1373
1373
|
f,
|
|
1374
1374
|
"|"
|
|
1375
1375
|
/* TokenChars.Pipe */
|
|
1376
1376
|
);
|
|
1377
|
-
return
|
|
1377
|
+
return y(f), g;
|
|
1378
1378
|
}
|
|
1379
1379
|
function Nt(f, g) {
|
|
1380
1380
|
let N = null;
|
|
@@ -1385,16 +1385,16 @@ function Hs(e, t = {}) {
|
|
|
1385
1385
|
2,
|
|
1386
1386
|
"{"
|
|
1387
1387
|
/* TokenChars.BraceLeft */
|
|
1388
|
-
),
|
|
1388
|
+
), y(f), g.braceNest++, N;
|
|
1389
1389
|
case "}":
|
|
1390
1390
|
return g.braceNest > 0 && g.currentType === 2 && _(j.EMPTY_PLACEHOLDER, i(), 0), f.next(), N = h(
|
|
1391
1391
|
g,
|
|
1392
1392
|
3,
|
|
1393
1393
|
"}"
|
|
1394
1394
|
/* TokenChars.BraceRight */
|
|
1395
|
-
), g.braceNest--, g.braceNest > 0 &&
|
|
1395
|
+
), g.braceNest--, g.braceNest > 0 && y(f), g.inLinked && g.braceNest === 0 && (g.inLinked = !1), N;
|
|
1396
1396
|
case "@":
|
|
1397
|
-
return g.braceNest > 0 && _(j.UNTERMINATED_CLOSING_BRACE, i(), 0), N = ot(f, g) ||
|
|
1397
|
+
return g.braceNest > 0 && _(j.UNTERMINATED_CLOSING_BRACE, i(), 0), N = ot(f, g) || L(g), g.braceNest = 0, N;
|
|
1398
1398
|
default: {
|
|
1399
1399
|
let fe = !0, ge = !0, ee = !0;
|
|
1400
1400
|
if (pe(f))
|
|
@@ -1402,13 +1402,13 @@ function Hs(e, t = {}) {
|
|
|
1402
1402
|
if (g.braceNest > 0 && (g.currentType === 4 || g.currentType === 5 || g.currentType === 6))
|
|
1403
1403
|
return _(j.UNTERMINATED_CLOSING_BRACE, i(), 0), g.braceNest = 0, Tt(f, g);
|
|
1404
1404
|
if (fe = A(f, g))
|
|
1405
|
-
return N = h(g, 4, vn(f)),
|
|
1406
|
-
if (ge =
|
|
1407
|
-
return N = h(g, 5, En(f)),
|
|
1405
|
+
return N = h(g, 4, vn(f)), y(f), N;
|
|
1406
|
+
if (ge = S(f, g))
|
|
1407
|
+
return N = h(g, 5, En(f)), y(f), N;
|
|
1408
1408
|
if (ee = R(f, g))
|
|
1409
|
-
return N = h(g, 6,
|
|
1409
|
+
return N = h(g, 6, _l(f)), y(f), N;
|
|
1410
1410
|
if (!fe && !ge && !ee)
|
|
1411
|
-
return N = h(g, 12, Ft(f)), _(j.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, N.value),
|
|
1411
|
+
return N = h(g, 12, Ft(f)), _(j.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, N.value), y(f), N;
|
|
1412
1412
|
break;
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
@@ -1427,21 +1427,21 @@ function Hs(e, t = {}) {
|
|
|
1427
1427
|
/* TokenChars.LinkedAlias */
|
|
1428
1428
|
), g.inLinked = !0, F;
|
|
1429
1429
|
case ".":
|
|
1430
|
-
return
|
|
1430
|
+
return y(f), f.next(), h(
|
|
1431
1431
|
g,
|
|
1432
1432
|
8,
|
|
1433
1433
|
"."
|
|
1434
1434
|
/* TokenChars.LinkedDot */
|
|
1435
1435
|
);
|
|
1436
1436
|
case ":":
|
|
1437
|
-
return
|
|
1437
|
+
return y(f), f.next(), h(
|
|
1438
1438
|
g,
|
|
1439
1439
|
9,
|
|
1440
1440
|
":"
|
|
1441
1441
|
/* TokenChars.LinkedDelimiter */
|
|
1442
1442
|
);
|
|
1443
1443
|
default:
|
|
1444
|
-
return pe(f) ? (F = h(g, 1, wt(f)), g.braceNest = 0, g.inLinked = !1, F) : P(f, g) || X(f, g) ? (
|
|
1444
|
+
return pe(f) ? (F = h(g, 1, wt(f)), g.braceNest = 0, g.inLinked = !1, F) : P(f, g) || X(f, g) ? (y(f), ot(f, g)) : T(f, g) ? (y(f), h(g, 11, Ln(f))) : Q(f, g) ? (y(f), fe === "{" ? Nt(f, g) || F : h(g, 10, Sn(f))) : (N === 7 && _(j.INVALID_LINKED_FORMAT, i(), 0), g.braceNest = 0, g.inLinked = !1, Tt(f, g));
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
1447
|
function Tt(f, g) {
|
|
@@ -1450,12 +1450,12 @@ function Hs(e, t = {}) {
|
|
|
1450
1450
|
/* TokenTypes.EOF */
|
|
1451
1451
|
};
|
|
1452
1452
|
if (g.braceNest > 0)
|
|
1453
|
-
return Nt(f, g) ||
|
|
1453
|
+
return Nt(f, g) || L(g);
|
|
1454
1454
|
if (g.inLinked)
|
|
1455
|
-
return ot(f, g) ||
|
|
1455
|
+
return ot(f, g) || L(g);
|
|
1456
1456
|
switch (f.currentChar()) {
|
|
1457
1457
|
case "{":
|
|
1458
|
-
return Nt(f, g) ||
|
|
1458
|
+
return Nt(f, g) || L(g);
|
|
1459
1459
|
case "}":
|
|
1460
1460
|
return _(j.UNBALANCED_CLOSING_BRACE, i(), 0), f.next(), h(
|
|
1461
1461
|
g,
|
|
@@ -1464,7 +1464,7 @@ function Hs(e, t = {}) {
|
|
|
1464
1464
|
/* TokenChars.BraceRight */
|
|
1465
1465
|
);
|
|
1466
1466
|
case "@":
|
|
1467
|
-
return ot(f, g) ||
|
|
1467
|
+
return ot(f, g) || L(g);
|
|
1468
1468
|
default: {
|
|
1469
1469
|
if (pe(f))
|
|
1470
1470
|
return N = h(g, 1, wt(f)), g.braceNest = 0, g.inLinked = !1, N;
|
|
@@ -1506,9 +1506,9 @@ function Gs(e, t, n) {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
function Ws(e = {}) {
|
|
1508
1508
|
const t = e.location !== !1, { onError: n } = e;
|
|
1509
|
-
function l(p, E, A,
|
|
1509
|
+
function l(p, E, A, S, ...R) {
|
|
1510
1510
|
const P = p.currentPosition();
|
|
1511
|
-
if (P.offset +=
|
|
1511
|
+
if (P.offset += S, P.column += S, n) {
|
|
1512
1512
|
const T = t ? Mn(A, P) : null, X = Lt(E, T, {
|
|
1513
1513
|
domain: Bs,
|
|
1514
1514
|
args: R
|
|
@@ -1517,31 +1517,31 @@ function Ws(e = {}) {
|
|
|
1517
1517
|
}
|
|
1518
1518
|
}
|
|
1519
1519
|
function o(p, E, A) {
|
|
1520
|
-
const
|
|
1521
|
-
return t && (
|
|
1520
|
+
const S = { type: p };
|
|
1521
|
+
return t && (S.start = E, S.end = E, S.loc = { start: A, end: A }), S;
|
|
1522
1522
|
}
|
|
1523
|
-
function i(p, E, A,
|
|
1523
|
+
function i(p, E, A, S) {
|
|
1524
1524
|
t && (p.end = E, p.loc && (p.loc.end = A));
|
|
1525
1525
|
}
|
|
1526
1526
|
function r(p, E) {
|
|
1527
|
-
const A = p.context(),
|
|
1528
|
-
return
|
|
1527
|
+
const A = p.context(), S = o(3, A.offset, A.startLoc);
|
|
1528
|
+
return S.value = E, i(S, p.currentOffset(), p.currentPosition()), S;
|
|
1529
1529
|
}
|
|
1530
1530
|
function a(p, E) {
|
|
1531
|
-
const A = p.context(), { lastOffset:
|
|
1531
|
+
const A = p.context(), { lastOffset: S, lastStartLoc: R } = A, P = o(5, S, R);
|
|
1532
1532
|
return P.index = parseInt(E, 10), p.nextToken(), i(P, p.currentOffset(), p.currentPosition()), P;
|
|
1533
1533
|
}
|
|
1534
1534
|
function s(p, E) {
|
|
1535
|
-
const A = p.context(), { lastOffset:
|
|
1535
|
+
const A = p.context(), { lastOffset: S, lastStartLoc: R } = A, P = o(4, S, R);
|
|
1536
1536
|
return P.key = E, p.nextToken(), i(P, p.currentOffset(), p.currentPosition()), P;
|
|
1537
1537
|
}
|
|
1538
1538
|
function c(p, E) {
|
|
1539
|
-
const A = p.context(), { lastOffset:
|
|
1539
|
+
const A = p.context(), { lastOffset: S, lastStartLoc: R } = A, P = o(9, S, R);
|
|
1540
1540
|
return P.value = E.replace(zs, Gs), p.nextToken(), i(P, p.currentOffset(), p.currentPosition()), P;
|
|
1541
1541
|
}
|
|
1542
1542
|
function m(p) {
|
|
1543
|
-
const E = p.nextToken(), A = p.context(), { lastOffset:
|
|
1544
|
-
return E.type !== 11 ? (l(p, j.UNEXPECTED_EMPTY_LINKED_MODIFIER, A.lastStartLoc, 0), P.value = "", i(P,
|
|
1543
|
+
const E = p.nextToken(), A = p.context(), { lastOffset: S, lastStartLoc: R } = A, P = o(8, S, R);
|
|
1544
|
+
return E.type !== 11 ? (l(p, j.UNEXPECTED_EMPTY_LINKED_MODIFIER, A.lastStartLoc, 0), P.value = "", i(P, S, R), {
|
|
1545
1545
|
nextConsumeToken: E,
|
|
1546
1546
|
node: P
|
|
1547
1547
|
}) : (E.value == null && l(p, j.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, ze(E)), P.value = E.value || "", i(P, p.currentOffset(), p.currentPosition()), {
|
|
@@ -1549,34 +1549,34 @@ function Ws(e = {}) {
|
|
|
1549
1549
|
});
|
|
1550
1550
|
}
|
|
1551
1551
|
function _(p, E) {
|
|
1552
|
-
const A = p.context(),
|
|
1553
|
-
return
|
|
1552
|
+
const A = p.context(), S = o(7, A.offset, A.startLoc);
|
|
1553
|
+
return S.value = E, i(S, p.currentOffset(), p.currentPosition()), S;
|
|
1554
1554
|
}
|
|
1555
1555
|
function h(p) {
|
|
1556
1556
|
const E = p.context(), A = o(6, E.offset, E.startLoc);
|
|
1557
|
-
let
|
|
1558
|
-
if (
|
|
1557
|
+
let S = p.nextToken();
|
|
1558
|
+
if (S.type === 8) {
|
|
1559
1559
|
const R = m(p);
|
|
1560
|
-
A.modifier = R.node,
|
|
1560
|
+
A.modifier = R.node, S = R.nextConsumeToken || p.nextToken();
|
|
1561
1561
|
}
|
|
1562
|
-
switch (
|
|
1562
|
+
switch (S.type !== 9 && l(p, j.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, ze(S)), S = p.nextToken(), S.type === 2 && (S = p.nextToken()), S.type) {
|
|
1563
1563
|
case 10:
|
|
1564
|
-
|
|
1564
|
+
S.value == null && l(p, j.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, ze(S)), A.key = _(p, S.value || "");
|
|
1565
1565
|
break;
|
|
1566
1566
|
case 4:
|
|
1567
|
-
|
|
1567
|
+
S.value == null && l(p, j.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, ze(S)), A.key = s(p, S.value || "");
|
|
1568
1568
|
break;
|
|
1569
1569
|
case 5:
|
|
1570
|
-
|
|
1570
|
+
S.value == null && l(p, j.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, ze(S)), A.key = a(p, S.value || "");
|
|
1571
1571
|
break;
|
|
1572
1572
|
case 6:
|
|
1573
|
-
|
|
1573
|
+
S.value == null && l(p, j.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, ze(S)), A.key = c(p, S.value || "");
|
|
1574
1574
|
break;
|
|
1575
1575
|
default: {
|
|
1576
1576
|
l(p, j.UNEXPECTED_EMPTY_LINKED_KEY, E.lastStartLoc, 0);
|
|
1577
1577
|
const R = p.context(), P = o(7, R.offset, R.startLoc);
|
|
1578
1578
|
return P.value = "", i(P, R.offset, R.startLoc), A.key = P, i(A, R.offset, R.startLoc), {
|
|
1579
|
-
nextConsumeToken:
|
|
1579
|
+
nextConsumeToken: S,
|
|
1580
1580
|
node: A
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
@@ -1585,8 +1585,8 @@ function Ws(e = {}) {
|
|
|
1585
1585
|
node: A
|
|
1586
1586
|
};
|
|
1587
1587
|
}
|
|
1588
|
-
function
|
|
1589
|
-
const E = p.context(), A = E.currentType === 1 ? p.currentOffset() : E.offset,
|
|
1588
|
+
function L(p) {
|
|
1589
|
+
const E = p.context(), A = E.currentType === 1 ? p.currentOffset() : E.offset, S = E.currentType === 1 ? E.endLoc : E.startLoc, R = o(2, A, S);
|
|
1590
1590
|
R.items = [];
|
|
1591
1591
|
let P = null;
|
|
1592
1592
|
do {
|
|
@@ -1614,26 +1614,26 @@ function Ws(e = {}) {
|
|
|
1614
1614
|
const T = E.currentType === 1 ? E.lastOffset : p.currentOffset(), X = E.currentType === 1 ? E.lastEndLoc : p.currentPosition();
|
|
1615
1615
|
return i(R, T, X), R;
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function C(p, E, A, S) {
|
|
1618
1618
|
const R = p.context();
|
|
1619
|
-
let P =
|
|
1619
|
+
let P = S.items.length === 0;
|
|
1620
1620
|
const T = o(1, E, A);
|
|
1621
|
-
T.cases = [], T.cases.push(
|
|
1621
|
+
T.cases = [], T.cases.push(S);
|
|
1622
1622
|
do {
|
|
1623
|
-
const X =
|
|
1623
|
+
const X = L(p);
|
|
1624
1624
|
P || (P = X.items.length === 0), T.cases.push(X);
|
|
1625
1625
|
} while (R.currentType !== 13);
|
|
1626
1626
|
return P && l(p, j.MUST_HAVE_MESSAGES_IN_PLURAL, A, 0), i(T, p.currentOffset(), p.currentPosition()), T;
|
|
1627
1627
|
}
|
|
1628
|
-
function
|
|
1629
|
-
const E = p.context(), { offset: A, startLoc:
|
|
1630
|
-
return E.currentType === 13 ? R :
|
|
1628
|
+
function k(p) {
|
|
1629
|
+
const E = p.context(), { offset: A, startLoc: S } = E, R = L(p);
|
|
1630
|
+
return E.currentType === 13 ? R : C(p, A, S, R);
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1633
|
-
const E = Hs(p, ke({}, e)), A = E.context(),
|
|
1634
|
-
return t &&
|
|
1632
|
+
function y(p) {
|
|
1633
|
+
const E = Hs(p, ke({}, e)), A = E.context(), S = o(0, A.offset, A.startLoc);
|
|
1634
|
+
return t && S.loc && (S.loc.source = p), S.body = k(E), e.onCacheKey && (S.cacheKey = e.onCacheKey(p)), A.currentType !== 13 && l(E, j.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, p[A.offset] || ""), i(S, E.currentOffset(), E.currentPosition()), S;
|
|
1635
1635
|
}
|
|
1636
|
-
return { parse:
|
|
1636
|
+
return { parse: y };
|
|
1637
1637
|
}
|
|
1638
1638
|
function ze(e) {
|
|
1639
1639
|
if (e.type === 13)
|
|
@@ -1648,20 +1648,20 @@ function js(e, t = {}) {
|
|
|
1648
1648
|
};
|
|
1649
1649
|
return { context: () => n, helper: (i) => (n.helpers.add(i), i) };
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1651
|
+
function Ul(e, t) {
|
|
1652
1652
|
for (let n = 0; n < e.length; n++)
|
|
1653
1653
|
tl(e[n], t);
|
|
1654
1654
|
}
|
|
1655
1655
|
function tl(e, t) {
|
|
1656
1656
|
switch (e.type) {
|
|
1657
1657
|
case 1:
|
|
1658
|
-
|
|
1658
|
+
Ul(e.cases, t), t.helper(
|
|
1659
1659
|
"plural"
|
|
1660
1660
|
/* HelperNameMap.PLURAL */
|
|
1661
1661
|
);
|
|
1662
1662
|
break;
|
|
1663
1663
|
case 2:
|
|
1664
|
-
|
|
1664
|
+
Ul(e.items, t);
|
|
1665
1665
|
break;
|
|
1666
1666
|
case 6: {
|
|
1667
1667
|
tl(e.key, t), t.helper(
|
|
@@ -1704,9 +1704,9 @@ function Ks(e, t = {}) {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
function Ys(e) {
|
|
1706
1706
|
const t = e.body;
|
|
1707
|
-
return t.type === 2 ?
|
|
1707
|
+
return t.type === 2 ? Fl(t) : t.cases.forEach((n) => Fl(n)), e;
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1709
|
+
function Fl(e) {
|
|
1710
1710
|
if (e.items.length === 1) {
|
|
1711
1711
|
const t = e.items[0];
|
|
1712
1712
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -1796,20 +1796,20 @@ function Zs(e, t) {
|
|
|
1796
1796
|
};
|
|
1797
1797
|
i && e.loc && (r.source = e.loc.source);
|
|
1798
1798
|
const a = () => r;
|
|
1799
|
-
function s(
|
|
1800
|
-
r.code +=
|
|
1799
|
+
function s(k, y) {
|
|
1800
|
+
r.code += k;
|
|
1801
1801
|
}
|
|
1802
|
-
function c(
|
|
1803
|
-
const p =
|
|
1804
|
-
s(o ? p + " ".repeat(
|
|
1802
|
+
function c(k, y = !0) {
|
|
1803
|
+
const p = y ? l : "";
|
|
1804
|
+
s(o ? p + " ".repeat(k) : p);
|
|
1805
1805
|
}
|
|
1806
|
-
function m(
|
|
1807
|
-
const
|
|
1808
|
-
|
|
1806
|
+
function m(k = !0) {
|
|
1807
|
+
const y = ++r.indentLevel;
|
|
1808
|
+
k && c(y);
|
|
1809
1809
|
}
|
|
1810
|
-
function _(
|
|
1811
|
-
const
|
|
1812
|
-
|
|
1810
|
+
function _(k = !0) {
|
|
1811
|
+
const y = --r.indentLevel;
|
|
1812
|
+
k && c(y);
|
|
1813
1813
|
}
|
|
1814
1814
|
function h() {
|
|
1815
1815
|
c(r.indentLevel);
|
|
@@ -1820,7 +1820,7 @@ function Zs(e, t) {
|
|
|
1820
1820
|
indent: m,
|
|
1821
1821
|
deindent: _,
|
|
1822
1822
|
newline: h,
|
|
1823
|
-
helper: (
|
|
1823
|
+
helper: (k) => `_${k}`,
|
|
1824
1824
|
needIndent: () => r.needIndent
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
@@ -1944,40 +1944,40 @@ function iu() {
|
|
|
1944
1944
|
function He(e) {
|
|
1945
1945
|
return le(e) && nl(e) === 0 && (Fe(e, "b") || Fe(e, "body"));
|
|
1946
1946
|
}
|
|
1947
|
-
const
|
|
1947
|
+
const Oi = ["b", "body"];
|
|
1948
1948
|
function ou(e) {
|
|
1949
|
-
return nt(e,
|
|
1949
|
+
return nt(e, Oi);
|
|
1950
1950
|
}
|
|
1951
|
-
const
|
|
1951
|
+
const Di = ["c", "cases"];
|
|
1952
1952
|
function ru(e) {
|
|
1953
|
-
return nt(e,
|
|
1953
|
+
return nt(e, Di, []);
|
|
1954
1954
|
}
|
|
1955
|
-
const
|
|
1955
|
+
const $i = ["s", "static"];
|
|
1956
1956
|
function au(e) {
|
|
1957
|
-
return nt(e,
|
|
1957
|
+
return nt(e, $i);
|
|
1958
1958
|
}
|
|
1959
|
-
const
|
|
1959
|
+
const Ri = ["i", "items"];
|
|
1960
1960
|
function su(e) {
|
|
1961
|
-
return nt(e,
|
|
1961
|
+
return nt(e, Ri, []);
|
|
1962
1962
|
}
|
|
1963
|
-
const
|
|
1963
|
+
const Pi = ["t", "type"];
|
|
1964
1964
|
function nl(e) {
|
|
1965
|
-
return nt(e,
|
|
1965
|
+
return nt(e, Pi);
|
|
1966
1966
|
}
|
|
1967
|
-
const
|
|
1967
|
+
const Mi = ["v", "value"];
|
|
1968
1968
|
function Wt(e, t) {
|
|
1969
|
-
const n = nt(e,
|
|
1969
|
+
const n = nt(e, Mi);
|
|
1970
1970
|
if (n != null)
|
|
1971
1971
|
return n;
|
|
1972
1972
|
throw Dt(t);
|
|
1973
1973
|
}
|
|
1974
|
-
const
|
|
1974
|
+
const Vi = ["m", "modifier"];
|
|
1975
1975
|
function uu(e) {
|
|
1976
|
-
return nt(e,
|
|
1976
|
+
return nt(e, Vi);
|
|
1977
1977
|
}
|
|
1978
|
-
const
|
|
1978
|
+
const xi = ["k", "key"];
|
|
1979
1979
|
function cu(e) {
|
|
1980
|
-
const t = nt(e,
|
|
1980
|
+
const t = nt(e, xi);
|
|
1981
1981
|
if (t)
|
|
1982
1982
|
return t;
|
|
1983
1983
|
throw Dt(
|
|
@@ -1993,15 +1993,15 @@ function nt(e, t, n) {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
return n;
|
|
1995
1995
|
}
|
|
1996
|
-
const
|
|
1997
|
-
...Ii,
|
|
1996
|
+
const Ui = [
|
|
1998
1997
|
...Oi,
|
|
1999
1998
|
...Di,
|
|
2000
1999
|
...$i,
|
|
2000
|
+
...Ri,
|
|
2001
|
+
...xi,
|
|
2001
2002
|
...Vi,
|
|
2002
2003
|
...Mi,
|
|
2003
|
-
...Pi
|
|
2004
|
-
...Ri
|
|
2004
|
+
...Pi
|
|
2005
2005
|
];
|
|
2006
2006
|
function Dt(e) {
|
|
2007
2007
|
return new Error(`unhandled node type: ${e}`);
|
|
@@ -2020,12 +2020,12 @@ function du(e, t) {
|
|
|
2020
2020
|
const i = ru(n);
|
|
2021
2021
|
return e.plural(i.reduce((r, a) => [
|
|
2022
2022
|
...r,
|
|
2023
|
-
|
|
2023
|
+
Hl(e, a)
|
|
2024
2024
|
], []));
|
|
2025
2025
|
} else
|
|
2026
|
-
return
|
|
2026
|
+
return Hl(e, n);
|
|
2027
2027
|
}
|
|
2028
|
-
function
|
|
2028
|
+
function Hl(e, t) {
|
|
2029
2029
|
const n = au(t);
|
|
2030
2030
|
if (n != null)
|
|
2031
2031
|
return e.type === "text" ? n : e.normalize([n]);
|
|
@@ -2146,10 +2146,10 @@ const bu = {
|
|
|
2146
2146
|
[Ne.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
2147
2147
|
};
|
|
2148
2148
|
function ll(e, t) {
|
|
2149
|
-
return t.locale != null ?
|
|
2149
|
+
return t.locale != null ? Bl(t.locale) : Bl(e.locale);
|
|
2150
2150
|
}
|
|
2151
2151
|
let In;
|
|
2152
|
-
function
|
|
2152
|
+
function Bl(e) {
|
|
2153
2153
|
if (x(e))
|
|
2154
2154
|
return e;
|
|
2155
2155
|
if (me(e)) {
|
|
@@ -2171,7 +2171,7 @@ function ku(e, t, n) {
|
|
|
2171
2171
|
...ve(t) ? t : le(t) ? Object.keys(t) : x(t) ? [t] : [n]
|
|
2172
2172
|
])];
|
|
2173
2173
|
}
|
|
2174
|
-
function
|
|
2174
|
+
function Fi(e, t, n) {
|
|
2175
2175
|
const l = x(n) ? n : tn, o = e;
|
|
2176
2176
|
o.__localeChainCache || (o.__localeChainCache = /* @__PURE__ */ new Map());
|
|
2177
2177
|
let i = o.__localeChainCache.get(l);
|
|
@@ -2179,13 +2179,13 @@ function Ui(e, t, n) {
|
|
|
2179
2179
|
i = [];
|
|
2180
2180
|
let r = [n];
|
|
2181
2181
|
for (; ve(r); )
|
|
2182
|
-
r =
|
|
2182
|
+
r = zl(i, r, t);
|
|
2183
2183
|
const a = ve(t) || !ne(t) ? t : t.default ? t.default : null;
|
|
2184
|
-
r = x(a) ? [a] : a, ve(r) &&
|
|
2184
|
+
r = x(a) ? [a] : a, ve(r) && zl(i, r, !1), o.__localeChainCache.set(l, i);
|
|
2185
2185
|
}
|
|
2186
2186
|
return i;
|
|
2187
2187
|
}
|
|
2188
|
-
function
|
|
2188
|
+
function zl(e, t, n) {
|
|
2189
2189
|
let l = !0;
|
|
2190
2190
|
for (let o = 0; o < t.length && ye(l); o++) {
|
|
2191
2191
|
const i = t[o];
|
|
@@ -2461,37 +2461,37 @@ function Ou(e) {
|
|
|
2461
2461
|
]();
|
|
2462
2462
|
}
|
|
2463
2463
|
};
|
|
2464
|
-
function
|
|
2465
|
-
const
|
|
2466
|
-
if (l === 5 &&
|
|
2467
|
-
return n++, a = "\\" +
|
|
2464
|
+
function L() {
|
|
2465
|
+
const C = e[n + 1];
|
|
2466
|
+
if (l === 5 && C === "'" || l === 6 && C === '"')
|
|
2467
|
+
return n++, a = "\\" + C, h[
|
|
2468
2468
|
0
|
|
2469
2469
|
/* Actions.APPEND */
|
|
2470
2470
|
](), !0;
|
|
2471
2471
|
}
|
|
2472
2472
|
for (; l !== null; )
|
|
2473
|
-
if (n++, i = e[n], !(i === "\\" &&
|
|
2473
|
+
if (n++, i = e[n], !(i === "\\" && L())) {
|
|
2474
2474
|
if (s = Au(i), _ = lt[l], c = _[s] || _.l || 8, c === 8 || (l = c[0], c[1] !== void 0 && (m = h[c[1]], m && (a = i, m() === !1))))
|
|
2475
2475
|
return;
|
|
2476
2476
|
if (l === 7)
|
|
2477
2477
|
return t;
|
|
2478
2478
|
}
|
|
2479
2479
|
}
|
|
2480
|
-
const
|
|
2480
|
+
const Gl = /* @__PURE__ */ new Map();
|
|
2481
2481
|
function Du(e, t) {
|
|
2482
2482
|
return le(e) ? e[t] : null;
|
|
2483
2483
|
}
|
|
2484
2484
|
function $u(e, t) {
|
|
2485
2485
|
if (!le(e))
|
|
2486
2486
|
return null;
|
|
2487
|
-
let n =
|
|
2488
|
-
if (n || (n = Ou(t), n &&
|
|
2487
|
+
let n = Gl.get(t);
|
|
2488
|
+
if (n || (n = Ou(t), n && Gl.set(t, n)), !n)
|
|
2489
2489
|
return null;
|
|
2490
2490
|
const l = n.length;
|
|
2491
2491
|
let o = e, i = 0;
|
|
2492
2492
|
for (; i < l; ) {
|
|
2493
2493
|
const r = n[i];
|
|
2494
|
-
if (
|
|
2494
|
+
if (Ui.includes(r) && He(o))
|
|
2495
2495
|
return null;
|
|
2496
2496
|
const a = o[r];
|
|
2497
2497
|
if (a === void 0 || me(o))
|
|
@@ -2520,43 +2520,43 @@ const Ae = {
|
|
|
2520
2520
|
function ft(e, ...t) {
|
|
2521
2521
|
return fn(Pu[e], ...t);
|
|
2522
2522
|
}
|
|
2523
|
-
const Mu = "11.1.12", pn = -1, tn = "en-US", nn = "",
|
|
2523
|
+
const Mu = "11.1.12", pn = -1, tn = "en-US", nn = "", Wl = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
2524
2524
|
function Vu() {
|
|
2525
2525
|
return {
|
|
2526
2526
|
upper: (e, t) => t === "text" && x(e) ? e.toUpperCase() : t === "vnode" && le(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
2527
2527
|
lower: (e, t) => t === "text" && x(e) ? e.toLowerCase() : t === "vnode" && le(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
2528
|
-
capitalize: (e, t) => t === "text" && x(e) ?
|
|
2528
|
+
capitalize: (e, t) => t === "text" && x(e) ? Wl(e) : t === "vnode" && le(e) && "__v_isVNode" in e ? Wl(e.children) : e
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
|
-
let Fi;
|
|
2532
|
-
function xu(e) {
|
|
2533
|
-
Fi = e;
|
|
2534
|
-
}
|
|
2535
2531
|
let Hi;
|
|
2536
|
-
function
|
|
2532
|
+
function xu(e) {
|
|
2537
2533
|
Hi = e;
|
|
2538
2534
|
}
|
|
2539
2535
|
let Bi;
|
|
2540
|
-
function
|
|
2536
|
+
function Uu(e) {
|
|
2541
2537
|
Bi = e;
|
|
2542
2538
|
}
|
|
2543
|
-
let zi
|
|
2544
|
-
|
|
2539
|
+
let zi;
|
|
2540
|
+
function Fu(e) {
|
|
2545
2541
|
zi = e;
|
|
2546
|
-
}
|
|
2542
|
+
}
|
|
2547
2543
|
let Gi = null;
|
|
2548
|
-
const
|
|
2544
|
+
const Hu = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
2549
2545
|
Gi = e;
|
|
2550
|
-
},
|
|
2551
|
-
let
|
|
2546
|
+
}, Bu = /* @__NO_SIDE_EFFECTS__ */ () => Gi;
|
|
2547
|
+
let Wi = null;
|
|
2548
|
+
const jl = (e) => {
|
|
2549
|
+
Wi = e;
|
|
2550
|
+
}, zu = () => Wi;
|
|
2551
|
+
let Kl = 0;
|
|
2552
2552
|
function Gu(e = {}) {
|
|
2553
|
-
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(), _ = me(e.missing) ? e.missing : null, h = ye(e.missingWarn) || en(e.missingWarn) ? e.missingWarn : !0,
|
|
2553
|
+
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(), _ = me(e.missing) ? e.missing : null, h = ye(e.missingWarn) || en(e.missingWarn) ? e.missingWarn : !0, L = ye(e.fallbackWarn) || en(e.fallbackWarn) ? e.fallbackWarn : !0, C = !!e.fallbackFormat, k = !!e.unresolving, y = me(e.postTranslation) ? e.postTranslation : null, p = ne(e.processor) ? e.processor : null, E = ye(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, A = !!e.escapeParameter, S = me(e.messageCompiler) ? e.messageCompiler : Hi;
|
|
2554
2554
|
process.env.NODE_ENV !== "production" && me(e.messageCompiler) && _s(ft(Ae.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
2555
|
-
const R = me(e.messageResolver) ? e.messageResolver :
|
|
2556
|
-
|
|
2555
|
+
const R = me(e.messageResolver) ? e.messageResolver : Bi || Du, P = me(e.localeFallbacker) ? e.localeFallbacker : zi || ku, T = le(e.fallbackContext) ? e.fallbackContext : void 0, X = e, Q = le(X.__datetimeFormatters) ? X.__datetimeFormatters : /* @__PURE__ */ new Map(), pe = le(X.__numberFormatters) ? X.__numberFormatters : /* @__PURE__ */ new Map(), Te = le(X.__meta) ? X.__meta : {};
|
|
2556
|
+
Kl++;
|
|
2557
2557
|
const ue = {
|
|
2558
2558
|
version: n,
|
|
2559
|
-
cid:
|
|
2559
|
+
cid: Kl,
|
|
2560
2560
|
locale: l,
|
|
2561
2561
|
fallbackLocale: i,
|
|
2562
2562
|
messages: r,
|
|
@@ -2564,14 +2564,14 @@ function Gu(e = {}) {
|
|
|
2564
2564
|
pluralRules: m,
|
|
2565
2565
|
missing: _,
|
|
2566
2566
|
missingWarn: h,
|
|
2567
|
-
fallbackWarn:
|
|
2568
|
-
fallbackFormat:
|
|
2569
|
-
unresolving:
|
|
2570
|
-
postTranslation:
|
|
2567
|
+
fallbackWarn: L,
|
|
2568
|
+
fallbackFormat: C,
|
|
2569
|
+
unresolving: k,
|
|
2570
|
+
postTranslation: y,
|
|
2571
2571
|
processor: p,
|
|
2572
2572
|
warnHtmlMessage: E,
|
|
2573
2573
|
escapeParameter: A,
|
|
2574
|
-
messageCompiler:
|
|
2574
|
+
messageCompiler: S,
|
|
2575
2575
|
messageResolver: R,
|
|
2576
2576
|
localeFallbacker: P,
|
|
2577
2577
|
fallbackContext: T,
|
|
@@ -2584,7 +2584,7 @@ const On = (e) => ({ [e]: se() });
|
|
|
2584
2584
|
function gn(e, t) {
|
|
2585
2585
|
return e instanceof RegExp ? e.test(t) : e;
|
|
2586
2586
|
}
|
|
2587
|
-
function
|
|
2587
|
+
function ji(e, t) {
|
|
2588
2588
|
return e instanceof RegExp ? e.test(t) : e;
|
|
2589
2589
|
}
|
|
2590
2590
|
function il(e, t, n, l, o) {
|
|
@@ -2602,13 +2602,13 @@ function il(e, t, n, l, o) {
|
|
|
2602
2602
|
const a = i(e, n, t, o);
|
|
2603
2603
|
return x(a) ? a : t;
|
|
2604
2604
|
} else
|
|
2605
|
-
return process.env.NODE_ENV !== "production" &&
|
|
2605
|
+
return process.env.NODE_ENV !== "production" && ji(l, t) && r(ft(Ae.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
2606
2606
|
}
|
|
2607
2607
|
function It(e, t, n) {
|
|
2608
2608
|
const l = e;
|
|
2609
2609
|
l.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
2610
2610
|
}
|
|
2611
|
-
function
|
|
2611
|
+
function Ki(e, t) {
|
|
2612
2612
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
2613
2613
|
}
|
|
2614
2614
|
function Wu(e, t) {
|
|
@@ -2616,54 +2616,54 @@ function Wu(e, t) {
|
|
|
2616
2616
|
if (n === -1)
|
|
2617
2617
|
return !1;
|
|
2618
2618
|
for (let l = n + 1; l < t.length; l++)
|
|
2619
|
-
if (
|
|
2619
|
+
if (Ki(e, t[l]))
|
|
2620
2620
|
return !0;
|
|
2621
2621
|
return !1;
|
|
2622
2622
|
}
|
|
2623
|
-
const
|
|
2624
|
-
dateTimeFormat:
|
|
2625
|
-
numberFormat:
|
|
2623
|
+
const Yl = typeof Intl < "u", Yi = {
|
|
2624
|
+
dateTimeFormat: Yl && typeof Intl.DateTimeFormat < "u",
|
|
2625
|
+
numberFormat: Yl && typeof Intl.NumberFormat < "u"
|
|
2626
2626
|
};
|
|
2627
|
-
function
|
|
2627
|
+
function ql(e, ...t) {
|
|
2628
2628
|
const { datetimeFormats: n, unresolving: l, fallbackLocale: o, onWarn: i, localeFallbacker: r } = e, { __datetimeFormatters: a } = e;
|
|
2629
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
2629
|
+
if (process.env.NODE_ENV !== "production" && !Yi.dateTimeFormat)
|
|
2630
2630
|
return i(ft(Ae.CANNOT_FORMAT_DATE)), nn;
|
|
2631
|
-
const [s, c, m, _] = xn(...t), h = ye(m.missingWarn) ? m.missingWarn : e.missingWarn,
|
|
2631
|
+
const [s, c, m, _] = xn(...t), h = ye(m.missingWarn) ? m.missingWarn : e.missingWarn, L = ye(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, C = !!m.part, k = ll(e, m), y = r(
|
|
2632
2632
|
e,
|
|
2633
2633
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2634
2634
|
o,
|
|
2635
|
-
|
|
2635
|
+
k
|
|
2636
2636
|
);
|
|
2637
2637
|
if (!x(s) || s === "")
|
|
2638
|
-
return new Intl.DateTimeFormat(
|
|
2639
|
-
let p = {}, E, A = null,
|
|
2638
|
+
return new Intl.DateTimeFormat(k, _).format(c);
|
|
2639
|
+
let p = {}, E, A = null, S = k, R = null;
|
|
2640
2640
|
const P = "datetime format";
|
|
2641
|
-
for (let Q = 0; Q <
|
|
2642
|
-
if (E = R =
|
|
2641
|
+
for (let Q = 0; Q < y.length; Q++) {
|
|
2642
|
+
if (E = R = y[Q], process.env.NODE_ENV !== "production" && k !== E && gn(L, s) && i(ft(Ae.FALLBACK_TO_DATE_FORMAT, {
|
|
2643
2643
|
key: s,
|
|
2644
2644
|
target: E
|
|
2645
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
2645
|
+
})), process.env.NODE_ENV !== "production" && k !== E) {
|
|
2646
2646
|
const pe = e.__v_emitter;
|
|
2647
2647
|
pe && pe.emit("fallback", {
|
|
2648
2648
|
type: P,
|
|
2649
2649
|
key: s,
|
|
2650
|
-
from:
|
|
2650
|
+
from: S,
|
|
2651
2651
|
to: R,
|
|
2652
2652
|
groupId: `${P}:${s}`
|
|
2653
2653
|
});
|
|
2654
2654
|
}
|
|
2655
2655
|
if (p = n[E] || {}, A = p[s], ne(A))
|
|
2656
2656
|
break;
|
|
2657
|
-
il(e, s, E, h, P),
|
|
2657
|
+
il(e, s, E, h, P), S = R;
|
|
2658
2658
|
}
|
|
2659
2659
|
if (!ne(A) || !x(E))
|
|
2660
2660
|
return l ? pn : s;
|
|
2661
2661
|
let T = `${E}__${s}`;
|
|
2662
2662
|
mn(_) || (T = `${T}__${JSON.stringify(_)}`);
|
|
2663
2663
|
let X = a.get(T);
|
|
2664
|
-
return X || (X = new Intl.DateTimeFormat(E, ke({}, A, _)), a.set(T, X)),
|
|
2664
|
+
return X || (X = new Intl.DateTimeFormat(E, ke({}, A, _)), a.set(T, X)), C ? X.formatToParts(c) : X.format(c);
|
|
2665
2665
|
}
|
|
2666
|
-
const
|
|
2666
|
+
const qi = [
|
|
2667
2667
|
"localeMatcher",
|
|
2668
2668
|
"weekday",
|
|
2669
2669
|
"era",
|
|
@@ -2708,56 +2708,56 @@ function xn(...e) {
|
|
|
2708
2708
|
else
|
|
2709
2709
|
throw Ye(Ne.INVALID_ARGUMENT);
|
|
2710
2710
|
return x(n) ? i.key = n : ne(n) && Object.keys(n).forEach((s) => {
|
|
2711
|
-
|
|
2711
|
+
qi.includes(s) ? r[s] = n[s] : i[s] = n[s];
|
|
2712
2712
|
}), x(l) ? i.locale = l : ne(l) && (r = l), ne(o) && (r = o), [i.key || "", a, i, r];
|
|
2713
2713
|
}
|
|
2714
|
-
function
|
|
2714
|
+
function Xl(e, t, n) {
|
|
2715
2715
|
const l = e;
|
|
2716
2716
|
for (const o in n) {
|
|
2717
2717
|
const i = `${t}__${o}`;
|
|
2718
2718
|
l.__datetimeFormatters.has(i) && l.__datetimeFormatters.delete(i);
|
|
2719
2719
|
}
|
|
2720
2720
|
}
|
|
2721
|
-
function
|
|
2721
|
+
function Zl(e, ...t) {
|
|
2722
2722
|
const { numberFormats: n, unresolving: l, fallbackLocale: o, onWarn: i, localeFallbacker: r } = e, { __numberFormatters: a } = e;
|
|
2723
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
2723
|
+
if (process.env.NODE_ENV !== "production" && !Yi.numberFormat)
|
|
2724
2724
|
return i(ft(Ae.CANNOT_FORMAT_NUMBER)), nn;
|
|
2725
|
-
const [s, c, m, _] = Un(...t), h = ye(m.missingWarn) ? m.missingWarn : e.missingWarn,
|
|
2725
|
+
const [s, c, m, _] = Un(...t), h = ye(m.missingWarn) ? m.missingWarn : e.missingWarn, L = ye(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, C = !!m.part, k = ll(e, m), y = r(
|
|
2726
2726
|
e,
|
|
2727
2727
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2728
2728
|
o,
|
|
2729
|
-
|
|
2729
|
+
k
|
|
2730
2730
|
);
|
|
2731
2731
|
if (!x(s) || s === "")
|
|
2732
|
-
return new Intl.NumberFormat(
|
|
2733
|
-
let p = {}, E, A = null,
|
|
2732
|
+
return new Intl.NumberFormat(k, _).format(c);
|
|
2733
|
+
let p = {}, E, A = null, S = k, R = null;
|
|
2734
2734
|
const P = "number format";
|
|
2735
|
-
for (let Q = 0; Q <
|
|
2736
|
-
if (E = R =
|
|
2735
|
+
for (let Q = 0; Q < y.length; Q++) {
|
|
2736
|
+
if (E = R = y[Q], process.env.NODE_ENV !== "production" && k !== E && gn(L, s) && i(ft(Ae.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2737
2737
|
key: s,
|
|
2738
2738
|
target: E
|
|
2739
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
2739
|
+
})), process.env.NODE_ENV !== "production" && k !== E) {
|
|
2740
2740
|
const pe = e.__v_emitter;
|
|
2741
2741
|
pe && pe.emit("fallback", {
|
|
2742
2742
|
type: P,
|
|
2743
2743
|
key: s,
|
|
2744
|
-
from:
|
|
2744
|
+
from: S,
|
|
2745
2745
|
to: R,
|
|
2746
2746
|
groupId: `${P}:${s}`
|
|
2747
2747
|
});
|
|
2748
2748
|
}
|
|
2749
2749
|
if (p = n[E] || {}, A = p[s], ne(A))
|
|
2750
2750
|
break;
|
|
2751
|
-
il(e, s, E, h, P),
|
|
2751
|
+
il(e, s, E, h, P), S = R;
|
|
2752
2752
|
}
|
|
2753
2753
|
if (!ne(A) || !x(E))
|
|
2754
2754
|
return l ? pn : s;
|
|
2755
2755
|
let T = `${E}__${s}`;
|
|
2756
2756
|
mn(_) || (T = `${T}__${JSON.stringify(_)}`);
|
|
2757
2757
|
let X = a.get(T);
|
|
2758
|
-
return X || (X = new Intl.NumberFormat(E, ke({}, A, _)), a.set(T, X)),
|
|
2758
|
+
return X || (X = new Intl.NumberFormat(E, ke({}, A, _)), a.set(T, X)), C ? X.formatToParts(c) : X.format(c);
|
|
2759
2759
|
}
|
|
2760
|
-
const
|
|
2760
|
+
const Xi = [
|
|
2761
2761
|
"localeMatcher",
|
|
2762
2762
|
"style",
|
|
2763
2763
|
"currency",
|
|
@@ -2786,10 +2786,10 @@ function Un(...e) {
|
|
|
2786
2786
|
throw Ye(Ne.INVALID_ARGUMENT);
|
|
2787
2787
|
const a = t;
|
|
2788
2788
|
return x(n) ? i.key = n : ne(n) && Object.keys(n).forEach((s) => {
|
|
2789
|
-
|
|
2789
|
+
Xi.includes(s) ? r[s] = n[s] : i[s] = n[s];
|
|
2790
2790
|
}), x(l) ? i.locale = l : ne(l) && (r = l), ne(o) && (r = o), [i.key || "", a, i, r];
|
|
2791
2791
|
}
|
|
2792
|
-
function
|
|
2792
|
+
function Jl(e, t, n) {
|
|
2793
2793
|
const l = e;
|
|
2794
2794
|
for (const o in n) {
|
|
2795
2795
|
const i = `${t}__${o}`;
|
|
@@ -2797,7 +2797,7 @@ function Zl(e, t, n) {
|
|
|
2797
2797
|
}
|
|
2798
2798
|
}
|
|
2799
2799
|
const ju = (e) => e, Ku = (e) => "", Yu = "text", qu = (e) => e.length === 0 ? "" : el(e), Xu = ws;
|
|
2800
|
-
function
|
|
2800
|
+
function Ql(e, t) {
|
|
2801
2801
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2802
2802
|
}
|
|
2803
2803
|
function Zu(e) {
|
|
@@ -2808,62 +2808,62 @@ function Ju(e, t) {
|
|
|
2808
2808
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2809
2809
|
}
|
|
2810
2810
|
function Qu(e = {}) {
|
|
2811
|
-
const t = e.locale, n = Zu(e), l = le(e.pluralRules) && x(t) && me(e.pluralRules[t]) ? e.pluralRules[t] :
|
|
2811
|
+
const t = e.locale, n = Zu(e), l = le(e.pluralRules) && x(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Ql, o = le(e.pluralRules) && x(t) && me(e.pluralRules[t]) ? Ql : void 0, i = (p) => p[l(n, p.length, o)], r = e.list || [], a = (p) => r[p], s = e.named || se();
|
|
2812
2812
|
be(e.pluralIndex) && Ju(n, s);
|
|
2813
2813
|
const c = (p) => s[p];
|
|
2814
2814
|
function m(p, E) {
|
|
2815
2815
|
const A = me(e.messages) ? e.messages(p, !!E) : le(e.messages) ? e.messages[p] : !1;
|
|
2816
2816
|
return A || (e.parent ? e.parent.message(p) : Ku);
|
|
2817
2817
|
}
|
|
2818
|
-
const _ = (p) => e.modifiers ? e.modifiers[p] : ju, h = ne(e.processor) && me(e.processor.normalize) ? e.processor.normalize : qu,
|
|
2818
|
+
const _ = (p) => e.modifiers ? e.modifiers[p] : ju, h = ne(e.processor) && me(e.processor.normalize) ? e.processor.normalize : qu, L = ne(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : Xu, C = ne(e.processor) && x(e.processor.type) ? e.processor.type : Yu, y = {
|
|
2819
2819
|
list: a,
|
|
2820
2820
|
named: c,
|
|
2821
2821
|
plural: i,
|
|
2822
2822
|
linked: (p, ...E) => {
|
|
2823
|
-
const [A,
|
|
2823
|
+
const [A, S] = E;
|
|
2824
2824
|
let R = "text", P = "";
|
|
2825
|
-
E.length === 1 ? le(A) ? (P = A.modifier || P, R = A.type || R) : x(A) && (P = A || P) : E.length === 2 && (x(A) && (P = A || P), x(
|
|
2826
|
-
const T = m(p, !0)(
|
|
2825
|
+
E.length === 1 ? le(A) ? (P = A.modifier || P, R = A.type || R) : x(A) && (P = A || P) : E.length === 2 && (x(A) && (P = A || P), x(S) && (R = S || R));
|
|
2826
|
+
const T = m(p, !0)(y), X = (
|
|
2827
2827
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2828
2828
|
R === "vnode" && ve(T) && P ? T[0] : T
|
|
2829
2829
|
);
|
|
2830
2830
|
return P ? _(P)(X, R) : X;
|
|
2831
2831
|
},
|
|
2832
2832
|
message: m,
|
|
2833
|
-
type:
|
|
2834
|
-
interpolate:
|
|
2833
|
+
type: C,
|
|
2834
|
+
interpolate: L,
|
|
2835
2835
|
normalize: h,
|
|
2836
2836
|
values: ke(se(), r, s)
|
|
2837
2837
|
};
|
|
2838
|
-
return
|
|
2838
|
+
return y;
|
|
2839
2839
|
}
|
|
2840
|
-
const
|
|
2841
|
-
function
|
|
2842
|
-
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, _ = ye(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, h = ye(c.escapeParameter) ? c.escapeParameter : e.escapeParameter,
|
|
2840
|
+
const ei = () => "", xe = (e) => me(e);
|
|
2841
|
+
function ti(e, ...t) {
|
|
2842
|
+
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, _ = ye(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, h = ye(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, L = !!c.resolvedMessage, C = x(c.default) || ye(c.default) ? ye(c.default) ? i ? s : () => s : c.default : n ? i ? s : () => s : null, k = n || C != null && (x(C) || me(C)), y = ll(e, c);
|
|
2843
2843
|
h && ec(c);
|
|
2844
|
-
let [p, E, A] =
|
|
2844
|
+
let [p, E, A] = L ? [
|
|
2845
2845
|
s,
|
|
2846
|
-
|
|
2847
|
-
a[
|
|
2848
|
-
] :
|
|
2849
|
-
if (!
|
|
2846
|
+
y,
|
|
2847
|
+
a[y] || se()
|
|
2848
|
+
] : Zi(e, s, y, r, _, m), S = p, R = s;
|
|
2849
|
+
if (!L && !(x(S) || He(S) || xe(S)) && k && (S = C, R = S), !L && (!(x(S) || He(S) || xe(S)) || !x(E)))
|
|
2850
2850
|
return o ? pn : s;
|
|
2851
|
-
if (process.env.NODE_ENV !== "production" && x(
|
|
2851
|
+
if (process.env.NODE_ENV !== "production" && x(S) && e.messageCompiler == null)
|
|
2852
2852
|
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;
|
|
2853
2853
|
let P = !1;
|
|
2854
2854
|
const T = () => {
|
|
2855
2855
|
P = !0;
|
|
2856
|
-
}, X = xe(
|
|
2856
|
+
}, X = xe(S) ? S : Ji(e, s, E, S, R, T);
|
|
2857
2857
|
if (P)
|
|
2858
|
-
return
|
|
2858
|
+
return S;
|
|
2859
2859
|
const Q = ic(e, E, A, c), pe = Qu(Q), Te = tc(e, X, pe);
|
|
2860
2860
|
let ue = l ? l(Te, s) : Te;
|
|
2861
2861
|
if (h && x(ue) && (ue = ks(ue)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2862
2862
|
const et = {
|
|
2863
2863
|
timestamp: Date.now(),
|
|
2864
|
-
key: x(s) ? s : xe(
|
|
2865
|
-
locale: E || (xe(
|
|
2866
|
-
format: x(
|
|
2864
|
+
key: x(s) ? s : xe(S) ? S.key : "",
|
|
2865
|
+
locale: E || (xe(S) ? S.locale : ""),
|
|
2866
|
+
format: x(S) ? S : xe(S) ? S.source : "",
|
|
2867
2867
|
message: ue
|
|
2868
2868
|
};
|
|
2869
2869
|
et.meta = ke({}, e.__meta, /* @__PURE__ */ Bu() || {}), vu(et);
|
|
@@ -2871,41 +2871,41 @@ function ei(e, ...t) {
|
|
|
2871
2871
|
return ue;
|
|
2872
2872
|
}
|
|
2873
2873
|
function ec(e) {
|
|
2874
|
-
ve(e.list) ? e.list = e.list.map((t) => x(t) ?
|
|
2875
|
-
x(e.named[t]) && (e.named[t] =
|
|
2874
|
+
ve(e.list) ? e.list = e.list.map((t) => x(t) ? Pl(t) : t) : le(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2875
|
+
x(e.named[t]) && (e.named[t] = Pl(e.named[t]));
|
|
2876
2876
|
});
|
|
2877
2877
|
}
|
|
2878
|
-
function
|
|
2878
|
+
function Zi(e, t, n, l, o, i) {
|
|
2879
2879
|
const { messages: r, onWarn: a, messageResolver: s, localeFallbacker: c } = e, m = c(e, l, n);
|
|
2880
|
-
let _ = se(), h,
|
|
2881
|
-
const
|
|
2880
|
+
let _ = se(), h, L = null, C = n, k = null;
|
|
2881
|
+
const y = "translate";
|
|
2882
2882
|
for (let p = 0; p < m.length; p++) {
|
|
2883
|
-
if (h =
|
|
2883
|
+
if (h = k = m[p], process.env.NODE_ENV !== "production" && n !== h && !Ki(n, h) && gn(o, t) && a(ft(Ae.FALLBACK_TO_TRANSLATE, {
|
|
2884
2884
|
key: t,
|
|
2885
2885
|
target: h
|
|
2886
2886
|
})), process.env.NODE_ENV !== "production" && n !== h) {
|
|
2887
2887
|
const R = e.__v_emitter;
|
|
2888
2888
|
R && R.emit("fallback", {
|
|
2889
|
-
type:
|
|
2889
|
+
type: y,
|
|
2890
2890
|
key: t,
|
|
2891
|
-
from:
|
|
2892
|
-
to:
|
|
2893
|
-
groupId: `${
|
|
2891
|
+
from: C,
|
|
2892
|
+
to: k,
|
|
2893
|
+
groupId: `${y}:${t}`
|
|
2894
2894
|
});
|
|
2895
2895
|
}
|
|
2896
2896
|
_ = r[h] || se();
|
|
2897
|
-
let E = null, A,
|
|
2898
|
-
if (process.env.NODE_ENV !== "production" && Je && (E = window.performance.now(), A = "intlify-message-resolve-start",
|
|
2897
|
+
let E = null, A, S;
|
|
2898
|
+
if (process.env.NODE_ENV !== "production" && Je && (E = window.performance.now(), A = "intlify-message-resolve-start", S = "intlify-message-resolve-end", Pe && Pe(A)), (L = s(_, t)) === null && (L = _[t]), process.env.NODE_ENV !== "production" && Je) {
|
|
2899
2899
|
const R = window.performance.now(), P = e.__v_emitter;
|
|
2900
|
-
P && E &&
|
|
2900
|
+
P && E && L && P.emit("message-resolve", {
|
|
2901
2901
|
type: "message-resolve",
|
|
2902
2902
|
key: t,
|
|
2903
|
-
message:
|
|
2903
|
+
message: L,
|
|
2904
2904
|
time: R - E,
|
|
2905
|
-
groupId: `${
|
|
2906
|
-
}), A &&
|
|
2905
|
+
groupId: `${y}:${t}`
|
|
2906
|
+
}), A && S && Pe && dt && (Pe(S), dt("intlify message resolve", A, S));
|
|
2907
2907
|
}
|
|
2908
|
-
if (x(
|
|
2908
|
+
if (x(L) || He(L) || xe(L))
|
|
2909
2909
|
break;
|
|
2910
2910
|
if (!Wu(h, m)) {
|
|
2911
2911
|
const R = il(
|
|
@@ -2914,15 +2914,15 @@ function Xi(e, t, n, l, o, i) {
|
|
|
2914
2914
|
t,
|
|
2915
2915
|
h,
|
|
2916
2916
|
i,
|
|
2917
|
-
|
|
2917
|
+
y
|
|
2918
2918
|
);
|
|
2919
|
-
R !== t && (
|
|
2919
|
+
R !== t && (L = R);
|
|
2920
2920
|
}
|
|
2921
|
-
|
|
2921
|
+
C = k;
|
|
2922
2922
|
}
|
|
2923
|
-
return [
|
|
2923
|
+
return [L, h, _];
|
|
2924
2924
|
}
|
|
2925
|
-
function
|
|
2925
|
+
function Ji(e, t, n, l, o, i) {
|
|
2926
2926
|
const { messageCompiler: r, warnHtmlMessage: a } = e;
|
|
2927
2927
|
if (xe(l)) {
|
|
2928
2928
|
const h = l;
|
|
@@ -2936,8 +2936,8 @@ function Zi(e, t, n, l, o, i) {
|
|
|
2936
2936
|
process.env.NODE_ENV !== "production" && Je && (s = window.performance.now(), c = "intlify-message-compilation-start", m = "intlify-message-compilation-end", Pe && Pe(c));
|
|
2937
2937
|
const _ = r(l, nc(e, n, o, l, a, i));
|
|
2938
2938
|
if (process.env.NODE_ENV !== "production" && Je) {
|
|
2939
|
-
const h = window.performance.now(),
|
|
2940
|
-
|
|
2939
|
+
const h = window.performance.now(), L = e.__v_emitter;
|
|
2940
|
+
L && s && L.emit("message-compilation", {
|
|
2941
2941
|
type: "message-compilation",
|
|
2942
2942
|
message: l,
|
|
2943
2943
|
time: h - s,
|
|
@@ -3001,27 +3001,27 @@ function ic(e, t, n, l) {
|
|
|
3001
3001
|
locale: t,
|
|
3002
3002
|
modifiers: o,
|
|
3003
3003
|
pluralRules: i,
|
|
3004
|
-
messages: (
|
|
3005
|
-
let
|
|
3006
|
-
if (
|
|
3007
|
-
const [, ,
|
|
3004
|
+
messages: (L, C) => {
|
|
3005
|
+
let k = r(n, L);
|
|
3006
|
+
if (k == null && (m || C)) {
|
|
3007
|
+
const [, , y] = Zi(
|
|
3008
3008
|
m || e,
|
|
3009
3009
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
3010
|
-
|
|
3010
|
+
L,
|
|
3011
3011
|
t,
|
|
3012
3012
|
a,
|
|
3013
3013
|
s,
|
|
3014
3014
|
c
|
|
3015
3015
|
);
|
|
3016
|
-
|
|
3016
|
+
k = r(y, L);
|
|
3017
3017
|
}
|
|
3018
|
-
if (x(
|
|
3019
|
-
let
|
|
3020
|
-
const E =
|
|
3021
|
-
|
|
3018
|
+
if (x(k) || He(k)) {
|
|
3019
|
+
let y = !1;
|
|
3020
|
+
const E = Ji(e, L, t, k, L, () => {
|
|
3021
|
+
y = !0;
|
|
3022
3022
|
});
|
|
3023
|
-
return
|
|
3024
|
-
} else return xe(
|
|
3023
|
+
return y ? ei : E;
|
|
3024
|
+
} else return xe(k) ? k : ei;
|
|
3025
3025
|
}
|
|
3026
3026
|
};
|
|
3027
3027
|
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;
|
|
@@ -3073,7 +3073,7 @@ const ac = {
|
|
|
3073
3073
|
[Le.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
3074
3074
|
[Le.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
3075
3075
|
[Le.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
3076
|
-
}, Hn = /* @__PURE__ */ Qe("__translateVNode"), Bn = /* @__PURE__ */ Qe("__datetimeParts"), zn = /* @__PURE__ */ Qe("__numberParts"), Gn = /* @__PURE__ */ Qe("__enableEmitter"), Wn = /* @__PURE__ */ Qe("__disableEmitter"), sc = Qe("__setPluralRules"),
|
|
3076
|
+
}, Hn = /* @__PURE__ */ Qe("__translateVNode"), Bn = /* @__PURE__ */ Qe("__datetimeParts"), zn = /* @__PURE__ */ Qe("__numberParts"), Gn = /* @__PURE__ */ Qe("__enableEmitter"), Wn = /* @__PURE__ */ Qe("__disableEmitter"), sc = Qe("__setPluralRules"), Qi = /* @__PURE__ */ Qe("__injectWithOption"), jn = /* @__PURE__ */ Qe("__dispose"), Ge = {
|
|
3077
3077
|
FALLBACK_TO_ROOT: Ru,
|
|
3078
3078
|
// 8
|
|
3079
3079
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
@@ -3127,14 +3127,14 @@ function Pt(e) {
|
|
|
3127
3127
|
}
|
|
3128
3128
|
o = o[n[r]];
|
|
3129
3129
|
}
|
|
3130
|
-
if (i || (He(o) ?
|
|
3130
|
+
if (i || (He(o) ? Ui.includes(n[l]) || delete e[t] : (o[n[l]] = e[t], delete e[t])), !He(o)) {
|
|
3131
3131
|
const r = o[n[l]];
|
|
3132
3132
|
le(r) && Pt(r);
|
|
3133
3133
|
}
|
|
3134
3134
|
}
|
|
3135
3135
|
return e;
|
|
3136
3136
|
}
|
|
3137
|
-
function
|
|
3137
|
+
function eo(e, t) {
|
|
3138
3138
|
const { messages: n, __i18n: l, messageResolver: o, flatJson: i } = t, r = ne(n) ? n : ve(l) ? se() : { [e]: se() };
|
|
3139
3139
|
if (ve(l) && l.forEach((a) => {
|
|
3140
3140
|
if ("locale" in a && "resource" in a) {
|
|
@@ -3147,12 +3147,12 @@ function Qi(e, t) {
|
|
|
3147
3147
|
Fe(r, a) && Pt(r[a]);
|
|
3148
3148
|
return r;
|
|
3149
3149
|
}
|
|
3150
|
-
function
|
|
3150
|
+
function to(e) {
|
|
3151
3151
|
return e.type;
|
|
3152
3152
|
}
|
|
3153
3153
|
function cc(e, t, n) {
|
|
3154
3154
|
let l = le(t.messages) ? t.messages : se();
|
|
3155
|
-
"__i18nGlobal" in n && (l =
|
|
3155
|
+
"__i18nGlobal" in n && (l = eo(e.locale.value, {
|
|
3156
3156
|
messages: l,
|
|
3157
3157
|
__i18n: n.__i18nGlobal
|
|
3158
3158
|
}));
|
|
@@ -3175,18 +3175,18 @@ function cc(e, t, n) {
|
|
|
3175
3175
|
}
|
|
3176
3176
|
}
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3179
|
-
return
|
|
3178
|
+
function ni(e) {
|
|
3179
|
+
return M(Ot, null, e, 0);
|
|
3180
3180
|
}
|
|
3181
|
-
const
|
|
3182
|
-
let
|
|
3183
|
-
function
|
|
3181
|
+
const li = "__INTLIFY_META__", ii = () => [], dc = () => !1;
|
|
3182
|
+
let oi = 0;
|
|
3183
|
+
function ri(e) {
|
|
3184
3184
|
return ((t, n, l, o) => e(n, l, cn() || void 0, o));
|
|
3185
3185
|
}
|
|
3186
3186
|
const fc = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
3187
3187
|
const e = cn();
|
|
3188
3188
|
let t = null;
|
|
3189
|
-
return e && (t =
|
|
3189
|
+
return e && (t = to(e)[li]) ? { [li]: t } : null;
|
|
3190
3190
|
};
|
|
3191
3191
|
function mc(e = {}) {
|
|
3192
3192
|
const { __root: t, __injectWithOption: n } = e, l = t === void 0, o = e.flatJson, i = Je ? te : qt;
|
|
@@ -3197,12 +3197,12 @@ function mc(e = {}) {
|
|
|
3197
3197
|
), s = i(
|
|
3198
3198
|
// prettier-ignore
|
|
3199
3199
|
t && r ? t.fallbackLocale.value : x(e.fallbackLocale) || ve(e.fallbackLocale) || ne(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
3200
|
-
), c = i(
|
|
3201
|
-
let h = t ? t.missingWarn : ye(e.missingWarn) || en(e.missingWarn) ? e.missingWarn : !0,
|
|
3200
|
+
), c = i(eo(a.value, e)), m = i(ne(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), _ = i(ne(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
3201
|
+
let h = t ? t.missingWarn : ye(e.missingWarn) || en(e.missingWarn) ? e.missingWarn : !0, L = t ? t.fallbackWarn : ye(e.fallbackWarn) || en(e.fallbackWarn) ? e.fallbackWarn : !0, C = t ? t.fallbackRoot : ye(e.fallbackRoot) ? e.fallbackRoot : !0, k = !!e.fallbackFormat, y = me(e.missing) ? e.missing : null, p = me(e.missing) ? ri(e.missing) : null, E = me(e.postTranslation) ? e.postTranslation : null, A = t ? t.warnHtmlMessage : ye(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter;
|
|
3202
3202
|
const R = t ? t.modifiers : ne(e.modifiers) ? e.modifiers : {};
|
|
3203
3203
|
let P = e.pluralRules || t && t.pluralRules, T;
|
|
3204
3204
|
T = (() => {
|
|
3205
|
-
l &&
|
|
3205
|
+
l && jl(null);
|
|
3206
3206
|
const b = {
|
|
3207
3207
|
version: oc,
|
|
3208
3208
|
locale: a.value,
|
|
@@ -3212,19 +3212,19 @@ function mc(e = {}) {
|
|
|
3212
3212
|
pluralRules: P,
|
|
3213
3213
|
missing: p === null ? void 0 : p,
|
|
3214
3214
|
missingWarn: h,
|
|
3215
|
-
fallbackWarn:
|
|
3216
|
-
fallbackFormat:
|
|
3215
|
+
fallbackWarn: L,
|
|
3216
|
+
fallbackFormat: k,
|
|
3217
3217
|
unresolving: !0,
|
|
3218
3218
|
postTranslation: E === null ? void 0 : E,
|
|
3219
3219
|
warnHtmlMessage: A,
|
|
3220
|
-
escapeParameter:
|
|
3220
|
+
escapeParameter: S,
|
|
3221
3221
|
messageResolver: e.messageResolver,
|
|
3222
3222
|
messageCompiler: e.messageCompiler,
|
|
3223
3223
|
__meta: { framework: "vue" }
|
|
3224
3224
|
};
|
|
3225
3225
|
b.datetimeFormats = m.value, b.numberFormats = _.value, b.__datetimeFormatters = ne(T) ? T.__datetimeFormatters : void 0, b.__numberFormatters = ne(T) ? T.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (b.__v_emitter = ne(T) ? T.__v_emitter : void 0);
|
|
3226
3226
|
const I = Gu(b);
|
|
3227
|
-
return l &&
|
|
3227
|
+
return l && jl(I), I;
|
|
3228
3228
|
})(), It(T, a.value, s.value);
|
|
3229
3229
|
function Q() {
|
|
3230
3230
|
return [
|
|
@@ -3253,10 +3253,10 @@ function mc(e = {}) {
|
|
|
3253
3253
|
E = b, T.postTranslation = b;
|
|
3254
3254
|
}
|
|
3255
3255
|
function Z() {
|
|
3256
|
-
return
|
|
3256
|
+
return y;
|
|
3257
3257
|
}
|
|
3258
|
-
function
|
|
3259
|
-
b !== null && (p =
|
|
3258
|
+
function W(b) {
|
|
3259
|
+
b !== null && (p = ri(b)), y = b, T.missing = p;
|
|
3260
3260
|
}
|
|
3261
3261
|
function je(b, I) {
|
|
3262
3262
|
return b !== "translate" || !I.resolvedMessage;
|
|
@@ -3272,19 +3272,19 @@ function mc(e = {}) {
|
|
|
3272
3272
|
if (ie !== "translate exists" && // for not `te` (e.g `t`)
|
|
3273
3273
|
be(ht) && ht === pn || ie === "translate exists" && !ht) {
|
|
3274
3274
|
const [at, Wo] = I();
|
|
3275
|
-
if (process.env.NODE_ENV !== "production" && t && x(at) && je(ie, Wo) && (
|
|
3275
|
+
if (process.env.NODE_ENV !== "production" && t && x(at) && je(ie, Wo) && (C && (gn(L, at) || ji(h, at)) && We(ln(Ge.FALLBACK_TO_ROOT, {
|
|
3276
3276
|
key: at,
|
|
3277
3277
|
type: ie
|
|
3278
3278
|
})), process.env.NODE_ENV !== "production")) {
|
|
3279
|
-
const { __v_emitter:
|
|
3280
|
-
|
|
3279
|
+
const { __v_emitter: yl } = T;
|
|
3280
|
+
yl && C && yl.emit("fallback", {
|
|
3281
3281
|
type: ie,
|
|
3282
3282
|
key: at,
|
|
3283
3283
|
to: "global",
|
|
3284
3284
|
groupId: `${ie}:${at}`
|
|
3285
3285
|
});
|
|
3286
3286
|
}
|
|
3287
|
-
return t &&
|
|
3287
|
+
return t && C ? he(t) : rt(at);
|
|
3288
3288
|
} else {
|
|
3289
3289
|
if (Ht(ht))
|
|
3290
3290
|
return ht;
|
|
@@ -3292,7 +3292,7 @@ function mc(e = {}) {
|
|
|
3292
3292
|
}
|
|
3293
3293
|
};
|
|
3294
3294
|
function it(...b) {
|
|
3295
|
-
return Se((I) => Reflect.apply(
|
|
3295
|
+
return Se((I) => Reflect.apply(ti, null, [I, ...b]), () => Fn(...b), "translate", (I) => Reflect.apply(I.t, I, [...b]), (I) => I, (I) => x(I));
|
|
3296
3296
|
}
|
|
3297
3297
|
function yn(...b) {
|
|
3298
3298
|
const [I, ie, he] = b;
|
|
@@ -3301,13 +3301,13 @@ function mc(e = {}) {
|
|
|
3301
3301
|
return it(I, ie, ke({ resolvedMessage: !0 }, he || {}));
|
|
3302
3302
|
}
|
|
3303
3303
|
function vn(...b) {
|
|
3304
|
-
return Se((I) => Reflect.apply(
|
|
3304
|
+
return Se((I) => Reflect.apply(ql, null, [I, ...b]), () => xn(...b), "datetime format", (I) => Reflect.apply(I.d, I, [...b]), () => nn, (I) => x(I) || ve(I));
|
|
3305
3305
|
}
|
|
3306
3306
|
function En(...b) {
|
|
3307
|
-
return Se((I) => Reflect.apply(
|
|
3307
|
+
return Se((I) => Reflect.apply(Zl, null, [I, ...b]), () => Un(...b), "number format", (I) => Reflect.apply(I.n, I, [...b]), () => nn, (I) => x(I) || ve(I));
|
|
3308
3308
|
}
|
|
3309
3309
|
function Cn(b) {
|
|
3310
|
-
return b.map((I) => x(I) || be(I) || ye(I) ?
|
|
3310
|
+
return b.map((I) => x(I) || be(I) || ye(I) ? ni(String(I)) : I);
|
|
3311
3311
|
}
|
|
3312
3312
|
const bn = {
|
|
3313
3313
|
normalize: Cn,
|
|
@@ -3319,18 +3319,18 @@ function mc(e = {}) {
|
|
|
3319
3319
|
let ie;
|
|
3320
3320
|
const he = I;
|
|
3321
3321
|
try {
|
|
3322
|
-
he.processor = bn, ie = Reflect.apply(
|
|
3322
|
+
he.processor = bn, ie = Reflect.apply(ti, null, [he, ...b]);
|
|
3323
3323
|
} finally {
|
|
3324
3324
|
he.processor = null;
|
|
3325
3325
|
}
|
|
3326
3326
|
return ie;
|
|
3327
|
-
}, () => Fn(...b), "translate", (I) => I[Hn](...b), (I) => [
|
|
3327
|
+
}, () => Fn(...b), "translate", (I) => I[Hn](...b), (I) => [ni(I)], (I) => ve(I));
|
|
3328
3328
|
}
|
|
3329
3329
|
function kn(...b) {
|
|
3330
|
-
return Se((I) => Reflect.apply(
|
|
3330
|
+
return Se((I) => Reflect.apply(Zl, null, [I, ...b]), () => Un(...b), "number format", (I) => I[zn](...b), ii, (I) => x(I) || ve(I));
|
|
3331
3331
|
}
|
|
3332
3332
|
function Ft(...b) {
|
|
3333
|
-
return Se((I) => Reflect.apply(
|
|
3333
|
+
return Se((I) => Reflect.apply(ql, null, [I, ...b]), () => xn(...b), "datetime format", (I) => I[Bn](...b), ii, (I) => x(I) || ve(I));
|
|
3334
3334
|
}
|
|
3335
3335
|
function Ln(b) {
|
|
3336
3336
|
P = b, T.pluralRules = P;
|
|
@@ -3345,7 +3345,7 @@ function mc(e = {}) {
|
|
|
3345
3345
|
}
|
|
3346
3346
|
function wt(b) {
|
|
3347
3347
|
let I = null;
|
|
3348
|
-
const ie =
|
|
3348
|
+
const ie = Fi(T, s.value, a.value);
|
|
3349
3349
|
for (let he = 0; he < ie.length; he++) {
|
|
3350
3350
|
const rt = c.value[ie[he]] || {}, Ht = T.messageResolver(rt, b);
|
|
3351
3351
|
if (Ht != null) {
|
|
@@ -3383,27 +3383,27 @@ function mc(e = {}) {
|
|
|
3383
3383
|
return m.value[b] || {};
|
|
3384
3384
|
}
|
|
3385
3385
|
function g(b, I) {
|
|
3386
|
-
m.value[b] = I, T.datetimeFormats = m.value,
|
|
3386
|
+
m.value[b] = I, T.datetimeFormats = m.value, Xl(T, b, I);
|
|
3387
3387
|
}
|
|
3388
3388
|
function N(b, I) {
|
|
3389
|
-
m.value[b] = ke(m.value[b] || {}, I), T.datetimeFormats = m.value,
|
|
3389
|
+
m.value[b] = ke(m.value[b] || {}, I), T.datetimeFormats = m.value, Xl(T, b, I);
|
|
3390
3390
|
}
|
|
3391
3391
|
function F(b) {
|
|
3392
3392
|
return _.value[b] || {};
|
|
3393
3393
|
}
|
|
3394
3394
|
function fe(b, I) {
|
|
3395
|
-
_.value[b] = I, T.numberFormats = _.value,
|
|
3395
|
+
_.value[b] = I, T.numberFormats = _.value, Jl(T, b, I);
|
|
3396
3396
|
}
|
|
3397
3397
|
function ge(b, I) {
|
|
3398
|
-
_.value[b] = ke(_.value[b] || {}, I), T.numberFormats = _.value,
|
|
3398
|
+
_.value[b] = ke(_.value[b] || {}, I), T.numberFormats = _.value, Jl(T, b, I);
|
|
3399
3399
|
}
|
|
3400
|
-
|
|
3400
|
+
oi++, t && Je && (Ue(t.locale, (b) => {
|
|
3401
3401
|
r && (a.value = b, T.locale = b, It(T, a.value, s.value));
|
|
3402
3402
|
}), Ue(t.fallbackLocale, (b) => {
|
|
3403
3403
|
r && (s.value = b, T.fallbackLocale = b, It(T, a.value, s.value));
|
|
3404
3404
|
}));
|
|
3405
3405
|
const ee = {
|
|
3406
|
-
id:
|
|
3406
|
+
id: oi,
|
|
3407
3407
|
locale: pe,
|
|
3408
3408
|
fallbackLocale: Te,
|
|
3409
3409
|
get inheritLocale() {
|
|
@@ -3432,22 +3432,22 @@ function mc(e = {}) {
|
|
|
3432
3432
|
h = b, T.missingWarn = h;
|
|
3433
3433
|
},
|
|
3434
3434
|
get fallbackWarn() {
|
|
3435
|
-
return
|
|
3435
|
+
return L;
|
|
3436
3436
|
},
|
|
3437
3437
|
set fallbackWarn(b) {
|
|
3438
|
-
|
|
3438
|
+
L = b, T.fallbackWarn = L;
|
|
3439
3439
|
},
|
|
3440
3440
|
get fallbackRoot() {
|
|
3441
|
-
return
|
|
3441
|
+
return C;
|
|
3442
3442
|
},
|
|
3443
3443
|
set fallbackRoot(b) {
|
|
3444
|
-
|
|
3444
|
+
C = b;
|
|
3445
3445
|
},
|
|
3446
3446
|
get fallbackFormat() {
|
|
3447
|
-
return
|
|
3447
|
+
return k;
|
|
3448
3448
|
},
|
|
3449
3449
|
set fallbackFormat(b) {
|
|
3450
|
-
|
|
3450
|
+
k = b, T.fallbackFormat = k;
|
|
3451
3451
|
},
|
|
3452
3452
|
get warnHtmlMessage() {
|
|
3453
3453
|
return A;
|
|
@@ -3456,10 +3456,10 @@ function mc(e = {}) {
|
|
|
3456
3456
|
A = b, T.warnHtmlMessage = b;
|
|
3457
3457
|
},
|
|
3458
3458
|
get escapeParameter() {
|
|
3459
|
-
return
|
|
3459
|
+
return S;
|
|
3460
3460
|
},
|
|
3461
3461
|
set escapeParameter(b) {
|
|
3462
|
-
|
|
3462
|
+
S = b, T.escapeParameter = b;
|
|
3463
3463
|
},
|
|
3464
3464
|
t: it,
|
|
3465
3465
|
getLocaleMessage: ot,
|
|
@@ -3468,16 +3468,16 @@ function mc(e = {}) {
|
|
|
3468
3468
|
getPostTranslationHandler: B,
|
|
3469
3469
|
setPostTranslationHandler: $,
|
|
3470
3470
|
getMissingHandler: Z,
|
|
3471
|
-
setMissingHandler:
|
|
3471
|
+
setMissingHandler: W,
|
|
3472
3472
|
[sc]: Ln
|
|
3473
3473
|
};
|
|
3474
|
-
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 = g, ee.mergeDateTimeFormat = N, ee.getNumberFormat = F, ee.setNumberFormat = fe, ee.mergeNumberFormat = ge, ee[
|
|
3474
|
+
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 = g, ee.mergeDateTimeFormat = N, ee.getNumberFormat = F, ee.setNumberFormat = fe, ee.mergeNumberFormat = ge, ee[Qi] = n, ee[Hn] = Ut, ee[Bn] = Ft, ee[zn] = kn, process.env.NODE_ENV !== "production" && (ee[Gn] = (b) => {
|
|
3475
3475
|
T.__v_emitter = b;
|
|
3476
3476
|
}, ee[Wn] = () => {
|
|
3477
3477
|
T.__v_emitter = void 0;
|
|
3478
3478
|
}), ee;
|
|
3479
3479
|
}
|
|
3480
|
-
function
|
|
3480
|
+
function ai(e, t) {
|
|
3481
3481
|
}
|
|
3482
3482
|
const ol = {
|
|
3483
3483
|
tag: {
|
|
@@ -3507,7 +3507,7 @@ function pc({ slots: e }, t) {
|
|
|
3507
3507
|
return o && (n[l] = o()), n;
|
|
3508
3508
|
}, se());
|
|
3509
3509
|
}
|
|
3510
|
-
function
|
|
3510
|
+
function no() {
|
|
3511
3511
|
return Ee;
|
|
3512
3512
|
}
|
|
3513
3513
|
ke({
|
|
@@ -3523,19 +3523,19 @@ ke({
|
|
|
3523
3523
|
function gc(e) {
|
|
3524
3524
|
return ve(e) && !x(e[0]);
|
|
3525
3525
|
}
|
|
3526
|
-
function
|
|
3526
|
+
function lo(e, t, n, l) {
|
|
3527
3527
|
const { slots: o, attrs: i } = t;
|
|
3528
3528
|
return () => {
|
|
3529
3529
|
const r = { part: !0 };
|
|
3530
3530
|
let a = se();
|
|
3531
|
-
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,
|
|
3531
|
+
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, L) => n.includes(L) ? ke(se(), h, { [L]: e.format[L] }) : h, se()));
|
|
3532
3532
|
const s = l(e.value, r, a);
|
|
3533
3533
|
let c = [r.key];
|
|
3534
|
-
ve(s) ? c = s.map((h,
|
|
3535
|
-
const
|
|
3536
|
-
return gc(
|
|
3534
|
+
ve(s) ? c = s.map((h, L) => {
|
|
3535
|
+
const C = o[h.type], k = C ? C({ [h.type]: h.value, index: L, parts: s }) : [h.value];
|
|
3536
|
+
return gc(k) && (k[0].key = `${h.type}-${L}`), k;
|
|
3537
3537
|
}) : x(s) && (c = [s]);
|
|
3538
|
-
const m = ke(se(), i), _ = x(e.tag) || le(e.tag) ? e.tag :
|
|
3538
|
+
const m = ke(se(), i), _ = x(e.tag) || le(e.tag) ? e.tag : no();
|
|
3539
3539
|
return bt(_, m, c);
|
|
3540
3540
|
};
|
|
3541
3541
|
}
|
|
@@ -3555,7 +3555,7 @@ function Vt(e = {}) {
|
|
|
3555
3555
|
throw Rt(Le.MUST_BE_CALL_SETUP_TOP);
|
|
3556
3556
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3557
3557
|
throw Rt(Le.NOT_INSTALLED);
|
|
3558
|
-
const n = _c(t), l = vc(n), o =
|
|
3558
|
+
const n = _c(t), l = vc(n), o = to(t), i = yc(e, o);
|
|
3559
3559
|
if (i === "global")
|
|
3560
3560
|
return cc(l, e, o), l;
|
|
3561
3561
|
if (i === "parent") {
|
|
@@ -3593,7 +3593,7 @@ function Ec(e, t, n = !1) {
|
|
|
3593
3593
|
l = r.__getInstance(i);
|
|
3594
3594
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
3595
3595
|
const a = r.__getInstance(i);
|
|
3596
|
-
a != null && (l = a.__composer, n && l && !l[
|
|
3596
|
+
a != null && (l = a.__composer, n && l && !l[Qi] && (l = null));
|
|
3597
3597
|
}
|
|
3598
3598
|
if (l != null || o === i)
|
|
3599
3599
|
break;
|
|
@@ -3610,11 +3610,11 @@ function bc(e, t, n) {
|
|
|
3610
3610
|
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
3611
3611
|
t.vnode.el.__VUE_I18N__ = n, l = Ts();
|
|
3612
3612
|
const o = n;
|
|
3613
|
-
o[Gn] && o[Gn](l), l.on("*",
|
|
3613
|
+
o[Gn] && o[Gn](l), l.on("*", ai);
|
|
3614
3614
|
}
|
|
3615
|
-
}, t),
|
|
3615
|
+
}, t), ki(() => {
|
|
3616
3616
|
const o = n;
|
|
3617
|
-
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (l && l.off("*",
|
|
3617
|
+
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (l && l.off("*", ai), o[Wn] && o[Wn](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
|
|
3618
3618
|
const i = o[jn];
|
|
3619
3619
|
i && (i(), delete o[jn]);
|
|
3620
3620
|
}, t);
|
|
@@ -3631,7 +3631,7 @@ ke({
|
|
|
3631
3631
|
rc();
|
|
3632
3632
|
xu(hu);
|
|
3633
3633
|
Uu($u);
|
|
3634
|
-
Fu(
|
|
3634
|
+
Fu(Fi);
|
|
3635
3635
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3636
3636
|
const e = st();
|
|
3637
3637
|
e.__INTLIFY__ = !0, _u(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
@@ -3658,7 +3658,7 @@ const oe = /* @__PURE__ */ de({
|
|
|
3658
3658
|
customClass: "tooltip-custom"
|
|
3659
3659
|
}));
|
|
3660
3660
|
});
|
|
3661
|
-
}),
|
|
3661
|
+
}), Li(async () => {
|
|
3662
3662
|
l.value?.dispose();
|
|
3663
3663
|
}), (r, a) => (u(), d(Ee, null, [
|
|
3664
3664
|
v("span", K({
|
|
@@ -3673,7 +3673,7 @@ const oe = /* @__PURE__ */ de({
|
|
|
3673
3673
|
ref: i
|
|
3674
3674
|
}, [
|
|
3675
3675
|
ae(r.$slots, "content", {}, () => [
|
|
3676
|
-
Ze(
|
|
3676
|
+
Ze(V(r.title), 1)
|
|
3677
3677
|
])
|
|
3678
3678
|
], 512)
|
|
3679
3679
|
], 64));
|
|
@@ -3715,7 +3715,7 @@ const oe = /* @__PURE__ */ de({
|
|
|
3715
3715
|
key: 0,
|
|
3716
3716
|
title: s.cls
|
|
3717
3717
|
}, {
|
|
3718
|
-
default:
|
|
3718
|
+
default: z(() => [
|
|
3719
3719
|
v("div", {
|
|
3720
3720
|
class: "icon",
|
|
3721
3721
|
style: ct(o.value)
|
|
@@ -3725,7 +3725,7 @@ const oe = /* @__PURE__ */ de({
|
|
|
3725
3725
|
}, 8, ["title"]))
|
|
3726
3726
|
], 2));
|
|
3727
3727
|
}
|
|
3728
|
-
}),
|
|
3728
|
+
}), io = /* @__PURE__ */ H(kc, [["__scopeId", "data-v-23f8d853"]]), Lc = {
|
|
3729
3729
|
name: "OpenInNewIcon",
|
|
3730
3730
|
emits: ["click"],
|
|
3731
3731
|
props: {
|
|
@@ -3758,12 +3758,12 @@ function Ac(e, t, n, l, o, i) {
|
|
|
3758
3758
|
viewBox: "0 0 24 24"
|
|
3759
3759
|
}, [
|
|
3760
3760
|
v("path", Nc, [
|
|
3761
|
-
n.title ? (u(), d("title", Tc,
|
|
3761
|
+
n.title ? (u(), d("title", Tc, V(n.title), 1)) : w("", !0)
|
|
3762
3762
|
])
|
|
3763
3763
|
], 8, wc))
|
|
3764
3764
|
], 16, Sc);
|
|
3765
3765
|
}
|
|
3766
|
-
const
|
|
3766
|
+
const oo = /* @__PURE__ */ H(Lc, [["render", Ac]]), Ic = {
|
|
3767
3767
|
name: "ArrowExpandAllIcon",
|
|
3768
3768
|
emits: ["click"],
|
|
3769
3769
|
props: {
|
|
@@ -3796,7 +3796,7 @@ function Pc(e, t, n, l, o, i) {
|
|
|
3796
3796
|
viewBox: "0 0 24 24"
|
|
3797
3797
|
}, [
|
|
3798
3798
|
v("path", $c, [
|
|
3799
|
-
n.title ? (u(), d("title", Rc,
|
|
3799
|
+
n.title ? (u(), d("title", Rc, V(n.title), 1)) : w("", !0)
|
|
3800
3800
|
])
|
|
3801
3801
|
], 8, Dc))
|
|
3802
3802
|
], 16, Oc);
|
|
@@ -3834,35 +3834,35 @@ const Mc = /* @__PURE__ */ H(Ic, [["render", Pc]]), Vc = { class: "dependency-te
|
|
|
3834
3834
|
<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"/>
|
|
3835
3835
|
</svg>`));
|
|
3836
3836
|
return (i, r) => (u(), d(Ee, null, [
|
|
3837
|
-
|
|
3837
|
+
M(D(Me), {
|
|
3838
3838
|
type: "source",
|
|
3839
3839
|
position: e.sourcePosition
|
|
3840
3840
|
}, null, 8, ["position"]),
|
|
3841
3841
|
v("div", {
|
|
3842
3842
|
class: re([[`border-${e.data.color}`], "dependency-node-wrapper rounded-3 border"])
|
|
3843
3843
|
}, [
|
|
3844
|
-
|
|
3844
|
+
M(io, {
|
|
3845
3845
|
"custom-icon": { icon: o.value },
|
|
3846
3846
|
class: "bg-pink rounded",
|
|
3847
3847
|
theme: "light"
|
|
3848
3848
|
}, null, 8, ["custom-icon"]),
|
|
3849
3849
|
v("div", Vc, [
|
|
3850
3850
|
v("div", xc, [
|
|
3851
|
-
|
|
3851
|
+
M(oe, {
|
|
3852
3852
|
title: e.data.flowId
|
|
3853
3853
|
}, {
|
|
3854
|
-
default:
|
|
3855
|
-
Ze(
|
|
3854
|
+
default: z(() => [
|
|
3855
|
+
Ze(V(e.data.flowId), 1)
|
|
3856
3856
|
]),
|
|
3857
3857
|
_: 1
|
|
3858
3858
|
}, 8, ["title"])
|
|
3859
3859
|
]),
|
|
3860
3860
|
v("div", Uc, [
|
|
3861
|
-
|
|
3861
|
+
M(oe, {
|
|
3862
3862
|
title: e.data.namespace
|
|
3863
3863
|
}, {
|
|
3864
|
-
default:
|
|
3865
|
-
Ze(
|
|
3864
|
+
default: z(() => [
|
|
3865
|
+
Ze(V(e.data.namespace), 1)
|
|
3866
3866
|
]),
|
|
3867
3867
|
_: 1
|
|
3868
3868
|
}, 8, ["title"])
|
|
@@ -3875,39 +3875,39 @@ const Mc = /* @__PURE__ */ H(Ic, [["render", Pc]]), Vc = { class: "dependency-te
|
|
|
3875
3875
|
class: re(["circle-button", [`bg-${e.data.color}`]]),
|
|
3876
3876
|
onClick: r[0] || (r[0] = (a) => i.$emit(D(U).OPEN_LINK, e.data))
|
|
3877
3877
|
}, [
|
|
3878
|
-
|
|
3878
|
+
M(oe, {
|
|
3879
3879
|
title: D(l)("open")
|
|
3880
3880
|
}, {
|
|
3881
|
-
default:
|
|
3882
|
-
|
|
3881
|
+
default: z(() => [
|
|
3882
|
+
M(oo, {
|
|
3883
3883
|
class: "button-icon",
|
|
3884
3884
|
alt: "Open in new tab"
|
|
3885
3885
|
})
|
|
3886
3886
|
]),
|
|
3887
3887
|
_: 1
|
|
3888
3888
|
}, 8, ["title"])
|
|
3889
|
-
], 2)) :
|
|
3889
|
+
], 2)) : w("", !0),
|
|
3890
3890
|
e.data.expandEnabled ? (u(), d("span", {
|
|
3891
3891
|
key: 1,
|
|
3892
3892
|
class: re(["circle-button", [`bg-${e.data.color}`]]),
|
|
3893
3893
|
onClick: r[1] || (r[1] = (a) => n(D(U).EXPAND_DEPENDENCIES, e.data))
|
|
3894
3894
|
}, [
|
|
3895
|
-
|
|
3895
|
+
M(oe, {
|
|
3896
3896
|
title: D(l)("expand")
|
|
3897
3897
|
}, {
|
|
3898
|
-
default:
|
|
3899
|
-
|
|
3898
|
+
default: z(() => [
|
|
3899
|
+
M(Mc, {
|
|
3900
3900
|
class: "button-icon",
|
|
3901
3901
|
alt: "Expand task"
|
|
3902
3902
|
})
|
|
3903
3903
|
]),
|
|
3904
3904
|
_: 1
|
|
3905
3905
|
}, 8, ["title"])
|
|
3906
|
-
], 2)) :
|
|
3906
|
+
], 2)) : w("", !0),
|
|
3907
3907
|
ae(i.$slots, "badge-button-after", {}, void 0, !0)
|
|
3908
3908
|
])
|
|
3909
3909
|
], 2),
|
|
3910
|
-
|
|
3910
|
+
M(D(Me), {
|
|
3911
3911
|
type: "target",
|
|
3912
3912
|
position: e.targetPosition
|
|
3913
3913
|
}, null, 8, ["position"])
|
|
@@ -3915,13 +3915,13 @@ const Mc = /* @__PURE__ */ H(Ic, [["render", Pc]]), Vc = { class: "dependency-te
|
|
|
3915
3915
|
}
|
|
3916
3916
|
}), T_ = /* @__PURE__ */ H(Hc, [["__scopeId", "data-v-2271d5b0"]]);
|
|
3917
3917
|
var qe = /* @__PURE__ */ ((e) => (e.Lines = "lines", e.Dots = "dots", e))(qe || {});
|
|
3918
|
-
const
|
|
3918
|
+
const ro = function({ dimensions: e, size: t, color: n }) {
|
|
3919
3919
|
return bt("path", {
|
|
3920
3920
|
stroke: n,
|
|
3921
3921
|
"stroke-width": t,
|
|
3922
3922
|
d: `M${e[0] / 2} 0 V${e[1]} M0 ${e[1] / 2} H${e[0]}`
|
|
3923
3923
|
});
|
|
3924
|
-
},
|
|
3924
|
+
}, ao = function({ radius: e, color: t }) {
|
|
3925
3925
|
return bt("circle", { cx: e, cy: e, r: e, fill: t });
|
|
3926
3926
|
};
|
|
3927
3927
|
qe.Lines + "", qe.Dots + "";
|
|
@@ -3953,14 +3953,14 @@ const Bc = {
|
|
|
3953
3953
|
offset: { default: 0 }
|
|
3954
3954
|
},
|
|
3955
3955
|
setup(e) {
|
|
3956
|
-
const { id: t, viewport: n } =
|
|
3957
|
-
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, [_, h] = Array.isArray(e.offset) ? e.offset : [e.offset, e.offset],
|
|
3956
|
+
const { id: t, viewport: n } = Ti(), l = G(() => {
|
|
3957
|
+
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, [_, h] = Array.isArray(e.offset) ? e.offset : [e.offset, e.offset], L = [_ * r || 1 + c[0] / 2, h * r || 1 + c[1] / 2];
|
|
3958
3958
|
return {
|
|
3959
3959
|
scaledGap: c,
|
|
3960
|
-
offset:
|
|
3960
|
+
offset: L,
|
|
3961
3961
|
size: m
|
|
3962
3962
|
};
|
|
3963
|
-
}), o =
|
|
3963
|
+
}), o = Ll(() => `pattern-${t}${e.id ? `-${e.id}` : ""}`), i = Ll(() => e.color || e.patternColor || Bc[e.variant || qe.Dots]);
|
|
3964
3964
|
return (r, a) => (u(), d("svg", {
|
|
3965
3965
|
class: "vue-flow__background vue-flow__container",
|
|
3966
3966
|
style: ct({
|
|
@@ -3979,23 +3979,23 @@ const Bc = {
|
|
|
3979
3979
|
patternUnits: "userSpaceOnUse"
|
|
3980
3980
|
}, [
|
|
3981
3981
|
ae(r.$slots, "pattern", {}, () => [
|
|
3982
|
-
r.variant === D(qe).Lines ? (u(), q(D(
|
|
3982
|
+
r.variant === D(qe).Lines ? (u(), q(D(ro), {
|
|
3983
3983
|
key: 0,
|
|
3984
3984
|
size: r.lineWidth,
|
|
3985
3985
|
color: i.value,
|
|
3986
3986
|
dimensions: l.value.scaledGap
|
|
3987
|
-
}, null, 8, ["size", "color", "dimensions"])) : r.variant === D(qe).Dots ? (u(), q(D(
|
|
3987
|
+
}, null, 8, ["size", "color", "dimensions"])) : r.variant === D(qe).Dots ? (u(), q(D(ao), {
|
|
3988
3988
|
key: 1,
|
|
3989
3989
|
color: i.value,
|
|
3990
3990
|
radius: l.value.size / 2
|
|
3991
|
-
}, null, 8, ["color", "radius"])) :
|
|
3991
|
+
}, null, 8, ["color", "radius"])) : w("", !0),
|
|
3992
3992
|
r.bgColor ? (u(), d("svg", Gc, [
|
|
3993
3993
|
v("rect", {
|
|
3994
3994
|
width: "100%",
|
|
3995
3995
|
height: "100%",
|
|
3996
3996
|
fill: r.bgColor
|
|
3997
3997
|
}, null, 8, Wc)
|
|
3998
|
-
])) :
|
|
3998
|
+
])) : w("", !0)
|
|
3999
3999
|
])
|
|
4000
4000
|
], 8, zc)
|
|
4001
4001
|
]),
|
|
@@ -4042,7 +4042,7 @@ function ed(e, t, n, l, o, i) {
|
|
|
4042
4042
|
viewBox: "0 0 24 24"
|
|
4043
4043
|
}, [
|
|
4044
4044
|
v("path", Jc, [
|
|
4045
|
-
n.title ? (u(), d("title", Qc,
|
|
4045
|
+
n.title ? (u(), d("title", Qc, V(n.title), 1)) : w("", !0)
|
|
4046
4046
|
])
|
|
4047
4047
|
], 8, Zc))
|
|
4048
4048
|
], 16, Xc);
|
|
@@ -4098,25 +4098,25 @@ const td = /* @__PURE__ */ H(qc, [["render", ed]]), nd = { class: "top-button-di
|
|
|
4098
4098
|
}, [
|
|
4099
4099
|
v("span", {
|
|
4100
4100
|
class: re(["badge rounded-pill text-truncate text-color position-reliative", [`bg-${e.data.color}`]])
|
|
4101
|
-
},
|
|
4101
|
+
}, V(i.clusterName), 3),
|
|
4102
4102
|
v("div", nd, [
|
|
4103
4103
|
e.data.collapsable ? (u(), d("span", {
|
|
4104
4104
|
key: 0,
|
|
4105
4105
|
class: re(["circle-button", [`bg-${e.data.color}`]]),
|
|
4106
4106
|
onClick: r[0] || (r[0] = (a) => o())
|
|
4107
4107
|
}, [
|
|
4108
|
-
|
|
4108
|
+
M(oe, {
|
|
4109
4109
|
title: i.$t("collapse")
|
|
4110
4110
|
}, {
|
|
4111
|
-
default:
|
|
4112
|
-
|
|
4111
|
+
default: z(() => [
|
|
4112
|
+
M(td, {
|
|
4113
4113
|
class: "button-icon",
|
|
4114
4114
|
alt: "Collapse task"
|
|
4115
4115
|
})
|
|
4116
4116
|
]),
|
|
4117
4117
|
_: 1
|
|
4118
4118
|
}, 8, ["title"])
|
|
4119
|
-
], 2)) :
|
|
4119
|
+
], 2)) : w("", !0)
|
|
4120
4120
|
])
|
|
4121
4121
|
], 2));
|
|
4122
4122
|
}
|
|
@@ -4153,14 +4153,14 @@ function dd(e, t, n, l, o, i) {
|
|
|
4153
4153
|
viewBox: "0 0 24 24"
|
|
4154
4154
|
}, [
|
|
4155
4155
|
v("path", ud, [
|
|
4156
|
-
n.title ? (u(), d("title", cd,
|
|
4156
|
+
n.title ? (u(), d("title", cd, V(n.title), 1)) : w("", !0)
|
|
4157
4157
|
])
|
|
4158
4158
|
], 8, sd))
|
|
4159
4159
|
], 16, ad);
|
|
4160
4160
|
}
|
|
4161
|
-
const
|
|
4161
|
+
const so = /* @__PURE__ */ H(rd, [["render", dd]]), fd = {
|
|
4162
4162
|
name: "Dot",
|
|
4163
|
-
components: { Handle: Me, CircleIcon:
|
|
4163
|
+
components: { Handle: Me, CircleIcon: so },
|
|
4164
4164
|
inheritAttrs: !1,
|
|
4165
4165
|
props: {
|
|
4166
4166
|
data: {
|
|
@@ -4193,7 +4193,7 @@ const ao = /* @__PURE__ */ H(rd, [["render", dd]]), fd = {
|
|
|
4193
4193
|
return (t, n) => (u(), d("div", {
|
|
4194
4194
|
class: re(t.classes)
|
|
4195
4195
|
}, [
|
|
4196
|
-
|
|
4196
|
+
M(D(Me), {
|
|
4197
4197
|
type: "source",
|
|
4198
4198
|
class: "custom-handle",
|
|
4199
4199
|
position: e.sourcePosition
|
|
@@ -4201,12 +4201,12 @@ const ao = /* @__PURE__ */ H(rd, [["render", dd]]), fd = {
|
|
|
4201
4201
|
v("div", {
|
|
4202
4202
|
class: re(["dot", t.classes])
|
|
4203
4203
|
}, [
|
|
4204
|
-
|
|
4204
|
+
M(so, {
|
|
4205
4205
|
class: re([{ "text-danger": e.data.node.branchType === "ERROR" }, "circle"]),
|
|
4206
4206
|
alt: "circle"
|
|
4207
4207
|
}, null, 8, ["class"])
|
|
4208
4208
|
], 2),
|
|
4209
|
-
|
|
4209
|
+
M(D(Me), {
|
|
4210
4210
|
type: "target",
|
|
4211
4211
|
class: "custom-handle",
|
|
4212
4212
|
position: e.targetPosition
|
|
@@ -4246,7 +4246,7 @@ function Ed(e, t, n, l, o, i) {
|
|
|
4246
4246
|
viewBox: "0 0 24 24"
|
|
4247
4247
|
}, [
|
|
4248
4248
|
v("path", yd, [
|
|
4249
|
-
n.title ? (u(), d("title", vd,
|
|
4249
|
+
n.title ? (u(), d("title", vd, V(n.title), 1)) : w("", !0)
|
|
4250
4250
|
])
|
|
4251
4251
|
], 8, _d))
|
|
4252
4252
|
], 16, hd);
|
|
@@ -4262,7 +4262,7 @@ const Cd = /* @__PURE__ */ H(gd, [["render", Ed]]), bd = { class: "add-task-div
|
|
|
4262
4262
|
t.addTask ? (u(), q(Cd, {
|
|
4263
4263
|
key: 0,
|
|
4264
4264
|
alt: "add task icon"
|
|
4265
|
-
})) :
|
|
4265
|
+
})) : w("", !0)
|
|
4266
4266
|
]));
|
|
4267
4267
|
}
|
|
4268
4268
|
}), Ld = /* @__PURE__ */ H(kd, [["__scopeId", "data-v-4afc4738"]]), Sd = ["id", "d", "marker-end"], wd = /* @__PURE__ */ de({
|
|
@@ -4332,12 +4332,12 @@ const Cd = /* @__PURE__ */ H(gd, [["render", Ed]]), bd = { class: "add-task-div
|
|
|
4332
4332
|
} : {}),
|
|
4333
4333
|
d: i.value[0],
|
|
4334
4334
|
"marker-end": e.markerEnd
|
|
4335
|
-
}, null, 14, Sd)) :
|
|
4335
|
+
}, null, 14, Sd)) : w("", !0),
|
|
4336
4336
|
i.value?.length ? (u(), q(D(Rr), {
|
|
4337
4337
|
key: 1,
|
|
4338
4338
|
style: { "z-index": "10" }
|
|
4339
4339
|
}, {
|
|
4340
|
-
default:
|
|
4340
|
+
default: z(() => [
|
|
4341
4341
|
v("div", {
|
|
4342
4342
|
style: ct({
|
|
4343
4343
|
pointerEvents: "all",
|
|
@@ -4345,21 +4345,21 @@ const Cd = /* @__PURE__ */ H(gd, [["render", Ed]]), bd = { class: "add-task-div
|
|
|
4345
4345
|
transform: `translate(-50%, -50%) translate(${i.value[1]}px,${i.value[2]}px)`
|
|
4346
4346
|
})
|
|
4347
4347
|
}, [
|
|
4348
|
-
|
|
4349
|
-
default:
|
|
4348
|
+
M(oe, { title: o.value }, {
|
|
4349
|
+
default: z(() => [
|
|
4350
4350
|
e.data.haveAdd ? (u(), q(Ld, {
|
|
4351
4351
|
key: 0,
|
|
4352
4352
|
"add-task": !0,
|
|
4353
4353
|
onClick: a[0] || (a[0] = (s) => r.$emit(D(U).ADD_TASK, e.data.haveAdd)),
|
|
4354
4354
|
class: re({ "text-danger": e.data.color })
|
|
4355
|
-
}, null, 8, ["class"])) :
|
|
4355
|
+
}, null, 8, ["class"])) : w("", !0)
|
|
4356
4356
|
]),
|
|
4357
4357
|
_: 1
|
|
4358
4358
|
}, 8, ["title"])
|
|
4359
4359
|
], 4)
|
|
4360
4360
|
]),
|
|
4361
4361
|
_: 1
|
|
4362
|
-
})) :
|
|
4362
|
+
})) : w("", !0)
|
|
4363
4363
|
], 64));
|
|
4364
4364
|
}
|
|
4365
4365
|
}), Nd = /* @__PURE__ */ H(wd, [["__scopeId", "data-v-5e05a3ec"]]), Td = ["innerHTML"], Ad = /* @__PURE__ */ de({
|
|
@@ -4371,15 +4371,15 @@ const Cd = /* @__PURE__ */ H(gd, [["render", Ed]]), bd = { class: "add-task-div
|
|
|
4371
4371
|
const t = e;
|
|
4372
4372
|
Ue(
|
|
4373
4373
|
() => t.histories,
|
|
4374
|
-
(
|
|
4375
|
-
|
|
4374
|
+
(L, C) => {
|
|
4375
|
+
C[0].date !== L[0].date && a();
|
|
4376
4376
|
}
|
|
4377
4377
|
);
|
|
4378
4378
|
const n = te(""), l = te();
|
|
4379
4379
|
Mt(() => {
|
|
4380
4380
|
a();
|
|
4381
4381
|
});
|
|
4382
|
-
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((
|
|
4382
|
+
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((L) => L.date.isValid() && L.date && L.state));
|
|
4383
4383
|
function a() {
|
|
4384
4384
|
l.value || (l.value = setInterval(() => {
|
|
4385
4385
|
_(), t.histories && !_e.isRunning(i.value.state) && s();
|
|
@@ -4397,28 +4397,28 @@ const Cd = /* @__PURE__ */ H(gd, [["render", Ed]]), bd = { class: "add-task-div
|
|
|
4397
4397
|
function _() {
|
|
4398
4398
|
n.value = r.value.length === 0 ? " " : Ko(c() / 1e3);
|
|
4399
4399
|
}
|
|
4400
|
-
function h(
|
|
4401
|
-
return "ks-duration-tt-square-" +
|
|
4400
|
+
function h(L) {
|
|
4401
|
+
return "ks-duration-tt-square-" + L.toLowerCase();
|
|
4402
4402
|
}
|
|
4403
|
-
return
|
|
4403
|
+
return Li(() => {
|
|
4404
4404
|
s();
|
|
4405
|
-
}), (
|
|
4405
|
+
}), (L, C) => (u(), q(oe, {
|
|
4406
4406
|
key: i.value.date.toString()
|
|
4407
4407
|
}, {
|
|
4408
|
-
content:
|
|
4409
|
-
(u(!0), d(Ee, null, Xe(r.value, (
|
|
4410
|
-
key: "tt-" +
|
|
4408
|
+
content: z(() => [
|
|
4409
|
+
(u(!0), d(Ee, null, Xe(r.value, (k, y) => (u(), d("span", {
|
|
4410
|
+
key: "tt-" + y,
|
|
4411
4411
|
class: "ks-duration-tt"
|
|
4412
4412
|
}, [
|
|
4413
4413
|
v("span", {
|
|
4414
|
-
class: re(["ks-duration-tt-square", h(
|
|
4414
|
+
class: re(["ks-duration-tt-square", h(k.state)])
|
|
4415
4415
|
}, null, 2),
|
|
4416
|
-
v("strong", null,
|
|
4417
|
-
Ze(
|
|
4418
|
-
|
|
4416
|
+
v("strong", null, V(k.state) + ": ", 1),
|
|
4417
|
+
Ze(V(Yo(k.date.toISOString(), "iso")) + " ", 1),
|
|
4418
|
+
C[0] || (C[0] = v("br", null, null, -1))
|
|
4419
4419
|
]))), 128))
|
|
4420
4420
|
]),
|
|
4421
|
-
default:
|
|
4421
|
+
default: z(() => [
|
|
4422
4422
|
v("span", { innerHTML: n.value }, null, 8, Td)
|
|
4423
4423
|
]),
|
|
4424
4424
|
_: 1
|
|
@@ -4463,11 +4463,11 @@ const Cd = /* @__PURE__ */ H(gd, [["render", Ed]]), bd = { class: "add-task-div
|
|
|
4463
4463
|
];
|
|
4464
4464
|
});
|
|
4465
4465
|
return (i, r) => (u(), d("div", Id, [
|
|
4466
|
-
l.value.length > 0 ? (u(), d("span", Od,
|
|
4467
|
-
l.value.length > 0 ? (u(), d("span", Dd, " | ")) :
|
|
4466
|
+
l.value.length > 0 ? (u(), d("span", Od, V(l.value.length) + " task runs", 1)) : w("", !0),
|
|
4467
|
+
l.value.length > 0 ? (u(), d("span", Dd, " | ")) : w("", !0),
|
|
4468
4468
|
o.value ? (u(), d("span", $d, [
|
|
4469
|
-
|
|
4470
|
-
])) :
|
|
4469
|
+
M(Ad, { histories: o.value }, null, 8, ["histories"])
|
|
4470
|
+
])) : w("", !0)
|
|
4471
4471
|
]));
|
|
4472
4472
|
}
|
|
4473
4473
|
}), Pd = /* @__PURE__ */ H(Rd, [["__scopeId", "data-v-96fa5d6e"]]), Md = {
|
|
@@ -4503,7 +4503,7 @@ function Hd(e, t, n, l, o, i) {
|
|
|
4503
4503
|
viewBox: "0 0 24 24"
|
|
4504
4504
|
}, [
|
|
4505
4505
|
v("path", Ud, [
|
|
4506
|
-
n.title ? (u(), d("title", Fd,
|
|
4506
|
+
n.title ? (u(), d("title", Fd, V(n.title), 1)) : w("", !0)
|
|
4507
4507
|
])
|
|
4508
4508
|
], 8, xd))
|
|
4509
4509
|
], 16, Vd);
|
|
@@ -4541,7 +4541,7 @@ function Yd(e, t, n, l, o, i) {
|
|
|
4541
4541
|
viewBox: "0 0 24 24"
|
|
4542
4542
|
}, [
|
|
4543
4543
|
v("path", jd, [
|
|
4544
|
-
n.title ? (u(), d("title", Kd,
|
|
4544
|
+
n.title ? (u(), d("title", Kd, V(n.title), 1)) : w("", !0)
|
|
4545
4545
|
])
|
|
4546
4546
|
], 8, Wd))
|
|
4547
4547
|
], 16, Gd);
|
|
@@ -4584,109 +4584,106 @@ const rl = /* @__PURE__ */ H(zd, [["render", Yd]]), qd = { class: "icon rounded"
|
|
|
4584
4584
|
function i() {
|
|
4585
4585
|
n(U.MOUSE_LEAVE);
|
|
4586
4586
|
}
|
|
4587
|
-
const r = G(() => l.data?.expandable || !1), a = G(() =>
|
|
4588
|
-
const y = l.data.node.task ?? l.data.node.trigger ?? null;
|
|
4589
|
-
return y ? y.description ?? null : null;
|
|
4590
|
-
}), s = G(() => Re.afterLastDot(l.id ?? "")), c = G(() => ["default", "danger"].includes(l.data.color) ? "" : l.data.color), m = G(() => [
|
|
4587
|
+
const r = G(() => l.data?.expandable || !1), a = G(() => l.data.node?.plugin ?? l.data.node?.task ?? l.data.node?.trigger ?? null), s = G(() => a.value?.description ?? null), c = G(() => Re.afterLastDot(l.id ?? "")), m = G(() => ["default", "danger"].includes(l.data.color) ? "" : l.data.color), _ = G(() => [
|
|
4591
4588
|
{
|
|
4592
4589
|
"unused-path": l.data.unused,
|
|
4593
|
-
disabled:
|
|
4590
|
+
disabled: a.value?.disabled || l.data.parent?.taskNode?.task?.disabled
|
|
4594
4591
|
},
|
|
4595
4592
|
l.class
|
|
4596
|
-
]),
|
|
4593
|
+
]), h = G(() => {
|
|
4597
4594
|
if (l.data.node.triggerDeclaration)
|
|
4598
4595
|
return l.data.node.triggerDeclaration.type;
|
|
4599
|
-
if (
|
|
4600
|
-
return
|
|
4601
|
-
}),
|
|
4602
|
-
if (
|
|
4603
|
-
const
|
|
4604
|
-
return
|
|
4596
|
+
if (a.value)
|
|
4597
|
+
return a.value?.type;
|
|
4598
|
+
}), L = G(() => {
|
|
4599
|
+
if (a.value?.type?.endsWith("SubflowGraphTask")) {
|
|
4600
|
+
const k = a.value.subflowId ?? a.value;
|
|
4601
|
+
return k.namespace + " " + k.flowId;
|
|
4605
4602
|
}
|
|
4606
|
-
return
|
|
4607
|
-
}),
|
|
4608
|
-
return (
|
|
4609
|
-
class: re(["node-wrapper rounded-3", { ...
|
|
4610
|
-
style: ct({ borderColor:
|
|
4603
|
+
return c.value;
|
|
4604
|
+
}), C = G(() => l.title ?? c.value);
|
|
4605
|
+
return (k, y) => (u(), d("div", {
|
|
4606
|
+
class: re(["node-wrapper rounded-3", { ..._.value, "running-border-animation": k.state === "RUNNING" }]),
|
|
4607
|
+
style: ct({ borderColor: k.state ? `var(--ks-border-${k.state.toLowerCase()})` : void 0 }),
|
|
4611
4608
|
onMouseover: o,
|
|
4612
4609
|
onMouseleave: i
|
|
4613
4610
|
}, [
|
|
4614
4611
|
v("div", qd, [
|
|
4615
|
-
(u(), q(mt(
|
|
4616
|
-
cls:
|
|
4617
|
-
class: re([
|
|
4612
|
+
(u(), q(mt(k.iconComponent || io), {
|
|
4613
|
+
cls: h.value,
|
|
4614
|
+
class: re([m.value, "rounded bg-white"]),
|
|
4618
4615
|
theme: "light",
|
|
4619
|
-
icons:
|
|
4616
|
+
icons: k.icons
|
|
4620
4617
|
}, null, 8, ["cls", "class", "icons"]))
|
|
4621
4618
|
]),
|
|
4622
4619
|
v("div", Xd, [
|
|
4623
4620
|
v("div", Zd, [
|
|
4624
4621
|
v("div", Jd, [
|
|
4625
|
-
|
|
4626
|
-
default:
|
|
4627
|
-
Ze(
|
|
4622
|
+
M(oe, { title: L.value }, {
|
|
4623
|
+
default: z(() => [
|
|
4624
|
+
Ze(V(C.value), 1)
|
|
4628
4625
|
]),
|
|
4629
4626
|
_: 1
|
|
4630
4627
|
}, 8, ["title"])
|
|
4631
4628
|
]),
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
title:
|
|
4629
|
+
s.value ? (u(), d("span", Qd, [
|
|
4630
|
+
M(oe, {
|
|
4631
|
+
title: k.$t("show description"),
|
|
4635
4632
|
class: "d-flex align-items-center"
|
|
4636
4633
|
}, {
|
|
4637
|
-
default:
|
|
4638
|
-
|
|
4639
|
-
onClick:
|
|
4634
|
+
default: z(() => [
|
|
4635
|
+
M(Bd, {
|
|
4636
|
+
onClick: y[0] || (y[0] = (p) => k.$emit(D(U).SHOW_DESCRIPTION, { id: c.value, description: s.value })),
|
|
4640
4637
|
class: "description-button ms-2"
|
|
4641
4638
|
})
|
|
4642
4639
|
]),
|
|
4643
4640
|
_: 1
|
|
4644
4641
|
}, 8, ["title"])
|
|
4645
|
-
])) :
|
|
4642
|
+
])) : w("", !0)
|
|
4646
4643
|
]),
|
|
4647
|
-
ae(
|
|
4644
|
+
ae(k.$slots, "content", {}, void 0, !0)
|
|
4648
4645
|
]),
|
|
4649
4646
|
v("div", ef, [
|
|
4650
|
-
ae(
|
|
4651
|
-
|
|
4647
|
+
ae(k.$slots, "badge-button-before", {}, void 0, !0),
|
|
4648
|
+
k.data.link ? (u(), d("span", {
|
|
4652
4649
|
key: 0,
|
|
4653
|
-
class: re(["circle-button", [`bg-${
|
|
4654
|
-
onClick:
|
|
4650
|
+
class: re(["circle-button", [`bg-${k.data.color}`]]),
|
|
4651
|
+
onClick: y[1] || (y[1] = (p) => k.$emit(D(U).OPEN_LINK, { link: k.data.link }))
|
|
4655
4652
|
}, [
|
|
4656
|
-
|
|
4657
|
-
title:
|
|
4653
|
+
M(oe, {
|
|
4654
|
+
title: k.$t("open")
|
|
4658
4655
|
}, {
|
|
4659
|
-
default:
|
|
4660
|
-
|
|
4656
|
+
default: z(() => [
|
|
4657
|
+
M(oo, {
|
|
4661
4658
|
class: "button-icon",
|
|
4662
4659
|
alt: "Open in new tab"
|
|
4663
4660
|
})
|
|
4664
4661
|
]),
|
|
4665
4662
|
_: 1
|
|
4666
4663
|
}, 8, ["title"])
|
|
4667
|
-
], 2)) :
|
|
4664
|
+
], 2)) : w("", !0),
|
|
4668
4665
|
r.value ? (u(), d("span", {
|
|
4669
4666
|
key: 1,
|
|
4670
|
-
class: re(["circle-button", [`bg-${
|
|
4671
|
-
onClick:
|
|
4667
|
+
class: re(["circle-button", [`bg-${k.data.color}`]]),
|
|
4668
|
+
onClick: y[2] || (y[2] = (p) => k.$emit(D(U).EXPAND))
|
|
4672
4669
|
}, [
|
|
4673
|
-
|
|
4674
|
-
title:
|
|
4670
|
+
M(oe, {
|
|
4671
|
+
title: k.$t("expand")
|
|
4675
4672
|
}, {
|
|
4676
|
-
default:
|
|
4677
|
-
|
|
4673
|
+
default: z(() => [
|
|
4674
|
+
M(rl, {
|
|
4678
4675
|
class: "button-icon",
|
|
4679
4676
|
alt: "Expand task"
|
|
4680
4677
|
})
|
|
4681
4678
|
]),
|
|
4682
4679
|
_: 1
|
|
4683
4680
|
}, 8, ["title"])
|
|
4684
|
-
], 2)) :
|
|
4685
|
-
ae(
|
|
4681
|
+
], 2)) : w("", !0),
|
|
4682
|
+
ae(k.$slots, "badge-button-after", {}, void 0, !0)
|
|
4686
4683
|
])
|
|
4687
4684
|
], 38));
|
|
4688
4685
|
}
|
|
4689
|
-
}),
|
|
4686
|
+
}), al = /* @__PURE__ */ H(tf, [["__scopeId", "data-v-fafddf6d"]]), sl = Symbol("execution-injection-key"), uo = Symbol("subflows-executions-injection-key"), nf = {
|
|
4690
4687
|
name: "PencilIcon",
|
|
4691
4688
|
emits: ["click"],
|
|
4692
4689
|
props: {
|
|
@@ -4719,12 +4716,12 @@ function sf(e, t, n, l, o, i) {
|
|
|
4719
4716
|
viewBox: "0 0 24 24"
|
|
4720
4717
|
}, [
|
|
4721
4718
|
v("path", rf, [
|
|
4722
|
-
n.title ? (u(), d("title", af,
|
|
4719
|
+
n.title ? (u(), d("title", af, V(n.title), 1)) : w("", !0)
|
|
4723
4720
|
])
|
|
4724
4721
|
], 8, of))
|
|
4725
4722
|
], 16, lf);
|
|
4726
4723
|
}
|
|
4727
|
-
const
|
|
4724
|
+
const ul = /* @__PURE__ */ H(nf, [["render", sf]]), uf = {
|
|
4728
4725
|
name: "DeleteIcon",
|
|
4729
4726
|
emits: ["click"],
|
|
4730
4727
|
props: {
|
|
@@ -4757,12 +4754,12 @@ function pf(e, t, n, l, o, i) {
|
|
|
4757
4754
|
viewBox: "0 0 24 24"
|
|
4758
4755
|
}, [
|
|
4759
4756
|
v("path", ff, [
|
|
4760
|
-
n.title ? (u(), d("title", mf,
|
|
4757
|
+
n.title ? (u(), d("title", mf, V(n.title), 1)) : w("", !0)
|
|
4761
4758
|
])
|
|
4762
4759
|
], 8, df))
|
|
4763
4760
|
], 16, cf);
|
|
4764
4761
|
}
|
|
4765
|
-
const
|
|
4762
|
+
const cl = /* @__PURE__ */ H(uf, [["render", pf]]), gf = {
|
|
4766
4763
|
name: "TextBoxSearchIcon",
|
|
4767
4764
|
emits: ["click"],
|
|
4768
4765
|
props: {
|
|
@@ -4795,7 +4792,7 @@ function Ef(e, t, n, l, o, i) {
|
|
|
4795
4792
|
viewBox: "0 0 24 24"
|
|
4796
4793
|
}, [
|
|
4797
4794
|
v("path", yf, [
|
|
4798
|
-
n.title ? (u(), d("title", vf,
|
|
4795
|
+
n.title ? (u(), d("title", vf, V(n.title), 1)) : w("", !0)
|
|
4799
4796
|
])
|
|
4800
4797
|
], 8, _f))
|
|
4801
4798
|
], 16, hf);
|
|
@@ -4833,7 +4830,7 @@ function Nf(e, t, n, l, o, i) {
|
|
|
4833
4830
|
viewBox: "0 0 24 24"
|
|
4834
4831
|
}, [
|
|
4835
4832
|
v("path", Sf, [
|
|
4836
|
-
n.title ? (u(), d("title", wf,
|
|
4833
|
+
n.title ? (u(), d("title", wf, V(n.title), 1)) : w("", !0)
|
|
4837
4834
|
])
|
|
4838
4835
|
], 8, Lf))
|
|
4839
4836
|
], 16, kf);
|
|
@@ -4871,7 +4868,7 @@ function Rf(e, t, n, l, o, i) {
|
|
|
4871
4868
|
viewBox: "0 0 24 24"
|
|
4872
4869
|
}, [
|
|
4873
4870
|
v("path", Df, [
|
|
4874
|
-
n.title ? (u(), d("title", $f,
|
|
4871
|
+
n.title ? (u(), d("title", $f, V(n.title), 1)) : w("", !0)
|
|
4875
4872
|
])
|
|
4876
4873
|
], 8, Of))
|
|
4877
4874
|
], 16, If);
|
|
@@ -4909,7 +4906,7 @@ function Hf(e, t, n, l, o, i) {
|
|
|
4909
4906
|
viewBox: "0 0 24 24"
|
|
4910
4907
|
}, [
|
|
4911
4908
|
v("path", Uf, [
|
|
4912
|
-
n.title ? (u(), d("title", Ff,
|
|
4909
|
+
n.title ? (u(), d("title", Ff, V(n.title), 1)) : w("", !0)
|
|
4913
4910
|
])
|
|
4914
4911
|
], 8, xf))
|
|
4915
4912
|
], 16, Vf);
|
|
@@ -4947,7 +4944,7 @@ function Yf(e, t, n, l, o, i) {
|
|
|
4947
4944
|
viewBox: "0 0 24 24"
|
|
4948
4945
|
}, [
|
|
4949
4946
|
v("path", jf, [
|
|
4950
|
-
n.title ? (u(), d("title", Kf,
|
|
4947
|
+
n.title ? (u(), d("title", Kf, V(n.title), 1)) : w("", !0)
|
|
4951
4948
|
])
|
|
4952
4949
|
], 8, Wf))
|
|
4953
4950
|
], 16, Gf);
|
|
@@ -4985,12 +4982,12 @@ function em(e, t, n, l, o, i) {
|
|
|
4985
4982
|
viewBox: "0 0 24 24"
|
|
4986
4983
|
}, [
|
|
4987
4984
|
v("path", Jf, [
|
|
4988
|
-
n.title ? (u(), d("title", Qf,
|
|
4985
|
+
n.title ? (u(), d("title", Qf, V(n.title), 1)) : w("", !0)
|
|
4989
4986
|
])
|
|
4990
4987
|
], 8, Zf))
|
|
4991
4988
|
], 16, Xf);
|
|
4992
4989
|
}
|
|
4993
|
-
const
|
|
4990
|
+
const dl = /* @__PURE__ */ H(qf, [["render", em]]), tm = {
|
|
4994
4991
|
name: "SkipForwardIcon",
|
|
4995
4992
|
emits: ["click"],
|
|
4996
4993
|
props: {
|
|
@@ -5023,7 +5020,7 @@ function rm(e, t, n, l, o, i) {
|
|
|
5023
5020
|
viewBox: "0 0 24 24"
|
|
5024
5021
|
}, [
|
|
5025
5022
|
v("path", im, [
|
|
5026
|
-
n.title ? (u(), d("title", om,
|
|
5023
|
+
n.title ? (u(), d("title", om, V(n.title), 1)) : w("", !0)
|
|
5027
5024
|
])
|
|
5028
5025
|
], 8, lm))
|
|
5029
5026
|
], 16, nm);
|
|
@@ -5044,18 +5041,18 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5044
5041
|
playgroundReadyToStart: { type: Boolean }
|
|
5045
5042
|
},
|
|
5046
5043
|
setup(e, { emit: t }) {
|
|
5047
|
-
const n = e, l = t, o = Rn(
|
|
5048
|
-
const
|
|
5049
|
-
if (
|
|
5050
|
-
return
|
|
5044
|
+
const n = e, l = t, o = Rn(sl), i = Rn(uo), r = G(() => n.data.color ?? "primary"), a = G(() => Re.afterLastDot(n.id)), s = G(() => {
|
|
5045
|
+
const y = n.data.executionId;
|
|
5046
|
+
if (y)
|
|
5047
|
+
return y === o?.value?.id ? o?.value : Object.values(i?.value || {}).find((p) => p.id === y);
|
|
5051
5048
|
}), c = G(() => s.value && s.value.taskRunList ? s.value.taskRunList : []), m = G(() => c.value.filter(
|
|
5052
|
-
(
|
|
5049
|
+
(y) => y.taskId === Re.afterLastDot(n.data.node.uid)
|
|
5053
5050
|
)), _ = G(() => {
|
|
5054
5051
|
if (!m.value?.length)
|
|
5055
5052
|
return null;
|
|
5056
5053
|
if (m.value.length === 1)
|
|
5057
5054
|
return m.value[0].state.current;
|
|
5058
|
-
const
|
|
5055
|
+
const y = m.value.map((A) => A.state.current), p = [
|
|
5059
5056
|
_e.FAILED,
|
|
5060
5057
|
_e.KILLED,
|
|
5061
5058
|
_e.WARNING,
|
|
@@ -5066,20 +5063,20 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5066
5063
|
_e.RESTARTED,
|
|
5067
5064
|
_e.CREATED
|
|
5068
5065
|
];
|
|
5069
|
-
return
|
|
5066
|
+
return y.map((A) => [p.indexOf(A[1]), A]).sort().map((A) => A[1])[0];
|
|
5070
5067
|
}), h = G(() => ({
|
|
5071
5068
|
"execution-no-taskrun": !!(s.value && m.value && m.value.length === 0)
|
|
5072
|
-
})),
|
|
5069
|
+
})), L = G(() => ({
|
|
5073
5070
|
id: n.id,
|
|
5074
5071
|
type: String(n.data.node.task.type)
|
|
5075
|
-
})),
|
|
5072
|
+
})), C = G(() => {
|
|
5076
5073
|
if (n.data.node.type?.endsWith("SubflowGraphTask") && n.enableSubflowInteraction) {
|
|
5077
|
-
const
|
|
5074
|
+
const y = n.data.node.task.subflowId ?? n.data.node.task;
|
|
5078
5075
|
return {
|
|
5079
5076
|
...n.data,
|
|
5080
5077
|
link: {
|
|
5081
|
-
namespace:
|
|
5082
|
-
id:
|
|
5078
|
+
namespace: y.namespace,
|
|
5079
|
+
id: y.flowId,
|
|
5083
5080
|
executionId: s.value?.taskRunList.filter(
|
|
5084
5081
|
(p) => p.id === n.data.node.taskRun.id && p.outputs?.executionId
|
|
5085
5082
|
)?.[0]?.outputs?.executionId
|
|
@@ -5087,7 +5084,7 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5087
5084
|
};
|
|
5088
5085
|
}
|
|
5089
5086
|
return n.data;
|
|
5090
|
-
}),
|
|
5087
|
+
}), k = G(() => {
|
|
5091
5088
|
if (_.value === _e.RUNNING)
|
|
5092
5089
|
return "task is running";
|
|
5093
5090
|
if (_.value === _e.SUCCESS)
|
|
@@ -5099,48 +5096,48 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5099
5096
|
if (_.value === _e.FAILED)
|
|
5100
5097
|
return "task failed";
|
|
5101
5098
|
});
|
|
5102
|
-
return (
|
|
5103
|
-
|
|
5099
|
+
return (y, p) => (u(), d(Ee, null, [
|
|
5100
|
+
M(D(Me), {
|
|
5104
5101
|
type: "source",
|
|
5105
|
-
position:
|
|
5102
|
+
position: y.sourcePosition
|
|
5106
5103
|
}, null, 8, ["position"]),
|
|
5107
|
-
|
|
5108
|
-
id:
|
|
5109
|
-
data:
|
|
5104
|
+
M(al, {
|
|
5105
|
+
id: y.id,
|
|
5106
|
+
data: C.value,
|
|
5110
5107
|
state: _.value,
|
|
5111
5108
|
class: re(h.value),
|
|
5112
|
-
icons:
|
|
5113
|
-
"icon-component":
|
|
5109
|
+
icons: y.icons,
|
|
5110
|
+
"icon-component": y.iconComponent,
|
|
5114
5111
|
onShowDescription: p[6] || (p[6] = (E) => l(D(U).SHOW_DESCRIPTION, E)),
|
|
5115
|
-
onExpand: p[7] || (p[7] = (E) => l(D(U).EXPAND,
|
|
5112
|
+
onExpand: p[7] || (p[7] = (E) => l(D(U).EXPAND, L.value)),
|
|
5116
5113
|
onOpenLink: p[8] || (p[8] = (E) => l(D(U).OPEN_LINK, E)),
|
|
5117
5114
|
onMouseover: p[9] || (p[9] = (E) => l(D(U).MOUSE_OVER, E)),
|
|
5118
5115
|
onMouseleave: p[10] || (p[10] = (E) => l(D(U).MOUSE_LEAVE))
|
|
5119
5116
|
}, {
|
|
5120
|
-
content:
|
|
5117
|
+
content: z(() => [
|
|
5121
5118
|
s.value ? (u(), q(Pd, {
|
|
5122
5119
|
key: 0,
|
|
5123
5120
|
execution: s.value,
|
|
5124
|
-
task:
|
|
5121
|
+
task: y.data.node.task,
|
|
5125
5122
|
color: r.value,
|
|
5126
|
-
uid:
|
|
5123
|
+
uid: y.data.node.uid,
|
|
5127
5124
|
state: _.value
|
|
5128
|
-
}, null, 8, ["execution", "task", "color", "uid", "state"])) :
|
|
5129
|
-
|
|
5130
|
-
|
|
5125
|
+
}, null, 8, ["execution", "task", "color", "uid", "state"])) : w("", !0),
|
|
5126
|
+
y.data.node.task ? (u(), d(Ee, { key: 1 }, [
|
|
5127
|
+
y.playgroundEnabled && y.playgroundReadyToStart ? (u(), d("button", {
|
|
5131
5128
|
key: 0,
|
|
5132
5129
|
type: "button",
|
|
5133
5130
|
class: "playground-button",
|
|
5134
|
-
onClick: p[0] || (p[0] = (E) => l(D(U).RUN_TASK, { task:
|
|
5131
|
+
onClick: p[0] || (p[0] = (E) => l(D(U).RUN_TASK, { task: y.data.node.task }))
|
|
5135
5132
|
}, [
|
|
5136
|
-
|
|
5133
|
+
M(oe, {
|
|
5137
5134
|
style: { display: "flex" },
|
|
5138
|
-
title:
|
|
5135
|
+
title: y.$t("run task in playground")
|
|
5139
5136
|
}, {
|
|
5140
|
-
default:
|
|
5141
|
-
|
|
5137
|
+
default: z(() => [
|
|
5138
|
+
M(Bf, {
|
|
5142
5139
|
class: "button-play-icon",
|
|
5143
|
-
alt:
|
|
5140
|
+
alt: y.$t("run task in playground")
|
|
5144
5141
|
}, null, 8, ["alt"])
|
|
5145
5142
|
]),
|
|
5146
5143
|
_: 1
|
|
@@ -5153,125 +5150,125 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5153
5150
|
backgroundColor: `var(--ks-background-${_.value?.toLowerCase()})`
|
|
5154
5151
|
})
|
|
5155
5152
|
}, [
|
|
5156
|
-
|
|
5153
|
+
M(oe, {
|
|
5157
5154
|
style: { display: "flex" },
|
|
5158
|
-
title:
|
|
5155
|
+
title: k.value ? y.$t(k.value) : void 0
|
|
5159
5156
|
}, {
|
|
5160
|
-
default:
|
|
5157
|
+
default: z(() => [
|
|
5161
5158
|
_.value === D(_e).RUNNING ? (u(), q(hs, {
|
|
5162
5159
|
key: 0,
|
|
5163
|
-
alt:
|
|
5160
|
+
alt: k.value ? y.$t(k.value) : void 0
|
|
5164
5161
|
}, null, 8, ["alt"])) : _.value === D(_e).SUCCESS ? (u(), q(co, {
|
|
5165
5162
|
key: 1,
|
|
5166
|
-
alt:
|
|
5167
|
-
}, null, 8, ["alt"])) : _.value === D(_e).WARNING ? (u(), q(
|
|
5163
|
+
alt: k.value ? y.$t(k.value) : void 0
|
|
5164
|
+
}, null, 8, ["alt"])) : _.value === D(_e).WARNING ? (u(), q(dl, {
|
|
5168
5165
|
key: 2,
|
|
5169
|
-
alt:
|
|
5166
|
+
alt: k.value ? y.$t(k.value) : void 0
|
|
5170
5167
|
}, null, 8, ["alt"])) : _.value === D(_e).SKIPPED ? (u(), q(am, {
|
|
5171
5168
|
key: 3,
|
|
5172
|
-
alt:
|
|
5169
|
+
alt: k.value ? y.$t(k.value) : void 0
|
|
5173
5170
|
}, null, 8, ["alt"])) : _.value === D(_e).FAILED ? (u(), q(Qt, {
|
|
5174
5171
|
key: 4,
|
|
5175
|
-
alt:
|
|
5176
|
-
}, null, 8, ["alt"])) :
|
|
5172
|
+
alt: k.value ? y.$t(k.value) : void 0
|
|
5173
|
+
}, null, 8, ["alt"])) : w("", !0)
|
|
5177
5174
|
]),
|
|
5178
5175
|
_: 1
|
|
5179
5176
|
}, 8, ["title"])
|
|
5180
5177
|
], 4))
|
|
5181
|
-
], 64)) :
|
|
5178
|
+
], 64)) : w("", !0)
|
|
5182
5179
|
]),
|
|
5183
|
-
"badge-button-before":
|
|
5184
|
-
|
|
5180
|
+
"badge-button-before": z(() => [
|
|
5181
|
+
y.data.node.task && y.data.node.task.runIf ? (u(), d("span", {
|
|
5185
5182
|
key: 0,
|
|
5186
5183
|
class: re(["circle-button", ["bg-warning"]]),
|
|
5187
|
-
onClick: p[1] || (p[1] = (E) => l(D(U).SHOW_CONDITION, { id: a.value, task:
|
|
5184
|
+
onClick: p[1] || (p[1] = (E) => l(D(U).SHOW_CONDITION, { id: a.value, task: y.data.node.task, section: D(ut).TASKS }))
|
|
5188
5185
|
}, [
|
|
5189
|
-
|
|
5190
|
-
title:
|
|
5186
|
+
M(oe, {
|
|
5187
|
+
title: y.$t("show task condition")
|
|
5191
5188
|
}, {
|
|
5192
|
-
default:
|
|
5193
|
-
|
|
5189
|
+
default: z(() => [
|
|
5190
|
+
M(Pf, {
|
|
5194
5191
|
class: "button-icon",
|
|
5195
5192
|
alt: "Show condition"
|
|
5196
5193
|
})
|
|
5197
5194
|
]),
|
|
5198
5195
|
_: 1
|
|
5199
5196
|
}, 8, ["title"])
|
|
5200
|
-
])) :
|
|
5197
|
+
])) : w("", !0),
|
|
5201
5198
|
s.value ? (u(), d("span", {
|
|
5202
5199
|
key: 1,
|
|
5203
5200
|
class: re(["circle-button", [`bg-${r.value}`]]),
|
|
5204
5201
|
onClick: p[2] || (p[2] = (E) => l(D(U).SHOW_LOGS, { id: a.value, execution: s.value, taskRuns: m.value }))
|
|
5205
5202
|
}, [
|
|
5206
|
-
|
|
5207
|
-
title:
|
|
5203
|
+
M(oe, {
|
|
5204
|
+
title: y.$t("show task logs")
|
|
5208
5205
|
}, {
|
|
5209
|
-
default:
|
|
5210
|
-
|
|
5206
|
+
default: z(() => [
|
|
5207
|
+
M(Cf, {
|
|
5211
5208
|
class: "button-icon",
|
|
5212
5209
|
alt: "Show logs"
|
|
5213
5210
|
})
|
|
5214
5211
|
]),
|
|
5215
5212
|
_: 1
|
|
5216
5213
|
}, 8, ["title"])
|
|
5217
|
-
], 2)) :
|
|
5218
|
-
!s.value && !
|
|
5214
|
+
], 2)) : w("", !0),
|
|
5215
|
+
!s.value && !y.data.isReadOnly && y.data.isFlowable ? (u(), d("span", {
|
|
5219
5216
|
key: 2,
|
|
5220
5217
|
class: re(["circle-button", [`bg-${r.value}`]]),
|
|
5221
|
-
onClick: p[3] || (p[3] = (E) => l(D(U).ADD_ERROR, { task:
|
|
5218
|
+
onClick: p[3] || (p[3] = (E) => l(D(U).ADD_ERROR, { task: y.data.node.task }))
|
|
5222
5219
|
}, [
|
|
5223
|
-
|
|
5224
|
-
title:
|
|
5220
|
+
M(oe, {
|
|
5221
|
+
title: y.$t("add error handler")
|
|
5225
5222
|
}, {
|
|
5226
|
-
default:
|
|
5227
|
-
|
|
5223
|
+
default: z(() => [
|
|
5224
|
+
M(Tf, {
|
|
5228
5225
|
class: "button-icon",
|
|
5229
5226
|
alt: "Add error handler"
|
|
5230
5227
|
})
|
|
5231
5228
|
]),
|
|
5232
5229
|
_: 1
|
|
5233
5230
|
}, 8, ["title"])
|
|
5234
|
-
], 2)) :
|
|
5235
|
-
!s.value && !
|
|
5231
|
+
], 2)) : w("", !0),
|
|
5232
|
+
!s.value && !y.data.isReadOnly ? (u(), d("span", {
|
|
5236
5233
|
key: 3,
|
|
5237
5234
|
class: re(["circle-button", [`bg-${r.value}`]]),
|
|
5238
|
-
onClick: p[4] || (p[4] = (E) => l(D(U).EDIT, { task:
|
|
5235
|
+
onClick: p[4] || (p[4] = (E) => l(D(U).EDIT, { task: y.data.node.task, section: D(ut).TASKS }))
|
|
5239
5236
|
}, [
|
|
5240
|
-
|
|
5241
|
-
title:
|
|
5237
|
+
M(oe, {
|
|
5238
|
+
title: y.$t("edit")
|
|
5242
5239
|
}, {
|
|
5243
|
-
default:
|
|
5244
|
-
|
|
5240
|
+
default: z(() => [
|
|
5241
|
+
M(ul, {
|
|
5245
5242
|
class: "button-icon",
|
|
5246
5243
|
alt: "Edit task"
|
|
5247
5244
|
})
|
|
5248
5245
|
]),
|
|
5249
5246
|
_: 1
|
|
5250
5247
|
}, 8, ["title"])
|
|
5251
|
-
], 2)) :
|
|
5252
|
-
!s.value && !
|
|
5248
|
+
], 2)) : w("", !0),
|
|
5249
|
+
!s.value && !y.data.isReadOnly ? (u(), d("span", {
|
|
5253
5250
|
key: 4,
|
|
5254
5251
|
class: re(["circle-button", [`bg-${r.value}`]]),
|
|
5255
5252
|
onClick: p[5] || (p[5] = (E) => l(D(U).DELETE, { id: a.value, section: D(ut).TASKS }))
|
|
5256
5253
|
}, [
|
|
5257
|
-
|
|
5258
|
-
title:
|
|
5254
|
+
M(oe, {
|
|
5255
|
+
title: y.$t("delete")
|
|
5259
5256
|
}, {
|
|
5260
|
-
default:
|
|
5261
|
-
|
|
5257
|
+
default: z(() => [
|
|
5258
|
+
M(cl, {
|
|
5262
5259
|
class: "button-icon",
|
|
5263
5260
|
alt: "Delete task"
|
|
5264
5261
|
})
|
|
5265
5262
|
]),
|
|
5266
5263
|
_: 1
|
|
5267
5264
|
}, 8, ["title"])
|
|
5268
|
-
], 2)) :
|
|
5265
|
+
], 2)) : w("", !0)
|
|
5269
5266
|
]),
|
|
5270
5267
|
_: 1
|
|
5271
5268
|
}, 8, ["id", "data", "state", "class", "icons", "icon-component"]),
|
|
5272
|
-
|
|
5269
|
+
M(D(Me), {
|
|
5273
5270
|
type: "target",
|
|
5274
|
-
position:
|
|
5271
|
+
position: y.targetPosition
|
|
5275
5272
|
}, null, 8, ["position"])
|
|
5276
5273
|
], 64));
|
|
5277
5274
|
}
|
|
@@ -5280,7 +5277,7 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5280
5277
|
inheritAttrs: !1,
|
|
5281
5278
|
inject: {
|
|
5282
5279
|
execution: {
|
|
5283
|
-
from:
|
|
5280
|
+
from: sl
|
|
5284
5281
|
}
|
|
5285
5282
|
},
|
|
5286
5283
|
computed: {
|
|
@@ -5309,8 +5306,8 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5309
5306
|
U.SHOW_DESCRIPTION
|
|
5310
5307
|
],
|
|
5311
5308
|
components: {
|
|
5312
|
-
Delete:
|
|
5313
|
-
Pencil:
|
|
5309
|
+
Delete: cl,
|
|
5310
|
+
Pencil: ul,
|
|
5314
5311
|
Handle: Me,
|
|
5315
5312
|
Tooltip: oe
|
|
5316
5313
|
},
|
|
@@ -5348,11 +5345,11 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5348
5345
|
}, dm = /* @__PURE__ */ Object.assign(cm, {
|
|
5349
5346
|
setup(e) {
|
|
5350
5347
|
return (t, n) => (u(), d(Ee, null, [
|
|
5351
|
-
|
|
5348
|
+
M(D(Me), {
|
|
5352
5349
|
type: "source",
|
|
5353
5350
|
position: e.sourcePosition
|
|
5354
5351
|
}, null, 8, ["position"]),
|
|
5355
|
-
|
|
5352
|
+
M(al, {
|
|
5356
5353
|
id: e.id,
|
|
5357
5354
|
data: t.formattedData,
|
|
5358
5355
|
color: t.color,
|
|
@@ -5360,20 +5357,20 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5360
5357
|
"icon-component": e.iconComponent,
|
|
5361
5358
|
onShowDescription: n[2] || (n[2] = (l) => t.forwardEvent(D(U).SHOW_DESCRIPTION, l)),
|
|
5362
5359
|
onExpand: n[3] || (n[3] = (l) => t.forwardEvent(D(U).EXPAND, { id: e.id }))
|
|
5363
|
-
},
|
|
5360
|
+
}, Si({ _: 2 }, [
|
|
5364
5361
|
e.data.isReadOnly ? void 0 : {
|
|
5365
5362
|
name: "badge-button-before",
|
|
5366
|
-
fn:
|
|
5367
|
-
t.execution ?
|
|
5363
|
+
fn: z(() => [
|
|
5364
|
+
t.execution ? w("", !0) : (u(), d("span", {
|
|
5368
5365
|
key: 0,
|
|
5369
5366
|
class: re(["circle-button", [`bg-${t.color}`]]),
|
|
5370
5367
|
onClick: n[0] || (n[0] = (l) => t.$emit(D(U).EDIT, { task: e.data.node.triggerDeclaration, section: D(ut).TRIGGERS }))
|
|
5371
5368
|
}, [
|
|
5372
|
-
|
|
5369
|
+
M(oe, {
|
|
5373
5370
|
title: t.$t("edit")
|
|
5374
5371
|
}, {
|
|
5375
|
-
default:
|
|
5376
|
-
|
|
5372
|
+
default: z(() => [
|
|
5373
|
+
M(ul, {
|
|
5377
5374
|
class: "button-icon",
|
|
5378
5375
|
alt: "Edit task"
|
|
5379
5376
|
})
|
|
@@ -5381,16 +5378,16 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5381
5378
|
_: 1
|
|
5382
5379
|
}, 8, ["title"])
|
|
5383
5380
|
], 2)),
|
|
5384
|
-
t.execution ?
|
|
5381
|
+
t.execution ? w("", !0) : (u(), d("span", {
|
|
5385
5382
|
key: 1,
|
|
5386
5383
|
class: re(["circle-button", [`bg-${t.color}`]]),
|
|
5387
5384
|
onClick: n[1] || (n[1] = (l) => t.$emit(D(U).DELETE, { id: t.triggerId, section: D(ut).TRIGGERS }))
|
|
5388
5385
|
}, [
|
|
5389
|
-
|
|
5386
|
+
M(oe, {
|
|
5390
5387
|
title: t.$t("delete")
|
|
5391
5388
|
}, {
|
|
5392
|
-
default:
|
|
5393
|
-
|
|
5389
|
+
default: z(() => [
|
|
5390
|
+
M(cl, {
|
|
5394
5391
|
class: "button-icon",
|
|
5395
5392
|
alt: "Delete task"
|
|
5396
5393
|
})
|
|
@@ -5402,7 +5399,7 @@ const am = /* @__PURE__ */ H(tm, [["render", rm]]), sm = /* @__PURE__ */ de({
|
|
|
5402
5399
|
key: "0"
|
|
5403
5400
|
}
|
|
5404
5401
|
]), 1032, ["id", "data", "color", "icons", "icon-component"]),
|
|
5405
|
-
|
|
5402
|
+
M(D(Me), {
|
|
5406
5403
|
type: "target",
|
|
5407
5404
|
position: e.targetPosition
|
|
5408
5405
|
}, null, 8, ["position"])
|
|
@@ -5441,7 +5438,7 @@ function _m(e, t, n, l, o, i) {
|
|
|
5441
5438
|
viewBox: "0 0 24 24"
|
|
5442
5439
|
}, [
|
|
5443
5440
|
v("path", gm, [
|
|
5444
|
-
n.title ? (u(), d("title", hm,
|
|
5441
|
+
n.title ? (u(), d("title", hm, V(n.title), 1)) : w("", !0)
|
|
5445
5442
|
])
|
|
5446
5443
|
], 8, pm))
|
|
5447
5444
|
], 16, mm);
|
|
@@ -5494,7 +5491,7 @@ const ym = /* @__PURE__ */ H(fm, [["render", _m]]), vm = { class: "collapsed-clu
|
|
|
5494
5491
|
__name: "CollapsedClusterNode",
|
|
5495
5492
|
setup(e) {
|
|
5496
5493
|
return (t, n) => (u(), d(Ee, null, [
|
|
5497
|
-
|
|
5494
|
+
M(D(Me), {
|
|
5498
5495
|
type: "source",
|
|
5499
5496
|
position: e.sourcePosition
|
|
5500
5497
|
}, null, 8, ["position"]),
|
|
@@ -5503,8 +5500,8 @@ const ym = /* @__PURE__ */ H(fm, [["render", _m]]), vm = { class: "collapsed-clu
|
|
|
5503
5500
|
e.data.iconComponent ? (u(), q(mt(e.data.iconComponent), {
|
|
5504
5501
|
key: 0,
|
|
5505
5502
|
class: re(`text-${e.data.color} me-2`)
|
|
5506
|
-
}, null, 8, ["class"])) :
|
|
5507
|
-
Ze(" " +
|
|
5503
|
+
}, null, 8, ["class"])) : w("", !0),
|
|
5504
|
+
Ze(" " + V(D(Re).afterLastDot(e.id)), 1)
|
|
5508
5505
|
]),
|
|
5509
5506
|
v("div", Cm, [
|
|
5510
5507
|
ae(t.$slots, "badge-button-before", {}, void 0, !0),
|
|
@@ -5513,22 +5510,22 @@ const ym = /* @__PURE__ */ H(fm, [["render", _m]]), vm = { class: "collapsed-clu
|
|
|
5513
5510
|
class: re(["circle-button", [`bg-${e.data.color}`]]),
|
|
5514
5511
|
onClick: n[0] || (n[0] = (l) => t.$emit(D(U).EXPAND, { id: e.id }))
|
|
5515
5512
|
}, [
|
|
5516
|
-
|
|
5513
|
+
M(oe, {
|
|
5517
5514
|
title: t.$t("expand")
|
|
5518
5515
|
}, {
|
|
5519
|
-
default:
|
|
5520
|
-
|
|
5516
|
+
default: z(() => [
|
|
5517
|
+
M(rl, {
|
|
5521
5518
|
class: "button-icon",
|
|
5522
5519
|
alt: "Expand task"
|
|
5523
5520
|
})
|
|
5524
5521
|
]),
|
|
5525
5522
|
_: 1
|
|
5526
5523
|
}, 8, ["title"])
|
|
5527
|
-
], 2)) :
|
|
5524
|
+
], 2)) : w("", !0),
|
|
5528
5525
|
ae(t.$slots, "badge-button-after", {}, void 0, !0)
|
|
5529
5526
|
])
|
|
5530
5527
|
]),
|
|
5531
|
-
|
|
5528
|
+
M(D(Me), {
|
|
5532
5529
|
type: "target",
|
|
5533
5530
|
position: e.targetPosition
|
|
5534
5531
|
}, null, 8, ["position"])
|
|
@@ -5626,7 +5623,7 @@ function xm(e, t, n, l, o, i) {
|
|
|
5626
5623
|
viewBox: "0 0 24 24"
|
|
5627
5624
|
}, [
|
|
5628
5625
|
v("path", Mm, [
|
|
5629
|
-
n.title ? (u(), d("title", Vm,
|
|
5626
|
+
n.title ? (u(), d("title", Vm, V(n.title), 1)) : w("", !0)
|
|
5630
5627
|
])
|
|
5631
5628
|
], 8, Pm))
|
|
5632
5629
|
], 16, Rm);
|
|
@@ -5726,7 +5723,7 @@ function Xm(e, t, n, l) {
|
|
|
5726
5723
|
const o = `.${e}:${t}`, i = n.cssText ? Ym(n) : qm(n, l);
|
|
5727
5724
|
return document.createTextNode(`${o}{${i}}`);
|
|
5728
5725
|
}
|
|
5729
|
-
function
|
|
5726
|
+
function si(e, t, n, l) {
|
|
5730
5727
|
const o = window.getComputedStyle(e, n), i = o.getPropertyValue("content");
|
|
5731
5728
|
if (i === "" || i === "none")
|
|
5732
5729
|
return;
|
|
@@ -5740,16 +5737,16 @@ function ai(e, t, n, l) {
|
|
|
5740
5737
|
a.appendChild(Xm(r, n, o, l)), t.appendChild(a);
|
|
5741
5738
|
}
|
|
5742
5739
|
function Zm(e, t, n) {
|
|
5743
|
-
|
|
5740
|
+
si(e, t, ":before", n), si(e, t, ":after", n);
|
|
5744
5741
|
}
|
|
5745
|
-
const
|
|
5746
|
-
woff:
|
|
5747
|
-
woff2:
|
|
5742
|
+
const ui = "application/font-woff", ci = "image/jpeg", Jm = {
|
|
5743
|
+
woff: ui,
|
|
5744
|
+
woff2: ui,
|
|
5748
5745
|
ttf: "application/font-truetype",
|
|
5749
5746
|
eot: "application/vnd.ms-fontobject",
|
|
5750
5747
|
png: "image/png",
|
|
5751
|
-
jpg:
|
|
5752
|
-
jpeg:
|
|
5748
|
+
jpg: ci,
|
|
5749
|
+
jpeg: ci,
|
|
5753
5750
|
gif: "image/gif",
|
|
5754
5751
|
tiff: "image/tiff",
|
|
5755
5752
|
svg: "image/svg+xml",
|
|
@@ -5759,7 +5756,7 @@ function Qm(e) {
|
|
|
5759
5756
|
const t = /\.([^./]*?)$/g.exec(e);
|
|
5760
5757
|
return t ? t[1] : "";
|
|
5761
5758
|
}
|
|
5762
|
-
function
|
|
5759
|
+
function fl(e) {
|
|
5763
5760
|
const t = Qm(e).toLowerCase();
|
|
5764
5761
|
return Jm[t] || "";
|
|
5765
5762
|
}
|
|
@@ -5793,7 +5790,7 @@ function n1(e, t, n) {
|
|
|
5793
5790
|
let l = e.replace(/\?.*/, "");
|
|
5794
5791
|
return n && (l = e), /ttf|otf|eot|woff2?/i.test(l) && (l = l.replace(/.*\//, "")), t ? `[${t}]${l}` : l;
|
|
5795
5792
|
}
|
|
5796
|
-
async function
|
|
5793
|
+
async function ml(e, t, n) {
|
|
5797
5794
|
const l = n1(e, t, n.includeQueryParams);
|
|
5798
5795
|
if (Dn[l] != null)
|
|
5799
5796
|
return Dn[l];
|
|
@@ -5820,7 +5817,7 @@ async function i1(e, t) {
|
|
|
5820
5817
|
const a = i.toDataURL();
|
|
5821
5818
|
return rn(a);
|
|
5822
5819
|
}
|
|
5823
|
-
const n = e.poster, l =
|
|
5820
|
+
const n = e.poster, l = fl(n), o = await ml(n, l, t);
|
|
5824
5821
|
return rn(o);
|
|
5825
5822
|
}
|
|
5826
5823
|
async function o1(e, t) {
|
|
@@ -5905,9 +5902,9 @@ function _1(e) {
|
|
|
5905
5902
|
}
|
|
5906
5903
|
async function y1(e, t, n, l, o) {
|
|
5907
5904
|
try {
|
|
5908
|
-
const i = n ? Fm(t, n) : t, r =
|
|
5905
|
+
const i = n ? Fm(t, n) : t, r = fl(t);
|
|
5909
5906
|
let a;
|
|
5910
|
-
return o || (a = await
|
|
5907
|
+
return o || (a = await ml(i, r, l)), e.replace(h1(t), `$1${a}$3`);
|
|
5911
5908
|
} catch {
|
|
5912
5909
|
}
|
|
5913
5910
|
return e;
|
|
@@ -5948,7 +5945,7 @@ async function C1(e, t) {
|
|
|
5948
5945
|
const n = Ie(e, HTMLImageElement);
|
|
5949
5946
|
if (!(n && !Kn(e.src)) && !(Ie(e, SVGImageElement) && !Kn(e.href.baseVal)))
|
|
5950
5947
|
return;
|
|
5951
|
-
const l = n ? e.src : e.href.baseVal, o = await
|
|
5948
|
+
const l = n ? e.src : e.href.baseVal, o = await ml(l, fl(l), t);
|
|
5952
5949
|
await new Promise((i, r) => {
|
|
5953
5950
|
e.onload = i, e.onerror = t.onImageErrorHandler ? (...s) => {
|
|
5954
5951
|
try {
|
|
@@ -5976,15 +5973,15 @@ function k1(e, t) {
|
|
|
5976
5973
|
n[o] = l[o];
|
|
5977
5974
|
}), e;
|
|
5978
5975
|
}
|
|
5979
|
-
const
|
|
5980
|
-
async function
|
|
5981
|
-
let t =
|
|
5976
|
+
const di = {};
|
|
5977
|
+
async function fi(e) {
|
|
5978
|
+
let t = di[e];
|
|
5982
5979
|
if (t != null)
|
|
5983
5980
|
return t;
|
|
5984
5981
|
const l = await (await fetch(e)).text();
|
|
5985
|
-
return t = { url: e, cssText: l },
|
|
5982
|
+
return t = { url: e, cssText: l }, di[e] = t, t;
|
|
5986
5983
|
}
|
|
5987
|
-
async function
|
|
5984
|
+
async function mi(e, t) {
|
|
5988
5985
|
let n = e.cssText;
|
|
5989
5986
|
const l = /url\(["']?([^"')]+)["']?\)/g, i = (n.match(/url\([^)]+\)/g) || []).map(async (r) => {
|
|
5990
5987
|
let a = r.replace(l, "$1");
|
|
@@ -5992,7 +5989,7 @@ async function fi(e, t) {
|
|
|
5992
5989
|
});
|
|
5993
5990
|
return Promise.all(i).then(() => n);
|
|
5994
5991
|
}
|
|
5995
|
-
function
|
|
5992
|
+
function pi(e) {
|
|
5996
5993
|
if (e == null)
|
|
5997
5994
|
return [];
|
|
5998
5995
|
const t = [], n = /(\/\*[\s\S]*?\*\/)/gi;
|
|
@@ -6026,7 +6023,7 @@ async function L1(e, t) {
|
|
|
6026
6023
|
tt(o.cssRules || []).forEach((i, r) => {
|
|
6027
6024
|
if (i.type === CSSRule.IMPORT_RULE) {
|
|
6028
6025
|
let a = r + 1;
|
|
6029
|
-
const s = i.href, c =
|
|
6026
|
+
const s = i.href, c = fi(s).then((m) => mi(m, t)).then((m) => pi(m).forEach((_) => {
|
|
6030
6027
|
try {
|
|
6031
6028
|
o.insertRule(_, _.startsWith("@import") ? a += 1 : o.cssRules.length);
|
|
6032
6029
|
} catch (h) {
|
|
@@ -6043,7 +6040,7 @@ async function L1(e, t) {
|
|
|
6043
6040
|
});
|
|
6044
6041
|
} catch (i) {
|
|
6045
6042
|
const r = e.find((a) => a.href == null) || document.styleSheets[0];
|
|
6046
|
-
o.href != null && l.push(
|
|
6043
|
+
o.href != null && l.push(fi(o.href).then((a) => mi(a, t)).then((a) => pi(a).forEach((s) => {
|
|
6047
6044
|
r.insertRule(s, r.cssRules.length);
|
|
6048
6045
|
})).catch((a) => {
|
|
6049
6046
|
console.error("Error loading remote stylesheet", a);
|
|
@@ -6245,8 +6242,8 @@ const R1 = {
|
|
|
6245
6242
|
U.SHOW_CONDITION
|
|
6246
6243
|
],
|
|
6247
6244
|
setup(e, { emit: t }) {
|
|
6248
|
-
const n = e, l = te(!1), o = te(), { getNodes: i, onNodeDrag: r, onNodeDragStart: a, onNodeDragStop: s, fitView: c, setElements: m, vueFlowRef: _ } =
|
|
6249
|
-
|
|
6245
|
+
const n = e, l = te(!1), o = te(), { getNodes: i, onNodeDrag: r, onNodeDragStart: a, onNodeDragStop: s, fitView: c, setElements: m, vueFlowRef: _ } = Ti(n.id), h = te({}), L = te([]), C = te(/* @__PURE__ */ new Set()), k = te([]), { capture: y } = $1();
|
|
6246
|
+
Sl(sl, G(() => n.execution)), Sl(uo, G(() => n.subflowsExecutions));
|
|
6250
6247
|
const p = t;
|
|
6251
6248
|
Mt(() => {
|
|
6252
6249
|
E();
|
|
@@ -6258,19 +6255,19 @@ const R1 = {
|
|
|
6258
6255
|
const E = () => {
|
|
6259
6256
|
Xo(n.id), dn(() => {
|
|
6260
6257
|
p("loading", !0);
|
|
6261
|
-
const B =
|
|
6262
|
-
|
|
6258
|
+
const B = C.value;
|
|
6259
|
+
C.value = /* @__PURE__ */ new Set(), L.value = [], h.value = {}, B.forEach((Z) => X(Cl + Z, !1, !1));
|
|
6263
6260
|
const $ = Zo(
|
|
6264
6261
|
n.id,
|
|
6265
6262
|
n.flowId,
|
|
6266
6263
|
n.namespace,
|
|
6267
6264
|
n.flowGraph,
|
|
6268
6265
|
n.source,
|
|
6269
|
-
|
|
6266
|
+
L.value,
|
|
6270
6267
|
n.isHorizontal,
|
|
6271
6268
|
h.value,
|
|
6272
|
-
|
|
6273
|
-
|
|
6269
|
+
C.value,
|
|
6270
|
+
k.value,
|
|
6274
6271
|
n.isReadOnly,
|
|
6275
6272
|
n.isAllowedEdit,
|
|
6276
6273
|
n.enableSubflowInteraction
|
|
@@ -6281,7 +6278,7 @@ const R1 = {
|
|
|
6281
6278
|
l.value || Jo(n.id, B.uid).forEach(($) => {
|
|
6282
6279
|
$?.type === "task" && ($.style = { ...$.style, outline: "0.5px solid " + Ve("--bs-gray-900") }, $.class = "rounded-3");
|
|
6283
6280
|
});
|
|
6284
|
-
},
|
|
6281
|
+
}, S = () => {
|
|
6285
6282
|
R();
|
|
6286
6283
|
}, R = () => {
|
|
6287
6284
|
i.value.filter((B) => B.type === "task" || B.type === "trigger").forEach((B) => {
|
|
@@ -6292,7 +6289,7 @@ const R1 = {
|
|
|
6292
6289
|
l.value = !0, R(), B.node.style = { ...B.node.style, zIndex: 1976 }, o.value = B.node.position;
|
|
6293
6290
|
}), s((B) => {
|
|
6294
6291
|
if (l.value = !1, B.intersections && T(B.intersections, B.node) === null) {
|
|
6295
|
-
const $ = B.node, Z = B.intersections.find((
|
|
6292
|
+
const $ = B.node, Z = B.intersections.find((W) => W.type === "task");
|
|
6296
6293
|
if (Z)
|
|
6297
6294
|
try {
|
|
6298
6295
|
n.source && p("swapped-task", {
|
|
@@ -6304,11 +6301,11 @@ const R1 = {
|
|
|
6304
6301
|
}),
|
|
6305
6302
|
swappedTasks: [$.id, Z.id]
|
|
6306
6303
|
});
|
|
6307
|
-
} catch (
|
|
6304
|
+
} catch (W) {
|
|
6308
6305
|
p("message", {
|
|
6309
6306
|
variant: "error",
|
|
6310
6307
|
title: "cannot swap tasks",
|
|
6311
|
-
message: `${
|
|
6308
|
+
message: `${W.message}, ${W.messageOptions}`
|
|
6312
6309
|
}), $.position = o.value;
|
|
6313
6310
|
}
|
|
6314
6311
|
else
|
|
@@ -6326,11 +6323,11 @@ const R1 = {
|
|
|
6326
6323
|
}), B.node.style = { ...B.node.style, outline: "0.5px solid " + Ve("--bs-primary") }, B.node.class = "rounded-3");
|
|
6327
6324
|
});
|
|
6328
6325
|
const T = (B, $) => {
|
|
6329
|
-
const Z = B.filter((
|
|
6326
|
+
const Z = B.filter((W) => W.type === "task").map((W) => Re.afterLastDot(W.id));
|
|
6330
6327
|
if (Z.length > 1)
|
|
6331
6328
|
return "toomuchtaskerror";
|
|
6332
6329
|
try {
|
|
6333
|
-
if (Z.length === 1 && n.source &&
|
|
6330
|
+
if (Z.length === 1 && n.source && Ci({
|
|
6334
6331
|
source: n.source,
|
|
6335
6332
|
sections: ["tasks", "triggers"],
|
|
6336
6333
|
key1: Re.afterLastDot(Z[0]) ?? "",
|
|
@@ -6341,16 +6338,16 @@ const R1 = {
|
|
|
6341
6338
|
} catch {
|
|
6342
6339
|
return "parentchildrenerror";
|
|
6343
6340
|
}
|
|
6344
|
-
return B.filter((
|
|
6341
|
+
return B.filter((W) => W.type === "trigger").length > 0 ? "triggererror" : null;
|
|
6345
6342
|
}, X = (B, $, Z = !1) => {
|
|
6346
|
-
const
|
|
6347
|
-
|
|
6343
|
+
const W = n.flowGraph.clusters.find((Se) => Se.cluster.uid.endsWith(B)), je = B.replace(Cl, "");
|
|
6344
|
+
C.value.add(je), L.value = L.value.concat(W.nodes.filter((Se) => Se !== je || Z)), L.value = L.value.concat([W.cluster.uid]), h.value = {
|
|
6348
6345
|
...h.value,
|
|
6349
|
-
[
|
|
6350
|
-
[
|
|
6351
|
-
[
|
|
6346
|
+
[W.cluster.uid]: je,
|
|
6347
|
+
[W.start]: je,
|
|
6348
|
+
[W.end]: je
|
|
6352
6349
|
};
|
|
6353
|
-
for (let Se of
|
|
6350
|
+
for (let Se of W.nodes)
|
|
6354
6351
|
n.flowGraph.clusters.map((it) => it.cluster.uid).includes(Se) && X(Se, !1, !0);
|
|
6355
6352
|
$ && E();
|
|
6356
6353
|
}, Q = (B) => {
|
|
@@ -6364,14 +6361,14 @@ const R1 = {
|
|
|
6364
6361
|
p("expand-subflow", [...n.expandedSubflows, B.id]);
|
|
6365
6362
|
return;
|
|
6366
6363
|
}
|
|
6367
|
-
h.value = {},
|
|
6364
|
+
h.value = {}, L.value = [], k.value = [], C.value.delete(B.id), C.value.forEach((Z) => X(Z, !1, !1)), E();
|
|
6368
6365
|
}, pe = document.getElementsByTagName("html")[0].className.indexOf("dark") >= 0, Te = te(!0), ue = te(!1), et = () => ue.value = !ue.value;
|
|
6369
6366
|
function gt(B) {
|
|
6370
6367
|
if (!_.value) {
|
|
6371
6368
|
console.warn("Flow not found");
|
|
6372
6369
|
return;
|
|
6373
6370
|
}
|
|
6374
|
-
Te.value = !1,
|
|
6371
|
+
Te.value = !1, y(_.value, { type: B, shouldDownload: !0 }).then(() => Te.value = !0).finally(() => ue.value = !1);
|
|
6375
6372
|
}
|
|
6376
6373
|
return (B, $) => (u(), q(D(Pr), {
|
|
6377
6374
|
id: e.id,
|
|
@@ -6382,79 +6379,85 @@ const R1 = {
|
|
|
6382
6379
|
"elevate-nodes-on-select": !1,
|
|
6383
6380
|
"elevate-edges-on-select": !1
|
|
6384
6381
|
}, {
|
|
6385
|
-
"node-cluster":
|
|
6386
|
-
|
|
6387
|
-
onCollapse: $[0] || ($[0] = (
|
|
6382
|
+
"node-cluster": z((Z) => [
|
|
6383
|
+
M(od, K(Z, {
|
|
6384
|
+
onCollapse: $[0] || ($[0] = (W) => X(W, !0))
|
|
6388
6385
|
}), null, 16)
|
|
6389
6386
|
]),
|
|
6390
|
-
"node-dot":
|
|
6391
|
-
|
|
6387
|
+
"node-dot": z((Z) => [
|
|
6388
|
+
M(pd, Lr(Sr(Z)), null, 16)
|
|
6392
6389
|
]),
|
|
6393
|
-
"node-task":
|
|
6394
|
-
|
|
6390
|
+
"node-task": z((Z) => [
|
|
6391
|
+
M(um, K(Z, {
|
|
6395
6392
|
icons: e.icons,
|
|
6396
6393
|
"icon-component": e.iconComponent,
|
|
6397
6394
|
"playground-enabled": e.playgroundEnabled,
|
|
6398
6395
|
"playground-ready-to-start": e.playgroundReadyToStart,
|
|
6399
|
-
onEdit: $[1] || ($[1] = (
|
|
6400
|
-
onDelete: $[2] || ($[2] = (
|
|
6401
|
-
onRunTask: $[3] || ($[3] = (
|
|
6402
|
-
onExpand: $[4] || ($[4] = (
|
|
6403
|
-
onOpenLink: $[5] || ($[5] = (
|
|
6404
|
-
onShowLogs: $[6] || ($[6] = (
|
|
6405
|
-
onShowDescription: $[7] || ($[7] = (
|
|
6406
|
-
onShowCondition: $[8] || ($[8] = (
|
|
6407
|
-
onMouseover: $[9] || ($[9] = (
|
|
6408
|
-
onMouseleave: $[10] || ($[10] = (
|
|
6409
|
-
onAddError: $[11] || ($[11] = (
|
|
6396
|
+
onEdit: $[1] || ($[1] = (W) => p(D(U).EDIT, W)),
|
|
6397
|
+
onDelete: $[2] || ($[2] = (W) => p(D(U).DELETE, W)),
|
|
6398
|
+
onRunTask: $[3] || ($[3] = (W) => p(D(U).RUN_TASK, W)),
|
|
6399
|
+
onExpand: $[4] || ($[4] = (W) => Q(W)),
|
|
6400
|
+
onOpenLink: $[5] || ($[5] = (W) => p(D(U).OPEN_LINK, W)),
|
|
6401
|
+
onShowLogs: $[6] || ($[6] = (W) => p(D(U).SHOW_LOGS, W)),
|
|
6402
|
+
onShowDescription: $[7] || ($[7] = (W) => p(D(U).SHOW_DESCRIPTION, W)),
|
|
6403
|
+
onShowCondition: $[8] || ($[8] = (W) => p(D(U).SHOW_CONDITION, W)),
|
|
6404
|
+
onMouseover: $[9] || ($[9] = (W) => A(W)),
|
|
6405
|
+
onMouseleave: $[10] || ($[10] = (W) => S()),
|
|
6406
|
+
onAddError: $[11] || ($[11] = (W) => p("on-add-flowable-error", W)),
|
|
6410
6407
|
"enable-subflow-interaction": e.enableSubflowInteraction
|
|
6411
6408
|
}), null, 16, ["icons", "icon-component", "playground-enabled", "playground-ready-to-start", "enable-subflow-interaction"])
|
|
6412
6409
|
]),
|
|
6413
|
-
"node-
|
|
6414
|
-
|
|
6410
|
+
"node-custom": z((Z) => [
|
|
6411
|
+
M(al, K(Z, {
|
|
6412
|
+
icons: e.icons,
|
|
6413
|
+
"icon-component": e.iconComponent
|
|
6414
|
+
}), null, 16, ["icons", "icon-component"])
|
|
6415
|
+
]),
|
|
6416
|
+
"node-trigger": z((Z) => [
|
|
6417
|
+
M(dm, K(Z, {
|
|
6415
6418
|
icons: e.icons,
|
|
6416
6419
|
"icon-component": e.iconComponent,
|
|
6417
6420
|
"is-read-only": e.isReadOnly,
|
|
6418
6421
|
"is-allowed-edit": e.isAllowedEdit,
|
|
6419
|
-
onDelete: $[12] || ($[12] = (
|
|
6420
|
-
onEdit: $[13] || ($[13] = (
|
|
6421
|
-
onShowDescription: $[14] || ($[14] = (
|
|
6422
|
+
onDelete: $[12] || ($[12] = (W) => p(D(U).DELETE, W)),
|
|
6423
|
+
onEdit: $[13] || ($[13] = (W) => p(D(U).EDIT, W)),
|
|
6424
|
+
onShowDescription: $[14] || ($[14] = (W) => p(D(U).SHOW_DESCRIPTION, W))
|
|
6422
6425
|
}), null, 16, ["icons", "icon-component", "is-read-only", "is-allowed-edit"])
|
|
6423
6426
|
]),
|
|
6424
|
-
"node-collapsedcluster":
|
|
6425
|
-
|
|
6426
|
-
onExpand: $[15] || ($[15] = (
|
|
6427
|
+
"node-collapsedcluster": z((Z) => [
|
|
6428
|
+
M(Lm, K(Z, {
|
|
6429
|
+
onExpand: $[15] || ($[15] = (W) => Q(W))
|
|
6427
6430
|
}), null, 16)
|
|
6428
6431
|
]),
|
|
6429
|
-
"edge-edge":
|
|
6430
|
-
|
|
6432
|
+
"edge-edge": z((Z) => [
|
|
6433
|
+
M(Nd, K(Z, {
|
|
6431
6434
|
"yaml-source": e.source,
|
|
6432
|
-
onAddTask: $[16] || ($[16] = (
|
|
6435
|
+
onAddTask: $[16] || ($[16] = (W) => p(D(U).ADD_TASK, W)),
|
|
6433
6436
|
"is-read-only": e.isReadOnly,
|
|
6434
6437
|
"is-allowed-edit": e.isAllowedEdit
|
|
6435
6438
|
}), null, 16, ["yaml-source", "is-read-only", "is-allowed-edit"])
|
|
6436
6439
|
]),
|
|
6437
|
-
default:
|
|
6438
|
-
|
|
6440
|
+
default: z(() => [
|
|
6441
|
+
M(D(Yc), {
|
|
6439
6442
|
"pattern-color": pe ? D(Ve)("--bs-grey-500") : D(Ve)("--bs-grey-300")
|
|
6440
6443
|
}, null, 8, ["pattern-color"]),
|
|
6441
6444
|
Te.value ? (u(), q(D(Mr), {
|
|
6442
6445
|
key: 0,
|
|
6443
6446
|
"show-interactive": !1
|
|
6444
6447
|
}, {
|
|
6445
|
-
default:
|
|
6446
|
-
e.toggleOrientationButton ? (u(), q(D(
|
|
6448
|
+
default: z(() => [
|
|
6449
|
+
e.toggleOrientationButton ? (u(), q(D(Nl), {
|
|
6447
6450
|
key: 0,
|
|
6448
6451
|
onClick: $[17] || ($[17] = (Z) => p("toggle-orientation", Z))
|
|
6449
6452
|
}, {
|
|
6450
|
-
default:
|
|
6453
|
+
default: z(() => [
|
|
6451
6454
|
(u(), q(mt(e.isHorizontal ? Dm : Tm)))
|
|
6452
6455
|
]),
|
|
6453
6456
|
_: 1
|
|
6454
|
-
})) :
|
|
6455
|
-
|
|
6456
|
-
default:
|
|
6457
|
-
|
|
6457
|
+
})) : w("", !0),
|
|
6458
|
+
M(D(Nl), { onClick: et }, {
|
|
6459
|
+
default: z(() => [
|
|
6460
|
+
M(Um)
|
|
6458
6461
|
]),
|
|
6459
6462
|
_: 1
|
|
6460
6463
|
}),
|
|
@@ -6467,15 +6470,15 @@ const R1 = {
|
|
|
6467
6470
|
onClick: $[19] || ($[19] = (Z) => gt("png")),
|
|
6468
6471
|
class: "item"
|
|
6469
6472
|
}, " Export as .PNG ")
|
|
6470
|
-
])) :
|
|
6473
|
+
])) : w("", !0)
|
|
6471
6474
|
]),
|
|
6472
6475
|
_: 1
|
|
6473
|
-
})) :
|
|
6476
|
+
})) : w("", !0)
|
|
6474
6477
|
]),
|
|
6475
6478
|
_: 1
|
|
6476
6479
|
}, 8, ["id", "default-marker-color"]));
|
|
6477
6480
|
}
|
|
6478
|
-
}), A_ = /* @__PURE__ */ H(P1, [["__scopeId", "data-v-
|
|
6481
|
+
}), A_ = /* @__PURE__ */ H(P1, [["__scopeId", "data-v-ccfc7443"]]), M1 = {
|
|
6479
6482
|
name: "ContentCopyIcon",
|
|
6480
6483
|
emits: ["click"],
|
|
6481
6484
|
props: {
|
|
@@ -6508,7 +6511,7 @@ function H1(e, t, n, l, o, i) {
|
|
|
6508
6511
|
viewBox: "0 0 24 24"
|
|
6509
6512
|
}, [
|
|
6510
6513
|
v("path", U1, [
|
|
6511
|
-
n.title ? (u(), d("title", F1,
|
|
6514
|
+
n.title ? (u(), d("title", F1, V(n.title), 1)) : w("", !0)
|
|
6512
6515
|
])
|
|
6513
6516
|
], 8, x1))
|
|
6514
6517
|
], 16, V1);
|
|
@@ -6550,9 +6553,9 @@ const B1 = /* @__PURE__ */ H(M1, [["render", H1]]), z1 = {
|
|
|
6550
6553
|
return (_, h) => (u(), d("div", {
|
|
6551
6554
|
class: "code-block",
|
|
6552
6555
|
onMouseover: c,
|
|
6553
|
-
onMouseleave: h[0] || (h[0] = (
|
|
6556
|
+
onMouseleave: h[0] || (h[0] = (L) => l.value = !1)
|
|
6554
6557
|
}, [
|
|
6555
|
-
_.language && !l.value ? (u(), d("div", z1,
|
|
6558
|
+
_.language && !l.value ? (u(), d("div", z1, V(_.language), 1)) : w("", !0),
|
|
6556
6559
|
l.value ? (u(), d(Ee, { key: 1 }, [
|
|
6557
6560
|
v("button", {
|
|
6558
6561
|
ref_key: "copyButton",
|
|
@@ -6573,12 +6576,12 @@ const B1 = /* @__PURE__ */ H(M1, [["render", H1]]), z1 = {
|
|
|
6573
6576
|
id: "arrow",
|
|
6574
6577
|
"data-popper-arrow": ""
|
|
6575
6578
|
}, null, -1)
|
|
6576
|
-
])], 512)) :
|
|
6577
|
-
], 64)) :
|
|
6579
|
+
])], 512)) : w("", !0)
|
|
6580
|
+
], 64)) : w("", !0),
|
|
6578
6581
|
v("div", { innerHTML: s.value }, null, 8, G1)
|
|
6579
6582
|
], 32));
|
|
6580
6583
|
}
|
|
6581
|
-
}),
|
|
6584
|
+
}), gi = /* @__PURE__ */ H(W1, [["__scopeId", "data-v-a899f6a1"]]), j1 = {
|
|
6582
6585
|
name: "MenuRightIcon",
|
|
6583
6586
|
emits: ["click"],
|
|
6584
6587
|
props: {
|
|
@@ -6611,7 +6614,7 @@ function Z1(e, t, n, l, o, i) {
|
|
|
6611
6614
|
viewBox: "0 0 24 24"
|
|
6612
6615
|
}, [
|
|
6613
6616
|
v("path", q1, [
|
|
6614
|
-
n.title ? (u(), d("title", X1,
|
|
6617
|
+
n.title ? (u(), d("title", X1, V(n.title), 1)) : w("", !0)
|
|
6615
6618
|
])
|
|
6616
6619
|
], 8, Y1))
|
|
6617
6620
|
], 16, K1);
|
|
@@ -6649,7 +6652,7 @@ function ip(e, t, n, l, o, i) {
|
|
|
6649
6652
|
viewBox: "0 0 24 24"
|
|
6650
6653
|
}, [
|
|
6651
6654
|
v("path", np, [
|
|
6652
|
-
n.title ? (u(), d("title", lp,
|
|
6655
|
+
n.title ? (u(), d("title", lp, V(n.title), 1)) : w("", !0)
|
|
6653
6656
|
])
|
|
6654
6657
|
], 8, tp))
|
|
6655
6658
|
], 16, ep);
|
|
@@ -6674,21 +6677,21 @@ function fp(e) {
|
|
|
6674
6677
|
return (t = n?.$el) != null ? t : n;
|
|
6675
6678
|
}
|
|
6676
6679
|
const ko = ap ? window : void 0;
|
|
6677
|
-
function
|
|
6680
|
+
function hi(...e) {
|
|
6678
6681
|
let t, n, l, o;
|
|
6679
6682
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, l, o] = e, t = ko) : [t, n, l, o] = e, !t)
|
|
6680
6683
|
return cp;
|
|
6681
6684
|
Array.isArray(n) || (n = [n]), Array.isArray(l) || (l = [l]);
|
|
6682
6685
|
const i = [], r = () => {
|
|
6683
6686
|
i.forEach((m) => m()), i.length = 0;
|
|
6684
|
-
}, a = (m, _, h,
|
|
6687
|
+
}, a = (m, _, h, L) => (m.addEventListener(_, h, L), () => m.removeEventListener(_, h, L)), s = Ue(
|
|
6685
6688
|
() => [fp(t), bo(o)],
|
|
6686
6689
|
([m, _]) => {
|
|
6687
6690
|
if (r(), !m)
|
|
6688
6691
|
return;
|
|
6689
6692
|
const h = up(_) ? { ..._ } : _;
|
|
6690
6693
|
i.push(
|
|
6691
|
-
...n.flatMap((
|
|
6694
|
+
...n.flatMap((L) => l.map((C) => a(m, L, C, h)))
|
|
6692
6695
|
);
|
|
6693
6696
|
},
|
|
6694
6697
|
{ immediate: !0, flush: "post" }
|
|
@@ -6697,7 +6700,7 @@ function gi(...e) {
|
|
|
6697
6700
|
};
|
|
6698
6701
|
return rp(c), c;
|
|
6699
6702
|
}
|
|
6700
|
-
const
|
|
6703
|
+
const _i = [
|
|
6701
6704
|
"hash",
|
|
6702
6705
|
"host",
|
|
6703
6706
|
"hostname",
|
|
@@ -6709,7 +6712,7 @@ const hi = [
|
|
|
6709
6712
|
];
|
|
6710
6713
|
function mp(e = {}) {
|
|
6711
6714
|
const { window: t = ko } = e, n = Object.fromEntries(
|
|
6712
|
-
|
|
6715
|
+
_i.map((i) => [i, te()])
|
|
6713
6716
|
);
|
|
6714
6717
|
for (const [i, r] of dp(n))
|
|
6715
6718
|
Ue(r, (a) => {
|
|
@@ -6718,9 +6721,9 @@ function mp(e = {}) {
|
|
|
6718
6721
|
const l = (i) => {
|
|
6719
6722
|
var r;
|
|
6720
6723
|
const { state: a, length: s } = t?.history || {}, { origin: c } = t?.location || {};
|
|
6721
|
-
for (const m of
|
|
6724
|
+
for (const m of _i)
|
|
6722
6725
|
n[m].value = (r = t?.location) == null ? void 0 : r[m];
|
|
6723
|
-
return
|
|
6726
|
+
return wi({
|
|
6724
6727
|
trigger: i,
|
|
6725
6728
|
state: a,
|
|
6726
6729
|
length: s,
|
|
@@ -6728,7 +6731,7 @@ function mp(e = {}) {
|
|
|
6728
6731
|
...n
|
|
6729
6732
|
});
|
|
6730
6733
|
}, o = te(l("load"));
|
|
6731
|
-
return t && (
|
|
6734
|
+
return t && (hi(t, "popstate", () => o.value = l("popstate"), { passive: !0 }), hi(t, "hashchange", () => o.value = l("hashchange"), { passive: !0 })), o;
|
|
6732
6735
|
}
|
|
6733
6736
|
const pp = ["id", "open"], gp = { class: "d-flex gap-2 align-items-center" }, hp = {
|
|
6734
6737
|
key: 0,
|
|
@@ -6771,13 +6774,13 @@ const pp = ["id", "open"], gp = { class: "d-flex gap-2 align-items-center" }, hp
|
|
|
6771
6774
|
c.arrow ? (u(), q(mt(l.value ? J1 : op), {
|
|
6772
6775
|
key: 0,
|
|
6773
6776
|
class: "arrow"
|
|
6774
|
-
})) :
|
|
6775
|
-
Ze(" " +
|
|
6777
|
+
})) : w("", !0),
|
|
6778
|
+
Ze(" " + V(c.clickableText) + " ", 1),
|
|
6776
6779
|
ae(c.$slots, "additionalButtonText", {}, void 0, !0)
|
|
6777
6780
|
]),
|
|
6778
6781
|
c.$slots.buttonRight ? (u(), d("span", hp, [
|
|
6779
6782
|
ae(c.$slots, "buttonRight", { collapsed: l.value }, void 0, !0)
|
|
6780
|
-
])) :
|
|
6783
|
+
])) : w("", !0)
|
|
6781
6784
|
], 2),
|
|
6782
6785
|
c.$slots.content ? (u(), d("div", {
|
|
6783
6786
|
key: 0,
|
|
@@ -6786,7 +6789,7 @@ const pp = ["id", "open"], gp = { class: "d-flex gap-2 align-items-center" }, hp
|
|
|
6786
6789
|
v("div", null, [
|
|
6787
6790
|
ae(c.$slots, "content", {}, void 0, !0)
|
|
6788
6791
|
])
|
|
6789
|
-
], 8, _p)) :
|
|
6792
|
+
], 8, _p)) : w("", !0)
|
|
6790
6793
|
], 8, pp));
|
|
6791
6794
|
}
|
|
6792
6795
|
}), an = /* @__PURE__ */ H(yp, [["__scopeId", "data-v-4b935a77"]]);
|
|
@@ -6861,7 +6864,7 @@ function wp(e, t, n, l, o, i) {
|
|
|
6861
6864
|
viewBox: "0 0 24 24"
|
|
6862
6865
|
}, [
|
|
6863
6866
|
v("path", Lp, [
|
|
6864
|
-
n.title ? (u(), d("title", Sp,
|
|
6867
|
+
n.title ? (u(), d("title", Sp, V(n.title), 1)) : w("", !0)
|
|
6865
6868
|
])
|
|
6866
6869
|
], 8, kp))
|
|
6867
6870
|
], 16, bp);
|
|
@@ -6899,7 +6902,7 @@ function $p(e, t, n, l, o, i) {
|
|
|
6899
6902
|
viewBox: "0 0 24 24"
|
|
6900
6903
|
}, [
|
|
6901
6904
|
v("path", Op, [
|
|
6902
|
-
n.title ? (u(), d("title", Dp,
|
|
6905
|
+
n.title ? (u(), d("title", Dp, V(n.title), 1)) : w("", !0)
|
|
6903
6906
|
])
|
|
6904
6907
|
], 8, Ip))
|
|
6905
6908
|
], 16, Ap);
|
|
@@ -6937,7 +6940,7 @@ function Up(e, t, n, l, o, i) {
|
|
|
6937
6940
|
viewBox: "0 0 24 24"
|
|
6938
6941
|
}, [
|
|
6939
6942
|
v("path", Vp, [
|
|
6940
|
-
n.title ? (u(), d("title", xp,
|
|
6943
|
+
n.title ? (u(), d("title", xp, V(n.title), 1)) : w("", !0)
|
|
6941
6944
|
])
|
|
6942
6945
|
], 8, Mp))
|
|
6943
6946
|
], 16, Pp);
|
|
@@ -6956,7 +6959,7 @@ const Fp = /* @__PURE__ */ H(Rp, [["render", Up]]), Hp = { class: "me-3" }, Bp =
|
|
|
6956
6959
|
case "info":
|
|
6957
6960
|
return Qt;
|
|
6958
6961
|
case "warning":
|
|
6959
|
-
return
|
|
6962
|
+
return dl;
|
|
6960
6963
|
case "danger":
|
|
6961
6964
|
return Pn;
|
|
6962
6965
|
default:
|
|
@@ -6991,92 +6994,92 @@ const Fp = /* @__PURE__ */ H(Rp, [["render", Up]]), Hp = { class: "me-3" }, Bp =
|
|
|
6991
6994
|
n.value.startsWith("#") ? (u(), d("a", {
|
|
6992
6995
|
key: 0,
|
|
6993
6996
|
href: n.value,
|
|
6994
|
-
onClick: r[0] || (r[0] =
|
|
6997
|
+
onClick: r[0] || (r[0] = Ni(() => {
|
|
6995
6998
|
}, ["stop"]))
|
|
6996
6999
|
}, [
|
|
6997
7000
|
v("button", Yp, [
|
|
6998
|
-
v("span", qp,
|
|
6999
|
-
|
|
7001
|
+
v("span", qp, V(D(Lo)(n.value)), 1),
|
|
7002
|
+
M(wo)
|
|
7000
7003
|
])
|
|
7001
|
-
], 8, Kp)) : (u(), d("span", Xp,
|
|
7002
|
-
])) :
|
|
7004
|
+
], 8, Kp)) : (u(), d("span", Xp, V(n.value), 1))
|
|
7005
|
+
])) : w("", !0),
|
|
7003
7006
|
i.property.default !== void 0 ? (u(), d("div", Zp, [
|
|
7004
7007
|
r[2] || (r[2] = v("span", null, " Default ", -1)),
|
|
7005
|
-
v("code", Jp,
|
|
7006
|
-
])) :
|
|
7008
|
+
v("code", Jp, V(i.property.default), 1)
|
|
7009
|
+
])) : w("", !0),
|
|
7007
7010
|
i.property.pattern !== void 0 ? (u(), d("div", Qp, [
|
|
7008
7011
|
r[3] || (r[3] = v("span", null, " Validation RegExp ", -1)),
|
|
7009
|
-
v("code", eg,
|
|
7010
|
-
])) :
|
|
7012
|
+
v("code", eg, V(i.property.pattern), 1)
|
|
7013
|
+
])) : w("", !0),
|
|
7011
7014
|
i.property.unit !== void 0 && i.property.unit.trim().length > 0 ? (u(), d("div", tg, [
|
|
7012
7015
|
r[4] || (r[4] = v("span", null, " Unit ", -1)),
|
|
7013
|
-
v("code", ng,
|
|
7014
|
-
])) :
|
|
7016
|
+
v("code", ng, V(i.property.unit), 1)
|
|
7017
|
+
])) : w("", !0),
|
|
7015
7018
|
i.property.minLength !== void 0 ? (u(), d("div", lg, [
|
|
7016
7019
|
r[5] || (r[5] = v("span", null, " Min length ", -1)),
|
|
7017
|
-
v("code", ig,
|
|
7018
|
-
])) :
|
|
7020
|
+
v("code", ig, V(i.property.minLength), 1)
|
|
7021
|
+
])) : w("", !0),
|
|
7019
7022
|
i.property.maxLength !== void 0 ? (u(), d("div", og, [
|
|
7020
7023
|
r[6] || (r[6] = v("span", null, " Max length ", -1)),
|
|
7021
|
-
v("code", rg,
|
|
7022
|
-
])) :
|
|
7024
|
+
v("code", rg, V(i.property.maxLength), 1)
|
|
7025
|
+
])) : w("", !0),
|
|
7023
7026
|
i.property.minItems !== void 0 ? (u(), d("div", ag, [
|
|
7024
7027
|
r[7] || (r[7] = v("span", null, " Min items ", -1)),
|
|
7025
|
-
v("code", sg,
|
|
7026
|
-
])) :
|
|
7028
|
+
v("code", sg, V(i.property.minItems), 1)
|
|
7029
|
+
])) : w("", !0),
|
|
7027
7030
|
i.property.maxItems !== void 0 ? (u(), d("div", ug, [
|
|
7028
7031
|
r[8] || (r[8] = v("span", null, " Max items ", -1)),
|
|
7029
|
-
v("code", cg,
|
|
7030
|
-
])) :
|
|
7032
|
+
v("code", cg, V(i.property.maxItems), 1)
|
|
7033
|
+
])) : w("", !0),
|
|
7031
7034
|
i.property.minimum !== void 0 ? (u(), d("div", dg, [
|
|
7032
7035
|
r[9] || (r[9] = v("span", null, " Minimum ", -1)),
|
|
7033
|
-
v("code", fg, " >= " +
|
|
7034
|
-
])) :
|
|
7036
|
+
v("code", fg, " >= " + V(i.property.minimum), 1)
|
|
7037
|
+
])) : w("", !0),
|
|
7035
7038
|
i.property.exclusiveMinimum !== void 0 ? (u(), d("div", mg, [
|
|
7036
7039
|
r[10] || (r[10] = v("span", null, " Minimum ", -1)),
|
|
7037
|
-
v("code", pg, " > " +
|
|
7038
|
-
])) :
|
|
7040
|
+
v("code", pg, " > " + V(i.property.minimum), 1)
|
|
7041
|
+
])) : w("", !0),
|
|
7039
7042
|
i.property.maximum !== void 0 ? (u(), d("div", gg, [
|
|
7040
7043
|
r[11] || (r[11] = v("span", null, " Maximum ", -1)),
|
|
7041
|
-
v("code", hg, " <= " +
|
|
7042
|
-
])) :
|
|
7044
|
+
v("code", hg, " <= " + V(i.property.maximum), 1)
|
|
7045
|
+
])) : w("", !0),
|
|
7043
7046
|
i.property.exclusiveMaximum !== void 0 ? (u(), d("div", _g, [
|
|
7044
7047
|
r[12] || (r[12] = v("span", null, " Maximum ", -1)),
|
|
7045
|
-
v("code", yg, " < " +
|
|
7046
|
-
])) :
|
|
7048
|
+
v("code", yg, " < " + V(i.property.maximum), 1)
|
|
7049
|
+
])) : w("", !0),
|
|
7047
7050
|
i.property.format !== void 0 ? (u(), d("div", vg, [
|
|
7048
7051
|
r[13] || (r[13] = v("span", null, " Format ", -1)),
|
|
7049
|
-
v("code", Eg,
|
|
7050
|
-
])) :
|
|
7052
|
+
v("code", Eg, V(i.property.format), 1)
|
|
7053
|
+
])) : w("", !0),
|
|
7051
7054
|
l.value !== void 0 ? (u(), d("div", Cg, [
|
|
7052
7055
|
r[14] || (r[14] = v("span", null, " Possible Values ", -1)),
|
|
7053
7056
|
v("div", bg, [
|
|
7054
7057
|
(u(!0), d(Ee, null, Xe(l.value, (a, s) => (u(), d("code", {
|
|
7055
7058
|
class: "border rounded px-2 py-1",
|
|
7056
7059
|
key: s
|
|
7057
|
-
},
|
|
7060
|
+
}, V(a), 1))), 128))
|
|
7058
7061
|
])
|
|
7059
|
-
])) :
|
|
7062
|
+
])) : w("", !0),
|
|
7060
7063
|
i.property.title !== void 0 || i.property.description !== void 0 ? (u(), d("div", kg, [
|
|
7061
7064
|
v("div", Lg, [
|
|
7062
7065
|
i.property.title !== void 0 ? ae(i.$slots, "markdown", {
|
|
7063
7066
|
key: 0,
|
|
7064
7067
|
content: o(i.property.title)
|
|
7065
|
-
}, void 0, !0) :
|
|
7068
|
+
}, void 0, !0) : w("", !0),
|
|
7066
7069
|
i.property.description !== void 0 ? ae(i.$slots, "markdown", {
|
|
7067
7070
|
key: 1,
|
|
7068
7071
|
content: o(i.property.description)
|
|
7069
|
-
}, void 0, !0) :
|
|
7072
|
+
}, void 0, !0) : w("", !0),
|
|
7070
7073
|
i.property.$internalStorageURI ? (u(), d("div", Sg, [
|
|
7071
|
-
|
|
7072
|
-
default:
|
|
7074
|
+
M(Gp, { type: "info" }, {
|
|
7075
|
+
default: z(() => [
|
|
7073
7076
|
ae(i.$slots, "markdown", { content: "Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`." }, void 0, !0)
|
|
7074
7077
|
]),
|
|
7075
7078
|
_: 3
|
|
7076
7079
|
})
|
|
7077
|
-
])) :
|
|
7080
|
+
])) : w("", !0)
|
|
7078
7081
|
])
|
|
7079
|
-
])) :
|
|
7082
|
+
])) : w("", !0)
|
|
7080
7083
|
]));
|
|
7081
7084
|
}
|
|
7082
7085
|
}), Ng = /* @__PURE__ */ H(wg, [["__scopeId", "data-v-721fbdf5"]]), Tg = {
|
|
@@ -7112,7 +7115,7 @@ function $g(e, t, n, l, o, i) {
|
|
|
7112
7115
|
viewBox: "0 0 24 24"
|
|
7113
7116
|
}, [
|
|
7114
7117
|
v("path", Og, [
|
|
7115
|
-
n.title ? (u(), d("title", Dg,
|
|
7118
|
+
n.title ? (u(), d("title", Dg, V(n.title), 1)) : w("", !0)
|
|
7116
7119
|
])
|
|
7117
7120
|
], 8, Ig))
|
|
7118
7121
|
], 16, Ag);
|
|
@@ -7150,7 +7153,7 @@ function Fg(e, t, n, l, o, i) {
|
|
|
7150
7153
|
viewBox: "0 0 24 24"
|
|
7151
7154
|
}, [
|
|
7152
7155
|
v("path", xg, [
|
|
7153
|
-
n.title ? (u(), d("title", Ug,
|
|
7156
|
+
n.title ? (u(), d("title", Ug, V(n.title), 1)) : w("", !0)
|
|
7154
7157
|
])
|
|
7155
7158
|
], 8, Vg))
|
|
7156
7159
|
], 16, Mg);
|
|
@@ -7188,7 +7191,7 @@ function Kg(e, t, n, l, o, i) {
|
|
|
7188
7191
|
viewBox: "0 0 24 24"
|
|
7189
7192
|
}, [
|
|
7190
7193
|
v("path", Wg, [
|
|
7191
|
-
n.title ? (u(), d("title", jg,
|
|
7194
|
+
n.title ? (u(), d("title", jg, V(n.title), 1)) : w("", !0)
|
|
7192
7195
|
])
|
|
7193
7196
|
], 8, Gg))
|
|
7194
7197
|
], 16, zg);
|
|
@@ -7233,10 +7236,10 @@ const Yg = /* @__PURE__ */ H(Bg, [["render", Kg]]), qg = { class: "border overfl
|
|
|
7233
7236
|
onExpand: s[2] || (s[2] = (c) => l("expand")),
|
|
7234
7237
|
"initially-expanded": a.initiallyExpanded || o.value,
|
|
7235
7238
|
"no-url-change": a.noUrlChange
|
|
7236
|
-
},
|
|
7239
|
+
}, Si({ _: 2 }, [
|
|
7237
7240
|
Object.keys(a.properties ?? {}).length > 0 ? {
|
|
7238
7241
|
name: "content",
|
|
7239
|
-
fn:
|
|
7242
|
+
fn: z(() => [
|
|
7240
7243
|
v("div", qg, [
|
|
7241
7244
|
(u(!0), d(Ee, null, Xe(r(a.properties), (c, m) => (u(), q(an, {
|
|
7242
7245
|
class: "property",
|
|
@@ -7247,19 +7250,19 @@ const Yg = /* @__PURE__ */ H(Bg, [["render", Kg]]), qg = { class: "border overfl
|
|
|
7247
7250
|
onExpand: s[1] || (s[1] = (_) => o.value = !0),
|
|
7248
7251
|
"no-url-change": a.noUrlChange
|
|
7249
7252
|
}, {
|
|
7250
|
-
additionalButtonText:
|
|
7253
|
+
additionalButtonText: z(() => [
|
|
7251
7254
|
c.$required ? (u(), q(oe, {
|
|
7252
7255
|
key: 0,
|
|
7253
7256
|
class: "d-flex",
|
|
7254
7257
|
title: "Required"
|
|
7255
7258
|
}, {
|
|
7256
|
-
default:
|
|
7259
|
+
default: z(() => [...s[3] || (s[3] = [
|
|
7257
7260
|
v("span", { class: "text-danger" }, " *", -1)
|
|
7258
7261
|
])]),
|
|
7259
7262
|
_: 1
|
|
7260
|
-
})) :
|
|
7263
|
+
})) : w("", !0)
|
|
7261
7264
|
]),
|
|
7262
|
-
buttonRight:
|
|
7265
|
+
buttonRight: z(({ collapsed: _ }) => [
|
|
7263
7266
|
v("span", Xg, [
|
|
7264
7267
|
v("span", Zg, [
|
|
7265
7268
|
a.showDynamic && !i(c) ? (u(), q(oe, {
|
|
@@ -7267,31 +7270,31 @@ const Yg = /* @__PURE__ */ H(Bg, [["render", Kg]]), qg = { class: "border overfl
|
|
|
7267
7270
|
class: "d-flex",
|
|
7268
7271
|
title: "Non-dynamic"
|
|
7269
7272
|
}, {
|
|
7270
|
-
default:
|
|
7271
|
-
|
|
7273
|
+
default: z(() => [
|
|
7274
|
+
M(Hg, { class: "text-info" })
|
|
7272
7275
|
]),
|
|
7273
7276
|
_: 1
|
|
7274
|
-
})) :
|
|
7277
|
+
})) : w("", !0),
|
|
7275
7278
|
c.$beta ? (u(), q(oe, {
|
|
7276
7279
|
key: 1,
|
|
7277
7280
|
class: "d-flex",
|
|
7278
7281
|
title: "Beta"
|
|
7279
7282
|
}, {
|
|
7280
|
-
default:
|
|
7281
|
-
|
|
7283
|
+
default: z(() => [
|
|
7284
|
+
M(Yg, { class: "text-warning" })
|
|
7282
7285
|
]),
|
|
7283
7286
|
_: 1
|
|
7284
|
-
})) :
|
|
7287
|
+
})) : w("", !0),
|
|
7285
7288
|
c.$deprecated ? (u(), q(oe, {
|
|
7286
7289
|
key: 2,
|
|
7287
7290
|
class: "d-flex",
|
|
7288
7291
|
title: "Deprecated"
|
|
7289
7292
|
}, {
|
|
7290
|
-
default:
|
|
7291
|
-
|
|
7293
|
+
default: z(() => [
|
|
7294
|
+
M(dl, { class: "text-warning" })
|
|
7292
7295
|
]),
|
|
7293
7296
|
_: 1
|
|
7294
|
-
})) :
|
|
7297
|
+
})) : w("", !0)
|
|
7295
7298
|
]),
|
|
7296
7299
|
v("span", Jg, [
|
|
7297
7300
|
(u(!0), d(Ee, null, Xe(D(So)(c).types, (h) => (u(), d(Ee, { key: h }, [
|
|
@@ -7299,20 +7302,20 @@ const Yg = /* @__PURE__ */ H(Bg, [["render", Kg]]), qg = { class: "border overfl
|
|
|
7299
7302
|
key: 0,
|
|
7300
7303
|
class: "d-flex fw-bold type-box rounded fs-7 px-2 py-1",
|
|
7301
7304
|
href: h,
|
|
7302
|
-
onClick: s[0] || (s[0] =
|
|
7305
|
+
onClick: s[0] || (s[0] = Ni(() => {
|
|
7303
7306
|
}, ["stop"]))
|
|
7304
7307
|
}, [
|
|
7305
|
-
v("span", eh,
|
|
7306
|
-
|
|
7307
|
-
], 8, Qg)) : (u(), d("span", th,
|
|
7308
|
+
v("span", eh, V(D(Lo)(h)), 1),
|
|
7309
|
+
M(wo)
|
|
7310
|
+
], 8, Qg)) : (u(), d("span", th, V(h), 1))
|
|
7308
7311
|
], 64))), 128)),
|
|
7309
7312
|
(u(), q(mt(_ ? Np : Rg), { class: "arrow" }))
|
|
7310
7313
|
])
|
|
7311
7314
|
])
|
|
7312
7315
|
]),
|
|
7313
|
-
content:
|
|
7314
|
-
|
|
7315
|
-
markdown:
|
|
7316
|
+
content: z(() => [
|
|
7317
|
+
M(Ng, { property: c }, {
|
|
7318
|
+
markdown: z(({ content: _ }) => [
|
|
7316
7319
|
ae(a.$slots, "markdown", { content: _ }, void 0, !0)
|
|
7317
7320
|
]),
|
|
7318
7321
|
_: 3
|
|
@@ -7352,174 +7355,174 @@ const Yg = /* @__PURE__ */ H(Bg, [["render", Kg]]), qg = { class: "border overfl
|
|
|
7352
7355
|
async setup(e) {
|
|
7353
7356
|
let t, n;
|
|
7354
7357
|
const l = e, o = te(!1), i = te(/* @__PURE__ */ new Set()), r = te(0), a = async () => {
|
|
7355
|
-
const
|
|
7356
|
-
if (!
|
|
7358
|
+
const C = window.location.hash.slice(1);
|
|
7359
|
+
if (!C || !l.schema.definitions) {
|
|
7357
7360
|
i.value.clear();
|
|
7358
7361
|
return;
|
|
7359
7362
|
}
|
|
7360
|
-
const
|
|
7361
|
-
if (
|
|
7362
|
-
o.value = !0, r.value += 1, i.value.clear(), i.value.add(
|
|
7363
|
-
let
|
|
7363
|
+
const k = C.includes("#") ? C.split("#").pop()?.split(".").pop() : C;
|
|
7364
|
+
if (k && k in l.schema.definitions) {
|
|
7365
|
+
o.value = !0, r.value += 1, i.value.clear(), i.value.add(k), await dn();
|
|
7366
|
+
let y = 0;
|
|
7364
7367
|
const p = 30, E = () => {
|
|
7365
|
-
const A = document.getElementById(
|
|
7366
|
-
A ? A.scrollIntoView({ behavior: "smooth", block: "start" }) :
|
|
7368
|
+
const A = document.getElementById(k);
|
|
7369
|
+
A ? A.scrollIntoView({ behavior: "smooth", block: "start" }) : y < p && (y++, requestAnimationFrame(E));
|
|
7367
7370
|
};
|
|
7368
7371
|
requestAnimationFrame(E);
|
|
7369
7372
|
} else
|
|
7370
7373
|
i.value.clear();
|
|
7371
7374
|
};
|
|
7372
|
-
Ue([() => l.schema, () => l.pluginType], ([
|
|
7373
|
-
(
|
|
7375
|
+
Ue([() => l.schema, () => l.pluginType], ([C, k], [y, p]) => {
|
|
7376
|
+
(C !== y || k !== p) && l.schema.definitions && a();
|
|
7374
7377
|
});
|
|
7375
|
-
const s = (
|
|
7378
|
+
const s = (C) => C?.full ? C.code : `id: "${l.pluginType.split(".").reverse()[0]?.toLowerCase()}"
|
|
7376
7379
|
type: "${l.pluginType}"
|
|
7377
|
-
`.concat(
|
|
7378
|
-
l.schema.properties?.$metrics?.map((
|
|
7380
|
+
`.concat(C.code), c = te(), m = G(() => l.schema.properties?.$examples), _ = G(() => Object.fromEntries(
|
|
7381
|
+
l.schema.properties?.$metrics?.map((C) => [C.name, { ...C, name: void 0 }])
|
|
7379
7382
|
)), {
|
|
7380
7383
|
getHighlighterCore: h
|
|
7381
|
-
} = ([t, n] =
|
|
7382
|
-
c.value = ([t, n] =
|
|
7383
|
-
const
|
|
7384
|
+
} = ([t, n] = wl(() => import("./shikiToolset-CQ31F75R.js")), t = await t, n(), t);
|
|
7385
|
+
c.value = ([t, n] = wl(() => h()), t = await t, n(), t);
|
|
7386
|
+
const L = "github-" + (l.darkMode ? "dark" : "light");
|
|
7384
7387
|
return Mt(() => {
|
|
7385
7388
|
a(), window.addEventListener("hashchange", a);
|
|
7386
|
-
}),
|
|
7389
|
+
}), ki(() => {
|
|
7387
7390
|
window.removeEventListener("hashchange", a);
|
|
7388
|
-
}), (
|
|
7391
|
+
}), (C, k) => (u(), d("div", lh, [
|
|
7389
7392
|
v("div", ih, [
|
|
7390
|
-
|
|
7393
|
+
C.schema.properties?.$beta ? (u(), d("div", oh, [...k[0] || (k[0] = [
|
|
7391
7394
|
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)
|
|
7392
|
-
])])) :
|
|
7393
|
-
|
|
7394
|
-
ae(
|
|
7395
|
-
content:
|
|
7395
|
+
])])) : w("", !0),
|
|
7396
|
+
C.schema.properties?.title ? (u(), d("div", rh, [
|
|
7397
|
+
ae(C.$slots, "markdown", {
|
|
7398
|
+
content: C.schema.properties.title.replace(/ *:(?![ /])/g, ": ")
|
|
7396
7399
|
}, void 0, !0)
|
|
7397
|
-
])) :
|
|
7398
|
-
|
|
7399
|
-
ae(
|
|
7400
|
-
content:
|
|
7400
|
+
])) : w("", !0),
|
|
7401
|
+
C.schema.properties?.description ? (u(), d("div", ah, [
|
|
7402
|
+
ae(C.$slots, "markdown", {
|
|
7403
|
+
content: C.schema.properties.description.replace(/ *:(?![ /])/g, ": ")
|
|
7401
7404
|
}, void 0, !0)
|
|
7402
|
-
])) :
|
|
7403
|
-
(u(), q(
|
|
7405
|
+
])) : w("", !0),
|
|
7406
|
+
(u(), q(gi, {
|
|
7404
7407
|
highlighter: c.value,
|
|
7405
7408
|
language: "yaml",
|
|
7406
|
-
theme:
|
|
7407
|
-
code: `type: "${
|
|
7408
|
-
key:
|
|
7409
|
+
theme: L,
|
|
7410
|
+
code: `type: "${C.pluginType}"`,
|
|
7411
|
+
key: C.pluginType
|
|
7409
7412
|
}, null, 8, ["highlighter", "code"]))
|
|
7410
7413
|
]),
|
|
7411
7414
|
(u(), d("div", {
|
|
7412
7415
|
class: "d-flex flex-column gap-3",
|
|
7413
|
-
key:
|
|
7416
|
+
key: C.pluginType
|
|
7414
7417
|
}, [
|
|
7415
7418
|
m.value ? (u(), q(an, {
|
|
7416
7419
|
key: 0,
|
|
7417
7420
|
class: "plugin-section",
|
|
7418
7421
|
"clickable-text": "Examples",
|
|
7419
7422
|
href: "examples",
|
|
7420
|
-
"no-url-change":
|
|
7423
|
+
"no-url-change": C.noUrlChange
|
|
7421
7424
|
}, {
|
|
7422
|
-
content:
|
|
7425
|
+
content: z(() => [
|
|
7423
7426
|
v("div", sh, [
|
|
7424
|
-
(u(!0), d(Ee, null, Xe(m.value, (
|
|
7425
|
-
key:
|
|
7427
|
+
(u(!0), d(Ee, null, Xe(m.value, (y, p) => (u(), d(Ee, {
|
|
7428
|
+
key: C.pluginType + "-" + p
|
|
7426
7429
|
}, [
|
|
7427
7430
|
v("div", uh, [
|
|
7428
7431
|
v("div", ch, [
|
|
7429
|
-
|
|
7432
|
+
y.title ? ae(C.$slots, "markdown", {
|
|
7430
7433
|
key: 0,
|
|
7431
|
-
content:
|
|
7432
|
-
}, void 0, !0) :
|
|
7434
|
+
content: y.title.replace(/ *:(?![ /])/g, ": ")
|
|
7435
|
+
}, void 0, !0) : w("", !0)
|
|
7433
7436
|
]),
|
|
7434
|
-
|
|
7437
|
+
y.code ? (u(), q(gi, {
|
|
7435
7438
|
key: 0,
|
|
7436
7439
|
highlighter: c.value,
|
|
7437
|
-
language:
|
|
7438
|
-
theme:
|
|
7439
|
-
code: s(
|
|
7440
|
-
}, null, 8, ["highlighter", "language", "code"])) :
|
|
7440
|
+
language: y.lang ?? "yaml",
|
|
7441
|
+
theme: L,
|
|
7442
|
+
code: s(y)
|
|
7443
|
+
}, null, 8, ["highlighter", "language", "code"])) : w("", !0)
|
|
7441
7444
|
]),
|
|
7442
|
-
p < m.value.length - 1 ? (u(), d("hr", dh)) :
|
|
7445
|
+
p < m.value.length - 1 ? (u(), d("hr", dh)) : w("", !0)
|
|
7443
7446
|
], 64))), 128))
|
|
7444
7447
|
])
|
|
7445
7448
|
]),
|
|
7446
7449
|
_: 3
|
|
7447
|
-
}, 8, ["no-url-change"])) :
|
|
7448
|
-
|
|
7450
|
+
}, 8, ["no-url-change"])) : w("", !0),
|
|
7451
|
+
C.schema.properties?.properties ? (u(), q(Yt, {
|
|
7449
7452
|
key: 1,
|
|
7450
7453
|
class: "plugin-section",
|
|
7451
|
-
properties:
|
|
7454
|
+
properties: C.schema.properties.properties,
|
|
7452
7455
|
"section-name": "Properties",
|
|
7453
7456
|
href: "properties",
|
|
7454
|
-
"initially-expanded":
|
|
7455
|
-
"force-include":
|
|
7456
|
-
"no-url-change":
|
|
7457
|
+
"initially-expanded": C.propsInitiallyExpanded,
|
|
7458
|
+
"force-include": C.forceIncludeProperties,
|
|
7459
|
+
"no-url-change": C.noUrlChange
|
|
7457
7460
|
}, {
|
|
7458
|
-
markdown:
|
|
7461
|
+
markdown: z(({ content: y }) => [
|
|
7459
7462
|
v("div", fh, [
|
|
7460
|
-
ae(
|
|
7463
|
+
ae(C.$slots, "markdown", { content: y }, void 0, !0)
|
|
7461
7464
|
])
|
|
7462
7465
|
]),
|
|
7463
7466
|
_: 3
|
|
7464
|
-
}, 8, ["properties", "initially-expanded", "force-include", "no-url-change"])) :
|
|
7465
|
-
|
|
7467
|
+
}, 8, ["properties", "initially-expanded", "force-include", "no-url-change"])) : w("", !0),
|
|
7468
|
+
C.schema.outputs?.properties && Object.keys(C.schema.outputs.properties).length > 0 ? (u(), q(Yt, {
|
|
7466
7469
|
key: 2,
|
|
7467
7470
|
class: "plugin-section",
|
|
7468
|
-
properties:
|
|
7471
|
+
properties: C.schema.outputs.properties,
|
|
7469
7472
|
"section-name": "Outputs",
|
|
7470
7473
|
href: "outputs",
|
|
7471
7474
|
"show-dynamic": !1,
|
|
7472
|
-
"no-url-change":
|
|
7475
|
+
"no-url-change": C.noUrlChange
|
|
7473
7476
|
}, {
|
|
7474
|
-
markdown:
|
|
7477
|
+
markdown: z(({ content: y }) => [
|
|
7475
7478
|
v("div", mh, [
|
|
7476
|
-
ae(
|
|
7479
|
+
ae(C.$slots, "markdown", { content: y }, void 0, !0)
|
|
7477
7480
|
])
|
|
7478
7481
|
]),
|
|
7479
7482
|
_: 3
|
|
7480
|
-
}, 8, ["properties", "no-url-change"])) :
|
|
7481
|
-
|
|
7483
|
+
}, 8, ["properties", "no-url-change"])) : w("", !0),
|
|
7484
|
+
C.schema.properties?.$metrics ? (u(), q(Yt, {
|
|
7482
7485
|
key: 3,
|
|
7483
7486
|
class: "plugin-section",
|
|
7484
7487
|
properties: _.value,
|
|
7485
7488
|
"section-name": "Metrics",
|
|
7486
7489
|
href: "metrics",
|
|
7487
7490
|
"show-dynamic": !1,
|
|
7488
|
-
"no-url-change":
|
|
7491
|
+
"no-url-change": C.noUrlChange
|
|
7489
7492
|
}, {
|
|
7490
|
-
markdown:
|
|
7493
|
+
markdown: z(({ content: y }) => [
|
|
7491
7494
|
v("div", ph, [
|
|
7492
|
-
ae(
|
|
7495
|
+
ae(C.$slots, "markdown", { content: y }, void 0, !0)
|
|
7493
7496
|
])
|
|
7494
7497
|
]),
|
|
7495
7498
|
_: 3
|
|
7496
|
-
}, 8, ["properties", "no-url-change"])) :
|
|
7497
|
-
|
|
7499
|
+
}, 8, ["properties", "no-url-change"])) : w("", !0),
|
|
7500
|
+
C.schema.definitions && Object.keys(C.schema.definitions).length > 0 ? (u(), q(an, {
|
|
7498
7501
|
class: "plugin-section",
|
|
7499
7502
|
"clickable-text": "Definitions",
|
|
7500
7503
|
href: "definitions",
|
|
7501
7504
|
"initially-expanded": o.value,
|
|
7502
|
-
key: `definitions-${
|
|
7503
|
-
"no-url-change":
|
|
7505
|
+
key: `definitions-${C.pluginType}-${r.value}`,
|
|
7506
|
+
"no-url-change": C.noUrlChange
|
|
7504
7507
|
}, {
|
|
7505
|
-
content:
|
|
7508
|
+
content: z(() => [
|
|
7506
7509
|
v("div", gh, [
|
|
7507
|
-
(u(!0), d(Ee, null, Xe(Object.entries(
|
|
7510
|
+
(u(!0), d(Ee, null, Xe(Object.entries(C.schema.definitions), ([y, p]) => (u(), q(Yt, {
|
|
7508
7511
|
properties: p.properties,
|
|
7509
|
-
"section-name": p.title ??
|
|
7510
|
-
href:
|
|
7512
|
+
"section-name": p.title ?? y.split("_")[0],
|
|
7513
|
+
href: y,
|
|
7511
7514
|
"show-dynamic": !1,
|
|
7512
|
-
"initially-expanded": i.value.has(
|
|
7513
|
-
key:
|
|
7515
|
+
"initially-expanded": i.value.has(y),
|
|
7516
|
+
key: C.pluginType + "-" + y,
|
|
7514
7517
|
class: "plugin-section nested-button-py-2",
|
|
7515
7518
|
onExpand: (E) => {
|
|
7516
|
-
o.value = !0, i.value.add(
|
|
7519
|
+
o.value = !0, i.value.add(y);
|
|
7517
7520
|
},
|
|
7518
|
-
"no-url-change":
|
|
7521
|
+
"no-url-change": C.noUrlChange
|
|
7519
7522
|
}, {
|
|
7520
|
-
markdown:
|
|
7523
|
+
markdown: z(({ content: E }) => [
|
|
7521
7524
|
v("div", hh, [
|
|
7522
|
-
ae(
|
|
7525
|
+
ae(C.$slots, "markdown", { content: E }, void 0, !0)
|
|
7523
7526
|
])
|
|
7524
7527
|
]),
|
|
7525
7528
|
_: 3
|
|
@@ -7527,7 +7530,7 @@ type: "${l.pluginType}"
|
|
|
7527
7530
|
])
|
|
7528
7531
|
]),
|
|
7529
7532
|
_: 3
|
|
7530
|
-
}, 8, ["initially-expanded", "no-url-change"])) :
|
|
7533
|
+
}, 8, ["initially-expanded", "no-url-change"])) : w("", !0)
|
|
7531
7534
|
]))
|
|
7532
7535
|
]));
|
|
7533
7536
|
}
|
|
@@ -7564,7 +7567,7 @@ function kh(e, t, n, l, o, i) {
|
|
|
7564
7567
|
viewBox: "0 0 24 24"
|
|
7565
7568
|
}, [
|
|
7566
7569
|
v("path", Ch, [
|
|
7567
|
-
n.title ? (u(), d("title", bh,
|
|
7570
|
+
n.title ? (u(), d("title", bh, V(n.title), 1)) : w("", !0)
|
|
7568
7571
|
])
|
|
7569
7572
|
], 8, Eh))
|
|
7570
7573
|
], 16, vh);
|
|
@@ -7587,11 +7590,11 @@ const Lh = /* @__PURE__ */ H(yh, [["render", kh]]), Sh = ["href"], wh = ["src",
|
|
|
7587
7590
|
src: l.iconB64Svg,
|
|
7588
7591
|
alt: `${l.text} icon`
|
|
7589
7592
|
}, null, 8, wh),
|
|
7590
|
-
Ze(
|
|
7591
|
-
|
|
7593
|
+
Ze(V(l.text) + " ", 1),
|
|
7594
|
+
M(Lh, { class: "ms-auto" })
|
|
7592
7595
|
], 8, Sh));
|
|
7593
7596
|
}
|
|
7594
|
-
}),
|
|
7597
|
+
}), yi = /* @__PURE__ */ H(Nh, [["__scopeId", "data-v-a361531e"]]), Th = { class: "d-flex flex-column gap-4" }, Ah = {
|
|
7595
7598
|
key: 1,
|
|
7596
7599
|
class: "d-flex flex-column"
|
|
7597
7600
|
}, Ih = ["id"], Oh = { class: "d-flex flex-column" }, O_ = /* @__PURE__ */ de({
|
|
@@ -7611,7 +7614,7 @@ const Lh = /* @__PURE__ */ H(yh, [["render", kh]]), Sh = ["href"], wh = ["src",
|
|
|
7611
7614
|
}, r = (m) => `${t.routePath}/${vt(m)}`, a = (m) => `${t.routePath}/${m}`;
|
|
7612
7615
|
function s(m) {
|
|
7613
7616
|
return Object.fromEntries(
|
|
7614
|
-
Object.entries(m).filter(([_, h]) => as(_, h)).map(([_, h]) => [_.replace(/[A-Z]/g, (
|
|
7617
|
+
Object.entries(m).filter(([_, h]) => as(_, h)).map(([_, h]) => [_.replace(/[A-Z]/g, (L) => ` ${L}`), h.filter(({ deprecated: L }) => !L).map(({ cls: L }) => L)])
|
|
7615
7618
|
);
|
|
7616
7619
|
}
|
|
7617
7620
|
const c = G(() => s(n.value));
|
|
@@ -7619,9 +7622,9 @@ const Lh = /* @__PURE__ */ H(yh, [["render", kh]]), Sh = ["href"], wh = ["src",
|
|
|
7619
7622
|
l.value !== void 0 ? ae(m.$slots, "markdown", {
|
|
7620
7623
|
key: 0,
|
|
7621
7624
|
content: l.value.replace(/ *:(?![ /])/g, ": ")
|
|
7622
|
-
}) :
|
|
7625
|
+
}) : w("", !0),
|
|
7623
7626
|
m.subGroup === void 0 && m.plugins.length > 1 ? (u(), d("div", Ah, [
|
|
7624
|
-
(u(!0), d(Ee, null, Xe(o.value, (h) => (u(), q(
|
|
7627
|
+
(u(!0), d(Ee, null, Xe(o.value, (h) => (u(), q(yi, {
|
|
7625
7628
|
id: `group-${D(vt)(D(At)(h))}`,
|
|
7626
7629
|
"icon-b64-svg": "data:image/svg+xml;base64," + (m.icons[h.subGroup] ?? m.icons[h.group]),
|
|
7627
7630
|
text: D(At)(h),
|
|
@@ -7629,26 +7632,26 @@ const Lh = /* @__PURE__ */ H(yh, [["render", kh]]), Sh = ["href"], wh = ["src",
|
|
|
7629
7632
|
key: D(At)(h),
|
|
7630
7633
|
"route-path": m.routePath,
|
|
7631
7634
|
class: "text-capitalize",
|
|
7632
|
-
onClick: (
|
|
7635
|
+
onClick: (L) => m.$emit("goTo", { subGroup: h })
|
|
7633
7636
|
}, null, 8, ["id", "icon-b64-svg", "text", "href", "route-path", "onClick"]))), 128))
|
|
7634
|
-
])) : (u(!0), d(Ee, { key: 2 }, Xe(c.value, (h,
|
|
7637
|
+
])) : (u(!0), d(Ee, { key: 2 }, Xe(c.value, (h, L) => (u(), d("div", {
|
|
7635
7638
|
class: "d-flex flex-column elements-section",
|
|
7636
|
-
key:
|
|
7639
|
+
key: L
|
|
7637
7640
|
}, [
|
|
7638
7641
|
v("h4", {
|
|
7639
|
-
id: `section-${D(vt)(
|
|
7642
|
+
id: `section-${D(vt)(L)}`,
|
|
7640
7643
|
class: "text-capitalize"
|
|
7641
|
-
},
|
|
7644
|
+
}, V(L), 9, Ih),
|
|
7642
7645
|
v("div", Oh, [
|
|
7643
|
-
(u(!0), d(Ee, null, Xe(h, (
|
|
7644
|
-
id: D(vt)(
|
|
7645
|
-
"icon-b64-svg": "data:image/svg+xml;base64," + (m.icons[
|
|
7646
|
-
text: i(
|
|
7647
|
-
href: a(
|
|
7648
|
-
key:
|
|
7646
|
+
(u(!0), d(Ee, null, Xe(h, (C) => (u(), q(yi, {
|
|
7647
|
+
id: D(vt)(C),
|
|
7648
|
+
"icon-b64-svg": "data:image/svg+xml;base64," + (m.icons[C] ?? m.icons[n.value.subGroup ?? n.value.group] ?? m.icons[n.value.group]),
|
|
7649
|
+
text: i(C),
|
|
7650
|
+
href: a(C),
|
|
7651
|
+
key: C,
|
|
7649
7652
|
"route-path": m.routePath,
|
|
7650
7653
|
class: "text-capitalize",
|
|
7651
|
-
onClick: (
|
|
7654
|
+
onClick: (k) => m.$emit("goTo", { element: C })
|
|
7652
7655
|
}, null, 8, ["id", "icon-b64-svg", "text", "href", "route-path", "onClick"]))), 128))
|
|
7653
7656
|
])
|
|
7654
7657
|
]))), 128))
|
|
@@ -7817,7 +7820,7 @@ const Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7817
7820
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
7818
7821
|
Object.keys(Xn)
|
|
7819
7822
|
);
|
|
7820
|
-
class
|
|
7823
|
+
class pl extends Oe {
|
|
7821
7824
|
/**
|
|
7822
7825
|
* @constructor
|
|
7823
7826
|
* @param {string} property
|
|
@@ -7833,21 +7836,21 @@ class ml extends Oe {
|
|
|
7833
7836
|
*/
|
|
7834
7837
|
constructor(t, n, l, o) {
|
|
7835
7838
|
let i = -1;
|
|
7836
|
-
if (super(t, n),
|
|
7839
|
+
if (super(t, n), vi(this, "space", o), typeof l == "number")
|
|
7837
7840
|
for (; ++i < $n.length; ) {
|
|
7838
7841
|
const r = $n[i];
|
|
7839
|
-
|
|
7842
|
+
vi(this, $n[i], (l & Xn[r]) === Xn[r]);
|
|
7840
7843
|
}
|
|
7841
7844
|
}
|
|
7842
7845
|
}
|
|
7843
|
-
|
|
7844
|
-
function
|
|
7846
|
+
pl.prototype.defined = !0;
|
|
7847
|
+
function vi(e, t, n) {
|
|
7845
7848
|
n && (e[t] = n);
|
|
7846
7849
|
}
|
|
7847
7850
|
function St(e) {
|
|
7848
7851
|
const t = {}, n = {};
|
|
7849
7852
|
for (const [l, o] of Object.entries(e.properties)) {
|
|
7850
|
-
const i = new
|
|
7853
|
+
const i = new pl(
|
|
7851
7854
|
l,
|
|
7852
7855
|
e.transform(e.attributes || {}, l),
|
|
7853
7856
|
o,
|
|
@@ -8864,7 +8867,7 @@ const Gh = St({
|
|
|
8864
8867
|
transform(e, t) {
|
|
8865
8868
|
return "xml:" + t.slice(3).toLowerCase();
|
|
8866
8869
|
}
|
|
8867
|
-
}), jh = /[A-Z]/g,
|
|
8870
|
+
}), jh = /[A-Z]/g, Ei = /-[a-z]/g, Kh = /^data[-\w.:]+$/i;
|
|
8868
8871
|
function Yh(e, t) {
|
|
8869
8872
|
const n = Yn(t);
|
|
8870
8873
|
let l = t, o = Oe;
|
|
@@ -8872,16 +8875,16 @@ function Yh(e, t) {
|
|
|
8872
8875
|
return e.property[e.normal[n]];
|
|
8873
8876
|
if (n.length > 4 && n.slice(0, 4) === "data" && Kh.test(t)) {
|
|
8874
8877
|
if (t.charAt(4) === "-") {
|
|
8875
|
-
const i = t.slice(5).replace(
|
|
8878
|
+
const i = t.slice(5).replace(Ei, Xh);
|
|
8876
8879
|
l = "data" + i.charAt(0).toUpperCase() + i.slice(1);
|
|
8877
8880
|
} else {
|
|
8878
8881
|
const i = t.slice(4);
|
|
8879
|
-
if (!
|
|
8882
|
+
if (!Ei.test(i)) {
|
|
8880
8883
|
let r = i.replace(jh, qh);
|
|
8881
8884
|
r.charAt(0) !== "-" && (r = "-" + r), t = "data" + r;
|
|
8882
8885
|
}
|
|
8883
8886
|
}
|
|
8884
|
-
o =
|
|
8887
|
+
o = pl;
|
|
8885
8888
|
}
|
|
8886
8889
|
return new o(l, t);
|
|
8887
8890
|
}
|
|
@@ -8893,7 +8896,7 @@ function Xh(e) {
|
|
|
8893
8896
|
}
|
|
8894
8897
|
const Zh = Ao([Io, Gh, $o, Ro, Po], "html");
|
|
8895
8898
|
Ao([Io, Wh, $o, Ro, Po], "svg");
|
|
8896
|
-
const
|
|
8899
|
+
const gl = [
|
|
8897
8900
|
"a",
|
|
8898
8901
|
"abbr",
|
|
8899
8902
|
"address",
|
|
@@ -9015,7 +9018,7 @@ const pl = [
|
|
|
9015
9018
|
function sn(e, t) {
|
|
9016
9019
|
return e.type === t || typeof e.type == "object" && e.type.tag === t || e.tag === t;
|
|
9017
9020
|
}
|
|
9018
|
-
function
|
|
9021
|
+
function hl(e) {
|
|
9019
9022
|
return sn(e, "text") || sn(e, Symbol.for("v-txt"));
|
|
9020
9023
|
}
|
|
9021
9024
|
function Mo(e) {
|
|
@@ -9026,7 +9029,7 @@ function un(e) {
|
|
|
9026
9029
|
return "";
|
|
9027
9030
|
if (Array.isArray(e))
|
|
9028
9031
|
return e.map(un).join("");
|
|
9029
|
-
if (
|
|
9032
|
+
if (hl(e))
|
|
9030
9033
|
return e.value || e.children || "";
|
|
9031
9034
|
const t = Mo(e);
|
|
9032
9035
|
return Array.isArray(t) ? t.map(un).filter(Boolean).join("") : "";
|
|
@@ -9038,10 +9041,10 @@ function Vo(e, t = []) {
|
|
|
9038
9041
|
return t.some((l) => l === "*" || sn(e, l)) && (n = Mo(e) || e, !Array.isArray(n) && Jh.some((l) => sn(e, l)) && (n = [n])), n;
|
|
9039
9042
|
}
|
|
9040
9043
|
function xo(e, t = []) {
|
|
9041
|
-
return e = Array.isArray(e) ? e : [e], t.length ? e.flatMap((n) => xo(Vo(n, [t[0]]), t.slice(1))).filter((n) => !(
|
|
9044
|
+
return e = Array.isArray(e) ? e : [e], t.length ? e.flatMap((n) => xo(Vo(n, [t[0]]), t.slice(1))).filter((n) => !(hl(n) && un(n).trim() === "")) : e;
|
|
9042
9045
|
}
|
|
9043
9046
|
function Uo(e, t = []) {
|
|
9044
|
-
return typeof t == "string" && (t = t.split(/[,\s]/).map((n) => n.trim()).filter(Boolean)), t.length ? xo(e, t).reduce((n, l) => (
|
|
9047
|
+
return typeof t == "string" && (t = t.split(/[,\s]/).map((n) => n.trim()).filter(Boolean)), t.length ? xo(e, t).reduce((n, l) => (hl(l) ? typeof n[n.length - 1] == "string" ? n[n.length - 1] += l.children : n.push(l.children) : n.push(l), n), []) : e;
|
|
9045
9048
|
}
|
|
9046
9049
|
function Qh(e, t) {
|
|
9047
9050
|
return t.reduce((n, l) => {
|
|
@@ -9113,9 +9116,9 @@ const Zn = "default", Fo = /^@|^v-on:/, Ho = /^:|^v-bind:/, t_ = /^v-model/, n_
|
|
|
9113
9116
|
...Tr(e.data?.mdc?.components || {}),
|
|
9114
9117
|
...e.components
|
|
9115
9118
|
})), r = G(() => {
|
|
9116
|
-
const c = (e.body?.children || []).map((m) => m.tag || m.type).filter((m) => !
|
|
9119
|
+
const c = (e.body?.children || []).map((m) => m.tag || m.type).filter((m) => !gl.includes(m));
|
|
9117
9120
|
return Array.from(new Set(c)).sort().join(".");
|
|
9118
|
-
}), a =
|
|
9121
|
+
}), a = wi({
|
|
9119
9122
|
...e.data
|
|
9120
9123
|
});
|
|
9121
9124
|
Ue(() => e.data, (c) => {
|
|
@@ -9123,7 +9126,7 @@ const Zn = "default", Fo = /^@|^v-on:/, Ho = /^:|^v-bind:/, t_ = /^v-model/, n_
|
|
|
9123
9126
|
}), await __(e.body, { tags: i.value });
|
|
9124
9127
|
function s(c, m) {
|
|
9125
9128
|
const _ = c.split(".").length - 1;
|
|
9126
|
-
return c.split(".").reduce((h,
|
|
9129
|
+
return c.split(".").reduce((h, L, C) => C == _ && h ? (h[L] = m, h[L]) : typeof h == "object" ? h[L] : void 0, a);
|
|
9127
9130
|
}
|
|
9128
9131
|
return { tags: i, contentKey: r, route: l, runtimeData: a, updateRuntimeData: s };
|
|
9129
9132
|
},
|
|
@@ -9134,11 +9137,11 @@ const Zn = "default", Fo = /^@|^v-on:/, Ho = /^:|^v-bind:/, t_ = /^v-model/, n_
|
|
|
9134
9137
|
const m = { ...o, tags: t, $route: r, runtimeData: s, updateRuntimeData: c }, _ = n !== !1 ? Jn(n || m.component?.name || m.component || "div") : void 0;
|
|
9135
9138
|
return _ ? bt(_, { ...m.component?.props, class: e.class, ...this.$attrs, key: i }, { default: h }) : h?.();
|
|
9136
9139
|
function h() {
|
|
9137
|
-
const
|
|
9138
|
-
return
|
|
9139
|
-
|
|
9140
|
+
const L = Bo(l, bt, { documentMeta: m, parentScope: m, resolveComponent: Jn });
|
|
9141
|
+
return L?.default ? a ? Uo(
|
|
9142
|
+
L.default(),
|
|
9140
9143
|
typeof a == "string" ? a.split(" ") : ["*"]
|
|
9141
|
-
) :
|
|
9144
|
+
) : L.default() : null;
|
|
9142
9145
|
}
|
|
9143
9146
|
}
|
|
9144
9147
|
});
|
|
@@ -9184,19 +9187,19 @@ function Bo(e, t, n) {
|
|
|
9184
9187
|
}, {
|
|
9185
9188
|
[Zn]: { props: {}, children: [] }
|
|
9186
9189
|
});
|
|
9187
|
-
return Object.entries(a).reduce((c, [m, { props: _, children: h }]) => (h.length && (c[m] = (
|
|
9188
|
-
const
|
|
9189
|
-
let
|
|
9190
|
-
|
|
9190
|
+
return Object.entries(a).reduce((c, [m, { props: _, children: h }]) => (h.length && (c[m] = (L = {}) => {
|
|
9191
|
+
const C = Qh(L, Object.keys(_ || {}));
|
|
9192
|
+
let k = h.map((y, p) => a_(
|
|
9193
|
+
y,
|
|
9191
9194
|
t,
|
|
9192
9195
|
{
|
|
9193
9196
|
documentMeta: l,
|
|
9194
|
-
parentScope: { ...o, ...
|
|
9197
|
+
parentScope: { ...o, ...C },
|
|
9195
9198
|
resolveComponent: i
|
|
9196
9199
|
},
|
|
9197
|
-
String(
|
|
9200
|
+
String(y.props?.key || p)
|
|
9198
9201
|
));
|
|
9199
|
-
return _?.unwrap && (
|
|
9202
|
+
return _?.unwrap && (k = Uo(k, _.unwrap)), h_(k);
|
|
9200
9203
|
}), c), {});
|
|
9201
9204
|
}
|
|
9202
9205
|
function s_(e, t, n, l = {}) {
|
|
@@ -9247,7 +9250,7 @@ function m_(e, t, n, l) {
|
|
|
9247
9250
|
}
|
|
9248
9251
|
const Jn = (e) => {
|
|
9249
9252
|
if (typeof e == "string") {
|
|
9250
|
-
if (
|
|
9253
|
+
if (gl.includes(e))
|
|
9251
9254
|
return e;
|
|
9252
9255
|
const t = Ar(To(e), !1);
|
|
9253
9256
|
return !e || t?.name === "AsyncComponentWrapper" || typeof t == "string" ? t : "setup" in t ? Ir(() => new Promise((n) => n(t))) : t;
|
|
@@ -9299,7 +9302,7 @@ async function __(e, t) {
|
|
|
9299
9302
|
if (zo(a))
|
|
9300
9303
|
return [];
|
|
9301
9304
|
const s = [];
|
|
9302
|
-
o.type !== "root" && !
|
|
9305
|
+
o.type !== "root" && !gl.includes(a) && s.push(a);
|
|
9303
9306
|
for (const c of o.children || [])
|
|
9304
9307
|
s.push(...l(c, i));
|
|
9305
9308
|
return s;
|
|
@@ -9313,15 +9316,15 @@ const D_ = /* @__PURE__ */ de({
|
|
|
9313
9316
|
__name: "MDCRenderer",
|
|
9314
9317
|
setup(e) {
|
|
9315
9318
|
return (t, n) => (u(), q(Dr, null, {
|
|
9316
|
-
default:
|
|
9317
|
-
|
|
9319
|
+
default: z(() => [
|
|
9320
|
+
M(r_, K(t.$attrs, { prose: !0 }), null, 16)
|
|
9318
9321
|
]),
|
|
9319
9322
|
_: 1
|
|
9320
9323
|
}));
|
|
9321
9324
|
}
|
|
9322
9325
|
});
|
|
9323
9326
|
export {
|
|
9324
|
-
|
|
9327
|
+
Cl as CLUSTER_PREFIX,
|
|
9325
9328
|
T_ as DependenciesNode,
|
|
9326
9329
|
U as EVENTS,
|
|
9327
9330
|
D_ as MDCRenderer,
|
|
@@ -9332,7 +9335,7 @@ export {
|
|
|
9332
9335
|
J as STATES,
|
|
9333
9336
|
I_ as SchemaToHtml,
|
|
9334
9337
|
_e as State,
|
|
9335
|
-
|
|
9338
|
+
io as TaskIcon,
|
|
9336
9339
|
A_ as Topology,
|
|
9337
9340
|
Re as Utils,
|
|
9338
9341
|
M_ as VueFlowUtils,
|