lyflowchart 1.0.137 → 1.0.152
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/ActionsConfig-BrfcGMc2.js +521 -0
- package/dist/{ApprovalEditorModal-19j5zbe2.js → ApprovalEditorModal-HuU6SRJe.js} +1 -1
- package/dist/{Cell_click_approve-BGDZUzTS.js → Cell_click_approve-DiMuUB1k.js} +22 -20
- package/dist/{MyProcess-FWGEwQcv.js → MyProcess-C6fgOFiw.js} +1 -1
- package/dist/{approval-BW2WjPxY.js → approval-1GfOMaS4.js} +3 -3
- package/dist/{approval-BaD4Bmw6.js → approval-BlbNEsGQ.js} +1 -1
- package/dist/{approvalHistory-B2gpQbFC.js → approvalHistory-D-5rRWNw.js} +1 -1
- package/dist/{approvalPageConfig-D0zPXOUf.js → approvalPageConfig-4VU81v-x.js} +13 -13
- package/dist/{columnTables-DLwtgcC7.js → columnTables-DFwoawLF.js} +76 -69
- package/dist/components/approval/ApprovalEditorModal.vue.d.ts +2 -0
- package/dist/components/approval/components/approvalPageConfig/ActionsConfig.vue.d.ts +481 -0
- package/dist/components/approval/components/approvalPageConfig/leftColumn.vue.d.ts +1210 -0
- package/dist/components/approval/components/approvalPageConfig/middleColumn.vue.d.ts +605 -0
- package/dist/components/approval/components/approvalPageConfig/tableConfig.vue.d.ts +605 -0
- package/dist/components/approval/core.vue.d.ts +2 -0
- package/dist/components/approval/typing.d.ts +1 -1
- package/dist/components/approval/useApprovalRecordActions.d.ts +3 -1
- package/dist/constants.d.ts +26 -0
- package/dist/{core-Cv0Erg9E.js → core-BkpI8NUK.js} +355 -314
- package/dist/{debugCode-Cm9-WiUG.js → debugCode-CQm5weGM.js} +1 -1
- package/dist/{default-VdDMlY4e.js → default-kv1XZD9P.js} +28 -21
- package/dist/{example_code-C_xF8RRG.js → example_code-DKjqP7KK.js} +6 -0
- package/dist/index.js +18 -16
- package/dist/{leftColumn-CsPjufue.js → leftColumn-OrLOxcyw.js} +2 -2
- package/dist/lyflowchart.css +1 -1
- package/dist/{middleColumn-C7M6-eVo.js → middleColumn-DUBZPkDG.js} +2 -2
- package/dist/{recordActions-BgFlNsGU.js → recordActions-3vqHADOf.js} +1 -1
- package/dist/{tableConfig-uLXue-BS.js → tableConfig-W9yGeZs-.js} +41 -41
- package/dist/{tableModal-BcYfVL02.js → tableModal-H0SGP8PM.js} +2 -2
- package/dist/{useApprovalRecordActions-BQ6MgV2L.js → useApprovalRecordActions-B82xPY8g.js} +63 -63
- package/dist/{utils-CLet2gLV.js → utils-B1lkML14.js} +5 -1
- package/dist/{viewer-Dv3kQsMf.js → viewer-C_OHXXRU.js} +915 -916
- package/package.json +1 -1
- package/dist/ActionsConfig-BuvSvRbv.js +0 -395
- package/dist/ActionsConfig-BuvSvRbv.js.map +0 -1
- package/dist/ApprovalEditorModal-19j5zbe2.js.map +0 -1
- package/dist/CancelModal-BUi3ieI8.js.map +0 -1
- package/dist/Cell_click_approve-BGDZUzTS.js.map +0 -1
- package/dist/JsonTags-BbWLqghI.js.map +0 -1
- package/dist/MyProcess-FWGEwQcv.js.map +0 -1
- package/dist/approval-BW2WjPxY.js.map +0 -1
- package/dist/approval-BaD4Bmw6.js.map +0 -1
- package/dist/approvalHistory-B2gpQbFC.js.map +0 -1
- package/dist/approvalHistoryViewModal-DgLpv2ot.js.map +0 -1
- package/dist/approvalPageConfig-D0zPXOUf.js.map +0 -1
- package/dist/approveLeftConfig-BOU_UgHp.js.map +0 -1
- package/dist/codeHistoryViewModal-BfSjIbEU.js.map +0 -1
- package/dist/columnTables-DLwtgcC7.js.map +0 -1
- package/dist/core-Cv0Erg9E.js.map +0 -1
- package/dist/dataStoreSettingHistoryViewModal-D_so-KLp.js.map +0 -1
- package/dist/debugCode-Cm9-WiUG.js.map +0 -1
- package/dist/debugCode-dD1YnQSD.js.map +0 -1
- package/dist/default-VdDMlY4e.js.map +0 -1
- package/dist/example_code-C_xF8RRG.js.map +0 -1
- package/dist/flowHistoryViewModal-D8DJP7Te.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/init-plugin-fQTSQzui.js.map +0 -1
- package/dist/leftColumn-CsPjufue.js.map +0 -1
- package/dist/middleColumn-C7M6-eVo.js.map +0 -1
- package/dist/recordActions-BgFlNsGU.js.map +0 -1
- package/dist/settingsState-CI81PG-i.js.map +0 -1
- package/dist/tableConfig-uLXue-BS.js.map +0 -1
- package/dist/tableModal-BcYfVL02.js.map +0 -1
- package/dist/useApprovalRecordActions-BQ6MgV2L.js.map +0 -1
- package/dist/utils-CLet2gLV.js.map +0 -1
- package/dist/v0001-OaBeBCXI.js.map +0 -1
- package/dist/viewer-Dv3kQsMf.js.map +0 -1
- package/dist/vue-print-next-HRweUmNi.js.map +0 -1
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { v as e } from "./init-plugin-fQTSQzui.js";
|
|
2
2
|
import { createElementBlock as t, createElementVNode as n, createVNode as r, defineComponent as i, nextTick as a, onBeforeUnmount as o, onMounted as s, openBlock as c, ref as l, resolveComponent as u, watch as d, withCtx as f } from "vue";
|
|
3
3
|
import { DragOutlined as p, ZoomInOutlined as m, ZoomOutOutlined as h } from "@ant-design/icons-vue";
|
|
4
|
-
import { message as g } from "ant-design-vue";
|
|
5
4
|
//#region \0rolldown/runtime.js
|
|
6
|
-
var
|
|
5
|
+
var g = Object.create, _ = Object.defineProperty, v = Object.getOwnPropertyDescriptor, y = Object.getOwnPropertyNames, b = Object.getPrototypeOf, x = Object.prototype.hasOwnProperty, S = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), C = (e, t) => {
|
|
7
6
|
let n = {};
|
|
8
|
-
for (var r in e)
|
|
7
|
+
for (var r in e) _(n, r, {
|
|
9
8
|
get: e[r],
|
|
10
9
|
enumerable: !0
|
|
11
10
|
});
|
|
12
|
-
return t ||
|
|
13
|
-
},
|
|
14
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
11
|
+
return t || _(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
12
|
+
}, w = (e, t, n, r) => {
|
|
13
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = y(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !x.call(e, s) && s !== n && _(e, s, {
|
|
15
14
|
get: ((e) => t[e]).bind(null, s),
|
|
16
|
-
enumerable: !(r =
|
|
15
|
+
enumerable: !(r = v(t, s)) || r.enumerable
|
|
17
16
|
});
|
|
18
17
|
return e;
|
|
19
|
-
},
|
|
18
|
+
}, T = (e, t, n) => (n = e == null ? {} : g(b(e)), w(t || !e || !e.__esModule ? _(n, "default", {
|
|
20
19
|
value: e,
|
|
21
20
|
enumerable: !0
|
|
22
21
|
}) : n, e));
|
|
23
22
|
//#endregion
|
|
24
23
|
//#region node_modules/inherits-browser/dist/index.es.js
|
|
25
|
-
function
|
|
24
|
+
function E(e, t) {
|
|
26
25
|
t && (e.super_ = t, e.prototype = Object.create(t.prototype, { constructor: {
|
|
27
26
|
value: e,
|
|
28
27
|
enumerable: !1,
|
|
@@ -32,10 +31,10 @@ function D(e, t) {
|
|
|
32
31
|
}
|
|
33
32
|
//#endregion
|
|
34
33
|
//#region node_modules/ids/dist/index.esm.js
|
|
35
|
-
function
|
|
34
|
+
function D(e, t) {
|
|
36
35
|
return t = { exports: {} }, e(t, t.exports), t.exports;
|
|
37
36
|
}
|
|
38
|
-
var
|
|
37
|
+
var O = D(function(e) {
|
|
39
38
|
var t = e.exports = function(e, n) {
|
|
40
39
|
if (n ||= 16, e === void 0 && (e = 128), e <= 0) return "0";
|
|
41
40
|
for (var r = Math.log(2 ** e) / Math.log(n), i = 2; r === Infinity; i *= 2) r = Math.log(2 ** (e / i)) / Math.log(n) * i;
|
|
@@ -67,103 +66,103 @@ var k = O(function(e) {
|
|
|
67
66
|
}, i.bits = e || 128, i.base = n || 16, i;
|
|
68
67
|
};
|
|
69
68
|
});
|
|
70
|
-
function
|
|
71
|
-
if (!(this instanceof
|
|
69
|
+
function k(e) {
|
|
70
|
+
if (!(this instanceof k)) return new k(e);
|
|
72
71
|
e ||= [
|
|
73
72
|
128,
|
|
74
73
|
36,
|
|
75
74
|
1
|
|
76
|
-
], this._seed = e.length ?
|
|
75
|
+
], this._seed = e.length ? O.rack(e[0], e[1], e[2]) : e;
|
|
77
76
|
}
|
|
78
|
-
|
|
77
|
+
k.prototype.next = function(e) {
|
|
79
78
|
return this._seed(e || !0);
|
|
80
|
-
},
|
|
79
|
+
}, k.prototype.nextPrefixed = function(e, t) {
|
|
81
80
|
var n;
|
|
82
81
|
do
|
|
83
82
|
n = e + this.next(!0);
|
|
84
83
|
while (this.assigned(n));
|
|
85
84
|
return this.claim(n, t), n;
|
|
86
|
-
},
|
|
85
|
+
}, k.prototype.claim = function(e, t) {
|
|
87
86
|
this._seed.set(e, t || !0);
|
|
88
|
-
},
|
|
87
|
+
}, k.prototype.assigned = function(e) {
|
|
89
88
|
return this._seed.get(e) || !1;
|
|
90
|
-
},
|
|
89
|
+
}, k.prototype.unclaim = function(e) {
|
|
91
90
|
delete this._seed.hats[e];
|
|
92
|
-
},
|
|
91
|
+
}, k.prototype.clear = function() {
|
|
93
92
|
var e = this._seed.hats, t;
|
|
94
93
|
for (t in e) this.unclaim(t);
|
|
95
94
|
};
|
|
96
95
|
//#endregion
|
|
97
96
|
//#region node_modules/min-dash/dist/index.esm.js
|
|
98
|
-
function
|
|
97
|
+
function ee(e) {
|
|
99
98
|
return Array.prototype.concat.apply([], e);
|
|
100
99
|
}
|
|
101
|
-
var
|
|
102
|
-
function
|
|
100
|
+
var A = Object.prototype.toString, te = Object.prototype.hasOwnProperty;
|
|
101
|
+
function j(e) {
|
|
103
102
|
return e === void 0;
|
|
104
103
|
}
|
|
105
104
|
function M(e) {
|
|
106
105
|
return e !== void 0;
|
|
107
106
|
}
|
|
108
|
-
function
|
|
107
|
+
function ne(e) {
|
|
109
108
|
return e == null;
|
|
110
109
|
}
|
|
111
110
|
function N(e) {
|
|
112
|
-
return
|
|
111
|
+
return A.call(e) === "[object Array]";
|
|
113
112
|
}
|
|
114
113
|
function P(e) {
|
|
115
|
-
return
|
|
114
|
+
return A.call(e) === "[object Object]";
|
|
116
115
|
}
|
|
117
116
|
function F(e) {
|
|
118
|
-
return
|
|
117
|
+
return A.call(e) === "[object Number]";
|
|
119
118
|
}
|
|
120
|
-
function
|
|
121
|
-
let t =
|
|
119
|
+
function re(e) {
|
|
120
|
+
let t = A.call(e);
|
|
122
121
|
return t === "[object Function]" || t === "[object AsyncFunction]" || t === "[object GeneratorFunction]" || t === "[object AsyncGeneratorFunction]" || t === "[object Proxy]";
|
|
123
122
|
}
|
|
124
|
-
function
|
|
125
|
-
return
|
|
123
|
+
function ie(e) {
|
|
124
|
+
return A.call(e) === "[object String]";
|
|
126
125
|
}
|
|
127
|
-
function
|
|
126
|
+
function ae(e) {
|
|
128
127
|
if (!N(e)) throw Error("must supply array");
|
|
129
128
|
}
|
|
130
|
-
function
|
|
131
|
-
return !
|
|
129
|
+
function oe(e, t) {
|
|
130
|
+
return !ne(e) && te.call(e, t);
|
|
132
131
|
}
|
|
133
|
-
function
|
|
132
|
+
function se(e, t) {
|
|
134
133
|
let n = we(t), r;
|
|
135
|
-
return
|
|
134
|
+
return I(e, function(e, t) {
|
|
136
135
|
if (n(e, t)) return r = e, !1;
|
|
137
136
|
}), r;
|
|
138
137
|
}
|
|
139
|
-
function
|
|
138
|
+
function ce(e, t) {
|
|
140
139
|
let n = we(t), r = N(e) ? -1 : void 0;
|
|
141
|
-
return
|
|
140
|
+
return I(e, function(e, t) {
|
|
142
141
|
if (n(e, t)) return r = t, !1;
|
|
143
142
|
}), r;
|
|
144
143
|
}
|
|
145
|
-
function
|
|
144
|
+
function le(e, t) {
|
|
146
145
|
let n = we(t), r = [];
|
|
147
|
-
return
|
|
146
|
+
return I(e, function(e, t) {
|
|
148
147
|
n(e, t) && r.push(e);
|
|
149
148
|
}), r;
|
|
150
149
|
}
|
|
151
|
-
function
|
|
150
|
+
function I(e, t) {
|
|
152
151
|
let n, r;
|
|
153
|
-
if (
|
|
152
|
+
if (j(e)) return;
|
|
154
153
|
let i = N(e) ? Ee : Te;
|
|
155
|
-
for (let a in e) if (
|
|
154
|
+
for (let a in e) if (oe(e, a) && (n = e[a], r = t(n, i(a)), r === !1)) return n;
|
|
156
155
|
}
|
|
157
156
|
function ue(e, t) {
|
|
158
|
-
if (
|
|
159
|
-
|
|
157
|
+
if (j(e)) return [];
|
|
158
|
+
ae(e);
|
|
160
159
|
let n = we(t);
|
|
161
160
|
return e.filter(function(e, t) {
|
|
162
161
|
return !n(e, t);
|
|
163
162
|
});
|
|
164
163
|
}
|
|
165
164
|
function de(e, t, n) {
|
|
166
|
-
return
|
|
165
|
+
return I(e, function(e, r) {
|
|
167
166
|
n = t(n, e, r);
|
|
168
167
|
}), n;
|
|
169
168
|
}
|
|
@@ -173,11 +172,11 @@ function fe(e, t) {
|
|
|
173
172
|
}, !0);
|
|
174
173
|
}
|
|
175
174
|
function pe(e, t) {
|
|
176
|
-
return !!
|
|
175
|
+
return !!se(e, t);
|
|
177
176
|
}
|
|
178
177
|
function me(e, t) {
|
|
179
178
|
let n = [];
|
|
180
|
-
return
|
|
179
|
+
return I(e, function(e, r) {
|
|
181
180
|
n.push(t(e, r));
|
|
182
181
|
}), n;
|
|
183
182
|
}
|
|
@@ -191,7 +190,7 @@ function _e(e) {
|
|
|
191
190
|
return me(e, (e) => e);
|
|
192
191
|
}
|
|
193
192
|
function ve(e, t, n = {}) {
|
|
194
|
-
return t = Ce(t),
|
|
193
|
+
return t = Ce(t), I(e, function(e) {
|
|
195
194
|
let r = t(e) || "_", i = n[r];
|
|
196
195
|
i ||= n[r] = [], i.push(e);
|
|
197
196
|
}), n;
|
|
@@ -199,7 +198,7 @@ function ve(e, t, n = {}) {
|
|
|
199
198
|
function ye(e, ...t) {
|
|
200
199
|
e = Ce(e);
|
|
201
200
|
let n = {};
|
|
202
|
-
return
|
|
201
|
+
return I(t, (t) => ve(t, e, n)), me(n, function(e, t) {
|
|
203
202
|
return e[0];
|
|
204
203
|
});
|
|
205
204
|
}
|
|
@@ -207,7 +206,7 @@ var be = ye;
|
|
|
207
206
|
function xe(e, t) {
|
|
208
207
|
t = Ce(t);
|
|
209
208
|
let n = [];
|
|
210
|
-
return
|
|
209
|
+
return I(e, function(e, r) {
|
|
211
210
|
let i = t(e, r), a = {
|
|
212
211
|
d: i,
|
|
213
212
|
v: e
|
|
@@ -230,10 +229,10 @@ function Se(e) {
|
|
|
230
229
|
};
|
|
231
230
|
}
|
|
232
231
|
function Ce(e) {
|
|
233
|
-
return
|
|
232
|
+
return re(e) ? e : (t) => t[e];
|
|
234
233
|
}
|
|
235
234
|
function we(e) {
|
|
236
|
-
return
|
|
235
|
+
return re(e) ? e : (t) => t === e;
|
|
237
236
|
}
|
|
238
237
|
function Te(e) {
|
|
239
238
|
return e;
|
|
@@ -262,31 +261,31 @@ function De(e, t) {
|
|
|
262
261
|
}
|
|
263
262
|
return u.flush = l, u.cancel = c, u;
|
|
264
263
|
}
|
|
265
|
-
function
|
|
264
|
+
function L(e, t) {
|
|
266
265
|
return e.bind(t);
|
|
267
266
|
}
|
|
268
|
-
function
|
|
267
|
+
function R(e, ...t) {
|
|
269
268
|
return Object.assign(e, ...t);
|
|
270
269
|
}
|
|
271
270
|
function Oe(e, t, n) {
|
|
272
271
|
let r = e;
|
|
273
|
-
return
|
|
272
|
+
return I(t, function(e, i) {
|
|
274
273
|
if (typeof e != "number" && typeof e != "string") throw Error("illegal key type: " + typeof e + ". Key should be of type number or string.");
|
|
275
274
|
if (e === "constructor") throw Error("illegal key: constructor");
|
|
276
275
|
if (e === "__proto__") throw Error("illegal key: __proto__");
|
|
277
276
|
let a = t[i + 1], o = r[e];
|
|
278
|
-
M(a) &&
|
|
277
|
+
M(a) && ne(o) && (o = r[e] = isNaN(+a) ? {} : []), j(a) ? j(n) ? delete r[e] : r[e] = n : r = o;
|
|
279
278
|
}), e;
|
|
280
279
|
}
|
|
281
280
|
function ke(e, t) {
|
|
282
281
|
let n = {}, r = Object(e);
|
|
283
|
-
return
|
|
282
|
+
return I(t, function(t) {
|
|
284
283
|
t in r && (n[t] = e[t]);
|
|
285
284
|
}), n;
|
|
286
285
|
}
|
|
287
286
|
function Ae(e, t) {
|
|
288
287
|
let n = {};
|
|
289
|
-
return
|
|
288
|
+
return I(Object(e), function(e, r) {
|
|
290
289
|
t.indexOf(r) === -1 && (n[r] = e);
|
|
291
290
|
}), n;
|
|
292
291
|
}
|
|
@@ -398,7 +397,7 @@ var nt = {
|
|
|
398
397
|
unbind: tt
|
|
399
398
|
}, rt = ot, it = !1, at;
|
|
400
399
|
typeof document < "u" && (at = document.createElement("div"), at.innerHTML = " <link/><table></table><a href=\"/a\">a</a><input type=\"checkbox\"/>", it = !at.getElementsByTagName("link").length, at = void 0);
|
|
401
|
-
var
|
|
400
|
+
var z = {
|
|
402
401
|
legend: [
|
|
403
402
|
1,
|
|
404
403
|
"<fieldset>",
|
|
@@ -424,19 +423,19 @@ var B = {
|
|
|
424
423
|
""
|
|
425
424
|
]
|
|
426
425
|
};
|
|
427
|
-
|
|
426
|
+
z.td = z.th = [
|
|
428
427
|
3,
|
|
429
428
|
"<table><tbody><tr>",
|
|
430
429
|
"</tr></tbody></table>"
|
|
431
|
-
],
|
|
430
|
+
], z.option = z.optgroup = [
|
|
432
431
|
1,
|
|
433
432
|
"<select multiple=\"multiple\">",
|
|
434
433
|
"</select>"
|
|
435
|
-
],
|
|
434
|
+
], z.thead = z.tbody = z.colgroup = z.caption = z.tfoot = [
|
|
436
435
|
1,
|
|
437
436
|
"<table>",
|
|
438
437
|
"</table>"
|
|
439
|
-
],
|
|
438
|
+
], z.polyline = z.ellipse = z.polygon = z.circle = z.text = z.line = z.path = z.rect = z.g = [
|
|
440
439
|
1,
|
|
441
440
|
"<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">",
|
|
442
441
|
"</svg>"
|
|
@@ -452,7 +451,7 @@ function ot(e, t) {
|
|
|
452
451
|
var i = t.createElement("html");
|
|
453
452
|
return i.innerHTML = e, i.removeChild(i.lastChild);
|
|
454
453
|
}
|
|
455
|
-
var a = Object.prototype.hasOwnProperty.call(
|
|
454
|
+
var a = Object.prototype.hasOwnProperty.call(z, r) ? z[r] : z._default, o = a[0], s = a[1], c = a[2], i = t.createElement("div");
|
|
456
455
|
for (i.innerHTML = s + e + c; o--;) i = i.lastChild;
|
|
457
456
|
if (i.firstChild == i.lastChild) return i.removeChild(i.firstChild);
|
|
458
457
|
for (var l = t.createDocumentFragment(); i.firstChild;) l.appendChild(i.removeChild(i.firstChild));
|
|
@@ -482,7 +481,7 @@ function ft(e, t) {
|
|
|
482
481
|
function pt(e, t) {
|
|
483
482
|
return t.appendChild(ft(e, t));
|
|
484
483
|
}
|
|
485
|
-
function
|
|
484
|
+
function B(e, t) {
|
|
486
485
|
return pt(t, e), e;
|
|
487
486
|
}
|
|
488
487
|
var mt = 2, ht = {
|
|
@@ -559,7 +558,7 @@ function vt(e, t) {
|
|
|
559
558
|
var n = Object.keys(t), r, i;
|
|
560
559
|
for (r = 0; i = n[r]; r++) _t(e, i, t[i]);
|
|
561
560
|
}
|
|
562
|
-
function
|
|
561
|
+
function V(e, t, n) {
|
|
563
562
|
if (typeof t == "string") if (n !== void 0) _t(e, t, n);
|
|
564
563
|
else return gt(e, t);
|
|
565
564
|
else vt(e, t);
|
|
@@ -608,13 +607,13 @@ function Dt(e) {
|
|
|
608
607
|
var t = new DOMParser();
|
|
609
608
|
return t.async = !1, t.parseFromString(e, "text/xml");
|
|
610
609
|
}
|
|
611
|
-
function
|
|
610
|
+
function H(e, t) {
|
|
612
611
|
var n;
|
|
613
|
-
return e = e.trim(), e.charAt(0) === "<" ? (n = Et(e).firstChild, n = document.importNode(n, !0)) : n = document.createElementNS(wt.svg, e), t &&
|
|
612
|
+
return e = e.trim(), e.charAt(0) === "<" ? (n = Et(e).firstChild, n = document.importNode(n, !0)) : n = document.createElementNS(wt.svg, e), t && V(n, t), n;
|
|
614
613
|
}
|
|
615
614
|
var Ot = null;
|
|
616
615
|
function kt() {
|
|
617
|
-
return Ot === null && (Ot =
|
|
616
|
+
return Ot === null && (Ot = H("svg")), Ot;
|
|
618
617
|
}
|
|
619
618
|
function At(e, t) {
|
|
620
619
|
var n, r, i = Object.keys(t);
|
|
@@ -943,17 +942,17 @@ function pn(e, t) {
|
|
|
943
942
|
}
|
|
944
943
|
function mn(e, t, n) {
|
|
945
944
|
F(t) && (n = t, t = null), t ||= {};
|
|
946
|
-
let r =
|
|
945
|
+
let r = H("path", t);
|
|
947
946
|
return F(n) && (r.dataset.cornerRadius = String(n)), hn(r, e);
|
|
948
947
|
}
|
|
949
948
|
function hn(e, t) {
|
|
950
|
-
return
|
|
949
|
+
return V(e, { d: sn(dn(t, parseInt(e.dataset.cornerRadius, 10) || 0)) }), e;
|
|
951
950
|
}
|
|
952
951
|
//#endregion
|
|
953
952
|
//#region node_modules/diagram-js/lib/util/Elements.js
|
|
954
953
|
function gn(e) {
|
|
955
|
-
return
|
|
956
|
-
return !
|
|
954
|
+
return le(e, function(t) {
|
|
955
|
+
return !se(e, function(e) {
|
|
957
956
|
return e !== t && _n(t, e);
|
|
958
957
|
});
|
|
959
958
|
});
|
|
@@ -969,7 +968,7 @@ function vn(e, t, n) {
|
|
|
969
968
|
return r && e.push(t), r;
|
|
970
969
|
}
|
|
971
970
|
function yn(e, t, n) {
|
|
972
|
-
n ||= 0, N(e) || (e = [e]),
|
|
971
|
+
n ||= 0, N(e) || (e = [e]), I(e, function(e, r) {
|
|
973
972
|
var i = t(e, r, n);
|
|
974
973
|
N(i) && i.length && yn(i, t, n + 1);
|
|
975
974
|
});
|
|
@@ -986,7 +985,7 @@ function xn(e, t) {
|
|
|
986
985
|
return bn(e, !t, -1);
|
|
987
986
|
}
|
|
988
987
|
function Sn(e, t, n) {
|
|
989
|
-
|
|
988
|
+
j(t) && (t = !0), P(t) && (n = t, t = !0), n ||= {};
|
|
990
989
|
var r = Dn(n.allShapes), i = Dn(n.allConnections), a = Dn(n.enclosedElements), o = Dn(n.enclosedConnections), s = Dn(n.topLevel, t && ve(e, function(e) {
|
|
991
990
|
return e.id;
|
|
992
991
|
}));
|
|
@@ -995,7 +994,7 @@ function Sn(e, t, n) {
|
|
|
995
994
|
}
|
|
996
995
|
function l(e) {
|
|
997
996
|
if (a[e.id] = e, e.waypoints) o[e.id] = i[e.id] = e;
|
|
998
|
-
else return r[e.id] = e,
|
|
997
|
+
else return r[e.id] = e, I(e.incoming, c), I(e.outgoing, c), e.children;
|
|
999
998
|
}
|
|
1000
999
|
return yn(e, l), {
|
|
1001
1000
|
allShapes: r,
|
|
@@ -1008,7 +1007,7 @@ function Sn(e, t, n) {
|
|
|
1008
1007
|
function Cn(e, t) {
|
|
1009
1008
|
t = !!t, N(e) || (e = [e]);
|
|
1010
1009
|
var n, r, i, a;
|
|
1011
|
-
return
|
|
1010
|
+
return I(e, function(e) {
|
|
1012
1011
|
var o = e;
|
|
1013
1012
|
e.waypoints && !t && (o = Cn(e.waypoints, !0));
|
|
1014
1013
|
var s = o.x, c = o.y, l = o.height || 0, u = o.width || 0;
|
|
@@ -1022,7 +1021,7 @@ function Cn(e, t) {
|
|
|
1022
1021
|
}
|
|
1023
1022
|
function wn(e, t) {
|
|
1024
1023
|
var n = {};
|
|
1025
|
-
return
|
|
1024
|
+
return I(e, function(e) {
|
|
1026
1025
|
var r = e;
|
|
1027
1026
|
r.waypoints && (r = Cn(r)), !F(t.y) && r.x > t.x && (n[e.id] = e), !F(t.x) && r.y > t.y && (n[e.id] = e), r.x > t.x && r.y > t.y && (F(t.width) && F(t.height) && r.width + r.x < t.width + t.x && r.height + r.y < t.height + t.y || !F(t.width) || !F(t.height)) && (n[e.id] = e);
|
|
1028
1027
|
}), n;
|
|
@@ -1034,7 +1033,7 @@ function En(e) {
|
|
|
1034
1033
|
return !!(e && e.isFrame);
|
|
1035
1034
|
}
|
|
1036
1035
|
function Dn(e, t) {
|
|
1037
|
-
return
|
|
1036
|
+
return R({}, e || {}, t || {});
|
|
1038
1037
|
}
|
|
1039
1038
|
//#endregion
|
|
1040
1039
|
//#region node_modules/diagram-js/lib/draw/DefaultRenderer.js
|
|
@@ -1053,19 +1052,19 @@ function kn(e, t) {
|
|
|
1053
1052
|
strokeWidth: 2
|
|
1054
1053
|
});
|
|
1055
1054
|
}
|
|
1056
|
-
|
|
1055
|
+
E(kn, on), kn.prototype.canRender = function() {
|
|
1057
1056
|
return !0;
|
|
1058
1057
|
}, kn.prototype.drawShape = function(e, t, n) {
|
|
1059
|
-
var r =
|
|
1060
|
-
return
|
|
1058
|
+
var r = H("rect");
|
|
1059
|
+
return V(r, {
|
|
1061
1060
|
x: 0,
|
|
1062
1061
|
y: 0,
|
|
1063
1062
|
width: t.width || 0,
|
|
1064
1063
|
height: t.height || 0
|
|
1065
|
-
}), En(t) ?
|
|
1064
|
+
}), En(t) ? V(r, R({}, this.FRAME_STYLE, n || {})) : V(r, R({}, this.SHAPE_STYLE, n || {})), B(e, r), r;
|
|
1066
1065
|
}, kn.prototype.drawConnection = function(e, t, n) {
|
|
1067
|
-
var r = mn(t.waypoints,
|
|
1068
|
-
return
|
|
1066
|
+
var r = mn(t.waypoints, R({}, this.CONNECTION_STYLE, n || {}));
|
|
1067
|
+
return B(e, r), r;
|
|
1069
1068
|
}, kn.prototype.getShapePath = function(e) {
|
|
1070
1069
|
var t = e.x, n = e.y, r = e.width, i = e.height;
|
|
1071
1070
|
return sn([
|
|
@@ -1109,15 +1108,15 @@ function An() {
|
|
|
1109
1108
|
"no-events": { pointerEvents: "none" }
|
|
1110
1109
|
}, t = this;
|
|
1111
1110
|
this.cls = function(e, t, n) {
|
|
1112
|
-
return
|
|
1111
|
+
return R(this.style(t, n), { class: e });
|
|
1113
1112
|
}, this.style = function(t, n) {
|
|
1114
1113
|
!N(t) && !n && (n = t, t = []);
|
|
1115
1114
|
var r = de(t, function(t, n) {
|
|
1116
|
-
return
|
|
1115
|
+
return R(t, e[n] || {});
|
|
1117
1116
|
}, {});
|
|
1118
|
-
return n ?
|
|
1117
|
+
return n ? R(r, n) : r;
|
|
1119
1118
|
}, this.computeStyle = function(e, n, r) {
|
|
1120
|
-
return N(n) || (r = n, n = []), t.style(n || [],
|
|
1119
|
+
return N(n) || (r = n, n = []), t.style(n || [], R({}, r, e || {}));
|
|
1121
1120
|
};
|
|
1122
1121
|
}
|
|
1123
1122
|
//#endregion
|
|
@@ -1185,7 +1184,7 @@ function Vn(e, t) {
|
|
|
1185
1184
|
}
|
|
1186
1185
|
//#endregion
|
|
1187
1186
|
//#region node_modules/path-intersection/intersect.js
|
|
1188
|
-
var Hn = /* @__PURE__ */
|
|
1187
|
+
var Hn = /* @__PURE__ */ S(((e, t) => {
|
|
1189
1188
|
var n = /,?([a-z]),?/gi, r = parseFloat, i = Math, a = i.PI, o = i.min, s = i.max, c = i.pow, l = i.abs, u = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi, d = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi, f = Array.isArray || function(e) {
|
|
1190
1189
|
return e instanceof Array;
|
|
1191
1190
|
};
|
|
@@ -1262,7 +1261,7 @@ var Hn = /* @__PURE__ */ C(((e, t) => {
|
|
|
1262
1261
|
};
|
|
1263
1262
|
}
|
|
1264
1263
|
function C(e) {
|
|
1265
|
-
var t =
|
|
1264
|
+
var t = P.apply(null, e);
|
|
1266
1265
|
return y(t.x0, t.y0, t.x1 - t.x0, t.y1 - t.y0);
|
|
1267
1266
|
}
|
|
1268
1267
|
function w(e, t, n) {
|
|
@@ -1323,9 +1322,9 @@ var Hn = /* @__PURE__ */ C(((e, t) => {
|
|
|
1323
1322
|
function k(e) {
|
|
1324
1323
|
return Math.round(e * 1e11) / 1e11;
|
|
1325
1324
|
}
|
|
1326
|
-
function
|
|
1325
|
+
function ee(e, t, n) {
|
|
1327
1326
|
if (!T(C(e), C(t))) return n ? 0 : [];
|
|
1328
|
-
for (var r = D.apply(0, e), i = D.apply(0, t), a =
|
|
1327
|
+
for (var r = D.apply(0, e), i = D.apply(0, t), a = j(e) ? 1 : ~~(r / 5) || 1, o = j(t) ? 1 : ~~(i / 5) || 1, s = [], c = [], u = {}, d = n ? 0 : [], f = 0; f < a + 1; f++) {
|
|
1329
1328
|
var p = S.apply(0, e.concat(f / a));
|
|
1330
1329
|
s.push({
|
|
1331
1330
|
x: p.x,
|
|
@@ -1354,8 +1353,8 @@ var Hn = /* @__PURE__ */ C(((e, t) => {
|
|
|
1354
1353
|
}
|
|
1355
1354
|
return d;
|
|
1356
1355
|
}
|
|
1357
|
-
function
|
|
1358
|
-
e =
|
|
1356
|
+
function A(e, t, n) {
|
|
1357
|
+
e = F(e), t = F(t);
|
|
1359
1358
|
for (var r, i, a, o, s, c, l, u, d, f, p = n ? 0 : [], m = 0, h = e.length; m < h; m++) {
|
|
1360
1359
|
var g = e[m];
|
|
1361
1360
|
if (g[0] == "M") r = s = g[1], i = c = g[2];
|
|
@@ -1384,7 +1383,7 @@ var Hn = /* @__PURE__ */ C(((e, t) => {
|
|
|
1384
1383
|
l,
|
|
1385
1384
|
u
|
|
1386
1385
|
], a = l, o = u);
|
|
1387
|
-
var b =
|
|
1386
|
+
var b = ee(d, f, n);
|
|
1388
1387
|
if (n) p += b;
|
|
1389
1388
|
else {
|
|
1390
1389
|
for (var x = 0, S = b.length; x < S; x++) b[x].segment1 = m, b[x].segment2 = _, b[x].bez1 = d, b[x].bez2 = f;
|
|
@@ -1396,7 +1395,7 @@ var Hn = /* @__PURE__ */ C(((e, t) => {
|
|
|
1396
1395
|
}
|
|
1397
1396
|
return p;
|
|
1398
1397
|
}
|
|
1399
|
-
function
|
|
1398
|
+
function te(e) {
|
|
1400
1399
|
var t = v(e);
|
|
1401
1400
|
if (t.abs) return x(t.abs);
|
|
1402
1401
|
if ((!f(e) || !f(e && e[0])) && (e = _(e)), !e || !e.length) return [[
|
|
@@ -1441,10 +1440,10 @@ var Hn = /* @__PURE__ */ C(((e, t) => {
|
|
|
1441
1440
|
}
|
|
1442
1441
|
return n.toString = b, t.abs = x(n), n;
|
|
1443
1442
|
}
|
|
1444
|
-
function
|
|
1443
|
+
function j(e) {
|
|
1445
1444
|
return e[0] === e[2] && e[1] === e[3] && e[4] === e[6] && e[5] === e[7];
|
|
1446
1445
|
}
|
|
1447
|
-
function
|
|
1446
|
+
function M(e, t, n, r) {
|
|
1448
1447
|
return [
|
|
1449
1448
|
e,
|
|
1450
1449
|
t,
|
|
@@ -1454,7 +1453,7 @@ var Hn = /* @__PURE__ */ C(((e, t) => {
|
|
|
1454
1453
|
r
|
|
1455
1454
|
];
|
|
1456
1455
|
}
|
|
1457
|
-
function
|
|
1456
|
+
function ne(e, t, n, r, i, a) {
|
|
1458
1457
|
var o = 1 / 3, s = 2 / 3;
|
|
1459
1458
|
return [
|
|
1460
1459
|
o * e + s * n,
|
|
@@ -1465,7 +1464,7 @@ var Hn = /* @__PURE__ */ C(((e, t) => {
|
|
|
1465
1464
|
a
|
|
1466
1465
|
];
|
|
1467
1466
|
}
|
|
1468
|
-
function
|
|
1467
|
+
function N(e, t, n, r, o, s, c, u, d, f) {
|
|
1469
1468
|
var p = a * 120 / 180, m = a / 180 * (+o || 0), h = [], _, v = g(function(e, t, n) {
|
|
1470
1469
|
return {
|
|
1471
1470
|
x: e * i.cos(n) - t * i.sin(n),
|
|
@@ -1482,16 +1481,16 @@ var Hn = /* @__PURE__ */ C(((e, t) => {
|
|
|
1482
1481
|
}
|
|
1483
1482
|
var k = O - D;
|
|
1484
1483
|
if (l(k) > p) {
|
|
1485
|
-
var
|
|
1486
|
-
O = D + p * (c && O > D ? 1 : -1), u = T + n * i.cos(O), d = E + r * i.sin(O), h =
|
|
1484
|
+
var ee = O, A = u, te = d;
|
|
1485
|
+
O = D + p * (c && O > D ? 1 : -1), u = T + n * i.cos(O), d = E + r * i.sin(O), h = N(u, d, n, r, o, 0, c, A, te, [
|
|
1487
1486
|
O,
|
|
1488
|
-
|
|
1487
|
+
ee,
|
|
1489
1488
|
T,
|
|
1490
1489
|
E
|
|
1491
1490
|
]);
|
|
1492
1491
|
}
|
|
1493
1492
|
k = O - D;
|
|
1494
|
-
var
|
|
1493
|
+
var j = i.cos(D), M = i.sin(D), ne = i.cos(O), P = i.sin(O), F = i.tan(k / 4), re = 4 / 3 * n * F, ie = 4 / 3 * r * F, ae = [e, t], oe = [e + re * M, t - ie * j], se = [u + re * P, d - ie * ne], ce = [u, d];
|
|
1495
1494
|
if (oe[0] = 2 * ae[0] - oe[0], oe[1] = 2 * ae[1] - oe[1], f) return [
|
|
1496
1495
|
oe,
|
|
1497
1496
|
se,
|
|
@@ -1502,10 +1501,10 @@ var Hn = /* @__PURE__ */ C(((e, t) => {
|
|
|
1502
1501
|
se,
|
|
1503
1502
|
ce
|
|
1504
1503
|
].concat(h).join().split(",");
|
|
1505
|
-
for (var le = [], I = 0,
|
|
1504
|
+
for (var le = [], I = 0, ue = h.length; I < ue; I++) le[I] = I % 2 ? v(h[I - 1], h[I], m).y : v(h[I], h[I + 1], m).x;
|
|
1506
1505
|
return le;
|
|
1507
1506
|
}
|
|
1508
|
-
function
|
|
1507
|
+
function P(e, t, n, r, a, c, u, d) {
|
|
1509
1508
|
for (var f = [], p = [[], []], m, h, g, _, v, y, b, x, S = 0; S < 2; ++S) {
|
|
1510
1509
|
if (S == 0 ? (h = 6 * e - 12 * n + 6 * a, m = -3 * e + 9 * n - 9 * a + 3 * u, g = 3 * n - 3 * e) : (h = 6 * t - 12 * r + 6 * c, m = -3 * t + 9 * r - 9 * c + 3 * d, g = 3 * r - 3 * t), l(m) < 1e-12) {
|
|
1511
1510
|
if (l(h) < 1e-12) continue;
|
|
@@ -1522,10 +1521,10 @@ var Hn = /* @__PURE__ */ C(((e, t) => {
|
|
|
1522
1521
|
y1: s.apply(0, p[1])
|
|
1523
1522
|
};
|
|
1524
1523
|
}
|
|
1525
|
-
function
|
|
1524
|
+
function F(e) {
|
|
1526
1525
|
var t = v(e);
|
|
1527
1526
|
if (t.curve) return x(t.curve);
|
|
1528
|
-
for (var n =
|
|
1527
|
+
for (var n = te(e), i = {
|
|
1529
1528
|
x: 0,
|
|
1530
1529
|
y: 0,
|
|
1531
1530
|
bx: 0,
|
|
@@ -1553,7 +1552,7 @@ var Hn = /* @__PURE__ */ C(((e, t) => {
|
|
|
1553
1552
|
t.X = e[1], t.Y = e[2];
|
|
1554
1553
|
break;
|
|
1555
1554
|
case "A":
|
|
1556
|
-
e = ["C"].concat(
|
|
1555
|
+
e = ["C"].concat(N.apply(0, [t.x, t.y].concat(e.slice(1))));
|
|
1557
1556
|
break;
|
|
1558
1557
|
case "S":
|
|
1559
1558
|
n == "C" || n == "S" ? (r = t.x * 2 - t.bx, i = t.y * 2 - t.by) : (r = t.x, i = t.y), e = [
|
|
@@ -1563,22 +1562,22 @@ var Hn = /* @__PURE__ */ C(((e, t) => {
|
|
|
1563
1562
|
].concat(e.slice(1));
|
|
1564
1563
|
break;
|
|
1565
1564
|
case "T":
|
|
1566
|
-
n == "Q" || n == "T" ? (t.qx = t.x * 2 - t.qx, t.qy = t.y * 2 - t.qy) : (t.qx = t.x, t.qy = t.y), e = ["C"].concat(
|
|
1565
|
+
n == "Q" || n == "T" ? (t.qx = t.x * 2 - t.qx, t.qy = t.y * 2 - t.qy) : (t.qx = t.x, t.qy = t.y), e = ["C"].concat(ne(t.x, t.y, t.qx, t.qy, e[1], e[2]));
|
|
1567
1566
|
break;
|
|
1568
1567
|
case "Q":
|
|
1569
|
-
t.qx = e[1], t.qy = e[2], e = ["C"].concat(
|
|
1568
|
+
t.qx = e[1], t.qy = e[2], e = ["C"].concat(ne(t.x, t.y, e[1], e[2], e[3], e[4]));
|
|
1570
1569
|
break;
|
|
1571
1570
|
case "L":
|
|
1572
|
-
e = ["C"].concat(
|
|
1571
|
+
e = ["C"].concat(M(t.x, t.y, e[1], e[2]));
|
|
1573
1572
|
break;
|
|
1574
1573
|
case "H":
|
|
1575
|
-
e = ["C"].concat(
|
|
1574
|
+
e = ["C"].concat(M(t.x, t.y, e[1], t.y));
|
|
1576
1575
|
break;
|
|
1577
1576
|
case "V":
|
|
1578
|
-
e = ["C"].concat(
|
|
1577
|
+
e = ["C"].concat(M(t.x, t.y, t.x, e[1]));
|
|
1579
1578
|
break;
|
|
1580
1579
|
case "Z":
|
|
1581
|
-
e = ["C"].concat(
|
|
1580
|
+
e = ["C"].concat(M(t.x, t.y, t.X, t.Y));
|
|
1582
1581
|
break;
|
|
1583
1582
|
}
|
|
1584
1583
|
return e;
|
|
@@ -1595,8 +1594,8 @@ var Hn = /* @__PURE__ */ C(((e, t) => {
|
|
|
1595
1594
|
}
|
|
1596
1595
|
return t.curve = x(n), n;
|
|
1597
1596
|
}
|
|
1598
|
-
t.exports =
|
|
1599
|
-
})), Un = /* @__PURE__ */
|
|
1597
|
+
t.exports = A;
|
|
1598
|
+
})), Un = /* @__PURE__ */ T(Hn());
|
|
1600
1599
|
function Wn(e) {
|
|
1601
1600
|
return {
|
|
1602
1601
|
x: Math.round(e.x),
|
|
@@ -1701,7 +1700,7 @@ function ar(e) {
|
|
|
1701
1700
|
return e;
|
|
1702
1701
|
}
|
|
1703
1702
|
function or(e) {
|
|
1704
|
-
e =
|
|
1703
|
+
e = R({}, {
|
|
1705
1704
|
width: "100%",
|
|
1706
1705
|
height: "100%"
|
|
1707
1706
|
}, e);
|
|
@@ -1714,7 +1713,7 @@ function or(e) {
|
|
|
1714
1713
|
}), t.appendChild(n), n;
|
|
1715
1714
|
}
|
|
1716
1715
|
function sr(e, t, n) {
|
|
1717
|
-
let r =
|
|
1716
|
+
let r = H("g");
|
|
1718
1717
|
bt(r).add(t);
|
|
1719
1718
|
let i = n === void 0 ? e.childNodes.length - 1 : n;
|
|
1720
1719
|
return e.insertBefore(r, e.childNodes[i] || null), r;
|
|
@@ -1728,22 +1727,22 @@ var cr = "base", lr = 0, ur = 1, dr = {
|
|
|
1728
1727
|
],
|
|
1729
1728
|
connection: ["waypoints"]
|
|
1730
1729
|
};
|
|
1731
|
-
function
|
|
1730
|
+
function U(e, t, n, r) {
|
|
1732
1731
|
this._eventBus = t, this._elementRegistry = r, this._graphicsFactory = n, this._rootsIdx = 0, this._layers = {}, this._planes = [], this._rootElement = null, this._init(e || {});
|
|
1733
1732
|
}
|
|
1734
|
-
|
|
1733
|
+
U.$inject = [
|
|
1735
1734
|
"config.canvas",
|
|
1736
1735
|
"eventBus",
|
|
1737
1736
|
"graphicsFactory",
|
|
1738
1737
|
"elementRegistry"
|
|
1739
|
-
],
|
|
1740
|
-
let t = this._eventBus, n = this._container = or(e), r = this._svg =
|
|
1741
|
-
|
|
1738
|
+
], U.prototype._init = function(e) {
|
|
1739
|
+
let t = this._eventBus, n = this._container = or(e), r = this._svg = H("svg");
|
|
1740
|
+
V(r, {
|
|
1742
1741
|
width: "100%",
|
|
1743
1742
|
height: "100%"
|
|
1744
|
-
}),
|
|
1743
|
+
}), B(n, r);
|
|
1745
1744
|
let i = this._viewport = sr(r, "viewport");
|
|
1746
|
-
e.deferUpdate !== !1 && (this._viewboxChanged = De(
|
|
1745
|
+
e.deferUpdate !== !1 && (this._viewboxChanged = De(L(this._viewboxChanged, this), 300)), t.on("diagram.init", () => {
|
|
1747
1746
|
t.fire("canvas.init", {
|
|
1748
1747
|
svg: r,
|
|
1749
1748
|
viewport: i
|
|
@@ -1758,30 +1757,30 @@ W.$inject = [
|
|
|
1758
1757
|
], () => {
|
|
1759
1758
|
delete this._cachedViewbox;
|
|
1760
1759
|
}), t.on("diagram.destroy", 500, this._destroy, this), t.on("diagram.clear", 500, this._clear, this);
|
|
1761
|
-
},
|
|
1760
|
+
}, U.prototype._destroy = function() {
|
|
1762
1761
|
this._eventBus.fire("canvas.destroy", {
|
|
1763
1762
|
svg: this._svg,
|
|
1764
1763
|
viewport: this._viewport
|
|
1765
1764
|
});
|
|
1766
1765
|
let e = this._container.parentNode;
|
|
1767
1766
|
e && e.removeChild(this._container), delete this._svg, delete this._container, delete this._layers, delete this._planes, delete this._rootElement, delete this._viewport;
|
|
1768
|
-
},
|
|
1767
|
+
}, U.prototype._clear = function() {
|
|
1769
1768
|
this._elementRegistry.getAll().forEach((e) => {
|
|
1770
1769
|
let t = Tn(e);
|
|
1771
1770
|
t === "root" ? this.removeRootElement(e) : this._removeElement(e, t);
|
|
1772
1771
|
}), this._planes = [], this._rootElement = null, delete this._cachedViewbox;
|
|
1773
|
-
},
|
|
1772
|
+
}, U.prototype.getDefaultLayer = function() {
|
|
1774
1773
|
return this.getLayer(cr, lr);
|
|
1775
|
-
},
|
|
1774
|
+
}, U.prototype.getLayer = function(e, t) {
|
|
1776
1775
|
if (!e) throw Error("must specify a name");
|
|
1777
1776
|
let n = this._layers[e];
|
|
1778
1777
|
if (n ||= this._layers[e] = this._createLayer(e, t), t !== void 0 && n.index !== t) throw Error("layer <" + e + "> already created at index <" + t + ">");
|
|
1779
1778
|
return n.group;
|
|
1780
|
-
},
|
|
1779
|
+
}, U.prototype._getChildIndex = function(e) {
|
|
1781
1780
|
return de(this._layers, function(t, n) {
|
|
1782
1781
|
return n.visible && e >= n.index && t++, t;
|
|
1783
1782
|
}, 0);
|
|
1784
|
-
},
|
|
1783
|
+
}, U.prototype._createLayer = function(e, t) {
|
|
1785
1784
|
t === void 0 && (t = ur);
|
|
1786
1785
|
let n = this._getChildIndex(t);
|
|
1787
1786
|
return {
|
|
@@ -1789,7 +1788,7 @@ W.$inject = [
|
|
|
1789
1788
|
index: t,
|
|
1790
1789
|
visible: !0
|
|
1791
1790
|
};
|
|
1792
|
-
},
|
|
1791
|
+
}, U.prototype.showLayer = function(e) {
|
|
1793
1792
|
if (!e) throw Error("must specify a name");
|
|
1794
1793
|
let t = this._layers[e];
|
|
1795
1794
|
if (!t) throw Error("layer <" + e + "> does not exist");
|
|
@@ -1797,33 +1796,33 @@ W.$inject = [
|
|
|
1797
1796
|
if (t.visible) return r;
|
|
1798
1797
|
let a = this._getChildIndex(i);
|
|
1799
1798
|
return n.insertBefore(r, n.childNodes[a] || null), t.visible = !0, r;
|
|
1800
|
-
},
|
|
1799
|
+
}, U.prototype.hideLayer = function(e) {
|
|
1801
1800
|
if (!e) throw Error("must specify a name");
|
|
1802
1801
|
let t = this._layers[e];
|
|
1803
1802
|
if (!t) throw Error("layer <" + e + "> does not exist");
|
|
1804
1803
|
let n = t.group;
|
|
1805
1804
|
return t.visible ? (Ut(n), t.visible = !1, n) : n;
|
|
1806
|
-
},
|
|
1805
|
+
}, U.prototype._removeLayer = function(e) {
|
|
1807
1806
|
let t = this._layers[e];
|
|
1808
1807
|
t && (delete this._layers[e], Ut(t.group));
|
|
1809
|
-
},
|
|
1808
|
+
}, U.prototype.getActiveLayer = function() {
|
|
1810
1809
|
let e = this._findPlaneForRoot(this.getRootElement());
|
|
1811
1810
|
return e ? e.layer : null;
|
|
1812
|
-
},
|
|
1811
|
+
}, U.prototype.findRoot = function(e) {
|
|
1813
1812
|
if (typeof e == "string" && (e = this._elementRegistry.get(e)), e) return (this._findPlaneForRoot(ar(e)) || {}).rootElement;
|
|
1814
|
-
},
|
|
1813
|
+
}, U.prototype.getRootElements = function() {
|
|
1815
1814
|
return this._planes.map(function(e) {
|
|
1816
1815
|
return e.rootElement;
|
|
1817
1816
|
});
|
|
1818
|
-
},
|
|
1819
|
-
return
|
|
1817
|
+
}, U.prototype._findPlaneForRoot = function(e) {
|
|
1818
|
+
return se(this._planes, function(t) {
|
|
1820
1819
|
return t.rootElement === e;
|
|
1821
1820
|
});
|
|
1822
|
-
},
|
|
1821
|
+
}, U.prototype.getContainer = function() {
|
|
1823
1822
|
return this._container;
|
|
1824
|
-
},
|
|
1823
|
+
}, U.prototype._updateMarker = function(e, t, n) {
|
|
1825
1824
|
let r;
|
|
1826
|
-
e.id || (e = this._elementRegistry.get(e)), r = this._elementRegistry._elements[e.id], r && (
|
|
1825
|
+
e.id || (e = this._elementRegistry.get(e)), r = this._elementRegistry._elements[e.id], r && (I([r.gfx, r.secondaryGfx], function(e) {
|
|
1827
1826
|
e && (n ? bt(e).add(t) : bt(e).remove(t));
|
|
1828
1827
|
}), this._eventBus.fire("element.marker.update", {
|
|
1829
1828
|
element: e,
|
|
@@ -1831,18 +1830,18 @@ W.$inject = [
|
|
|
1831
1830
|
marker: t,
|
|
1832
1831
|
add: !!n
|
|
1833
1832
|
}));
|
|
1834
|
-
},
|
|
1833
|
+
}, U.prototype.addMarker = function(e, t) {
|
|
1835
1834
|
this._updateMarker(e, t, !0);
|
|
1836
|
-
},
|
|
1835
|
+
}, U.prototype.removeMarker = function(e, t) {
|
|
1837
1836
|
this._updateMarker(e, t, !1);
|
|
1838
|
-
},
|
|
1837
|
+
}, U.prototype.hasMarker = function(e, t) {
|
|
1839
1838
|
return e.id || (e = this._elementRegistry.get(e)), bt(this.getGraphics(e)).has(t);
|
|
1840
|
-
},
|
|
1839
|
+
}, U.prototype.toggleMarker = function(e, t) {
|
|
1841
1840
|
this.hasMarker(e, t) ? this.removeMarker(e, t) : this.addMarker(e, t);
|
|
1842
|
-
},
|
|
1841
|
+
}, U.prototype.getRootElement = function() {
|
|
1843
1842
|
let e = this._rootElement;
|
|
1844
1843
|
return e || this._planes.length ? e : this.setRootElement(this.addRootElement(null));
|
|
1845
|
-
},
|
|
1844
|
+
}, U.prototype.addRootElement = function(e) {
|
|
1846
1845
|
let t = this._rootsIdx++;
|
|
1847
1846
|
e ||= {
|
|
1848
1847
|
id: "__implicitroot_" + t,
|
|
@@ -1856,38 +1855,38 @@ W.$inject = [
|
|
|
1856
1855
|
rootElement: e,
|
|
1857
1856
|
layer: r
|
|
1858
1857
|
}), e;
|
|
1859
|
-
},
|
|
1858
|
+
}, U.prototype.removeRootElement = function(e) {
|
|
1860
1859
|
if (typeof e == "string" && (e = this._elementRegistry.get(e)), this._findPlaneForRoot(e)) return this._removeRoot(e), this._removeLayer(e.layer), this._planes = this._planes.filter(function(t) {
|
|
1861
1860
|
return t.rootElement !== e;
|
|
1862
1861
|
}), this._rootElement === e && (this._rootElement = null), e;
|
|
1863
|
-
},
|
|
1862
|
+
}, U.prototype.setRootElement = function(e, t) {
|
|
1864
1863
|
if (M(t)) throw Error("override not supported");
|
|
1865
1864
|
if (e === this._rootElement) return;
|
|
1866
1865
|
let n;
|
|
1867
1866
|
if (!e) throw Error("rootElement required");
|
|
1868
1867
|
return n = this._findPlaneForRoot(e), n || (e = this.addRootElement(e)), this._setRoot(e), e;
|
|
1869
|
-
},
|
|
1868
|
+
}, U.prototype._removeRoot = function(e) {
|
|
1870
1869
|
let t = this._elementRegistry, n = this._eventBus;
|
|
1871
1870
|
n.fire("root.remove", { element: e }), n.fire("root.removed", { element: e }), t.remove(e);
|
|
1872
|
-
},
|
|
1871
|
+
}, U.prototype._addRoot = function(e, t) {
|
|
1873
1872
|
let n = this._elementRegistry, r = this._eventBus;
|
|
1874
1873
|
r.fire("root.add", { element: e }), n.add(e, t), r.fire("root.added", {
|
|
1875
1874
|
element: e,
|
|
1876
1875
|
gfx: t
|
|
1877
1876
|
});
|
|
1878
|
-
},
|
|
1877
|
+
}, U.prototype._setRoot = function(e, t) {
|
|
1879
1878
|
let n = this._rootElement;
|
|
1880
1879
|
n && (this._elementRegistry.updateGraphics(n, null, !0), this.hideLayer(n.layer)), e && (t ||= this._findPlaneForRoot(e).layer, this._elementRegistry.updateGraphics(e, this._svg, !0), this.showLayer(e.layer)), this._rootElement = e, this._eventBus.fire("root.set", { element: e });
|
|
1881
|
-
},
|
|
1880
|
+
}, U.prototype._ensureValid = function(e, t) {
|
|
1882
1881
|
if (!t.id) throw Error("element must have an id");
|
|
1883
1882
|
if (this._elementRegistry.get(t.id)) throw Error("element <" + t.id + "> already exists");
|
|
1884
1883
|
let n = dr[e];
|
|
1885
1884
|
if (!fe(n, function(e) {
|
|
1886
1885
|
return t[e] !== void 0;
|
|
1887
1886
|
})) throw Error("must supply { " + n.join(", ") + " } with " + e);
|
|
1888
|
-
},
|
|
1887
|
+
}, U.prototype._setParent = function(e, t, n) {
|
|
1889
1888
|
Nn(t.children, e, n), e.parent = t;
|
|
1890
|
-
},
|
|
1889
|
+
}, U.prototype._addElement = function(e, t, n, r) {
|
|
1891
1890
|
n ||= this.getRootElement();
|
|
1892
1891
|
let i = this._eventBus, a = this._graphicsFactory;
|
|
1893
1892
|
this._ensureValid(e, t), i.fire(e + ".add", {
|
|
@@ -1899,24 +1898,24 @@ W.$inject = [
|
|
|
1899
1898
|
element: t,
|
|
1900
1899
|
gfx: o
|
|
1901
1900
|
}), t;
|
|
1902
|
-
},
|
|
1901
|
+
}, U.prototype.addShape = function(e, t, n) {
|
|
1903
1902
|
return this._addElement("shape", e, t, n);
|
|
1904
|
-
},
|
|
1903
|
+
}, U.prototype.addConnection = function(e, t, n) {
|
|
1905
1904
|
return this._addElement("connection", e, t, n);
|
|
1906
|
-
},
|
|
1905
|
+
}, U.prototype._removeElement = function(e, t) {
|
|
1907
1906
|
let n = this._elementRegistry, r = this._graphicsFactory, i = this._eventBus;
|
|
1908
1907
|
if (e = n.get(e.id || e), e) return i.fire(t + ".remove", { element: e }), r.remove(e), Mn(e.parent && e.parent.children, e), e.parent = null, i.fire(t + ".removed", { element: e }), n.remove(e), e;
|
|
1909
|
-
},
|
|
1908
|
+
}, U.prototype.removeShape = function(e) {
|
|
1910
1909
|
return this._removeElement(e, "shape");
|
|
1911
|
-
},
|
|
1910
|
+
}, U.prototype.removeConnection = function(e) {
|
|
1912
1911
|
return this._removeElement(e, "connection");
|
|
1913
|
-
},
|
|
1912
|
+
}, U.prototype.getGraphics = function(e, t) {
|
|
1914
1913
|
return this._elementRegistry.getGraphics(e, t);
|
|
1915
|
-
},
|
|
1914
|
+
}, U.prototype._changeViewbox = function(e) {
|
|
1916
1915
|
this._eventBus.fire("canvas.viewbox.changing"), e.apply(this), this._cachedViewbox = null, this._viewboxChanged();
|
|
1917
|
-
},
|
|
1916
|
+
}, U.prototype._viewboxChanged = function() {
|
|
1918
1917
|
this._eventBus.fire("canvas.viewbox.changed", { viewbox: this.viewbox() });
|
|
1919
|
-
},
|
|
1918
|
+
}, U.prototype.viewbox = function(e) {
|
|
1920
1919
|
if (e === void 0 && this._cachedViewbox) return this._cachedViewbox;
|
|
1921
1920
|
let t = this._viewport, n = this.getSize(), r, i, a, o, s, c, l;
|
|
1922
1921
|
if (e) this._changeViewbox(function() {
|
|
@@ -1937,10 +1936,10 @@ W.$inject = [
|
|
|
1937
1936
|
outer: n
|
|
1938
1937
|
}, e;
|
|
1939
1938
|
return e;
|
|
1940
|
-
},
|
|
1939
|
+
}, U.prototype.scroll = function(e) {
|
|
1941
1940
|
let t = this._viewport, n = t.getCTM();
|
|
1942
1941
|
return e && this._changeViewbox(function() {
|
|
1943
|
-
e =
|
|
1942
|
+
e = R({
|
|
1944
1943
|
dx: 0,
|
|
1945
1944
|
dy: 0
|
|
1946
1945
|
}, e || {}), n = this._svg.createSVGMatrix().translate(e.dx, e.dy).multiply(n), fr(t, n);
|
|
@@ -1948,7 +1947,7 @@ W.$inject = [
|
|
|
1948
1947
|
x: n.e,
|
|
1949
1948
|
y: n.f
|
|
1950
1949
|
};
|
|
1951
|
-
},
|
|
1950
|
+
}, U.prototype.scrollToElement = function(e, t) {
|
|
1952
1951
|
let n = 100;
|
|
1953
1952
|
typeof e == "string" && (e = this._elementRegistry.get(e));
|
|
1954
1953
|
let r = this.findRoot(e);
|
|
@@ -1970,7 +1969,7 @@ W.$inject = [
|
|
|
1970
1969
|
dx: -c * s,
|
|
1971
1970
|
dy: -l * s
|
|
1972
1971
|
});
|
|
1973
|
-
},
|
|
1972
|
+
}, U.prototype.zoom = function(e, t) {
|
|
1974
1973
|
if (!e) return this.viewbox(e).scale;
|
|
1975
1974
|
if (e === "fit-viewport") return this._fitViewport(t);
|
|
1976
1975
|
let n, r;
|
|
@@ -1985,7 +1984,7 @@ function fr(e, t) {
|
|
|
1985
1984
|
let n = "matrix(" + t.a + "," + t.b + "," + t.c + "," + t.d + "," + t.e + "," + t.f + ")";
|
|
1986
1985
|
e.setAttribute("transform", n);
|
|
1987
1986
|
}
|
|
1988
|
-
|
|
1987
|
+
U.prototype._fitViewport = function(e) {
|
|
1989
1988
|
let t = this.viewbox(), n = t.outer, r = t.inner, i, a;
|
|
1990
1989
|
return r.x >= 0 && r.y >= 0 && r.x + r.width <= n.width && r.y + r.height <= n.height && !e ? a = {
|
|
1991
1990
|
x: 0,
|
|
@@ -1998,17 +1997,17 @@ W.prototype._fitViewport = function(e) {
|
|
|
1998
1997
|
width: n.width / i,
|
|
1999
1998
|
height: n.height / i
|
|
2000
1999
|
}), this.viewbox(a), this.viewbox(!1).scale;
|
|
2001
|
-
},
|
|
2000
|
+
}, U.prototype._setZoom = function(e, t) {
|
|
2002
2001
|
let n = this._svg, r = this._viewport, i = n.createSVGMatrix(), a = n.createSVGPoint(), o, s, c, l, u;
|
|
2003
2002
|
c = r.getCTM();
|
|
2004
2003
|
let d = c.a;
|
|
2005
|
-
return t ? (o =
|
|
2006
|
-
},
|
|
2004
|
+
return t ? (o = R(a, t), s = o.matrixTransform(c.inverse()), l = i.translate(s.x, s.y).scale(1 / d * e).translate(-s.x, -s.y), u = c.multiply(l)) : u = i.scale(e), fr(this._viewport, u), u;
|
|
2005
|
+
}, U.prototype.getSize = function() {
|
|
2007
2006
|
return {
|
|
2008
2007
|
width: this._container.clientWidth,
|
|
2009
2008
|
height: this._container.clientHeight
|
|
2010
2009
|
};
|
|
2011
|
-
},
|
|
2010
|
+
}, U.prototype.getAbsoluteBBox = function(e) {
|
|
2012
2011
|
let t = this.viewbox(), n;
|
|
2013
2012
|
return n = e.waypoints ? this.getGraphics(e).getBBox() : e, {
|
|
2014
2013
|
x: n.x * t.scale - t.x * t.scale,
|
|
@@ -2016,7 +2015,7 @@ W.prototype._fitViewport = function(e) {
|
|
|
2016
2015
|
width: n.width * t.scale,
|
|
2017
2016
|
height: n.height * t.scale
|
|
2018
2017
|
};
|
|
2019
|
-
},
|
|
2018
|
+
}, U.prototype.resized = function() {
|
|
2020
2019
|
delete this._cachedViewbox, this._eventBus.fire("canvas.resized");
|
|
2021
2020
|
};
|
|
2022
2021
|
//#endregion
|
|
@@ -2027,14 +2026,14 @@ function mr(e) {
|
|
|
2027
2026
|
}
|
|
2028
2027
|
mr.$inject = ["eventBus"], mr.prototype.add = function(e, t, n) {
|
|
2029
2028
|
var r = e.id;
|
|
2030
|
-
this._validateId(r),
|
|
2029
|
+
this._validateId(r), V(t, pr, r), n && V(n, pr, r), this._elements[r] = {
|
|
2031
2030
|
element: e,
|
|
2032
2031
|
gfx: t,
|
|
2033
2032
|
secondaryGfx: n
|
|
2034
2033
|
};
|
|
2035
2034
|
}, mr.prototype.remove = function(e) {
|
|
2036
2035
|
var t = this._elements, n = e.id || e, r = n && t[n];
|
|
2037
|
-
r && (
|
|
2036
|
+
r && (V(r.gfx, pr, ""), r.secondaryGfx && V(r.secondaryGfx, pr, ""), delete t[n]);
|
|
2038
2037
|
}, mr.prototype.updateId = function(e, t) {
|
|
2039
2038
|
this._validateId(t), typeof e == "string" && (e = this.get(e)), this._eventBus.fire("element.updateId", {
|
|
2040
2039
|
element: e,
|
|
@@ -2044,9 +2043,9 @@ mr.$inject = ["eventBus"], mr.prototype.add = function(e, t, n) {
|
|
|
2044
2043
|
this.remove(e), e.id = t, this.add(e, n, r);
|
|
2045
2044
|
}, mr.prototype.updateGraphics = function(e, t, n) {
|
|
2046
2045
|
var r = e.id || e, i = this._elements[r];
|
|
2047
|
-
return n ? i.secondaryGfx = t : i.gfx = t, t &&
|
|
2046
|
+
return n ? i.secondaryGfx = t : i.gfx = t, t && V(t, pr, r), t;
|
|
2048
2047
|
}, mr.prototype.get = function(e) {
|
|
2049
|
-
var t = typeof e == "string" ? e : e &&
|
|
2048
|
+
var t = typeof e == "string" ? e : e && V(e, pr), n = this._elements[t];
|
|
2050
2049
|
return n && n.element;
|
|
2051
2050
|
}, mr.prototype.filter = function(e) {
|
|
2052
2051
|
var t = [];
|
|
@@ -2077,7 +2076,7 @@ mr.$inject = ["eventBus"], mr.prototype.add = function(e, t, n) {
|
|
|
2077
2076
|
};
|
|
2078
2077
|
//#endregion
|
|
2079
2078
|
//#region node_modules/object-refs/lib/collection.js
|
|
2080
|
-
var hr = /* @__PURE__ */
|
|
2079
|
+
var hr = /* @__PURE__ */ S(((e, t) => {
|
|
2081
2080
|
function n(e, t, n, r) {
|
|
2082
2081
|
var i = n.inverse;
|
|
2083
2082
|
return Object.defineProperty(e, "remove", { value: function(e) {
|
|
@@ -2098,7 +2097,7 @@ var hr = /* @__PURE__ */ C(((e, t) => {
|
|
|
2098
2097
|
return e.__refs_collection === !0;
|
|
2099
2098
|
}
|
|
2100
2099
|
t.exports.extend = n, t.exports.isExtended = r;
|
|
2101
|
-
})), gr = /* @__PURE__ */
|
|
2100
|
+
})), gr = /* @__PURE__ */ S(((e, t) => {
|
|
2102
2101
|
var n = hr();
|
|
2103
2102
|
function r(e, t) {
|
|
2104
2103
|
return Object.prototype.hasOwnProperty.call(e, t.name || t);
|
|
@@ -2148,7 +2147,7 @@ var hr = /* @__PURE__ */ C(((e, t) => {
|
|
|
2148
2147
|
}, o.prototype.set = function(e, t, n) {
|
|
2149
2148
|
e && (this.ensureBound(e, t), t.collection ? this.ensureRefsCollection(e, t).add(n) : e[t.name] = n);
|
|
2150
2149
|
}, t.exports = o;
|
|
2151
|
-
})), _r = /* @__PURE__ */
|
|
2150
|
+
})), _r = /* @__PURE__ */ T((/* @__PURE__ */ S(((e, t) => {
|
|
2152
2151
|
t.exports = gr(), t.exports.Collection = hr();
|
|
2153
2152
|
})))()), vr = new _r.default({
|
|
2154
2153
|
name: "children",
|
|
@@ -2182,19 +2181,19 @@ function Cr() {
|
|
|
2182
2181
|
function wr() {
|
|
2183
2182
|
Cr.call(this), vr.bind(this, "children"), br.bind(this, "host"), br.bind(this, "attachers");
|
|
2184
2183
|
}
|
|
2185
|
-
|
|
2184
|
+
E(wr, Cr);
|
|
2186
2185
|
function Tr() {
|
|
2187
2186
|
wr.call(this);
|
|
2188
2187
|
}
|
|
2189
|
-
|
|
2188
|
+
E(Tr, wr);
|
|
2190
2189
|
function Er() {
|
|
2191
2190
|
wr.call(this), yr.bind(this, "labelTarget");
|
|
2192
2191
|
}
|
|
2193
|
-
|
|
2192
|
+
E(Er, wr);
|
|
2194
2193
|
function Dr() {
|
|
2195
2194
|
Cr.call(this), xr.bind(this, "source"), Sr.bind(this, "target");
|
|
2196
2195
|
}
|
|
2197
|
-
|
|
2196
|
+
E(Dr, Cr);
|
|
2198
2197
|
var Or = {
|
|
2199
2198
|
connection: Dr,
|
|
2200
2199
|
shape: wr,
|
|
@@ -2204,7 +2203,7 @@ var Or = {
|
|
|
2204
2203
|
function kr(e, t) {
|
|
2205
2204
|
var n = Or[e];
|
|
2206
2205
|
if (!n) throw Error("unknown type: <" + e + ">");
|
|
2207
|
-
return
|
|
2206
|
+
return R(new n(), t);
|
|
2208
2207
|
}
|
|
2209
2208
|
//#endregion
|
|
2210
2209
|
//#region node_modules/diagram-js/lib/core/ElementFactory.js
|
|
@@ -2220,7 +2219,7 @@ Ar.prototype.createRoot = function(e) {
|
|
|
2220
2219
|
}, Ar.prototype.createConnection = function(e) {
|
|
2221
2220
|
return this.create("connection", e);
|
|
2222
2221
|
}, Ar.prototype.create = function(e, t) {
|
|
2223
|
-
return t =
|
|
2222
|
+
return t = R({}, t || {}), t.id ||= e + "_" + this._uid++, kr(e, t);
|
|
2224
2223
|
};
|
|
2225
2224
|
//#endregion
|
|
2226
2225
|
//#region node_modules/diagram-js/lib/core/EventBus.js
|
|
@@ -2229,9 +2228,9 @@ function Pr() {
|
|
|
2229
2228
|
this._listeners = {}, this.on("diagram.destroy", 1, this._destroy, this);
|
|
2230
2229
|
}
|
|
2231
2230
|
Pr.prototype.on = function(e, t, n, r) {
|
|
2232
|
-
if (e = N(e) ? e : [e],
|
|
2231
|
+
if (e = N(e) ? e : [e], re(t) && (r = n, n = t, t = Mr), !F(t)) throw Error("priority must be a number");
|
|
2233
2232
|
var i = n;
|
|
2234
|
-
r && (i =
|
|
2233
|
+
r && (i = L(n, r), i[jr] = n[jr] || n);
|
|
2235
2234
|
var a = this;
|
|
2236
2235
|
e.forEach(function(e) {
|
|
2237
2236
|
a._addListener(e, {
|
|
@@ -2242,7 +2241,7 @@ Pr.prototype.on = function(e, t, n, r) {
|
|
|
2242
2241
|
});
|
|
2243
2242
|
}, Pr.prototype.once = function(e, t, n, r) {
|
|
2244
2243
|
var i = this;
|
|
2245
|
-
if (
|
|
2244
|
+
if (re(t) && (r = n, n = t, t = Mr), !F(t)) throw Error("priority must be a number");
|
|
2246
2245
|
function a() {
|
|
2247
2246
|
a.__isTomb = !0;
|
|
2248
2247
|
var t = n.apply(r, arguments);
|
|
@@ -2320,7 +2319,7 @@ Fr.prototype.stopPropagation = function() {
|
|
|
2320
2319
|
}, Fr.prototype.preventDefault = function() {
|
|
2321
2320
|
this.defaultPrevented = !0;
|
|
2322
2321
|
}, Fr.prototype.init = function(e) {
|
|
2323
|
-
|
|
2322
|
+
R(this, e || {});
|
|
2324
2323
|
};
|
|
2325
2324
|
function Ir(e, t) {
|
|
2326
2325
|
return e.apply(null, t);
|
|
@@ -2362,29 +2361,29 @@ function Hr(e, t) {
|
|
|
2362
2361
|
}
|
|
2363
2362
|
Hr.$inject = ["eventBus", "elementRegistry"], Hr.prototype._getChildrenContainer = function(e) {
|
|
2364
2363
|
var t = this._elementRegistry.getGraphics(e), n;
|
|
2365
|
-
return e.parent ? (n = Rr(t), n || (n =
|
|
2364
|
+
return e.parent ? (n = Rr(t), n || (n = H("g"), bt(n).add("djs-children"), B(t.parentNode, n))) : n = t, n;
|
|
2366
2365
|
}, Hr.prototype._clear = function(e) {
|
|
2367
2366
|
var t = Lr(e);
|
|
2368
2367
|
return Ge(t), t;
|
|
2369
2368
|
}, Hr.prototype._createContainer = function(e, t, n, r) {
|
|
2370
|
-
var i =
|
|
2371
|
-
bt(i).add("djs-group"), n === void 0 ?
|
|
2372
|
-
var a =
|
|
2373
|
-
bt(a).add("djs-element"), bt(a).add("djs-" + e), r && bt(a).add("djs-frame"),
|
|
2374
|
-
var o =
|
|
2375
|
-
return bt(o).add("djs-visual"),
|
|
2369
|
+
var i = H("g");
|
|
2370
|
+
bt(i).add("djs-group"), n === void 0 ? B(t, i) : Ur(i, t, t.childNodes[n]);
|
|
2371
|
+
var a = H("g");
|
|
2372
|
+
bt(a).add("djs-element"), bt(a).add("djs-" + e), r && bt(a).add("djs-frame"), B(i, a);
|
|
2373
|
+
var o = H("g");
|
|
2374
|
+
return bt(o).add("djs-visual"), B(a, o), a;
|
|
2376
2375
|
}, Hr.prototype.create = function(e, t, n) {
|
|
2377
2376
|
var r = this._getChildrenContainer(t.parent);
|
|
2378
2377
|
return this._createContainer(e, r, n, En(t));
|
|
2379
2378
|
}, Hr.prototype.updateContainments = function(e) {
|
|
2380
2379
|
var t = this, n = this._elementRegistry;
|
|
2381
|
-
|
|
2380
|
+
I(de(e, function(e, t) {
|
|
2382
2381
|
return t.parent && (e[t.parent.id] = t.parent), e;
|
|
2383
2382
|
}, {}), function(e) {
|
|
2384
2383
|
var r = e.children;
|
|
2385
2384
|
if (r) {
|
|
2386
2385
|
var i = t._getChildrenContainer(e);
|
|
2387
|
-
|
|
2386
|
+
I(r.slice().reverse(), function(e) {
|
|
2388
2387
|
Ur(n.getGraphics(e).parentNode, i);
|
|
2389
2388
|
});
|
|
2390
2389
|
}
|
|
@@ -2409,7 +2408,7 @@ Hr.$inject = ["eventBus", "elementRegistry"], Hr.prototype._getChildrenContainer
|
|
|
2409
2408
|
if (e === "shape") this.drawShape(r, t), Br(n, t.x, t.y);
|
|
2410
2409
|
else if (e === "connection") this.drawConnection(r, t);
|
|
2411
2410
|
else throw Error("unknown type: " + e);
|
|
2412
|
-
t.hidden ?
|
|
2411
|
+
t.hidden ? V(n, "display", "none") : V(n, "display", "block");
|
|
2413
2412
|
}
|
|
2414
2413
|
}, Hr.prototype.remove = function(e) {
|
|
2415
2414
|
Ut(this._elementRegistry.getGraphics(e).parentNode);
|
|
@@ -2423,7 +2422,7 @@ function Ur(e, t, n) {
|
|
|
2423
2422
|
var Wr = {
|
|
2424
2423
|
__depends__: [jn],
|
|
2425
2424
|
__init__: ["canvas"],
|
|
2426
|
-
canvas: ["type",
|
|
2425
|
+
canvas: ["type", U],
|
|
2427
2426
|
elementRegistry: ["type", mr],
|
|
2428
2427
|
elementFactory: ["type", Ar],
|
|
2429
2428
|
eventBus: ["type", Pr],
|
|
@@ -2459,7 +2458,7 @@ function Yr(e, t) {
|
|
|
2459
2458
|
}
|
|
2460
2459
|
Yr.prototype.createType = function(e) {
|
|
2461
2460
|
var t = this.model, n = this.properties, r = Object.create(Jr.prototype);
|
|
2462
|
-
|
|
2461
|
+
I(e.properties, function(e) {
|
|
2463
2462
|
!e.isMany && e.default !== void 0 && (r[e.name] = e.default);
|
|
2464
2463
|
}), n.defineModel(r, t), n.defineDescriptor(r, e);
|
|
2465
2464
|
var i = e.ns.name;
|
|
@@ -2467,7 +2466,7 @@ Yr.prototype.createType = function(e) {
|
|
|
2467
2466
|
n.define(this, "$type", {
|
|
2468
2467
|
value: i,
|
|
2469
2468
|
enumerable: !0
|
|
2470
|
-
}), n.define(this, "$attrs", { value: {} }), n.define(this, "$parent", { writable: !0 }),
|
|
2469
|
+
}), n.define(this, "$attrs", { value: {} }), n.define(this, "$parent", { writable: !0 }), I(e, L(function(e, t) {
|
|
2471
2470
|
this.set(t, e);
|
|
2472
2471
|
}, this));
|
|
2473
2472
|
}
|
|
@@ -2552,8 +2551,8 @@ $r.prototype.build = function() {
|
|
|
2552
2551
|
}, $r.prototype.addTrait = function(e, t) {
|
|
2553
2552
|
t && this.assertNotTrait(e);
|
|
2554
2553
|
var n = this.allTypesByName, r = this.allTypes, i = e.name;
|
|
2555
|
-
i in n || (
|
|
2556
|
-
n =
|
|
2554
|
+
i in n || (I(e.properties, L(function(n) {
|
|
2555
|
+
n = R({}, n, {
|
|
2557
2556
|
name: n.ns.localName,
|
|
2558
2557
|
inherited: t
|
|
2559
2558
|
}), Object.defineProperty(n, "definedBy", { value: e });
|
|
@@ -2562,37 +2561,37 @@ $r.prototype.build = function() {
|
|
|
2562
2561
|
}, this)), r.push(e), n[i] = e);
|
|
2563
2562
|
};
|
|
2564
2563
|
function ei(e, t) {
|
|
2565
|
-
this.packageMap = {}, this.typeMap = {}, this.packages = [], this.properties = t,
|
|
2564
|
+
this.packageMap = {}, this.typeMap = {}, this.packages = [], this.properties = t, I(e, L(this.registerPackage, this));
|
|
2566
2565
|
}
|
|
2567
2566
|
ei.prototype.getPackage = function(e) {
|
|
2568
2567
|
return this.packageMap[e];
|
|
2569
2568
|
}, ei.prototype.getPackages = function() {
|
|
2570
2569
|
return this.packages;
|
|
2571
2570
|
}, ei.prototype.registerPackage = function(e) {
|
|
2572
|
-
e =
|
|
2571
|
+
e = R({}, e);
|
|
2573
2572
|
var t = this.packageMap;
|
|
2574
|
-
ti(t, e, "prefix"), ti(t, e, "uri"),
|
|
2573
|
+
ti(t, e, "prefix"), ti(t, e, "uri"), I(e.types, L(function(t) {
|
|
2575
2574
|
this.registerType(t, e);
|
|
2576
2575
|
}, this)), t[e.uri] = t[e.prefix] = e, this.packages.push(e);
|
|
2577
2576
|
}, ei.prototype.registerType = function(e, t) {
|
|
2578
|
-
e =
|
|
2577
|
+
e = R({}, e, {
|
|
2579
2578
|
superClass: (e.superClass || []).slice(),
|
|
2580
2579
|
extends: (e.extends || []).slice(),
|
|
2581
2580
|
properties: (e.properties || []).slice(),
|
|
2582
|
-
meta:
|
|
2581
|
+
meta: R(e.meta || {})
|
|
2583
2582
|
});
|
|
2584
2583
|
var n = Qr(e.name, t.prefix), r = n.name, i = {};
|
|
2585
|
-
|
|
2584
|
+
I(e.properties, L(function(e) {
|
|
2586
2585
|
var t = Qr(e.name, n.prefix), r = t.name;
|
|
2587
|
-
Zr(e.type) || (e.type = Qr(e.type, t.prefix).name),
|
|
2586
|
+
Zr(e.type) || (e.type = Qr(e.type, t.prefix).name), R(e, {
|
|
2588
2587
|
ns: t,
|
|
2589
2588
|
name: r
|
|
2590
2589
|
}), i[r] = e;
|
|
2591
|
-
}, this)),
|
|
2590
|
+
}, this)), R(e, {
|
|
2592
2591
|
ns: n,
|
|
2593
2592
|
name: r,
|
|
2594
2593
|
propertiesByName: i
|
|
2595
|
-
}),
|
|
2594
|
+
}), I(e.extends, L(function(e) {
|
|
2596
2595
|
var t = Qr(e, n.prefix), i = this.typeMap[t.name];
|
|
2597
2596
|
i.traits = i.traits || [], i.traits.push(r);
|
|
2598
2597
|
}, this)), this.definePackage(e, t), this.typeMap[r] = e;
|
|
@@ -2609,7 +2608,7 @@ ei.prototype.getPackage = function(e) {
|
|
|
2609
2608
|
return a(e, !1);
|
|
2610
2609
|
}
|
|
2611
2610
|
if (!r) throw Error("unknown type <" + e.name + ">");
|
|
2612
|
-
|
|
2611
|
+
I(r.superClass, n ? o : s), t(r, !n), I(r.traits, o);
|
|
2613
2612
|
}, ei.prototype.getEffectiveDescriptor = function(e) {
|
|
2614
2613
|
var t = Qr(e), n = new $r(t);
|
|
2615
2614
|
this.mapTypes(t, function(e, t) {
|
|
@@ -2628,7 +2627,7 @@ function ni(e) {
|
|
|
2628
2627
|
this.model = e;
|
|
2629
2628
|
}
|
|
2630
2629
|
ni.prototype.set = function(e, t, n) {
|
|
2631
|
-
if (!
|
|
2630
|
+
if (!ie(t) || !t.length) throw TypeError("property name must be a non-empty string");
|
|
2632
2631
|
var r = this.getProperty(e, t), i = r && r.name;
|
|
2633
2632
|
ri(n) ? r ? delete e[i] : delete e.$attrs[ai(t)] : r ? i in e ? e[i] = n : ii(e, r, n) : e.$attrs[ai(t)] = n;
|
|
2634
2633
|
}, ni.prototype.get = function(e, t) {
|
|
@@ -2639,7 +2638,7 @@ ni.prototype.set = function(e, t, n) {
|
|
|
2639
2638
|
}, ni.prototype.define = function(e, t, n) {
|
|
2640
2639
|
if (!n.writable) {
|
|
2641
2640
|
var r = n.value;
|
|
2642
|
-
n =
|
|
2641
|
+
n = R({}, n, { get: function() {
|
|
2643
2642
|
return r;
|
|
2644
2643
|
} }), delete n.value;
|
|
2645
2644
|
}
|
|
@@ -2682,7 +2681,7 @@ oi.prototype.create = function(e, t) {
|
|
|
2682
2681
|
if (!n) throw Error("unknown type <" + e + ">");
|
|
2683
2682
|
return new n(t);
|
|
2684
2683
|
}, oi.prototype.getType = function(e) {
|
|
2685
|
-
var t = this.typeCache, n =
|
|
2684
|
+
var t = this.typeCache, n = ie(e) ? e : e.ns.name, r = t[n];
|
|
2686
2685
|
return r ||= (e = this.registry.getEffectiveDescriptor(n), t[n] = this.factory.createType(e)), r;
|
|
2687
2686
|
}, oi.prototype.createAny = function(e, t, n) {
|
|
2688
2687
|
var r = Qr(e), i = {
|
|
@@ -2717,7 +2716,7 @@ oi.prototype.create = function(e, t) {
|
|
|
2717
2716
|
}), this.properties.define(i, "$instanceOf", {
|
|
2718
2717
|
enumerable: !1,
|
|
2719
2718
|
writable: !0
|
|
2720
|
-
}),
|
|
2719
|
+
}), I(n, function(e, t) {
|
|
2721
2720
|
P(e) && e.value !== void 0 ? i[e.name] = e.value : i[t] = e;
|
|
2722
2721
|
}), i;
|
|
2723
2722
|
}, oi.prototype.getPackage = function(e) {
|
|
@@ -2842,10 +2841,10 @@ function Ti(e) {
|
|
|
2842
2841
|
h = !0;
|
|
2843
2842
|
};
|
|
2844
2843
|
function y(e) {
|
|
2845
|
-
var o = p ? [] : null, s = p ? Si(g) : null, m, y = [], b = 0, x = !1, S = !1, C = 0, w = 0, T, E, D, O, k,
|
|
2846
|
-
function
|
|
2847
|
-
if (
|
|
2848
|
-
var e, t, n, r = p && s.xmlns, i = p && f ? [] : null, a =
|
|
2844
|
+
var o = p ? [] : null, s = p ? Si(g) : null, m, y = [], b = 0, x = !1, S = !1, C = 0, w = 0, T, E, D, O, k, ee, A, te, j, M = "", ne = 0, N;
|
|
2845
|
+
function P() {
|
|
2846
|
+
if (N !== null) return N;
|
|
2847
|
+
var e, t, n, r = p && s.xmlns, i = p && f ? [] : null, a = ne, o = M, c = o.length, l, u, d, m, h, _ = {}, y = {}, x, S, C;
|
|
2849
2848
|
parseAttr: for (; a < c; a++) if (x = !1, S = o.charCodeAt(a), !(S === 32 || S < 14 && S > 8)) {
|
|
2850
2849
|
for ((S < 65 || S > 122 || S > 90 && S < 97) && S !== 95 && S !== 58 && (v("illegal first char attribute name"), x = !0), C = a + 1; C < c; C++) if (S = o.charCodeAt(C), !(S > 96 && S < 123 || S > 64 && S < 91 || S > 47 && S < 59 || S === 46 || S === 45 || S === 95)) {
|
|
2851
2850
|
if (S === 32 || S < 14 && S > 8) {
|
|
@@ -2903,9 +2902,9 @@ function Ti(e) {
|
|
|
2903
2902
|
}
|
|
2904
2903
|
_[h] = d;
|
|
2905
2904
|
}
|
|
2906
|
-
return
|
|
2905
|
+
return N = _;
|
|
2907
2906
|
}
|
|
2908
|
-
function
|
|
2907
|
+
function F() {
|
|
2909
2908
|
for (var t = /(\r\n|\r|\n)/g, n = 0, r = 0, i = 0, a = w, o, s; C >= i && (o = t.exec(e), !(!o || (a = o[0].length + o.index, a > C)));) n += 1, i = a;
|
|
2910
2909
|
return C == -1 ? (r = a, s = e.substring(w)) : w === 0 ? s = e.substring(w, C) : (r = C - i, s = w == -1 ? e.substring(C) : e.substring(C, w + 1)), {
|
|
2911
2910
|
data: s,
|
|
@@ -2913,14 +2912,14 @@ function Ti(e) {
|
|
|
2913
2912
|
column: r
|
|
2914
2913
|
};
|
|
2915
2914
|
}
|
|
2916
|
-
for (d =
|
|
2915
|
+
for (d = F, t && (j = Object.create({}, {
|
|
2917
2916
|
name: yi(function() {
|
|
2918
|
-
return
|
|
2917
|
+
return A;
|
|
2919
2918
|
}),
|
|
2920
2919
|
originalName: yi(function() {
|
|
2921
|
-
return
|
|
2920
|
+
return te;
|
|
2922
2921
|
}),
|
|
2923
|
-
attrs: yi(
|
|
2922
|
+
attrs: yi(P),
|
|
2924
2923
|
ns: yi(function() {
|
|
2925
2924
|
return s;
|
|
2926
2925
|
})
|
|
@@ -2970,31 +2969,31 @@ function Ti(e) {
|
|
|
2970
2969
|
w += 1;
|
|
2971
2970
|
continue;
|
|
2972
2971
|
}
|
|
2973
|
-
if (
|
|
2972
|
+
if (N = {}, O === 47) {
|
|
2974
2973
|
if (x = !1, S = !0, !y.length) return _("missing open tag");
|
|
2975
|
-
if (T =
|
|
2974
|
+
if (T = A = y.pop(), D = C + 2 + T.length, e.substring(C + 2, D) !== T) return _("closing tag mismatch");
|
|
2976
2975
|
for (; D < w; D++) if (O = e.charCodeAt(D), !(O === 32 || O > 8 && O < 14)) return _("close tag");
|
|
2977
2976
|
} else {
|
|
2978
|
-
if (e.charCodeAt(w - 1) === 47 ? (T =
|
|
2977
|
+
if (e.charCodeAt(w - 1) === 47 ? (T = A = e.substring(C + 1, w - 1), x = !0, S = !0) : (T = A = e.substring(C + 1, w), x = !0, S = !1), !(O > 96 && O < 123 || O > 64 && O < 91 || O === 95 || O === 58)) return _("illegal first char nodeName");
|
|
2979
2978
|
for (D = 1, E = T.length; D < E; D++) if (O = T.charCodeAt(D), !(O > 96 && O < 123 || O > 64 && O < 91 || O > 47 && O < 59 || O === 45 || O === 95 || O == 46)) {
|
|
2980
2979
|
if (O === 32 || O < 14 && O > 8) {
|
|
2981
|
-
|
|
2980
|
+
A = T.substring(0, D), N = null;
|
|
2982
2981
|
break;
|
|
2983
2982
|
}
|
|
2984
2983
|
return _("invalid nodeName");
|
|
2985
2984
|
}
|
|
2986
|
-
S || y.push(
|
|
2985
|
+
S || y.push(A);
|
|
2987
2986
|
}
|
|
2988
2987
|
if (p) {
|
|
2989
|
-
if (m = s, x && (S || o.push(m),
|
|
2990
|
-
if (
|
|
2991
|
-
|
|
2992
|
-
} else
|
|
2993
|
-
|
|
2988
|
+
if (m = s, x && (S || o.push(m), N === null && (f = T.indexOf("xmlns", D) !== -1) && (ne = D, M = T, P(), f = !1)), te = A, O = A.indexOf(":"), O !== -1) {
|
|
2989
|
+
if (ee = s[A.substring(0, O)], !ee) return _("missing namespace on <" + te + ">");
|
|
2990
|
+
A = A.substr(O + 1);
|
|
2991
|
+
} else ee = s.xmlns;
|
|
2992
|
+
ee && (A = ee + ":" + A);
|
|
2994
2993
|
}
|
|
2995
|
-
if (x && (
|
|
2994
|
+
if (x && (ne = D, M = T, r && (t ? r(j, fi, S, d) : r(A, P, fi, S, d), h))) return;
|
|
2996
2995
|
if (S) {
|
|
2997
|
-
if (i && (i(t ?
|
|
2996
|
+
if (i && (i(t ? j : A, fi, x, d), h)) return;
|
|
2998
2997
|
p && (s = x ? m : o.pop());
|
|
2999
2998
|
}
|
|
3000
2999
|
w += 1;
|
|
@@ -3014,7 +3013,7 @@ function Di(e, t) {
|
|
|
3014
3013
|
}
|
|
3015
3014
|
Di.prototype.createType = function(e) {
|
|
3016
3015
|
var t = this.model, n = this.properties, r = Object.create(Ei.prototype);
|
|
3017
|
-
|
|
3016
|
+
I(e.properties, function(e) {
|
|
3018
3017
|
!e.isMany && e.default !== void 0 && (r[e.name] = e.default);
|
|
3019
3018
|
}), n.defineModel(r, t), n.defineDescriptor(r, e);
|
|
3020
3019
|
var i = e.ns.name;
|
|
@@ -3022,7 +3021,7 @@ Di.prototype.createType = function(e) {
|
|
|
3022
3021
|
n.define(this, "$type", {
|
|
3023
3022
|
value: i,
|
|
3024
3023
|
enumerable: !0
|
|
3025
|
-
}), n.define(this, "$attrs", { value: {} }), n.define(this, "$parent", { writable: !0 }),
|
|
3024
|
+
}), n.define(this, "$attrs", { value: {} }), n.define(this, "$parent", { writable: !0 }), I(e, L(function(e, t) {
|
|
3026
3025
|
this.set(t, e);
|
|
3027
3026
|
}, this));
|
|
3028
3027
|
}
|
|
@@ -3058,7 +3057,7 @@ function ji(e) {
|
|
|
3058
3057
|
function Mi(e) {
|
|
3059
3058
|
return !!ki[e];
|
|
3060
3059
|
}
|
|
3061
|
-
function
|
|
3060
|
+
function W(e, t) {
|
|
3062
3061
|
var n = e.split(/:/), r, i;
|
|
3063
3062
|
if (n.length === 1) r = e, i = t;
|
|
3064
3063
|
else if (n.length === 2) r = n[1], i = n[0];
|
|
@@ -3101,7 +3100,7 @@ Ni.prototype.build = function() {
|
|
|
3101
3100
|
if (s === -1) throw Error("property <" + r.name + "> not found in property list");
|
|
3102
3101
|
i.splice(s, 1), this.addProperty(t, n ? void 0 : s, o), a[r.name] = a[r.localName] = t;
|
|
3103
3102
|
}, Ni.prototype.redefineProperty = function(e, t, n) {
|
|
3104
|
-
var r = e.ns.prefix, i = t.split("#"), a =
|
|
3103
|
+
var r = e.ns.prefix, i = t.split("#"), a = W(i[0], r), o = W(i[1], a.prefix).name, s = this.propertiesByName[o];
|
|
3105
3104
|
if (s) this.replaceProperty(s, e, n);
|
|
3106
3105
|
else throw Error("refined property <" + o + "> not found");
|
|
3107
3106
|
delete e.redefines;
|
|
@@ -3127,8 +3126,8 @@ Ni.prototype.build = function() {
|
|
|
3127
3126
|
}, Ni.prototype.addTrait = function(e, t) {
|
|
3128
3127
|
t && this.assertNotTrait(e);
|
|
3129
3128
|
var n = this.allTypesByName, r = this.allTypes, i = e.name;
|
|
3130
|
-
i in n || (
|
|
3131
|
-
n =
|
|
3129
|
+
i in n || (I(e.properties, L(function(n) {
|
|
3130
|
+
n = R({}, n, {
|
|
3132
3131
|
name: n.ns.localName,
|
|
3133
3132
|
inherited: t
|
|
3134
3133
|
}), Object.defineProperty(n, "definedBy", { value: e });
|
|
@@ -3137,44 +3136,44 @@ Ni.prototype.build = function() {
|
|
|
3137
3136
|
}, this)), r.push(e), n[i] = e);
|
|
3138
3137
|
};
|
|
3139
3138
|
function Pi(e, t) {
|
|
3140
|
-
this.packageMap = {}, this.typeMap = {}, this.packages = [], this.properties = t,
|
|
3139
|
+
this.packageMap = {}, this.typeMap = {}, this.packages = [], this.properties = t, I(e, L(this.registerPackage, this));
|
|
3141
3140
|
}
|
|
3142
3141
|
Pi.prototype.getPackage = function(e) {
|
|
3143
3142
|
return this.packageMap[e];
|
|
3144
3143
|
}, Pi.prototype.getPackages = function() {
|
|
3145
3144
|
return this.packages;
|
|
3146
3145
|
}, Pi.prototype.registerPackage = function(e) {
|
|
3147
|
-
e =
|
|
3146
|
+
e = R({}, e);
|
|
3148
3147
|
var t = this.packageMap;
|
|
3149
|
-
Fi(t, e, "prefix"), Fi(t, e, "uri"),
|
|
3148
|
+
Fi(t, e, "prefix"), Fi(t, e, "uri"), I(e.types, L(function(t) {
|
|
3150
3149
|
this.registerType(t, e);
|
|
3151
3150
|
}, this)), t[e.uri] = t[e.prefix] = e, this.packages.push(e);
|
|
3152
3151
|
}, Pi.prototype.registerType = function(e, t) {
|
|
3153
|
-
e =
|
|
3152
|
+
e = R({}, e, {
|
|
3154
3153
|
superClass: (e.superClass || []).slice(),
|
|
3155
3154
|
extends: (e.extends || []).slice(),
|
|
3156
3155
|
properties: (e.properties || []).slice(),
|
|
3157
|
-
meta:
|
|
3156
|
+
meta: R(e.meta || {})
|
|
3158
3157
|
});
|
|
3159
|
-
var n =
|
|
3160
|
-
|
|
3161
|
-
var t =
|
|
3162
|
-
ji(e.type) || (e.type =
|
|
3158
|
+
var n = W(e.name, t.prefix), r = n.name, i = {};
|
|
3159
|
+
I(e.properties, L(function(e) {
|
|
3160
|
+
var t = W(e.name, n.prefix), r = t.name;
|
|
3161
|
+
ji(e.type) || (e.type = W(e.type, t.prefix).name), R(e, {
|
|
3163
3162
|
ns: t,
|
|
3164
3163
|
name: r
|
|
3165
3164
|
}), i[r] = e;
|
|
3166
|
-
}, this)),
|
|
3165
|
+
}, this)), R(e, {
|
|
3167
3166
|
ns: n,
|
|
3168
3167
|
name: r,
|
|
3169
3168
|
propertiesByName: i
|
|
3170
|
-
}),
|
|
3171
|
-
var t =
|
|
3169
|
+
}), I(e.extends, L(function(e) {
|
|
3170
|
+
var t = W(e, n.prefix), i = this.typeMap[t.name];
|
|
3172
3171
|
i.traits = i.traits || [], i.traits.push(r);
|
|
3173
3172
|
}, this)), this.definePackage(e, t), this.typeMap[r] = e;
|
|
3174
3173
|
}, Pi.prototype.mapTypes = function(e, t, n) {
|
|
3175
3174
|
var r = ji(e.name) ? { name: e.name } : this.typeMap[e.name], i = this;
|
|
3176
3175
|
function a(n, r) {
|
|
3177
|
-
var a =
|
|
3176
|
+
var a = W(n, ji(n) ? "" : e.prefix);
|
|
3178
3177
|
i.mapTypes(a, t, r);
|
|
3179
3178
|
}
|
|
3180
3179
|
function o(e) {
|
|
@@ -3184,9 +3183,9 @@ Pi.prototype.getPackage = function(e) {
|
|
|
3184
3183
|
return a(e, !1);
|
|
3185
3184
|
}
|
|
3186
3185
|
if (!r) throw Error("unknown type <" + e.name + ">");
|
|
3187
|
-
|
|
3186
|
+
I(r.superClass, n ? o : s), t(r, !n), I(r.traits, o);
|
|
3188
3187
|
}, Pi.prototype.getEffectiveDescriptor = function(e) {
|
|
3189
|
-
var t =
|
|
3188
|
+
var t = W(e), n = new Ni(t);
|
|
3190
3189
|
this.mapTypes(t, function(e, t) {
|
|
3191
3190
|
n.addTrait(e, t);
|
|
3192
3191
|
});
|
|
@@ -3203,7 +3202,7 @@ function Ii(e) {
|
|
|
3203
3202
|
this.model = e;
|
|
3204
3203
|
}
|
|
3205
3204
|
Ii.prototype.set = function(e, t, n) {
|
|
3206
|
-
if (!
|
|
3205
|
+
if (!ie(t) || !t.length) throw TypeError("property name must be a non-empty string");
|
|
3207
3206
|
var r = this.getProperty(e, t), i = r && r.name;
|
|
3208
3207
|
Li(n) ? r ? delete e[i] : delete e.$attrs[zi(t)] : r ? i in e ? e[i] = n : Ri(e, r, n) : e.$attrs[zi(t)] = n;
|
|
3209
3208
|
}, Ii.prototype.get = function(e, t) {
|
|
@@ -3214,7 +3213,7 @@ Ii.prototype.set = function(e, t, n) {
|
|
|
3214
3213
|
}, Ii.prototype.define = function(e, t, n) {
|
|
3215
3214
|
if (!n.writable) {
|
|
3216
3215
|
var r = n.value;
|
|
3217
|
-
n =
|
|
3216
|
+
n = R({}, n, { get: function() {
|
|
3218
3217
|
return r;
|
|
3219
3218
|
} }), delete n.value;
|
|
3220
3219
|
}
|
|
@@ -3257,10 +3256,10 @@ Bi.prototype.create = function(e, t) {
|
|
|
3257
3256
|
if (!n) throw Error("unknown type <" + e + ">");
|
|
3258
3257
|
return new n(t);
|
|
3259
3258
|
}, Bi.prototype.getType = function(e) {
|
|
3260
|
-
var t = this.typeCache, n =
|
|
3259
|
+
var t = this.typeCache, n = ie(e) ? e : e.ns.name, r = t[n];
|
|
3261
3260
|
return r ||= (e = this.registry.getEffectiveDescriptor(n), t[n] = this.factory.createType(e)), r;
|
|
3262
3261
|
}, Bi.prototype.createAny = function(e, t, n) {
|
|
3263
|
-
var r =
|
|
3262
|
+
var r = W(e), i = {
|
|
3264
3263
|
$type: e,
|
|
3265
3264
|
$instanceOf: function(e) {
|
|
3266
3265
|
return e === this.$type;
|
|
@@ -3292,7 +3291,7 @@ Bi.prototype.create = function(e, t) {
|
|
|
3292
3291
|
}), this.properties.define(i, "$instanceOf", {
|
|
3293
3292
|
enumerable: !1,
|
|
3294
3293
|
writable: !0
|
|
3295
|
-
}),
|
|
3294
|
+
}), I(n, function(e, t) {
|
|
3296
3295
|
P(e) && e.value !== void 0 ? i[e.name] = e.value : i[t] = e;
|
|
3297
3296
|
}), i;
|
|
3298
3297
|
}, Bi.prototype.getPackage = function(e) {
|
|
@@ -3339,7 +3338,7 @@ function Yi(e, t) {
|
|
|
3339
3338
|
return i && r.indexOf(i) === 0 ? e.prefix + ":" + r.slice(i.length) : n;
|
|
3340
3339
|
}
|
|
3341
3340
|
function Xi(e, t) {
|
|
3342
|
-
var n =
|
|
3341
|
+
var n = W(e);
|
|
3343
3342
|
return Yi(n, t.getPackage(n.prefix));
|
|
3344
3343
|
}
|
|
3345
3344
|
function Zi(e) {
|
|
@@ -3349,7 +3348,7 @@ function Qi(e) {
|
|
|
3349
3348
|
return e.$descriptor;
|
|
3350
3349
|
}
|
|
3351
3350
|
function $i(e) {
|
|
3352
|
-
|
|
3351
|
+
R(this, e), this.elementsById = {}, this.references = [], this.warnings = [], this.addReference = function(e) {
|
|
3353
3352
|
this.references.push(e);
|
|
3354
3353
|
}, this.addElement = function(e) {
|
|
3355
3354
|
if (!e) throw Zi("expected element");
|
|
@@ -3399,23 +3398,23 @@ aa.prototype = Object.create(na.prototype), aa.prototype.handleNode = function(e
|
|
|
3399
3398
|
var t = this, n = this.element;
|
|
3400
3399
|
return n ? t = this.handleChild(e) : (n = this.element = this.createElement(e), this.context.addElement(n)), t;
|
|
3401
3400
|
};
|
|
3402
|
-
function
|
|
3401
|
+
function G(e, t, n) {
|
|
3403
3402
|
this.model = e, this.type = e.getType(t), this.context = n;
|
|
3404
3403
|
}
|
|
3405
|
-
|
|
3404
|
+
G.prototype = Object.create(aa.prototype), G.prototype.addReference = function(e) {
|
|
3406
3405
|
this.context.addReference(e);
|
|
3407
|
-
},
|
|
3406
|
+
}, G.prototype.handleText = function(e) {
|
|
3408
3407
|
var t = this.element;
|
|
3409
3408
|
if (!Qi(t).bodyProperty) throw Zi("unexpected body text <" + e + ">");
|
|
3410
3409
|
na.prototype.handleText.call(this, e);
|
|
3411
|
-
},
|
|
3410
|
+
}, G.prototype.handleEnd = function() {
|
|
3412
3411
|
var e = this.body, t = this.element, n = Qi(t).bodyProperty;
|
|
3413
3412
|
n && e !== void 0 && (e = Ai(n.type, e), t.set(n.name, e));
|
|
3414
|
-
},
|
|
3413
|
+
}, G.prototype.createElement = function(e) {
|
|
3415
3414
|
var t = e.attributes, n = this.type, r = Qi(n), i = this.context, a = new n({}), o = this.model, s;
|
|
3416
|
-
return
|
|
3415
|
+
return I(t, function(e, t) {
|
|
3417
3416
|
var n = r.propertiesByName[t], c;
|
|
3418
|
-
n && n.isReference ? n.isMany ? (c = e.split(" "),
|
|
3417
|
+
n && n.isReference ? n.isMany ? (c = e.split(" "), I(c, function(e) {
|
|
3419
3418
|
i.addReference({
|
|
3420
3419
|
element: a,
|
|
3421
3420
|
property: n.ns.name,
|
|
@@ -3425,53 +3424,53 @@ K.prototype = Object.create(aa.prototype), K.prototype.addReference = function(e
|
|
|
3425
3424
|
element: a,
|
|
3426
3425
|
property: n.ns.name,
|
|
3427
3426
|
id: e
|
|
3428
|
-
}) : (n ? e = Ai(n.type, e) : t !== "xmlns" && (s =
|
|
3427
|
+
}) : (n ? e = Ai(n.type, e) : t !== "xmlns" && (s = W(t, r.ns.prefix), o.getPackage(s.prefix) && i.addWarning({
|
|
3429
3428
|
message: "unknown attribute <" + t + ">",
|
|
3430
3429
|
element: a,
|
|
3431
3430
|
property: t,
|
|
3432
3431
|
value: e
|
|
3433
3432
|
})), a.set(t, e));
|
|
3434
3433
|
}), a;
|
|
3435
|
-
},
|
|
3436
|
-
var t = e.name, n =
|
|
3437
|
-
if (s && !s.isAttr) return Gi(s) && (c = e.attributes[Ui], c) ? (c = Xi(c, i), l = i.getType(c),
|
|
3434
|
+
}, G.prototype.getPropertyForNode = function(e) {
|
|
3435
|
+
var t = e.name, n = W(t), r = this.type, i = this.model, a = Qi(r), o = n.name, s = a.propertiesByName[o], c, l;
|
|
3436
|
+
if (s && !s.isAttr) return Gi(s) && (c = e.attributes[Ui], c) ? (c = Xi(c, i), l = i.getType(c), R({}, s, { effectiveType: Qi(l).name })) : s;
|
|
3438
3437
|
var u = i.getPackage(n.prefix);
|
|
3439
3438
|
if (u) {
|
|
3440
|
-
if (c = Ji(n, u), l = i.getType(c), s =
|
|
3439
|
+
if (c = Ji(n, u), l = i.getType(c), s = se(a.properties, function(e) {
|
|
3441
3440
|
return !e.isVirtual && !e.isReference && !e.isAttribute && l.hasType(e.type);
|
|
3442
|
-
}), s) return
|
|
3443
|
-
} else if (s =
|
|
3441
|
+
}), s) return R({}, s, { effectiveType: Qi(l).name });
|
|
3442
|
+
} else if (s = se(a.properties, function(e) {
|
|
3444
3443
|
return !e.isReference && !e.isAttribute && e.type === "Element";
|
|
3445
3444
|
}), s) return s;
|
|
3446
3445
|
throw Zi("unrecognized element <" + n.name + ">");
|
|
3447
|
-
},
|
|
3446
|
+
}, G.prototype.toString = function() {
|
|
3448
3447
|
return "ElementDescriptor[" + Qi(this.type).name + "]";
|
|
3449
|
-
},
|
|
3448
|
+
}, G.prototype.valueHandler = function(e, t) {
|
|
3450
3449
|
return new ia(e, t);
|
|
3451
|
-
},
|
|
3450
|
+
}, G.prototype.referenceHandler = function(e) {
|
|
3452
3451
|
return new ra(e, this.context);
|
|
3453
|
-
},
|
|
3454
|
-
return e === "Element" ? new sa(this.model, e, this.context) : new
|
|
3455
|
-
},
|
|
3452
|
+
}, G.prototype.handler = function(e) {
|
|
3453
|
+
return e === "Element" ? new sa(this.model, e, this.context) : new G(this.model, e, this.context);
|
|
3454
|
+
}, G.prototype.handleChild = function(e) {
|
|
3456
3455
|
var t = this.getPropertyForNode(e), n, r = this.element, i;
|
|
3457
3456
|
if (n = t.effectiveType || t.type, Mi(n)) return this.valueHandler(t, r);
|
|
3458
3457
|
i = t.isReference ? this.referenceHandler(t).handleNode(e) : this.handler(n).handleNode(e);
|
|
3459
3458
|
var a = i.element;
|
|
3460
|
-
return a !== void 0 && (t.isMany ? r.get(t.name).push(a) : r.set(t.name, a), t.isReference ? (
|
|
3459
|
+
return a !== void 0 && (t.isMany ? r.get(t.name).push(a) : r.set(t.name, a), t.isReference ? (R(a, { element: r }), this.context.addReference(a)) : a.$parent = r), i;
|
|
3461
3460
|
};
|
|
3462
3461
|
function oa(e, t, n) {
|
|
3463
|
-
|
|
3462
|
+
G.call(this, e, t, n);
|
|
3464
3463
|
}
|
|
3465
|
-
oa.prototype = Object.create(
|
|
3466
|
-
var t = e.name, n =
|
|
3464
|
+
oa.prototype = Object.create(G.prototype), oa.prototype.createElement = function(e) {
|
|
3465
|
+
var t = e.name, n = W(t), r = this.model, i = this.type, a = r.getPackage(n.prefix), o = a && Ji(n, a) || t;
|
|
3467
3466
|
if (!i.hasType(o)) throw Zi("unexpected element <" + e.originalName + ">");
|
|
3468
|
-
return
|
|
3467
|
+
return G.prototype.createElement.call(this, e);
|
|
3469
3468
|
};
|
|
3470
3469
|
function sa(e, t, n) {
|
|
3471
3470
|
this.model = e, this.context = n;
|
|
3472
3471
|
}
|
|
3473
3472
|
sa.prototype = Object.create(aa.prototype), sa.prototype.createElement = function(e) {
|
|
3474
|
-
var t = e.name, n =
|
|
3473
|
+
var t = e.name, n = W(t).prefix, r = e.ns[n + "$uri"], i = e.attributes;
|
|
3475
3474
|
return this.model.createAny(t, r, i);
|
|
3476
3475
|
}, sa.prototype.handleChild = function(e) {
|
|
3477
3476
|
var t = new sa(this.model, "Element", this.context).handleNode(e), n = this.element, r = t.element, i;
|
|
@@ -3480,12 +3479,12 @@ sa.prototype = Object.create(aa.prototype), sa.prototype.createElement = functio
|
|
|
3480
3479
|
this.body && (this.element.$body = this.body);
|
|
3481
3480
|
};
|
|
3482
3481
|
function ca(e) {
|
|
3483
|
-
e instanceof Bi && (e = { model: e }),
|
|
3482
|
+
e instanceof Bi && (e = { model: e }), R(this, { lax: !1 }, e);
|
|
3484
3483
|
}
|
|
3485
3484
|
ca.prototype.fromXML = function(e, t, n) {
|
|
3486
3485
|
var r = t.rootHandler;
|
|
3487
|
-
t instanceof
|
|
3488
|
-
var i = this.model, a = this.lax, o = new $i(
|
|
3486
|
+
t instanceof G ? (r = t, t = {}) : typeof t == "string" ? (r = this.handler(t), t = {}) : typeof r == "string" && (r = this.handler(r));
|
|
3487
|
+
var i = this.model, a = this.lax, o = new $i(R({}, t, { rootHandler: r })), s = new Ti({ proxy: !0 }), c = la();
|
|
3489
3488
|
r.context = o, c.push(r);
|
|
3490
3489
|
function l(e, t, n) {
|
|
3491
3490
|
var r = t(), i = r.line, a = r.column, s = r.data;
|
|
@@ -3623,7 +3622,7 @@ function ga(e, t) {
|
|
|
3623
3622
|
} });
|
|
3624
3623
|
}
|
|
3625
3624
|
function _a(e) {
|
|
3626
|
-
return
|
|
3625
|
+
return ie(e) ? e : (e.prefix ? e.prefix + ":" : "") + e.localName;
|
|
3627
3626
|
}
|
|
3628
3627
|
function va(e) {
|
|
3629
3628
|
return e.getUsed().filter(function(e) {
|
|
@@ -3636,16 +3635,16 @@ function va(e) {
|
|
|
3636
3635
|
});
|
|
3637
3636
|
}
|
|
3638
3637
|
function ya(e, t) {
|
|
3639
|
-
return t.isGeneric ?
|
|
3638
|
+
return t.isGeneric ? R({ localName: t.ns.localName }, e) : R({ localName: ha(t.ns.localName, t.$pkg) }, e);
|
|
3640
3639
|
}
|
|
3641
3640
|
function ba(e, t) {
|
|
3642
|
-
return
|
|
3641
|
+
return R({ localName: t.ns.localName }, e);
|
|
3643
3642
|
}
|
|
3644
3643
|
function xa(e) {
|
|
3645
3644
|
var t = e.$descriptor;
|
|
3646
|
-
return
|
|
3645
|
+
return le(t.properties, function(t) {
|
|
3647
3646
|
var n = t.name;
|
|
3648
|
-
if (t.isVirtual || !
|
|
3647
|
+
if (t.isVirtual || !oe(e, n)) return !1;
|
|
3649
3648
|
var r = e[n];
|
|
3650
3649
|
return r === t.default || r === null ? !1 : t.isMany ? r.length : !0;
|
|
3651
3650
|
});
|
|
@@ -3664,7 +3663,7 @@ var Sa = {
|
|
|
3664
3663
|
"&": "amp"
|
|
3665
3664
|
};
|
|
3666
3665
|
function wa(e, t, n) {
|
|
3667
|
-
return e =
|
|
3666
|
+
return e = ie(e) ? e : "" + e, e.replace(t, function(e) {
|
|
3668
3667
|
return "&" + n[e] + ";";
|
|
3669
3668
|
});
|
|
3670
3669
|
}
|
|
@@ -3675,12 +3674,12 @@ function Ea(e) {
|
|
|
3675
3674
|
return wa(e, fa, Ca);
|
|
3676
3675
|
}
|
|
3677
3676
|
function Da(e) {
|
|
3678
|
-
return
|
|
3677
|
+
return le(e, function(e) {
|
|
3679
3678
|
return e.isAttr;
|
|
3680
3679
|
});
|
|
3681
3680
|
}
|
|
3682
3681
|
function Oa(e) {
|
|
3683
|
-
return
|
|
3682
|
+
return le(e, function(e) {
|
|
3684
3683
|
return !e.isAttr;
|
|
3685
3684
|
});
|
|
3686
3685
|
}
|
|
@@ -3704,37 +3703,37 @@ function ja(e) {
|
|
|
3704
3703
|
ga(ja, Aa), ja.prototype.serializeTo = function(e) {
|
|
3705
3704
|
e.appendIndent().append("<" + this.tagName + ">"), this.serializeValue(e), e.append("</" + this.tagName + ">").appendNewLine();
|
|
3706
3705
|
};
|
|
3707
|
-
function
|
|
3706
|
+
function K(e, t) {
|
|
3708
3707
|
this.body = [], this.attrs = [], this.parent = e, this.propertyDescriptor = t;
|
|
3709
3708
|
}
|
|
3710
|
-
|
|
3709
|
+
K.prototype.build = function(e) {
|
|
3711
3710
|
this.element = e;
|
|
3712
3711
|
var t = e.$descriptor, n = this.propertyDescriptor, r, i, a = t.isGeneric;
|
|
3713
3712
|
return r = a ? this.parseGeneric(e) : this.parseNsAttributes(e), n ? this.ns = this.nsPropertyTagName(n) : this.ns = this.nsTagName(t), this.tagName = this.addTagName(this.ns), a || (i = xa(e), this.parseAttributes(Da(i)), this.parseContainments(Oa(i))), this.parseGenericAttributes(e, r), this;
|
|
3714
|
-
},
|
|
3713
|
+
}, K.prototype.nsTagName = function(e) {
|
|
3715
3714
|
return ya(this.logNamespaceUsed(e.ns), e);
|
|
3716
|
-
},
|
|
3715
|
+
}, K.prototype.nsPropertyTagName = function(e) {
|
|
3717
3716
|
return ba(this.logNamespaceUsed(e.ns), e);
|
|
3718
|
-
},
|
|
3717
|
+
}, K.prototype.isLocalNs = function(e) {
|
|
3719
3718
|
return e.uri === this.ns.uri;
|
|
3720
|
-
},
|
|
3721
|
-
var t =
|
|
3719
|
+
}, K.prototype.nsAttributeName = function(e) {
|
|
3720
|
+
var t = ie(e) ? W(e) : e.ns;
|
|
3722
3721
|
if (e.inherited) return { localName: t.localName };
|
|
3723
3722
|
var n = this.logNamespaceUsed(t);
|
|
3724
|
-
return this.getNamespaces().logUsed(n), this.isLocalNs(n) ? { localName: t.localName } :
|
|
3725
|
-
},
|
|
3723
|
+
return this.getNamespaces().logUsed(n), this.isLocalNs(n) ? { localName: t.localName } : R({ localName: t.localName }, n);
|
|
3724
|
+
}, K.prototype.parseGeneric = function(e) {
|
|
3726
3725
|
var t = this, n = this.body, r = [];
|
|
3727
|
-
return
|
|
3726
|
+
return I(e, function(i, a) {
|
|
3728
3727
|
var o;
|
|
3729
|
-
a === "$body" ? n.push(new Aa().build({ type: "String" }, i)) : a === "$children" ?
|
|
3730
|
-
n.push(new
|
|
3728
|
+
a === "$body" ? n.push(new Aa().build({ type: "String" }, i)) : a === "$children" ? I(i, function(e) {
|
|
3729
|
+
n.push(new K(t).build(e));
|
|
3731
3730
|
}) : a.indexOf("$") !== 0 && (o = t.parseNsAttribute(e, a, i), o && r.push({
|
|
3732
3731
|
name: a,
|
|
3733
3732
|
value: i
|
|
3734
3733
|
}));
|
|
3735
3734
|
}), r;
|
|
3736
|
-
},
|
|
3737
|
-
var r = e.$model, i =
|
|
3735
|
+
}, K.prototype.parseNsAttribute = function(e, t, n) {
|
|
3736
|
+
var r = e.$model, i = W(t), a;
|
|
3738
3737
|
if (i.prefix === "xmlns" && (a = {
|
|
3739
3738
|
prefix: i.localName,
|
|
3740
3739
|
uri: n
|
|
@@ -3747,47 +3746,47 @@ q.prototype.build = function(e) {
|
|
|
3747
3746
|
var o = this.logNamespaceUsed(a, !0);
|
|
3748
3747
|
this.getNamespaces().logUsed(o);
|
|
3749
3748
|
}
|
|
3750
|
-
},
|
|
3749
|
+
}, K.prototype.parseNsAttributes = function(e, t) {
|
|
3751
3750
|
var n = this, r = e.$attrs, i = [];
|
|
3752
|
-
return
|
|
3751
|
+
return I(r, function(t, r) {
|
|
3753
3752
|
var a = n.parseNsAttribute(e, r, t);
|
|
3754
3753
|
a && i.push(a);
|
|
3755
3754
|
}), i;
|
|
3756
|
-
},
|
|
3755
|
+
}, K.prototype.parseGenericAttributes = function(e, t) {
|
|
3757
3756
|
var n = this;
|
|
3758
|
-
|
|
3757
|
+
I(t, function(t) {
|
|
3759
3758
|
if (t.name !== Ui) try {
|
|
3760
3759
|
n.addAttribute(n.nsAttributeName(t.name), t.value);
|
|
3761
3760
|
} catch (n) {
|
|
3762
3761
|
console.warn("missing namespace information for ", t.name, "=", t.value, "on", e, n);
|
|
3763
3762
|
}
|
|
3764
3763
|
});
|
|
3765
|
-
},
|
|
3764
|
+
}, K.prototype.parseContainments = function(e) {
|
|
3766
3765
|
var t = this, n = this.body, r = this.element;
|
|
3767
|
-
|
|
3766
|
+
I(e, function(e) {
|
|
3768
3767
|
var i = r.get(e.name), a = e.isReference;
|
|
3769
3768
|
if (e.isMany || (i = [i]), e.isBody) n.push(new Aa().build(e, i[0]));
|
|
3770
|
-
else if (Mi(e.type))
|
|
3769
|
+
else if (Mi(e.type)) I(i, function(r) {
|
|
3771
3770
|
n.push(new ja(t.addTagName(t.nsPropertyTagName(e))).build(e, r));
|
|
3772
3771
|
});
|
|
3773
|
-
else if (a)
|
|
3772
|
+
else if (a) I(i, function(r) {
|
|
3774
3773
|
n.push(new ka(t.addTagName(t.nsPropertyTagName(e))).build(r));
|
|
3775
3774
|
});
|
|
3776
3775
|
else {
|
|
3777
3776
|
var o = Gi(e), s = Ki(e);
|
|
3778
|
-
|
|
3779
|
-
var i = o ? new Ma(t, e) : s ? new
|
|
3777
|
+
I(i, function(r) {
|
|
3778
|
+
var i = o ? new Ma(t, e) : s ? new K(t, e) : new K(t);
|
|
3780
3779
|
n.push(i.build(r));
|
|
3781
3780
|
});
|
|
3782
3781
|
}
|
|
3783
3782
|
});
|
|
3784
|
-
},
|
|
3783
|
+
}, K.prototype.getNamespaces = function(e) {
|
|
3785
3784
|
var t = this.namespaces, n = this.parent, r;
|
|
3786
3785
|
return t || (r = n && n.getNamespaces(), e || !r ? this.namespaces = t = new pa(r) : t = r), t;
|
|
3787
|
-
},
|
|
3786
|
+
}, K.prototype.logNamespace = function(e, t, n) {
|
|
3788
3787
|
var r = this.getNamespaces(n), i = e.uri, a = e.prefix;
|
|
3789
3788
|
return (!r.byUri(i) || n) && r.add(e, t), r.mapPrefix(a, i), e;
|
|
3790
|
-
},
|
|
3789
|
+
}, K.prototype.logNamespaceUsed = function(e, t) {
|
|
3791
3790
|
var n = this.element.$model, r = this.getNamespaces(t), i = e.prefix, a = e.uri, o, s, c;
|
|
3792
3791
|
if (!i && !a) return { localName: e.localName };
|
|
3793
3792
|
if (c = Hi[i] || n && (n.getPackage(i) || {}).uri, a = a || c || r.uriByPrefix(i), !a) throw Error("no namespace uri given for prefix <" + i + ">");
|
|
@@ -3799,48 +3798,48 @@ q.prototype.build = function(e) {
|
|
|
3799
3798
|
}, c === a);
|
|
3800
3799
|
}
|
|
3801
3800
|
return i && r.mapPrefix(i, a), e;
|
|
3802
|
-
},
|
|
3801
|
+
}, K.prototype.parseAttributes = function(e) {
|
|
3803
3802
|
var t = this, n = this.element;
|
|
3804
|
-
|
|
3803
|
+
I(e, function(e) {
|
|
3805
3804
|
var r = n.get(e.name);
|
|
3806
3805
|
if (e.isReference) if (!e.isMany) r = r.id;
|
|
3807
3806
|
else {
|
|
3808
3807
|
var i = [];
|
|
3809
|
-
|
|
3808
|
+
I(r, function(e) {
|
|
3810
3809
|
i.push(e.id);
|
|
3811
3810
|
}), r = i.join(" ");
|
|
3812
3811
|
}
|
|
3813
3812
|
t.addAttribute(t.nsAttributeName(e), r);
|
|
3814
3813
|
});
|
|
3815
|
-
},
|
|
3814
|
+
}, K.prototype.addTagName = function(e) {
|
|
3816
3815
|
var t = this.logNamespaceUsed(e);
|
|
3817
3816
|
return this.getNamespaces().logUsed(t), _a(e);
|
|
3818
|
-
},
|
|
3817
|
+
}, K.prototype.addAttribute = function(e, t) {
|
|
3819
3818
|
var n = this.attrs;
|
|
3820
|
-
|
|
3821
|
-
var r =
|
|
3819
|
+
ie(t) && (t = Ta(t));
|
|
3820
|
+
var r = ce(n, function(t) {
|
|
3822
3821
|
return t.name.localName === e.localName && t.name.uri === e.uri && t.name.prefix === e.prefix;
|
|
3823
3822
|
}), i = {
|
|
3824
3823
|
name: e,
|
|
3825
3824
|
value: t
|
|
3826
3825
|
};
|
|
3827
3826
|
r === -1 ? n.push(i) : n.splice(r, 1, i);
|
|
3828
|
-
},
|
|
3827
|
+
}, K.prototype.serializeAttributes = function(e) {
|
|
3829
3828
|
var t = this.attrs, n = this.namespaces;
|
|
3830
|
-
n && (t = va(n).concat(t)),
|
|
3829
|
+
n && (t = va(n).concat(t)), I(t, function(t) {
|
|
3831
3830
|
e.append(" ").append(_a(t.name)).append("=\"").append(t.value).append("\"");
|
|
3832
3831
|
});
|
|
3833
|
-
},
|
|
3832
|
+
}, K.prototype.serializeTo = function(e) {
|
|
3834
3833
|
var t = this.body[0], n = t && t.constructor !== Aa;
|
|
3835
|
-
e.appendIndent().append("<" + this.tagName), this.serializeAttributes(e), e.append(t ? ">" : " />"), t && (n && e.appendNewLine().indent(),
|
|
3834
|
+
e.appendIndent().append("<" + this.tagName), this.serializeAttributes(e), e.append(t ? ">" : " />"), t && (n && e.appendNewLine().indent(), I(this.body, function(t) {
|
|
3836
3835
|
t.serializeTo(e);
|
|
3837
3836
|
}), n && e.unindent().appendIndent(), e.append("</" + this.tagName + ">")), e.appendNewLine();
|
|
3838
3837
|
};
|
|
3839
3838
|
function Ma(e, t) {
|
|
3840
|
-
|
|
3839
|
+
K.call(this, e, t);
|
|
3841
3840
|
}
|
|
3842
|
-
ga(Ma,
|
|
3843
|
-
var t =
|
|
3841
|
+
ga(Ma, K), Ma.prototype.parseNsAttributes = function(e) {
|
|
3842
|
+
var t = K.prototype.parseNsAttributes.call(this, e), n = e.$descriptor;
|
|
3844
3843
|
if (n.name === this.propertyDescriptor.type) return t;
|
|
3845
3844
|
var r = this.typeNs = this.nsTagName(n);
|
|
3846
3845
|
this.getNamespaces().logUsed(this.typeNs);
|
|
@@ -3869,13 +3868,13 @@ function Pa(e, t) {
|
|
|
3869
3868
|
};
|
|
3870
3869
|
}
|
|
3871
3870
|
function Fa(e) {
|
|
3872
|
-
e =
|
|
3871
|
+
e = R({
|
|
3873
3872
|
format: !1,
|
|
3874
3873
|
preamble: !0
|
|
3875
3874
|
}, e || {});
|
|
3876
3875
|
function t(t, n) {
|
|
3877
3876
|
var r = n || new Na(), i = new Pa(r, e.format);
|
|
3878
|
-
if (e.preamble && i.append(ua), new
|
|
3877
|
+
if (e.preamble && i.append(ua), new K().build(t).serializeTo(i), !n) return r.value;
|
|
3879
3878
|
}
|
|
3880
3879
|
return { toXML: t };
|
|
3881
3880
|
}
|
|
@@ -3885,8 +3884,8 @@ function Ia(e, t) {
|
|
|
3885
3884
|
oi.call(this, e, t);
|
|
3886
3885
|
}
|
|
3887
3886
|
Ia.prototype = Object.create(oi.prototype), Ia.prototype.fromXML = function(e, t, n) {
|
|
3888
|
-
|
|
3889
|
-
var r = new ca(
|
|
3887
|
+
ie(t) || (n = t, t = "bpmn:Definitions");
|
|
3888
|
+
var r = new ca(R({
|
|
3890
3889
|
model: this,
|
|
3891
3890
|
lax: !0
|
|
3892
3891
|
}, n)), i = r.handler(t);
|
|
@@ -6830,11 +6829,11 @@ var La = {
|
|
|
6830
6829
|
}
|
|
6831
6830
|
};
|
|
6832
6831
|
function Ra(e, t) {
|
|
6833
|
-
return new Ia(
|
|
6832
|
+
return new Ia(R({}, La, e), t);
|
|
6834
6833
|
}
|
|
6835
6834
|
//#endregion
|
|
6836
6835
|
//#region node_modules/bpmn-js/lib/import/Util.js
|
|
6837
|
-
function
|
|
6836
|
+
function q(e) {
|
|
6838
6837
|
return e ? "<" + e.$type + (e.id ? " id=\"" + e.id : "") + "\" />" : "<null>";
|
|
6839
6838
|
}
|
|
6840
6839
|
//#endregion
|
|
@@ -6843,7 +6842,7 @@ function za(e) {
|
|
|
6843
6842
|
return function() {
|
|
6844
6843
|
if (!window.Promise) throw Error("Promises is not supported in this environment. Please polyfill Promise.");
|
|
6845
6844
|
var t = arguments.length;
|
|
6846
|
-
if (t >= 1 &&
|
|
6845
|
+
if (t >= 1 && re(arguments[t - 1])) {
|
|
6847
6846
|
var n = arguments[t - 1];
|
|
6848
6847
|
console.warn(/* @__PURE__ */ Error("Passing callbacks to " + e.name + " is deprecated and will be removed in a future major release. Please switch to promises: https://bpmn.io/l/moving-to-promises.html"));
|
|
6849
6848
|
var r = Array.prototype.slice.call(arguments, 0, -1);
|
|
@@ -6858,7 +6857,7 @@ function za(e) {
|
|
|
6858
6857
|
}
|
|
6859
6858
|
var Ba = "Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472";
|
|
6860
6859
|
function Va(e) {
|
|
6861
|
-
|
|
6860
|
+
oe(e, "di") || Object.defineProperty(e, "di", {
|
|
6862
6861
|
enumerable: !1,
|
|
6863
6862
|
get: function() {
|
|
6864
6863
|
throw Error(Ba);
|
|
@@ -6871,7 +6870,7 @@ function Ha(e, t) {
|
|
|
6871
6870
|
return e.$instanceOf(t);
|
|
6872
6871
|
}
|
|
6873
6872
|
function Ua(e) {
|
|
6874
|
-
return
|
|
6873
|
+
return se(e.rootElements, function(e) {
|
|
6875
6874
|
return Ha(e, "bpmn:Process") || Ha(e, "bpmn:Collaboration");
|
|
6876
6875
|
});
|
|
6877
6876
|
}
|
|
@@ -6889,7 +6888,7 @@ function Wa(e, t) {
|
|
|
6889
6888
|
return n[e.id];
|
|
6890
6889
|
}
|
|
6891
6890
|
function c(n, r) {
|
|
6892
|
-
if (n.gfx) throw Error(t("already rendered {element}", { element:
|
|
6891
|
+
if (n.gfx) throw Error(t("already rendered {element}", { element: q(n) }));
|
|
6893
6892
|
return e.element(n, i[n.id], r);
|
|
6894
6893
|
}
|
|
6895
6894
|
function l(t, n) {
|
|
@@ -6903,7 +6902,7 @@ function Wa(e, t) {
|
|
|
6903
6902
|
d(n.message, {
|
|
6904
6903
|
element: e,
|
|
6905
6904
|
error: n
|
|
6906
|
-
}), console.error(t("failed to import {element}", { element:
|
|
6905
|
+
}), console.error(t("failed to import {element}", { element: q(e) })), console.error(n);
|
|
6907
6906
|
}
|
|
6908
6907
|
}
|
|
6909
6908
|
function d(t, n) {
|
|
@@ -6911,13 +6910,13 @@ function Wa(e, t) {
|
|
|
6911
6910
|
}
|
|
6912
6911
|
function f(e) {
|
|
6913
6912
|
var n = e.bpmnElement;
|
|
6914
|
-
n ? i[n.id] ? d(t("multiple DI elements defined for {element}", { element:
|
|
6913
|
+
n ? i[n.id] ? d(t("multiple DI elements defined for {element}", { element: q(n) }), { element: n }) : (i[n.id] = e, Va(n)) : d(t("no bpmnElement referenced in {element}", { element: q(e) }), { element: e });
|
|
6915
6914
|
}
|
|
6916
6915
|
function p(e) {
|
|
6917
6916
|
m(e.plane);
|
|
6918
6917
|
}
|
|
6919
6918
|
function m(e) {
|
|
6920
|
-
f(e),
|
|
6919
|
+
f(e), I(e.planeElement, h);
|
|
6921
6920
|
}
|
|
6922
6921
|
function h(e) {
|
|
6923
6922
|
f(e);
|
|
@@ -6928,19 +6927,19 @@ function Wa(e, t) {
|
|
|
6928
6927
|
if (!n && a && a.length && (n = a[0]), !n) throw Error(t("no diagram to display"));
|
|
6929
6928
|
i = {}, p(n);
|
|
6930
6929
|
var o = n.plane;
|
|
6931
|
-
if (!o) throw Error(t("no plane for {element}", { element:
|
|
6930
|
+
if (!o) throw Error(t("no plane for {element}", { element: q(n) }));
|
|
6932
6931
|
var s = o.bpmnElement;
|
|
6933
6932
|
if (!s) if (s = Ua(e), s) d(t("correcting missing bpmnElement on {plane} to {rootElement}", {
|
|
6934
|
-
plane:
|
|
6935
|
-
rootElement:
|
|
6933
|
+
plane: q(o),
|
|
6934
|
+
rootElement: q(s)
|
|
6936
6935
|
})), o.bpmnElement = s, f(o);
|
|
6937
6936
|
else throw Error(t("no process or collaboration to display"));
|
|
6938
6937
|
var c = l(s, o);
|
|
6939
6938
|
if (Ha(s, "bpmn:Process") || Ha(s, "bpmn:SubProcess")) v(s, c);
|
|
6940
|
-
else if (Ha(s, "bpmn:Collaboration"))
|
|
6939
|
+
else if (Ha(s, "bpmn:Collaboration")) F(s, c), y(e.rootElements, c);
|
|
6941
6940
|
else throw Error(t("unsupported bpmnElement for {plane}: {rootElement}", {
|
|
6942
|
-
plane:
|
|
6943
|
-
rootElement:
|
|
6941
|
+
plane: q(o),
|
|
6942
|
+
rootElement: q(s)
|
|
6944
6943
|
}));
|
|
6945
6944
|
_(r);
|
|
6946
6945
|
}
|
|
@@ -6948,10 +6947,10 @@ function Wa(e, t) {
|
|
|
6948
6947
|
for (var e; r.length;) e = r.shift(), e();
|
|
6949
6948
|
}
|
|
6950
6949
|
function v(e, t) {
|
|
6951
|
-
|
|
6950
|
+
ne(e, t), D(e.ioSpecification, t), E(e.artifacts, t), o(e);
|
|
6952
6951
|
}
|
|
6953
6952
|
function y(e, t) {
|
|
6954
|
-
|
|
6953
|
+
le(e, function(e) {
|
|
6955
6954
|
return !s(e) && Ha(e, "bpmn:Process") && e.laneSets;
|
|
6956
6955
|
}).forEach(a(v, t));
|
|
6957
6956
|
}
|
|
@@ -6959,7 +6958,7 @@ function Wa(e, t) {
|
|
|
6959
6958
|
u(e, t);
|
|
6960
6959
|
}
|
|
6961
6960
|
function x(e, t) {
|
|
6962
|
-
|
|
6961
|
+
I(e, a(b, t));
|
|
6963
6962
|
}
|
|
6964
6963
|
function S(e, t) {
|
|
6965
6964
|
u(e, t);
|
|
@@ -6974,71 +6973,71 @@ function Wa(e, t) {
|
|
|
6974
6973
|
u(e, t);
|
|
6975
6974
|
}
|
|
6976
6975
|
function E(e, t) {
|
|
6977
|
-
|
|
6976
|
+
I(e, function(e) {
|
|
6978
6977
|
Ha(e, "bpmn:Association") ? r.push(function() {
|
|
6979
6978
|
T(e, t);
|
|
6980
6979
|
}) : T(e, t);
|
|
6981
6980
|
});
|
|
6982
6981
|
}
|
|
6983
6982
|
function D(e, t) {
|
|
6984
|
-
e && (
|
|
6983
|
+
e && (I(e.dataInputs, a(C, t)), I(e.dataOutputs, a(w, t)));
|
|
6985
6984
|
}
|
|
6986
6985
|
function O(e, t) {
|
|
6987
|
-
|
|
6986
|
+
ne(e, t), E(e.artifacts, t);
|
|
6988
6987
|
}
|
|
6989
6988
|
function k(e, t) {
|
|
6990
6989
|
var n = u(e, t);
|
|
6991
6990
|
Ha(e, "bpmn:SubProcess") && O(e, n || t), Ha(e, "bpmn:Activity") && D(e.ioSpecification, t), r.push(function() {
|
|
6992
|
-
|
|
6991
|
+
I(e.dataInputAssociations, a(S, t)), I(e.dataOutputAssociations, a(S, t));
|
|
6993
6992
|
});
|
|
6994
6993
|
}
|
|
6995
|
-
function
|
|
6994
|
+
function ee(e, t) {
|
|
6996
6995
|
u(e, t);
|
|
6997
6996
|
}
|
|
6998
|
-
function
|
|
6997
|
+
function A(e, t) {
|
|
6999
6998
|
u(e, t);
|
|
7000
6999
|
}
|
|
7001
|
-
function
|
|
7000
|
+
function te(e, t) {
|
|
7002
7001
|
r.push(function() {
|
|
7003
7002
|
var n = u(e, t);
|
|
7004
|
-
e.childLaneSet &&
|
|
7003
|
+
e.childLaneSet && j(e.childLaneSet, n || t), re(e);
|
|
7005
7004
|
});
|
|
7006
7005
|
}
|
|
7007
|
-
function
|
|
7008
|
-
|
|
7009
|
-
}
|
|
7010
|
-
function ne(e, t) {
|
|
7011
|
-
L(e, a(te, t));
|
|
7006
|
+
function j(e, t) {
|
|
7007
|
+
I(e.lanes, a(te, t));
|
|
7012
7008
|
}
|
|
7013
7009
|
function M(e, t) {
|
|
7014
|
-
|
|
7010
|
+
I(e, a(j, t));
|
|
7011
|
+
}
|
|
7012
|
+
function ne(e, t) {
|
|
7013
|
+
N(e.flowElements, t), e.laneSets && M(e.laneSets, t);
|
|
7015
7014
|
}
|
|
7016
|
-
function
|
|
7017
|
-
|
|
7015
|
+
function N(e, n) {
|
|
7016
|
+
I(e, function(e) {
|
|
7018
7017
|
Ha(e, "bpmn:SequenceFlow") ? r.push(function() {
|
|
7019
|
-
|
|
7018
|
+
ee(e, n);
|
|
7020
7019
|
}) : Ha(e, "bpmn:BoundaryEvent") ? r.unshift(function() {
|
|
7021
7020
|
k(e, n);
|
|
7022
|
-
}) : Ha(e, "bpmn:FlowNode") ? k(e, n) : Ha(e, "bpmn:DataObject") || (Ha(e, "bpmn:DataStoreReference") || Ha(e, "bpmn:DataObjectReference") ?
|
|
7023
|
-
element:
|
|
7024
|
-
context: n ?
|
|
7021
|
+
}) : Ha(e, "bpmn:FlowNode") ? k(e, n) : Ha(e, "bpmn:DataObject") || (Ha(e, "bpmn:DataStoreReference") || Ha(e, "bpmn:DataObjectReference") ? A(e, n) : d(t("unrecognized flowElement {element} in context {context}", {
|
|
7022
|
+
element: q(e),
|
|
7023
|
+
context: n ? q(n.businessObject) : "null"
|
|
7025
7024
|
}), {
|
|
7026
7025
|
element: e,
|
|
7027
7026
|
context: n
|
|
7028
7027
|
}));
|
|
7029
7028
|
});
|
|
7030
7029
|
}
|
|
7031
|
-
function
|
|
7030
|
+
function P(e, t) {
|
|
7032
7031
|
var n = u(e, t), r = e.processRef;
|
|
7033
7032
|
r && v(r, n || t);
|
|
7034
7033
|
}
|
|
7035
|
-
function
|
|
7036
|
-
|
|
7034
|
+
function F(e, t) {
|
|
7035
|
+
I(e.participants, a(P, t)), E(e.artifacts, t), r.push(function() {
|
|
7037
7036
|
x(e.messageFlows, t);
|
|
7038
7037
|
});
|
|
7039
7038
|
}
|
|
7040
|
-
function
|
|
7041
|
-
|
|
7039
|
+
function re(e) {
|
|
7040
|
+
I(e.flowNodeRef, function(t) {
|
|
7042
7041
|
var n = t.get("lanes");
|
|
7043
7042
|
n && n.push(e);
|
|
7044
7043
|
});
|
|
@@ -7052,13 +7051,13 @@ function Wa(e, t) {
|
|
|
7052
7051
|
}
|
|
7053
7052
|
//#endregion
|
|
7054
7053
|
//#region node_modules/bpmn-js/lib/util/ModelUtil.js
|
|
7055
|
-
function
|
|
7054
|
+
function J(e, t) {
|
|
7056
7055
|
var n = Ka(e);
|
|
7057
7056
|
return n && typeof n.$instanceOf == "function" && n.$instanceOf(t);
|
|
7058
7057
|
}
|
|
7059
7058
|
function Ga(e, t) {
|
|
7060
7059
|
return pe(t, function(t) {
|
|
7061
|
-
return
|
|
7060
|
+
return J(e, t);
|
|
7062
7061
|
});
|
|
7063
7062
|
}
|
|
7064
7063
|
function Ka(e) {
|
|
@@ -7089,7 +7088,7 @@ function Ja(e, t, n) {
|
|
|
7089
7088
|
t ||= e.diagrams && e.diagrams[0];
|
|
7090
7089
|
var i = Ya(e, t);
|
|
7091
7090
|
if (!i) throw Error(a("no diagram to display"));
|
|
7092
|
-
|
|
7091
|
+
I(i, function(t) {
|
|
7093
7092
|
n.handleDefinitions(e, t);
|
|
7094
7093
|
});
|
|
7095
7094
|
var s = t.plane.bpmnElement.id;
|
|
@@ -7109,9 +7108,9 @@ function Ja(e, t, n) {
|
|
|
7109
7108
|
function Ya(e, t) {
|
|
7110
7109
|
if (t) {
|
|
7111
7110
|
var n = t.plane.bpmnElement, r = n;
|
|
7112
|
-
!
|
|
7113
|
-
var i =
|
|
7114
|
-
if (
|
|
7111
|
+
!J(n, "bpmn:Process") && !J(n, "bpmn:Collaboration") && (r = Za(n));
|
|
7112
|
+
var i = J(r, "bpmn:Collaboration") ? r : se(e.rootElements, function(e) {
|
|
7113
|
+
if (J(e, "bpmn:Collaboration")) return se(e.participants, function(e) {
|
|
7115
7114
|
return e.processRef === r;
|
|
7116
7115
|
});
|
|
7117
7116
|
}), a = [r];
|
|
@@ -7119,7 +7118,7 @@ function Ya(e, t) {
|
|
|
7119
7118
|
return e.processRef;
|
|
7120
7119
|
}), a.push(i));
|
|
7121
7120
|
var o = Xa(a), s = [t], c = [n];
|
|
7122
|
-
return
|
|
7121
|
+
return I(e.diagrams, function(e) {
|
|
7123
7122
|
var t = e.plane.bpmnElement;
|
|
7124
7123
|
o.indexOf(t) !== -1 && c.indexOf(t) === -1 && (s.push(e), c.push(t));
|
|
7125
7124
|
}), s;
|
|
@@ -7127,13 +7126,13 @@ function Ya(e, t) {
|
|
|
7127
7126
|
}
|
|
7128
7127
|
function Xa(e) {
|
|
7129
7128
|
var t = [];
|
|
7130
|
-
return
|
|
7129
|
+
return I(e, function(e) {
|
|
7131
7130
|
e && (t.push(e), t = t.concat(Xa(e.flowElements)));
|
|
7132
7131
|
}), t;
|
|
7133
7132
|
}
|
|
7134
7133
|
function Za(e) {
|
|
7135
7134
|
for (var t = e; t;) {
|
|
7136
|
-
if (
|
|
7135
|
+
if (J(t, "bpmn:Process")) return t;
|
|
7137
7136
|
t = t.$parent;
|
|
7138
7137
|
}
|
|
7139
7138
|
}
|
|
@@ -7175,10 +7174,10 @@ function so() {
|
|
|
7175
7174
|
}
|
|
7176
7175
|
//#endregion
|
|
7177
7176
|
//#region node_modules/bpmn-js/lib/BaseViewer.js
|
|
7178
|
-
function
|
|
7179
|
-
e =
|
|
7177
|
+
function Y(e) {
|
|
7178
|
+
e = R({}, uo, e), this._moddle = this._createModdle(e), this._container = this._createContainer(e), mo(this._container), this._init(this._container, this._moddle, e);
|
|
7180
7179
|
}
|
|
7181
|
-
|
|
7180
|
+
E(Y, qr), Y.prototype.importXML = za(async function(e, t) {
|
|
7182
7181
|
let n = this;
|
|
7183
7182
|
function r(e) {
|
|
7184
7183
|
let t = n.get("eventBus").createEvent(e);
|
|
@@ -7222,9 +7221,9 @@ D(X, qr), X.prototype.importXML = za(async function(e, t) {
|
|
|
7222
7221
|
warnings: t.warnings
|
|
7223
7222
|
}), t;
|
|
7224
7223
|
}
|
|
7225
|
-
}),
|
|
7224
|
+
}), Y.prototype.importDefinitions = za(async function(e, t) {
|
|
7226
7225
|
return this._setDefinitions(e), { warnings: (await this.open(t)).warnings };
|
|
7227
|
-
}),
|
|
7226
|
+
}), Y.prototype.open = za(async function(e) {
|
|
7228
7227
|
let t = this._definitions, n = e;
|
|
7229
7228
|
if (!t) {
|
|
7230
7229
|
let e = /* @__PURE__ */ Error("no XML imported");
|
|
@@ -7241,7 +7240,7 @@ D(X, qr), X.prototype.importXML = za(async function(e, t) {
|
|
|
7241
7240
|
}
|
|
7242
7241
|
let { warnings: r } = await Ja(this, t, n);
|
|
7243
7242
|
return { warnings: r };
|
|
7244
|
-
}),
|
|
7243
|
+
}), Y.prototype.saveXML = za(async function(e) {
|
|
7245
7244
|
e ||= {};
|
|
7246
7245
|
let t = this._definitions, n, r;
|
|
7247
7246
|
try {
|
|
@@ -7253,7 +7252,7 @@ D(X, qr), X.prototype.importXML = za(async function(e, t) {
|
|
|
7253
7252
|
let i = n ? { error: n } : { xml: r };
|
|
7254
7253
|
if (this._emit("saveXML.done", i), n) throw n;
|
|
7255
7254
|
return i;
|
|
7256
|
-
}),
|
|
7255
|
+
}), Y.prototype.saveSVG = za(async function(e = {}) {
|
|
7257
7256
|
this._emit("saveSVG.start");
|
|
7258
7257
|
let t, n;
|
|
7259
7258
|
try {
|
|
@@ -7267,47 +7266,47 @@ D(X, qr), X.prototype.importXML = za(async function(e, t) {
|
|
|
7267
7266
|
svg: t
|
|
7268
7267
|
}), n) throw n;
|
|
7269
7268
|
return { svg: t };
|
|
7270
|
-
}),
|
|
7269
|
+
}), Y.prototype._setDefinitions = function(e) {
|
|
7271
7270
|
this._definitions = e;
|
|
7272
|
-
},
|
|
7271
|
+
}, Y.prototype.getModules = function(e) {
|
|
7273
7272
|
return this._modules;
|
|
7274
|
-
},
|
|
7273
|
+
}, Y.prototype.clear = function() {
|
|
7275
7274
|
this.getDefinitions() && qr.prototype.clear.call(this);
|
|
7276
|
-
},
|
|
7275
|
+
}, Y.prototype.destroy = function() {
|
|
7277
7276
|
qr.prototype.destroy.call(this), dt(this._container);
|
|
7278
|
-
},
|
|
7277
|
+
}, Y.prototype.on = function(e, t, n, r) {
|
|
7279
7278
|
return this.get("eventBus").on(e, t, n, r);
|
|
7280
|
-
},
|
|
7279
|
+
}, Y.prototype.off = function(e, t) {
|
|
7281
7280
|
this.get("eventBus").off(e, t);
|
|
7282
|
-
},
|
|
7281
|
+
}, Y.prototype.attachTo = function(e) {
|
|
7283
7282
|
if (!e) throw Error("parentNode required");
|
|
7284
7283
|
this.detach(), e.get && e.constructor.prototype.jquery && (e = e.get(0)), typeof e == "string" && (e = lt(e)), e.appendChild(this._container), this._emit("attach", {}), this.get("canvas").resized();
|
|
7285
|
-
},
|
|
7284
|
+
}, Y.prototype.getDefinitions = function() {
|
|
7286
7285
|
return this._definitions;
|
|
7287
|
-
},
|
|
7286
|
+
}, Y.prototype.detach = function() {
|
|
7288
7287
|
let e = this._container, t = e.parentNode;
|
|
7289
7288
|
t && (this._emit("detach", {}), t.removeChild(e));
|
|
7290
|
-
},
|
|
7289
|
+
}, Y.prototype._init = function(e, t, n) {
|
|
7291
7290
|
let r = n.modules || this.getModules(n), i = n.additionalModules || [], a = [{
|
|
7292
7291
|
bpmnjs: ["value", this],
|
|
7293
7292
|
moddle: ["value", t]
|
|
7294
|
-
}], o = [].concat(a, r, i), s =
|
|
7295
|
-
canvas:
|
|
7293
|
+
}], o = [].concat(a, r, i), s = R(Ae(n, ["additionalModules"]), {
|
|
7294
|
+
canvas: R({}, n.canvas, { container: e }),
|
|
7296
7295
|
modules: o
|
|
7297
7296
|
});
|
|
7298
7297
|
qr.call(this, s), n && n.container && this.attachTo(n.container);
|
|
7299
|
-
},
|
|
7298
|
+
}, Y.prototype._emit = function(e, t) {
|
|
7300
7299
|
return this.get("eventBus").fire(e, t);
|
|
7301
|
-
},
|
|
7300
|
+
}, Y.prototype._createContainer = function(e) {
|
|
7302
7301
|
let t = st("<div class=\"bjs-container\"></div>");
|
|
7303
7302
|
return Be(t, {
|
|
7304
7303
|
width: fo(e.width),
|
|
7305
7304
|
height: fo(e.height),
|
|
7306
7305
|
position: e.position
|
|
7307
7306
|
}), t;
|
|
7308
|
-
},
|
|
7309
|
-
return new Ra(
|
|
7310
|
-
},
|
|
7307
|
+
}, Y.prototype._createModdle = function(e) {
|
|
7308
|
+
return new Ra(R({}, this._moddleExtensions, e.moddleExtensions));
|
|
7309
|
+
}, Y.prototype._modules = [];
|
|
7311
7310
|
function co(e, t) {
|
|
7312
7311
|
return e.warnings = t, e;
|
|
7313
7312
|
}
|
|
@@ -7324,7 +7323,7 @@ function fo(e) {
|
|
|
7324
7323
|
return e + (F(e) ? "px" : "");
|
|
7325
7324
|
}
|
|
7326
7325
|
function po(e, t) {
|
|
7327
|
-
return t &&
|
|
7326
|
+
return t && se(e.diagrams, function(e) {
|
|
7328
7327
|
return e.id === t;
|
|
7329
7328
|
}) || null;
|
|
7330
7329
|
}
|
|
@@ -7342,7 +7341,7 @@ function mo(e) {
|
|
|
7342
7341
|
//#endregion
|
|
7343
7342
|
//#region node_modules/bpmn-js/lib/util/DiUtil.js
|
|
7344
7343
|
function ho(e, t) {
|
|
7345
|
-
return
|
|
7344
|
+
return J(e, "bpmn:CallActivity") ? !1 : J(e, "bpmn:SubProcess") ? (t ||= qa(e), t && J(t, "bpmndi:BPMNPlane") ? !0 : t && !!t.isExpanded) : J(e, "bpmn:Participant") ? !!Ka(e).processRef : !0;
|
|
7346
7345
|
}
|
|
7347
7346
|
function go(e) {
|
|
7348
7347
|
return e && Ka(e).isInterrupting !== !1;
|
|
@@ -7352,8 +7351,8 @@ function _o(e) {
|
|
|
7352
7351
|
}
|
|
7353
7352
|
function vo(e, t) {
|
|
7354
7353
|
var n = Ka(e), r = !1;
|
|
7355
|
-
return n.eventDefinitions &&
|
|
7356
|
-
|
|
7354
|
+
return n.eventDefinitions && I(n.eventDefinitions, function(e) {
|
|
7355
|
+
J(e, t) && (r = !0);
|
|
7357
7356
|
}), r;
|
|
7358
7357
|
}
|
|
7359
7358
|
function yo(e) {
|
|
@@ -7368,9 +7367,9 @@ function xo(e) {
|
|
|
7368
7367
|
//#endregion
|
|
7369
7368
|
//#region node_modules/bpmn-js/lib/features/label-editing/LabelUtil.js
|
|
7370
7369
|
function So(e) {
|
|
7371
|
-
if (
|
|
7372
|
-
if (
|
|
7373
|
-
if (
|
|
7370
|
+
if (J(e, "bpmn:FlowElement") || J(e, "bpmn:Participant") || J(e, "bpmn:Lane") || J(e, "bpmn:SequenceFlow") || J(e, "bpmn:MessageFlow") || J(e, "bpmn:DataInput") || J(e, "bpmn:DataOutput")) return "name";
|
|
7371
|
+
if (J(e, "bpmn:TextAnnotation")) return "text";
|
|
7372
|
+
if (J(e, "bpmn:Group")) return "categoryValueRef";
|
|
7374
7373
|
}
|
|
7375
7374
|
function Co(e) {
|
|
7376
7375
|
var t = e.categoryValueRef;
|
|
@@ -7404,7 +7403,7 @@ function ko(e) {
|
|
|
7404
7403
|
var t = e.dataObjectRef;
|
|
7405
7404
|
return e.isCollection || t && t.isCollection;
|
|
7406
7405
|
}
|
|
7407
|
-
function
|
|
7406
|
+
function X(e) {
|
|
7408
7407
|
return e.businessObject;
|
|
7409
7408
|
}
|
|
7410
7409
|
function Z(e, t) {
|
|
@@ -7415,11 +7414,11 @@ function Q(e, t) {
|
|
|
7415
7414
|
var n = qa(e);
|
|
7416
7415
|
return n.get("color:border-color") || n.get("bioc:stroke") || t || "hsl(225, 10%, 15%)";
|
|
7417
7416
|
}
|
|
7418
|
-
function
|
|
7417
|
+
function Ao(e, t, n) {
|
|
7419
7418
|
var r = qa(e).get("label");
|
|
7420
7419
|
return r && r.get("color:color") || t || Q(e, n);
|
|
7421
7420
|
}
|
|
7422
|
-
function
|
|
7421
|
+
function jo(e) {
|
|
7423
7422
|
var t = e.x + e.width / 2, n = e.y + e.height / 2, r = e.width / 2;
|
|
7424
7423
|
return sn([
|
|
7425
7424
|
[
|
|
@@ -7455,7 +7454,7 @@ function Mo(e) {
|
|
|
7455
7454
|
["z"]
|
|
7456
7455
|
]);
|
|
7457
7456
|
}
|
|
7458
|
-
function
|
|
7457
|
+
function Mo(e, t) {
|
|
7459
7458
|
var n = e.x, r = e.y, i = e.width, a = e.height;
|
|
7460
7459
|
return sn([
|
|
7461
7460
|
[
|
|
@@ -7526,7 +7525,7 @@ function No(e, t) {
|
|
|
7526
7525
|
["z"]
|
|
7527
7526
|
]);
|
|
7528
7527
|
}
|
|
7529
|
-
function
|
|
7528
|
+
function No(e) {
|
|
7530
7529
|
var t = e.width, n = e.height, r = e.x, i = e.y, a = t / 2, o = n / 2;
|
|
7531
7530
|
return sn([
|
|
7532
7531
|
[
|
|
@@ -7552,7 +7551,7 @@ function Po(e) {
|
|
|
7552
7551
|
["z"]
|
|
7553
7552
|
]);
|
|
7554
7553
|
}
|
|
7555
|
-
function
|
|
7554
|
+
function Po(e) {
|
|
7556
7555
|
var t = e.x, n = e.y, r = e.width, i = e.height;
|
|
7557
7556
|
return sn([
|
|
7558
7557
|
[
|
|
@@ -7580,10 +7579,10 @@ function Fo(e) {
|
|
|
7580
7579
|
}
|
|
7581
7580
|
//#endregion
|
|
7582
7581
|
//#region node_modules/bpmn-js/lib/draw/BpmnRenderer.js
|
|
7583
|
-
var
|
|
7584
|
-
function
|
|
7582
|
+
var Fo = new k(), Io = 10, Lo = 3, Ro = .95, zo = .35, Bo = 10;
|
|
7583
|
+
function Vo(e, t, n, r, i, a, o) {
|
|
7585
7584
|
on.call(this, t, o);
|
|
7586
|
-
var s = e && e.defaultFillColor, c = e && e.defaultStrokeColor, l = e && e.defaultLabelColor, u =
|
|
7585
|
+
var s = e && e.defaultFillColor, c = e && e.defaultStrokeColor, l = e && e.defaultLabelColor, u = Fo.next(), d = {};
|
|
7587
7586
|
function f(e) {
|
|
7588
7587
|
return n.computeStyle(e, {
|
|
7589
7588
|
strokeLinecap: "round",
|
|
@@ -7605,7 +7604,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
7605
7604
|
var { ref: n = {
|
|
7606
7605
|
x: 0,
|
|
7607
7606
|
y: 0
|
|
7608
|
-
}, scale: r = 1, element: a } = t, o =
|
|
7607
|
+
}, scale: r = 1, element: a } = t, o = H("marker", {
|
|
7609
7608
|
id: e,
|
|
7610
7609
|
viewBox: "0 0 20 20",
|
|
7611
7610
|
refX: n.x,
|
|
@@ -7614,9 +7613,9 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
7614
7613
|
markerHeight: 20 * r,
|
|
7615
7614
|
orient: "auto"
|
|
7616
7615
|
});
|
|
7617
|
-
|
|
7616
|
+
B(o, a);
|
|
7618
7617
|
var s = lt("defs", i._svg);
|
|
7619
|
-
s || (s =
|
|
7618
|
+
s || (s = H("defs"), B(i._svg, s)), B(s, o), d[e] = o;
|
|
7620
7619
|
}
|
|
7621
7620
|
function h(e) {
|
|
7622
7621
|
return e.replace(/[^0-9a-zA-z]+/g, "_");
|
|
@@ -7627,7 +7626,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
7627
7626
|
}
|
|
7628
7627
|
function _(e, t, n, r) {
|
|
7629
7628
|
t === "sequenceflow-end" && m(e, {
|
|
7630
|
-
element:
|
|
7629
|
+
element: H("path", {
|
|
7631
7630
|
d: "M 1 5 L 11 10 L 1 15 Z",
|
|
7632
7631
|
...f({
|
|
7633
7632
|
fill: r,
|
|
@@ -7641,7 +7640,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
7641
7640
|
},
|
|
7642
7641
|
scale: .5
|
|
7643
7642
|
}), t === "messageflow-start" && m(e, {
|
|
7644
|
-
element:
|
|
7643
|
+
element: H("circle", {
|
|
7645
7644
|
cx: 6,
|
|
7646
7645
|
cy: 6,
|
|
7647
7646
|
r: 3.5,
|
|
@@ -7657,7 +7656,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
7657
7656
|
y: 6
|
|
7658
7657
|
}
|
|
7659
7658
|
}), t === "messageflow-end" && m(e, {
|
|
7660
|
-
element:
|
|
7659
|
+
element: H("path", {
|
|
7661
7660
|
d: "m 1 5 l 0 -3 l 7 3 l -7 3 z",
|
|
7662
7661
|
...f({
|
|
7663
7662
|
fill: n,
|
|
@@ -7671,7 +7670,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
7671
7670
|
y: 5
|
|
7672
7671
|
}
|
|
7673
7672
|
}), t === "association-start" && m(e, {
|
|
7674
|
-
element:
|
|
7673
|
+
element: H("path", {
|
|
7675
7674
|
d: "M 11 5 L 1 10 L 11 15",
|
|
7676
7675
|
...p({
|
|
7677
7676
|
fill: "none",
|
|
@@ -7686,7 +7685,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
7686
7685
|
},
|
|
7687
7686
|
scale: .5
|
|
7688
7687
|
}), t === "association-end" && m(e, {
|
|
7689
|
-
element:
|
|
7688
|
+
element: H("path", {
|
|
7690
7689
|
d: "M 1 5 L 11 10 L 1 15",
|
|
7691
7690
|
...p({
|
|
7692
7691
|
fill: "none",
|
|
@@ -7701,7 +7700,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
7701
7700
|
},
|
|
7702
7701
|
scale: .5
|
|
7703
7702
|
}), t === "conditional-flow-marker" && m(e, {
|
|
7704
|
-
element:
|
|
7703
|
+
element: H("path", {
|
|
7705
7704
|
d: "M 0 10 L 8 6 L 16 10 L 8 14 Z",
|
|
7706
7705
|
...f({
|
|
7707
7706
|
fill: n,
|
|
@@ -7714,7 +7713,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
7714
7713
|
},
|
|
7715
7714
|
scale: .5
|
|
7716
7715
|
}), t === "conditional-default-flow-marker" && m(e, {
|
|
7717
|
-
element:
|
|
7716
|
+
element: H("path", {
|
|
7718
7717
|
d: "M 6 4 L 10 16",
|
|
7719
7718
|
...f({ stroke: r })
|
|
7720
7719
|
}),
|
|
@@ -7727,17 +7726,17 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
7727
7726
|
}
|
|
7728
7727
|
function v(e, t, n, r, i) {
|
|
7729
7728
|
P(r) && (i = r, r = 0), r ||= 0, i = f(i), i.fill === "none" && delete i.fillOpacity;
|
|
7730
|
-
var a =
|
|
7729
|
+
var a = H("circle", {
|
|
7731
7730
|
cx: t / 2,
|
|
7732
7731
|
cy: n / 2,
|
|
7733
7732
|
r: Math.round((t + n) / 4 - r),
|
|
7734
7733
|
...i
|
|
7735
7734
|
});
|
|
7736
|
-
return
|
|
7735
|
+
return B(e, a), a;
|
|
7737
7736
|
}
|
|
7738
7737
|
function y(e, t, n, r, i, a) {
|
|
7739
7738
|
P(i) && (a = i, i = 0), i ||= 0, a = f(a);
|
|
7740
|
-
var o =
|
|
7739
|
+
var o = H("rect", {
|
|
7741
7740
|
x: i,
|
|
7742
7741
|
y: i,
|
|
7743
7742
|
width: t - i * 2,
|
|
@@ -7746,7 +7745,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
7746
7745
|
ry: r,
|
|
7747
7746
|
...a
|
|
7748
7747
|
});
|
|
7749
|
-
return
|
|
7748
|
+
return B(e, o), o;
|
|
7750
7749
|
}
|
|
7751
7750
|
function b(e, t, n, r) {
|
|
7752
7751
|
var i = t / 2, a = n / 2, o = [
|
|
@@ -7770,33 +7769,33 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
7770
7769
|
return e.x + "," + e.y;
|
|
7771
7770
|
}).join(" ");
|
|
7772
7771
|
r = f(r);
|
|
7773
|
-
var s =
|
|
7772
|
+
var s = H("polygon", {
|
|
7774
7773
|
...r,
|
|
7775
7774
|
points: o
|
|
7776
7775
|
});
|
|
7777
|
-
return
|
|
7776
|
+
return B(e, s), s;
|
|
7778
7777
|
}
|
|
7779
7778
|
function x(e, t, n, r) {
|
|
7780
7779
|
n = p(n);
|
|
7781
7780
|
var i = mn(t, n, r);
|
|
7782
|
-
return
|
|
7781
|
+
return B(e, i), i;
|
|
7783
7782
|
}
|
|
7784
7783
|
function S(e, t, n) {
|
|
7785
7784
|
return x(e, t, n, 5);
|
|
7786
7785
|
}
|
|
7787
7786
|
function C(e, t, n) {
|
|
7788
7787
|
n = p(n);
|
|
7789
|
-
var r =
|
|
7788
|
+
var r = H("path", {
|
|
7790
7789
|
...n,
|
|
7791
7790
|
d: t
|
|
7792
7791
|
});
|
|
7793
|
-
return
|
|
7792
|
+
return B(e, r), r;
|
|
7794
7793
|
}
|
|
7795
7794
|
function w(e, t, n, r) {
|
|
7796
|
-
return C(t, n,
|
|
7795
|
+
return C(t, n, R({ "data-marker": e }, r));
|
|
7797
7796
|
}
|
|
7798
7797
|
function T(e) {
|
|
7799
|
-
return
|
|
7798
|
+
return te[e];
|
|
7800
7799
|
}
|
|
7801
7800
|
function E(e) {
|
|
7802
7801
|
return function(t, n) {
|
|
@@ -7804,23 +7803,23 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
7804
7803
|
};
|
|
7805
7804
|
}
|
|
7806
7805
|
function D(e, t) {
|
|
7807
|
-
var n =
|
|
7806
|
+
var n = X(e), r = Oo(n);
|
|
7808
7807
|
return n.eventDefinitions && n.eventDefinitions.length > 1 ? n.parallelMultiple ? T("bpmn:ParallelMultipleEventDefinition")(t, e, r) : T("bpmn:MultipleEventDefinition")(t, e, r) : Do(n, "bpmn:MessageEventDefinition") ? T("bpmn:MessageEventDefinition")(t, e, r) : Do(n, "bpmn:TimerEventDefinition") ? T("bpmn:TimerEventDefinition")(t, e, r) : Do(n, "bpmn:ConditionalEventDefinition") ? T("bpmn:ConditionalEventDefinition")(t, e) : Do(n, "bpmn:SignalEventDefinition") ? T("bpmn:SignalEventDefinition")(t, e, r) : Do(n, "bpmn:EscalationEventDefinition") ? T("bpmn:EscalationEventDefinition")(t, e, r) : Do(n, "bpmn:LinkEventDefinition") ? T("bpmn:LinkEventDefinition")(t, e, r) : Do(n, "bpmn:ErrorEventDefinition") ? T("bpmn:ErrorEventDefinition")(t, e, r) : Do(n, "bpmn:CancelEventDefinition") ? T("bpmn:CancelEventDefinition")(t, e, r) : Do(n, "bpmn:CompensateEventDefinition") ? T("bpmn:CompensateEventDefinition")(t, e, r) : Do(n, "bpmn:TerminateEventDefinition") ? T("bpmn:TerminateEventDefinition")(t, e, r) : null;
|
|
7809
7808
|
}
|
|
7810
7809
|
function O(e, t, n) {
|
|
7811
|
-
n =
|
|
7810
|
+
n = R({ size: { width: 100 } }, n);
|
|
7812
7811
|
var r = a.createText(t || "", n);
|
|
7813
|
-
return bt(r).add("djs-label"),
|
|
7812
|
+
return bt(r).add("djs-label"), B(e, r), r;
|
|
7814
7813
|
}
|
|
7815
7814
|
function k(e, t, n) {
|
|
7816
|
-
return O(e,
|
|
7815
|
+
return O(e, X(t).name, {
|
|
7817
7816
|
box: t,
|
|
7818
7817
|
align: n,
|
|
7819
7818
|
padding: 7,
|
|
7820
|
-
style: { fill:
|
|
7819
|
+
style: { fill: Ao(t, l, c) }
|
|
7821
7820
|
});
|
|
7822
7821
|
}
|
|
7823
|
-
function
|
|
7822
|
+
function ee(e, t) {
|
|
7824
7823
|
var n = {
|
|
7825
7824
|
width: 90,
|
|
7826
7825
|
height: 30,
|
|
@@ -7830,29 +7829,29 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
7830
7829
|
return O(e, wo(t), {
|
|
7831
7830
|
box: n,
|
|
7832
7831
|
fitBox: !0,
|
|
7833
|
-
style:
|
|
7832
|
+
style: R({}, a.getExternalStyle(), { fill: Ao(t, l, c) })
|
|
7834
7833
|
});
|
|
7835
7834
|
}
|
|
7836
|
-
function
|
|
7835
|
+
function A(e, t, n) {
|
|
7837
7836
|
zr(O(e, t, {
|
|
7838
7837
|
box: {
|
|
7839
7838
|
height: 30,
|
|
7840
7839
|
width: n.height
|
|
7841
7840
|
},
|
|
7842
7841
|
align: "center-middle",
|
|
7843
|
-
style: { fill:
|
|
7842
|
+
style: { fill: Ao(n, l, c) }
|
|
7844
7843
|
}), 0, -(-1 * n.height), 270);
|
|
7845
7844
|
}
|
|
7846
|
-
var
|
|
7845
|
+
var te = this.handlers = {
|
|
7847
7846
|
"bpmn:Event": function(e, t, n) {
|
|
7848
|
-
return "fillOpacity" in n || (n.fillOpacity =
|
|
7847
|
+
return "fillOpacity" in n || (n.fillOpacity = Ro), v(e, t.width, t.height, n);
|
|
7849
7848
|
},
|
|
7850
7849
|
"bpmn:StartEvent": function(e, t) {
|
|
7851
7850
|
var n = {
|
|
7852
7851
|
fill: Z(t, s),
|
|
7853
7852
|
stroke: Q(t, c)
|
|
7854
7853
|
};
|
|
7855
|
-
|
|
7854
|
+
X(t).isInterrupting || (n = {
|
|
7856
7855
|
strokeDasharray: "6",
|
|
7857
7856
|
fill: Z(t, s),
|
|
7858
7857
|
stroke: Q(t, c)
|
|
@@ -8078,7 +8077,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8078
8077
|
fill: Z(t, s),
|
|
8079
8078
|
stroke: Q(t, c)
|
|
8080
8079
|
});
|
|
8081
|
-
return v(e, t.width, t.height,
|
|
8080
|
+
return v(e, t.width, t.height, Lo, {
|
|
8082
8081
|
strokeWidth: 1.5,
|
|
8083
8082
|
fill: Z(t, "none"),
|
|
8084
8083
|
stroke: Q(t, c)
|
|
@@ -8087,14 +8086,14 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8087
8086
|
"bpmn:IntermediateCatchEvent": E("bpmn:IntermediateEvent"),
|
|
8088
8087
|
"bpmn:IntermediateThrowEvent": E("bpmn:IntermediateEvent"),
|
|
8089
8088
|
"bpmn:Activity": function(e, t, n) {
|
|
8090
|
-
return n ||= {}, "fillOpacity" in n || (n.fillOpacity =
|
|
8089
|
+
return n ||= {}, "fillOpacity" in n || (n.fillOpacity = Ro), y(e, t.width, t.height, Io, n);
|
|
8091
8090
|
},
|
|
8092
8091
|
"bpmn:Task": function(e, t) {
|
|
8093
8092
|
var n = {
|
|
8094
8093
|
fill: Z(t, s),
|
|
8095
8094
|
stroke: Q(t, c)
|
|
8096
8095
|
}, r = T("bpmn:Activity")(e, t, n);
|
|
8097
|
-
return k(e, t, "center-middle"),
|
|
8096
|
+
return k(e, t, "center-middle"), j(e, t), r;
|
|
8098
8097
|
},
|
|
8099
8098
|
"bpmn:ServiceTask": function(e, t) {
|
|
8100
8099
|
var n = T("bpmn:Task")(e, t);
|
|
@@ -8174,7 +8173,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8174
8173
|
}), n;
|
|
8175
8174
|
},
|
|
8176
8175
|
"bpmn:ReceiveTask": function(e, t) {
|
|
8177
|
-
var n =
|
|
8176
|
+
var n = X(t), i = T("bpmn:Task")(e, t), a;
|
|
8178
8177
|
return n.instantiate ? (v(e, 28, 28, 20 * .22, { strokeWidth: 1 }), a = r.getScaledPath("TASK_TYPE_INSTANTIATING_SEND", { abspos: {
|
|
8179
8178
|
x: 7.77,
|
|
8180
8179
|
y: 9.52
|
|
@@ -8205,14 +8204,14 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8205
8204
|
},
|
|
8206
8205
|
"bpmn:BusinessRuleTask": function(e, t) {
|
|
8207
8206
|
var n = T("bpmn:Task")(e, t);
|
|
8208
|
-
return
|
|
8207
|
+
return V(C(e, r.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER", { abspos: {
|
|
8209
8208
|
x: 8,
|
|
8210
8209
|
y: 8
|
|
8211
8210
|
} })), {
|
|
8212
8211
|
strokeWidth: 1,
|
|
8213
8212
|
fill: Z(t, "#aaaaaa"),
|
|
8214
8213
|
stroke: Q(t, c)
|
|
8215
|
-
}),
|
|
8214
|
+
}), V(C(e, r.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN", { abspos: {
|
|
8216
8215
|
x: 8,
|
|
8217
8216
|
y: 8
|
|
8218
8217
|
} })), {
|
|
@@ -8227,10 +8226,10 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8227
8226
|
...n
|
|
8228
8227
|
};
|
|
8229
8228
|
var r = T("bpmn:Activity")(e, t, n), i = ho(t);
|
|
8230
|
-
return _o(t) &&
|
|
8229
|
+
return _o(t) && V(r, {
|
|
8231
8230
|
strokeDasharray: "0, 5.5",
|
|
8232
8231
|
strokeWidth: 2.5
|
|
8233
|
-
}), k(e, t, i ? "center-top" : "center-middle"), i ?
|
|
8232
|
+
}), k(e, t, i ? "center-top" : "center-middle"), i ? j(e, t) : j(e, t, ["SubProcessMarker"]), r;
|
|
8234
8233
|
},
|
|
8235
8234
|
"bpmn:AdHocSubProcess": function(e, t) {
|
|
8236
8235
|
return T("bpmn:SubProcess")(e, t);
|
|
@@ -8240,14 +8239,14 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8240
8239
|
stroke: Q(t, c),
|
|
8241
8240
|
strokeWidth: 1.5
|
|
8242
8241
|
});
|
|
8243
|
-
return y(e, t.width, t.height,
|
|
8242
|
+
return y(e, t.width, t.height, Io - 3, Lo, i), r;
|
|
8244
8243
|
},
|
|
8245
8244
|
"bpmn:CallActivity": function(e, t) {
|
|
8246
8245
|
return T("bpmn:SubProcess")(e, t, { strokeWidth: 5 });
|
|
8247
8246
|
},
|
|
8248
8247
|
"bpmn:Participant": function(e, t) {
|
|
8249
8248
|
var n = 1.5, r = {
|
|
8250
|
-
fillOpacity:
|
|
8249
|
+
fillOpacity: Ro,
|
|
8251
8250
|
fill: Z(t, s),
|
|
8252
8251
|
stroke: Q(t, c),
|
|
8253
8252
|
strokeWidth: n
|
|
@@ -8263,29 +8262,29 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8263
8262
|
stroke: Q(t, c),
|
|
8264
8263
|
strokeWidth: n
|
|
8265
8264
|
});
|
|
8266
|
-
var a =
|
|
8267
|
-
|
|
8265
|
+
var a = X(t).name;
|
|
8266
|
+
A(e, a, t);
|
|
8268
8267
|
} else {
|
|
8269
|
-
var o =
|
|
8268
|
+
var o = X(t).name;
|
|
8270
8269
|
O(e, o, {
|
|
8271
8270
|
box: t,
|
|
8272
8271
|
align: "center-middle",
|
|
8273
|
-
style: { fill:
|
|
8272
|
+
style: { fill: Ao(t, l, c) }
|
|
8274
8273
|
});
|
|
8275
8274
|
}
|
|
8276
|
-
return
|
|
8275
|
+
return X(t).participantMultiplicity && T("ParticipantMultiplicityMarker")(e, t), i;
|
|
8277
8276
|
},
|
|
8278
8277
|
"bpmn:Lane": function(e, t, n) {
|
|
8279
8278
|
var r = y(e, t.width, t.height, 0, {
|
|
8280
8279
|
fill: Z(t, s),
|
|
8281
|
-
fillOpacity:
|
|
8280
|
+
fillOpacity: zo,
|
|
8282
8281
|
stroke: Q(t, c),
|
|
8283
8282
|
strokeWidth: 1.5,
|
|
8284
8283
|
...n
|
|
8285
|
-
}), i =
|
|
8284
|
+
}), i = X(t);
|
|
8286
8285
|
if (i.$type === "bpmn:Lane") {
|
|
8287
8286
|
var a = i.name;
|
|
8288
|
-
|
|
8287
|
+
A(e, a, t);
|
|
8289
8288
|
}
|
|
8290
8289
|
return r;
|
|
8291
8290
|
},
|
|
@@ -8349,7 +8348,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8349
8348
|
}), n;
|
|
8350
8349
|
},
|
|
8351
8350
|
"bpmn:EventBasedGateway": function(e, t) {
|
|
8352
|
-
var n =
|
|
8351
|
+
var n = X(t), i = T("bpmn:Gateway")(e, t);
|
|
8353
8352
|
v(e, t.width, t.height, t.height * .2, {
|
|
8354
8353
|
strokeWidth: 1,
|
|
8355
8354
|
fill: "none",
|
|
@@ -8393,7 +8392,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8393
8392
|
"bpmn:Gateway": function(e, t) {
|
|
8394
8393
|
return b(e, t.width, t.height, {
|
|
8395
8394
|
fill: Z(t, s),
|
|
8396
|
-
fillOpacity:
|
|
8395
|
+
fillOpacity: Ro,
|
|
8397
8396
|
stroke: Q(t, c)
|
|
8398
8397
|
});
|
|
8399
8398
|
},
|
|
@@ -8401,11 +8400,11 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8401
8400
|
var n = Z(t, s), r = Q(t, c), i = S(e, t.waypoints, {
|
|
8402
8401
|
markerEnd: g("sequenceflow-end", n, r),
|
|
8403
8402
|
stroke: Q(t, c)
|
|
8404
|
-
}), a =
|
|
8405
|
-
return t.source && (o = t.source.businessObject, a.conditionExpression && o.$instanceOf("bpmn:Activity") &&
|
|
8403
|
+
}), a = X(t), o;
|
|
8404
|
+
return t.source && (o = t.source.businessObject, a.conditionExpression && o.$instanceOf("bpmn:Activity") && V(i, { markerStart: g("conditional-flow-marker", n, r) }), o.default && (o.$instanceOf("bpmn:Gateway") || o.$instanceOf("bpmn:Activity")) && o.default === a && V(i, { markerStart: g("conditional-default-flow-marker", n, r) })), i;
|
|
8406
8405
|
},
|
|
8407
8406
|
"bpmn:Association": function(e, t, n) {
|
|
8408
|
-
var r =
|
|
8407
|
+
var r = X(t), i = Z(t, s), a = Q(t, c);
|
|
8409
8408
|
return n = {
|
|
8410
8409
|
strokeDasharray: "0, 5",
|
|
8411
8410
|
stroke: Q(t, c),
|
|
@@ -8421,7 +8420,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8421
8420
|
return T("bpmn:Association")(e, t, { markerEnd: g("association-end", n, r) });
|
|
8422
8421
|
},
|
|
8423
8422
|
"bpmn:MessageFlow": function(e, t) {
|
|
8424
|
-
var n =
|
|
8423
|
+
var n = X(t), i = qa(t), a = Z(t, s), o = Q(t, c), u = S(e, t.waypoints, {
|
|
8425
8424
|
markerEnd: g("messageflow-end", a, o),
|
|
8426
8425
|
markerStart: g("messageflow-start", a, o),
|
|
8427
8426
|
strokeDasharray: "10, 11",
|
|
@@ -8439,7 +8438,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8439
8438
|
fitBox: !0,
|
|
8440
8439
|
style: { fill: Q(t, l, c) }
|
|
8441
8440
|
}), v = m.getBBox(), y = _.getBBox();
|
|
8442
|
-
zr(_, d.x - y.width / 2, d.y + v.height / 2 +
|
|
8441
|
+
zr(_, d.x - y.width / 2, d.y + v.height / 2 + Bo, 0);
|
|
8443
8442
|
}
|
|
8444
8443
|
return u;
|
|
8445
8444
|
},
|
|
@@ -8455,10 +8454,10 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8455
8454
|
}
|
|
8456
8455
|
}), {
|
|
8457
8456
|
fill: Z(t, s),
|
|
8458
|
-
fillOpacity:
|
|
8457
|
+
fillOpacity: Ro,
|
|
8459
8458
|
stroke: Q(t, c)
|
|
8460
8459
|
});
|
|
8461
|
-
return ko(
|
|
8460
|
+
return ko(X(t)) && M(e, t), n;
|
|
8462
8461
|
},
|
|
8463
8462
|
"bpmn:DataObjectReference": E("bpmn:DataObject"),
|
|
8464
8463
|
"bpmn:DataInput": function(e, t) {
|
|
@@ -8485,12 +8484,12 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8485
8484
|
}), {
|
|
8486
8485
|
strokeWidth: 2,
|
|
8487
8486
|
fill: Z(t, s),
|
|
8488
|
-
fillOpacity:
|
|
8487
|
+
fillOpacity: Ro,
|
|
8489
8488
|
stroke: Q(t, c)
|
|
8490
8489
|
});
|
|
8491
8490
|
},
|
|
8492
8491
|
"bpmn:BoundaryEvent": function(e, t) {
|
|
8493
|
-
var n =
|
|
8492
|
+
var n = X(t).cancelActivity, r = {
|
|
8494
8493
|
strokeWidth: 1.5,
|
|
8495
8494
|
fill: Z(t, s),
|
|
8496
8495
|
stroke: Q(t, c)
|
|
@@ -8503,10 +8502,10 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8503
8502
|
...r,
|
|
8504
8503
|
fill: "none"
|
|
8505
8504
|
}, o = T("bpmn:Event")(e, t, i);
|
|
8506
|
-
return v(e, t.width, t.height,
|
|
8505
|
+
return v(e, t.width, t.height, Lo, a), D(t, e), o;
|
|
8507
8506
|
},
|
|
8508
8507
|
"bpmn:Group": function(e, t) {
|
|
8509
|
-
return y(e, t.width, t.height,
|
|
8508
|
+
return y(e, t.width, t.height, Io, {
|
|
8510
8509
|
stroke: Q(t, c),
|
|
8511
8510
|
strokeWidth: 1.5,
|
|
8512
8511
|
strokeDasharray: "10,6,0,6",
|
|
@@ -8515,7 +8514,7 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8515
8514
|
});
|
|
8516
8515
|
},
|
|
8517
8516
|
label: function(e, t) {
|
|
8518
|
-
return
|
|
8517
|
+
return ee(e, t);
|
|
8519
8518
|
},
|
|
8520
8519
|
"bpmn:TextAnnotation": function(e, t) {
|
|
8521
8520
|
var n = y(e, t.width, t.height, 0, 0, {
|
|
@@ -8531,11 +8530,11 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8531
8530
|
mx: 0,
|
|
8532
8531
|
my: 0
|
|
8533
8532
|
}
|
|
8534
|
-
}), { stroke: Q(t, c) }), O(e,
|
|
8533
|
+
}), { stroke: Q(t, c) }), O(e, X(t).text || "", {
|
|
8535
8534
|
box: t,
|
|
8536
8535
|
align: "left-top",
|
|
8537
8536
|
padding: 7,
|
|
8538
|
-
style: { fill:
|
|
8537
|
+
style: { fill: Ao(t, l, c) }
|
|
8539
8538
|
}), n;
|
|
8540
8539
|
},
|
|
8541
8540
|
ParticipantMultiplicityMarker: function(e, t) {
|
|
@@ -8653,8 +8652,8 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8653
8652
|
});
|
|
8654
8653
|
}
|
|
8655
8654
|
};
|
|
8656
|
-
function
|
|
8657
|
-
var r =
|
|
8655
|
+
function j(e, t, n) {
|
|
8656
|
+
var r = X(t), i = n && n.indexOf("SubProcessMarker") !== -1 ? {
|
|
8658
8657
|
seq: -21,
|
|
8659
8658
|
parallel: -22,
|
|
8660
8659
|
compensation: -42,
|
|
@@ -8667,13 +8666,13 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8667
8666
|
loop: 0,
|
|
8668
8667
|
adhoc: 10
|
|
8669
8668
|
};
|
|
8670
|
-
|
|
8669
|
+
I(n, function(n) {
|
|
8671
8670
|
T(n)(e, t, i);
|
|
8672
8671
|
}), r.isForCompensation && T("CompensationMarker")(e, t, i), r.$type === "bpmn:AdHocSubProcess" && T("AdhocMarker")(e, t, i);
|
|
8673
8672
|
var a = r.loopCharacteristics, o = a && a.isSequential;
|
|
8674
8673
|
a && (o === void 0 && T("LoopMarker")(e, t, i), o === !1 && T("ParallelMarker")(e, t, i), o === !0 && T("SequentialMarker")(e, t, i));
|
|
8675
8674
|
}
|
|
8676
|
-
function
|
|
8675
|
+
function M(e, t) {
|
|
8677
8676
|
var n = (t.height - 18) / t.height;
|
|
8678
8677
|
C(e, r.getScaledPath("DATA_OBJECT_COLLECTION_PATH", {
|
|
8679
8678
|
xScaleFactor: 1,
|
|
@@ -8688,39 +8687,39 @@ function Ho(e, t, n, r, i, a, o) {
|
|
|
8688
8687
|
}
|
|
8689
8688
|
this._drawPath = C, this._renderer = T;
|
|
8690
8689
|
}
|
|
8691
|
-
|
|
8690
|
+
E(Vo, on), Vo.$inject = [
|
|
8692
8691
|
"config.bpmnRenderer",
|
|
8693
8692
|
"eventBus",
|
|
8694
8693
|
"styles",
|
|
8695
8694
|
"pathMap",
|
|
8696
8695
|
"canvas",
|
|
8697
8696
|
"textRenderer"
|
|
8698
|
-
],
|
|
8699
|
-
return
|
|
8700
|
-
},
|
|
8697
|
+
], Vo.prototype.canRender = function(e) {
|
|
8698
|
+
return J(e, "bpmn:BaseElement");
|
|
8699
|
+
}, Vo.prototype.drawShape = function(e, t) {
|
|
8701
8700
|
var n = t.type;
|
|
8702
8701
|
return this._renderer(n)(e, t);
|
|
8703
|
-
},
|
|
8702
|
+
}, Vo.prototype.drawConnection = function(e, t) {
|
|
8704
8703
|
var n = t.type;
|
|
8705
8704
|
return this._renderer(n)(e, t);
|
|
8706
|
-
},
|
|
8707
|
-
return
|
|
8705
|
+
}, Vo.prototype.getShapePath = function(e) {
|
|
8706
|
+
return J(e, "bpmn:Event") ? jo(e) : J(e, "bpmn:Activity") ? Mo(e, Io) : J(e, "bpmn:Gateway") ? No(e) : Po(e);
|
|
8708
8707
|
};
|
|
8709
8708
|
//#endregion
|
|
8710
8709
|
//#region node_modules/diagram-js/lib/util/Text.js
|
|
8711
|
-
var
|
|
8710
|
+
var Ho = 0, Uo = {
|
|
8712
8711
|
width: 150,
|
|
8713
8712
|
height: 50
|
|
8714
8713
|
};
|
|
8715
|
-
function
|
|
8714
|
+
function Wo(e) {
|
|
8716
8715
|
var t = e.split("-");
|
|
8717
8716
|
return {
|
|
8718
8717
|
horizontal: t[0] || "center",
|
|
8719
8718
|
vertical: t[1] || "top"
|
|
8720
8719
|
};
|
|
8721
8720
|
}
|
|
8722
|
-
function
|
|
8723
|
-
return P(e) ?
|
|
8721
|
+
function Go(e) {
|
|
8722
|
+
return P(e) ? R({
|
|
8724
8723
|
top: 0,
|
|
8725
8724
|
left: 0,
|
|
8726
8725
|
right: 0,
|
|
@@ -8732,7 +8731,7 @@ function Ko(e) {
|
|
|
8732
8731
|
bottom: e
|
|
8733
8732
|
};
|
|
8734
8733
|
}
|
|
8735
|
-
function
|
|
8734
|
+
function Ko(e, t) {
|
|
8736
8735
|
t.textContent = e;
|
|
8737
8736
|
var n;
|
|
8738
8737
|
try {
|
|
@@ -8748,13 +8747,13 @@ function qo(e, t) {
|
|
|
8748
8747
|
};
|
|
8749
8748
|
}
|
|
8750
8749
|
}
|
|
8751
|
-
function
|
|
8750
|
+
function qo(e, t, n) {
|
|
8752
8751
|
for (var r = e.shift(), i = r, a;;) {
|
|
8753
|
-
if (a =
|
|
8754
|
-
i =
|
|
8752
|
+
if (a = Ko(i, n), a.width = i ? a.width : 0, i === " " || i === "" || a.width < Math.round(t) || i.length < 2) return Jo(e, i, r, a);
|
|
8753
|
+
i = Zo(i, a.width, t);
|
|
8755
8754
|
}
|
|
8756
8755
|
}
|
|
8757
|
-
function
|
|
8756
|
+
function Jo(e, t, n, r) {
|
|
8758
8757
|
if (t.length < n.length) {
|
|
8759
8758
|
var i = n.slice(t.length).trim();
|
|
8760
8759
|
e.unshift(i);
|
|
@@ -8765,48 +8764,48 @@ function Yo(e, t, n, r) {
|
|
|
8765
8764
|
text: t
|
|
8766
8765
|
};
|
|
8767
8766
|
}
|
|
8768
|
-
var
|
|
8769
|
-
function
|
|
8767
|
+
var Yo = "";
|
|
8768
|
+
function Xo(e, t) {
|
|
8770
8769
|
var n = e.split(/(\s|-|\u00AD)/g), r, i = [], a = 0;
|
|
8771
8770
|
if (n.length > 1) for (; r = n.shift();) if (r.length + a < t) i.push(r), a += r.length;
|
|
8772
8771
|
else {
|
|
8773
|
-
(r === "-" || r ===
|
|
8772
|
+
(r === "-" || r === Yo) && i.pop();
|
|
8774
8773
|
break;
|
|
8775
8774
|
}
|
|
8776
8775
|
var o = i[i.length - 1];
|
|
8777
|
-
return o && o ===
|
|
8776
|
+
return o && o === Yo && (i[i.length - 1] = "-"), i.join("");
|
|
8778
8777
|
}
|
|
8779
|
-
function
|
|
8780
|
-
var r = Math.max(e.length * (n / t), 1), i =
|
|
8778
|
+
function Zo(e, t, n) {
|
|
8779
|
+
var r = Math.max(e.length * (n / t), 1), i = Xo(e, r);
|
|
8781
8780
|
return i ||= e.slice(0, Math.max(Math.round(r - 1), 1)), i;
|
|
8782
8781
|
}
|
|
8783
|
-
function
|
|
8782
|
+
function Qo() {
|
|
8784
8783
|
var e = document.getElementById("helper-svg");
|
|
8785
|
-
return e || (e =
|
|
8784
|
+
return e || (e = H("svg"), V(e, { id: "helper-svg" }), Be(e, {
|
|
8786
8785
|
visibility: "hidden",
|
|
8787
8786
|
position: "fixed",
|
|
8788
8787
|
width: 0,
|
|
8789
8788
|
height: 0
|
|
8790
8789
|
}), document.body.appendChild(e)), e;
|
|
8791
8790
|
}
|
|
8792
|
-
function
|
|
8793
|
-
this._config =
|
|
8794
|
-
size:
|
|
8795
|
-
padding:
|
|
8791
|
+
function $o(e) {
|
|
8792
|
+
this._config = R({}, {
|
|
8793
|
+
size: Uo,
|
|
8794
|
+
padding: Ho,
|
|
8796
8795
|
style: {},
|
|
8797
8796
|
align: "center-top"
|
|
8798
8797
|
}, e || {});
|
|
8799
8798
|
}
|
|
8800
|
-
|
|
8799
|
+
$o.prototype.createText = function(e, t) {
|
|
8801
8800
|
return this.layoutText(e, t).element;
|
|
8802
|
-
},
|
|
8801
|
+
}, $o.prototype.getDimensions = function(e, t) {
|
|
8803
8802
|
return this.layoutText(e, t).dimensions;
|
|
8804
|
-
},
|
|
8805
|
-
var n =
|
|
8806
|
-
for (
|
|
8803
|
+
}, $o.prototype.layoutText = function(e, t) {
|
|
8804
|
+
var n = R({}, this._config.size, t.box), r = R({}, this._config.style, t.style), i = Wo(t.align || this._config.align), a = Go(t.padding === void 0 ? this._config.padding : t.padding), o = t.fitBox || !1, s = es(r), c = e.split(/\u00AD?\r?\n/), l = [], u = n.width - a.left - a.right, d = H("text");
|
|
8805
|
+
for (V(d, {
|
|
8807
8806
|
x: 0,
|
|
8808
8807
|
y: 0
|
|
8809
|
-
}),
|
|
8808
|
+
}), V(d, r), B(Qo(), d); c.length;) l.push(qo(c, u, d));
|
|
8810
8809
|
i.vertical === "middle" && (a.top = a.bottom = 0);
|
|
8811
8810
|
var f = de(l, function(e, t, n) {
|
|
8812
8811
|
return e + (s || t.height);
|
|
@@ -8814,8 +8813,8 @@ es.prototype.createText = function(e, t) {
|
|
|
8814
8813
|
return t.width > e ? t.width : e;
|
|
8815
8814
|
}, 0), m = a.top;
|
|
8816
8815
|
i.vertical === "middle" && (m += (n.height - f) / 2), m -= (s || l[0].height) / 4;
|
|
8817
|
-
var h =
|
|
8818
|
-
return
|
|
8816
|
+
var h = H("text");
|
|
8817
|
+
return V(h, r), I(l, function(e) {
|
|
8819
8818
|
var t;
|
|
8820
8819
|
switch (m += s || e.height, i.horizontal) {
|
|
8821
8820
|
case "left":
|
|
@@ -8826,11 +8825,11 @@ es.prototype.createText = function(e, t) {
|
|
|
8826
8825
|
break;
|
|
8827
8826
|
default: t = Math.max(((o ? p : u) - e.width) / 2 + a.left, 0);
|
|
8828
8827
|
}
|
|
8829
|
-
var n =
|
|
8830
|
-
|
|
8828
|
+
var n = H("tspan");
|
|
8829
|
+
V(n, {
|
|
8831
8830
|
x: t,
|
|
8832
8831
|
y: m
|
|
8833
|
-
}), n.textContent = e.text,
|
|
8832
|
+
}), n.textContent = e.text, B(h, n);
|
|
8834
8833
|
}), Ut(d), {
|
|
8835
8834
|
dimensions: {
|
|
8836
8835
|
width: p,
|
|
@@ -8839,19 +8838,19 @@ es.prototype.createText = function(e, t) {
|
|
|
8839
8838
|
element: h
|
|
8840
8839
|
};
|
|
8841
8840
|
};
|
|
8842
|
-
function
|
|
8841
|
+
function es(e) {
|
|
8843
8842
|
if ("fontSize" in e && "lineHeight" in e) return e.lineHeight * parseInt(e.fontSize, 10);
|
|
8844
8843
|
}
|
|
8845
8844
|
//#endregion
|
|
8846
8845
|
//#region node_modules/bpmn-js/lib/draw/TextRenderer.js
|
|
8847
|
-
var
|
|
8848
|
-
function
|
|
8849
|
-
var t =
|
|
8846
|
+
var ts = 12, ns = 1.2, rs = 30;
|
|
8847
|
+
function is(e) {
|
|
8848
|
+
var t = R({
|
|
8850
8849
|
fontFamily: "Arial, sans-serif",
|
|
8851
|
-
fontSize:
|
|
8850
|
+
fontSize: ts,
|
|
8852
8851
|
fontWeight: "normal",
|
|
8853
|
-
lineHeight:
|
|
8854
|
-
}, e && e.defaultStyle || {}), n =
|
|
8852
|
+
lineHeight: ns
|
|
8853
|
+
}, e && e.defaultStyle || {}), n = R({}, t, { fontSize: parseInt(t.fontSize, 10) - 1 }, e && e.externalStyle || {}), r = new $o({ style: t });
|
|
8855
8854
|
this.getExternalLabelBounds = function(e, t) {
|
|
8856
8855
|
var i = r.getDimensions(t, {
|
|
8857
8856
|
box: {
|
|
@@ -8879,7 +8878,7 @@ function as(e) {
|
|
|
8879
8878
|
x: e.x,
|
|
8880
8879
|
y: e.y,
|
|
8881
8880
|
width: e.width,
|
|
8882
|
-
height: Math.max(
|
|
8881
|
+
height: Math.max(rs, Math.round(i.height))
|
|
8883
8882
|
};
|
|
8884
8883
|
}, this.createText = function(e, t) {
|
|
8885
8884
|
return r.createText(e, t || {});
|
|
@@ -8889,10 +8888,10 @@ function as(e) {
|
|
|
8889
8888
|
return n;
|
|
8890
8889
|
};
|
|
8891
8890
|
}
|
|
8892
|
-
|
|
8891
|
+
is.$inject = ["config.textRenderer"];
|
|
8893
8892
|
//#endregion
|
|
8894
8893
|
//#region node_modules/bpmn-js/lib/draw/PathMap.js
|
|
8895
|
-
function
|
|
8894
|
+
function as() {
|
|
8896
8895
|
this.pathMap = {
|
|
8897
8896
|
EVENT_MESSAGE: {
|
|
8898
8897
|
d: "m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",
|
|
@@ -9210,102 +9209,102 @@ function os() {
|
|
|
9210
9209
|
for (var o = t.containerHeight / n.height * t.yScaleFactor, s = t.containerWidth / n.width * t.xScaleFactor, c = 0; c < n.heightElements.length; c++) a["y" + c] = n.heightElements[c] * o;
|
|
9211
9210
|
for (var l = 0; l < n.widthElements.length; l++) a["x" + l] = n.widthElements[l] * s;
|
|
9212
9211
|
}
|
|
9213
|
-
return
|
|
9212
|
+
return ls(n.d, {
|
|
9214
9213
|
mx: r,
|
|
9215
9214
|
my: i,
|
|
9216
9215
|
e: a
|
|
9217
9216
|
});
|
|
9218
9217
|
};
|
|
9219
9218
|
}
|
|
9220
|
-
var
|
|
9221
|
-
function
|
|
9219
|
+
var os = /\{([^{}]+)\}/g, ss = /(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;
|
|
9220
|
+
function cs(e, t, n) {
|
|
9222
9221
|
var r = n;
|
|
9223
|
-
return t.replace(
|
|
9222
|
+
return t.replace(ss, function(e, t, n, i, a) {
|
|
9224
9223
|
t ||= i, r && (t in r && (r = r[t]), typeof r == "function" && a && (r = r()));
|
|
9225
9224
|
}), r = (r == null || r == n ? e : r) + "", r;
|
|
9226
9225
|
}
|
|
9227
|
-
function
|
|
9228
|
-
return String(e).replace(
|
|
9229
|
-
return
|
|
9226
|
+
function ls(e, t) {
|
|
9227
|
+
return String(e).replace(os, function(e, n) {
|
|
9228
|
+
return cs(e, n, t);
|
|
9230
9229
|
});
|
|
9231
9230
|
}
|
|
9232
9231
|
//#endregion
|
|
9233
9232
|
//#region node_modules/bpmn-js/lib/draw/index.js
|
|
9234
|
-
var
|
|
9233
|
+
var us = {
|
|
9235
9234
|
__init__: ["bpmnRenderer"],
|
|
9236
|
-
bpmnRenderer: ["type",
|
|
9237
|
-
textRenderer: ["type",
|
|
9238
|
-
pathMap: ["type",
|
|
9235
|
+
bpmnRenderer: ["type", Vo],
|
|
9236
|
+
textRenderer: ["type", is],
|
|
9237
|
+
pathMap: ["type", as]
|
|
9239
9238
|
};
|
|
9240
9239
|
//#endregion
|
|
9241
9240
|
//#region node_modules/diagram-js/lib/i18n/translate/translate.js
|
|
9242
|
-
function
|
|
9241
|
+
function ds(e, t) {
|
|
9243
9242
|
return t ||= {}, e.replace(/{([^}]+)}/g, function(e, n) {
|
|
9244
9243
|
return t[n] || "{" + n + "}";
|
|
9245
9244
|
});
|
|
9246
9245
|
}
|
|
9247
9246
|
//#endregion
|
|
9248
9247
|
//#region node_modules/diagram-js/lib/i18n/translate/index.js
|
|
9249
|
-
var
|
|
9248
|
+
var fs = { translate: ["value", ds] }, ps = {
|
|
9250
9249
|
width: 90,
|
|
9251
9250
|
height: 20
|
|
9252
9251
|
};
|
|
9252
|
+
function ms(e) {
|
|
9253
|
+
return J(e, "bpmn:Event") || J(e, "bpmn:Gateway") || J(e, "bpmn:DataStoreReference") || J(e, "bpmn:DataObjectReference") || J(e, "bpmn:DataInput") || J(e, "bpmn:DataOutput") || J(e, "bpmn:SequenceFlow") || J(e, "bpmn:MessageFlow") || J(e, "bpmn:Group");
|
|
9254
|
+
}
|
|
9253
9255
|
function hs(e) {
|
|
9254
|
-
return
|
|
9256
|
+
return bs(e.label);
|
|
9255
9257
|
}
|
|
9256
9258
|
function gs(e) {
|
|
9257
|
-
|
|
9258
|
-
}
|
|
9259
|
-
function _s(e) {
|
|
9260
|
-
var t = e.length / 2 - 1, n = e[Math.floor(t)], r = e[Math.ceil(t + .01)], i = vs(e), a = Math.atan((r.y - n.y) / (r.x - n.x)), o = i.x, s = i.y;
|
|
9259
|
+
var t = e.length / 2 - 1, n = e[Math.floor(t)], r = e[Math.ceil(t + .01)], i = _s(e), a = Math.atan((r.y - n.y) / (r.x - n.x)), o = i.x, s = i.y;
|
|
9261
9260
|
return Math.abs(a) < Math.PI / 2 ? s -= 15 : o += 15, {
|
|
9262
9261
|
x: o,
|
|
9263
9262
|
y: s
|
|
9264
9263
|
};
|
|
9265
9264
|
}
|
|
9266
|
-
function
|
|
9265
|
+
function _s(e) {
|
|
9267
9266
|
var t = e.length / 2 - 1, n = e[Math.floor(t)], r = e[Math.ceil(t + .01)];
|
|
9268
9267
|
return {
|
|
9269
9268
|
x: n.x + (r.x - n.x) / 2,
|
|
9270
9269
|
y: n.y + (r.y - n.y) / 2
|
|
9271
9270
|
};
|
|
9272
9271
|
}
|
|
9273
|
-
function
|
|
9274
|
-
return e.waypoints ?
|
|
9272
|
+
function vs(e) {
|
|
9273
|
+
return e.waypoints ? gs(e.waypoints) : J(e, "bpmn:Group") ? {
|
|
9275
9274
|
x: e.x + e.width / 2,
|
|
9276
|
-
y: e.y +
|
|
9275
|
+
y: e.y + ps.height / 2
|
|
9277
9276
|
} : {
|
|
9278
9277
|
x: e.x + e.width / 2,
|
|
9279
|
-
y: e.y + e.height +
|
|
9278
|
+
y: e.y + e.height + ps.height / 2
|
|
9280
9279
|
};
|
|
9281
9280
|
}
|
|
9282
|
-
function
|
|
9281
|
+
function ys(e, t) {
|
|
9283
9282
|
var n, r, i, a = e.label;
|
|
9284
9283
|
return a && a.bounds ? (i = a.bounds, r = {
|
|
9285
|
-
width: Math.max(
|
|
9284
|
+
width: Math.max(ps.width, i.width),
|
|
9286
9285
|
height: i.height
|
|
9287
9286
|
}, n = {
|
|
9288
9287
|
x: i.x + i.width / 2,
|
|
9289
9288
|
y: i.y + i.height / 2
|
|
9290
|
-
}) : (n =
|
|
9289
|
+
}) : (n = vs(t), r = ps), R({
|
|
9291
9290
|
x: n.x - r.width / 2,
|
|
9292
9291
|
y: n.y - r.height / 2
|
|
9293
9292
|
}, r);
|
|
9294
9293
|
}
|
|
9295
|
-
function
|
|
9294
|
+
function bs(e) {
|
|
9296
9295
|
return e && !!e.labelTarget;
|
|
9297
9296
|
}
|
|
9298
9297
|
//#endregion
|
|
9299
9298
|
//#region node_modules/bpmn-js/lib/import/BpmnImporter.js
|
|
9300
|
-
function
|
|
9301
|
-
return
|
|
9299
|
+
function xs(e, t, n) {
|
|
9300
|
+
return R({
|
|
9302
9301
|
id: e.id,
|
|
9303
9302
|
type: e.$type,
|
|
9304
9303
|
businessObject: e,
|
|
9305
9304
|
di: t
|
|
9306
9305
|
}, n);
|
|
9307
9306
|
}
|
|
9308
|
-
function
|
|
9307
|
+
function Ss(e, t, n) {
|
|
9309
9308
|
var r = e.waypoint;
|
|
9310
9309
|
return !r || r.length < 2 ? [Xn(t), Xn(n)] : r.map(function(e) {
|
|
9311
9310
|
return {
|
|
@@ -9314,33 +9313,33 @@ function Cs(e, t, n) {
|
|
|
9314
9313
|
};
|
|
9315
9314
|
});
|
|
9316
9315
|
}
|
|
9317
|
-
function
|
|
9316
|
+
function Cs(e, t, n, r) {
|
|
9318
9317
|
return Error(e("element {element} referenced by {referenced}#{property} not yet drawn", {
|
|
9319
|
-
element:
|
|
9320
|
-
referenced:
|
|
9318
|
+
element: q(n),
|
|
9319
|
+
referenced: q(t),
|
|
9321
9320
|
property: r
|
|
9322
9321
|
}));
|
|
9323
9322
|
}
|
|
9324
|
-
function
|
|
9323
|
+
function ws(e, t, n, r, i, a) {
|
|
9325
9324
|
this._eventBus = e, this._canvas = t, this._elementFactory = n, this._elementRegistry = r, this._translate = i, this._textRenderer = a;
|
|
9326
9325
|
}
|
|
9327
|
-
|
|
9326
|
+
ws.$inject = [
|
|
9328
9327
|
"eventBus",
|
|
9329
9328
|
"canvas",
|
|
9330
9329
|
"elementFactory",
|
|
9331
9330
|
"elementRegistry",
|
|
9332
9331
|
"translate",
|
|
9333
9332
|
"textRenderer"
|
|
9334
|
-
],
|
|
9333
|
+
], ws.prototype.add = function(e, t, n) {
|
|
9335
9334
|
var r, i = this._translate, a, o;
|
|
9336
|
-
if (
|
|
9337
|
-
var s =
|
|
9338
|
-
r = this._elementFactory.createRoot(
|
|
9339
|
-
} else if (
|
|
9340
|
-
var c = !ho(e, t), l =
|
|
9335
|
+
if (J(t, "bpmndi:BPMNPlane")) {
|
|
9336
|
+
var s = J(e, "bpmn:SubProcess") ? { id: e.id + "_plane" } : {};
|
|
9337
|
+
r = this._elementFactory.createRoot(xs(e, t, s)), this._canvas.addRootElement(r);
|
|
9338
|
+
} else if (J(t, "bpmndi:BPMNShape")) {
|
|
9339
|
+
var c = !ho(e, t), l = Es(e);
|
|
9341
9340
|
a = n && (n.hidden || n.collapsed);
|
|
9342
9341
|
var u = t.bounds;
|
|
9343
|
-
r = this._elementFactory.createShape(
|
|
9342
|
+
r = this._elementFactory.createShape(xs(e, t, {
|
|
9344
9343
|
collapsed: c,
|
|
9345
9344
|
hidden: a,
|
|
9346
9345
|
x: Math.round(u.x),
|
|
@@ -9348,29 +9347,29 @@ Ts.$inject = [
|
|
|
9348
9347
|
width: Math.round(u.width),
|
|
9349
9348
|
height: Math.round(u.height),
|
|
9350
9349
|
isFrame: l
|
|
9351
|
-
})),
|
|
9352
|
-
} else if (
|
|
9350
|
+
})), J(e, "bpmn:BoundaryEvent") && this._attachBoundary(e, r), J(e, "bpmn:Lane") && (o = 0), J(e, "bpmn:DataStoreReference") && (Ts(n, Xn(u)) || (n = this._canvas.findRoot(n))), this._canvas.addShape(r, n, o);
|
|
9351
|
+
} else if (J(t, "bpmndi:BPMNEdge")) {
|
|
9353
9352
|
var d = this._getSource(e), f = this._getTarget(e);
|
|
9354
|
-
a = n && (n.hidden || n.collapsed), r = this._elementFactory.createConnection(
|
|
9353
|
+
a = n && (n.hidden || n.collapsed), r = this._elementFactory.createConnection(xs(e, t, {
|
|
9355
9354
|
hidden: a,
|
|
9356
9355
|
source: d,
|
|
9357
9356
|
target: f,
|
|
9358
|
-
waypoints:
|
|
9359
|
-
})),
|
|
9357
|
+
waypoints: Ss(t, d, f)
|
|
9358
|
+
})), J(e, "bpmn:DataAssociation") && (n = this._canvas.findRoot(n)), this._canvas.addConnection(r, n, o);
|
|
9360
9359
|
} else throw Error(i("unknown di {di} for element {semantic}", {
|
|
9361
|
-
di:
|
|
9362
|
-
semantic:
|
|
9360
|
+
di: q(t),
|
|
9361
|
+
semantic: q(e)
|
|
9363
9362
|
}));
|
|
9364
|
-
return
|
|
9365
|
-
},
|
|
9363
|
+
return ms(e) && wo(r) && this.addLabel(e, t, r), this._eventBus.fire("bpmnElement.added", { element: r }), r;
|
|
9364
|
+
}, ws.prototype._attachBoundary = function(e, t) {
|
|
9366
9365
|
var n = this._translate, r = e.attachedToRef;
|
|
9367
|
-
if (!r) throw Error(n("missing {semantic}#attachedToRef", { semantic:
|
|
9366
|
+
if (!r) throw Error(n("missing {semantic}#attachedToRef", { semantic: q(e) }));
|
|
9368
9367
|
var i = this._elementRegistry.get(r.id), a = i && i.attachers;
|
|
9369
|
-
if (!i) throw
|
|
9368
|
+
if (!i) throw Cs(n, e, r, "attachedToRef");
|
|
9370
9369
|
t.host = i, a || (i.attachers = a = []), a.indexOf(t) === -1 && a.push(t);
|
|
9371
|
-
},
|
|
9372
|
-
var r =
|
|
9373
|
-
return i && (r = this._textRenderer.getExternalLabelBounds(r, i)), a = this._elementFactory.createLabel(
|
|
9370
|
+
}, ws.prototype.addLabel = function(e, t, n) {
|
|
9371
|
+
var r = ys(t, n), i = wo(n), a;
|
|
9372
|
+
return i && (r = this._textRenderer.getExternalLabelBounds(r, i)), a = this._elementFactory.createLabel(xs(e, t, {
|
|
9374
9373
|
id: e.id + "_label",
|
|
9375
9374
|
labelTarget: n,
|
|
9376
9375
|
type: "label",
|
|
@@ -9380,45 +9379,45 @@ Ts.$inject = [
|
|
|
9380
9379
|
width: Math.round(r.width),
|
|
9381
9380
|
height: Math.round(r.height)
|
|
9382
9381
|
})), this._canvas.addShape(a, n.parent);
|
|
9383
|
-
},
|
|
9382
|
+
}, ws.prototype._getEnd = function(e, t) {
|
|
9384
9383
|
var n, r, i = e.$type, a = this._translate;
|
|
9385
9384
|
if (r = e[t + "Ref"], t === "source" && i === "bpmn:DataInputAssociation" && (r &&= r[0]), (t === "source" && i === "bpmn:DataOutputAssociation" || t === "target" && i === "bpmn:DataInputAssociation") && (r = e.$parent), n = r && this._getElement(r), n) return n;
|
|
9386
|
-
throw r ?
|
|
9387
|
-
semantic:
|
|
9385
|
+
throw r ? Cs(a, e, r, t + "Ref") : Error(a("{semantic}#{side} Ref not specified", {
|
|
9386
|
+
semantic: q(e),
|
|
9388
9387
|
side: t
|
|
9389
9388
|
}));
|
|
9390
|
-
},
|
|
9389
|
+
}, ws.prototype._getSource = function(e) {
|
|
9391
9390
|
return this._getEnd(e, "source");
|
|
9392
|
-
},
|
|
9391
|
+
}, ws.prototype._getTarget = function(e) {
|
|
9393
9392
|
return this._getEnd(e, "target");
|
|
9394
|
-
},
|
|
9393
|
+
}, ws.prototype._getElement = function(e) {
|
|
9395
9394
|
return this._elementRegistry.get(e.id);
|
|
9396
9395
|
};
|
|
9397
|
-
function
|
|
9396
|
+
function Ts(e, t) {
|
|
9398
9397
|
var n = t.x, r = t.y;
|
|
9399
9398
|
return n >= e.x && n <= e.x + e.width && r >= e.y && r <= e.y + e.height;
|
|
9400
9399
|
}
|
|
9401
|
-
function
|
|
9402
|
-
return
|
|
9400
|
+
function Es(e) {
|
|
9401
|
+
return J(e, "bpmn:Group");
|
|
9403
9402
|
}
|
|
9404
9403
|
//#endregion
|
|
9405
9404
|
//#region node_modules/bpmn-js/lib/core/index.js
|
|
9406
|
-
var
|
|
9407
|
-
__depends__: [
|
|
9408
|
-
bpmnImporter: ["type",
|
|
9405
|
+
var Ds = { __depends__: [us, {
|
|
9406
|
+
__depends__: [fs],
|
|
9407
|
+
bpmnImporter: ["type", ws]
|
|
9409
9408
|
}] };
|
|
9410
9409
|
//#endregion
|
|
9411
9410
|
//#region node_modules/diagram-js/lib/util/Event.js
|
|
9412
|
-
function
|
|
9411
|
+
function Os(e) {
|
|
9413
9412
|
!e || typeof e.stopPropagation != "function" || e.stopPropagation();
|
|
9414
9413
|
}
|
|
9415
|
-
function
|
|
9414
|
+
function ks(e) {
|
|
9416
9415
|
return e.originalEvent || e.srcEvent;
|
|
9417
9416
|
}
|
|
9418
|
-
function
|
|
9419
|
-
|
|
9417
|
+
function As(e, t) {
|
|
9418
|
+
Os(e, t), Os(ks(e), t);
|
|
9420
9419
|
}
|
|
9421
|
-
function
|
|
9420
|
+
function js(e) {
|
|
9422
9421
|
return e.pointers && e.pointers.length && (e = e.pointers[0]), e.touches && e.touches.length && (e = e.touches[0]), e ? {
|
|
9423
9422
|
x: e.clientX,
|
|
9424
9423
|
y: e.clientY
|
|
@@ -9426,38 +9425,38 @@ function Ms(e) {
|
|
|
9426
9425
|
}
|
|
9427
9426
|
//#endregion
|
|
9428
9427
|
//#region node_modules/diagram-js/lib/util/Platform.js
|
|
9429
|
-
function
|
|
9428
|
+
function Ms() {
|
|
9430
9429
|
return /mac/i.test(navigator.platform);
|
|
9431
9430
|
}
|
|
9432
9431
|
//#endregion
|
|
9433
9432
|
//#region node_modules/diagram-js/lib/util/Mouse.js
|
|
9434
|
-
function
|
|
9435
|
-
return (
|
|
9433
|
+
function Ns(e, t) {
|
|
9434
|
+
return (ks(e) || e).button === t;
|
|
9435
|
+
}
|
|
9436
|
+
function Ps(e) {
|
|
9437
|
+
return Ns(e, 0);
|
|
9436
9438
|
}
|
|
9437
9439
|
function Fs(e) {
|
|
9438
|
-
return
|
|
9440
|
+
return Ns(e, 1);
|
|
9439
9441
|
}
|
|
9440
9442
|
function Is(e) {
|
|
9441
|
-
|
|
9443
|
+
var t = ks(e) || e;
|
|
9444
|
+
return Ps(e) ? Ms() ? t.metaKey : t.ctrlKey : !1;
|
|
9442
9445
|
}
|
|
9443
9446
|
function Ls(e) {
|
|
9444
|
-
var t =
|
|
9445
|
-
return
|
|
9446
|
-
}
|
|
9447
|
-
function Rs(e) {
|
|
9448
|
-
var t = As(e) || e;
|
|
9449
|
-
return Fs(e) && t.shiftKey;
|
|
9447
|
+
var t = ks(e) || e;
|
|
9448
|
+
return Ps(e) && t.shiftKey;
|
|
9450
9449
|
}
|
|
9451
9450
|
//#endregion
|
|
9452
9451
|
//#region node_modules/diagram-js/lib/features/interaction-events/InteractionEvents.js
|
|
9453
|
-
function
|
|
9452
|
+
function Rs(e) {
|
|
9454
9453
|
return !0;
|
|
9455
9454
|
}
|
|
9456
|
-
function
|
|
9457
|
-
return
|
|
9455
|
+
function zs(e) {
|
|
9456
|
+
return Ps(e) || Fs(e);
|
|
9458
9457
|
}
|
|
9459
|
-
var
|
|
9460
|
-
function
|
|
9458
|
+
var Bs = 500;
|
|
9459
|
+
function Vs(e, t, n) {
|
|
9461
9460
|
var r = this;
|
|
9462
9461
|
function i(n, r, i) {
|
|
9463
9462
|
if (!s(n, r)) {
|
|
@@ -9474,7 +9473,7 @@ function Hs(e, t, n) {
|
|
|
9474
9473
|
return a[e];
|
|
9475
9474
|
}
|
|
9476
9475
|
function s(e, t) {
|
|
9477
|
-
return !(l[e] ||
|
|
9476
|
+
return !(l[e] || Ps)(t);
|
|
9478
9477
|
}
|
|
9479
9478
|
var c = {
|
|
9480
9479
|
click: "element.click",
|
|
@@ -9486,11 +9485,11 @@ function Hs(e, t, n) {
|
|
|
9486
9485
|
mouseout: "element.out",
|
|
9487
9486
|
mouseup: "element.mouseup"
|
|
9488
9487
|
}, l = {
|
|
9489
|
-
"element.contextmenu":
|
|
9490
|
-
"element.mousedown":
|
|
9491
|
-
"element.mouseup":
|
|
9492
|
-
"element.click":
|
|
9493
|
-
"element.dblclick":
|
|
9488
|
+
"element.contextmenu": Rs,
|
|
9489
|
+
"element.mousedown": zs,
|
|
9490
|
+
"element.mouseup": zs,
|
|
9491
|
+
"element.click": zs,
|
|
9492
|
+
"element.dblclick": zs
|
|
9494
9493
|
};
|
|
9495
9494
|
function u(e, t, n) {
|
|
9496
9495
|
var r = c[e];
|
|
@@ -9509,12 +9508,12 @@ function Hs(e, t, n) {
|
|
|
9509
9508
|
r && nt.unbind(e, t, r.$delegate);
|
|
9510
9509
|
}
|
|
9511
9510
|
function m(e) {
|
|
9512
|
-
|
|
9511
|
+
I(c, function(t, n) {
|
|
9513
9512
|
f(e, n, t);
|
|
9514
9513
|
});
|
|
9515
9514
|
}
|
|
9516
9515
|
function h(e) {
|
|
9517
|
-
|
|
9516
|
+
I(c, function(t, n) {
|
|
9518
9517
|
p(e, n, t);
|
|
9519
9518
|
});
|
|
9520
9519
|
}
|
|
@@ -9528,13 +9527,13 @@ function Hs(e, t, n) {
|
|
|
9528
9527
|
element: n,
|
|
9529
9528
|
gfx: r
|
|
9530
9529
|
});
|
|
9531
|
-
}), e.on(["shape.changed", "connection.changed"],
|
|
9530
|
+
}), e.on(["shape.changed", "connection.changed"], Bs, function(t) {
|
|
9532
9531
|
var n = t.element, r = t.gfx;
|
|
9533
9532
|
e.fire("interactionEvents.updateHit", {
|
|
9534
9533
|
element: n,
|
|
9535
9534
|
gfx: r
|
|
9536
9535
|
});
|
|
9537
|
-
}), e.on("interactionEvents.createHit",
|
|
9536
|
+
}), e.on("interactionEvents.createHit", Bs, function(e) {
|
|
9538
9537
|
var t = e.element, n = e.gfx;
|
|
9539
9538
|
r.createDefaultHit(t, n);
|
|
9540
9539
|
}), e.on("interactionEvents.updateHit", function(e) {
|
|
@@ -9548,7 +9547,7 @@ function Hs(e, t, n) {
|
|
|
9548
9547
|
"no-move": y("djs-hit djs-hit-no-move")
|
|
9549
9548
|
};
|
|
9550
9549
|
function y(e, t) {
|
|
9551
|
-
return t =
|
|
9550
|
+
return t = R({
|
|
9552
9551
|
stroke: "white",
|
|
9553
9552
|
strokeWidth: 15
|
|
9554
9553
|
}, t || {}), n.cls(e, ["no-fill", "no-border"], t);
|
|
@@ -9556,13 +9555,13 @@ function Hs(e, t, n) {
|
|
|
9556
9555
|
function b(e, t) {
|
|
9557
9556
|
var n = v[t];
|
|
9558
9557
|
if (!n) throw Error("invalid hit type <" + t + ">");
|
|
9559
|
-
return
|
|
9558
|
+
return V(e, n), e;
|
|
9560
9559
|
}
|
|
9561
9560
|
function x(e, t) {
|
|
9562
|
-
|
|
9561
|
+
B(e, t);
|
|
9563
9562
|
}
|
|
9564
9563
|
this.removeHits = function(e) {
|
|
9565
|
-
|
|
9564
|
+
I(ut(".djs-hit", e), Ut);
|
|
9566
9565
|
}, this.createDefaultHit = function(e, t) {
|
|
9567
9566
|
var n = e.waypoints, r = e.isFrame, i;
|
|
9568
9567
|
return n ? this.createWaypointsHit(t, n) : (i = r ? "stroke" : "all", this.createBoxHit(t, i, {
|
|
@@ -9573,45 +9572,45 @@ function Hs(e, t, n) {
|
|
|
9573
9572
|
var n = mn(t);
|
|
9574
9573
|
return b(n, "stroke"), x(e, n), n;
|
|
9575
9574
|
}, this.createBoxHit = function(e, t, n) {
|
|
9576
|
-
n =
|
|
9575
|
+
n = R({
|
|
9577
9576
|
x: 0,
|
|
9578
9577
|
y: 0
|
|
9579
9578
|
}, n);
|
|
9580
|
-
var r =
|
|
9581
|
-
return b(r, t),
|
|
9579
|
+
var r = H("rect");
|
|
9580
|
+
return b(r, t), V(r, n), x(e, r), r;
|
|
9582
9581
|
}, this.updateDefaultHit = function(e, t) {
|
|
9583
9582
|
var n = lt(".djs-hit", t);
|
|
9584
|
-
if (n) return e.waypoints ? hn(n, e.waypoints) :
|
|
9583
|
+
if (n) return e.waypoints ? hn(n, e.waypoints) : V(n, {
|
|
9585
9584
|
width: e.width,
|
|
9586
9585
|
height: e.height
|
|
9587
9586
|
}), n;
|
|
9588
9587
|
}, this.fire = i, this.triggerMouseEvent = u, this.mouseHandler = o, this.registerEvent = f, this.unregisterEvent = p;
|
|
9589
9588
|
}
|
|
9590
|
-
|
|
9589
|
+
Vs.$inject = [
|
|
9591
9590
|
"eventBus",
|
|
9592
9591
|
"elementRegistry",
|
|
9593
9592
|
"styles"
|
|
9594
9593
|
];
|
|
9595
9594
|
//#endregion
|
|
9596
9595
|
//#region node_modules/diagram-js/lib/features/interaction-events/index.js
|
|
9597
|
-
var
|
|
9596
|
+
var Hs = {
|
|
9598
9597
|
__init__: ["interactionEvents"],
|
|
9599
|
-
interactionEvents: ["type",
|
|
9600
|
-
},
|
|
9601
|
-
function
|
|
9598
|
+
interactionEvents: ["type", Vs]
|
|
9599
|
+
}, Us = 500;
|
|
9600
|
+
function Ws(e, t) {
|
|
9602
9601
|
this.offset = 6;
|
|
9603
9602
|
var n = t.cls("djs-outline", ["no-fill"]), r = this;
|
|
9604
9603
|
function i(e, t) {
|
|
9605
|
-
var r =
|
|
9606
|
-
return
|
|
9604
|
+
var r = H("rect");
|
|
9605
|
+
return V(r, R({
|
|
9607
9606
|
x: 10,
|
|
9608
9607
|
y: 10,
|
|
9609
9608
|
rx: 4,
|
|
9610
9609
|
width: 100,
|
|
9611
9610
|
height: 100
|
|
9612
|
-
}, n)),
|
|
9611
|
+
}, n)), B(e, r), r;
|
|
9613
9612
|
}
|
|
9614
|
-
e.on(["shape.added", "shape.changed"],
|
|
9613
|
+
e.on(["shape.added", "shape.changed"], Us, function(e) {
|
|
9615
9614
|
var t = e.element, n = e.gfx, a = lt(".djs-outline", n);
|
|
9616
9615
|
a ||= i(n, t), r.updateShapeOutline(a, t);
|
|
9617
9616
|
}), e.on(["connection.added", "connection.changed"], function(e) {
|
|
@@ -9619,35 +9618,35 @@ function Gs(e, t) {
|
|
|
9619
9618
|
a ||= i(n, t), r.updateConnectionOutline(a, t);
|
|
9620
9619
|
});
|
|
9621
9620
|
}
|
|
9622
|
-
|
|
9623
|
-
|
|
9621
|
+
Ws.prototype.updateShapeOutline = function(e, t) {
|
|
9622
|
+
V(e, {
|
|
9624
9623
|
x: -this.offset,
|
|
9625
9624
|
y: -this.offset,
|
|
9626
9625
|
width: t.width + this.offset * 2,
|
|
9627
9626
|
height: t.height + this.offset * 2
|
|
9628
9627
|
});
|
|
9629
|
-
},
|
|
9628
|
+
}, Ws.prototype.updateConnectionOutline = function(e, t) {
|
|
9630
9629
|
var n = Cn(t);
|
|
9631
|
-
|
|
9630
|
+
V(e, {
|
|
9632
9631
|
x: n.x - this.offset,
|
|
9633
9632
|
y: n.y - this.offset,
|
|
9634
9633
|
width: n.width + this.offset * 2,
|
|
9635
9634
|
height: n.height + this.offset * 2
|
|
9636
9635
|
});
|
|
9637
|
-
},
|
|
9636
|
+
}, Ws.$inject = [
|
|
9638
9637
|
"eventBus",
|
|
9639
9638
|
"styles",
|
|
9640
9639
|
"elementRegistry"
|
|
9641
9640
|
];
|
|
9642
9641
|
//#endregion
|
|
9643
9642
|
//#region node_modules/diagram-js/lib/features/outline/index.js
|
|
9644
|
-
var
|
|
9643
|
+
var Gs = {
|
|
9645
9644
|
__init__: ["outline"],
|
|
9646
|
-
outline: ["type",
|
|
9645
|
+
outline: ["type", Ws]
|
|
9647
9646
|
};
|
|
9648
9647
|
//#endregion
|
|
9649
9648
|
//#region node_modules/diagram-js/lib/features/selection/Selection.js
|
|
9650
|
-
function
|
|
9649
|
+
function Ks(e, t) {
|
|
9651
9650
|
this._eventBus = e, this._canvas = t, this._selectedElements = [];
|
|
9652
9651
|
var n = this;
|
|
9653
9652
|
e.on(["shape.remove", "connection.remove"], function(e) {
|
|
@@ -9657,7 +9656,7 @@ function qs(e, t) {
|
|
|
9657
9656
|
n.select(null);
|
|
9658
9657
|
});
|
|
9659
9658
|
}
|
|
9660
|
-
|
|
9659
|
+
Ks.$inject = ["eventBus", "canvas"], Ks.prototype.deselect = function(e) {
|
|
9661
9660
|
var t = this._selectedElements, n = t.indexOf(e);
|
|
9662
9661
|
if (n !== -1) {
|
|
9663
9662
|
var r = t.slice();
|
|
@@ -9666,17 +9665,17 @@ qs.$inject = ["eventBus", "canvas"], qs.prototype.deselect = function(e) {
|
|
|
9666
9665
|
newSelection: t
|
|
9667
9666
|
});
|
|
9668
9667
|
}
|
|
9669
|
-
},
|
|
9668
|
+
}, Ks.prototype.get = function() {
|
|
9670
9669
|
return this._selectedElements;
|
|
9671
|
-
},
|
|
9670
|
+
}, Ks.prototype.isSelected = function(e) {
|
|
9672
9671
|
return this._selectedElements.indexOf(e) !== -1;
|
|
9673
|
-
},
|
|
9672
|
+
}, Ks.prototype.select = function(e, t) {
|
|
9674
9673
|
var n = this._selectedElements, r = n.slice();
|
|
9675
9674
|
N(e) || (e = e ? [e] : []);
|
|
9676
9675
|
var i = this._canvas, a = i.getRootElement();
|
|
9677
9676
|
e = e.filter(function(e) {
|
|
9678
9677
|
return a === i.findRoot(e);
|
|
9679
|
-
}), t ?
|
|
9678
|
+
}), t ? I(e, function(e) {
|
|
9680
9679
|
n.indexOf(e) === -1 && n.push(e);
|
|
9681
9680
|
}) : this._selectedElements = n = e.slice(), this._eventBus.fire("selection.changed", {
|
|
9682
9681
|
oldSelection: r,
|
|
@@ -9685,8 +9684,8 @@ qs.$inject = ["eventBus", "canvas"], qs.prototype.deselect = function(e) {
|
|
|
9685
9684
|
};
|
|
9686
9685
|
//#endregion
|
|
9687
9686
|
//#region node_modules/diagram-js/lib/features/selection/SelectionVisuals.js
|
|
9688
|
-
var
|
|
9689
|
-
function
|
|
9687
|
+
var qs = "hover", Js = "selected", Ys = 6;
|
|
9688
|
+
function Xs(e, t, n) {
|
|
9690
9689
|
this._canvas = e;
|
|
9691
9690
|
var r = this;
|
|
9692
9691
|
this._multiSelectionBox = null;
|
|
@@ -9697,108 +9696,108 @@ function Zs(e, t, n) {
|
|
|
9697
9696
|
e.removeMarker(t, n);
|
|
9698
9697
|
}
|
|
9699
9698
|
t.on("element.hover", function(e) {
|
|
9700
|
-
i(e.element,
|
|
9699
|
+
i(e.element, qs);
|
|
9701
9700
|
}), t.on("element.out", function(e) {
|
|
9702
|
-
a(e.element,
|
|
9701
|
+
a(e.element, qs);
|
|
9703
9702
|
}), t.on("selection.changed", function(e) {
|
|
9704
9703
|
function t(e) {
|
|
9705
|
-
a(e,
|
|
9704
|
+
a(e, Js);
|
|
9706
9705
|
}
|
|
9707
9706
|
function n(e) {
|
|
9708
|
-
i(e,
|
|
9707
|
+
i(e, Js);
|
|
9709
9708
|
}
|
|
9710
9709
|
var o = e.oldSelection, s = e.newSelection;
|
|
9711
|
-
|
|
9710
|
+
I(o, function(e) {
|
|
9712
9711
|
s.indexOf(e) === -1 && t(e);
|
|
9713
|
-
}),
|
|
9712
|
+
}), I(s, function(e) {
|
|
9714
9713
|
o.indexOf(e) === -1 && n(e);
|
|
9715
9714
|
}), r._updateSelectionOutline(s);
|
|
9716
9715
|
}), t.on("element.changed", function(e) {
|
|
9717
9716
|
n.isSelected(e.element) && r._updateSelectionOutline(n.get());
|
|
9718
9717
|
});
|
|
9719
9718
|
}
|
|
9720
|
-
|
|
9719
|
+
Xs.$inject = [
|
|
9721
9720
|
"canvas",
|
|
9722
9721
|
"eventBus",
|
|
9723
9722
|
"selection"
|
|
9724
|
-
],
|
|
9723
|
+
], Xs.prototype._updateSelectionOutline = function(e) {
|
|
9725
9724
|
var t = this._canvas.getLayer("selectionOutline");
|
|
9726
9725
|
St(t);
|
|
9727
9726
|
var n = e.length > 1;
|
|
9728
9727
|
if (bt(this._canvas.getContainer())[n ? "add" : "remove"]("djs-multi-select"), n) {
|
|
9729
|
-
var r =
|
|
9730
|
-
|
|
9728
|
+
var r = Zs(Cn(e)), i = H("rect");
|
|
9729
|
+
V(i, R({ rx: 3 }, r)), bt(i).add("djs-selection-outline"), B(t, i);
|
|
9731
9730
|
}
|
|
9732
9731
|
};
|
|
9733
|
-
function
|
|
9732
|
+
function Zs(e) {
|
|
9734
9733
|
return {
|
|
9735
|
-
x: e.x -
|
|
9736
|
-
y: e.y -
|
|
9737
|
-
width: e.width +
|
|
9738
|
-
height: e.height +
|
|
9734
|
+
x: e.x - Ys,
|
|
9735
|
+
y: e.y - Ys,
|
|
9736
|
+
width: e.width + Ys * 2,
|
|
9737
|
+
height: e.height + Ys * 2
|
|
9739
9738
|
};
|
|
9740
9739
|
}
|
|
9741
9740
|
//#endregion
|
|
9742
9741
|
//#region node_modules/diagram-js/lib/features/selection/SelectionBehavior.js
|
|
9743
|
-
function
|
|
9742
|
+
function Qs(e, t, n, r) {
|
|
9744
9743
|
e.on("create.end", 500, function(e) {
|
|
9745
9744
|
var n = e.context, r = n.canExecute, i = n.elements, a = (n.hints || {}).autoSelect;
|
|
9746
9745
|
if (r) {
|
|
9747
9746
|
if (a === !1) return;
|
|
9748
|
-
N(a) ? t.select(a) : t.select(i.filter(
|
|
9747
|
+
N(a) ? t.select(a) : t.select(i.filter($s));
|
|
9749
9748
|
}
|
|
9750
9749
|
}), e.on("connect.end", 500, function(e) {
|
|
9751
9750
|
var n = e.context.connection;
|
|
9752
9751
|
n && t.select(n);
|
|
9753
9752
|
}), e.on("shape.move.end", 500, function(e) {
|
|
9754
9753
|
var n = e.previousSelection || [], i = r.get(e.context.shape.id);
|
|
9755
|
-
|
|
9754
|
+
se(n, function(e) {
|
|
9756
9755
|
return i.id === e.id;
|
|
9757
9756
|
}) || t.select(i);
|
|
9758
9757
|
}), e.on("element.click", function(e) {
|
|
9759
|
-
if (
|
|
9758
|
+
if (Ps(e)) {
|
|
9760
9759
|
var r = e.element;
|
|
9761
9760
|
r === n.getRootElement() && (r = null);
|
|
9762
|
-
var i = t.isSelected(r), a = t.get().length > 1, o =
|
|
9761
|
+
var i = t.isSelected(r), a = t.get().length > 1, o = Is(e) || Ls(e);
|
|
9763
9762
|
if (i && a) return o ? t.deselect(r) : t.select(r);
|
|
9764
9763
|
i ? t.deselect(r) : t.select(r, o);
|
|
9765
9764
|
}
|
|
9766
9765
|
});
|
|
9767
9766
|
}
|
|
9768
|
-
|
|
9767
|
+
Qs.$inject = [
|
|
9769
9768
|
"eventBus",
|
|
9770
9769
|
"selection",
|
|
9771
9770
|
"canvas",
|
|
9772
9771
|
"elementRegistry"
|
|
9773
9772
|
];
|
|
9774
|
-
function
|
|
9773
|
+
function $s(e) {
|
|
9775
9774
|
return !e.hidden;
|
|
9776
9775
|
}
|
|
9777
9776
|
//#endregion
|
|
9778
9777
|
//#region node_modules/diagram-js/lib/features/selection/index.js
|
|
9779
|
-
var
|
|
9778
|
+
var ec = {
|
|
9780
9779
|
__init__: ["selectionVisuals", "selectionBehavior"],
|
|
9781
|
-
__depends__: [
|
|
9782
|
-
selection: ["type",
|
|
9783
|
-
selectionVisuals: ["type",
|
|
9784
|
-
selectionBehavior: ["type",
|
|
9780
|
+
__depends__: [Hs, Gs],
|
|
9781
|
+
selection: ["type", Ks],
|
|
9782
|
+
selectionVisuals: ["type", Xs],
|
|
9783
|
+
selectionBehavior: ["type", Qs]
|
|
9785
9784
|
};
|
|
9786
9785
|
//#endregion
|
|
9787
9786
|
//#region node_modules/diagram-js/lib/util/IdGenerator.js
|
|
9788
|
-
function
|
|
9787
|
+
function tc(e) {
|
|
9789
9788
|
this._counter = 0, this._prefix = (e ? e + "-" : "") + Math.floor(Math.random() * 1e9) + "-";
|
|
9790
9789
|
}
|
|
9791
|
-
|
|
9790
|
+
tc.prototype.next = function() {
|
|
9792
9791
|
return this._prefix + ++this._counter;
|
|
9793
9792
|
};
|
|
9794
9793
|
//#endregion
|
|
9795
9794
|
//#region node_modules/diagram-js/lib/features/overlays/Overlays.js
|
|
9796
|
-
var
|
|
9795
|
+
var nc = new tc("ov"), rc = 500;
|
|
9797
9796
|
function $(e, t, n, r) {
|
|
9798
|
-
this._eventBus = t, this._canvas = n, this._elementRegistry = r, this._ids =
|
|
9797
|
+
this._eventBus = t, this._canvas = n, this._elementRegistry = r, this._ids = nc, this._overlayDefaults = R({
|
|
9799
9798
|
show: null,
|
|
9800
9799
|
scale: !0
|
|
9801
|
-
}, e && e.defaults), this._overlays = {}, this._overlayContainers = [], this._overlayRoot =
|
|
9800
|
+
}, e && e.defaults), this._overlays = {}, this._overlayContainers = [], this._overlayRoot = ic(n.getContainer()), this._init();
|
|
9802
9801
|
}
|
|
9803
9802
|
$.$inject = [
|
|
9804
9803
|
"config.overlays",
|
|
@@ -9806,17 +9805,17 @@ $.$inject = [
|
|
|
9806
9805
|
"canvas",
|
|
9807
9806
|
"elementRegistry"
|
|
9808
9807
|
], $.prototype.get = function(e) {
|
|
9809
|
-
if (
|
|
9808
|
+
if (ie(e) && (e = { id: e }), ie(e.element) && (e.element = this._elementRegistry.get(e.element)), e.element) {
|
|
9810
9809
|
var t = this._getOverlayContainer(e.element, !0);
|
|
9811
|
-
return t ? e.type ?
|
|
9812
|
-
} else if (e.type) return
|
|
9810
|
+
return t ? e.type ? le(t.overlays, Se({ type: e.type })) : t.overlays.slice() : [];
|
|
9811
|
+
} else if (e.type) return le(this._overlays, Se({ type: e.type }));
|
|
9813
9812
|
else return e.id ? this._overlays[e.id] : null;
|
|
9814
9813
|
}, $.prototype.add = function(e, t, n) {
|
|
9815
9814
|
if (P(t) && (n = t, t = null), e.id || (e = this._elementRegistry.get(e)), !n.position) throw Error("must specifiy overlay position");
|
|
9816
9815
|
if (!n.html) throw Error("must specifiy overlay html");
|
|
9817
9816
|
if (!e) throw Error("invalid element specified");
|
|
9818
9817
|
var r = this._ids.next();
|
|
9819
|
-
return n =
|
|
9818
|
+
return n = R({}, this._overlayDefaults, n, {
|
|
9820
9819
|
id: r,
|
|
9821
9820
|
type: t,
|
|
9822
9821
|
element: e,
|
|
@@ -9826,7 +9825,7 @@ $.$inject = [
|
|
|
9826
9825
|
var t = this.get(e) || [];
|
|
9827
9826
|
N(t) || (t = [t]);
|
|
9828
9827
|
var n = this;
|
|
9829
|
-
|
|
9828
|
+
I(t, function(e) {
|
|
9830
9829
|
var t = n._getOverlayContainer(e.element, !0);
|
|
9831
9830
|
if (e && (dt(e.html), dt(e.htmlContainer), delete e.htmlContainer, delete e.element, delete n._overlays[e.id]), t) {
|
|
9832
9831
|
var r = t.overlays.indexOf(e);
|
|
@@ -9836,9 +9835,9 @@ $.$inject = [
|
|
|
9836
9835
|
}, $.prototype.isShown = function() {
|
|
9837
9836
|
return this._overlayRoot.style.display !== "none";
|
|
9838
9837
|
}, $.prototype.show = function() {
|
|
9839
|
-
|
|
9838
|
+
oc(this._overlayRoot);
|
|
9840
9839
|
}, $.prototype.hide = function() {
|
|
9841
|
-
|
|
9840
|
+
oc(this._overlayRoot, !1);
|
|
9842
9841
|
}, $.prototype.clear = function() {
|
|
9843
9842
|
this._overlays = {}, this._overlayContainers = [], Ge(this._overlayRoot);
|
|
9844
9843
|
}, $.prototype._updateOverlayContainer = function(e) {
|
|
@@ -9847,7 +9846,7 @@ $.$inject = [
|
|
|
9847
9846
|
var a = Cn(t);
|
|
9848
9847
|
r = a.x, i = a.y;
|
|
9849
9848
|
}
|
|
9850
|
-
|
|
9849
|
+
ac(n, r, i), Ve(e.html, "data-container-id", t.id);
|
|
9851
9850
|
}, $.prototype._updateOverlay = function(e) {
|
|
9852
9851
|
var t = e.position, n = e.htmlContainer, r = e.element, i = t.left, a = t.top;
|
|
9853
9852
|
if (t.right !== void 0) {
|
|
@@ -9858,7 +9857,7 @@ $.$inject = [
|
|
|
9858
9857
|
var s = r.waypoints ? Cn(r).height : r.height;
|
|
9859
9858
|
a = t.bottom * -1 + s;
|
|
9860
9859
|
}
|
|
9861
|
-
|
|
9860
|
+
ac(n, i || 0, a || 0), this._updateOverlayVisibilty(e, this._canvas.viewbox());
|
|
9862
9861
|
}, $.prototype._createOverlayContainer = function(e) {
|
|
9863
9862
|
var t = st("<div class=\"djs-overlays\" />");
|
|
9864
9863
|
Be(t, { position: "absolute" }), this._overlayRoot.appendChild(t);
|
|
@@ -9877,26 +9876,26 @@ $.$inject = [
|
|
|
9877
9876
|
-1 * e.x * t,
|
|
9878
9877
|
-1 * e.y * t
|
|
9879
9878
|
].join(",") + ")";
|
|
9880
|
-
|
|
9879
|
+
sc(this._overlayRoot, n);
|
|
9881
9880
|
}, $.prototype._getOverlayContainer = function(e, t) {
|
|
9882
|
-
var n =
|
|
9881
|
+
var n = se(this._overlayContainers, function(t) {
|
|
9883
9882
|
return t.element === e;
|
|
9884
9883
|
});
|
|
9885
9884
|
return !n && !t ? this._createOverlayContainer(e) : n;
|
|
9886
9885
|
}, $.prototype._addOverlay = function(e) {
|
|
9887
9886
|
var t = e.id, n = e.element, r = e.html, i, a;
|
|
9888
|
-
r.get && r.constructor.prototype.jquery && (r = r.get(0)),
|
|
9887
|
+
r.get && r.constructor.prototype.jquery && (r = r.get(0)), ie(r) && (r = st(r)), a = this._getOverlayContainer(n), i = st("<div class=\"djs-overlay\" data-overlay-id=\"" + t + "\">"), Be(i, { position: "absolute" }), i.appendChild(r), e.type && Ue(i).add("djs-overlay-" + e.type);
|
|
9889
9888
|
var o = this._canvas.findRoot(n), s = this._canvas.getRootElement();
|
|
9890
|
-
|
|
9889
|
+
oc(i, o === s), e.htmlContainer = i, a.overlays.push(e), a.html.appendChild(i), this._overlays[t] = e, this._updateOverlay(e), this._updateOverlayVisibilty(e, this._canvas.viewbox());
|
|
9891
9890
|
}, $.prototype._updateOverlayVisibilty = function(e, t) {
|
|
9892
9891
|
var n = e.show, r = this._canvas.findRoot(e.element), i = n && n.minZoom, a = n && n.maxZoom, o = e.htmlContainer, s = this._canvas.getRootElement(), c = !0;
|
|
9893
|
-
r === s ? n && (M(i) && i > t.scale || M(a) && a < t.scale) && (c = !1) : c = !1,
|
|
9892
|
+
r === s ? n && (M(i) && i > t.scale || M(a) && a < t.scale) && (c = !1) : c = !1, oc(o, c), this._updateOverlayScale(e, t);
|
|
9894
9893
|
}, $.prototype._updateOverlayScale = function(e, t) {
|
|
9895
9894
|
var n = e.scale, r, i, a = e.htmlContainer, o, s = "";
|
|
9896
|
-
n !== !0 && (n === !1 ? (r = 1, i = 1) : (r = n.min, i = n.max), M(r) && t.scale < r && (o = (1 / t.scale || 1) * r), M(i) && t.scale > i && (o = (1 / t.scale || 1) * i)), M(o) && (s = "scale(" + o + "," + o + ")"),
|
|
9895
|
+
n !== !0 && (n === !1 ? (r = 1, i = 1) : (r = n.min, i = n.max), M(r) && t.scale < r && (o = (1 / t.scale || 1) * r), M(i) && t.scale > i && (o = (1 / t.scale || 1) * i)), M(o) && (s = "scale(" + o + "," + o + ")"), sc(a, s);
|
|
9897
9896
|
}, $.prototype._updateOverlaysVisibilty = function(e) {
|
|
9898
9897
|
var t = this;
|
|
9899
|
-
|
|
9898
|
+
I(this._overlays, function(n) {
|
|
9900
9899
|
t._updateOverlayVisibilty(n, e);
|
|
9901
9900
|
});
|
|
9902
9901
|
}, $.prototype._init = function() {
|
|
@@ -9910,7 +9909,7 @@ $.$inject = [
|
|
|
9910
9909
|
n(e.viewbox);
|
|
9911
9910
|
}), e.on(["shape.remove", "connection.remove"], function(e) {
|
|
9912
9911
|
var n = e.element;
|
|
9913
|
-
|
|
9912
|
+
I(t.get({ element: n }), function(e) {
|
|
9914
9913
|
t.remove(e.id);
|
|
9915
9914
|
});
|
|
9916
9915
|
var r = t._getOverlayContainer(n);
|
|
@@ -9919,9 +9918,9 @@ $.$inject = [
|
|
|
9919
9918
|
var i = t._overlayContainers.indexOf(r);
|
|
9920
9919
|
i !== -1 && t._overlayContainers.splice(i, 1);
|
|
9921
9920
|
}
|
|
9922
|
-
}), e.on("element.changed",
|
|
9921
|
+
}), e.on("element.changed", rc, function(e) {
|
|
9923
9922
|
var n = e.element, r = t._getOverlayContainer(n, !0);
|
|
9924
|
-
r && (
|
|
9923
|
+
r && (I(r.overlays, function(e) {
|
|
9925
9924
|
t._updateOverlay(e);
|
|
9926
9925
|
}), t._updateOverlayContainer(r));
|
|
9927
9926
|
}), e.on("element.marker.update", function(e) {
|
|
@@ -9931,7 +9930,7 @@ $.$inject = [
|
|
|
9931
9930
|
t._updateOverlaysVisibilty(t._canvas.viewbox());
|
|
9932
9931
|
}), e.on("diagram.clear", this.clear, this);
|
|
9933
9932
|
};
|
|
9934
|
-
function
|
|
9933
|
+
function ic(e) {
|
|
9935
9934
|
var t = st("<div class=\"djs-overlay-container\" />");
|
|
9936
9935
|
return Be(t, {
|
|
9937
9936
|
position: "absolute",
|
|
@@ -9939,16 +9938,16 @@ function ac(e) {
|
|
|
9939
9938
|
height: 0
|
|
9940
9939
|
}), e.insertBefore(t, e.firstChild), t;
|
|
9941
9940
|
}
|
|
9942
|
-
function
|
|
9941
|
+
function ac(e, t, n) {
|
|
9943
9942
|
Be(e, {
|
|
9944
9943
|
left: t + "px",
|
|
9945
9944
|
top: n + "px"
|
|
9946
9945
|
});
|
|
9947
9946
|
}
|
|
9948
|
-
function
|
|
9947
|
+
function oc(e, t) {
|
|
9949
9948
|
e.style.display = t === !1 ? "none" : "";
|
|
9950
9949
|
}
|
|
9951
|
-
function
|
|
9950
|
+
function sc(e, t) {
|
|
9952
9951
|
e.style["transform-origin"] = "top left", [
|
|
9953
9952
|
"",
|
|
9954
9953
|
"-ms-",
|
|
@@ -9959,13 +9958,13 @@ function cc(e, t) {
|
|
|
9959
9958
|
}
|
|
9960
9959
|
//#endregion
|
|
9961
9960
|
//#region node_modules/diagram-js/lib/features/overlays/index.js
|
|
9962
|
-
var
|
|
9961
|
+
var cc = {
|
|
9963
9962
|
__init__: ["overlays"],
|
|
9964
9963
|
overlays: ["type", $]
|
|
9965
9964
|
};
|
|
9966
9965
|
//#endregion
|
|
9967
9966
|
//#region node_modules/diagram-js/lib/features/change-support/ChangeSupport.js
|
|
9968
|
-
function
|
|
9967
|
+
function lc(e, t, n, r) {
|
|
9969
9968
|
e.on("element.changed", function(r) {
|
|
9970
9969
|
var i = r.element;
|
|
9971
9970
|
(i.parent || i === t.getRootElement()) && (r.gfx = n.getGraphics(i)), r.gfx && e.fire(Tn(i) + ".changed", r);
|
|
@@ -9980,7 +9979,7 @@ function uc(e, t, n, r) {
|
|
|
9980
9979
|
r.update("connection", e.element, e.gfx);
|
|
9981
9980
|
});
|
|
9982
9981
|
}
|
|
9983
|
-
|
|
9982
|
+
lc.$inject = [
|
|
9984
9983
|
"eventBus",
|
|
9985
9984
|
"canvas",
|
|
9986
9985
|
"elementRegistry",
|
|
@@ -9988,24 +9987,24 @@ uc.$inject = [
|
|
|
9988
9987
|
];
|
|
9989
9988
|
//#endregion
|
|
9990
9989
|
//#region node_modules/diagram-js/lib/features/change-support/index.js
|
|
9991
|
-
var
|
|
9990
|
+
var uc = {
|
|
9992
9991
|
__init__: ["changeSupport"],
|
|
9993
|
-
changeSupport: ["type",
|
|
9994
|
-
},
|
|
9995
|
-
function
|
|
9992
|
+
changeSupport: ["type", lc]
|
|
9993
|
+
}, dc = 1e3;
|
|
9994
|
+
function fc(e) {
|
|
9996
9995
|
this._eventBus = e;
|
|
9997
9996
|
}
|
|
9998
|
-
|
|
9999
|
-
function
|
|
9997
|
+
fc.$inject = ["eventBus"];
|
|
9998
|
+
function pc(e, t) {
|
|
10000
9999
|
return function(n) {
|
|
10001
10000
|
return e.call(t || null, n.context, n.command, n);
|
|
10002
10001
|
};
|
|
10003
10002
|
}
|
|
10004
|
-
|
|
10005
|
-
if ((
|
|
10003
|
+
fc.prototype.on = function(e, t, n, r, i, a) {
|
|
10004
|
+
if ((re(t) || F(t)) && (a = i, i = r, r = n, n = t, t = null), re(n) && (a = i, i = r, r = n, n = dc), P(i) && (a = i, i = !1), !re(r)) throw Error("handlerFn must be a function");
|
|
10006
10005
|
N(e) || (e = [e]);
|
|
10007
10006
|
var o = this._eventBus;
|
|
10008
|
-
|
|
10007
|
+
I(e, function(e) {
|
|
10009
10008
|
var s = [
|
|
10010
10009
|
"commandStack",
|
|
10011
10010
|
e,
|
|
@@ -10013,9 +10012,9 @@ pc.prototype.on = function(e, t, n, r, i, a) {
|
|
|
10013
10012
|
].filter(function(e) {
|
|
10014
10013
|
return e;
|
|
10015
10014
|
}).join(".");
|
|
10016
|
-
o.on(s, n, i ?
|
|
10015
|
+
o.on(s, n, i ? pc(r, a) : r, a);
|
|
10017
10016
|
});
|
|
10018
|
-
},
|
|
10017
|
+
}, I([
|
|
10019
10018
|
"canExecute",
|
|
10020
10019
|
"preExecute",
|
|
10021
10020
|
"preExecuted",
|
|
@@ -10026,14 +10025,14 @@ pc.prototype.on = function(e, t, n, r, i, a) {
|
|
|
10026
10025
|
"revert",
|
|
10027
10026
|
"reverted"
|
|
10028
10027
|
], function(e) {
|
|
10029
|
-
|
|
10030
|
-
(
|
|
10028
|
+
fc.prototype[e] = function(t, n, r, i, a) {
|
|
10029
|
+
(re(t) || F(t)) && (a = i, i = r, r = n, n = t, t = null), this.on(t, e, n, r, i, a);
|
|
10031
10030
|
};
|
|
10032
10031
|
});
|
|
10033
10032
|
//#endregion
|
|
10034
10033
|
//#region node_modules/diagram-js/lib/features/root-elements/RootElementsBehavior.js
|
|
10035
|
-
function
|
|
10036
|
-
t.invoke(
|
|
10034
|
+
function mc(e, t) {
|
|
10035
|
+
t.invoke(fc, this), this.executed(function(t) {
|
|
10037
10036
|
var n = t.context;
|
|
10038
10037
|
n.rootElement ? e.setRootElement(n.rootElement) : n.rootElement = e.getRootElement();
|
|
10039
10038
|
}), this.revert(function(t) {
|
|
@@ -10041,71 +10040,71 @@ function hc(e, t) {
|
|
|
10041
10040
|
n.rootElement && e.setRootElement(n.rootElement);
|
|
10042
10041
|
});
|
|
10043
10042
|
}
|
|
10044
|
-
|
|
10043
|
+
E(mc, fc), mc.$inject = ["canvas", "injector"];
|
|
10045
10044
|
//#endregion
|
|
10046
10045
|
//#region node_modules/diagram-js/lib/features/root-elements/index.js
|
|
10047
|
-
var
|
|
10046
|
+
var hc = {
|
|
10048
10047
|
__init__: ["rootElementsBehavior"],
|
|
10049
|
-
rootElementsBehavior: ["type",
|
|
10048
|
+
rootElementsBehavior: ["type", mc]
|
|
10050
10049
|
};
|
|
10051
10050
|
//#endregion
|
|
10052
10051
|
//#region node_modules/diagram-js/lib/util/EscapeUtil.js
|
|
10053
|
-
function
|
|
10052
|
+
function gc(e) {
|
|
10054
10053
|
return CSS.escape(e);
|
|
10055
10054
|
}
|
|
10056
|
-
var
|
|
10055
|
+
var _c = {
|
|
10057
10056
|
"&": "&",
|
|
10058
10057
|
"<": "<",
|
|
10059
10058
|
">": ">",
|
|
10060
10059
|
"\"": """,
|
|
10061
10060
|
"'": "'"
|
|
10062
10061
|
};
|
|
10063
|
-
function
|
|
10062
|
+
function vc(e) {
|
|
10064
10063
|
return e = "" + e, e && e.replace(/[&<>"']/g, function(e) {
|
|
10065
|
-
return
|
|
10064
|
+
return _c[e];
|
|
10066
10065
|
});
|
|
10067
10066
|
}
|
|
10068
10067
|
//#endregion
|
|
10069
10068
|
//#region node_modules/bpmn-js/lib/util/DrilldownUtil.js
|
|
10070
|
-
var
|
|
10069
|
+
var yc = "_plane";
|
|
10070
|
+
function bc(e) {
|
|
10071
|
+
var t = e.id;
|
|
10072
|
+
return Tc(t);
|
|
10073
|
+
}
|
|
10071
10074
|
function xc(e) {
|
|
10072
10075
|
var t = e.id;
|
|
10073
|
-
return
|
|
10076
|
+
return J(e, "bpmn:SubProcess") ? wc(t) : t;
|
|
10074
10077
|
}
|
|
10075
10078
|
function Sc(e) {
|
|
10076
|
-
|
|
10077
|
-
return Y(e, "bpmn:SubProcess") ? Tc(t) : t;
|
|
10079
|
+
return wc(e);
|
|
10078
10080
|
}
|
|
10079
10081
|
function Cc(e) {
|
|
10080
|
-
return
|
|
10082
|
+
return J(qa(e), "bpmndi:BPMNPlane");
|
|
10081
10083
|
}
|
|
10082
10084
|
function wc(e) {
|
|
10083
|
-
return
|
|
10085
|
+
return e + yc;
|
|
10084
10086
|
}
|
|
10085
10087
|
function Tc(e) {
|
|
10086
|
-
return e +
|
|
10087
|
-
}
|
|
10088
|
-
function Ec(e) {
|
|
10089
|
-
return e.replace(RegExp(bc + "$"), "");
|
|
10088
|
+
return e.replace(RegExp(yc + "$"), "");
|
|
10090
10089
|
}
|
|
10091
10090
|
//#endregion
|
|
10092
10091
|
//#region node_modules/bpmn-js/lib/features/drilldown/DrilldownBreadcrumbs.js
|
|
10093
|
-
var
|
|
10094
|
-
function
|
|
10092
|
+
var Ec = "bjs-breadcrumbs-shown";
|
|
10093
|
+
function Dc(e, t, n, r) {
|
|
10095
10094
|
var i = st("<ul class=\"bjs-breadcrumbs\"></ul>"), a = r.getContainer(), o = Ue(a);
|
|
10096
10095
|
a.appendChild(i);
|
|
10097
10096
|
var s = [];
|
|
10098
10097
|
e.on("element.changed", function(e) {
|
|
10099
10098
|
var t = e.element, n = Ka(t);
|
|
10100
|
-
|
|
10099
|
+
se(s, function(e) {
|
|
10101
10100
|
return e === n;
|
|
10102
10101
|
}) && c();
|
|
10103
10102
|
});
|
|
10104
10103
|
function c(e) {
|
|
10105
|
-
e && (s =
|
|
10104
|
+
e && (s = Oc(e));
|
|
10106
10105
|
var n = s.map(function(e) {
|
|
10107
|
-
var n =
|
|
10108
|
-
if (!a &&
|
|
10106
|
+
var n = vc(e.name || e.id), i = st("<li><span class=\"bjs-crumb\"><a title=\"" + n + "\">" + n + "</a></span></li>"), a = r.findRoot(xc(e)) || r.findRoot(e.id);
|
|
10107
|
+
if (!a && J(e, "bpmn:Process")) {
|
|
10109
10108
|
var o = t.find(function(t) {
|
|
10110
10109
|
var n = Ka(t);
|
|
10111
10110
|
return n && n.processRef && n.processRef === e;
|
|
@@ -10118,7 +10117,7 @@ function Oc(e, t, n, r) {
|
|
|
10118
10117
|
});
|
|
10119
10118
|
i.innerHTML = "";
|
|
10120
10119
|
var a = n.length > 1;
|
|
10121
|
-
o.toggle(
|
|
10120
|
+
o.toggle(Ec, a), n.forEach(function(e) {
|
|
10122
10121
|
i.appendChild(e);
|
|
10123
10122
|
});
|
|
10124
10123
|
}
|
|
@@ -10126,27 +10125,27 @@ function Oc(e, t, n, r) {
|
|
|
10126
10125
|
c(e.element);
|
|
10127
10126
|
});
|
|
10128
10127
|
}
|
|
10129
|
-
|
|
10128
|
+
Dc.$inject = [
|
|
10130
10129
|
"eventBus",
|
|
10131
10130
|
"elementRegistry",
|
|
10132
10131
|
"overlays",
|
|
10133
10132
|
"canvas"
|
|
10134
10133
|
];
|
|
10135
|
-
function
|
|
10136
|
-
for (var t = Ka(e), n = [], r = t; r; r = r.$parent) (
|
|
10134
|
+
function Oc(e) {
|
|
10135
|
+
for (var t = Ka(e), n = [], r = t; r; r = r.$parent) (J(r, "bpmn:SubProcess") || J(r, "bpmn:Process")) && n.push(r);
|
|
10137
10136
|
return n.reverse();
|
|
10138
10137
|
}
|
|
10139
10138
|
//#endregion
|
|
10140
10139
|
//#region node_modules/bpmn-js/lib/features/drilldown/DrilldownCentering.js
|
|
10141
|
-
function
|
|
10142
|
-
var n = null, r = new
|
|
10140
|
+
function kc(e, t) {
|
|
10141
|
+
var n = null, r = new Ac();
|
|
10143
10142
|
e.on("root.set", function(e) {
|
|
10144
10143
|
var i = e.element, a = t.viewbox(), o = r.get(i);
|
|
10145
10144
|
if (r.set(n, {
|
|
10146
10145
|
x: a.x,
|
|
10147
10146
|
y: a.y,
|
|
10148
10147
|
zoom: a.scale
|
|
10149
|
-
}), n = i, !(
|
|
10148
|
+
}), n = i, !(J(i, "bpmn:Collaboration") && !o)) {
|
|
10150
10149
|
o ||= {
|
|
10151
10150
|
x: 0,
|
|
10152
10151
|
y: 0,
|
|
@@ -10165,8 +10164,8 @@ function Ac(e, t) {
|
|
|
10165
10164
|
r.clear(), n = null;
|
|
10166
10165
|
});
|
|
10167
10166
|
}
|
|
10168
|
-
|
|
10169
|
-
function
|
|
10167
|
+
kc.$inject = ["eventBus", "canvas"];
|
|
10168
|
+
function Ac() {
|
|
10170
10169
|
this._entries = [], this.set = function(e, t) {
|
|
10171
10170
|
var n = !1;
|
|
10172
10171
|
for (var r in this._entries) if (this._entries[r][0] === e) {
|
|
@@ -10190,18 +10189,18 @@ function jc() {
|
|
|
10190
10189
|
}
|
|
10191
10190
|
//#endregion
|
|
10192
10191
|
//#region node_modules/bpmn-js/lib/features/drilldown/SubprocessCompatibility.js
|
|
10193
|
-
var
|
|
10192
|
+
var jc = {
|
|
10194
10193
|
x: 180,
|
|
10195
10194
|
y: 160
|
|
10196
10195
|
};
|
|
10197
|
-
function
|
|
10196
|
+
function Mc(e, t) {
|
|
10198
10197
|
this._eventBus = e, this._moddle = t;
|
|
10199
10198
|
var n = this;
|
|
10200
10199
|
e.on("import.render.start", 1500, function(e, t) {
|
|
10201
10200
|
n.handleImport(t.definitions);
|
|
10202
10201
|
});
|
|
10203
10202
|
}
|
|
10204
|
-
|
|
10203
|
+
Mc.prototype.handleImport = function(e) {
|
|
10205
10204
|
if (e.diagrams) {
|
|
10206
10205
|
var t = this;
|
|
10207
10206
|
this._definitions = e, this._processToDiagramMap = {}, e.diagrams.forEach(function(e) {
|
|
@@ -10215,13 +10214,13 @@ Nc.prototype.handleImport = function(e) {
|
|
|
10215
10214
|
t.movePlaneElementsToOrigin(e.plane);
|
|
10216
10215
|
});
|
|
10217
10216
|
}
|
|
10218
|
-
},
|
|
10217
|
+
}, Mc.prototype.createNewDiagrams = function(e) {
|
|
10219
10218
|
var t = this, n = [], r = [];
|
|
10220
10219
|
e.get("planeElement").forEach(function(t) {
|
|
10221
10220
|
var i = t.bpmnElement;
|
|
10222
10221
|
if (i) {
|
|
10223
10222
|
var a = i.$parent;
|
|
10224
|
-
|
|
10223
|
+
J(i, "bpmn:SubProcess") && !t.isExpanded && n.push(i), Fc(i, e) && r.push({
|
|
10225
10224
|
diElement: t,
|
|
10226
10225
|
parent: a
|
|
10227
10226
|
});
|
|
@@ -10240,27 +10239,27 @@ Nc.prototype.handleImport = function(e) {
|
|
|
10240
10239
|
t.moveToDiPlane(r, a.plane);
|
|
10241
10240
|
}
|
|
10242
10241
|
}), i;
|
|
10243
|
-
},
|
|
10244
|
-
var t = e.get("planeElement"), n =
|
|
10245
|
-
x: n.x -
|
|
10246
|
-
y: n.y -
|
|
10242
|
+
}, Mc.prototype.movePlaneElementsToOrigin = function(e) {
|
|
10243
|
+
var t = e.get("planeElement"), n = Pc(e), r = {
|
|
10244
|
+
x: n.x - jc.x,
|
|
10245
|
+
y: n.y - jc.y
|
|
10247
10246
|
};
|
|
10248
10247
|
t.forEach(function(e) {
|
|
10249
10248
|
e.waypoint ? e.waypoint.forEach(function(e) {
|
|
10250
10249
|
e.x -= r.x, e.y -= r.y;
|
|
10251
10250
|
}) : e.bounds && (e.bounds.x = e.bounds.x - r.x, e.bounds.y = e.bounds.y - r.y);
|
|
10252
10251
|
});
|
|
10253
|
-
},
|
|
10254
|
-
var n =
|
|
10252
|
+
}, Mc.prototype.moveToDiPlane = function(e, t) {
|
|
10253
|
+
var n = Nc(e).plane.get("planeElement");
|
|
10255
10254
|
n.splice(n.indexOf(e), 1), t.get("planeElement").push(e);
|
|
10256
|
-
},
|
|
10255
|
+
}, Mc.prototype.createDiagram = function(e) {
|
|
10257
10256
|
var t = this._moddle.create("bpmndi:BPMNPlane", { bpmnElement: e }), n = this._moddle.create("bpmndi:BPMNDiagram", { plane: t });
|
|
10258
10257
|
return t.$parent = n, t.bpmnElement = e, n.$parent = this._definitions, this._definitions.diagrams.push(n), n;
|
|
10259
|
-
},
|
|
10260
|
-
function
|
|
10261
|
-
return
|
|
10258
|
+
}, Mc.$inject = ["eventBus", "moddle"];
|
|
10259
|
+
function Nc(e) {
|
|
10260
|
+
return J(e, "bpmndi:BPMNDiagram") ? e : Nc(e.$parent);
|
|
10262
10261
|
}
|
|
10263
|
-
function
|
|
10262
|
+
function Pc(e) {
|
|
10264
10263
|
var t = {
|
|
10265
10264
|
top: Infinity,
|
|
10266
10265
|
right: -Infinity,
|
|
@@ -10274,34 +10273,34 @@ function Fc(e) {
|
|
|
10274
10273
|
}
|
|
10275
10274
|
}), qn(t);
|
|
10276
10275
|
}
|
|
10277
|
-
function
|
|
10276
|
+
function Fc(e, t) {
|
|
10278
10277
|
var n = e.$parent;
|
|
10279
|
-
return !(!
|
|
10278
|
+
return !(!J(n, "bpmn:SubProcess") || n === t.bpmnElement || Ga(e, ["bpmn:DataInputAssociation", "bpmn:DataOutputAssociation"]));
|
|
10280
10279
|
}
|
|
10281
10280
|
//#endregion
|
|
10282
10281
|
//#region node_modules/bpmn-js/lib/features/drilldown/DrilldownOverlayBehavior.js
|
|
10283
|
-
var
|
|
10284
|
-
function
|
|
10285
|
-
|
|
10282
|
+
var Ic = 250, Lc = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 16 16\"><path fill-rule=\"evenodd\" d=\"M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z\"/></svg>", Rc = "bjs-drilldown-empty";
|
|
10283
|
+
function zc(e, t, n, r) {
|
|
10284
|
+
fc.call(this, t), this._canvas = e, this._eventBus = t, this._elementRegistry = n, this._overlays = r;
|
|
10286
10285
|
var i = this;
|
|
10287
|
-
this.executed("shape.toggleCollapse",
|
|
10286
|
+
this.executed("shape.toggleCollapse", Ic, function(e) {
|
|
10288
10287
|
var t = e.shape;
|
|
10289
10288
|
i.canDrillDown(t) ? i.addOverlay(t) : i.removeOverlay(t);
|
|
10290
|
-
}, !0), this.reverted("shape.toggleCollapse",
|
|
10289
|
+
}, !0), this.reverted("shape.toggleCollapse", Ic, function(e) {
|
|
10291
10290
|
var t = e.shape;
|
|
10292
10291
|
i.canDrillDown(t) ? i.addOverlay(t) : i.removeOverlay(t);
|
|
10293
10292
|
}, !0), this.executed([
|
|
10294
10293
|
"shape.create",
|
|
10295
10294
|
"shape.move",
|
|
10296
10295
|
"shape.delete"
|
|
10297
|
-
],
|
|
10296
|
+
], Ic, function(e) {
|
|
10298
10297
|
var t = e.oldParent, n = e.newParent || e.parent, r = e.shape;
|
|
10299
10298
|
i.canDrillDown(r) && i.addOverlay(r), i.updateDrilldownOverlay(t), i.updateDrilldownOverlay(n), i.updateDrilldownOverlay(r);
|
|
10300
10299
|
}, !0), this.reverted([
|
|
10301
10300
|
"shape.create",
|
|
10302
10301
|
"shape.move",
|
|
10303
10302
|
"shape.delete"
|
|
10304
|
-
],
|
|
10303
|
+
], Ic, function(e) {
|
|
10305
10304
|
var t = e.oldParent, n = e.newParent || e.parent, r = e.shape;
|
|
10306
10305
|
i.canDrillDown(r) && i.addOverlay(r), i.updateDrilldownOverlay(t), i.updateDrilldownOverlay(n), i.updateDrilldownOverlay(r);
|
|
10307
10306
|
}, !0), t.on("import.render.complete", function() {
|
|
@@ -10312,33 +10311,33 @@ function Bc(e, t, n, r) {
|
|
|
10312
10311
|
});
|
|
10313
10312
|
});
|
|
10314
10313
|
}
|
|
10315
|
-
|
|
10314
|
+
E(zc, fc), zc.prototype.updateDrilldownOverlay = function(e) {
|
|
10316
10315
|
var t = this._canvas;
|
|
10317
10316
|
if (e) {
|
|
10318
10317
|
var n = t.findRoot(e);
|
|
10319
10318
|
n && this.updateOverlayVisibility(n);
|
|
10320
10319
|
}
|
|
10321
|
-
},
|
|
10320
|
+
}, zc.prototype.canDrillDown = function(e) {
|
|
10322
10321
|
var t = this._canvas;
|
|
10323
|
-
return
|
|
10324
|
-
},
|
|
10322
|
+
return J(e, "bpmn:SubProcess") && t.findRoot(xc(e));
|
|
10323
|
+
}, zc.prototype.updateOverlayVisibility = function(e) {
|
|
10325
10324
|
var t = this._overlays, n = e.businessObject, r = t.get({
|
|
10326
10325
|
element: n.id,
|
|
10327
10326
|
type: "drilldown"
|
|
10328
10327
|
})[0];
|
|
10329
10328
|
if (r) {
|
|
10330
10329
|
var i = n && n.flowElements && n.flowElements.length;
|
|
10331
|
-
Ue(r.html).toggle(
|
|
10330
|
+
Ue(r.html).toggle(Rc, !i);
|
|
10332
10331
|
}
|
|
10333
|
-
},
|
|
10332
|
+
}, zc.prototype.addOverlay = function(e) {
|
|
10334
10333
|
var t = this._canvas, n = this._overlays;
|
|
10335
10334
|
n.get({
|
|
10336
10335
|
element: e,
|
|
10337
10336
|
type: "drilldown"
|
|
10338
10337
|
}).length && this.removeOverlay(e);
|
|
10339
|
-
var r = st("<button class=\"bjs-drilldown\">" +
|
|
10338
|
+
var r = st("<button class=\"bjs-drilldown\">" + Lc + "</button>");
|
|
10340
10339
|
r.addEventListener("click", function() {
|
|
10341
|
-
t.setRootElement(t.findRoot(
|
|
10340
|
+
t.setRootElement(t.findRoot(xc(e)));
|
|
10342
10341
|
}), n.add(e, "drilldown", {
|
|
10343
10342
|
position: {
|
|
10344
10343
|
bottom: -7,
|
|
@@ -10346,12 +10345,12 @@ D(Bc, pc), Bc.prototype.updateDrilldownOverlay = function(e) {
|
|
|
10346
10345
|
},
|
|
10347
10346
|
html: r
|
|
10348
10347
|
}), this.updateOverlayVisibility(e);
|
|
10349
|
-
},
|
|
10348
|
+
}, zc.prototype.removeOverlay = function(e) {
|
|
10350
10349
|
this._overlays.remove({
|
|
10351
10350
|
element: e,
|
|
10352
10351
|
type: "drilldown"
|
|
10353
10352
|
});
|
|
10354
|
-
},
|
|
10353
|
+
}, zc.$inject = [
|
|
10355
10354
|
"canvas",
|
|
10356
10355
|
"eventBus",
|
|
10357
10356
|
"elementRegistry",
|
|
@@ -10359,11 +10358,11 @@ D(Bc, pc), Bc.prototype.updateDrilldownOverlay = function(e) {
|
|
|
10359
10358
|
];
|
|
10360
10359
|
//#endregion
|
|
10361
10360
|
//#region node_modules/bpmn-js/lib/features/drilldown/index.js
|
|
10362
|
-
var
|
|
10361
|
+
var Bc = {
|
|
10363
10362
|
__depends__: [
|
|
10364
|
-
|
|
10365
|
-
|
|
10366
|
-
|
|
10363
|
+
cc,
|
|
10364
|
+
uc,
|
|
10365
|
+
hc
|
|
10367
10366
|
],
|
|
10368
10367
|
__init__: [
|
|
10369
10368
|
"drilldownBreadcrumbs",
|
|
@@ -10371,54 +10370,54 @@ var Vc = {
|
|
|
10371
10370
|
"drilldownCentering",
|
|
10372
10371
|
"subprocessCompatibility"
|
|
10373
10372
|
],
|
|
10374
|
-
drilldownBreadcrumbs: ["type",
|
|
10375
|
-
drilldownCentering: ["type",
|
|
10376
|
-
drilldownOverlayBehavior: ["type",
|
|
10377
|
-
subprocessCompatibility: ["type",
|
|
10373
|
+
drilldownBreadcrumbs: ["type", Dc],
|
|
10374
|
+
drilldownCentering: ["type", kc],
|
|
10375
|
+
drilldownOverlayBehavior: ["type", zc],
|
|
10376
|
+
subprocessCompatibility: ["type", Mc]
|
|
10378
10377
|
};
|
|
10379
10378
|
//#endregion
|
|
10380
10379
|
//#region node_modules/bpmn-js/lib/Viewer.js
|
|
10381
|
-
function
|
|
10382
|
-
|
|
10383
|
-
}
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
|
|
10387
|
-
|
|
10388
|
-
|
|
10389
|
-
|
|
10390
|
-
],
|
|
10380
|
+
function Vc(e) {
|
|
10381
|
+
Y.call(this, e);
|
|
10382
|
+
}
|
|
10383
|
+
E(Vc, Y), Vc.prototype._modules = [
|
|
10384
|
+
Ds,
|
|
10385
|
+
fs,
|
|
10386
|
+
ec,
|
|
10387
|
+
cc,
|
|
10388
|
+
Bc
|
|
10389
|
+
], Vc.prototype._moddleExtensions = {};
|
|
10391
10390
|
//#endregion
|
|
10392
10391
|
//#region node_modules/diagram-js/lib/util/Cursor.js
|
|
10393
|
-
var
|
|
10394
|
-
function
|
|
10392
|
+
var Hc = /^djs-cursor-.*$/;
|
|
10393
|
+
function Uc(e) {
|
|
10395
10394
|
var t = Ue(document.body);
|
|
10396
|
-
t.removeMatching(
|
|
10395
|
+
t.removeMatching(Hc), e && t.add("djs-cursor-" + e);
|
|
10397
10396
|
}
|
|
10398
|
-
function
|
|
10399
|
-
|
|
10397
|
+
function Wc() {
|
|
10398
|
+
Uc(null);
|
|
10400
10399
|
}
|
|
10401
10400
|
//#endregion
|
|
10402
10401
|
//#region node_modules/diagram-js/lib/util/ClickTrap.js
|
|
10403
|
-
var
|
|
10404
|
-
function
|
|
10402
|
+
var Gc = 5e3;
|
|
10403
|
+
function Kc(e, t) {
|
|
10405
10404
|
t ||= "element.click";
|
|
10406
10405
|
function n() {
|
|
10407
10406
|
return !1;
|
|
10408
10407
|
}
|
|
10409
|
-
return e.once(t,
|
|
10408
|
+
return e.once(t, Gc, n), function() {
|
|
10410
10409
|
e.off(t, n);
|
|
10411
10410
|
};
|
|
10412
10411
|
}
|
|
10413
10412
|
//#endregion
|
|
10414
10413
|
//#region node_modules/diagram-js/lib/util/PositionUtil.js
|
|
10415
|
-
function
|
|
10414
|
+
function qc(e) {
|
|
10416
10415
|
return {
|
|
10417
10416
|
x: e.x + e.width / 2,
|
|
10418
10417
|
y: e.y + e.height / 2
|
|
10419
10418
|
};
|
|
10420
10419
|
}
|
|
10421
|
-
function
|
|
10420
|
+
function Jc(e, t) {
|
|
10422
10421
|
return {
|
|
10423
10422
|
x: e.x - t.x,
|
|
10424
10423
|
y: e.y - t.y
|
|
@@ -10426,28 +10425,28 @@ function Yc(e, t) {
|
|
|
10426
10425
|
}
|
|
10427
10426
|
//#endregion
|
|
10428
10427
|
//#region node_modules/diagram-js/lib/navigation/movecanvas/MoveCanvas.js
|
|
10429
|
-
var
|
|
10430
|
-
function
|
|
10428
|
+
var Yc = 15;
|
|
10429
|
+
function Xc(e, t) {
|
|
10431
10430
|
var n;
|
|
10432
10431
|
e.on("element.mousedown", 500, function(e) {
|
|
10433
10432
|
return a(e.originalEvent);
|
|
10434
10433
|
});
|
|
10435
10434
|
function r(r) {
|
|
10436
|
-
var i = n.start, a = n.button, o =
|
|
10437
|
-
!n.dragging &&
|
|
10435
|
+
var i = n.start, a = n.button, o = js(r), s = Jc(o, i);
|
|
10436
|
+
!n.dragging && Zc(s) > Yc && (n.dragging = !0, a === 0 && Kc(e), Uc("grab")), n.dragging && (s = Jc(o, n.last || n.start), t.scroll({
|
|
10438
10437
|
dx: s.x,
|
|
10439
10438
|
dy: s.y
|
|
10440
10439
|
}), n.last = o), r.preventDefault();
|
|
10441
10440
|
}
|
|
10442
10441
|
function i(e) {
|
|
10443
|
-
Qe.unbind(document, "mousemove", r), Qe.unbind(document, "mouseup", i), n = null,
|
|
10442
|
+
Qe.unbind(document, "mousemove", r), Qe.unbind(document, "mouseup", i), n = null, Wc();
|
|
10444
10443
|
}
|
|
10445
10444
|
function a(e) {
|
|
10446
10445
|
if (!Ke(e.target, ".djs-draggable")) {
|
|
10447
10446
|
var t = e.button;
|
|
10448
10447
|
if (!(t >= 2 || e.ctrlKey || e.shiftKey || e.altKey)) return n = {
|
|
10449
10448
|
button: t,
|
|
10450
|
-
start:
|
|
10449
|
+
start: js(e)
|
|
10451
10450
|
}, Qe.bind(document, "mousemove", r), Qe.bind(document, "mouseup", i), !0;
|
|
10452
10451
|
}
|
|
10453
10452
|
}
|
|
@@ -10455,57 +10454,57 @@ function Zc(e, t) {
|
|
|
10455
10454
|
return !!n;
|
|
10456
10455
|
};
|
|
10457
10456
|
}
|
|
10458
|
-
|
|
10459
|
-
function
|
|
10457
|
+
Xc.$inject = ["eventBus", "canvas"];
|
|
10458
|
+
function Zc(e) {
|
|
10460
10459
|
return Math.sqrt(e.x ** 2 + e.y ** 2);
|
|
10461
10460
|
}
|
|
10462
10461
|
//#endregion
|
|
10463
10462
|
//#region node_modules/diagram-js/lib/navigation/movecanvas/index.js
|
|
10464
|
-
var
|
|
10463
|
+
var Qc = {
|
|
10465
10464
|
__init__: ["moveCanvas"],
|
|
10466
|
-
moveCanvas: ["type",
|
|
10465
|
+
moveCanvas: ["type", Xc]
|
|
10467
10466
|
};
|
|
10468
10467
|
//#endregion
|
|
10469
10468
|
//#region node_modules/diagram-js/lib/util/Math.js
|
|
10470
|
-
function
|
|
10469
|
+
function $c(e) {
|
|
10471
10470
|
return Math.log(e) / Math.log(10);
|
|
10472
10471
|
}
|
|
10473
10472
|
//#endregion
|
|
10474
10473
|
//#region node_modules/diagram-js/lib/navigation/zoomscroll/ZoomUtil.js
|
|
10475
|
-
function
|
|
10476
|
-
var n =
|
|
10474
|
+
function el(e, t) {
|
|
10475
|
+
var n = $c(e.min), r = $c(e.max);
|
|
10477
10476
|
return (Math.abs(n) + Math.abs(r)) / t;
|
|
10478
10477
|
}
|
|
10479
|
-
function
|
|
10478
|
+
function tl(e, t) {
|
|
10480
10479
|
return Math.max(e.min, Math.min(e.max, t));
|
|
10481
10480
|
}
|
|
10482
10481
|
//#endregion
|
|
10483
10482
|
//#region node_modules/diagram-js/lib/navigation/zoomscroll/ZoomScroll.js
|
|
10484
|
-
var
|
|
10483
|
+
var nl = Math.sign || function(e) {
|
|
10485
10484
|
return e >= 0 ? 1 : -1;
|
|
10486
|
-
},
|
|
10485
|
+
}, rl = {
|
|
10487
10486
|
min: .2,
|
|
10488
10487
|
max: 4
|
|
10489
|
-
},
|
|
10490
|
-
function
|
|
10491
|
-
e ||= {}, this._enabled = !1, this._canvas = n, this._container = n._container, this._handleWheel =
|
|
10488
|
+
}, il = 10, al = .1, ol = .75;
|
|
10489
|
+
function sl(e, t, n) {
|
|
10490
|
+
e ||= {}, this._enabled = !1, this._canvas = n, this._container = n._container, this._handleWheel = L(this._handleWheel, this), this._totalDelta = 0, this._scale = e.scale || ol;
|
|
10492
10491
|
var r = this;
|
|
10493
10492
|
t.on("canvas.init", function(t) {
|
|
10494
10493
|
r._init(e.enabled !== !1);
|
|
10495
10494
|
});
|
|
10496
10495
|
}
|
|
10497
|
-
|
|
10496
|
+
sl.$inject = [
|
|
10498
10497
|
"config.zoomScroll",
|
|
10499
10498
|
"eventBus",
|
|
10500
10499
|
"canvas"
|
|
10501
|
-
],
|
|
10500
|
+
], sl.prototype.scroll = function(e) {
|
|
10502
10501
|
this._canvas.scroll(e);
|
|
10503
|
-
},
|
|
10502
|
+
}, sl.prototype.reset = function() {
|
|
10504
10503
|
this._canvas.zoom("fit-viewport");
|
|
10505
|
-
},
|
|
10506
|
-
var n =
|
|
10507
|
-
this._totalDelta += e, Math.abs(this._totalDelta) >
|
|
10508
|
-
},
|
|
10504
|
+
}, sl.prototype.zoom = function(e, t) {
|
|
10505
|
+
var n = el(rl, il * 2);
|
|
10506
|
+
this._totalDelta += e, Math.abs(this._totalDelta) > al && (this._zoom(e, t, n), this._totalDelta = 0);
|
|
10507
|
+
}, sl.prototype._handleWheel = function(e) {
|
|
10509
10508
|
if (!Ke(e.target, ".djs-scrollable", !0)) {
|
|
10510
10509
|
var t = this._container;
|
|
10511
10510
|
e.preventDefault();
|
|
@@ -10515,7 +10514,7 @@ cl.$inject = [
|
|
|
10515
10514
|
x: e.clientX - o.left,
|
|
10516
10515
|
y: e.clientY - o.top
|
|
10517
10516
|
};
|
|
10518
|
-
a = Math.sqrt(e.deltaY ** 2 + e.deltaX ** 2) *
|
|
10517
|
+
a = Math.sqrt(e.deltaY ** 2 + e.deltaX ** 2) * nl(e.deltaY) * i, this.zoom(a, s);
|
|
10519
10518
|
} else a = r ? {
|
|
10520
10519
|
dx: i * e.deltaY,
|
|
10521
10520
|
dy: 0
|
|
@@ -10524,26 +10523,26 @@ cl.$inject = [
|
|
|
10524
10523
|
dy: i * e.deltaY
|
|
10525
10524
|
}, this.scroll(a);
|
|
10526
10525
|
}
|
|
10527
|
-
},
|
|
10528
|
-
var n =
|
|
10526
|
+
}, sl.prototype.stepZoom = function(e, t) {
|
|
10527
|
+
var n = el(rl, il);
|
|
10529
10528
|
this._zoom(e, t, n);
|
|
10530
|
-
},
|
|
10531
|
-
var r = this._canvas, i = e > 0 ? 1 : -1, a =
|
|
10529
|
+
}, sl.prototype._zoom = function(e, t, n) {
|
|
10530
|
+
var r = this._canvas, i = e > 0 ? 1 : -1, a = $c(r.zoom()), o = Math.round(a / n) * n;
|
|
10532
10531
|
o += n * i;
|
|
10533
10532
|
var s = 10 ** o;
|
|
10534
|
-
r.zoom(
|
|
10535
|
-
},
|
|
10533
|
+
r.zoom(tl(rl, s), t);
|
|
10534
|
+
}, sl.prototype.toggle = function(e) {
|
|
10536
10535
|
var t = this._container, n = this._handleWheel, r = this._enabled;
|
|
10537
10536
|
return e === void 0 && (e = !r), r !== e && Qe[e ? "bind" : "unbind"](t, "wheel", n, !1), this._enabled = e, e;
|
|
10538
|
-
},
|
|
10537
|
+
}, sl.prototype._init = function(e) {
|
|
10539
10538
|
this.toggle(e);
|
|
10540
10539
|
};
|
|
10541
10540
|
//#endregion
|
|
10542
10541
|
//#region node_modules/diagram-js/lib/navigation/zoomscroll/index.js
|
|
10543
|
-
var
|
|
10542
|
+
var cl = {
|
|
10544
10543
|
__init__: ["zoomScroll"],
|
|
10545
|
-
zoomScroll: ["type",
|
|
10546
|
-
},
|
|
10544
|
+
zoomScroll: ["type", sl]
|
|
10545
|
+
}, ll = /* @__PURE__ */ T((/* @__PURE__ */ S(((e, t) => {
|
|
10547
10546
|
typeof Object.create == "function" ? t.exports = function(e, t) {
|
|
10548
10547
|
t && (e.super_ = t, e.prototype = Object.create(t.prototype, { constructor: {
|
|
10549
10548
|
value: e,
|
|
@@ -10559,13 +10558,13 @@ var ll = {
|
|
|
10559
10558
|
}
|
|
10560
10559
|
};
|
|
10561
10560
|
})))(), 1);
|
|
10562
|
-
function
|
|
10563
|
-
|
|
10561
|
+
function ul(e) {
|
|
10562
|
+
Vc.call(this, e);
|
|
10564
10563
|
}
|
|
10565
|
-
(0,
|
|
10564
|
+
(0, ll.default)(ul, Vc), ul.prototype._modules = [].concat(Vc.prototype._modules, [cl, Qc]);
|
|
10566
10565
|
//#endregion
|
|
10567
10566
|
//#region src/components/Process/viewer/index.vue?vue&type=script&lang.ts
|
|
10568
|
-
var
|
|
10567
|
+
var dl = i({
|
|
10569
10568
|
name: "BpmnViewer",
|
|
10570
10569
|
props: {
|
|
10571
10570
|
flowData: {
|
|
@@ -10591,7 +10590,7 @@ var fl = i({
|
|
|
10591
10590
|
try {
|
|
10592
10591
|
r.value = !0, await n.value.importXML(e.xmlData), await a(), await c(), e.nodeData?.length > 0 && await f(e.nodeData);
|
|
10593
10592
|
} catch (e) {
|
|
10594
|
-
console.error("BPMN 加载失败:", e.message, e.warnings)
|
|
10593
|
+
console.error("BPMN 加载失败:", e.message, e.warnings);
|
|
10595
10594
|
} finally {
|
|
10596
10595
|
r.value = !1;
|
|
10597
10596
|
}
|
|
@@ -10619,7 +10618,7 @@ var fl = i({
|
|
|
10619
10618
|
};
|
|
10620
10619
|
return s(() => {
|
|
10621
10620
|
d(() => e.flowData, (r) => {
|
|
10622
|
-
!r || !r.xmlData || (n.value && n.value.destroy(), n.value = new
|
|
10621
|
+
!r || !r.xmlData || (n.value && n.value.destroy(), n.value = new ul({
|
|
10623
10622
|
container: t.value,
|
|
10624
10623
|
height: e.height ? Number(e.height) : "calc(100vh - 200px)"
|
|
10625
10624
|
}), i(r));
|
|
@@ -10633,13 +10632,13 @@ var fl = i({
|
|
|
10633
10632
|
zoomViewport: u
|
|
10634
10633
|
};
|
|
10635
10634
|
}
|
|
10636
|
-
}),
|
|
10635
|
+
}), fl = { class: "containers" }, pl = {
|
|
10637
10636
|
ref: "flowCanvasRef",
|
|
10638
10637
|
class: "canvas"
|
|
10639
10638
|
};
|
|
10640
|
-
function
|
|
10639
|
+
function ml(e, i, a, o, s, l) {
|
|
10641
10640
|
let d = u("a-spin"), p = u("DragOutlined"), m = u("a-button"), h = u("a-tooltip"), g = u("ZoomInOutlined"), _ = u("ZoomOutOutlined"), v = u("a-space"), y = u("a-layout-content"), b = u("a-layout");
|
|
10642
|
-
return c(), t("div",
|
|
10641
|
+
return c(), t("div", fl, [r(b, { style: {
|
|
10643
10642
|
"align-items": "stretch",
|
|
10644
10643
|
height: "100%"
|
|
10645
10644
|
} }, {
|
|
@@ -10655,7 +10654,7 @@ function hl(e, i, a, o, s, l) {
|
|
|
10655
10654
|
spinning: e.loading,
|
|
10656
10655
|
wrapperClassName: "canvas-wrapper"
|
|
10657
10656
|
}, {
|
|
10658
|
-
default: f(() => [n("div",
|
|
10657
|
+
default: f(() => [n("div", pl, null, 512)]),
|
|
10659
10658
|
_: 1
|
|
10660
10659
|
}, 8, ["spinning"]),
|
|
10661
10660
|
r(v, {
|
|
@@ -10702,6 +10701,6 @@ function hl(e, i, a, o, s, l) {
|
|
|
10702
10701
|
_: 1
|
|
10703
10702
|
})]);
|
|
10704
10703
|
}
|
|
10705
|
-
var
|
|
10704
|
+
var hl = /* @__PURE__ */ e(dl, [["render", ml], ["__scopeId", "data-v-c4bad38c"]]);
|
|
10706
10705
|
//#endregion
|
|
10707
|
-
export { Br as $,
|
|
10706
|
+
export { Br as $, ce as $t, vs as A, bt as At, vo as B, Ke as Bt, Is as C, _e as Cn, Sn as Ct, As as D, S as Dn, mn as Dt, ks as E, E as En, xn as Et, wo as F, ut as Ft, Ka as G, lt as Gt, ho as H, st as Ht, To as I, Be as It, Ga as J, L as Jt, qa as K, dt as Kt, xo as L, Ve as Lt, bs as M, Ct as Mt, ms as N, H as Nt, js as O, C as On, B as Ot, fs as P, Ut as Pt, zr as Q, se as Qt, yo as R, Ue as Rt, Hs as S, ye as Sn, Cn as St, Ps as T, k as Tn, gn as Tt, go as U, Qe as Ut, _o as V, nt as Vt, Y as W, ct as Wt, za as X, fe as Xt, Va as Y, De as Yt, Vr as Z, le as Zt, uc as _, de as _n, In as _t, Jc as a, M as an, Kn as at, ec as b, xe as bn, Mn as bt, Wc as c, F as cn, Xn as ct, bc as d, j as dn, Gn as dt, ee as en, Lr as et, Cc as f, he as fn, Hn as ft, fc as g, ke as gn, Rn as gt, vc as h, Ae as hn, Bn as ht, qc as i, N as in, qn as it, hs as j, St as jt, ps as k, T as kn, V as kt, Vc as l, P as ln, Zn as lt, gc as m, Se as mn, Fn as mt, cl as n, ve as nn, Cr as nt, Kc as o, re as on, er as ot, Sc as p, me as pn, Vn as pt, J as q, R as qt, Qc as r, oe as rn, Er as rt, Uc as s, ne as sn, Qn as st, hl as t, I as tn, Ar as tt, xc as u, ie as un, Wn as ut, cc as v, ge as vn, Nn as vt, Ls as w, ue as wn, wn as wt, Gs as x, be as xn, yn as xt, tc as y, pe as yn, Pn as yt, bo as z, Ge as zt };
|