lyflowchart 1.0.41 → 1.0.42
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/index.js +549 -553
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ function DE() {
|
|
|
13
13
|
})($C, function() {
|
|
14
14
|
var n = navigator.userAgent, r = navigator.platform, o = /gecko\/\d/i.test(n), s = /MSIE \d/.test(n), l = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n), u = /Edge\/(\d+)/.exec(n), c = s || l || u, d = c && (s ? document.documentMode || 6 : +(u || l)[1]), v = !u && /WebKit\//.test(n), m = v && /Qt\/\d+\.\d+/.test(n), y = !u && /Chrome\/(\d+)/.exec(n), b = y && +y[1], _ = /Opera\//.test(n), w = /Apple Computer/.test(navigator.vendor), A = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n), B = /PhantomJS/.test(n), D = w && (/Mobile\/\w+/.test(n) || navigator.maxTouchPoints > 2), k = /Android/.test(n), P = D || k || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n), M = D || /Mac/.test(r), L = /\bCrOS\b/.test(n), H = /win/i.test(r), j = _ && n.match(/Version\/(\d*\.\d*)/);
|
|
15
15
|
j && (j = Number(j[1])), j && j >= 15 && (_ = !1, v = !0);
|
|
16
|
-
var
|
|
16
|
+
var W = M && (m || _ && (j == null || j < 12.11)), Q = o || c && d >= 9;
|
|
17
17
|
function J(i) {
|
|
18
18
|
return new RegExp("(^|\\s)" + i + "(?:$|\\s)\\s*");
|
|
19
19
|
}
|
|
@@ -179,11 +179,11 @@ function DE() {
|
|
|
179
179
|
p++;
|
|
180
180
|
i.splice(p, 0, a);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function kn() {
|
|
183
183
|
}
|
|
184
184
|
function Ne(i, a) {
|
|
185
185
|
var f;
|
|
186
|
-
return Object.create ? f = Object.create(i) : (
|
|
186
|
+
return Object.create ? f = Object.create(i) : (kn.prototype = i, f = new kn()), a && ie(a, f), f;
|
|
187
187
|
}
|
|
188
188
|
var ft = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
|
|
189
189
|
function As(i) {
|
|
@@ -301,15 +301,15 @@ function DE() {
|
|
|
301
301
|
var yi = sn, Qo = Cn.length, ea = I == "rtl" ? 1 : 0;
|
|
302
302
|
for (++sn; sn < q && K[sn] != "L"; ++sn)
|
|
303
303
|
;
|
|
304
|
-
for (var
|
|
305
|
-
if (x.test(K[
|
|
306
|
-
yi <
|
|
307
|
-
var Za =
|
|
308
|
-
for (++
|
|
304
|
+
for (var On = yi; On < sn; )
|
|
305
|
+
if (x.test(K[On])) {
|
|
306
|
+
yi < On && (Cn.splice(Qo, 0, new S(1, yi, On)), Qo += ea);
|
|
307
|
+
var Za = On;
|
|
308
|
+
for (++On; On < sn && x.test(K[On]); ++On)
|
|
309
309
|
;
|
|
310
|
-
Cn.splice(Qo, 0, new S(2, Za,
|
|
310
|
+
Cn.splice(Qo, 0, new S(2, Za, On)), Qo += ea, yi = On;
|
|
311
311
|
} else
|
|
312
|
-
++
|
|
312
|
+
++On;
|
|
313
313
|
yi < sn && Cn.splice(Qo, 0, new S(1, yi, sn));
|
|
314
314
|
}
|
|
315
315
|
return I == "ltr" && (Cn[0].level == 1 && (Vr = T.match(/^\s+/)) && (Cn[0].from = Vr[0].length, Cn.unshift(new S(0, 0, Vr[0].length))), ke(Cn).level == 1 && (Vr = T.match(/\s+$/)) && (ke(Cn).to -= Vr[0].length, Cn.push(new S(0, q - Vr[0].length, q)))), I == "rtl" ? Cn.reverse() : Cn;
|
|
@@ -332,7 +332,7 @@ function DE() {
|
|
|
332
332
|
function Rs(i, a) {
|
|
333
333
|
return i._handlers && i._handlers[a] || Io;
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function Mn(i, a, f) {
|
|
336
336
|
if (i.removeEventListener)
|
|
337
337
|
i.removeEventListener(a, f, !1);
|
|
338
338
|
else if (i.detachEvent)
|
|
@@ -369,7 +369,7 @@ function DE() {
|
|
|
369
369
|
i.prototype.on = function(a, f) {
|
|
370
370
|
je(this, a, f);
|
|
371
371
|
}, i.prototype.off = function(a, f) {
|
|
372
|
-
|
|
372
|
+
Mn(this, a, f);
|
|
373
373
|
};
|
|
374
374
|
}
|
|
375
375
|
function vn(i) {
|
|
@@ -502,7 +502,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
502
502
|
}
|
|
503
503
|
return f;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function Nn(i, a) {
|
|
506
506
|
for (var f; i.innerMode && (f = i.innerMode(a), !(!f || f.mode == i)); )
|
|
507
507
|
a = f.state, i = f.mode;
|
|
508
508
|
return f || { mode: i, state: a };
|
|
@@ -767,14 +767,14 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
767
767
|
if (i.blankLine)
|
|
768
768
|
return i.blankLine(a);
|
|
769
769
|
if (i.innerMode) {
|
|
770
|
-
var f =
|
|
770
|
+
var f = Nn(i, a);
|
|
771
771
|
if (f.mode.blankLine)
|
|
772
772
|
return f.mode.blankLine(f.state);
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
775
|
function he(i, a, f, p) {
|
|
776
776
|
for (var h = 0; h < 10; h++) {
|
|
777
|
-
p && (p[0] =
|
|
777
|
+
p && (p[0] = Nn(i, f).mode);
|
|
778
778
|
var g = i.token(a, f);
|
|
779
779
|
if (a.pos > a.start)
|
|
780
780
|
return g;
|
|
@@ -2010,8 +2010,8 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2010
2010
|
var sn = (T ? Xa : Ji) && Cn, vd = (T ? Ji : Xa) && Vr, yi = sn ? x : (Kt ? Lt : Gn).left, Qo = vd ? S : (Kt ? Gn : Lt).right;
|
|
2011
2011
|
I(yi, Lt.top, Qo - yi, Lt.bottom);
|
|
2012
2012
|
} else {
|
|
2013
|
-
var ea,
|
|
2014
|
-
Kt ? (ea = T && Xa && Cn ? x : Lt.left,
|
|
2013
|
+
var ea, On, Za, md;
|
|
2014
|
+
Kt ? (ea = T && Xa && Cn ? x : Lt.left, On = T ? S : er(Vt, mn, "before"), Za = T ? x : er(Un, mn, "after"), md = T && Ji && Vr ? S : Gn.right) : (ea = T ? er(Vt, mn, "before") : x, On = !T && Xa && Cn ? S : Lt.right, Za = !T && Ji && Vr ? x : Gn.left, md = T ? er(Un, mn, "after") : S), I(ea, Lt.top, On - ea, Lt.bottom), Lt.bottom < Gn.top && I(x, Lt.bottom, null, Gn.top), I(Za, Gn.top, md - Za, Gn.bottom);
|
|
2015
2015
|
}
|
|
2016
2016
|
(!_t || $u(Lt, _t) < 0) && (_t = Lt), $u(Gn, _t) < 0 && (_t = Gn), (!an || $u(Lt, an) < 0) && (an = Lt), $u(Gn, an) < 0 && (an = Gn);
|
|
2017
2017
|
}), { start: _t, end: an };
|
|
@@ -2385,7 +2385,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2385
2385
|
}
|
|
2386
2386
|
};
|
|
2387
2387
|
}
|
|
2388
|
-
function
|
|
2388
|
+
function Ln(i) {
|
|
2389
2389
|
return function() {
|
|
2390
2390
|
if (this.curOp)
|
|
2391
2391
|
return i.apply(this, arguments);
|
|
@@ -4229,7 +4229,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4229
4229
|
}
|
|
4230
4230
|
function ry(i, a, f) {
|
|
4231
4231
|
var p = i;
|
|
4232
|
-
return a.altKey && p != "Alt" && (i = "Alt-" + i), (
|
|
4232
|
+
return a.altKey && p != "Alt" && (i = "Alt-" + i), (W ? a.metaKey : a.ctrlKey) && p != "Ctrl" && (i = "Ctrl-" + i), (W ? a.ctrlKey : a.metaKey) && p != "Mod" && (i = "Cmd-" + i), !f && a.shiftKey && p != "Shift" && (i = "Shift-" + i), i;
|
|
4233
4233
|
}
|
|
4234
4234
|
function iy(i, a) {
|
|
4235
4235
|
if (_ && i.keyCode == 34 && i.char)
|
|
@@ -4634,7 +4634,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4634
4634
|
var a = i.display.lineDiv;
|
|
4635
4635
|
C(a, "CodeMirror-crosshair");
|
|
4636
4636
|
function f(p) {
|
|
4637
|
-
(p.keyCode == 18 || !p.altKey) && (oe(a, "CodeMirror-crosshair"),
|
|
4637
|
+
(p.keyCode == 18 || !p.altKey) && (oe(a, "CodeMirror-crosshair"), Mn(document, "keyup", f), Mn(document, "mouseover", f));
|
|
4638
4638
|
}
|
|
4639
4639
|
je(document, "keyup", f), je(document, "mouseover", f);
|
|
4640
4640
|
}
|
|
@@ -4712,7 +4712,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4712
4712
|
}
|
|
4713
4713
|
function lC(i, a, f, p) {
|
|
4714
4714
|
var h = i.display, g = !1, E = rn(i, function(T) {
|
|
4715
|
-
v && (h.scroller.draggable = !1), i.state.draggingText = !1, i.state.delayingBlurEvent && (i.hasFocus() ? i.state.delayingBlurEvent = !1 : Uf(i)),
|
|
4715
|
+
v && (h.scroller.draggable = !1), i.state.draggingText = !1, i.state.delayingBlurEvent && (i.hasFocus() ? i.state.delayingBlurEvent = !1 : Uf(i)), Mn(h.wrapper.ownerDocument, "mouseup", E), Mn(h.wrapper.ownerDocument, "mousemove", x), Mn(h.scroller, "dragstart", S), Mn(h.scroller, "drop", E), g || (vn(T), p.addNew || Ku(i.doc, f, null, null, p.extend), v && !w || c && d == 9 ? setTimeout(function() {
|
|
4716
4716
|
h.wrapper.ownerDocument.body.focus({ preventScroll: !0 }), h.input.focus();
|
|
4717
4717
|
}, 20) : h.input.focus());
|
|
4718
4718
|
}), x = function(T) {
|
|
@@ -4792,7 +4792,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4792
4792
|
}
|
|
4793
4793
|
}
|
|
4794
4794
|
function ve(be) {
|
|
4795
|
-
i.state.selectingText = !1, ne = 1 / 0, be && (vn(be), h.input.focus()),
|
|
4795
|
+
i.state.selectingText = !1, ne = 1 / 0, be && (vn(be), h.input.focus()), Mn(h.wrapper.ownerDocument, "mousemove", ye), Mn(h.wrapper.ownerDocument, "mouseup", xe), g.history.lastSelOrigin = null;
|
|
4796
4796
|
}
|
|
4797
4797
|
var ye = rn(i, function(be) {
|
|
4798
4798
|
be.buttons === 0 || !xu(be) ? ve(be) : ue(be);
|
|
@@ -4940,7 +4940,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4940
4940
|
function dC(i, a, f) {
|
|
4941
4941
|
var p = f && f != Ya;
|
|
4942
4942
|
if (!a != !p) {
|
|
4943
|
-
var h = i.display.dragFunctions, g = a ? je :
|
|
4943
|
+
var h = i.display.dragFunctions, g = a ? je : Mn;
|
|
4944
4944
|
g(i.display.scroller, "dragstart", h.start), g(i.display.scroller, "dragenter", h.enter), g(i.display.scroller, "dragover", h.over), g(i.display.scroller, "dragleave", h.leave), g(i.display.scroller, "drop", h.drop);
|
|
4945
4945
|
}
|
|
4946
4946
|
}
|
|
@@ -5211,7 +5211,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5211
5211
|
if (h[g] == p || h[g].name == p)
|
|
5212
5212
|
return h.splice(g, 1), !0;
|
|
5213
5213
|
},
|
|
5214
|
-
addOverlay:
|
|
5214
|
+
addOverlay: Ln(function(p, h) {
|
|
5215
5215
|
var g = p.token ? p : i.getMode(this.options, p);
|
|
5216
5216
|
if (g.startState)
|
|
5217
5217
|
throw new Error("Overlays may not be stateful.");
|
|
@@ -5228,7 +5228,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5228
5228
|
}
|
|
5229
5229
|
), this.state.modeGen++, zn(this);
|
|
5230
5230
|
}),
|
|
5231
|
-
removeOverlay:
|
|
5231
|
+
removeOverlay: Ln(function(p) {
|
|
5232
5232
|
for (var h = this.state.overlays, g = 0; g < h.length; ++g) {
|
|
5233
5233
|
var E = h[g].modeSpec;
|
|
5234
5234
|
if (E == p || typeof p == "string" && E.name == p) {
|
|
@@ -5237,10 +5237,10 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5237
5237
|
}
|
|
5238
5238
|
}
|
|
5239
5239
|
}),
|
|
5240
|
-
indentLine:
|
|
5240
|
+
indentLine: Ln(function(p, h, g) {
|
|
5241
5241
|
typeof h != "string" && typeof h != "number" && (h == null ? h = this.options.smartIndent ? "smart" : "prev" : h = h ? "add" : "subtract"), Wr(this.doc, p) && ol(this, p, h, g);
|
|
5242
5242
|
}),
|
|
5243
|
-
indentSelection:
|
|
5243
|
+
indentSelection: Ln(function(p) {
|
|
5244
5244
|
for (var h = this.doc.sel.ranges, g = -1, E = 0; E < h.length; E++) {
|
|
5245
5245
|
var x = h[E];
|
|
5246
5246
|
if (x.empty())
|
|
@@ -5357,15 +5357,15 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5357
5357
|
}
|
|
5358
5358
|
h.style.top = T + "px", h.style.left = h.style.right = "", x == "right" ? (I = S.sizer.clientWidth - h.offsetWidth, h.style.right = "0px") : (x == "left" ? I = 0 : x == "middle" && (I = (S.sizer.clientWidth - h.offsetWidth) / 2), h.style.left = I + "px"), g && dS(this, { left: I, top: T, right: I + h.offsetWidth, bottom: T + h.offsetHeight });
|
|
5359
5359
|
},
|
|
5360
|
-
triggerOnKeyDown:
|
|
5361
|
-
triggerOnKeyPress:
|
|
5360
|
+
triggerOnKeyDown: Ln(uy),
|
|
5361
|
+
triggerOnKeyPress: Ln(py),
|
|
5362
5362
|
triggerOnKeyUp: cy,
|
|
5363
|
-
triggerOnMouseDown:
|
|
5363
|
+
triggerOnMouseDown: Ln(fy),
|
|
5364
5364
|
execCommand: function(p) {
|
|
5365
5365
|
if (tl.hasOwnProperty(p))
|
|
5366
5366
|
return tl[p].call(null, this);
|
|
5367
5367
|
},
|
|
5368
|
-
triggerElectric:
|
|
5368
|
+
triggerElectric: Ln(function(p) {
|
|
5369
5369
|
by(this, p);
|
|
5370
5370
|
}),
|
|
5371
5371
|
findPosH: function(p, h, g, E) {
|
|
@@ -5375,13 +5375,13 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5375
5375
|
;
|
|
5376
5376
|
return S;
|
|
5377
5377
|
},
|
|
5378
|
-
moveH:
|
|
5378
|
+
moveH: Ln(function(p, h) {
|
|
5379
5379
|
var g = this;
|
|
5380
5380
|
this.extendSelectionsBy(function(E) {
|
|
5381
5381
|
return g.display.shift || g.doc.extend || E.empty() ? hd(g.doc, E.head, p, h, g.options.rtlMoveVisually) : p < 0 ? E.from() : E.to();
|
|
5382
5382
|
}, It);
|
|
5383
5383
|
}),
|
|
5384
|
-
deleteH:
|
|
5384
|
+
deleteH: Ln(function(p, h) {
|
|
5385
5385
|
var g = this.doc.sel, E = this.doc;
|
|
5386
5386
|
g.somethingSelected() ? E.replaceSelection("", null, "+delete") : Ka(this, function(x) {
|
|
5387
5387
|
var S = hd(E, x.head, p, h, !1);
|
|
@@ -5398,7 +5398,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5398
5398
|
}
|
|
5399
5399
|
return T;
|
|
5400
5400
|
},
|
|
5401
|
-
moveV:
|
|
5401
|
+
moveV: Ln(function(p, h) {
|
|
5402
5402
|
var g = this, E = this.doc, x = [], S = !this.display.shift && !E.extend && E.sel.somethingSelected();
|
|
5403
5403
|
if (E.extendSelectionsBy(function(I) {
|
|
5404
5404
|
if (S)
|
|
@@ -5439,7 +5439,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5439
5439
|
isReadOnly: function() {
|
|
5440
5440
|
return !!(this.options.readOnly || this.doc.cantEdit);
|
|
5441
5441
|
},
|
|
5442
|
-
scrollTo:
|
|
5442
|
+
scrollTo: Ln(function(p, h) {
|
|
5443
5443
|
Hs(this, p, h);
|
|
5444
5444
|
}),
|
|
5445
5445
|
getScrollInfo: function() {
|
|
@@ -5453,10 +5453,10 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5453
5453
|
clientWidth: Go(this)
|
|
5454
5454
|
};
|
|
5455
5455
|
},
|
|
5456
|
-
scrollIntoView:
|
|
5456
|
+
scrollIntoView: Ln(function(p, h) {
|
|
5457
5457
|
p == null ? (p = { from: this.doc.sel.primary().head, to: null }, h == null && (h = this.options.cursorScrollMargin)) : typeof p == "number" ? p = { from: de(p, 0), to: null } : p.from == null && (p = { from: p, to: null }), p.to || (p.to = p.from), p.margin = h || 0, p.from.line != null ? hS(this, p) : vg(this, p.from, p.to, p.margin);
|
|
5458
5458
|
}),
|
|
5459
|
-
setSize:
|
|
5459
|
+
setSize: Ln(function(p, h) {
|
|
5460
5460
|
var g = this, E = function(S) {
|
|
5461
5461
|
return typeof S == "number" || /^\d+$/.test(String(S)) ? S + "px" : S;
|
|
5462
5462
|
};
|
|
@@ -5482,11 +5482,11 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5482
5482
|
endOperation: function() {
|
|
5483
5483
|
return Jo(this);
|
|
5484
5484
|
},
|
|
5485
|
-
refresh:
|
|
5485
|
+
refresh: Ln(function() {
|
|
5486
5486
|
var p = this.display.cachedTextHeight;
|
|
5487
5487
|
zn(this), this.curOp.forceUpdate = !0, Fs(this), Hs(this, this.doc.scrollLeft, this.doc.scrollTop), Xf(this.display), (p == null || Math.abs(p - Ia(this.display)) > 0.5 || this.options.lineWrapping) && zf(this), kt(this, "refresh", this);
|
|
5488
5488
|
}),
|
|
5489
|
-
swapDoc:
|
|
5489
|
+
swapDoc: Ln(function(p) {
|
|
5490
5490
|
var h = this.doc;
|
|
5491
5491
|
return h.cm = null, this.state.selectingText && this.state.selectingText(), Rg(this, p), Fs(this), this.display.input.reset(), Hs(this, p.scrollLeft, p.scrollTop), this.curOp.forceScroll = !0, nn(this, "swapDoc", this, h), h;
|
|
5492
5492
|
}),
|
|
@@ -6075,7 +6075,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
6075
6075
|
if (c && d >= 9 && q(), Q) {
|
|
6076
6076
|
Bo(i);
|
|
6077
6077
|
var ne = function() {
|
|
6078
|
-
|
|
6078
|
+
Mn(window, "mouseup", ne), setTimeout(K, 20);
|
|
6079
6079
|
};
|
|
6080
6080
|
je(window, "mouseup", ne);
|
|
6081
6081
|
} else
|
|
@@ -6107,7 +6107,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
6107
6107
|
S.save = p, S.getTextArea = function() {
|
|
6108
6108
|
return i;
|
|
6109
6109
|
}, S.toTextArea = function() {
|
|
6110
|
-
S.toTextArea = isNaN, p(), i.parentNode.removeChild(S.getWrapperElement()), i.style.display = "", i.form && (
|
|
6110
|
+
S.toTextArea = isNaN, p(), i.parentNode.removeChild(S.getWrapperElement()), i.style.display = "", i.form && (Mn(i.form, "submit", p), !a.leaveSubmitMethodAlone && typeof i.form.submit == "function" && (i.form.submit = h));
|
|
6111
6111
|
};
|
|
6112
6112
|
}, i.style.display = "none";
|
|
6113
6113
|
var x = Ct(
|
|
@@ -6119,7 +6119,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
6119
6119
|
return x;
|
|
6120
6120
|
}
|
|
6121
6121
|
function _C(i) {
|
|
6122
|
-
i.off =
|
|
6122
|
+
i.off = Mn, i.on = je, i.wheelEventPixels = PS, i.Doc = jn, i.splitLines = Ns, i.countColumn = ae, i.findColumn = pt, i.isWordChar = As, i.Pass = Be, i.signal = kt, i.Line = Na, i.changeEnd = Yi, i.scrollbarModel = yg, i.Pos = de, i.cmpPos = Xe, i.modes = Fo, i.mimeModes = Zn, i.resolveMode = ci, i.getMode = zo, i.modeExtensions = ji, i.extendMode = Cf, i.copyState = vr, i.startState = pi, i.innerMode = Nn, i.commands = tl, i.keyMap = gi, i.keyName = iy, i.isModifierKey = ny, i.lookupKey = Va, i.normalizeKeyMap = XS, i.StringStream = gt, i.SharedTextMarker = Js, i.TextMarker = Xi, i.LineWidget = Zs, i.e_preventDefault = vn, i.e_stopPropagation = _u, i.e_stop = Bo, i.addClass = C, i.contains = De, i.rmClass = oe, i.keyNames = Zi;
|
|
6123
6123
|
}
|
|
6124
6124
|
fC(Ct), mC(Ct);
|
|
6125
6125
|
var xC = "iter insert remove copy getEditor constructor".split(" ");
|
|
@@ -6337,15 +6337,15 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
6337
6337
|
function j(G, ce, re) {
|
|
6338
6338
|
if (G == "word") {
|
|
6339
6339
|
var De = ce.current();
|
|
6340
|
-
return re.context && re.context.tagName != De && c.implicitlyClosed.hasOwnProperty(D(re.context.tagName)) && P(re), re.context && re.context.tagName == De || c.matchClosing === !1 ? (y = "tag",
|
|
6340
|
+
return re.context && re.context.tagName != De && c.implicitlyClosed.hasOwnProperty(D(re.context.tagName)) && P(re), re.context && re.context.tagName == De || c.matchClosing === !1 ? (y = "tag", W) : (y = "tag error", Q);
|
|
6341
6341
|
} else
|
|
6342
|
-
return c.allowMissingTagName && G == "endTag" ? (y = "tag bracket",
|
|
6342
|
+
return c.allowMissingTagName && G == "endTag" ? (y = "tag bracket", W(G, ce, re)) : (y = "error", Q);
|
|
6343
6343
|
}
|
|
6344
|
-
function
|
|
6345
|
-
return G != "endTag" ? (y = "error",
|
|
6344
|
+
function W(G, ce, re) {
|
|
6345
|
+
return G != "endTag" ? (y = "error", W) : (P(re), L);
|
|
6346
6346
|
}
|
|
6347
6347
|
function Q(G, ce, re) {
|
|
6348
|
-
return y = "error",
|
|
6348
|
+
return y = "error", W(G, ce, re);
|
|
6349
6349
|
}
|
|
6350
6350
|
function J(G, ce, re) {
|
|
6351
6351
|
if (G == "word")
|
|
@@ -6549,7 +6549,7 @@ function Zr(e, t) {
|
|
|
6549
6549
|
function ut(e, t) {
|
|
6550
6550
|
const n = fp(t);
|
|
6551
6551
|
let r;
|
|
6552
|
-
return
|
|
6552
|
+
return z(e, function(o, s) {
|
|
6553
6553
|
if (n(o, s))
|
|
6554
6554
|
return r = o, !1;
|
|
6555
6555
|
}), r;
|
|
@@ -6557,7 +6557,7 @@ function ut(e, t) {
|
|
|
6557
6557
|
function kE(e, t) {
|
|
6558
6558
|
const n = fp(t);
|
|
6559
6559
|
let r = et(e) ? -1 : void 0;
|
|
6560
|
-
return
|
|
6560
|
+
return z(e, function(o, s) {
|
|
6561
6561
|
if (n(o, s))
|
|
6562
6562
|
return r = s, !1;
|
|
6563
6563
|
}), r;
|
|
@@ -6565,11 +6565,11 @@ function kE(e, t) {
|
|
|
6565
6565
|
function Qe(e, t) {
|
|
6566
6566
|
const n = fp(t);
|
|
6567
6567
|
let r = [];
|
|
6568
|
-
return
|
|
6568
|
+
return z(e, function(o, s) {
|
|
6569
6569
|
n(o, s) && r.push(o);
|
|
6570
6570
|
}), r;
|
|
6571
6571
|
}
|
|
6572
|
-
function
|
|
6572
|
+
function z(e, t) {
|
|
6573
6573
|
let n, r;
|
|
6574
6574
|
if (Ai(e))
|
|
6575
6575
|
return;
|
|
@@ -6588,7 +6588,7 @@ function UC(e, t) {
|
|
|
6588
6588
|
});
|
|
6589
6589
|
}
|
|
6590
6590
|
function ir(e, t, n) {
|
|
6591
|
-
return
|
|
6591
|
+
return z(e, function(r, o) {
|
|
6592
6592
|
n = t(n, r, o);
|
|
6593
6593
|
}), n;
|
|
6594
6594
|
}
|
|
@@ -6602,7 +6602,7 @@ function mo(e, t) {
|
|
|
6602
6602
|
}
|
|
6603
6603
|
function pn(e, t) {
|
|
6604
6604
|
let n = [];
|
|
6605
|
-
return
|
|
6605
|
+
return z(e, function(r, o) {
|
|
6606
6606
|
n.push(t(r, o));
|
|
6607
6607
|
}), n;
|
|
6608
6608
|
}
|
|
@@ -6616,7 +6616,7 @@ function Bh(e) {
|
|
|
6616
6616
|
return pn(e, (t) => t);
|
|
6617
6617
|
}
|
|
6618
6618
|
function ds(e, t, n = {}) {
|
|
6619
|
-
return t = Fh(t),
|
|
6619
|
+
return t = Fh(t), z(e, function(r) {
|
|
6620
6620
|
let o = t(r) || "_", s = n[o];
|
|
6621
6621
|
s || (s = n[o] = []), s.push(r);
|
|
6622
6622
|
}), n;
|
|
@@ -6624,7 +6624,7 @@ function ds(e, t, n = {}) {
|
|
|
6624
6624
|
function ME(e, ...t) {
|
|
6625
6625
|
e = Fh(e);
|
|
6626
6626
|
let n = {};
|
|
6627
|
-
return
|
|
6627
|
+
return z(t, (o) => ds(o, e, n)), pn(n, function(o, s) {
|
|
6628
6628
|
return o[0];
|
|
6629
6629
|
});
|
|
6630
6630
|
}
|
|
@@ -6632,7 +6632,7 @@ const VC = ME;
|
|
|
6632
6632
|
function Ir(e, t) {
|
|
6633
6633
|
t = Fh(t);
|
|
6634
6634
|
let n = [];
|
|
6635
|
-
return
|
|
6635
|
+
return z(e, function(r, o) {
|
|
6636
6636
|
let s = t(r, o), l = {
|
|
6637
6637
|
d: s,
|
|
6638
6638
|
v: r
|
|
@@ -6696,7 +6696,7 @@ function Y(e, ...t) {
|
|
|
6696
6696
|
}
|
|
6697
6697
|
function LE(e, t, n) {
|
|
6698
6698
|
let r = e;
|
|
6699
|
-
return
|
|
6699
|
+
return z(t, function(o, s) {
|
|
6700
6700
|
if (typeof o != "number" && typeof o != "string")
|
|
6701
6701
|
throw new Error("illegal key type: " + typeof o + ". Key should be of type number or string.");
|
|
6702
6702
|
if (o === "constructor")
|
|
@@ -6709,13 +6709,13 @@ function LE(e, t, n) {
|
|
|
6709
6709
|
}
|
|
6710
6710
|
function xr(e, t) {
|
|
6711
6711
|
let n = {}, r = Object(e);
|
|
6712
|
-
return
|
|
6712
|
+
return z(t, function(o) {
|
|
6713
6713
|
o in r && (n[o] = e[o]);
|
|
6714
6714
|
}), n;
|
|
6715
6715
|
}
|
|
6716
6716
|
function Pi(e, t) {
|
|
6717
6717
|
let n = {}, r = Object(e);
|
|
6718
|
-
return
|
|
6718
|
+
return z(r, function(o, s) {
|
|
6719
6719
|
t.indexOf(s) === -1 && (n[s] = o);
|
|
6720
6720
|
}), n;
|
|
6721
6721
|
}
|
|
@@ -7248,10 +7248,10 @@ function UE(e, t) {
|
|
|
7248
7248
|
function y(D, k) {
|
|
7249
7249
|
if (k && k.length) {
|
|
7250
7250
|
const P = /* @__PURE__ */ Object.create(null), M = /* @__PURE__ */ Object.create(null), L = [], H = [], j = [];
|
|
7251
|
-
let
|
|
7251
|
+
let W, Q, J, oe;
|
|
7252
7252
|
for (let pe in r)
|
|
7253
|
-
|
|
7254
|
-
|
|
7253
|
+
W = r[pe], k.indexOf(pe) !== -1 && (W[2] === "private" ? (Q = L.indexOf(W[3]), Q === -1 ? (J = W[3].createChild([], k), oe = m(J), L.push(W[3]), H.push(J), j.push(oe), P[pe] = [oe, pe, "private", J]) : P[pe] = [j[Q], pe, "private", H[Q]]) : P[pe] = [W[2], W[1]], M[pe] = !0), (W[2] === "factory" || W[2] === "type") && W[1].$scope && k.forEach((Me) => {
|
|
7254
|
+
W[1].$scope.indexOf(Me) !== -1 && (P[pe] = [W[2], W[1]], M[Me] = !0);
|
|
7255
7255
|
});
|
|
7256
7256
|
k.forEach((pe) => {
|
|
7257
7257
|
if (!M[pe])
|
|
@@ -7284,11 +7284,11 @@ function UE(e, t) {
|
|
|
7284
7284
|
k.forEach(function(Q) {
|
|
7285
7285
|
r[Q] = [j, Q, "private", H];
|
|
7286
7286
|
});
|
|
7287
|
-
const
|
|
7288
|
-
return
|
|
7287
|
+
const W = (D.__init__ || []).slice();
|
|
7288
|
+
return W.unshift(function() {
|
|
7289
7289
|
H.init();
|
|
7290
7290
|
}), D = Object.assign({}, D, {
|
|
7291
|
-
__init__:
|
|
7291
|
+
__init__: W
|
|
7292
7292
|
}), _(D, H);
|
|
7293
7293
|
}
|
|
7294
7294
|
return Object.keys(D).forEach(function(P) {
|
|
@@ -7414,7 +7414,7 @@ function Dy(e, t, n) {
|
|
|
7414
7414
|
return r && e.push(t), r;
|
|
7415
7415
|
}
|
|
7416
7416
|
function ga(e, t, n) {
|
|
7417
|
-
n = n || 0, et(e) || (e = [e]),
|
|
7417
|
+
n = n || 0, et(e) || (e = [e]), z(e, function(r, o) {
|
|
7418
7418
|
var s = t(r, o, n);
|
|
7419
7419
|
et(s) && s.length && ga(s, t, n + 1);
|
|
7420
7420
|
});
|
|
@@ -7446,7 +7446,7 @@ function IT(e, t, n) {
|
|
|
7446
7446
|
if (s[v.id] = v, v.waypoints)
|
|
7447
7447
|
l[v.id] = o[v.id] = v;
|
|
7448
7448
|
else
|
|
7449
|
-
return r[v.id] = v,
|
|
7449
|
+
return r[v.id] = v, z(v.incoming, c), z(v.outgoing, c), v.children;
|
|
7450
7450
|
}
|
|
7451
7451
|
return ga(e, d), {
|
|
7452
7452
|
allShapes: r,
|
|
@@ -7459,7 +7459,7 @@ function IT(e, t, n) {
|
|
|
7459
7459
|
function jt(e, t) {
|
|
7460
7460
|
t = !!t, et(e) || (e = [e]);
|
|
7461
7461
|
var n, r, o, s;
|
|
7462
|
-
return
|
|
7462
|
+
return z(e, function(l) {
|
|
7463
7463
|
var u = l;
|
|
7464
7464
|
l.waypoints && !t && (u = jt(l.waypoints, !0));
|
|
7465
7465
|
var c = u.x, d = u.y, v = u.height || 0, m = u.width || 0;
|
|
@@ -7473,7 +7473,7 @@ function jt(e, t) {
|
|
|
7473
7473
|
}
|
|
7474
7474
|
function BT(e, t) {
|
|
7475
7475
|
var n = {};
|
|
7476
|
-
return
|
|
7476
|
+
return z(e, function(r) {
|
|
7477
7477
|
var o = r;
|
|
7478
7478
|
o.waypoints && (o = jt(o)), !Ge(t.y) && o.x > t.x && (n[r.id] = r), !Ge(t.x) && o.y > t.y && (n[r.id] = r), o.x > t.x && o.y > t.y && (Ge(t.width) && Ge(t.height) && o.width + o.x < t.width + t.x && o.height + o.y < t.height + t.y || !Ge(t.width) || !Ge(t.height)) && (n[r.id] = r);
|
|
7479
7479
|
}), n;
|
|
@@ -7748,12 +7748,12 @@ function ZT(e, t, n) {
|
|
|
7748
7748
|
if (H = L.x.toFixed(9) + "#" + L.y.toFixed(9), m[H])
|
|
7749
7749
|
continue;
|
|
7750
7750
|
m[H] = !0;
|
|
7751
|
-
var j = A.t + oo((L[P] - A[P]) / (B[P] - A[P])) * (B.t - A.t),
|
|
7752
|
-
j >= 0 && j <= 1 &&
|
|
7751
|
+
var j = A.t + oo((L[P] - A[P]) / (B[P] - A[P])) * (B.t - A.t), W = D.t + oo((L[M] - D[M]) / (k[M] - D[M])) * (k.t - D.t);
|
|
7752
|
+
j >= 0 && j <= 1 && W >= 0 && W <= 1 && (n ? y++ : y.push({
|
|
7753
7753
|
x: L.x,
|
|
7754
7754
|
y: L.y,
|
|
7755
7755
|
t1: j,
|
|
7756
|
-
t2:
|
|
7756
|
+
t2: W
|
|
7757
7757
|
}));
|
|
7758
7758
|
}
|
|
7759
7759
|
}
|
|
@@ -7872,13 +7872,13 @@ function XE(e, t, n, r, o, s, l, u, c, d) {
|
|
|
7872
7872
|
var D = n * n, k = r * r, P = (s == l ? -1 : 1) * Ft.sqrt(oo((D * k - D * A * A - k * w * w) / (D * A * A + k * w * w))), M = P * n * A / r + (e + u) / 2, L = P * -r * w / n + (t + c) / 2, H = Ft.asin(((t - L) / r).toFixed(9)), j = Ft.asin(((c - L) / r).toFixed(9));
|
|
7873
7873
|
H = e < M ? Qi - H : H, j = u < M ? Qi - j : j, H < 0 && (H = Qi * 2 + H), j < 0 && (j = Qi * 2 + j), l && H > j && (H = H - Qi * 2), !l && j > H && (j = j - Qi * 2);
|
|
7874
7874
|
}
|
|
7875
|
-
var
|
|
7876
|
-
if (oo(
|
|
7875
|
+
var W = j - H;
|
|
7876
|
+
if (oo(W) > v) {
|
|
7877
7877
|
var Q = j, J = u, oe = c;
|
|
7878
7878
|
j = H + v * (l && j > H ? 1 : -1), u = M + n * Ft.cos(j), c = L + r * Ft.sin(j), y = XE(u, c, n, r, o, 0, l, J, oe, [j, Q, M, L]);
|
|
7879
7879
|
}
|
|
7880
|
-
|
|
7881
|
-
var pe = Ft.cos(H), Me = Ft.sin(H), G = Ft.cos(j), ce = Ft.sin(j), re = Ft.tan(
|
|
7880
|
+
W = j - H;
|
|
7881
|
+
var pe = Ft.cos(H), Me = Ft.sin(H), G = Ft.cos(j), ce = Ft.sin(j), re = Ft.tan(W / 4), De = 4 / 3 * n * re, F = 4 / 3 * r * re, C = [e, t], V = [e + De * Me, t - F * pe], Z = [u + De * ce, c - F * G], fe = [u, c];
|
|
7882
7882
|
if (V[0] = 2 * C[0] - V[0], V[1] = 2 * C[1] - V[1], d)
|
|
7883
7883
|
return [V, Z, fe].concat(y);
|
|
7884
7884
|
y = [V, Z, fe].concat(y).join().split(",");
|
|
@@ -8022,7 +8022,7 @@ function r2(e) {
|
|
|
8022
8022
|
function qe(e) {
|
|
8023
8023
|
return s2(e) ? r2(e) : n2(e);
|
|
8024
8024
|
}
|
|
8025
|
-
function
|
|
8025
|
+
function Pn(e, t, n) {
|
|
8026
8026
|
n = n || 0, En(n) || (n = { x: n, y: n });
|
|
8027
8027
|
var r = Oe(e), o = Oe(t), s = r.bottom + n.y <= o.top, l = r.left - n.x >= o.right, u = r.top - n.y >= o.bottom, c = r.right + n.x <= o.left, d = s ? "top" : u ? "bottom" : null, v = c ? "left" : l ? "right" : null;
|
|
8028
8028
|
return v && d ? d + "-" + v : v || d || "intersect";
|
|
@@ -8197,7 +8197,7 @@ Je.prototype.getContainer = function() {
|
|
|
8197
8197
|
};
|
|
8198
8198
|
Je.prototype._updateMarker = function(e, t, n) {
|
|
8199
8199
|
let r;
|
|
8200
|
-
e.id || (e = this._elementRegistry.get(e)), r = this._elementRegistry._elements[e.id], r && (
|
|
8200
|
+
e.id || (e = this._elementRegistry.get(e)), r = this._elementRegistry._elements[e.id], r && (z([r.gfx, r.secondaryGfx], function(o) {
|
|
8201
8201
|
o && (n ? ot(o).add(t) : ot(o).remove(t));
|
|
8202
8202
|
}), this._eventBus.fire("element.marker.update", { element: e, gfx: r.gfx, marker: t, add: !!n }));
|
|
8203
8203
|
};
|
|
@@ -8818,11 +8818,11 @@ fr.prototype.updateContainments = function(e) {
|
|
|
8818
8818
|
var t = this, n = this._elementRegistry, r;
|
|
8819
8819
|
r = ir(e, function(o, s) {
|
|
8820
8820
|
return s.parent && (o[s.parent.id] = s.parent), o;
|
|
8821
|
-
}, {}),
|
|
8821
|
+
}, {}), z(r, function(o) {
|
|
8822
8822
|
var s = o.children;
|
|
8823
8823
|
if (s) {
|
|
8824
8824
|
var l = t._getChildrenContainer(o);
|
|
8825
|
-
|
|
8825
|
+
z(s.slice().reverse(), function(u) {
|
|
8826
8826
|
var c = n.getGraphics(u);
|
|
8827
8827
|
f_(c.parentNode, l);
|
|
8828
8828
|
});
|
|
@@ -8907,12 +8907,12 @@ function d_(e, t) {
|
|
|
8907
8907
|
}
|
|
8908
8908
|
d_.prototype.createType = function(e) {
|
|
8909
8909
|
var t = this.model, n = this.properties, r = Object.create(Kh.prototype);
|
|
8910
|
-
|
|
8910
|
+
z(e.properties, function(l) {
|
|
8911
8911
|
!l.isMany && l.default !== void 0 && (r[l.name] = l.default);
|
|
8912
8912
|
}), n.defineModel(r, t), n.defineDescriptor(r, e);
|
|
8913
8913
|
var o = e.ns.name;
|
|
8914
8914
|
function s(l) {
|
|
8915
|
-
n.define(this, "$type", { value: o, enumerable: !0 }), n.define(this, "$attrs", { value: {} }), n.define(this, "$parent", { writable: !0 }),
|
|
8915
|
+
n.define(this, "$type", { value: o, enumerable: !0 }), n.define(this, "$attrs", { value: {} }), n.define(this, "$parent", { writable: !0 }), z(l, Zt(function(u, c) {
|
|
8916
8916
|
this.set(c, u);
|
|
8917
8917
|
}, this));
|
|
8918
8918
|
}
|
|
@@ -9032,7 +9032,7 @@ dr.prototype.hasProperty = function(e) {
|
|
|
9032
9032
|
dr.prototype.addTrait = function(e, t) {
|
|
9033
9033
|
t && this.assertNotTrait(e);
|
|
9034
9034
|
var n = this.allTypesByName, r = this.allTypes, o = e.name;
|
|
9035
|
-
o in n || (
|
|
9035
|
+
o in n || (z(e.properties, Zt(function(s) {
|
|
9036
9036
|
s = Y({}, s, {
|
|
9037
9037
|
name: s.ns.localName,
|
|
9038
9038
|
inherited: t
|
|
@@ -9044,7 +9044,7 @@ dr.prototype.addTrait = function(e, t) {
|
|
|
9044
9044
|
}, this)), r.push(e), n[o] = e);
|
|
9045
9045
|
};
|
|
9046
9046
|
function yo(e, t) {
|
|
9047
|
-
this.packageMap = {}, this.typeMap = {}, this.packages = [], this.properties = t,
|
|
9047
|
+
this.packageMap = {}, this.typeMap = {}, this.packages = [], this.properties = t, z(e, Zt(this.registerPackage, this));
|
|
9048
9048
|
}
|
|
9049
9049
|
yo.prototype.getPackage = function(e) {
|
|
9050
9050
|
return this.packageMap[e];
|
|
@@ -9055,7 +9055,7 @@ yo.prototype.getPackages = function() {
|
|
|
9055
9055
|
yo.prototype.registerPackage = function(e) {
|
|
9056
9056
|
e = Y({}, e);
|
|
9057
9057
|
var t = this.packageMap;
|
|
9058
|
-
Wy(t, e, "prefix"), Wy(t, e, "uri"),
|
|
9058
|
+
Wy(t, e, "prefix"), Wy(t, e, "uri"), z(e.types, Zt(function(n) {
|
|
9059
9059
|
this.registerType(n, e);
|
|
9060
9060
|
}, this)), t[e.uri] = t[e.prefix] = e, this.packages.push(e);
|
|
9061
9061
|
};
|
|
@@ -9067,7 +9067,7 @@ yo.prototype.registerType = function(e, t) {
|
|
|
9067
9067
|
meta: Y(e.meta || {})
|
|
9068
9068
|
});
|
|
9069
9069
|
var n = xi(e.name, t.prefix), r = n.name, o = {};
|
|
9070
|
-
|
|
9070
|
+
z(e.properties, Zt(function(s) {
|
|
9071
9071
|
var l = xi(s.name, n.prefix), u = l.name;
|
|
9072
9072
|
eh(s.type) || (s.type = xi(s.type, l.prefix).name), Y(s, {
|
|
9073
9073
|
ns: l,
|
|
@@ -9077,7 +9077,7 @@ yo.prototype.registerType = function(e, t) {
|
|
|
9077
9077
|
ns: n,
|
|
9078
9078
|
name: r,
|
|
9079
9079
|
propertiesByName: o
|
|
9080
|
-
}),
|
|
9080
|
+
}), z(e.extends, Zt(function(s) {
|
|
9081
9081
|
var l = xi(s, n.prefix), u = this.typeMap[l.name];
|
|
9082
9082
|
u.traits = u.traits || [], u.traits.push(r);
|
|
9083
9083
|
}, this)), this.definePackage(e, t), this.typeMap[r] = e;
|
|
@@ -9096,7 +9096,7 @@ yo.prototype.mapTypes = function(e, t, n) {
|
|
|
9096
9096
|
}
|
|
9097
9097
|
if (!r)
|
|
9098
9098
|
throw new Error("unknown type <" + e.name + ">");
|
|
9099
|
-
|
|
9099
|
+
z(r.superClass, n ? l : u), t(r, !n), z(r.traits, l);
|
|
9100
9100
|
};
|
|
9101
9101
|
yo.prototype.getEffectiveDescriptor = function(e) {
|
|
9102
9102
|
var t = xi(e), n = new dr(t);
|
|
@@ -9210,7 +9210,7 @@ Fr.prototype.createAny = function(e, t, n) {
|
|
|
9210
9210
|
uri: t
|
|
9211
9211
|
}
|
|
9212
9212
|
};
|
|
9213
|
-
return this.properties.defineDescriptor(o, s), this.properties.defineModel(o, this), this.properties.define(o, "get", { enumerable: !1, writable: !0 }), this.properties.define(o, "set", { enumerable: !1, writable: !0 }), this.properties.define(o, "$parent", { enumerable: !1, writable: !0 }), this.properties.define(o, "$instanceOf", { enumerable: !1, writable: !0 }),
|
|
9213
|
+
return this.properties.defineDescriptor(o, s), this.properties.defineModel(o, this), this.properties.define(o, "get", { enumerable: !1, writable: !0 }), this.properties.define(o, "set", { enumerable: !1, writable: !0 }), this.properties.define(o, "$parent", { enumerable: !1, writable: !0 }), this.properties.define(o, "$instanceOf", { enumerable: !1, writable: !0 }), z(n, function(l, u) {
|
|
9214
9214
|
En(l) && l.value !== void 0 ? o[l.name] = l.value : o[u] = l;
|
|
9215
9215
|
}), o;
|
|
9216
9216
|
};
|
|
@@ -9344,15 +9344,15 @@ function v_(e) {
|
|
|
9344
9344
|
w = !0;
|
|
9345
9345
|
};
|
|
9346
9346
|
function k(P) {
|
|
9347
|
-
var M = b ? [] : null, L = b ? O2(A) : null, H, j = [],
|
|
9347
|
+
var M = b ? [] : null, L = b ? O2(A) : null, H, j = [], W = 0, Q = !1, J = !1, oe = 0, pe = 0, Me, G, ce, re, De, F, C, V, Z, fe = "", X = 0, ee;
|
|
9348
9348
|
function _e() {
|
|
9349
9349
|
if (ee !== null)
|
|
9350
9350
|
return ee;
|
|
9351
|
-
var ie, ae, me, Ie = b && L.xmlns, at = b && y ? [] : null, Be = X, Ue = fe, St = Ue.length, It, pt, Et, xn, ke, Dt = {}, Pa = {},
|
|
9351
|
+
var ie, ae, me, Ie = b && L.xmlns, at = b && y ? [] : null, Be = X, Ue = fe, St = Ue.length, It, pt, Et, xn, ke, Dt = {}, Pa = {}, kn, Ne, ft;
|
|
9352
9352
|
e:
|
|
9353
9353
|
for (; Be < St; Be++)
|
|
9354
|
-
if (
|
|
9355
|
-
for ((Ne < 65 || Ne > 122 || Ne > 90 && Ne < 97) && Ne !== 95 && Ne !== 58 && (D("illegal first char attribute name"),
|
|
9354
|
+
if (kn = !1, Ne = Ue.charCodeAt(Be), !(Ne === 32 || Ne < 14 && Ne > 8)) {
|
|
9355
|
+
for ((Ne < 65 || Ne > 122 || Ne > 90 && Ne < 97) && Ne !== 95 && Ne !== 58 && (D("illegal first char attribute name"), kn = !0), ft = Be + 1; ft < St; ft++)
|
|
9356
9356
|
if (Ne = Ue.charCodeAt(ft), !(Ne > 96 && Ne < 123 || Ne > 64 && Ne < 91 || Ne > 47 && Ne < 59 || Ne === 46 || // '.'
|
|
9357
9357
|
Ne === 45 || // '-'
|
|
9358
9358
|
Ne === 95)) {
|
|
@@ -9362,18 +9362,18 @@ function v_(e) {
|
|
|
9362
9362
|
}
|
|
9363
9363
|
if (Ne === 61)
|
|
9364
9364
|
break;
|
|
9365
|
-
D("illegal attribute name char"),
|
|
9365
|
+
D("illegal attribute name char"), kn = !0;
|
|
9366
9366
|
}
|
|
9367
|
-
if (ke = Ue.substring(Be, ft), ke === "xmlns:xmlns" && (D("illegal declaration of xmlns"),
|
|
9368
|
-
ft = Ue.indexOf('"', Be = ft + 2), ft === -1 && (ft = Ue.indexOf("'", Be), ft !== -1 && (D("attribute value quote missmatch"),
|
|
9367
|
+
if (ke = Ue.substring(Be, ft), ke === "xmlns:xmlns" && (D("illegal declaration of xmlns"), kn = !0), Ne = Ue.charCodeAt(ft + 1), Ne === 34)
|
|
9368
|
+
ft = Ue.indexOf('"', Be = ft + 2), ft === -1 && (ft = Ue.indexOf("'", Be), ft !== -1 && (D("attribute value quote missmatch"), kn = !0));
|
|
9369
9369
|
else if (Ne === 39)
|
|
9370
|
-
ft = Ue.indexOf("'", Be = ft + 2), ft === -1 && (ft = Ue.indexOf('"', Be), ft !== -1 && (D("attribute value quote missmatch"),
|
|
9370
|
+
ft = Ue.indexOf("'", Be = ft + 2), ft === -1 && (ft = Ue.indexOf('"', Be), ft !== -1 && (D("attribute value quote missmatch"), kn = !0));
|
|
9371
9371
|
else
|
|
9372
|
-
for (D("missing attribute value quotes"),
|
|
9372
|
+
for (D("missing attribute value quotes"), kn = !0, ft = ft + 1; ft < St && (Ne = Ue.charCodeAt(ft + 1), !(Ne === 32 || Ne < 14 && Ne > 8)); ft++)
|
|
9373
9373
|
;
|
|
9374
|
-
for (ft === -1 && (D("missing closing quotes"), ft = St,
|
|
9375
|
-
Be === ft && (D("illegal character after attribute end"),
|
|
9376
|
-
if (Be = ft + 1,
|
|
9374
|
+
for (ft === -1 && (D("missing closing quotes"), ft = St, kn = !0), kn || (Et = Ue.substring(Be, ft)), Be = ft; ft + 1 < St && (Ne = Ue.charCodeAt(ft + 1), !(Ne === 32 || Ne < 14 && Ne > 8)); ft++)
|
|
9375
|
+
Be === ft && (D("illegal character after attribute end"), kn = !0);
|
|
9376
|
+
if (Be = ft + 1, kn)
|
|
9377
9377
|
continue e;
|
|
9378
9378
|
if (ke in Pa) {
|
|
9379
9379
|
D("attribute <" + ke + "> already defined");
|
|
@@ -9388,7 +9388,7 @@ function v_(e) {
|
|
|
9388
9388
|
if (ie = ta(Et), ae = nh(pt), xn = A[ie], !xn) {
|
|
9389
9389
|
if (pt === "xmlns" || ae in L && L[ae] !== ie)
|
|
9390
9390
|
do
|
|
9391
|
-
xn = "ns" +
|
|
9391
|
+
xn = "ns" + W++;
|
|
9392
9392
|
while (typeof L[xn] < "u");
|
|
9393
9393
|
else
|
|
9394
9394
|
xn = pt;
|
|
@@ -9557,12 +9557,12 @@ function m_(e, t) {
|
|
|
9557
9557
|
}
|
|
9558
9558
|
m_.prototype.createType = function(e) {
|
|
9559
9559
|
var t = this.model, n = this.properties, r = Object.create(Yh.prototype);
|
|
9560
|
-
|
|
9560
|
+
z(e.properties, function(l) {
|
|
9561
9561
|
!l.isMany && l.default !== void 0 && (r[l.name] = l.default);
|
|
9562
9562
|
}), n.defineModel(r, t), n.defineDescriptor(r, e);
|
|
9563
9563
|
var o = e.ns.name;
|
|
9564
9564
|
function s(l) {
|
|
9565
|
-
n.define(this, "$type", { value: o, enumerable: !0 }), n.define(this, "$attrs", { value: {} }), n.define(this, "$parent", { writable: !0 }),
|
|
9565
|
+
n.define(this, "$type", { value: o, enumerable: !0 }), n.define(this, "$attrs", { value: {} }), n.define(this, "$parent", { writable: !0 }), z(l, Zt(function(u, c) {
|
|
9566
9566
|
this.set(c, u);
|
|
9567
9567
|
}, this));
|
|
9568
9568
|
}
|
|
@@ -9702,7 +9702,7 @@ hr.prototype.hasProperty = function(e) {
|
|
|
9702
9702
|
hr.prototype.addTrait = function(e, t) {
|
|
9703
9703
|
t && this.assertNotTrait(e);
|
|
9704
9704
|
var n = this.allTypesByName, r = this.allTypes, o = e.name;
|
|
9705
|
-
o in n || (
|
|
9705
|
+
o in n || (z(e.properties, Zt(function(s) {
|
|
9706
9706
|
s = Y({}, s, {
|
|
9707
9707
|
name: s.ns.localName,
|
|
9708
9708
|
inherited: t
|
|
@@ -9714,7 +9714,7 @@ hr.prototype.addTrait = function(e, t) {
|
|
|
9714
9714
|
}, this)), r.push(e), n[o] = e);
|
|
9715
9715
|
};
|
|
9716
9716
|
function bo(e, t) {
|
|
9717
|
-
this.packageMap = {}, this.typeMap = {}, this.packages = [], this.properties = t,
|
|
9717
|
+
this.packageMap = {}, this.typeMap = {}, this.packages = [], this.properties = t, z(e, Zt(this.registerPackage, this));
|
|
9718
9718
|
}
|
|
9719
9719
|
bo.prototype.getPackage = function(e) {
|
|
9720
9720
|
return this.packageMap[e];
|
|
@@ -9725,7 +9725,7 @@ bo.prototype.getPackages = function() {
|
|
|
9725
9725
|
bo.prototype.registerPackage = function(e) {
|
|
9726
9726
|
e = Y({}, e);
|
|
9727
9727
|
var t = this.packageMap;
|
|
9728
|
-
qy(t, e, "prefix"), qy(t, e, "uri"),
|
|
9728
|
+
qy(t, e, "prefix"), qy(t, e, "uri"), z(e.types, Zt(function(n) {
|
|
9729
9729
|
this.registerType(n, e);
|
|
9730
9730
|
}, this)), t[e.uri] = t[e.prefix] = e, this.packages.push(e);
|
|
9731
9731
|
};
|
|
@@ -9737,7 +9737,7 @@ bo.prototype.registerType = function(e, t) {
|
|
|
9737
9737
|
meta: Y(e.meta || {})
|
|
9738
9738
|
});
|
|
9739
9739
|
var n = Fn(e.name, t.prefix), r = n.name, o = {};
|
|
9740
|
-
|
|
9740
|
+
z(e.properties, Zt(function(s) {
|
|
9741
9741
|
var l = Fn(s.name, n.prefix), u = l.name;
|
|
9742
9742
|
rh(s.type) || (s.type = Fn(s.type, l.prefix).name), Y(s, {
|
|
9743
9743
|
ns: l,
|
|
@@ -9747,7 +9747,7 @@ bo.prototype.registerType = function(e, t) {
|
|
|
9747
9747
|
ns: n,
|
|
9748
9748
|
name: r,
|
|
9749
9749
|
propertiesByName: o
|
|
9750
|
-
}),
|
|
9750
|
+
}), z(e.extends, Zt(function(s) {
|
|
9751
9751
|
var l = Fn(s, n.prefix), u = this.typeMap[l.name];
|
|
9752
9752
|
u.traits = u.traits || [], u.traits.push(r);
|
|
9753
9753
|
}, this)), this.definePackage(e, t), this.typeMap[r] = e;
|
|
@@ -9766,7 +9766,7 @@ bo.prototype.mapTypes = function(e, t, n) {
|
|
|
9766
9766
|
}
|
|
9767
9767
|
if (!r)
|
|
9768
9768
|
throw new Error("unknown type <" + e.name + ">");
|
|
9769
|
-
|
|
9769
|
+
z(r.superClass, n ? l : u), t(r, !n), z(r.traits, l);
|
|
9770
9770
|
};
|
|
9771
9771
|
bo.prototype.getEffectiveDescriptor = function(e) {
|
|
9772
9772
|
var t = Fn(e), n = new hr(t);
|
|
@@ -9880,7 +9880,7 @@ ri.prototype.createAny = function(e, t, n) {
|
|
|
9880
9880
|
uri: t
|
|
9881
9881
|
}
|
|
9882
9882
|
};
|
|
9883
|
-
return this.properties.defineDescriptor(o, s), this.properties.defineModel(o, this), this.properties.define(o, "get", { enumerable: !1, writable: !0 }), this.properties.define(o, "set", { enumerable: !1, writable: !0 }), this.properties.define(o, "$parent", { enumerable: !1, writable: !0 }), this.properties.define(o, "$instanceOf", { enumerable: !1, writable: !0 }),
|
|
9883
|
+
return this.properties.defineDescriptor(o, s), this.properties.defineModel(o, this), this.properties.define(o, "get", { enumerable: !1, writable: !0 }), this.properties.define(o, "set", { enumerable: !1, writable: !0 }), this.properties.define(o, "$parent", { enumerable: !1, writable: !0 }), this.properties.define(o, "$instanceOf", { enumerable: !1, writable: !0 }), z(n, function(l, u) {
|
|
9884
9884
|
En(l) && l.value !== void 0 ? o[l.name] = l.value : o[u] = l;
|
|
9885
9885
|
}), o;
|
|
9886
9886
|
};
|
|
@@ -10030,9 +10030,9 @@ $n.prototype.handleEnd = function() {
|
|
|
10030
10030
|
};
|
|
10031
10031
|
$n.prototype.createElement = function(e) {
|
|
10032
10032
|
var t = e.attributes, n = this.type, r = Ci(n), o = this.context, s = new n({}), l = this.model, u;
|
|
10033
|
-
return
|
|
10033
|
+
return z(t, function(c, d) {
|
|
10034
10034
|
var v = r.propertiesByName[d], m;
|
|
10035
|
-
v && v.isReference ? v.isMany ? (m = c.split(" "),
|
|
10035
|
+
v && v.isReference ? v.isMany ? (m = c.split(" "), z(m, function(y) {
|
|
10036
10036
|
o.addReference({
|
|
10037
10037
|
element: s,
|
|
10038
10038
|
property: v.ns.name,
|
|
@@ -10128,10 +10128,10 @@ Qh.prototype.fromXML = function(e, t, n) {
|
|
|
10128
10128
|
var o = this.model, s = this.lax, l = new U2(Y({}, t, { rootHandler: r })), u = new v_({ proxy: !0 }), c = G2();
|
|
10129
10129
|
r.context = l, c.push(r);
|
|
10130
10130
|
function d(M, L, H) {
|
|
10131
|
-
var j = L(),
|
|
10131
|
+
var j = L(), W = j.line, Q = j.column, J = j.data;
|
|
10132
10132
|
J.charAt(0) === "<" && J.indexOf(" ") !== -1 && (J = J.slice(0, J.indexOf(" ")) + ">");
|
|
10133
10133
|
var oe = "unparsable content " + (J ? J + " " : "") + `detected
|
|
10134
|
-
line: ` +
|
|
10134
|
+
line: ` + W + `
|
|
10135
10135
|
column: ` + Q + `
|
|
10136
10136
|
nested error: ` + M.message;
|
|
10137
10137
|
if (H)
|
|
@@ -10147,17 +10147,17 @@ Qh.prototype.fromXML = function(e, t, n) {
|
|
|
10147
10147
|
function m() {
|
|
10148
10148
|
var M = l.elementsById, L = l.references, H, j;
|
|
10149
10149
|
for (H = 0; j = L[H]; H++) {
|
|
10150
|
-
var
|
|
10150
|
+
var W = j.element, Q = M[j.id], J = Ci(W).propertiesByName[j.property];
|
|
10151
10151
|
if (Q || l.addWarning({
|
|
10152
10152
|
message: "unresolved reference <" + j.id + ">",
|
|
10153
10153
|
element: j.element,
|
|
10154
10154
|
property: j.property,
|
|
10155
10155
|
value: j.id
|
|
10156
10156
|
}), J.isMany) {
|
|
10157
|
-
var oe =
|
|
10157
|
+
var oe = W.get(J.name), pe = oe.indexOf(j);
|
|
10158
10158
|
pe === -1 && (pe = oe.length), Q ? oe[pe] = Q : oe.splice(pe, 1);
|
|
10159
10159
|
} else
|
|
10160
|
-
|
|
10160
|
+
W.set(J.name, Q);
|
|
10161
10161
|
}
|
|
10162
10162
|
}
|
|
10163
10163
|
function y() {
|
|
@@ -10197,8 +10197,8 @@ Qh.prototype.fromXML = function(e, t, n) {
|
|
|
10197
10197
|
// add default xml ns
|
|
10198
10198
|
});
|
|
10199
10199
|
return u.ns(P).on("openTag", function(M, L, H, j) {
|
|
10200
|
-
var
|
|
10201
|
-
var Me = L(
|
|
10200
|
+
var W = M.attrs || {}, Q = Object.keys(W).reduce(function(oe, pe) {
|
|
10201
|
+
var Me = L(W[pe]);
|
|
10202
10202
|
return oe[pe] = Me, oe;
|
|
10203
10203
|
}, {}), J = {
|
|
10204
10204
|
name: M.name,
|
|
@@ -10218,12 +10218,12 @@ Qh.prototype.fromXML = function(e, t, n) {
|
|
|
10218
10218
|
}
|
|
10219
10219
|
var j = r.element;
|
|
10220
10220
|
!H && !j && (H = po("failed to parse document as <" + r.type.$descriptor.name + ">"));
|
|
10221
|
-
var
|
|
10222
|
-
return H ? (H.warnings =
|
|
10221
|
+
var W = l.warnings, Q = l.references, J = l.elementsById;
|
|
10222
|
+
return H ? (H.warnings = W, L(H)) : M({
|
|
10223
10223
|
rootElement: j,
|
|
10224
10224
|
elementsById: J,
|
|
10225
10225
|
references: Q,
|
|
10226
|
-
warnings:
|
|
10226
|
+
warnings: W
|
|
10227
10227
|
});
|
|
10228
10228
|
});
|
|
10229
10229
|
};
|
|
@@ -10395,9 +10395,9 @@ At.prototype.nsAttributeName = function(e) {
|
|
|
10395
10395
|
};
|
|
10396
10396
|
At.prototype.parseGeneric = function(e) {
|
|
10397
10397
|
var t = this, n = this.body, r = [];
|
|
10398
|
-
return
|
|
10398
|
+
return z(e, function(o, s) {
|
|
10399
10399
|
var l;
|
|
10400
|
-
s === "$body" ? n.push(new fa().build({ type: "String" }, o)) : s === "$children" ?
|
|
10400
|
+
s === "$body" ? n.push(new fa().build({ type: "String" }, o)) : s === "$children" ? z(o, function(u) {
|
|
10401
10401
|
n.push(new At(t).build(u));
|
|
10402
10402
|
}) : s.indexOf("$") !== 0 && (l = t.parseNsAttribute(e, s, o), l && r.push({ name: s, value: o }));
|
|
10403
10403
|
}), r;
|
|
@@ -10418,14 +10418,14 @@ At.prototype.parseNsAttribute = function(e, t, n) {
|
|
|
10418
10418
|
};
|
|
10419
10419
|
At.prototype.parseNsAttributes = function(e, t) {
|
|
10420
10420
|
var n = this, r = e.$attrs, o = [];
|
|
10421
|
-
return
|
|
10421
|
+
return z(r, function(s, l) {
|
|
10422
10422
|
var u = n.parseNsAttribute(e, l, s);
|
|
10423
10423
|
u && o.push(u);
|
|
10424
10424
|
}), o;
|
|
10425
10425
|
};
|
|
10426
10426
|
At.prototype.parseGenericAttributes = function(e, t) {
|
|
10427
10427
|
var n = this;
|
|
10428
|
-
|
|
10428
|
+
z(t, function(r) {
|
|
10429
10429
|
if (r.name !== Ep)
|
|
10430
10430
|
try {
|
|
10431
10431
|
n.addAttribute(n.nsAttributeName(r.name), r.value);
|
|
@@ -10444,21 +10444,21 @@ At.prototype.parseGenericAttributes = function(e, t) {
|
|
|
10444
10444
|
};
|
|
10445
10445
|
At.prototype.parseContainments = function(e) {
|
|
10446
10446
|
var t = this, n = this.body, r = this.element;
|
|
10447
|
-
|
|
10447
|
+
z(e, function(o) {
|
|
10448
10448
|
var s = r.get(o.name), l = o.isReference, u = o.isMany;
|
|
10449
10449
|
if (u || (s = [s]), o.isBody)
|
|
10450
10450
|
n.push(new fa().build(o, s[0]));
|
|
10451
10451
|
else if (y_(o.type))
|
|
10452
|
-
|
|
10452
|
+
z(s, function(v) {
|
|
10453
10453
|
n.push(new tv(t.addTagName(t.nsPropertyTagName(o))).build(o, v));
|
|
10454
10454
|
});
|
|
10455
10455
|
else if (l)
|
|
10456
|
-
|
|
10456
|
+
z(s, function(v) {
|
|
10457
10457
|
n.push(new ev(t.addTagName(t.nsPropertyTagName(o))).build(v));
|
|
10458
10458
|
});
|
|
10459
10459
|
else {
|
|
10460
10460
|
var c = x_(o), d = H2(o);
|
|
10461
|
-
|
|
10461
|
+
z(s, function(v) {
|
|
10462
10462
|
var m;
|
|
10463
10463
|
c ? m = new xp(t, o) : d ? m = new At(t, o) : m = new At(t), n.push(m.build(v));
|
|
10464
10464
|
});
|
|
@@ -10488,14 +10488,14 @@ At.prototype.logNamespaceUsed = function(e, t) {
|
|
|
10488
10488
|
};
|
|
10489
10489
|
At.prototype.parseAttributes = function(e) {
|
|
10490
10490
|
var t = this, n = this.element;
|
|
10491
|
-
|
|
10491
|
+
z(e, function(r) {
|
|
10492
10492
|
var o = n.get(r.name);
|
|
10493
10493
|
if (r.isReference)
|
|
10494
10494
|
if (!r.isMany)
|
|
10495
10495
|
o = o.id;
|
|
10496
10496
|
else {
|
|
10497
10497
|
var s = [];
|
|
10498
|
-
|
|
10498
|
+
z(o, function(l) {
|
|
10499
10499
|
s.push(l.id);
|
|
10500
10500
|
}), o = s.join(" ");
|
|
10501
10501
|
}
|
|
@@ -10516,13 +10516,13 @@ At.prototype.addAttribute = function(e, t) {
|
|
|
10516
10516
|
};
|
|
10517
10517
|
At.prototype.serializeAttributes = function(e) {
|
|
10518
10518
|
var t = this.attrs, n = this.namespaces;
|
|
10519
|
-
n && (t = Z2(n).concat(t)),
|
|
10519
|
+
n && (t = Z2(n).concat(t)), z(t, function(r) {
|
|
10520
10520
|
e.append(" ").append(T_(r.name)).append('="').append(r.value).append('"');
|
|
10521
10521
|
});
|
|
10522
10522
|
};
|
|
10523
10523
|
At.prototype.serializeTo = function(e) {
|
|
10524
10524
|
var t = this.body[0], n = t && t.constructor !== fa;
|
|
10525
|
-
e.appendIndent().append("<" + this.tagName), this.serializeAttributes(e), e.append(t ? ">" : " />"), t && (n && e.appendNewLine().indent(),
|
|
10525
|
+
e.appendIndent().append("<" + this.tagName), this.serializeAttributes(e), e.append(t ? ">" : " />"), t && (n && e.appendNewLine().indent(), z(this.body, function(r) {
|
|
10526
10526
|
r.serializeTo(e);
|
|
10527
10527
|
}), n && e.unindent().appendIndent(), e.append("</" + this.tagName + ">")), e.appendNewLine();
|
|
10528
10528
|
};
|
|
@@ -14284,7 +14284,7 @@ function nP(e, t) {
|
|
|
14284
14284
|
_(X.plane);
|
|
14285
14285
|
}
|
|
14286
14286
|
function _(X) {
|
|
14287
|
-
y(X),
|
|
14287
|
+
y(X), z(X.planeElement, w);
|
|
14288
14288
|
}
|
|
14289
14289
|
function w(X) {
|
|
14290
14290
|
y(X);
|
|
@@ -14344,7 +14344,7 @@ function nP(e, t) {
|
|
|
14344
14344
|
v(X, ee);
|
|
14345
14345
|
}
|
|
14346
14346
|
function M(X, ee) {
|
|
14347
|
-
|
|
14347
|
+
z(X, s(P, ee));
|
|
14348
14348
|
}
|
|
14349
14349
|
function L(X, ee) {
|
|
14350
14350
|
v(X, ee);
|
|
@@ -14355,18 +14355,18 @@ function nP(e, t) {
|
|
|
14355
14355
|
function j(X, ee) {
|
|
14356
14356
|
v(X, ee);
|
|
14357
14357
|
}
|
|
14358
|
-
function
|
|
14358
|
+
function W(X, ee) {
|
|
14359
14359
|
v(X, ee);
|
|
14360
14360
|
}
|
|
14361
14361
|
function Q(X, ee) {
|
|
14362
|
-
|
|
14362
|
+
z(X, function(_e) {
|
|
14363
14363
|
Vn(_e, "bpmn:Association") ? r.push(function() {
|
|
14364
|
-
|
|
14365
|
-
}) :
|
|
14364
|
+
W(_e, ee);
|
|
14365
|
+
}) : W(_e, ee);
|
|
14366
14366
|
});
|
|
14367
14367
|
}
|
|
14368
14368
|
function J(X, ee) {
|
|
14369
|
-
X && (
|
|
14369
|
+
X && (z(X.dataInputs, s(H, ee)), z(X.dataOutputs, s(j, ee)));
|
|
14370
14370
|
}
|
|
14371
14371
|
function oe(X, ee) {
|
|
14372
14372
|
F(X, ee), Q(X.artifacts, ee);
|
|
@@ -14374,7 +14374,7 @@ function nP(e, t) {
|
|
|
14374
14374
|
function pe(X, ee) {
|
|
14375
14375
|
var _e = v(X, ee);
|
|
14376
14376
|
Vn(X, "bpmn:SubProcess") && oe(X, _e || ee), Vn(X, "bpmn:Activity") && J(X.ioSpecification, ee), r.push(function() {
|
|
14377
|
-
|
|
14377
|
+
z(X.dataInputAssociations, s(L, ee)), z(X.dataOutputAssociations, s(L, ee));
|
|
14378
14378
|
});
|
|
14379
14379
|
}
|
|
14380
14380
|
function Me(X, ee) {
|
|
@@ -14390,16 +14390,16 @@ function nP(e, t) {
|
|
|
14390
14390
|
});
|
|
14391
14391
|
}
|
|
14392
14392
|
function re(X, ee) {
|
|
14393
|
-
|
|
14393
|
+
z(X.lanes, s(ce, ee));
|
|
14394
14394
|
}
|
|
14395
14395
|
function De(X, ee) {
|
|
14396
|
-
|
|
14396
|
+
z(X, s(re, ee));
|
|
14397
14397
|
}
|
|
14398
14398
|
function F(X, ee) {
|
|
14399
14399
|
C(X.flowElements, ee), X.laneSets && De(X.laneSets, ee);
|
|
14400
14400
|
}
|
|
14401
14401
|
function C(X, ee) {
|
|
14402
|
-
|
|
14402
|
+
z(X, function(_e) {
|
|
14403
14403
|
Vn(_e, "bpmn:SequenceFlow") ? r.push(function() {
|
|
14404
14404
|
Me(_e, ee);
|
|
14405
14405
|
}) : Vn(_e, "bpmn:BoundaryEvent") ? r.unshift(function() {
|
|
@@ -14418,12 +14418,12 @@ function nP(e, t) {
|
|
|
14418
14418
|
$e && D($e, _e || ee);
|
|
14419
14419
|
}
|
|
14420
14420
|
function Z(X, ee) {
|
|
14421
|
-
|
|
14421
|
+
z(X.participants, s(V, ee)), Q(X.artifacts, ee), r.push(function() {
|
|
14422
14422
|
M(X.messageFlows, ee);
|
|
14423
14423
|
});
|
|
14424
14424
|
}
|
|
14425
14425
|
function fe(X) {
|
|
14426
|
-
|
|
14426
|
+
z(X.flowNodeRef, function(ee) {
|
|
14427
14427
|
var _e = ee.get("lanes");
|
|
14428
14428
|
_e && _e.push(X);
|
|
14429
14429
|
});
|
|
@@ -14468,7 +14468,7 @@ function rP(e, t, n) {
|
|
|
14468
14468
|
var _ = iP(v, m);
|
|
14469
14469
|
if (!_)
|
|
14470
14470
|
throw new Error(s("no diagram to display"));
|
|
14471
|
-
|
|
14471
|
+
z(_, function(A) {
|
|
14472
14472
|
b.handleDefinitions(v, A);
|
|
14473
14473
|
});
|
|
14474
14474
|
var w = m.plane.bpmnElement.id;
|
|
@@ -14503,7 +14503,7 @@ function iP(e, t) {
|
|
|
14503
14503
|
return d.processRef;
|
|
14504
14504
|
}), s.push(o));
|
|
14505
14505
|
var l = R_(s), u = [t], c = [n];
|
|
14506
|
-
return
|
|
14506
|
+
return z(e.diagrams, function(d) {
|
|
14507
14507
|
var v = d.plane.bpmnElement;
|
|
14508
14508
|
l.indexOf(v) !== -1 && c.indexOf(v) === -1 && (u.push(d), c.push(v));
|
|
14509
14509
|
}), u;
|
|
@@ -14511,7 +14511,7 @@ function iP(e, t) {
|
|
|
14511
14511
|
}
|
|
14512
14512
|
function R_(e) {
|
|
14513
14513
|
var t = [];
|
|
14514
|
-
return
|
|
14514
|
+
return z(e, function(n) {
|
|
14515
14515
|
n && (t.push(n), t = t.concat(R_(n.flowElements)));
|
|
14516
14516
|
}), t;
|
|
14517
14517
|
}
|
|
@@ -14788,7 +14788,7 @@ function nr(e) {
|
|
|
14788
14788
|
}
|
|
14789
14789
|
function Sp(e, t) {
|
|
14790
14790
|
var n = Ce(e), r = !1;
|
|
14791
|
-
return n.eventDefinitions &&
|
|
14791
|
+
return n.eventDefinitions && z(n.eventDefinitions, function(o) {
|
|
14792
14792
|
R(o, t) && (r = !0);
|
|
14793
14793
|
}), r;
|
|
14794
14794
|
}
|
|
@@ -14840,7 +14840,7 @@ function SP(e) {
|
|
|
14840
14840
|
var t = e.dataObjectRef;
|
|
14841
14841
|
return e.isCollection || t && t.isCollection;
|
|
14842
14842
|
}
|
|
14843
|
-
function
|
|
14843
|
+
function In(e) {
|
|
14844
14844
|
return e.businessObject;
|
|
14845
14845
|
}
|
|
14846
14846
|
function st(e, t) {
|
|
@@ -15120,17 +15120,17 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15120
15120
|
function j(F, C, V, Z) {
|
|
15121
15121
|
return H(C, V, Y({ "data-marker": F }, Z));
|
|
15122
15122
|
}
|
|
15123
|
-
function
|
|
15123
|
+
function W(F) {
|
|
15124
15124
|
return ce[F];
|
|
15125
15125
|
}
|
|
15126
15126
|
function Q(F) {
|
|
15127
15127
|
return function(C, V) {
|
|
15128
|
-
return
|
|
15128
|
+
return W(F)(C, V);
|
|
15129
15129
|
};
|
|
15130
15130
|
}
|
|
15131
15131
|
function J(F, C) {
|
|
15132
|
-
var V =
|
|
15133
|
-
return V.eventDefinitions && V.eventDefinitions.length > 1 ? V.parallelMultiple ?
|
|
15132
|
+
var V = In(F), Z = wP(V);
|
|
15133
|
+
return V.eventDefinitions && V.eventDefinitions.length > 1 ? V.parallelMultiple ? W("bpmn:ParallelMultipleEventDefinition")(C, F, Z) : W("bpmn:MultipleEventDefinition")(C, F, Z) : Kr(V, "bpmn:MessageEventDefinition") ? W("bpmn:MessageEventDefinition")(C, F, Z) : Kr(V, "bpmn:TimerEventDefinition") ? W("bpmn:TimerEventDefinition")(C, F, Z) : Kr(V, "bpmn:ConditionalEventDefinition") ? W("bpmn:ConditionalEventDefinition")(C, F) : Kr(V, "bpmn:SignalEventDefinition") ? W("bpmn:SignalEventDefinition")(C, F, Z) : Kr(V, "bpmn:EscalationEventDefinition") ? W("bpmn:EscalationEventDefinition")(C, F, Z) : Kr(V, "bpmn:LinkEventDefinition") ? W("bpmn:LinkEventDefinition")(C, F, Z) : Kr(V, "bpmn:ErrorEventDefinition") ? W("bpmn:ErrorEventDefinition")(C, F, Z) : Kr(V, "bpmn:CancelEventDefinition") ? W("bpmn:CancelEventDefinition")(C, F, Z) : Kr(V, "bpmn:CompensateEventDefinition") ? W("bpmn:CompensateEventDefinition")(C, F, Z) : Kr(V, "bpmn:TerminateEventDefinition") ? W("bpmn:TerminateEventDefinition")(C, F, Z) : null;
|
|
15134
15134
|
}
|
|
15135
15135
|
function oe(F, C, V) {
|
|
15136
15136
|
V = Y({
|
|
@@ -15142,7 +15142,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15142
15142
|
return ot(Z).add("djs-label"), Ve(F, Z), Z;
|
|
15143
15143
|
}
|
|
15144
15144
|
function pe(F, C, V) {
|
|
15145
|
-
var Z =
|
|
15145
|
+
var Z = In(C);
|
|
15146
15146
|
return oe(F, Z.name, {
|
|
15147
15147
|
box: C,
|
|
15148
15148
|
align: V,
|
|
@@ -15192,13 +15192,13 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15192
15192
|
var V = {
|
|
15193
15193
|
fill: st(C, u),
|
|
15194
15194
|
stroke: Ee(C, c)
|
|
15195
|
-
}, Z =
|
|
15195
|
+
}, Z = In(C);
|
|
15196
15196
|
Z.isInterrupting || (V = {
|
|
15197
15197
|
strokeDasharray: "6",
|
|
15198
15198
|
fill: st(C, u),
|
|
15199
15199
|
stroke: Ee(C, c)
|
|
15200
15200
|
});
|
|
15201
|
-
var fe =
|
|
15201
|
+
var fe = W("bpmn:Event")(F, C, V);
|
|
15202
15202
|
return J(C, F), fe;
|
|
15203
15203
|
},
|
|
15204
15204
|
"bpmn:MessageEventDefinition": function(F, C, V) {
|
|
@@ -15408,7 +15408,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15408
15408
|
});
|
|
15409
15409
|
},
|
|
15410
15410
|
"bpmn:EndEvent": function(F, C) {
|
|
15411
|
-
var V =
|
|
15411
|
+
var V = W("bpmn:Event")(F, C, {
|
|
15412
15412
|
strokeWidth: 4,
|
|
15413
15413
|
fill: st(C, u),
|
|
15414
15414
|
stroke: Ee(C, c)
|
|
@@ -15424,7 +15424,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15424
15424
|
return V;
|
|
15425
15425
|
},
|
|
15426
15426
|
"bpmn:IntermediateEvent": function(F, C) {
|
|
15427
|
-
var V =
|
|
15427
|
+
var V = W("bpmn:Event")(F, C, {
|
|
15428
15428
|
strokeWidth: 1.5,
|
|
15429
15429
|
fill: st(C, u),
|
|
15430
15430
|
stroke: Ee(C, c)
|
|
@@ -15444,11 +15444,11 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15444
15444
|
var V = {
|
|
15445
15445
|
fill: st(C, u),
|
|
15446
15446
|
stroke: Ee(C, c)
|
|
15447
|
-
}, Z =
|
|
15447
|
+
}, Z = W("bpmn:Activity")(F, C, V);
|
|
15448
15448
|
return pe(F, C, "center-middle"), re(F, C), Z;
|
|
15449
15449
|
},
|
|
15450
15450
|
"bpmn:ServiceTask": function(F, C) {
|
|
15451
|
-
var V =
|
|
15451
|
+
var V = W("bpmn:Task")(F, C), Z = r.getScaledPath("TASK_TYPE_SERVICE", {
|
|
15452
15452
|
abspos: {
|
|
15453
15453
|
x: 12,
|
|
15454
15454
|
y: 18
|
|
@@ -15482,7 +15482,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15482
15482
|
}), V;
|
|
15483
15483
|
},
|
|
15484
15484
|
"bpmn:UserTask": function(F, C) {
|
|
15485
|
-
var V =
|
|
15485
|
+
var V = W("bpmn:Task")(F, C), Z = 15, fe = 12, X = r.getScaledPath("TASK_TYPE_USER_1", {
|
|
15486
15486
|
abspos: {
|
|
15487
15487
|
x: Z,
|
|
15488
15488
|
y: fe
|
|
@@ -15517,7 +15517,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15517
15517
|
}), V;
|
|
15518
15518
|
},
|
|
15519
15519
|
"bpmn:ManualTask": function(F, C) {
|
|
15520
|
-
var V =
|
|
15520
|
+
var V = W("bpmn:Task")(F, C), Z = r.getScaledPath("TASK_TYPE_MANUAL", {
|
|
15521
15521
|
abspos: {
|
|
15522
15522
|
x: 17,
|
|
15523
15523
|
y: 15
|
|
@@ -15531,7 +15531,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15531
15531
|
}), V;
|
|
15532
15532
|
},
|
|
15533
15533
|
"bpmn:SendTask": function(F, C) {
|
|
15534
|
-
var V =
|
|
15534
|
+
var V = W("bpmn:Task")(F, C), Z = r.getScaledPath("TASK_TYPE_SEND", {
|
|
15535
15535
|
xScaleFactor: 1,
|
|
15536
15536
|
yScaleFactor: 1,
|
|
15537
15537
|
containerWidth: 21,
|
|
@@ -15548,7 +15548,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15548
15548
|
}), V;
|
|
15549
15549
|
},
|
|
15550
15550
|
"bpmn:ReceiveTask": function(F, C) {
|
|
15551
|
-
var V =
|
|
15551
|
+
var V = In(C), Z = W("bpmn:Task")(F, C), fe;
|
|
15552
15552
|
return V.instantiate ? (D(F, 28, 28, 20 * 0.22, { strokeWidth: 1 }), fe = r.getScaledPath("TASK_TYPE_INSTANTIATING_SEND", {
|
|
15553
15553
|
abspos: {
|
|
15554
15554
|
x: 7.77,
|
|
@@ -15570,7 +15570,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15570
15570
|
}), Z;
|
|
15571
15571
|
},
|
|
15572
15572
|
"bpmn:ScriptTask": function(F, C) {
|
|
15573
|
-
var V =
|
|
15573
|
+
var V = W("bpmn:Task")(F, C), Z = r.getScaledPath("TASK_TYPE_SCRIPT", {
|
|
15574
15574
|
abspos: {
|
|
15575
15575
|
x: 15,
|
|
15576
15576
|
y: 20
|
|
@@ -15582,7 +15582,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15582
15582
|
}), V;
|
|
15583
15583
|
},
|
|
15584
15584
|
"bpmn:BusinessRuleTask": function(F, C) {
|
|
15585
|
-
var V =
|
|
15585
|
+
var V = W("bpmn:Task")(F, C), Z = r.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER", {
|
|
15586
15586
|
abspos: {
|
|
15587
15587
|
x: 8,
|
|
15588
15588
|
y: 8
|
|
@@ -15610,24 +15610,24 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15610
15610
|
stroke: Ee(C, c),
|
|
15611
15611
|
...V
|
|
15612
15612
|
};
|
|
15613
|
-
var Z =
|
|
15613
|
+
var Z = W("bpmn:Activity")(F, C, V), fe = lt(C);
|
|
15614
15614
|
return nr(C) && Se(Z, {
|
|
15615
15615
|
strokeDasharray: "0, 5.5",
|
|
15616
15616
|
strokeWidth: 2.5
|
|
15617
15617
|
}), pe(F, C, fe ? "center-top" : "center-middle"), fe ? re(F, C) : re(F, C, ["SubProcessMarker"]), Z;
|
|
15618
15618
|
},
|
|
15619
15619
|
"bpmn:AdHocSubProcess": function(F, C) {
|
|
15620
|
-
return
|
|
15620
|
+
return W("bpmn:SubProcess")(F, C);
|
|
15621
15621
|
},
|
|
15622
15622
|
"bpmn:Transaction": function(F, C) {
|
|
15623
|
-
var V =
|
|
15623
|
+
var V = W("bpmn:SubProcess")(F, C, { strokeWidth: 1.5 }), Z = n.style(["no-fill", "no-events"], {
|
|
15624
15624
|
stroke: Ee(C, c),
|
|
15625
15625
|
strokeWidth: 1.5
|
|
15626
15626
|
});
|
|
15627
15627
|
return k(F, C.width, C.height, Oc - 3, xd, Z), V;
|
|
15628
15628
|
},
|
|
15629
15629
|
"bpmn:CallActivity": function(F, C) {
|
|
15630
|
-
return
|
|
15630
|
+
return W("bpmn:SubProcess")(F, C, {
|
|
15631
15631
|
strokeWidth: 5
|
|
15632
15632
|
});
|
|
15633
15633
|
},
|
|
@@ -15637,7 +15637,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15637
15637
|
fill: st(C, u),
|
|
15638
15638
|
stroke: Ee(C, c),
|
|
15639
15639
|
strokeWidth: V
|
|
15640
|
-
}, fe =
|
|
15640
|
+
}, fe = W("bpmn:Lane")(F, C, Z), X = lt(C);
|
|
15641
15641
|
if (X) {
|
|
15642
15642
|
M(F, [
|
|
15643
15643
|
{ x: 30, y: 0 },
|
|
@@ -15646,10 +15646,10 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15646
15646
|
stroke: Ee(C, c),
|
|
15647
15647
|
strokeWidth: V
|
|
15648
15648
|
});
|
|
15649
|
-
var ee =
|
|
15649
|
+
var ee = In(C).name;
|
|
15650
15650
|
G(F, ee, C);
|
|
15651
15651
|
} else {
|
|
15652
|
-
var _e =
|
|
15652
|
+
var _e = In(C).name;
|
|
15653
15653
|
oe(F, _e, {
|
|
15654
15654
|
box: C,
|
|
15655
15655
|
align: "center-middle",
|
|
@@ -15658,8 +15658,8 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15658
15658
|
}
|
|
15659
15659
|
});
|
|
15660
15660
|
}
|
|
15661
|
-
var $e = !!
|
|
15662
|
-
return $e &&
|
|
15661
|
+
var $e = !!In(C).participantMultiplicity;
|
|
15662
|
+
return $e && W("ParticipantMultiplicityMarker")(F, C), fe;
|
|
15663
15663
|
},
|
|
15664
15664
|
"bpmn:Lane": function(F, C, V) {
|
|
15665
15665
|
var Z = k(F, C.width, C.height, 0, {
|
|
@@ -15668,7 +15668,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15668
15668
|
stroke: Ee(C, c),
|
|
15669
15669
|
strokeWidth: 1.5,
|
|
15670
15670
|
...V
|
|
15671
|
-
}), fe =
|
|
15671
|
+
}), fe = In(C);
|
|
15672
15672
|
if (fe.$type === "bpmn:Lane") {
|
|
15673
15673
|
var X = fe.name;
|
|
15674
15674
|
G(F, X, C);
|
|
@@ -15676,7 +15676,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15676
15676
|
return Z;
|
|
15677
15677
|
},
|
|
15678
15678
|
"bpmn:InclusiveGateway": function(F, C) {
|
|
15679
|
-
var V =
|
|
15679
|
+
var V = W("bpmn:Gateway")(F, C);
|
|
15680
15680
|
return D(F, C.width, C.height, C.height * 0.24, {
|
|
15681
15681
|
strokeWidth: 2.5,
|
|
15682
15682
|
fill: st(C, u),
|
|
@@ -15684,7 +15684,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15684
15684
|
}), V;
|
|
15685
15685
|
},
|
|
15686
15686
|
"bpmn:ExclusiveGateway": function(F, C) {
|
|
15687
|
-
var V =
|
|
15687
|
+
var V = W("bpmn:Gateway")(F, C), Z = r.getScaledPath("GATEWAY_EXCLUSIVE", {
|
|
15688
15688
|
xScaleFactor: 0.4,
|
|
15689
15689
|
yScaleFactor: 0.4,
|
|
15690
15690
|
containerWidth: C.width,
|
|
@@ -15701,7 +15701,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15701
15701
|
}), V;
|
|
15702
15702
|
},
|
|
15703
15703
|
"bpmn:ComplexGateway": function(F, C) {
|
|
15704
|
-
var V =
|
|
15704
|
+
var V = W("bpmn:Gateway")(F, C), Z = r.getScaledPath("GATEWAY_COMPLEX", {
|
|
15705
15705
|
xScaleFactor: 0.5,
|
|
15706
15706
|
yScaleFactor: 0.5,
|
|
15707
15707
|
containerWidth: C.width,
|
|
@@ -15718,7 +15718,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15718
15718
|
}), V;
|
|
15719
15719
|
},
|
|
15720
15720
|
"bpmn:ParallelGateway": function(F, C) {
|
|
15721
|
-
var V =
|
|
15721
|
+
var V = W("bpmn:Gateway")(F, C), Z = r.getScaledPath("GATEWAY_PARALLEL", {
|
|
15722
15722
|
xScaleFactor: 0.6,
|
|
15723
15723
|
yScaleFactor: 0.6,
|
|
15724
15724
|
containerWidth: C.width,
|
|
@@ -15735,7 +15735,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15735
15735
|
}), V;
|
|
15736
15736
|
},
|
|
15737
15737
|
"bpmn:EventBasedGateway": function(F, C) {
|
|
15738
|
-
var V =
|
|
15738
|
+
var V = In(C), Z = W("bpmn:Gateway")(F, C);
|
|
15739
15739
|
D(F, C.width, C.height, C.height * 0.2, {
|
|
15740
15740
|
strokeWidth: 1,
|
|
15741
15741
|
fill: "none",
|
|
@@ -15793,7 +15793,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15793
15793
|
var V = st(C, u), Z = Ee(C, c), fe = L(F, C.waypoints, {
|
|
15794
15794
|
markerEnd: A("sequenceflow-end", V, Z),
|
|
15795
15795
|
stroke: Ee(C, c)
|
|
15796
|
-
}), X =
|
|
15796
|
+
}), X = In(C), ee;
|
|
15797
15797
|
return C.source && (ee = C.source.businessObject, X.conditionExpression && ee.$instanceOf("bpmn:Activity") && Se(fe, {
|
|
15798
15798
|
markerStart: A("conditional-flow-marker", V, Z)
|
|
15799
15799
|
}), ee.default && (ee.$instanceOf("bpmn:Gateway") || ee.$instanceOf("bpmn:Activity")) && ee.default === X && Se(fe, {
|
|
@@ -15801,7 +15801,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15801
15801
|
})), fe;
|
|
15802
15802
|
},
|
|
15803
15803
|
"bpmn:Association": function(F, C, V) {
|
|
15804
|
-
var Z =
|
|
15804
|
+
var Z = In(C), fe = st(C, u), X = Ee(C, c);
|
|
15805
15805
|
return V = {
|
|
15806
15806
|
strokeDasharray: "0, 5",
|
|
15807
15807
|
stroke: Ee(C, c),
|
|
@@ -15810,18 +15810,18 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15810
15810
|
},
|
|
15811
15811
|
"bpmn:DataInputAssociation": function(F, C) {
|
|
15812
15812
|
var V = st(C, u), Z = Ee(C, c);
|
|
15813
|
-
return
|
|
15813
|
+
return W("bpmn:Association")(F, C, {
|
|
15814
15814
|
markerEnd: A("association-end", V, Z)
|
|
15815
15815
|
});
|
|
15816
15816
|
},
|
|
15817
15817
|
"bpmn:DataOutputAssociation": function(F, C) {
|
|
15818
15818
|
var V = st(C, u), Z = Ee(C, c);
|
|
15819
|
-
return
|
|
15819
|
+
return W("bpmn:Association")(F, C, {
|
|
15820
15820
|
markerEnd: A("association-end", V, Z)
|
|
15821
15821
|
});
|
|
15822
15822
|
},
|
|
15823
15823
|
"bpmn:MessageFlow": function(F, C) {
|
|
15824
|
-
var V =
|
|
15824
|
+
var V = In(C), Z = ct(C), fe = st(C, u), X = Ee(C, c), ee = L(F, C.waypoints, {
|
|
15825
15825
|
markerEnd: A("messageflow-end", fe, X),
|
|
15826
15826
|
markerStart: A("messageflow-start", fe, X),
|
|
15827
15827
|
strokeDasharray: "10, 11",
|
|
@@ -15861,16 +15861,16 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15861
15861
|
fill: st(C, u),
|
|
15862
15862
|
fillOpacity: Qa,
|
|
15863
15863
|
stroke: Ee(C, c)
|
|
15864
|
-
}), fe =
|
|
15864
|
+
}), fe = In(C);
|
|
15865
15865
|
return SP(fe) && De(F, C), Z;
|
|
15866
15866
|
},
|
|
15867
15867
|
"bpmn:DataObjectReference": Q("bpmn:DataObject"),
|
|
15868
15868
|
"bpmn:DataInput": function(F, C) {
|
|
15869
|
-
var V = r.getRawPath("DATA_ARROW"), Z =
|
|
15869
|
+
var V = r.getRawPath("DATA_ARROW"), Z = W("bpmn:DataObject")(F, C);
|
|
15870
15870
|
return H(F, V, { strokeWidth: 1 }), Z;
|
|
15871
15871
|
},
|
|
15872
15872
|
"bpmn:DataOutput": function(F, C) {
|
|
15873
|
-
var V = r.getRawPath("DATA_ARROW"), Z =
|
|
15873
|
+
var V = r.getRawPath("DATA_ARROW"), Z = W("bpmn:DataObject")(F, C);
|
|
15874
15874
|
return H(F, V, {
|
|
15875
15875
|
strokeWidth: 1,
|
|
15876
15876
|
fill: vl
|
|
@@ -15895,7 +15895,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15895
15895
|
return Z;
|
|
15896
15896
|
},
|
|
15897
15897
|
"bpmn:BoundaryEvent": function(F, C) {
|
|
15898
|
-
var V =
|
|
15898
|
+
var V = In(C), Z = V.cancelActivity, fe = {
|
|
15899
15899
|
strokeWidth: 1.5,
|
|
15900
15900
|
fill: st(C, u),
|
|
15901
15901
|
stroke: Ee(C, c)
|
|
@@ -15907,7 +15907,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15907
15907
|
}, ee = {
|
|
15908
15908
|
...fe,
|
|
15909
15909
|
fill: "none"
|
|
15910
|
-
}, _e =
|
|
15910
|
+
}, _e = W("bpmn:Event")(F, C, X);
|
|
15911
15911
|
return D(F, C.width, C.height, xd, ee), J(C, F), _e;
|
|
15912
15912
|
},
|
|
15913
15913
|
"bpmn:Group": function(F, C) {
|
|
@@ -15939,7 +15939,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15939
15939
|
H(F, Z, {
|
|
15940
15940
|
stroke: Ee(C, c)
|
|
15941
15941
|
});
|
|
15942
|
-
var fe =
|
|
15942
|
+
var fe = In(C).text || "";
|
|
15943
15943
|
return oe(F, fe, {
|
|
15944
15944
|
box: C,
|
|
15945
15945
|
align: "left-top",
|
|
@@ -16074,7 +16074,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
16074
16074
|
}
|
|
16075
16075
|
};
|
|
16076
16076
|
function re(F, C, V) {
|
|
16077
|
-
var Z =
|
|
16077
|
+
var Z = In(C), fe = V && V.indexOf("SubProcessMarker") !== -1, X;
|
|
16078
16078
|
fe ? X = {
|
|
16079
16079
|
seq: -21,
|
|
16080
16080
|
parallel: -22,
|
|
@@ -16087,11 +16087,11 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
16087
16087
|
compensation: -27,
|
|
16088
16088
|
loop: 0,
|
|
16089
16089
|
adhoc: 10
|
|
16090
|
-
},
|
|
16091
|
-
|
|
16092
|
-
}), Z.isForCompensation &&
|
|
16090
|
+
}, z(V, function($e) {
|
|
16091
|
+
W($e)(F, C, X);
|
|
16092
|
+
}), Z.isForCompensation && W("CompensationMarker")(F, C, X), Z.$type === "bpmn:AdHocSubProcess" && W("AdhocMarker")(F, C, X);
|
|
16093
16093
|
var ee = Z.loopCharacteristics, _e = ee && ee.isSequential;
|
|
16094
|
-
ee && (_e === void 0 &&
|
|
16094
|
+
ee && (_e === void 0 && W("LoopMarker")(F, C, X), _e === !1 && W("ParallelMarker")(F, C, X), _e === !0 && W("SequentialMarker")(F, C, X));
|
|
16095
16095
|
}
|
|
16096
16096
|
function De(F, C) {
|
|
16097
16097
|
var V = (C.height - 18) / C.height, Z = r.getScaledPath("DATA_OBJECT_COLLECTION_PATH", {
|
|
@@ -16108,7 +16108,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
16108
16108
|
strokeWidth: 2
|
|
16109
16109
|
});
|
|
16110
16110
|
}
|
|
16111
|
-
this._drawPath = H, this._renderer =
|
|
16111
|
+
this._drawPath = H, this._renderer = W;
|
|
16112
16112
|
}
|
|
16113
16113
|
Re(Ea, Di);
|
|
16114
16114
|
Ea.$inject = [
|
|
@@ -16240,7 +16240,7 @@ Cp.prototype.layoutText = function(e, t) {
|
|
|
16240
16240
|
}, 0), w = s.top;
|
|
16241
16241
|
o.vertical === "middle" && (w += (n.height - b) / 2), w -= (u || d[0].height) / 4;
|
|
16242
16242
|
var A = Fe("text");
|
|
16243
|
-
Se(A, r),
|
|
16243
|
+
Se(A, r), z(d, function(D) {
|
|
16244
16244
|
var k;
|
|
16245
16245
|
switch (w += u || D.height, o.horizontal) {
|
|
16246
16246
|
case "left":
|
|
@@ -16819,23 +16819,23 @@ function lc(e) {
|
|
|
16819
16819
|
var e0 = 500;
|
|
16820
16820
|
function F_(e, t, n) {
|
|
16821
16821
|
var r = this;
|
|
16822
|
-
function o(j,
|
|
16823
|
-
if (!u(j,
|
|
16822
|
+
function o(j, W, Q) {
|
|
16823
|
+
if (!u(j, W)) {
|
|
16824
16824
|
var J, oe, pe;
|
|
16825
|
-
Q ? oe = t.getGraphics(Q) : (J =
|
|
16825
|
+
Q ? oe = t.getGraphics(Q) : (J = W.delegateTarget || W.target, J && (oe = J, Q = t.get(oe))), !(!oe || !Q) && (pe = e.fire(j, {
|
|
16826
16826
|
element: Q,
|
|
16827
16827
|
gfx: oe,
|
|
16828
|
-
originalEvent:
|
|
16829
|
-
}), pe === !1 && (
|
|
16828
|
+
originalEvent: W
|
|
16829
|
+
}), pe === !1 && (W.stopPropagation(), W.preventDefault()));
|
|
16830
16830
|
}
|
|
16831
16831
|
}
|
|
16832
16832
|
var s = {};
|
|
16833
16833
|
function l(j) {
|
|
16834
16834
|
return s[j];
|
|
16835
16835
|
}
|
|
16836
|
-
function u(j,
|
|
16836
|
+
function u(j, W) {
|
|
16837
16837
|
var Q = d[j] || Eo;
|
|
16838
|
-
return !Q(
|
|
16838
|
+
return !Q(W);
|
|
16839
16839
|
}
|
|
16840
16840
|
var c = {
|
|
16841
16841
|
click: "element.click",
|
|
@@ -16853,31 +16853,31 @@ function F_(e, t, n) {
|
|
|
16853
16853
|
"element.click": lc,
|
|
16854
16854
|
"element.dblclick": lc
|
|
16855
16855
|
};
|
|
16856
|
-
function v(j,
|
|
16856
|
+
function v(j, W, Q) {
|
|
16857
16857
|
var J = c[j];
|
|
16858
16858
|
if (!J)
|
|
16859
16859
|
throw new Error("unmapped DOM event name <" + j + ">");
|
|
16860
|
-
return o(J,
|
|
16860
|
+
return o(J, W, Q);
|
|
16861
16861
|
}
|
|
16862
16862
|
var m = "svg, .djs-element";
|
|
16863
|
-
function y(j,
|
|
16863
|
+
function y(j, W, Q, J) {
|
|
16864
16864
|
var oe = s[Q] = function(pe) {
|
|
16865
16865
|
o(Q, pe);
|
|
16866
16866
|
};
|
|
16867
|
-
J && (d[Q] = J), oe.$delegate = _r.bind(j, m,
|
|
16867
|
+
J && (d[Q] = J), oe.$delegate = _r.bind(j, m, W, oe);
|
|
16868
16868
|
}
|
|
16869
|
-
function b(j,
|
|
16869
|
+
function b(j, W, Q) {
|
|
16870
16870
|
var J = l(Q);
|
|
16871
|
-
J && _r.unbind(j,
|
|
16871
|
+
J && _r.unbind(j, W, J.$delegate);
|
|
16872
16872
|
}
|
|
16873
16873
|
function _(j) {
|
|
16874
|
-
|
|
16875
|
-
y(j, Q,
|
|
16874
|
+
z(c, function(W, Q) {
|
|
16875
|
+
y(j, Q, W);
|
|
16876
16876
|
});
|
|
16877
16877
|
}
|
|
16878
16878
|
function w(j) {
|
|
16879
|
-
|
|
16880
|
-
b(j, Q,
|
|
16879
|
+
z(c, function(W, Q) {
|
|
16880
|
+
b(j, Q, W);
|
|
16881
16881
|
});
|
|
16882
16882
|
}
|
|
16883
16883
|
e.on("canvas.destroy", function(j) {
|
|
@@ -16885,20 +16885,20 @@ function F_(e, t, n) {
|
|
|
16885
16885
|
}), e.on("canvas.init", function(j) {
|
|
16886
16886
|
_(j.svg);
|
|
16887
16887
|
}), e.on(["shape.added", "connection.added"], function(j) {
|
|
16888
|
-
var
|
|
16889
|
-
e.fire("interactionEvents.createHit", { element:
|
|
16888
|
+
var W = j.element, Q = j.gfx;
|
|
16889
|
+
e.fire("interactionEvents.createHit", { element: W, gfx: Q });
|
|
16890
16890
|
}), e.on([
|
|
16891
16891
|
"shape.changed",
|
|
16892
16892
|
"connection.changed"
|
|
16893
16893
|
], e0, function(j) {
|
|
16894
|
-
var
|
|
16895
|
-
e.fire("interactionEvents.updateHit", { element:
|
|
16894
|
+
var W = j.element, Q = j.gfx;
|
|
16895
|
+
e.fire("interactionEvents.updateHit", { element: W, gfx: Q });
|
|
16896
16896
|
}), e.on("interactionEvents.createHit", e0, function(j) {
|
|
16897
|
-
var
|
|
16898
|
-
r.createDefaultHit(
|
|
16897
|
+
var W = j.element, Q = j.gfx;
|
|
16898
|
+
r.createDefaultHit(W, Q);
|
|
16899
16899
|
}), e.on("interactionEvents.updateHit", function(j) {
|
|
16900
|
-
var
|
|
16901
|
-
r.updateDefaultHit(
|
|
16900
|
+
var W = j.element, Q = j.gfx;
|
|
16901
|
+
r.updateDefaultHit(W, Q);
|
|
16902
16902
|
});
|
|
16903
16903
|
var A = M("djs-hit djs-hit-stroke"), B = M("djs-hit djs-hit-click-stroke"), D = M("djs-hit djs-hit-all"), k = M("djs-hit djs-hit-no-move"), P = {
|
|
16904
16904
|
all: D,
|
|
@@ -16906,42 +16906,42 @@ function F_(e, t, n) {
|
|
|
16906
16906
|
stroke: A,
|
|
16907
16907
|
"no-move": k
|
|
16908
16908
|
};
|
|
16909
|
-
function M(j,
|
|
16910
|
-
return
|
|
16909
|
+
function M(j, W) {
|
|
16910
|
+
return W = Y({
|
|
16911
16911
|
stroke: "white",
|
|
16912
16912
|
strokeWidth: 15
|
|
16913
|
-
},
|
|
16913
|
+
}, W || {}), n.cls(j, ["no-fill", "no-border"], W);
|
|
16914
16914
|
}
|
|
16915
|
-
function L(j,
|
|
16916
|
-
var Q = P[
|
|
16915
|
+
function L(j, W) {
|
|
16916
|
+
var Q = P[W];
|
|
16917
16917
|
if (!Q)
|
|
16918
|
-
throw new Error("invalid hit type <" +
|
|
16918
|
+
throw new Error("invalid hit type <" + W + ">");
|
|
16919
16919
|
return Se(j, Q), j;
|
|
16920
16920
|
}
|
|
16921
|
-
function H(j,
|
|
16922
|
-
Ve(j,
|
|
16921
|
+
function H(j, W) {
|
|
16922
|
+
Ve(j, W);
|
|
16923
16923
|
}
|
|
16924
16924
|
this.removeHits = function(j) {
|
|
16925
|
-
var
|
|
16926
|
-
W
|
|
16927
|
-
}, this.createDefaultHit = function(j,
|
|
16925
|
+
var W = Vd(".djs-hit", j);
|
|
16926
|
+
z(W, zt);
|
|
16927
|
+
}, this.createDefaultHit = function(j, W) {
|
|
16928
16928
|
var Q = j.waypoints, J = j.isFrame, oe;
|
|
16929
|
-
return Q ? this.createWaypointsHit(
|
|
16929
|
+
return Q ? this.createWaypointsHit(W, Q) : (oe = J ? "stroke" : "all", this.createBoxHit(W, oe, {
|
|
16930
16930
|
width: j.width,
|
|
16931
16931
|
height: j.height
|
|
16932
16932
|
}));
|
|
16933
|
-
}, this.createWaypointsHit = function(j,
|
|
16934
|
-
var Q = vp(
|
|
16933
|
+
}, this.createWaypointsHit = function(j, W) {
|
|
16934
|
+
var Q = vp(W);
|
|
16935
16935
|
return L(Q, "stroke"), H(j, Q), Q;
|
|
16936
|
-
}, this.createBoxHit = function(j,
|
|
16936
|
+
}, this.createBoxHit = function(j, W, Q) {
|
|
16937
16937
|
Q = Y({
|
|
16938
16938
|
x: 0,
|
|
16939
16939
|
y: 0
|
|
16940
16940
|
}, Q);
|
|
16941
16941
|
var J = Fe("rect");
|
|
16942
|
-
return L(J,
|
|
16943
|
-
}, this.updateDefaultHit = function(j,
|
|
16944
|
-
var Q = bt(".djs-hit",
|
|
16942
|
+
return L(J, W), Se(J, Q), H(j, J), J;
|
|
16943
|
+
}, this.updateDefaultHit = function(j, W) {
|
|
16944
|
+
var Q = bt(".djs-hit", W);
|
|
16945
16945
|
if (Q)
|
|
16946
16946
|
return j.waypoints ? GE(Q, j.waypoints) : Se(Q, {
|
|
16947
16947
|
width: j.width,
|
|
@@ -17033,7 +17033,7 @@ bs.prototype.select = function(e, t) {
|
|
|
17033
17033
|
e = e.filter(function(l) {
|
|
17034
17034
|
var u = o.findRoot(l);
|
|
17035
17035
|
return s === u;
|
|
17036
|
-
}), t ?
|
|
17036
|
+
}), t ? z(e, function(l) {
|
|
17037
17037
|
n.indexOf(l) === -1 && n.push(l);
|
|
17038
17038
|
}) : this._selectedElements = n = e.slice(), this._eventBus.fire("selection.changed", { oldSelection: r, newSelection: n });
|
|
17039
17039
|
};
|
|
@@ -17060,9 +17060,9 @@ function nv(e, t, n) {
|
|
|
17060
17060
|
o(m, n0);
|
|
17061
17061
|
}
|
|
17062
17062
|
var d = l.oldSelection, v = l.newSelection;
|
|
17063
|
-
|
|
17063
|
+
z(d, function(m) {
|
|
17064
17064
|
v.indexOf(m) === -1 && u(m);
|
|
17065
|
-
}),
|
|
17065
|
+
}), z(v, function(m) {
|
|
17066
17066
|
d.indexOf(m) === -1 && c(m);
|
|
17067
17067
|
}), r._updateSelectionOutline(v);
|
|
17068
17068
|
}), t.on("element.changed", function(l) {
|
|
@@ -17186,7 +17186,7 @@ hn.prototype.remove = function(e) {
|
|
|
17186
17186
|
var t = this.get(e) || [];
|
|
17187
17187
|
et(t) || (t = [t]);
|
|
17188
17188
|
var n = this;
|
|
17189
|
-
|
|
17189
|
+
z(t, function(r) {
|
|
17190
17190
|
var o = n._getOverlayContainer(r.element, !0);
|
|
17191
17191
|
if (r && (ti(r.html), ti(r.htmlContainer), delete r.htmlContainer, delete r.element, delete n._overlays[r.id]), o) {
|
|
17192
17192
|
var s = o.overlays.indexOf(r);
|
|
@@ -17269,7 +17269,7 @@ hn.prototype._updateOverlayScale = function(e, t) {
|
|
|
17269
17269
|
};
|
|
17270
17270
|
hn.prototype._updateOverlaysVisibilty = function(e) {
|
|
17271
17271
|
var t = this;
|
|
17272
|
-
|
|
17272
|
+
z(this._overlays, function(n) {
|
|
17273
17273
|
t._updateOverlayVisibilty(n, e);
|
|
17274
17274
|
});
|
|
17275
17275
|
};
|
|
@@ -17284,7 +17284,7 @@ hn.prototype._init = function() {
|
|
|
17284
17284
|
n(r.viewbox);
|
|
17285
17285
|
}), e.on(["shape.remove", "connection.remove"], function(r) {
|
|
17286
17286
|
var o = r.element, s = t.get({ element: o });
|
|
17287
|
-
|
|
17287
|
+
z(s, function(c) {
|
|
17288
17288
|
t.remove(c.id);
|
|
17289
17289
|
});
|
|
17290
17290
|
var l = t._getOverlayContainer(o);
|
|
@@ -17295,7 +17295,7 @@ hn.prototype._init = function() {
|
|
|
17295
17295
|
}
|
|
17296
17296
|
}), e.on("element.changed", hR, function(r) {
|
|
17297
17297
|
var o = r.element, s = t._getOverlayContainer(o, !0);
|
|
17298
|
-
s && (
|
|
17298
|
+
s && (z(s.overlays, function(l) {
|
|
17299
17299
|
t._updateOverlay(l);
|
|
17300
17300
|
}), t._updateOverlayContainer(s));
|
|
17301
17301
|
}), e.on("element.marker.update", function(r) {
|
|
@@ -17370,7 +17370,7 @@ ge.prototype.on = function(e, t, n, r, o, s) {
|
|
|
17370
17370
|
throw new Error("handlerFn must be a function");
|
|
17371
17371
|
et(e) || (e = [e]);
|
|
17372
17372
|
var l = this._eventBus;
|
|
17373
|
-
|
|
17373
|
+
z(e, function(u) {
|
|
17374
17374
|
var c = ["commandStack", u, t].filter(function(d) {
|
|
17375
17375
|
return d;
|
|
17376
17376
|
}).join(".");
|
|
@@ -17388,7 +17388,7 @@ var yR = [
|
|
|
17388
17388
|
"revert",
|
|
17389
17389
|
"reverted"
|
|
17390
17390
|
];
|
|
17391
|
-
|
|
17391
|
+
z(yR, function(e) {
|
|
17392
17392
|
ge.prototype[e] = function(t, n, r, o, s) {
|
|
17393
17393
|
(bn(t) || Ge(t)) && (s = o, o = r, r = n, n = t, t = null), this.on(t, e, n, r, o, s);
|
|
17394
17394
|
};
|
|
@@ -18211,7 +18211,7 @@ var rx = { exports: {} };
|
|
|
18211
18211
|
}
|
|
18212
18212
|
return !1;
|
|
18213
18213
|
}
|
|
18214
|
-
function
|
|
18214
|
+
function W(N, O) {
|
|
18215
18215
|
return N.indexOf(O) > -1;
|
|
18216
18216
|
}
|
|
18217
18217
|
function Q(N) {
|
|
@@ -18284,9 +18284,9 @@ var rx = { exports: {} };
|
|
|
18284
18284
|
};
|
|
18285
18285
|
function Pa(N) {
|
|
18286
18286
|
var O, U = N.options.inputClass;
|
|
18287
|
-
return U ? O = U : C ? O = Nt : V ? O = zi : F ? O = ks : O = Io, new O(N,
|
|
18287
|
+
return U ? O = U : C ? O = Nt : V ? O = zi : F ? O = ks : O = Io, new O(N, kn);
|
|
18288
18288
|
}
|
|
18289
|
-
function
|
|
18289
|
+
function kn(N, O, U) {
|
|
18290
18290
|
var te = U.pointers.length, he = U.changedPointers.length, Pe = O & $e && te - he === 0, it = O & (ae | me) && te - he === 0;
|
|
18291
18291
|
U.isFirst = !!Pe, U.isFinal = !!it, Pe && (N.session = {}), U.eventType = O, Ne(N, U), N.emit("hammer.input", U), N.recognize(U), N.session.prevInput = U;
|
|
18292
18292
|
}
|
|
@@ -18407,10 +18407,10 @@ var rx = { exports: {} };
|
|
|
18407
18407
|
4: X,
|
|
18408
18408
|
5: ee
|
|
18409
18409
|
// see https://twitter.com/jacobrossi/status/480596438489890816
|
|
18410
|
-
},
|
|
18411
|
-
t.MSPointerEvent && !t.PointerEvent && (
|
|
18410
|
+
}, Mn = "pointerdown", kt = "pointermove pointerup pointercancel";
|
|
18411
|
+
t.MSPointerEvent && !t.PointerEvent && (Mn = "MSPointerDown", kt = "MSPointerMove MSPointerUp MSPointerCancel");
|
|
18412
18412
|
function Nt() {
|
|
18413
|
-
this.evEl =
|
|
18413
|
+
this.evEl = Mn, this.evWin = kt, Dt.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
|
|
18414
18414
|
}
|
|
18415
18415
|
D(Nt, Dt, {
|
|
18416
18416
|
/**
|
|
@@ -18584,7 +18584,7 @@ var rx = { exports: {} };
|
|
|
18584
18584
|
O.preventDefault();
|
|
18585
18585
|
return;
|
|
18586
18586
|
}
|
|
18587
|
-
var te = this.actions, he =
|
|
18587
|
+
var te = this.actions, he = W(te, Zn) && !ci[Zn], Pe = W(te, Ho) && !ci[Ho], it = W(te, $o) && !ci[$o];
|
|
18588
18588
|
if (he) {
|
|
18589
18589
|
var Gt = N.pointers.length === 1, en = N.distance < 2, wn = N.deltaTime < 250;
|
|
18590
18590
|
if (Gt && en && wn)
|
|
@@ -18602,10 +18602,10 @@ var rx = { exports: {} };
|
|
|
18602
18602
|
}
|
|
18603
18603
|
};
|
|
18604
18604
|
function ji(N) {
|
|
18605
|
-
if (
|
|
18605
|
+
if (W(N, Zn))
|
|
18606
18606
|
return Zn;
|
|
18607
|
-
var O =
|
|
18608
|
-
return O && U ? Zn : O || U ? O ? $o : Ho :
|
|
18607
|
+
var O = W(N, $o), U = W(N, Ho);
|
|
18608
|
+
return O && U ? Zn : O || U ? O ? $o : Ho : W(N, Fo) ? Fo : Tu;
|
|
18609
18609
|
}
|
|
18610
18610
|
function Cf() {
|
|
18611
18611
|
if (!Cu)
|
|
@@ -18615,7 +18615,7 @@ var rx = { exports: {} };
|
|
|
18615
18615
|
N[U] = O ? t.CSS.supports("touch-action", U) : !0;
|
|
18616
18616
|
}), N;
|
|
18617
18617
|
}
|
|
18618
|
-
var vr = 1,
|
|
18618
|
+
var vr = 1, Nn = 2, pi = 4, gt = 8, Ae = gt, lr = 16, Jn = 32;
|
|
18619
18619
|
function Qt(N) {
|
|
18620
18620
|
this.options = w({}, this.defaults, N || {}), this.id = ce(), this.manager = null, this.options.enable = M(this.options.enable, !0), this.state = vr, this.simultaneous = {}, this.requireFail = [];
|
|
18621
18621
|
}
|
|
@@ -18735,7 +18735,7 @@ var rx = { exports: {} };
|
|
|
18735
18735
|
this.reset(), this.state = Jn;
|
|
18736
18736
|
return;
|
|
18737
18737
|
}
|
|
18738
|
-
this.state & (Ae | lr | Jn) && (this.state = vr), this.state = this.process(O), this.state & (
|
|
18738
|
+
this.state & (Ae | lr | Jn) && (this.state = vr), this.state = this.process(O), this.state & (Nn | pi | gt | lr) && this.tryEmit(O);
|
|
18739
18739
|
},
|
|
18740
18740
|
/**
|
|
18741
18741
|
* return the state of the recognizer
|
|
@@ -18763,7 +18763,7 @@ var rx = { exports: {} };
|
|
|
18763
18763
|
}
|
|
18764
18764
|
};
|
|
18765
18765
|
function dt(N) {
|
|
18766
|
-
return N & lr ? "cancel" : N & gt ? "end" : N & pi ? "move" : N &
|
|
18766
|
+
return N & lr ? "cancel" : N & gt ? "end" : N & pi ? "move" : N & Nn ? "start" : "";
|
|
18767
18767
|
}
|
|
18768
18768
|
function jr(N) {
|
|
18769
18769
|
return N == St ? "down" : N == Ue ? "up" : N == at ? "left" : N == Be ? "right" : "";
|
|
@@ -18804,8 +18804,8 @@ var rx = { exports: {} };
|
|
|
18804
18804
|
* @returns {*} State
|
|
18805
18805
|
*/
|
|
18806
18806
|
process: function(N) {
|
|
18807
|
-
var O = this.state, U = N.eventType, te = O & (
|
|
18808
|
-
return te && (U & me || !he) ? O | lr : te || he ? U & ae ? O | gt : O &
|
|
18807
|
+
var O = this.state, U = N.eventType, te = O & (Nn | pi), he = this.attrTest(N);
|
|
18808
|
+
return te && (U & me || !he) ? O | lr : te || he ? U & ae ? O | gt : O & Nn ? O | pi : Nn : Jn;
|
|
18809
18809
|
}
|
|
18810
18810
|
});
|
|
18811
18811
|
function de() {
|
|
@@ -18831,7 +18831,7 @@ var rx = { exports: {} };
|
|
|
18831
18831
|
return he & O.direction || (O.direction & It ? (he = Pe === 0 ? Ie : Pe < 0 ? at : Be, U = Pe != this.pX, te = Math.abs(N.deltaX)) : (he = it === 0 ? Ie : it < 0 ? Ue : St, U = it != this.pY, te = Math.abs(N.deltaY))), N.direction = he, U && te > O.threshold && he & O.direction;
|
|
18832
18832
|
},
|
|
18833
18833
|
attrTest: function(N) {
|
|
18834
|
-
return Hn.prototype.attrTest.call(this, N) && (this.state &
|
|
18834
|
+
return Hn.prototype.attrTest.call(this, N) && (this.state & Nn || !(this.state & Nn) && this.directionTest(N));
|
|
18835
18835
|
},
|
|
18836
18836
|
emit: function(N) {
|
|
18837
18837
|
this.pX = N.deltaX, this.pY = N.deltaY;
|
|
@@ -18856,7 +18856,7 @@ var rx = { exports: {} };
|
|
|
18856
18856
|
return [Zn];
|
|
18857
18857
|
},
|
|
18858
18858
|
attrTest: function(N) {
|
|
18859
|
-
return this._super.attrTest.call(this, N) && (Math.abs(N.scale - 1) > this.options.threshold || this.state &
|
|
18859
|
+
return this._super.attrTest.call(this, N) && (Math.abs(N.scale - 1) > this.options.threshold || this.state & Nn);
|
|
18860
18860
|
},
|
|
18861
18861
|
emit: function(N) {
|
|
18862
18862
|
if (N.scale !== 1) {
|
|
@@ -18921,7 +18921,7 @@ var rx = { exports: {} };
|
|
|
18921
18921
|
return [Zn];
|
|
18922
18922
|
},
|
|
18923
18923
|
attrTest: function(N) {
|
|
18924
|
-
return this._super.attrTest.call(this, N) && (Math.abs(N.rotation) > this.options.threshold || this.state &
|
|
18924
|
+
return this._super.attrTest.call(this, N) && (Math.abs(N.rotation) > this.options.threshold || this.state & Nn);
|
|
18925
18925
|
}
|
|
18926
18926
|
});
|
|
18927
18927
|
function Wi() {
|
|
@@ -18988,7 +18988,7 @@ var rx = { exports: {} };
|
|
|
18988
18988
|
if (Gt === 0)
|
|
18989
18989
|
return this.hasRequireFailures() ? (this._timer = m(function() {
|
|
18990
18990
|
this.state = Ae, this.tryEmit();
|
|
18991
|
-
}, O.interval, this),
|
|
18991
|
+
}, O.interval, this), Nn) : Ae;
|
|
18992
18992
|
}
|
|
18993
18993
|
return Jn;
|
|
18994
18994
|
},
|
|
@@ -19143,7 +19143,7 @@ var rx = { exports: {} };
|
|
|
19143
19143
|
for (var Pe = 0; Pe < te.length; )
|
|
19144
19144
|
U = te[Pe], O.stopped !== Au && // 1
|
|
19145
19145
|
(!he || U == he || // 2
|
|
19146
|
-
U.canRecognizeWith(he)) ? U.recognize(N) : U.reset(), !he && U.state & (
|
|
19146
|
+
U.canRecognizeWith(he)) ? U.recognize(N) : U.reset(), !he && U.state & (Nn | pi | gt) && (he = O.curRecognizer = U), Pe++;
|
|
19147
19147
|
}
|
|
19148
19148
|
},
|
|
19149
19149
|
/**
|
|
@@ -19256,7 +19256,7 @@ var rx = { exports: {} };
|
|
|
19256
19256
|
INPUT_END: ae,
|
|
19257
19257
|
INPUT_CANCEL: me,
|
|
19258
19258
|
STATE_POSSIBLE: vr,
|
|
19259
|
-
STATE_BEGAN:
|
|
19259
|
+
STATE_BEGAN: Nn,
|
|
19260
19260
|
STATE_CHANGED: pi,
|
|
19261
19261
|
STATE_ENDED: gt,
|
|
19262
19262
|
STATE_RECOGNIZED: Ae,
|
|
@@ -19320,13 +19320,13 @@ function sh(e) {
|
|
|
19320
19320
|
}
|
|
19321
19321
|
function Cd(e) {
|
|
19322
19322
|
function t(d) {
|
|
19323
|
-
|
|
19323
|
+
z(a0, function(v) {
|
|
19324
19324
|
We.bind(e, v, sh, !0);
|
|
19325
19325
|
});
|
|
19326
19326
|
}
|
|
19327
19327
|
function n(d) {
|
|
19328
19328
|
setTimeout(function() {
|
|
19329
|
-
|
|
19329
|
+
z(a0, function(v) {
|
|
19330
19330
|
We.unbind(e, v, sh, !0);
|
|
19331
19331
|
});
|
|
19332
19332
|
}, 500);
|
|
@@ -19510,7 +19510,7 @@ Es.prototype._alignmentPosition = function(e, t) {
|
|
|
19510
19510
|
else if (this._isType(e, ["right", "bottom"]))
|
|
19511
19511
|
v = Td(t), s[e] = v[r] + v[o];
|
|
19512
19512
|
else if (this._isType(e, ["center", "middle"])) {
|
|
19513
|
-
if (
|
|
19513
|
+
if (z(t, function(y) {
|
|
19514
19514
|
var b = y[r] + Math.round(y[o] / 2);
|
|
19515
19515
|
l[b] ? l[b].elements.push(y) : l[b] = {
|
|
19516
19516
|
elements: [y],
|
|
@@ -19581,10 +19581,10 @@ Yn.prototype.registerProvider = function(e, t) {
|
|
|
19581
19581
|
};
|
|
19582
19582
|
Yn.prototype.getEntries = function(e) {
|
|
19583
19583
|
var t = this._getProviders(), n = et(e) ? "getMultiElementContextPadEntries" : "getContextPadEntries", r = {};
|
|
19584
|
-
return
|
|
19584
|
+
return z(t, function(o) {
|
|
19585
19585
|
if (bn(o[n])) {
|
|
19586
19586
|
var s = o[n](e);
|
|
19587
|
-
bn(s) ? r = s(r) :
|
|
19587
|
+
bn(s) ? r = s(r) : z(s, function(l, u) {
|
|
19588
19588
|
r[u] = l;
|
|
19589
19589
|
});
|
|
19590
19590
|
}
|
|
@@ -19622,7 +19622,7 @@ Yn.prototype._getProviders = function() {
|
|
|
19622
19622
|
};
|
|
19623
19623
|
Yn.prototype._updateAndOpen = function(e) {
|
|
19624
19624
|
var t = this.getEntries(e), n = this.getPad(e), r = n.html, o;
|
|
19625
|
-
|
|
19625
|
+
z(t, function(s, l) {
|
|
19626
19626
|
var u = s.group || "default", c = wt(s.html || '<div class="entry" draggable="true"></div>'), d;
|
|
19627
19627
|
Bn(c, "data-action", l), d = bt("[data-group=" + Rl(u) + "]", r), d || (d = wt('<div class="group"></div>'), Bn(d, "data-group", u), r.appendChild(d)), d.appendChild(c), s.className && oD(c, s.className), s.title && Bn(c, "title", s.title), s.imageUrl && (o = wt("<img>"), Bn(o, "src", s.imageUrl), o.style.width = "100%", o.style.height = "100%", c.appendChild(o));
|
|
19628
19628
|
}), dn(r).add("open"), this._current = {
|
|
@@ -19832,7 +19832,7 @@ function h0(e) {
|
|
|
19832
19832
|
};
|
|
19833
19833
|
}
|
|
19834
19834
|
function vv(e, t, n, r, o, s, l, u, c, d) {
|
|
19835
|
-
var v, m, y, b, _, w, A, B, D, k, P, M, L, H, j,
|
|
19835
|
+
var v, m, y, b, _, w, A, B, D, k, P, M, L, H, j, W, Q, J = t.type;
|
|
19836
19836
|
if (t.constructor != null)
|
|
19837
19837
|
return null;
|
|
19838
19838
|
128 & n.__u && (c = !!(32 & n.__u), s = [u = t.__e = n.__e]), (v = Tt.__b) && v(t);
|
|
@@ -19862,7 +19862,7 @@ function vv(e, t, n, r, o, s, l, u, c, d) {
|
|
|
19862
19862
|
do
|
|
19863
19863
|
m.__d = !1, L && L(t), v = m.render(m.props, m.state, m.context), m.state = m.__s;
|
|
19864
19864
|
while (m.__d && ++H < 25);
|
|
19865
|
-
m.state = m.__s, m.getChildContext != null && (r = wi(wi({}, r), m.getChildContext())), D && !y && m.getSnapshotBeforeUpdate != null && (w = m.getSnapshotBeforeUpdate(b, _)),
|
|
19865
|
+
m.state = m.__s, m.getChildContext != null && (r = wi(wi({}, r), m.getChildContext())), D && !y && m.getSnapshotBeforeUpdate != null && (w = m.getSnapshotBeforeUpdate(b, _)), W = v, v != null && v.type === Ip && v.key == null && (W = mx(v.props.children)), u = dx(e, Op(W) ? W : [W], t, n, r, o, s, l, u, c, d), m.base = t.__e, t.__u &= -161, m.__h.length && l.push(m), A && (m.__E = m.__ = null);
|
|
19866
19866
|
} catch (oe) {
|
|
19867
19867
|
if (t.__v = null, c || s != null)
|
|
19868
19868
|
if (oe.then) {
|
|
@@ -20337,7 +20337,7 @@ function bD(e) {
|
|
|
20337
20337
|
return H(-1), J.preventDefault();
|
|
20338
20338
|
if (J.key === "ArrowDown" || J.key === "Tab")
|
|
20339
20339
|
return H(1), J.preventDefault();
|
|
20340
|
-
}, [n, t, P, H]),
|
|
20340
|
+
}, [n, t, P, H]), W = rs((J) => {
|
|
20341
20341
|
Hh(J.target, "input") && A(() => J.target.value);
|
|
20342
20342
|
}, [A]);
|
|
20343
20343
|
Rd(() => (m(), () => {
|
|
@@ -20347,7 +20347,7 @@ function bD(e) {
|
|
|
20347
20347
|
return ln`
|
|
20348
20348
|
<${S0}
|
|
20349
20349
|
onClose=${t}
|
|
20350
|
-
onKeyup=${
|
|
20350
|
+
onKeyup=${W}
|
|
20351
20351
|
onKeydown=${j}
|
|
20352
20352
|
className=${r}
|
|
20353
20353
|
position=${s}
|
|
@@ -20605,9 +20605,9 @@ Ot.prototype._getProviders = function(e) {
|
|
|
20605
20605
|
};
|
|
20606
20606
|
Ot.prototype._getEntries = function(e, t) {
|
|
20607
20607
|
var n = {};
|
|
20608
|
-
return
|
|
20608
|
+
return z(t, function(r) {
|
|
20609
20609
|
if (!r.getPopupMenuEntries) {
|
|
20610
|
-
|
|
20610
|
+
z(r.getEntries(e), function(s) {
|
|
20611
20611
|
var l = s.id;
|
|
20612
20612
|
if (!l)
|
|
20613
20613
|
throw new Error("every entry must have the id property set");
|
|
@@ -20616,18 +20616,18 @@ Ot.prototype._getEntries = function(e, t) {
|
|
|
20616
20616
|
return;
|
|
20617
20617
|
}
|
|
20618
20618
|
var o = r.getPopupMenuEntries(e);
|
|
20619
|
-
bn(o) ? n = o(n) :
|
|
20619
|
+
bn(o) ? n = o(n) : z(o, function(s, l) {
|
|
20620
20620
|
n[l] = s;
|
|
20621
20621
|
});
|
|
20622
20622
|
}), n;
|
|
20623
20623
|
};
|
|
20624
20624
|
Ot.prototype._getHeaderEntries = function(e, t) {
|
|
20625
20625
|
var n = {};
|
|
20626
|
-
return
|
|
20626
|
+
return z(t, function(r) {
|
|
20627
20627
|
if (!r.getPopupMenuHeaderEntries) {
|
|
20628
20628
|
if (!r.getHeaderEntries)
|
|
20629
20629
|
return;
|
|
20630
|
-
|
|
20630
|
+
z(r.getHeaderEntries(e), function(s) {
|
|
20631
20631
|
var l = s.id;
|
|
20632
20632
|
if (!l)
|
|
20633
20633
|
throw new Error("every entry must have the id property set");
|
|
@@ -20636,7 +20636,7 @@ Ot.prototype._getHeaderEntries = function(e, t) {
|
|
|
20636
20636
|
return;
|
|
20637
20637
|
}
|
|
20638
20638
|
var o = r.getPopupMenuHeaderEntries(e);
|
|
20639
|
-
bn(o) ? n = o(n) :
|
|
20639
|
+
bn(o) ? n = o(n) : z(o, function(s, l) {
|
|
20640
20640
|
n[l] = s;
|
|
20641
20641
|
});
|
|
20642
20642
|
}), n;
|
|
@@ -20749,7 +20749,7 @@ Kl.prototype._isAllowed = function(e) {
|
|
|
20749
20749
|
};
|
|
20750
20750
|
Kl.prototype._getEntries = function(e) {
|
|
20751
20751
|
var t = this._alignElements, n = this._translate, r = this._popupMenu, o = {};
|
|
20752
|
-
return
|
|
20752
|
+
return z(TD, function(s) {
|
|
20753
20753
|
o["align-elements-" + s] = {
|
|
20754
20754
|
group: "align",
|
|
20755
20755
|
title: n("Align elements " + s),
|
|
@@ -20841,7 +20841,7 @@ function DD(e, t, n) {
|
|
|
20841
20841
|
return ut(o, function(s) {
|
|
20842
20842
|
if (s === n)
|
|
20843
20843
|
return !1;
|
|
20844
|
-
var l =
|
|
20844
|
+
var l = Pn(s, r, PD);
|
|
20845
20845
|
return l === "intersect";
|
|
20846
20846
|
});
|
|
20847
20847
|
}
|
|
@@ -20968,7 +20968,7 @@ function FD(e, t) {
|
|
|
20968
20968
|
return R(v, "bpmn:SequenceFlow");
|
|
20969
20969
|
}
|
|
20970
20970
|
}), s = 30, l = 80, u = "left";
|
|
20971
|
-
R(e, "bpmn:BoundaryEvent") && (u =
|
|
20971
|
+
R(e, "bpmn:BoundaryEvent") && (u = Pn(e, e.host, -25), u.indexOf("top") !== -1 && (s *= -1));
|
|
20972
20972
|
var c = {
|
|
20973
20973
|
x: n.right + o + t.width / 2,
|
|
20974
20974
|
y: r.y + $D(u, l)
|
|
@@ -21036,7 +21036,7 @@ function Li(e, t, n, r) {
|
|
|
21036
21036
|
var v = ds(u, function(m) {
|
|
21037
21037
|
return m.parent.id;
|
|
21038
21038
|
});
|
|
21039
|
-
|
|
21039
|
+
z(v, function(m, y) {
|
|
21040
21040
|
et(d) && (m = m.filter(function(b) {
|
|
21041
21041
|
return ut(d, Lr({ id: b.id }));
|
|
21042
21042
|
})), o._expand(m, y);
|
|
@@ -21129,7 +21129,7 @@ zp.prototype.canResize = function(e, t) {
|
|
|
21129
21129
|
if (R(t.di, "bpmndi:BPMNPlane") || !R(t, "bpmn:Participant") && !R(t, "bpmn:Lane") && !R(t, "bpmn:SubProcess"))
|
|
21130
21130
|
return !1;
|
|
21131
21131
|
var n = !0;
|
|
21132
|
-
return
|
|
21132
|
+
return z(e, function(r) {
|
|
21133
21133
|
if (R(r, "bpmn:Lane") || r.labelTarget) {
|
|
21134
21134
|
n = !1;
|
|
21135
21135
|
return;
|
|
@@ -21230,8 +21230,8 @@ function Nx(e, t, n, r) {
|
|
|
21230
21230
|
P.length && n.select(P);
|
|
21231
21231
|
}
|
|
21232
21232
|
function d(k, P) {
|
|
21233
|
-
var M = s.payload, L = s.displacement, H = s.globalStart, j = fo(k),
|
|
21234
|
-
if (!s.active && (P || qD(
|
|
21233
|
+
var M = s.payload, L = s.displacement, H = s.globalStart, j = fo(k), W = Or(j, H), Q = s.localStart, J = l(j), oe = Or(J, Q);
|
|
21234
|
+
if (!s.active && (P || qD(W) > s.threshold)) {
|
|
21235
21235
|
if (Y(M, {
|
|
21236
21236
|
x: es(Q.x + L.x),
|
|
21237
21237
|
y: es(Q.y + L.y),
|
|
@@ -21286,12 +21286,12 @@ function Nx(e, t, n, r) {
|
|
|
21286
21286
|
}
|
|
21287
21287
|
function D(k, P, M, L) {
|
|
21288
21288
|
s && A(!1), typeof P == "string" && (L = M, M = P, P = null), L = Y({}, o, L || {});
|
|
21289
|
-
var H = L.data || {}, j,
|
|
21290
|
-
L.trapClick ? J = y : J = v, k ? (j = ys(k) || k,
|
|
21289
|
+
var H = L.data || {}, j, W, Q, J, oe;
|
|
21290
|
+
L.trapClick ? J = y : J = v, k ? (j = ys(k) || k, W = fo(k), wd(k), j.type === "dragstart" && ia(j)) : (j = null, W = { x: 0, y: 0 }), Q = l(W), P || (P = Q), oe = YD(j), s = Y({
|
|
21291
21291
|
prefix: M,
|
|
21292
21292
|
data: H,
|
|
21293
21293
|
payload: {},
|
|
21294
|
-
globalStart:
|
|
21294
|
+
globalStart: W,
|
|
21295
21295
|
displacement: Or(P, Q),
|
|
21296
21296
|
localStart: Q,
|
|
21297
21297
|
isTouch: oe
|
|
@@ -21548,15 +21548,15 @@ function uk(e, t) {
|
|
|
21548
21548
|
}
|
|
21549
21549
|
function Hx(e, t, n, r, o) {
|
|
21550
21550
|
function s(k, P, M) {
|
|
21551
|
-
var L = k.index, H = k.point, j,
|
|
21552
|
-
return L <= 0 || k.bendpoint ? !1 : (j = P[L - 1],
|
|
21551
|
+
var L = k.index, H = k.point, j, W, Q, J, oe, pe;
|
|
21552
|
+
return L <= 0 || k.bendpoint ? !1 : (j = P[L - 1], W = P[L], Q = Xd(j, W), J = _i(j, W), oe = Math.abs(H.x - Q.x), pe = Math.abs(H.y - Q.y), J && oe <= M && pe <= M);
|
|
21553
21553
|
}
|
|
21554
21554
|
function l(k, P) {
|
|
21555
|
-
var M = k.waypoints, L, H, j,
|
|
21555
|
+
var M = k.waypoints, L, H, j, W;
|
|
21556
21556
|
return P.index <= 0 || P.bendpoint || (L = {
|
|
21557
21557
|
start: M[P.index - 1],
|
|
21558
21558
|
end: M[P.index]
|
|
21559
|
-
}, H = _i(L.start, L.end), !H) ? null : (H === "h" ? j = L.end.x - L.start.x : j = L.end.y - L.start.y,
|
|
21559
|
+
}, H = _i(L.start, L.end), !H) ? null : (H === "h" ? j = L.end.x - L.start.x : j = L.end.y - L.start.y, W = vh(j) / 2, W);
|
|
21560
21560
|
}
|
|
21561
21561
|
function u(k, P) {
|
|
21562
21562
|
var M = P.waypoints, L = dh(t, M, k), H;
|
|
@@ -21585,16 +21585,16 @@ function Hx(e, t, n, r, o) {
|
|
|
21585
21585
|
}), hh(k, "floating");
|
|
21586
21586
|
}
|
|
21587
21587
|
function y(k, P) {
|
|
21588
|
-
for (var M = P.waypoints, L, H, j,
|
|
21589
|
-
L = M[
|
|
21588
|
+
for (var M = P.waypoints, L, H, j, W = 1; W < M.length; W++)
|
|
21589
|
+
L = M[W - 1], H = M[W], _i(L, H) && (j = $x(k, L, H), Se(j, { "data-segment-idx": W }), c(j, "mousemove", P));
|
|
21590
21590
|
}
|
|
21591
21591
|
function b(k) {
|
|
21592
|
-
|
|
21592
|
+
z(Vd("." + Bx, k), function(P) {
|
|
21593
21593
|
zt(P);
|
|
21594
21594
|
});
|
|
21595
21595
|
}
|
|
21596
21596
|
function _(k) {
|
|
21597
|
-
|
|
21597
|
+
z(Vd("." + Fx, k), function(P) {
|
|
21598
21598
|
zt(P);
|
|
21599
21599
|
});
|
|
21600
21600
|
}
|
|
@@ -21611,10 +21611,10 @@ function Hx(e, t, n, r, o) {
|
|
|
21611
21611
|
M && tr(M, L.x, L.y);
|
|
21612
21612
|
}
|
|
21613
21613
|
function D(k, P, M) {
|
|
21614
|
-
var L = v(P.index, k), H = M[P.index - 1], j = M[P.index],
|
|
21614
|
+
var L = v(P.index, k), H = M[P.index - 1], j = M[P.index], W = P.point, Q = Xd(H, j), J = _i(H, j), oe, pe;
|
|
21615
21615
|
L && (oe = ck(L), pe = {
|
|
21616
|
-
x:
|
|
21617
|
-
y:
|
|
21616
|
+
x: W.x - Q.x,
|
|
21617
|
+
y: W.y - Q.y
|
|
21618
21618
|
}, J === "v" && (pe = {
|
|
21619
21619
|
x: pe.y,
|
|
21620
21620
|
y: pe.x
|
|
@@ -21866,8 +21866,8 @@ function Wx(e, t, n, r, o, s) {
|
|
|
21866
21866
|
}), t.on("connectionSegment.move.move", function(m) {
|
|
21867
21867
|
var y = m.context, b = y.connection, _ = y.segmentStartIndex, w = y.segmentEndIndex, A = y.segmentStart, B = y.segmentEnd, D = y.axis, k = y.originalWaypoints.slice(), P = I0(A, D, m["d" + D]), M = I0(B, D, m["d" + D]), L = k.length, H = 0;
|
|
21868
21868
|
k[_] = P, k[w] = M;
|
|
21869
|
-
var j,
|
|
21870
|
-
_ < 2 && (j =
|
|
21869
|
+
var j, W;
|
|
21870
|
+
_ < 2 && (j = Pn(b.source, P), _ === 1 ? j === "intersect" && (k.shift(), k[0] = P, H--) : j !== "intersect" && (k.unshift(A), H++)), w > L - 3 && (W = Pn(b.target, M), w === L - 2 ? W === "intersect" && (k.pop(), k[k.length - 1] = M) : W !== "intersect" && k.push(B)), y.newWaypoints = b.waypoints = u(b, k), d(y, H, m), y.newSegmentStartIndex = _ + H, c(m);
|
|
21871
21871
|
}), t.on("connectionSegment.move.hover", function(m) {
|
|
21872
21872
|
m.context.hover = m.hover, n.addMarker(m.hover, L0);
|
|
21873
21873
|
}), t.on([
|
|
@@ -21988,7 +21988,7 @@ function Kx(e) {
|
|
|
21988
21988
|
y,
|
|
21989
21989
|
d[b + 1]
|
|
21990
21990
|
];
|
|
21991
|
-
return m < 2 && w.unshift(n(c.source, s)), b > d.length - 3 && w.unshift(n(c.target, s)), l.snapPoints = u = { horizontal: [], vertical: [] },
|
|
21991
|
+
return m < 2 && w.unshift(n(c.source, s)), b > d.length - 3 && w.unshift(n(c.target, s)), l.snapPoints = u = { horizontal: [], vertical: [] }, z(w, function(A) {
|
|
21992
21992
|
A && (A = A.original || A, _ === "y" && u.horizontal.push(A.y), _ === "x" && u.vertical.push(A.x));
|
|
21993
21993
|
}), u;
|
|
21994
21994
|
}
|
|
@@ -22010,7 +22010,7 @@ function Kx(e) {
|
|
|
22010
22010
|
if (l)
|
|
22011
22011
|
return l;
|
|
22012
22012
|
var d = [u[c - 1], u[c + 1]];
|
|
22013
|
-
return s.snapPoints = l = { horizontal: [], vertical: [] },
|
|
22013
|
+
return s.snapPoints = l = { horizontal: [], vertical: [] }, z(d, function(v) {
|
|
22014
22014
|
v && (v = v.original || v, l.horizontal.push(v.y), l.vertical.push(v.x));
|
|
22015
22015
|
}), l;
|
|
22016
22016
|
}
|
|
@@ -22498,7 +22498,7 @@ function xa(e, t, n, r) {
|
|
|
22498
22498
|
this._elementRegistry = e, this._canvas = n, this._styles = r, this._clonedMarkers = {};
|
|
22499
22499
|
var o = this;
|
|
22500
22500
|
t.on("drag.cleanup", function() {
|
|
22501
|
-
|
|
22501
|
+
z(o._clonedMarkers, function(s) {
|
|
22502
22502
|
zt(s);
|
|
22503
22503
|
}), o._clonedMarkers = {};
|
|
22504
22504
|
});
|
|
@@ -22673,13 +22673,13 @@ function Zx(e, t, n, r, o) {
|
|
|
22673
22673
|
elements: d,
|
|
22674
22674
|
hints: {},
|
|
22675
22675
|
shape: m
|
|
22676
|
-
}, v || {}),
|
|
22676
|
+
}, v || {}), z(d, function(_) {
|
|
22677
22677
|
Ge(_.x) || (_.x = 0), Ge(_.y) || (_.y = 0);
|
|
22678
22678
|
});
|
|
22679
22679
|
var y = Qe(d, function(_) {
|
|
22680
22680
|
return !_.hidden;
|
|
22681
22681
|
}), b = jt(y);
|
|
22682
|
-
|
|
22682
|
+
z(d, function(_) {
|
|
22683
22683
|
ml(_) && (_.waypoints = pn(_.waypoints, function(w) {
|
|
22684
22684
|
return {
|
|
22685
22685
|
x: w.x - b.x - b.width / 2,
|
|
@@ -22829,7 +22829,7 @@ function zr(e, t, n, r, o, s, l, u) {
|
|
|
22829
22829
|
var y = ut(m, function(b) {
|
|
22830
22830
|
return b === v.parent;
|
|
22831
22831
|
});
|
|
22832
|
-
y && (d.parent = v.parent.id), Hk(v) && (d.priority = 2, d.host = v.host.id), Wp(v) && (d.priority = 3, d.source = v.source.id, d.target = v.target.id, d.waypoints = zk(v)), Up(v) && (d.priority = 4, d.labelTarget = v.labelTarget.id),
|
|
22832
|
+
y && (d.parent = v.parent.id), Hk(v) && (d.priority = 2, d.host = v.host.id), Wp(v) && (d.priority = 3, d.source = v.source.id, d.target = v.target.id, d.waypoints = zk(v)), Up(v) && (d.priority = 4, d.labelTarget = v.labelTarget.id), z(["x", "y", "width", "height"], function(b) {
|
|
22833
22833
|
Ge(v[b]) && (d[b] = v[b]);
|
|
22834
22834
|
}), d.hidden = v.hidden, d.collapsed = v.collapsed;
|
|
22835
22835
|
}), o.on("copyPaste.pasteElements", function(c) {
|
|
@@ -22874,11 +22874,11 @@ zr.prototype.paste = function(e) {
|
|
|
22874
22874
|
}
|
|
22875
22875
|
};
|
|
22876
22876
|
zr.prototype._paste = function(e, t, n, r) {
|
|
22877
|
-
|
|
22877
|
+
z(e, function(s) {
|
|
22878
22878
|
Ge(s.x) || (s.x = 0), Ge(s.y) || (s.y = 0);
|
|
22879
22879
|
});
|
|
22880
22880
|
var o = jt(e);
|
|
22881
|
-
return
|
|
22881
|
+
return z(e, function(s) {
|
|
22882
22882
|
Wp(s) && (s.waypoints = pn(s.waypoints, function(l) {
|
|
22883
22883
|
return {
|
|
22884
22884
|
x: l.x - o.x - o.width / 2,
|
|
@@ -22892,8 +22892,8 @@ zr.prototype._paste = function(e, t, n, r) {
|
|
|
22892
22892
|
};
|
|
22893
22893
|
zr.prototype._createElements = function(e) {
|
|
22894
22894
|
var t = this, n = this._eventBus, r = {}, o = [];
|
|
22895
|
-
return
|
|
22896
|
-
s = Ir(s, "priority"),
|
|
22895
|
+
return z(e, function(s, l) {
|
|
22896
|
+
s = Ir(s, "priority"), z(s, function(u) {
|
|
22897
22897
|
var c = Y({}, Pi(u, ["priority"]));
|
|
22898
22898
|
r[u.parent] ? c.parent = r[u.parent] : delete c.parent, n.fire("copyPaste.pasteElement", {
|
|
22899
22899
|
cache: r,
|
|
@@ -22959,17 +22959,17 @@ zr.prototype.createTree = function(e) {
|
|
|
22959
22959
|
return ga(s, function(d, v, m) {
|
|
22960
22960
|
if (Up(d))
|
|
22961
22961
|
return;
|
|
22962
|
-
|
|
22962
|
+
z(d.labels, function(_) {
|
|
22963
22963
|
u(_, m);
|
|
22964
22964
|
});
|
|
22965
22965
|
function y(_) {
|
|
22966
|
-
_ && _.length &&
|
|
22967
|
-
|
|
22966
|
+
_ && _.length && z(_, function(w) {
|
|
22967
|
+
z(w.labels, function(A) {
|
|
22968
22968
|
u(A, m);
|
|
22969
22969
|
}), u(w, m);
|
|
22970
22970
|
});
|
|
22971
22971
|
}
|
|
22972
|
-
|
|
22972
|
+
z([d.attachers, d.incoming, d.outgoing], y), u(d, m);
|
|
22973
22973
|
var b = [];
|
|
22974
22974
|
return d.children && (b = d.children.slice()), n._eventBus.fire("copyPaste.createTree", {
|
|
22975
22975
|
element: d,
|
|
@@ -22987,7 +22987,7 @@ zr.prototype.createTree = function(e) {
|
|
|
22987
22987
|
return d.descriptor.priority;
|
|
22988
22988
|
}), e = pn(o, function(d) {
|
|
22989
22989
|
return d.element;
|
|
22990
|
-
}),
|
|
22990
|
+
}), z(o, function(d) {
|
|
22991
22991
|
var v = d.depth;
|
|
22992
22992
|
if (!n.hasRelations(d.element, e)) {
|
|
22993
22993
|
Z0(d.element, e);
|
|
@@ -23032,7 +23032,7 @@ const jk = {
|
|
|
23032
23032
|
copyPaste: ["type", zr]
|
|
23033
23033
|
};
|
|
23034
23034
|
function Nd(e, t, n) {
|
|
23035
|
-
et(n) || (n = [n]),
|
|
23035
|
+
et(n) || (n = [n]), z(n, function(r) {
|
|
23036
23036
|
Ai(e[r]) || (t[r] = e[r]);
|
|
23037
23037
|
});
|
|
23038
23038
|
}
|
|
@@ -23143,7 +23143,7 @@ Jl.prototype.copyElement = function(e, t, n, r) {
|
|
|
23143
23143
|
targetElement: t,
|
|
23144
23144
|
clone: r
|
|
23145
23145
|
});
|
|
23146
|
-
return s === !1 || (et(s) && (n = s),
|
|
23146
|
+
return s === !1 || (et(s) && (n = s), z(n, function(l) {
|
|
23147
23147
|
var u;
|
|
23148
23148
|
Zr(e, l) && (u = e.get(l));
|
|
23149
23149
|
var c = o.copyProperty(u, t, l, r);
|
|
@@ -23246,7 +23246,7 @@ const Gk = {
|
|
|
23246
23246
|
replace: ["type", Av]
|
|
23247
23247
|
};
|
|
23248
23248
|
function Vk(e, t, n) {
|
|
23249
|
-
et(n) || (n = [n]),
|
|
23249
|
+
et(n) || (n = [n]), z(n, function(r) {
|
|
23250
23250
|
Ai(e[r]) || (t[r] = e[r]);
|
|
23251
23251
|
});
|
|
23252
23252
|
}
|
|
@@ -24203,14 +24203,14 @@ Sr.prototype.getHeaderEntries = function(e) {
|
|
|
24203
24203
|
};
|
|
24204
24204
|
Sr.prototype._createEntries = function(e, t) {
|
|
24205
24205
|
var n = [], r = this;
|
|
24206
|
-
return
|
|
24206
|
+
return z(t, function(o) {
|
|
24207
24207
|
var s = r._createMenuEntry(o, e);
|
|
24208
24208
|
n.push(s);
|
|
24209
24209
|
}), n;
|
|
24210
24210
|
};
|
|
24211
24211
|
Sr.prototype._createSequenceFlowEntries = function(e, t) {
|
|
24212
24212
|
var n = Ce(e), r = [], o = this._modeling, s = this._moddle, l = this;
|
|
24213
|
-
return
|
|
24213
|
+
return z(t, function(u) {
|
|
24214
24214
|
switch (u.actionName) {
|
|
24215
24215
|
case "replace-with-default-flow":
|
|
24216
24216
|
n.sourceRef.default !== n && (R(n.sourceRef, "bpmn:ExclusiveGateway") || R(n.sourceRef, "bpmn:InclusiveGateway") || R(n.sourceRef, "bpmn:ComplexGateway") || R(n.sourceRef, "bpmn:Activity")) && r.push(l._createMenuEntry(u, e, function() {
|
|
@@ -24543,13 +24543,13 @@ Ql.prototype.getContextPadEntries = function(e) {
|
|
|
24543
24543
|
}
|
|
24544
24544
|
function w(k, P, M, L) {
|
|
24545
24545
|
typeof M != "string" && (L = M, M = d("Append {type}", { type: k.replace(/^bpmn:/, "") }));
|
|
24546
|
-
function H(
|
|
24546
|
+
function H(W, Q) {
|
|
24547
24547
|
var J = r.createShape(Y({ type: k }, L));
|
|
24548
|
-
s.start(
|
|
24548
|
+
s.start(W, J, {
|
|
24549
24549
|
source: Q
|
|
24550
24550
|
});
|
|
24551
24551
|
}
|
|
24552
|
-
var j = c ? function(
|
|
24552
|
+
var j = c ? function(W, Q) {
|
|
24553
24553
|
var J = r.createShape(Y({ type: k }, L));
|
|
24554
24554
|
c.append(Q, J);
|
|
24555
24555
|
} : H;
|
|
@@ -24753,7 +24753,7 @@ Ql.prototype.getContextPadEntries = function(e) {
|
|
|
24753
24753
|
};
|
|
24754
24754
|
function rb(e, t, n) {
|
|
24755
24755
|
var r = e.$instanceOf(t), o = !1, s = e.eventDefinitions || [];
|
|
24756
|
-
return
|
|
24756
|
+
return z(s, function(l) {
|
|
24757
24757
|
l.$type === n && (o = !0);
|
|
24758
24758
|
}), r && o;
|
|
24759
24759
|
}
|
|
@@ -24833,7 +24833,7 @@ Ut.prototype._toggleState = function(e) {
|
|
|
24833
24833
|
};
|
|
24834
24834
|
Ut.prototype._update = function() {
|
|
24835
24835
|
var e = bt(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
|
|
24836
|
-
dp(e),
|
|
24836
|
+
dp(e), z(t, function(n, r) {
|
|
24837
24837
|
var o = n.group || "default", s = bt("[data-group=" + Rl(o) + "]", e);
|
|
24838
24838
|
s || (s = wt('<div class="group"></div>'), Bn(s, "data-group", o), e.appendChild(s));
|
|
24839
24839
|
var l = n.html || (n.separator ? '<hr class="separator" />' : '<div class="entry" draggable="true"></div>'), u = wt(l);
|
|
@@ -24882,7 +24882,7 @@ Ut.prototype.isActiveTool = function(e) {
|
|
|
24882
24882
|
};
|
|
24883
24883
|
Ut.prototype.updateToolHighlight = function(e) {
|
|
24884
24884
|
var t, n;
|
|
24885
|
-
this._toolsContainer || (t = bt(".djs-palette-entries", this._container), this._toolsContainer = bt("[data-group=tools]", t)), n = this._toolsContainer,
|
|
24885
|
+
this._toolsContainer || (t = bt(".djs-palette-entries", this._container), this._toolsContainer = bt("[data-group=tools]", t)), n = this._toolsContainer, z(n.children, function(r) {
|
|
24886
24886
|
var o = r.getAttribute("data-action");
|
|
24887
24887
|
if (o) {
|
|
24888
24888
|
var s = dn(r);
|
|
@@ -24905,7 +24905,7 @@ function CM(e, t) {
|
|
|
24905
24905
|
}
|
|
24906
24906
|
function TM(e, t) {
|
|
24907
24907
|
var n = t.getPaletteEntries();
|
|
24908
|
-
return bn(n) ? n(e) : (
|
|
24908
|
+
return bn(n) ? n(e) : (z(n, function(r, o) {
|
|
24909
24909
|
e[o] = r;
|
|
24910
24910
|
}), e);
|
|
24911
24911
|
}
|
|
@@ -25824,7 +25824,7 @@ Bi.prototype.trigger = function(e, t) {
|
|
|
25824
25824
|
};
|
|
25825
25825
|
Bi.prototype._filterElements = function(e) {
|
|
25826
25826
|
var t = this._filters, n = this._axis, r = this._dimension, o = [].concat(e);
|
|
25827
|
-
return t.length ? (
|
|
25827
|
+
return t.length ? (z(t, function(s) {
|
|
25828
25828
|
o = s(o, n, r);
|
|
25829
25829
|
}), o) : e;
|
|
25830
25830
|
};
|
|
@@ -25833,7 +25833,7 @@ Bi.prototype._createGroups = function(e) {
|
|
|
25833
25833
|
if (!r)
|
|
25834
25834
|
throw new Error('must have a defined "axis" and "dimension"');
|
|
25835
25835
|
var s = Ir(e, r);
|
|
25836
|
-
return
|
|
25836
|
+
return z(s, function(l, u) {
|
|
25837
25837
|
var c = n._findRange(l, r, o), d, v = t[t.length - 1];
|
|
25838
25838
|
v && n._hasIntersection(v.range, c) ? t[t.length - 1].elements.push(l) : (d = { range: c, elements: [l] }, t.push(d));
|
|
25839
25839
|
}), t;
|
|
@@ -25986,7 +25986,7 @@ Cr.prototype.register = function(e, t) {
|
|
|
25986
25986
|
var n = this;
|
|
25987
25987
|
if (typeof e == "string")
|
|
25988
25988
|
return this._registerAction(e, t);
|
|
25989
|
-
|
|
25989
|
+
z(e, function(r, o) {
|
|
25990
25990
|
n._registerAction(o, r);
|
|
25991
25991
|
});
|
|
25992
25992
|
};
|
|
@@ -26626,7 +26626,7 @@ function So(e, t, n, r) {
|
|
|
26626
26626
|
var o = this;
|
|
26627
26627
|
e.on("selection.changed", function(s) {
|
|
26628
26628
|
var l = s.newSelection;
|
|
26629
|
-
o.removeResizers(), l.length === 1 &&
|
|
26629
|
+
o.removeResizers(), l.length === 1 && z(l, Zt(o.addResizer, o));
|
|
26630
26630
|
}), e.on("shape.changed", function(s) {
|
|
26631
26631
|
var l = s.element;
|
|
26632
26632
|
n.isSelected(l) && (o.removeResizers(), o.addResizer(l));
|
|
@@ -26663,7 +26663,7 @@ So.prototype.createResizer = function(e, t) {
|
|
|
26663
26663
|
};
|
|
26664
26664
|
So.prototype.addResizer = function(e) {
|
|
26665
26665
|
var t = this;
|
|
26666
|
-
NN(e) || !this._resize.canResize({ shape: e }) ||
|
|
26666
|
+
NN(e) || !this._resize.canResize({ shape: e }) || z(kN, function(n) {
|
|
26667
26667
|
t.createResizer(e, n);
|
|
26668
26668
|
});
|
|
26669
26669
|
};
|
|
@@ -27025,7 +27025,7 @@ Nv.$inject = [
|
|
|
27025
27025
|
"modeling"
|
|
27026
27026
|
];
|
|
27027
27027
|
function zN(e) {
|
|
27028
|
-
var t = e.host, n = qe(e), r =
|
|
27028
|
+
var t = e.host, n = qe(e), r = Pn(n, t), o;
|
|
27029
27029
|
r.indexOf("-") >= 0 ? o = r.split("-") : o = [r];
|
|
27030
27030
|
var s = Mv.filter(function(l) {
|
|
27031
27031
|
return o.indexOf(l) === -1;
|
|
@@ -27061,7 +27061,7 @@ function WN(e) {
|
|
|
27061
27061
|
}
|
|
27062
27062
|
}
|
|
27063
27063
|
function _w(e, t) {
|
|
27064
|
-
return
|
|
27064
|
+
return Pn(t, e, 5);
|
|
27065
27065
|
}
|
|
27066
27066
|
function UN(e) {
|
|
27067
27067
|
return Mv.indexOf(e) !== -1;
|
|
@@ -27089,7 +27089,7 @@ function Ov(e, t) {
|
|
|
27089
27089
|
var r = n.newParent, o = n.shape, s = Qe(o.incoming.concat(o.outgoing), function(l) {
|
|
27090
27090
|
return R(l, "bpmn:Association");
|
|
27091
27091
|
});
|
|
27092
|
-
|
|
27092
|
+
z(s, function(l) {
|
|
27093
27093
|
t.moveConnection(l, { x: 0, y: 0 }, r);
|
|
27094
27094
|
});
|
|
27095
27095
|
}, !0);
|
|
@@ -27153,7 +27153,7 @@ function Iv(e, t) {
|
|
|
27153
27153
|
R(o, "bpmn:EventBasedGateway") && R(s, "bpmn:ReceiveTask") && l.length > 0 && t.removeElements(l);
|
|
27154
27154
|
}), this.postExecute("connection.reconnect", function(r) {
|
|
27155
27155
|
var o = r.context.oldSource, s = r.context.newSource;
|
|
27156
|
-
R(o, "bpmn:Gateway") && R(s, "bpmn:EventBasedGateway") &&
|
|
27156
|
+
R(o, "bpmn:Gateway") && R(s, "bpmn:EventBasedGateway") && z(s.outgoing, function(l) {
|
|
27157
27157
|
var u = l.target, c = n(u);
|
|
27158
27158
|
R(u, "bpmn:ReceiveTask") && c.length > 0 && t.removeElements(c);
|
|
27159
27159
|
});
|
|
@@ -27985,7 +27985,7 @@ function gL(e, t, n) {
|
|
|
27985
27985
|
var r = Oe(t), o = Oe(n);
|
|
27986
27986
|
if (yL(r, o))
|
|
27987
27987
|
return null;
|
|
27988
|
-
var s =
|
|
27988
|
+
var s = Pn(t, e), l, u, c;
|
|
27989
27989
|
if (s === "top")
|
|
27990
27990
|
l = {
|
|
27991
27991
|
x: 0,
|
|
@@ -28011,7 +28011,7 @@ function gL(e, t, n) {
|
|
|
28011
28011
|
return u = {
|
|
28012
28012
|
x: e.x + l.x,
|
|
28013
28013
|
y: e.y + l.y
|
|
28014
|
-
}, c =
|
|
28014
|
+
}, c = Pn(n, u), c !== s ? null : l;
|
|
28015
28015
|
}
|
|
28016
28016
|
function yL(e, t) {
|
|
28017
28017
|
return bL(e, t) || EL(e, t);
|
|
@@ -28252,7 +28252,7 @@ function Dw(e, t) {
|
|
|
28252
28252
|
});
|
|
28253
28253
|
}
|
|
28254
28254
|
function AL(e, t) {
|
|
28255
|
-
return
|
|
28255
|
+
return Pn(t, e, 1) === "intersect";
|
|
28256
28256
|
}
|
|
28257
28257
|
function PL(e) {
|
|
28258
28258
|
return e.original || e;
|
|
@@ -28400,7 +28400,7 @@ function tm(e, t, n, r) {
|
|
|
28400
28400
|
}
|
|
28401
28401
|
this.postExecuted("elements.move", function(c) {
|
|
28402
28402
|
var d = c.closure, v = d.allConnections;
|
|
28403
|
-
|
|
28403
|
+
z(v, s);
|
|
28404
28404
|
}, !0), this.preExecute("connection.reconnect", l), this.postExecuted("element.updateProperties", function(c) {
|
|
28405
28405
|
var d = c.context, v = d.properties, m = d.element, y = m.businessObject, b;
|
|
28406
28406
|
v.default && (b = ut(
|
|
@@ -28425,7 +28425,7 @@ function af(e, t, n, r, o, s) {
|
|
|
28425
28425
|
v.length && this.replaceElements(d, v);
|
|
28426
28426
|
}, this), this.postExecuted(["elements.move"], 500, function(l) {
|
|
28427
28427
|
var u = l.context, c = u.newParent, d = u.newHost, v = [];
|
|
28428
|
-
|
|
28428
|
+
z(u.closure.topLevel, function(y) {
|
|
28429
28429
|
nr(y) ? v = v.concat(y.children) : v = v.concat(y);
|
|
28430
28430
|
}), v.length === 1 && d && (c = d);
|
|
28431
28431
|
var m = t.canReplace(v, c);
|
|
@@ -28441,7 +28441,7 @@ function af(e, t, n, r, o, s) {
|
|
|
28441
28441
|
Re(af, ge);
|
|
28442
28442
|
af.prototype.replaceElements = function(e, t) {
|
|
28443
28443
|
var n = this._elementRegistry, r = this._bpmnReplace, o = this._selection;
|
|
28444
|
-
|
|
28444
|
+
z(t, function(s) {
|
|
28445
28445
|
var l = {
|
|
28446
28446
|
type: s.newElementType
|
|
28447
28447
|
}, u = n.get(s.oldElementId), c = e.indexOf(u);
|
|
@@ -28596,7 +28596,7 @@ var UL = Math.max;
|
|
|
28596
28596
|
function Bw(e) {
|
|
28597
28597
|
e.on("spaceTool.getMinDimensions", function(t) {
|
|
28598
28598
|
var n = t.shapes, r = t.axis, o = t.start, s = {};
|
|
28599
|
-
return
|
|
28599
|
+
return z(n, function(l) {
|
|
28600
28600
|
var u = l.id;
|
|
28601
28601
|
R(l, "bpmn:Participant") && (GL(r) ? s[u] = Ll : s[u] = {
|
|
28602
28602
|
width: Ll.width,
|
|
@@ -28840,9 +28840,9 @@ function im(e, t) {
|
|
|
28840
28840
|
var o = Fl(r);
|
|
28841
28841
|
o.forEach(function(l) {
|
|
28842
28842
|
var u = l.incoming.slice(), c = l.outgoing.slice();
|
|
28843
|
-
|
|
28843
|
+
z(u, function(d) {
|
|
28844
28844
|
s(d, !0);
|
|
28845
|
-
}),
|
|
28845
|
+
}), z(c, function(d) {
|
|
28846
28846
|
s(d, !1);
|
|
28847
28847
|
});
|
|
28848
28848
|
});
|
|
@@ -29076,15 +29076,15 @@ const nO = {
|
|
|
29076
29076
|
updateFlowNodeRefsBehavior: ["type", lm]
|
|
29077
29077
|
};
|
|
29078
29078
|
function $w(e, t) {
|
|
29079
|
-
var n =
|
|
29079
|
+
var n = Pn(e, t, -15);
|
|
29080
29080
|
return n !== "intersect" ? n : null;
|
|
29081
29081
|
}
|
|
29082
|
-
function
|
|
29082
|
+
function Rn(e) {
|
|
29083
29083
|
ar.call(this, e);
|
|
29084
29084
|
}
|
|
29085
|
-
Re(
|
|
29086
|
-
|
|
29087
|
-
|
|
29085
|
+
Re(Rn, ar);
|
|
29086
|
+
Rn.$inject = ["eventBus"];
|
|
29087
|
+
Rn.prototype.init = function() {
|
|
29088
29088
|
this.addRule("connection.start", function(e) {
|
|
29089
29089
|
var t = e.source;
|
|
29090
29090
|
return rO(t);
|
|
@@ -29135,19 +29135,19 @@ Pn.prototype.init = function() {
|
|
|
29135
29135
|
return Xw(n, t);
|
|
29136
29136
|
});
|
|
29137
29137
|
};
|
|
29138
|
-
|
|
29139
|
-
|
|
29140
|
-
|
|
29141
|
-
|
|
29142
|
-
|
|
29143
|
-
|
|
29144
|
-
|
|
29145
|
-
|
|
29146
|
-
|
|
29147
|
-
|
|
29148
|
-
|
|
29149
|
-
|
|
29150
|
-
|
|
29138
|
+
Rn.prototype.canConnectMessageFlow = Yw;
|
|
29139
|
+
Rn.prototype.canConnectSequenceFlow = qw;
|
|
29140
|
+
Rn.prototype.canConnectDataAssociation = pm;
|
|
29141
|
+
Rn.prototype.canConnectAssociation = Kw;
|
|
29142
|
+
Rn.prototype.canMove = Gw;
|
|
29143
|
+
Rn.prototype.canAttach = xl;
|
|
29144
|
+
Rn.prototype.canReplace = Uw;
|
|
29145
|
+
Rn.prototype.canDrop = ps;
|
|
29146
|
+
Rn.prototype.canInsert = up;
|
|
29147
|
+
Rn.prototype.canCreate = Th;
|
|
29148
|
+
Rn.prototype.canConnect = jc;
|
|
29149
|
+
Rn.prototype.canResize = Vw;
|
|
29150
|
+
Rn.prototype.canCopy = Xw;
|
|
29151
29151
|
function rO(e) {
|
|
29152
29152
|
return wh(e) ? null : nt(e, [
|
|
29153
29153
|
"bpmn:FlowNode",
|
|
@@ -29314,7 +29314,7 @@ function Uw(e, t, n) {
|
|
|
29314
29314
|
var r = {
|
|
29315
29315
|
replacements: []
|
|
29316
29316
|
};
|
|
29317
|
-
return
|
|
29317
|
+
return z(e, function(o) {
|
|
29318
29318
|
nr(t) || R(o, "bpmn:StartEvent") && o.type !== "label" && ps(o, t) && (gP(o) || r.replacements.push({
|
|
29319
29319
|
oldElementId: o.id,
|
|
29320
29320
|
newElementType: "bpmn:StartEvent"
|
|
@@ -29392,14 +29392,14 @@ const EO = {
|
|
|
29392
29392
|
ai
|
|
29393
29393
|
],
|
|
29394
29394
|
__init__: ["bpmnRules"],
|
|
29395
|
-
bpmnRules: ["type",
|
|
29395
|
+
bpmnRules: ["type", Rn]
|
|
29396
29396
|
};
|
|
29397
29397
|
var _O = 2e3;
|
|
29398
29398
|
function Zw(e, t) {
|
|
29399
29399
|
e.on("saveXML.start", _O, n);
|
|
29400
29400
|
function n() {
|
|
29401
29401
|
var r = t.getRootElements();
|
|
29402
|
-
|
|
29402
|
+
z(r, function(o) {
|
|
29403
29403
|
var s = ct(o), l, u;
|
|
29404
29404
|
l = Fl([o], !1), l = Qe(l, function(c) {
|
|
29405
29405
|
return c !== o && !c.labelTarget;
|
|
@@ -29565,7 +29565,7 @@ Ca.prototype.bindEvents = function(e, t) {
|
|
|
29565
29565
|
return;
|
|
29566
29566
|
}
|
|
29567
29567
|
this.setActive(e);
|
|
29568
|
-
}, this),
|
|
29568
|
+
}, this), z(t, function(s) {
|
|
29569
29569
|
o.push(s + ".ended"), o.push(s + ".canceled");
|
|
29570
29570
|
}), n.on(o, SO, function(s) {
|
|
29571
29571
|
this._active && (CO(s) || this.setActive(null));
|
|
@@ -29599,9 +29599,9 @@ function TO(e, t) {
|
|
|
29599
29599
|
}
|
|
29600
29600
|
function AO(e, t) {
|
|
29601
29601
|
var n = [];
|
|
29602
|
-
return
|
|
29602
|
+
return z(e.concat(t), function(r) {
|
|
29603
29603
|
var o = r.incoming, s = r.outgoing;
|
|
29604
|
-
|
|
29604
|
+
z(o.concat(s), function(l) {
|
|
29605
29605
|
var u = l.source, c = l.target;
|
|
29606
29606
|
(dl(e, u) || dl(e, c) || dl(t, u) || dl(t, c)) && (dl(n, l) || n.push(l));
|
|
29607
29607
|
});
|
|
@@ -29751,7 +29751,7 @@ Tr.prototype.calculateAdjustments = function(e, t, n, r) {
|
|
|
29751
29751
|
function v(y) {
|
|
29752
29752
|
l.includes(y) || l.push(y);
|
|
29753
29753
|
}
|
|
29754
|
-
|
|
29754
|
+
z(e, function(y) {
|
|
29755
29755
|
if (!(!y.parent || Ph(y))) {
|
|
29756
29756
|
if (Ah(y)) {
|
|
29757
29757
|
c.push(y);
|
|
@@ -29771,17 +29771,17 @@ Tr.prototype.calculateAdjustments = function(e, t, n, r) {
|
|
|
29771
29771
|
return;
|
|
29772
29772
|
}
|
|
29773
29773
|
}
|
|
29774
|
-
}),
|
|
29774
|
+
}), z(s, function(y) {
|
|
29775
29775
|
var b = y.attachers;
|
|
29776
|
-
b &&
|
|
29776
|
+
b && z(b, function(_) {
|
|
29777
29777
|
d(_);
|
|
29778
29778
|
});
|
|
29779
29779
|
});
|
|
29780
29780
|
var m = s.concat(l);
|
|
29781
|
-
return
|
|
29781
|
+
return z(u, function(y) {
|
|
29782
29782
|
var b = y.host;
|
|
29783
29783
|
ca(m, b) && d(y);
|
|
29784
|
-
}), m = s.concat(l),
|
|
29784
|
+
}), m = s.concat(l), z(c, function(y) {
|
|
29785
29785
|
var b = y.source, _ = y.target, w = y.label;
|
|
29786
29786
|
ca(m, b) && ca(m, _) && w && d(w);
|
|
29787
29787
|
}), {
|
|
@@ -29818,7 +29818,7 @@ function kO(e, t, n, r, o) {
|
|
|
29818
29818
|
var s = e.movingShapes, l = e.resizingShapes;
|
|
29819
29819
|
if (l.length) {
|
|
29820
29820
|
var u = {}, c, d;
|
|
29821
|
-
return
|
|
29821
|
+
return z(l, function(v) {
|
|
29822
29822
|
var m = v.attachers, y = v.children, b = Oe(v), _ = Qe(y, function(Q) {
|
|
29823
29823
|
return !Ah(Q) && !Ph(Q) && !ca(s, Q) && !ca(l, Q);
|
|
29824
29824
|
}), w = Qe(y, function(Q) {
|
|
@@ -29827,8 +29827,8 @@ function kO(e, t, n, r, o) {
|
|
|
29827
29827
|
_.length && (B = Wb(Oe(jt(_))), A = r - b[to[n]] + B[to[n]], n === "n" ? u.bottom = d = Ge(d) ? Math.min(d, A) : A : n === "w" ? u.right = d = Ge(d) ? Math.min(d, A) : A : n === "s" ? u.top = c = Ge(c) ? Math.max(c, A) : A : n === "e" && (u.left = c = Ge(c) ? Math.max(c, A) : A)), w.length && (D = Wb(Oe(jt(w))), A = r - D[to[Ac[n]]] + b[to[Ac[n]]], n === "n" ? u.bottom = d = Ge(d) ? Math.min(d, A) : A : n === "w" ? u.right = d = Ge(d) ? Math.min(d, A) : A : n === "s" ? u.top = c = Ge(c) ? Math.max(c, A) : A : n === "e" && (u.left = c = Ge(c) ? Math.max(c, A) : A)), m && m.length && (m.forEach(function(Q) {
|
|
29828
29828
|
ca(s, Q) ? k.push(Q) : P.push(Q);
|
|
29829
29829
|
}), k.length && (M = Oe(jt(k.map(qe))), L = b[to[Ac[n]]] - (M[to[Ac[n]]] - r)), P.length && (H = Oe(jt(P.map(qe))), j = H[to[n]] - (b[to[n]] - r)), n === "n" ? (A = Math.min(L || 1 / 0, j || 1 / 0), u.bottom = d = Ge(d) ? Math.min(d, A) : A) : n === "w" ? (A = Math.min(L || 1 / 0, j || 1 / 0), u.right = d = Ge(d) ? Math.min(d, A) : A) : n === "s" ? (A = Math.max(L || -1 / 0, j || -1 / 0), u.top = c = Ge(c) ? Math.max(c, A) : A) : n === "e" && (A = Math.max(L || -1 / 0, j || -1 / 0), u.left = c = Ge(c) ? Math.max(c, A) : A));
|
|
29830
|
-
var
|
|
29831
|
-
|
|
29830
|
+
var W = o && o[v.id];
|
|
29831
|
+
W && (n === "n" ? (A = r + v[bi[t]] - W[bi[t]], u.bottom = d = Ge(d) ? Math.min(d, A) : A) : n === "w" ? (A = r + v[bi[t]] - W[bi[t]], u.right = d = Ge(d) ? Math.min(d, A) : A) : n === "s" ? (A = r - v[bi[t]] + W[bi[t]], u.top = c = Ge(c) ? Math.max(c, A) : A) : n === "e" && (A = r - v[bi[t]] + W[bi[t]], u.left = c = Ge(c) ? Math.max(c, A) : A));
|
|
29832
29832
|
}), u;
|
|
29833
29833
|
}
|
|
29834
29834
|
}
|
|
@@ -29847,7 +29847,7 @@ function Ph(e) {
|
|
|
29847
29847
|
var Fd = "djs-dragging", Gb = "djs-resizing", NO = 250, Rc = Math.max;
|
|
29848
29848
|
function Qw(e, t, n, r, o) {
|
|
29849
29849
|
function s(l, u) {
|
|
29850
|
-
|
|
29850
|
+
z(l, function(c) {
|
|
29851
29851
|
o.addDragger(c, u), n.addMarker(c, Fd);
|
|
29852
29852
|
});
|
|
29853
29853
|
}
|
|
@@ -29877,26 +29877,26 @@ function Qw(e, t, n, r, o) {
|
|
|
29877
29877
|
Se(b, r.cls("djs-drag-group", ["no-events"])), Ve(n.getActiveLayer(), b), s(v, b);
|
|
29878
29878
|
var _ = u.movingConnections = t.filter(function(P) {
|
|
29879
29879
|
var M = !1;
|
|
29880
|
-
|
|
29881
|
-
W
|
|
29880
|
+
z(v, function(W) {
|
|
29881
|
+
z(W.outgoing, function(Q) {
|
|
29882
29882
|
P === Q && (M = !0);
|
|
29883
29883
|
});
|
|
29884
29884
|
});
|
|
29885
29885
|
var L = !1;
|
|
29886
|
-
|
|
29887
|
-
W
|
|
29886
|
+
z(v, function(W) {
|
|
29887
|
+
z(W.incoming, function(Q) {
|
|
29888
29888
|
P === Q && (L = !0);
|
|
29889
29889
|
});
|
|
29890
29890
|
});
|
|
29891
29891
|
var H = !1;
|
|
29892
|
-
|
|
29893
|
-
W
|
|
29892
|
+
z(m, function(W) {
|
|
29893
|
+
z(W.outgoing, function(Q) {
|
|
29894
29894
|
P === Q && (H = !0);
|
|
29895
29895
|
});
|
|
29896
29896
|
});
|
|
29897
29897
|
var j = !1;
|
|
29898
|
-
return
|
|
29899
|
-
W
|
|
29898
|
+
return z(m, function(W) {
|
|
29899
|
+
z(W.incoming, function(Q) {
|
|
29900
29900
|
P === Q && (j = !0);
|
|
29901
29901
|
});
|
|
29902
29902
|
}), LO(P) && (M || H) && (L || j);
|
|
@@ -29907,7 +29907,7 @@ function Qw(e, t, n, r, o) {
|
|
|
29907
29907
|
var w = Fe("g");
|
|
29908
29908
|
Se(w, r.cls("djs-frame-group", ["no-events"])), Ve(n.getActiveLayer(), w);
|
|
29909
29909
|
var A = [];
|
|
29910
|
-
|
|
29910
|
+
z(m, function(P) {
|
|
29911
29911
|
var M = o.addFrame(P, w), L = M.getBBox();
|
|
29912
29912
|
A.push({
|
|
29913
29913
|
element: M,
|
|
@@ -29921,7 +29921,7 @@ function Qw(e, t, n, r, o) {
|
|
|
29921
29921
|
};
|
|
29922
29922
|
Se(c, { d: B[d] });
|
|
29923
29923
|
var D = { x: "y", y: "x" }, k = { x: l.dx, y: l.dy };
|
|
29924
|
-
k[D[u.axis]] = 0, tr(u.dragGroup, k.x, k.y),
|
|
29924
|
+
k[D[u.axis]] = 0, tr(u.dragGroup, k.x, k.y), z(u.frames, function(P) {
|
|
29925
29925
|
var M = P.element, L = P.initialBounds, H, j;
|
|
29926
29926
|
u.direction === "e" ? Se(M, {
|
|
29927
29927
|
width: Rc(L.width + k.x, 5)
|
|
@@ -29938,11 +29938,11 @@ function Qw(e, t, n, r, o) {
|
|
|
29938
29938
|
}
|
|
29939
29939
|
}), e.on("spaceTool.cleanup", function(l) {
|
|
29940
29940
|
var u = l.context, c = u.movingShapes, d = u.movingConnections, v = u.resizingShapes, m = u.line, y = u.dragGroup, b = u.frameGroup;
|
|
29941
|
-
|
|
29941
|
+
z(c, function(_) {
|
|
29942
29942
|
n.removeMarker(_, Fd);
|
|
29943
|
-
}),
|
|
29943
|
+
}), z(d, function(_) {
|
|
29944
29944
|
n.removeMarker(_, Fd);
|
|
29945
|
-
}), y && (zt(m), zt(y)),
|
|
29945
|
+
}), y && (zt(m), zt(y)), z(v, function(_) {
|
|
29946
29946
|
n.removeMarker(_, Gb);
|
|
29947
29947
|
}), b && zt(b);
|
|
29948
29948
|
});
|
|
@@ -30216,7 +30216,7 @@ qn.prototype._updateTooltip = function(e) {
|
|
|
30216
30216
|
$O(n, t.x, t.y);
|
|
30217
30217
|
};
|
|
30218
30218
|
qn.prototype._updateTooltipVisibilty = function(e) {
|
|
30219
|
-
|
|
30219
|
+
z(this._tooltips, function(t) {
|
|
30220
30220
|
var n = t.show, r = t.htmlContainer, o = !0;
|
|
30221
30221
|
n && ((n.minZoom > e.scale || n.maxZoom < e.scale) && (o = !1), dm(r, o));
|
|
30222
30222
|
});
|
|
@@ -30254,17 +30254,17 @@ function hm(e, t, n) {
|
|
|
30254
30254
|
s.shapes = Kb(l), s.validatedShapes = Kb(u);
|
|
30255
30255
|
}), r && t.on("shape.move.start", zO, function(o) {
|
|
30256
30256
|
var s = o.context, l = s.shapes, u = [];
|
|
30257
|
-
|
|
30258
|
-
|
|
30257
|
+
z(l, function(c) {
|
|
30258
|
+
z(c.labels, function(d) {
|
|
30259
30259
|
!d.hidden && s.shapes.indexOf(d) === -1 && u.push(d), c.labelTarget && u.push(c);
|
|
30260
30260
|
});
|
|
30261
|
-
}),
|
|
30261
|
+
}), z(u, function(c) {
|
|
30262
30262
|
r.makeDraggable(s, c, !0);
|
|
30263
30263
|
});
|
|
30264
30264
|
}), this.preExecuted("elements.move", Vb, function(o) {
|
|
30265
30265
|
var s = o.context, l = s.closure, u = l.enclosedElements, c = [];
|
|
30266
|
-
|
|
30267
|
-
|
|
30266
|
+
z(u, function(d) {
|
|
30267
|
+
z(d.labels, function(v) {
|
|
30268
30268
|
u[v.id] || c.push(v);
|
|
30269
30269
|
});
|
|
30270
30270
|
}), l.addAll(c);
|
|
@@ -30308,8 +30308,8 @@ function vm(e, t, n, r, o) {
|
|
|
30308
30308
|
u.shapes = UO(c), u.validatedShapes = GO(d);
|
|
30309
30309
|
}), s && t.on("shape.move.start", WO, function(l) {
|
|
30310
30310
|
var u = l.context, c = u.shapes, d = Rh(c);
|
|
30311
|
-
|
|
30312
|
-
s.makeDraggable(u, v, !0),
|
|
30311
|
+
z(d, function(v) {
|
|
30312
|
+
s.makeDraggable(u, v, !0), z(v.labels, function(m) {
|
|
30313
30313
|
s.makeDraggable(u, m, !0);
|
|
30314
30314
|
});
|
|
30315
30315
|
});
|
|
@@ -30326,7 +30326,7 @@ function vm(e, t, n, r, o) {
|
|
|
30326
30326
|
}
|
|
30327
30327
|
}), this.preExecuted("elements.move", Yb, function(l) {
|
|
30328
30328
|
var u = l.context, c = u.closure, d = u.shapes, v = Rh(d);
|
|
30329
|
-
|
|
30329
|
+
z(v, function(m) {
|
|
30330
30330
|
c.add(m, c.topLevel[m.host.id]);
|
|
30331
30331
|
});
|
|
30332
30332
|
}), this.postExecuted("elements.move", function(l) {
|
|
@@ -30334,21 +30334,21 @@ function vm(e, t, n, r, o) {
|
|
|
30334
30334
|
d && c.length !== 1 || (d ? v = c : v = Qe(c, function(m) {
|
|
30335
30335
|
var y = m.host;
|
|
30336
30336
|
return VO(m) && !KO(c, y);
|
|
30337
|
-
}),
|
|
30337
|
+
}), z(v, function(m) {
|
|
30338
30338
|
o.updateAttachment(m, d);
|
|
30339
30339
|
}));
|
|
30340
30340
|
}), this.postExecuted("elements.move", function(l) {
|
|
30341
30341
|
var u = l.context.shapes;
|
|
30342
|
-
|
|
30343
|
-
|
|
30344
|
-
|
|
30342
|
+
z(u, function(c) {
|
|
30343
|
+
z(c.attachers, function(d) {
|
|
30344
|
+
z(d.outgoing.slice(), function(v) {
|
|
30345
30345
|
var m = r.allowed("connection.reconnect", {
|
|
30346
30346
|
connection: v,
|
|
30347
30347
|
source: v.source,
|
|
30348
30348
|
target: v.target
|
|
30349
30349
|
});
|
|
30350
30350
|
m || o.removeConnection(v);
|
|
30351
|
-
}),
|
|
30351
|
+
}), z(d.incoming.slice(), function(v) {
|
|
30352
30352
|
var m = r.allowed("connection.reconnect", {
|
|
30353
30353
|
connection: v,
|
|
30354
30354
|
source: v.source,
|
|
@@ -30369,15 +30369,15 @@ function vm(e, t, n, r, o) {
|
|
|
30369
30369
|
shapes: [v]
|
|
30370
30370
|
});
|
|
30371
30371
|
m === "attach" ? o.updateAttachment(v, d) : o.removeShape(v);
|
|
30372
|
-
}), d.attachers.length &&
|
|
30372
|
+
}), d.attachers.length && z(d.attachers, function(v) {
|
|
30373
30373
|
var m = Nb(v, c, d);
|
|
30374
30374
|
o.moveShape(v, m, v.parent);
|
|
30375
30375
|
});
|
|
30376
30376
|
}), this.postExecute("shape.resize", function(l) {
|
|
30377
30377
|
var u = l.context, c = u.shape, d = u.oldBounds, v = u.newBounds, m = c.attachers, y = u.hints || {};
|
|
30378
|
-
y.attachSupport !== !1 &&
|
|
30378
|
+
y.attachSupport !== !1 && z(m, function(b) {
|
|
30379
30379
|
var _ = Nb(b, d, v);
|
|
30380
|
-
o.moveShape(b, _, b.parent),
|
|
30380
|
+
o.moveShape(b, _, b.parent), z(b.labels, function(w) {
|
|
30381
30381
|
o.moveShape(w, _, w.parent);
|
|
30382
30382
|
});
|
|
30383
30383
|
});
|
|
@@ -30537,7 +30537,7 @@ function sr(e, t, n, r) {
|
|
|
30537
30537
|
], br(u));
|
|
30538
30538
|
function c(b) {
|
|
30539
30539
|
var _ = b.context, w = _.oldRoot, A = w.children;
|
|
30540
|
-
|
|
30540
|
+
z(A, function(B) {
|
|
30541
30541
|
R(B, "bpmn:BaseElement") && o.updateParent(B);
|
|
30542
30542
|
});
|
|
30543
30543
|
}
|
|
@@ -30790,7 +30790,7 @@ To.prototype.createParticipantShape = function(e) {
|
|
|
30790
30790
|
return En(e) || (e = { isExpanded: e }), e = Y({ type: "bpmn:Participant" }, e || {}), e.isExpanded !== !1 && (e.processRef = this._bpmnFactory.create("bpmn:Process")), this.createShape(e);
|
|
30791
30791
|
};
|
|
30792
30792
|
function ZO(e, t, n) {
|
|
30793
|
-
return
|
|
30793
|
+
return z(n, function(r) {
|
|
30794
30794
|
t = n1(e, t, r);
|
|
30795
30795
|
}), t;
|
|
30796
30796
|
}
|
|
@@ -30811,7 +30811,7 @@ function cf(e, t) {
|
|
|
30811
30811
|
cf.$inject = ["modeling", "canvas"];
|
|
30812
30812
|
cf.prototype.preExecute = function(e) {
|
|
30813
30813
|
var t = this._modeling, n = e.elements, r = e.alignment;
|
|
30814
|
-
|
|
30814
|
+
z(n, function(o) {
|
|
30815
30815
|
var s = {
|
|
30816
30816
|
x: 0,
|
|
30817
30817
|
y: 0
|
|
@@ -30871,13 +30871,13 @@ mm.$inject = [
|
|
|
30871
30871
|
];
|
|
30872
30872
|
mm.prototype.preExecute = function(e) {
|
|
30873
30873
|
var t = e.elements, n = e.parent, r = e.parentIndex, o = e.position, s = e.hints, l = this._modeling;
|
|
30874
|
-
|
|
30874
|
+
z(t, function(m) {
|
|
30875
30875
|
Ge(m.x) || (m.x = 0), Ge(m.y) || (m.y = 0);
|
|
30876
30876
|
});
|
|
30877
30877
|
var u = Qe(t, function(m) {
|
|
30878
30878
|
return !m.hidden;
|
|
30879
30879
|
}), c = jt(u);
|
|
30880
|
-
|
|
30880
|
+
z(t, function(m) {
|
|
30881
30881
|
Xb(m) && (m.waypoints = pn(m.waypoints, function(y) {
|
|
30882
30882
|
return {
|
|
30883
30883
|
x: Dc(y.x - c.x - c.width / 2 + o.x),
|
|
@@ -30889,7 +30889,7 @@ mm.prototype.preExecute = function(e) {
|
|
|
30889
30889
|
});
|
|
30890
30890
|
});
|
|
30891
30891
|
var d = mp(t), v = {};
|
|
30892
|
-
|
|
30892
|
+
z(t, function(m) {
|
|
30893
30893
|
if (Xb(m)) {
|
|
30894
30894
|
v[m.id] = Ge(r) ? l.createConnection(
|
|
30895
30895
|
v[m.source.id],
|
|
@@ -30996,7 +30996,7 @@ gm.$inject = [
|
|
|
30996
30996
|
];
|
|
30997
30997
|
gm.prototype.postExecute = function(e) {
|
|
30998
30998
|
var t = this._modeling, n = this._elementRegistry, r = e.elements;
|
|
30999
|
-
|
|
30999
|
+
z(r, function(o) {
|
|
31000
31000
|
n.get(o.id) && (o.waypoints ? t.removeConnection(o) : t.removeShape(o));
|
|
31001
31001
|
});
|
|
31002
31002
|
};
|
|
@@ -31052,13 +31052,13 @@ df.prototype.preExecute = function(e) {
|
|
|
31052
31052
|
D[r] = A - l(B), D[r] && (D[Jb[r]] = 0, t.moveElements([B], D, B.parent));
|
|
31053
31053
|
}
|
|
31054
31054
|
var v = n[0], m = u(n), y = n[m], b, _, w = 0;
|
|
31055
|
-
|
|
31055
|
+
z(n, function(A, B) {
|
|
31056
31056
|
var D, k, P;
|
|
31057
31057
|
if (A.elements.length < 2) {
|
|
31058
31058
|
B && B !== n.length - 1 && (s(A, A.elements[0]), w += c(A.range));
|
|
31059
31059
|
return;
|
|
31060
31060
|
}
|
|
31061
|
-
D = Ir(A.elements, r), k = D[0], B === m && (k = D[u(D)]), P = l(k), A.range = null,
|
|
31061
|
+
D = Ir(A.elements, r), k = D[0], B === m && (k = D[u(D)]), P = l(k), A.range = null, z(D, function(M) {
|
|
31062
31062
|
if (d(P, M), A.range === null) {
|
|
31063
31063
|
A.range = {
|
|
31064
31064
|
min: M[r],
|
|
@@ -31068,9 +31068,9 @@ df.prototype.preExecute = function(e) {
|
|
|
31068
31068
|
}
|
|
31069
31069
|
s(A, M);
|
|
31070
31070
|
}), B && B !== n.length - 1 && (w += c(A.range));
|
|
31071
|
-
}), _ = Math.abs(y.range.min - v.range.max), b = Math.round((_ - w) / (n.length - 1)), !(b < n.length - 1) &&
|
|
31071
|
+
}), _ = Math.abs(y.range.min - v.range.max), b = Math.round((_ - w) / (n.length - 1)), !(b < n.length - 1) && z(n, function(A, B) {
|
|
31072
31072
|
var D = {}, k;
|
|
31073
|
-
A === v || A === y || (k = n[B - 1], A.range.max = 0,
|
|
31073
|
+
A === v || A === y || (k = n[B - 1], A.range.max = 0, z(A.elements, function(P, M) {
|
|
31074
31074
|
D[Jb[r]] = 0, D[r] = k.range.max - P[r] + b, A.range.min !== P[r] && (D[r] += P[r] - A.range.min), D[r] && t.moveElements([P], D, P.parent), A.range.max = Math.max(P[r] + P[o], M ? A.range.max : 0);
|
|
31075
31075
|
}));
|
|
31076
31076
|
});
|
|
@@ -31095,13 +31095,13 @@ function ym() {
|
|
|
31095
31095
|
}
|
|
31096
31096
|
ym.prototype.execute = function(e) {
|
|
31097
31097
|
var t = e.connection, n = e.delta, r = e.newParent || t.parent, o = e.newParentIndex, s = t.parent;
|
|
31098
|
-
return e.oldParent = s, e.oldParentIndex = Wt(s.children, t), Jt(r.children, t, o), t.parent = r,
|
|
31098
|
+
return e.oldParent = s, e.oldParentIndex = Wt(s.children, t), Jt(r.children, t, o), t.parent = r, z(t.waypoints, function(l) {
|
|
31099
31099
|
l.x += n.x, l.y += n.y, l.original && (l.original.x += n.x, l.original.y += n.y);
|
|
31100
31100
|
}), t;
|
|
31101
31101
|
};
|
|
31102
31102
|
ym.prototype.revert = function(e) {
|
|
31103
31103
|
var t = e.connection, n = t.parent, r = e.oldParent, o = e.oldParentIndex, s = e.delta;
|
|
31104
|
-
return Wt(n.children, t), Jt(r.children, t, o), t.parent = r,
|
|
31104
|
+
return Wt(n.children, t), Jt(r.children, t, o), t.parent = r, z(t.waypoints, function(l) {
|
|
31105
31105
|
l.x -= s.x, l.y -= s.y, l.original && (l.original.x -= s.x, l.original.y -= s.y);
|
|
31106
31106
|
}), t;
|
|
31107
31107
|
};
|
|
@@ -31123,12 +31123,12 @@ cu.prototype.moveRecursive = function(e, t, n) {
|
|
|
31123
31123
|
};
|
|
31124
31124
|
cu.prototype.moveClosure = function(e, t, n, r, o) {
|
|
31125
31125
|
var s = this._modeling, l = e.allShapes, u = e.allConnections, c = e.enclosedConnections, d = e.topLevel, v = !1;
|
|
31126
|
-
o && o.parent === n && (v = !0),
|
|
31126
|
+
o && o.parent === n && (v = !0), z(l, function(m) {
|
|
31127
31127
|
s.moveShape(m, t, d[m.id] && !v && n, {
|
|
31128
31128
|
recurse: !1,
|
|
31129
31129
|
layout: !1
|
|
31130
31130
|
});
|
|
31131
|
-
}),
|
|
31131
|
+
}), z(u, function(m) {
|
|
31132
31132
|
var y = !!l[m.source.id], b = !!l[m.target.id];
|
|
31133
31133
|
c[m.id] && y && b ? s.moveConnection(m, t, d[m.id] && !v && n) : s.layoutConnection(m, {
|
|
31134
31134
|
connectionStart: y && qv(m, m.source, t),
|
|
@@ -31170,11 +31170,11 @@ Ta.prototype.execute = function(e) {
|
|
|
31170
31170
|
};
|
|
31171
31171
|
Ta.prototype.postExecute = function(e) {
|
|
31172
31172
|
var t = e.shape, n = e.delta, r = e.hints, o = this._modeling;
|
|
31173
|
-
r.layout !== !1 && (
|
|
31173
|
+
r.layout !== !1 && (z(t.incoming, function(s) {
|
|
31174
31174
|
o.layoutConnection(s, {
|
|
31175
31175
|
connectionEnd: Xv(s, t, n)
|
|
31176
31176
|
});
|
|
31177
|
-
}),
|
|
31177
|
+
}), z(t.outgoing, function(s) {
|
|
31178
31178
|
o.layoutConnection(s, {
|
|
31179
31179
|
connectionStart: qv(s, t, n)
|
|
31180
31180
|
});
|
|
@@ -31242,7 +31242,7 @@ Fi.prototype.preExecute = function(e) {
|
|
|
31242
31242
|
var m;
|
|
31243
31243
|
l.moveChildren !== !1 && (m = o.children.slice(), n.moveElements(m, { x: 0, y: 0 }, u, l));
|
|
31244
31244
|
var y = o.incoming.slice(), b = o.outgoing.slice();
|
|
31245
|
-
|
|
31245
|
+
z(y, function(_) {
|
|
31246
31246
|
var w = _.source, A = c(w, u, _);
|
|
31247
31247
|
A && t.reconnectEnd(
|
|
31248
31248
|
_,
|
|
@@ -31250,7 +31250,7 @@ Fi.prototype.preExecute = function(e) {
|
|
|
31250
31250
|
rf(_, u, v),
|
|
31251
31251
|
l
|
|
31252
31252
|
);
|
|
31253
|
-
}),
|
|
31253
|
+
}), z(b, function(_) {
|
|
31254
31254
|
var w = _.target, A = c(u, w, _);
|
|
31255
31255
|
A && t.reconnectStart(
|
|
31256
31256
|
_,
|
|
@@ -31303,11 +31303,11 @@ fu.prototype.execute = function(e) {
|
|
|
31303
31303
|
};
|
|
31304
31304
|
fu.prototype.postExecute = function(e) {
|
|
31305
31305
|
var t = this._modeling, n = e.shape, r = e.oldBounds, o = e.hints || {};
|
|
31306
|
-
o.layout !== !1 && (
|
|
31306
|
+
o.layout !== !1 && (z(n.incoming, function(s) {
|
|
31307
31307
|
t.layoutConnection(s, {
|
|
31308
31308
|
connectionEnd: rf(s, n, r)
|
|
31309
31309
|
});
|
|
31310
|
-
}),
|
|
31310
|
+
}), z(n.outgoing, function(s) {
|
|
31311
31311
|
t.layoutConnection(s, {
|
|
31312
31312
|
connectionStart: nf(s, n, r)
|
|
31313
31313
|
});
|
|
@@ -31328,7 +31328,7 @@ function Po(e) {
|
|
|
31328
31328
|
Po.$inject = ["modeling"];
|
|
31329
31329
|
Po.prototype.preExecute = function(e) {
|
|
31330
31330
|
var t = e.delta, n = e.direction, r = e.movingShapes, o = e.resizingShapes, s = e.start, l = {};
|
|
31331
|
-
this.moveShapes(r, t),
|
|
31331
|
+
this.moveShapes(r, t), z(o, function(u) {
|
|
31332
31332
|
l[u.id] = oI(u);
|
|
31333
31333
|
}), this.resizeShapes(o, t, n), this.updateConnectionWaypoints(
|
|
31334
31334
|
AO(r, o),
|
|
@@ -31346,7 +31346,7 @@ Po.prototype.revert = function() {
|
|
|
31346
31346
|
};
|
|
31347
31347
|
Po.prototype.moveShapes = function(e, t) {
|
|
31348
31348
|
var n = this;
|
|
31349
|
-
|
|
31349
|
+
z(e, function(r) {
|
|
31350
31350
|
n._modeling.moveShape(r, t, null, {
|
|
31351
31351
|
autoResize: !1,
|
|
31352
31352
|
layout: !1,
|
|
@@ -31356,7 +31356,7 @@ Po.prototype.moveShapes = function(e, t) {
|
|
|
31356
31356
|
};
|
|
31357
31357
|
Po.prototype.resizeShapes = function(e, t, n) {
|
|
31358
31358
|
var r = this;
|
|
31359
|
-
|
|
31359
|
+
z(e, function(o) {
|
|
31360
31360
|
var s = PO(o, n, t);
|
|
31361
31361
|
r._modeling.resizeShape(o, s, null, {
|
|
31362
31362
|
attachSupport: !1,
|
|
@@ -31367,7 +31367,7 @@ Po.prototype.resizeShapes = function(e, t, n) {
|
|
|
31367
31367
|
};
|
|
31368
31368
|
Po.prototype.updateConnectionWaypoints = function(e, t, n, r, o, s, l) {
|
|
31369
31369
|
var u = this, c = o.concat(s);
|
|
31370
|
-
|
|
31370
|
+
z(e, function(d) {
|
|
31371
31371
|
var v = d.source, m = d.target, y = iI(d), b = r1(n), _ = {};
|
|
31372
31372
|
no(c, v) && no(c, m) ? (y = pn(y, function(w) {
|
|
31373
31373
|
return tE(w, r, n) && (w[b] = w[b] + t[b]), w.original && tE(w.original, r, n) && (w.original[b] = w.original[b] + t[b]), w;
|
|
@@ -31438,19 +31438,19 @@ mf.prototype.revert = function(e) {
|
|
|
31438
31438
|
};
|
|
31439
31439
|
function i1(e) {
|
|
31440
31440
|
var t = {};
|
|
31441
|
-
return
|
|
31441
|
+
return z(e, function(n) {
|
|
31442
31442
|
t[n.id] = n.hidden, n.children && (t = Y({}, t, i1(n.children)));
|
|
31443
31443
|
}), t;
|
|
31444
31444
|
}
|
|
31445
31445
|
function o1(e, t) {
|
|
31446
31446
|
var n = [];
|
|
31447
|
-
return
|
|
31447
|
+
return z(e, function(r) {
|
|
31448
31448
|
r.hidden = t, n = n.concat(r), r.children && (n = n.concat(o1(r.children, r.collapsed || t)));
|
|
31449
31449
|
}), n;
|
|
31450
31450
|
}
|
|
31451
31451
|
function a1(e, t) {
|
|
31452
31452
|
var n = [];
|
|
31453
|
-
return
|
|
31453
|
+
return z(e, function(r) {
|
|
31454
31454
|
r.hidden = t[r.id], n = n.concat(r), r.children && (n = n.concat(a1(r.children, t)));
|
|
31455
31455
|
}), n;
|
|
31456
31456
|
}
|
|
@@ -31519,7 +31519,7 @@ mt.prototype.getHandlers = function() {
|
|
|
31519
31519
|
};
|
|
31520
31520
|
};
|
|
31521
31521
|
mt.prototype.registerHandlers = function(e) {
|
|
31522
|
-
|
|
31522
|
+
z(this.getHandlers(), function(t, n) {
|
|
31523
31523
|
e.registerHandler(n, t);
|
|
31524
31524
|
});
|
|
31525
31525
|
};
|
|
@@ -31760,7 +31760,7 @@ function aI(e, t) {
|
|
|
31760
31760
|
}, {});
|
|
31761
31761
|
}
|
|
31762
31762
|
function u1(e, t) {
|
|
31763
|
-
|
|
31763
|
+
z(t, function(n, r) {
|
|
31764
31764
|
e.set(r, n);
|
|
31765
31765
|
});
|
|
31766
31766
|
}
|
|
@@ -31817,12 +31817,12 @@ function cI(e, t) {
|
|
|
31817
31817
|
}
|
|
31818
31818
|
function f1(e, t) {
|
|
31819
31819
|
var n = e.businessObject, r = ct(e);
|
|
31820
|
-
|
|
31820
|
+
z(t, function(o, s) {
|
|
31821
31821
|
s !== c1 ? n.set(s, o) : r && pI(r, o);
|
|
31822
31822
|
});
|
|
31823
31823
|
}
|
|
31824
31824
|
function pI(e, t) {
|
|
31825
|
-
|
|
31825
|
+
z(t, function(n, r) {
|
|
31826
31826
|
e.set(r, n);
|
|
31827
31827
|
});
|
|
31828
31828
|
}
|
|
@@ -32040,7 +32040,7 @@ Sm.prototype.postExecute = function(e) {
|
|
|
32040
32040
|
"background-color": this._normalizeColor(n.fill)
|
|
32041
32041
|
}), "stroke" in n && Y(o, {
|
|
32042
32042
|
"border-color": this._normalizeColor(n.stroke)
|
|
32043
|
-
}),
|
|
32043
|
+
}), z(t, function(s) {
|
|
32044
32044
|
var l = mI(s) ? xr(o, ["border-color"]) : o, u = ct(s);
|
|
32045
32045
|
if (gI(l), fn(s))
|
|
32046
32046
|
r._commandStack.execute("element.updateModdleProperties", {
|
|
@@ -32128,21 +32128,21 @@ d1.$inject = [
|
|
|
32128
32128
|
function nE(e) {
|
|
32129
32129
|
return !e || !e.trim();
|
|
32130
32130
|
}
|
|
32131
|
-
function
|
|
32131
|
+
function Dn(e, t, n, r) {
|
|
32132
32132
|
mt.call(this, e, t, n), this._bpmnRules = r;
|
|
32133
32133
|
}
|
|
32134
|
-
Re(
|
|
32135
|
-
|
|
32134
|
+
Re(Dn, mt);
|
|
32135
|
+
Dn.$inject = [
|
|
32136
32136
|
"eventBus",
|
|
32137
32137
|
"elementFactory",
|
|
32138
32138
|
"commandStack",
|
|
32139
32139
|
"bpmnRules"
|
|
32140
32140
|
];
|
|
32141
|
-
|
|
32141
|
+
Dn.prototype.getHandlers = function() {
|
|
32142
32142
|
var e = mt.prototype.getHandlers.call(this);
|
|
32143
32143
|
return e["element.updateModdleProperties"] = du, e["element.updateProperties"] = hu, e["canvas.updateRoot"] = yf, e["lane.add"] = _m, e["lane.resize"] = vu, e["lane.split"] = xm, e["lane.updateRefs"] = mu, e["id.updateClaim"] = bf, e["element.setColor"] = Sm, e["element.updateLabel"] = d1, e;
|
|
32144
32144
|
};
|
|
32145
|
-
|
|
32145
|
+
Dn.prototype.updateLabel = function(e, t, n, r) {
|
|
32146
32146
|
this._commandStack.execute("element.updateLabel", {
|
|
32147
32147
|
element: e,
|
|
32148
32148
|
newLabel: t,
|
|
@@ -32150,45 +32150,45 @@ Rn.prototype.updateLabel = function(e, t, n, r) {
|
|
|
32150
32150
|
hints: r || {}
|
|
32151
32151
|
});
|
|
32152
32152
|
};
|
|
32153
|
-
|
|
32153
|
+
Dn.prototype.connect = function(e, t, n, r) {
|
|
32154
32154
|
var o = this._bpmnRules;
|
|
32155
32155
|
if (n || (n = o.canConnect(e, t)), !!n)
|
|
32156
32156
|
return this.createConnection(e, t, n, e.parent, r);
|
|
32157
32157
|
};
|
|
32158
|
-
|
|
32158
|
+
Dn.prototype.updateModdleProperties = function(e, t, n) {
|
|
32159
32159
|
this._commandStack.execute("element.updateModdleProperties", {
|
|
32160
32160
|
element: e,
|
|
32161
32161
|
moddleElement: t,
|
|
32162
32162
|
properties: n
|
|
32163
32163
|
});
|
|
32164
32164
|
};
|
|
32165
|
-
|
|
32165
|
+
Dn.prototype.updateProperties = function(e, t) {
|
|
32166
32166
|
this._commandStack.execute("element.updateProperties", {
|
|
32167
32167
|
element: e,
|
|
32168
32168
|
properties: t
|
|
32169
32169
|
});
|
|
32170
32170
|
};
|
|
32171
|
-
|
|
32171
|
+
Dn.prototype.resizeLane = function(e, t, n) {
|
|
32172
32172
|
this._commandStack.execute("lane.resize", {
|
|
32173
32173
|
shape: e,
|
|
32174
32174
|
newBounds: t,
|
|
32175
32175
|
balanced: n
|
|
32176
32176
|
});
|
|
32177
32177
|
};
|
|
32178
|
-
|
|
32178
|
+
Dn.prototype.addLane = function(e, t) {
|
|
32179
32179
|
var n = {
|
|
32180
32180
|
shape: e,
|
|
32181
32181
|
location: t
|
|
32182
32182
|
};
|
|
32183
32183
|
return this._commandStack.execute("lane.add", n), n.newLane;
|
|
32184
32184
|
};
|
|
32185
|
-
|
|
32185
|
+
Dn.prototype.splitLane = function(e, t) {
|
|
32186
32186
|
this._commandStack.execute("lane.split", {
|
|
32187
32187
|
shape: e,
|
|
32188
32188
|
count: t
|
|
32189
32189
|
});
|
|
32190
32190
|
};
|
|
32191
|
-
|
|
32191
|
+
Dn.prototype.makeCollaboration = function() {
|
|
32192
32192
|
var e = this._create("root", {
|
|
32193
32193
|
type: "bpmn:Collaboration"
|
|
32194
32194
|
}), t = {
|
|
@@ -32196,13 +32196,13 @@ Rn.prototype.makeCollaboration = function() {
|
|
|
32196
32196
|
};
|
|
32197
32197
|
return this._commandStack.execute("canvas.updateRoot", t), e;
|
|
32198
32198
|
};
|
|
32199
|
-
|
|
32199
|
+
Dn.prototype.updateLaneRefs = function(e, t) {
|
|
32200
32200
|
this._commandStack.execute("lane.updateRefs", {
|
|
32201
32201
|
flowNodeShapes: e,
|
|
32202
32202
|
laneShapes: t
|
|
32203
32203
|
});
|
|
32204
32204
|
};
|
|
32205
|
-
|
|
32205
|
+
Dn.prototype.makeProcess = function() {
|
|
32206
32206
|
var e = this._create("root", {
|
|
32207
32207
|
type: "bpmn:Process"
|
|
32208
32208
|
}), t = {
|
|
@@ -32210,20 +32210,20 @@ Rn.prototype.makeProcess = function() {
|
|
|
32210
32210
|
};
|
|
32211
32211
|
this._commandStack.execute("canvas.updateRoot", t);
|
|
32212
32212
|
};
|
|
32213
|
-
|
|
32213
|
+
Dn.prototype.claimId = function(e, t) {
|
|
32214
32214
|
this._commandStack.execute("id.updateClaim", {
|
|
32215
32215
|
id: e,
|
|
32216
32216
|
element: t,
|
|
32217
32217
|
claiming: !0
|
|
32218
32218
|
});
|
|
32219
32219
|
};
|
|
32220
|
-
|
|
32220
|
+
Dn.prototype.unclaimId = function(e, t) {
|
|
32221
32221
|
this._commandStack.execute("id.updateClaim", {
|
|
32222
32222
|
id: e,
|
|
32223
32223
|
element: t
|
|
32224
32224
|
});
|
|
32225
32225
|
};
|
|
32226
|
-
|
|
32226
|
+
Dn.prototype.setColor = function(e, t) {
|
|
32227
32227
|
e.length || (e = [e]), this._commandStack.execute("element.setColor", {
|
|
32228
32228
|
elements: e,
|
|
32229
32229
|
colors: t
|
|
@@ -32264,7 +32264,7 @@ function xI(e, t) {
|
|
|
32264
32264
|
}[e].test(t);
|
|
32265
32265
|
}
|
|
32266
32266
|
function v1(e, t, n) {
|
|
32267
|
-
var r =
|
|
32267
|
+
var r = Pn(t, e, bI), o = n.split(":")[0], s = cp((t.x - e.x) / 2 + e.x), l = cp((t.y - e.y) / 2 + e.y), u, c, d = xI(o, r), v = /h|r|l/.test(o), m = !1, y = !1;
|
|
32268
32268
|
return d ? (u = v ? { x: s, y: e.y } : { x: e.x, y: l }, c = v ? "h:h" : "v:v") : (m = _I(r, o), c = v ? "h:v" : "v:h", m ? v ? (y = l === e.y, u = {
|
|
32269
32269
|
x: e.x + kc * (/l/.test(o) ? -1 : 1),
|
|
32270
32270
|
y: y ? l + kc : l
|
|
@@ -32345,7 +32345,7 @@ function AI(e, t, n) {
|
|
|
32345
32345
|
return r.unshift(e), r.push(t), g1(r);
|
|
32346
32346
|
}
|
|
32347
32347
|
function PI(e, t, n, r, o) {
|
|
32348
|
-
var s = o && o.preferredLayouts || [], l = UC(s, "straight")[0] || "h:h", u = EI[l] || 0, c =
|
|
32348
|
+
var s = o && o.preferredLayouts || [], l = UC(s, "straight")[0] || "h:h", u = EI[l] || 0, c = Pn(e, t, u), d = LI(c, l);
|
|
32349
32349
|
n = n || qe(e), r = r || qe(t);
|
|
32350
32350
|
var v = d.split(":"), m = aE(n, e, v[0], II(c)), y = aE(r, t, v[1], c);
|
|
32351
32351
|
return AI(m, y, d);
|
|
@@ -32367,7 +32367,7 @@ function oE(e, t, n) {
|
|
|
32367
32367
|
}
|
|
32368
32368
|
function kI(e, t, n, r, o) {
|
|
32369
32369
|
var s = {}, l, u;
|
|
32370
|
-
return u =
|
|
32370
|
+
return u = Pn(e, t), /^(top|bottom|left|right)$/.test(u) ? (/top|bottom/.test(u) && (l = "x"), /left|right/.test(u) && (l = "y"), o.preserveDocking === "target" ? oE(l, r, e) ? (s[l] = r[l], [
|
|
32371
32371
|
{
|
|
32372
32372
|
x: s.x !== void 0 ? s.x : n.x,
|
|
32373
32373
|
y: s.y !== void 0 ? s.y : n.y,
|
|
@@ -32524,7 +32524,7 @@ Pm.prototype.layoutConnection = function(e, t) {
|
|
|
32524
32524
|
};
|
|
32525
32525
|
function $I(e) {
|
|
32526
32526
|
var t = e.host;
|
|
32527
|
-
return
|
|
32527
|
+
return Pn(qe(e), t, BI);
|
|
32528
32528
|
}
|
|
32529
32529
|
function HI(e, t) {
|
|
32530
32530
|
return {
|
|
@@ -32582,11 +32582,11 @@ function Dh(e) {
|
|
|
32582
32582
|
return e === "right" || e === "left";
|
|
32583
32583
|
}
|
|
32584
32584
|
function YI(e, t) {
|
|
32585
|
-
var n = t.waypoints, r = n && n.length &&
|
|
32585
|
+
var n = t.waypoints, r = n && n.length && Pn(n[0], e);
|
|
32586
32586
|
return r === "top" ? ["t:r"] : r === "right" ? ["r:b"] : r === "left" ? ["l:t"] : ["b:l"];
|
|
32587
32587
|
}
|
|
32588
32588
|
function qI(e, t, n) {
|
|
32589
|
-
var r = qe(e), o = qe(t), s = $I(e), l, u, c = wl(e.host, t), d = UI(s, ["top", "right", "bottom", "left"]), v =
|
|
32589
|
+
var r = qe(e), o = qe(t), s = $I(e), l, u, c = wl(e.host, t), d = UI(s, ["top", "right", "bottom", "left"]), v = Pn(o, r, {
|
|
32590
32590
|
x: e.width / 2 + t.width / 2,
|
|
32591
32591
|
y: e.height / 2 + t.height / 2
|
|
32592
32592
|
});
|
|
@@ -32673,7 +32673,7 @@ const QI = {
|
|
|
32673
32673
|
bpmnFactory: ["type", Ar],
|
|
32674
32674
|
bpmnUpdater: ["type", sr],
|
|
32675
32675
|
elementFactory: ["type", To],
|
|
32676
|
-
modeling: ["type",
|
|
32676
|
+
modeling: ["type", Dn],
|
|
32677
32677
|
layouter: ["type", Pm],
|
|
32678
32678
|
connectionDocking: ["type", Ro]
|
|
32679
32679
|
};
|
|
@@ -32791,7 +32791,7 @@ function b1(e, t, n, r) {
|
|
|
32791
32791
|
}), m ? m = Uc([
|
|
32792
32792
|
m,
|
|
32793
32793
|
s(v)
|
|
32794
|
-
]) : m = s(v),
|
|
32794
|
+
]) : m = s(v), z(m, function(w) {
|
|
32795
32795
|
t.addMarker(w, zd);
|
|
32796
32796
|
}), d.allDraggedElements = m, d.differentParents = aB(v);
|
|
32797
32797
|
}), e.on("shape.move.move", pE, function(c) {
|
|
@@ -32802,7 +32802,7 @@ function b1(e, t, n, r) {
|
|
|
32802
32802
|
v && l(v, null);
|
|
32803
32803
|
}), e.on("shape.move.cleanup", function(c) {
|
|
32804
32804
|
var d = c.context, v = d.allDraggedElements, m = d.dragGroup;
|
|
32805
|
-
|
|
32805
|
+
z(v, function(y) {
|
|
32806
32806
|
t.removeMarker(y, zd);
|
|
32807
32807
|
}), m && zt(m);
|
|
32808
32808
|
}), this.makeDraggable = u;
|
|
@@ -33322,7 +33322,7 @@ function Dm(e, t, n, r, o) {
|
|
|
33322
33322
|
ge.call(this, e);
|
|
33323
33323
|
function s(u) {
|
|
33324
33324
|
var c = u.canExecute.replacements;
|
|
33325
|
-
|
|
33325
|
+
z(c, function(d) {
|
|
33326
33326
|
var v = d.oldElementId, m = {
|
|
33327
33327
|
type: d.newElementType
|
|
33328
33328
|
};
|
|
@@ -33340,7 +33340,7 @@ function Dm(e, t, n, r, o) {
|
|
|
33340
33340
|
}
|
|
33341
33341
|
function l(u) {
|
|
33342
33342
|
var c = u.visualReplacements;
|
|
33343
|
-
|
|
33343
|
+
z(c, function(d, v) {
|
|
33344
33344
|
var m = bt('[data-element-id="' + Rl(v) + '"]', u.dragGroup);
|
|
33345
33345
|
m && Se(m, { display: "inline" }), d.remove(), c[v] && delete c[v];
|
|
33346
33346
|
});
|
|
@@ -33397,7 +33397,7 @@ function EB(e, t) {
|
|
|
33397
33397
|
function _B(e) {
|
|
33398
33398
|
var t = e.context, n = t.source, r = t.target;
|
|
33399
33399
|
if (!CB(t)) {
|
|
33400
|
-
var o = Er(n), s =
|
|
33400
|
+
var o = Er(n), s = Pn(o, r, -10), l = [];
|
|
33401
33401
|
/top|bottom/.test(s) && l.push("x"), /left|right/.test(s) && l.push("y"), l.forEach(function(u) {
|
|
33402
33402
|
var c = e[u], d;
|
|
33403
33403
|
yB(c - o[u]) < Ud && (c > o[u] ? d = o[u] + Ud : d = o[u] - Ud, Ht(e, u, d));
|
|
@@ -33464,8 +33464,8 @@ Ef.prototype.snap = function(e, t, n, r) {
|
|
|
33464
33464
|
};
|
|
33465
33465
|
Ef.prototype.initDefaults = function(e) {
|
|
33466
33466
|
var t = this;
|
|
33467
|
-
|
|
33468
|
-
|
|
33467
|
+
z(e || {}, function(n, r) {
|
|
33468
|
+
z(n, function(o) {
|
|
33469
33469
|
t.add(r, o);
|
|
33470
33470
|
});
|
|
33471
33471
|
});
|
|
@@ -33529,7 +33529,7 @@ si.prototype.initSnap = function(e) {
|
|
|
33529
33529
|
};
|
|
33530
33530
|
si.prototype.addSnapTargetPoints = function(e, t, n) {
|
|
33531
33531
|
var r = this.getSnapTargets(t, n);
|
|
33532
|
-
return
|
|
33532
|
+
return z(r, function(o) {
|
|
33533
33533
|
if (kh(o)) {
|
|
33534
33534
|
kh(t) && e.add("mid", Er(o));
|
|
33535
33535
|
return;
|
|
@@ -33538,7 +33538,7 @@ si.prototype.addSnapTargetPoints = function(e, t, n) {
|
|
|
33538
33538
|
if (o.waypoints.length < 3)
|
|
33539
33539
|
return;
|
|
33540
33540
|
var s = o.waypoints.slice(1, -1);
|
|
33541
|
-
|
|
33541
|
+
z(s, function(l) {
|
|
33542
33542
|
e.add("mid", l);
|
|
33543
33543
|
});
|
|
33544
33544
|
return;
|
|
@@ -33579,10 +33579,10 @@ Ts.$inject = [
|
|
|
33579
33579
|
];
|
|
33580
33580
|
Ts.prototype.initSnap = function(e) {
|
|
33581
33581
|
var t = si.prototype.initSnap.call(this, e), n = e.shape, r = !!this._elementRegistry.get(n.id);
|
|
33582
|
-
return
|
|
33582
|
+
return z(n.outgoing, function(o) {
|
|
33583
33583
|
var s = o.waypoints[0];
|
|
33584
33584
|
s = s.original || s, t.setSnapOrigin(o.id + "-docking", wE(s, r, e));
|
|
33585
|
-
}),
|
|
33585
|
+
}), z(n.incoming, function(o) {
|
|
33586
33586
|
var s = o.waypoints[o.waypoints.length - 1];
|
|
33587
33587
|
s = s.original || s, t.setSnapOrigin(o.id + "-docking", wE(s, r, e));
|
|
33588
33588
|
}), R(n, "bpmn:Participant") && t.setSnapLocations(["top-left", "bottom-right", "mid"]), t;
|
|
@@ -33590,17 +33590,17 @@ Ts.prototype.initSnap = function(e) {
|
|
|
33590
33590
|
Ts.prototype.addSnapTargetPoints = function(e, t, n) {
|
|
33591
33591
|
si.prototype.addSnapTargetPoints.call(this, e, t, n);
|
|
33592
33592
|
var r = this.getSnapTargets(t, n);
|
|
33593
|
-
|
|
33593
|
+
z(r, function(s) {
|
|
33594
33594
|
(kB(s) || DB([t, s], "bpmn:TextAnnotation")) && (e.add("top-left", Ux(s)), e.add("bottom-right", Gx(s)));
|
|
33595
33595
|
});
|
|
33596
33596
|
var o = this._elementRegistry;
|
|
33597
|
-
return
|
|
33597
|
+
return z(t.incoming, function(s) {
|
|
33598
33598
|
if (o.get(t.id)) {
|
|
33599
33599
|
xE(r, s.source) || e.add("mid", qe(s.source));
|
|
33600
33600
|
var l = s.waypoints[0];
|
|
33601
33601
|
e.add(s.id + "-docking", l.original || l);
|
|
33602
33602
|
}
|
|
33603
|
-
}),
|
|
33603
|
+
}), z(t.outgoing, function(s) {
|
|
33604
33604
|
if (o.get(t.id)) {
|
|
33605
33605
|
xE(r, s.target) || e.add("mid", qe(s.target));
|
|
33606
33606
|
var l = s.waypoints[s.waypoints.length - 1];
|
|
@@ -33673,7 +33673,7 @@ gu.prototype.initSnap = function(e) {
|
|
|
33673
33673
|
};
|
|
33674
33674
|
gu.prototype.addSnapTargetPoints = function(e, t, n, r) {
|
|
33675
33675
|
var o = this.getSnapTargets(t, n);
|
|
33676
|
-
return
|
|
33676
|
+
return z(o, function(s) {
|
|
33677
33677
|
e.add("corner", Gx(s)), e.add("corner", Ux(s));
|
|
33678
33678
|
}), e.add("corner", T1(t, r)), e;
|
|
33679
33679
|
};
|
|
@@ -33721,12 +33721,12 @@ ko.prototype.snap = function(e, t) {
|
|
|
33721
33721
|
x: cs(e, "x"),
|
|
33722
33722
|
y: cs(e, "y")
|
|
33723
33723
|
};
|
|
33724
|
-
|
|
33724
|
+
z(o, function(l) {
|
|
33725
33725
|
var u = r.getSnapOrigin(l), c = {
|
|
33726
33726
|
x: e.x + u.x,
|
|
33727
33727
|
y: e.y + u.y
|
|
33728
33728
|
};
|
|
33729
|
-
if (
|
|
33729
|
+
if (z(["x", "y"], function(d) {
|
|
33730
33730
|
var v;
|
|
33731
33731
|
s[d] || (v = t.snap(c, l, d, HB), v !== void 0 && (s[d] = {
|
|
33732
33732
|
value: v,
|
|
@@ -33734,7 +33734,7 @@ ko.prototype.snap = function(e, t) {
|
|
|
33734
33734
|
}));
|
|
33735
33735
|
}), s.x && s.y)
|
|
33736
33736
|
return !1;
|
|
33737
|
-
}), this.showSnapLine("vertical", s.x && s.x.value), this.showSnapLine("horizontal", s.y && s.y.value),
|
|
33737
|
+
}), this.showSnapLine("vertical", s.x && s.x.value), this.showSnapLine("horizontal", s.y && s.y.value), z(["x", "y"], function(l) {
|
|
33738
33738
|
var u = s[l];
|
|
33739
33739
|
En(u) && Ht(e, l, u.originValue);
|
|
33740
33740
|
});
|
|
@@ -33767,7 +33767,7 @@ ko.prototype.getSnapLine = function(e) {
|
|
|
33767
33767
|
return this._snapLines || this._createSnapLines(), this._snapLines[e];
|
|
33768
33768
|
};
|
|
33769
33769
|
ko.prototype.hide = function() {
|
|
33770
|
-
|
|
33770
|
+
z(this._snapLines, function(e) {
|
|
33771
33771
|
e.update();
|
|
33772
33772
|
});
|
|
33773
33773
|
};
|
|
@@ -34060,7 +34060,7 @@ Qr.prototype._modules = [].concat(
|
|
|
34060
34060
|
Qr.prototype._interactionModules,
|
|
34061
34061
|
Qr.prototype._modelingModules
|
|
34062
34062
|
);
|
|
34063
|
-
const
|
|
34063
|
+
const An = {
|
|
34064
34064
|
/**
|
|
34065
34065
|
* 字符串是否为空白 空白的定义如下: <br>
|
|
34066
34066
|
* 1、为null <br>
|
|
@@ -34083,7 +34083,7 @@ const In = {
|
|
|
34083
34083
|
* @return boolean 是否为非空
|
|
34084
34084
|
*/
|
|
34085
34085
|
isNotBlank: function(e) {
|
|
34086
|
-
return
|
|
34086
|
+
return An.isBlank(e) === !1;
|
|
34087
34087
|
},
|
|
34088
34088
|
/**
|
|
34089
34089
|
* 字符串是否为空,空的定义如下:<br>
|
|
@@ -34105,7 +34105,7 @@ const In = {
|
|
|
34105
34105
|
* @return boolean 是否为非空
|
|
34106
34106
|
*/
|
|
34107
34107
|
isNotEmpty: function(e) {
|
|
34108
|
-
return !
|
|
34108
|
+
return !An.isEmpty(e);
|
|
34109
34109
|
},
|
|
34110
34110
|
/**
|
|
34111
34111
|
* 空对象转字符串
|
|
@@ -34114,7 +34114,7 @@ const In = {
|
|
|
34114
34114
|
* @return string 原字符串或者空串
|
|
34115
34115
|
*/
|
|
34116
34116
|
nullToStr: function(e) {
|
|
34117
|
-
return
|
|
34117
|
+
return An.isEmpty(e) ? "" : e;
|
|
34118
34118
|
},
|
|
34119
34119
|
/**
|
|
34120
34120
|
* 空格截取
|
|
@@ -34154,7 +34154,7 @@ const In = {
|
|
|
34154
34154
|
* @return string[] 分割后的数组
|
|
34155
34155
|
*/
|
|
34156
34156
|
split: function(e, t, n) {
|
|
34157
|
-
if (
|
|
34157
|
+
if (An.isEmpty(e))
|
|
34158
34158
|
return null;
|
|
34159
34159
|
const r = String(e).split(t);
|
|
34160
34160
|
return n ? r.slice(0, n - 1) : r;
|
|
@@ -34604,7 +34604,7 @@ const In = {
|
|
|
34604
34604
|
return rr(
|
|
34605
34605
|
() => e.id,
|
|
34606
34606
|
(c) => {
|
|
34607
|
-
|
|
34607
|
+
An.isNotBlank(c) && s();
|
|
34608
34608
|
},
|
|
34609
34609
|
{ immediate: !0 }
|
|
34610
34610
|
), ho(() => {
|
|
@@ -34747,7 +34747,7 @@ const JB = /* @__PURE__ */ li(XB, [["render", ZB]]), QB = ni({
|
|
|
34747
34747
|
userName: void 0,
|
|
34748
34748
|
deptId: void 0
|
|
34749
34749
|
}), A = ze(), B = ze([]), D = ze([]), k = ze(0), P = ze([]), M = (G) => G[c] || G.id, L = (G) => {
|
|
34750
|
-
B.value = G, G.length > 0 ? w.value.deptId = Number(G[0]) : w.value.deptId = void 0,
|
|
34750
|
+
B.value = G, G.length > 0 ? w.value.deptId = Number(G[0]) : w.value.deptId = void 0, W();
|
|
34751
34751
|
}, H = (G, ce) => {
|
|
34752
34752
|
D.value = G, t("handleUserSelect", ce);
|
|
34753
34753
|
}, j = (G) => {
|
|
@@ -34757,7 +34757,7 @@ const JB = /* @__PURE__ */ li(XB, [["render", ZB]]), QB = ni({
|
|
|
34757
34757
|
const re = o.value.find((De) => M(De) === ce);
|
|
34758
34758
|
t("handleUserSelect", re);
|
|
34759
34759
|
}
|
|
34760
|
-
},
|
|
34760
|
+
}, W = () => {
|
|
34761
34761
|
w.value.pageNum = 1, pe();
|
|
34762
34762
|
}, Q = () => {
|
|
34763
34763
|
w.value = {
|
|
@@ -34765,7 +34765,7 @@ const JB = /* @__PURE__ */ li(XB, [["render", ZB]]), QB = ni({
|
|
|
34765
34765
|
pageSize: 5,
|
|
34766
34766
|
userName: void 0,
|
|
34767
34767
|
deptId: void 0
|
|
34768
|
-
}, B.value = [],
|
|
34768
|
+
}, B.value = [], W();
|
|
34769
34769
|
}, J = (G, ce) => {
|
|
34770
34770
|
w.value.pageNum = G, w.value.pageSize = ce, pe();
|
|
34771
34771
|
}, oe = (G) => {
|
|
@@ -34781,7 +34781,7 @@ const JB = /* @__PURE__ */ li(XB, [["render", ZB]]), QB = ni({
|
|
|
34781
34781
|
return rr(
|
|
34782
34782
|
() => e.selectValues,
|
|
34783
34783
|
(G) => {
|
|
34784
|
-
|
|
34784
|
+
An.isNotBlank(G) && (typeof G == "number" ? k.value = G : Array.isArray(G) ? P.value = G : typeof G == "string" && (P.value = G.split(",")));
|
|
34785
34785
|
},
|
|
34786
34786
|
{ immediate: !0 }
|
|
34787
34787
|
), rr(
|
|
@@ -34818,7 +34818,7 @@ const JB = /* @__PURE__ */ li(XB, [["render", ZB]]), QB = ni({
|
|
|
34818
34818
|
handleNodeSelect: L,
|
|
34819
34819
|
handleMultipleUserSelect: H,
|
|
34820
34820
|
handleSingleUserSelect: j,
|
|
34821
|
-
handleQuery:
|
|
34821
|
+
handleQuery: W,
|
|
34822
34822
|
resetQuery: Q,
|
|
34823
34823
|
onPageSizeChange: J,
|
|
34824
34824
|
onPageChange: oe
|
|
@@ -34992,7 +34992,7 @@ const o3 = /* @__PURE__ */ li(QB, [["render", i3], ["__scopeId", "data-v-aa07dab
|
|
|
34992
34992
|
rr(
|
|
34993
34993
|
() => e.selectValues,
|
|
34994
34994
|
(L) => {
|
|
34995
|
-
|
|
34995
|
+
An.isNotBlank(L) && (typeof L == "number" || typeof L == "string" ? m.value = L : Array.isArray(L) ? v.value = L.map((H) => H) : typeof L == "string" && (v.value = L.split(",").map((H) => H.trim()).filter(Boolean)));
|
|
34996
34996
|
},
|
|
34997
34997
|
{ immediate: !0 }
|
|
34998
34998
|
), rr(o, (L) => {
|
|
@@ -35005,13 +35005,13 @@ const o3 = /* @__PURE__ */ li(QB, [["render", i3], ["__scopeId", "data-v-aa07dab
|
|
|
35005
35005
|
o.value = L.data, r.value = L.total, n.value = !1;
|
|
35006
35006
|
}, w = (L, H) => {
|
|
35007
35007
|
v.value = L;
|
|
35008
|
-
const j = L.join(","),
|
|
35009
|
-
t("handleRoleSelect", j,
|
|
35008
|
+
const j = L.join(","), W = H.map((Q) => Q[c]).join(",");
|
|
35009
|
+
t("handleRoleSelect", j, W);
|
|
35010
35010
|
}, A = (L) => {
|
|
35011
35011
|
const H = L[0];
|
|
35012
35012
|
m.value = H ?? null;
|
|
35013
|
-
const j = o.value.find((Q) => Q[u] === H),
|
|
35014
|
-
t("handleRoleSelect", String(H),
|
|
35013
|
+
const j = o.value.find((Q) => Q[u] === H), W = (j == null ? void 0 : j[c]) || "";
|
|
35014
|
+
t("handleRoleSelect", String(H), W);
|
|
35015
35015
|
}, B = () => {
|
|
35016
35016
|
d.value.pageNum = 1, _();
|
|
35017
35017
|
}, D = () => {
|
|
@@ -35223,7 +35223,7 @@ const u3 = /* @__PURE__ */ li(a3, [["render", l3], ["__scopeId", "data-v-e8e9710
|
|
|
35223
35223
|
return rr(
|
|
35224
35224
|
() => e.selectValues,
|
|
35225
35225
|
(w) => {
|
|
35226
|
-
|
|
35226
|
+
An.isNotBlank(w) && (l.value = w);
|
|
35227
35227
|
},
|
|
35228
35228
|
{ immediate: !0 }
|
|
35229
35229
|
), ho(() => {
|
|
@@ -35416,29 +35416,29 @@ const h3 = /* @__PURE__ */ li(p3, [["render", d3], ["__scopeId", "data-v-8afeeb4
|
|
|
35416
35416
|
const me = w();
|
|
35417
35417
|
me && me.modeling.updateProperties(me.element, { userType: ae });
|
|
35418
35418
|
}, P = (ie) => {
|
|
35419
|
-
|
|
35419
|
+
An.isNotBlank(ie.expId) ? M(ie.expId, ie.userType) : ie.userType === "candidateGroups" ? H(ie.candidateGroups, ie.userType) : L(ie[ie.userType], ie.userType);
|
|
35420
35420
|
}, M = (ie, ae) => {
|
|
35421
35421
|
const me = w();
|
|
35422
|
-
if (
|
|
35422
|
+
if (An.isNotBlank(ie) && (me != null && me.expList)) {
|
|
35423
35423
|
const Ie = me.expList.find((at) => at.id.toString() === ie);
|
|
35424
35424
|
Ie && (y[ae] = Ie.name, b.exp = Ie.id);
|
|
35425
35425
|
}
|
|
35426
35426
|
}, L = (ie, ae) => {
|
|
35427
35427
|
var Ie;
|
|
35428
35428
|
const me = w();
|
|
35429
|
-
if (
|
|
35429
|
+
if (An.isNotBlank(ie) && (me != null && me.userList)) {
|
|
35430
35430
|
const at = ie.toString().split(","), Be = me.userList.filter((Ue) => at.includes(Ue[r].toString()));
|
|
35431
35431
|
y[ae] = Be.map((Ue) => Ue[o]).join(","), b[ae] = ae === "assignee" ? (Ie = Be[0]) == null ? void 0 : Ie[r] : Be.map((Ue) => Ue == null ? void 0 : Ue[r]);
|
|
35432
35432
|
}
|
|
35433
35433
|
}, H = (ie, ae) => {
|
|
35434
35434
|
const me = w();
|
|
35435
|
-
if (
|
|
35435
|
+
if (An.isNotBlank(ie) && (me != null && me.roleList)) {
|
|
35436
35436
|
const Ie = ie.split(","), at = me.roleList.filter((Be) => Ie.includes(Be == null ? void 0 : Be[s].toString()));
|
|
35437
35437
|
y[ae] = at.map((Be) => Be == null ? void 0 : Be[l]).join(","), b[ae] = at.map((Be) => Be == null ? void 0 : Be[s]);
|
|
35438
35438
|
}
|
|
35439
35439
|
}, j = () => {
|
|
35440
35440
|
u.value = !0, v.value = "single";
|
|
35441
|
-
},
|
|
35441
|
+
}, W = () => {
|
|
35442
35442
|
u.value = !0, v.value = "multiple";
|
|
35443
35443
|
}, Q = () => {
|
|
35444
35444
|
c.value = !0;
|
|
@@ -35485,7 +35485,7 @@ const h3 = /* @__PURE__ */ li(p3, [["render", d3], ["__scopeId", "data-v-8afeeb4
|
|
|
35485
35485
|
rr(
|
|
35486
35486
|
() => e.id,
|
|
35487
35487
|
(ie) => {
|
|
35488
|
-
|
|
35488
|
+
An.isNotBlank(ie) && B();
|
|
35489
35489
|
},
|
|
35490
35490
|
{ immediate: !0 }
|
|
35491
35491
|
);
|
|
@@ -35532,7 +35532,7 @@ const h3 = /* @__PURE__ */ li(p3, [["render", d3], ["__scopeId", "data-v-8afeeb4
|
|
|
35532
35532
|
assigneeList: De,
|
|
35533
35533
|
// methods
|
|
35534
35534
|
singleUserCheck: j,
|
|
35535
|
-
multipleUserCheck:
|
|
35535
|
+
multipleUserCheck: W,
|
|
35536
35536
|
multipleRoleCheck: Q,
|
|
35537
35537
|
singleExpCheck: J,
|
|
35538
35538
|
updateElementTask: D,
|
|
@@ -35970,24 +35970,20 @@ const y3 = /* @__PURE__ */ li(v3, [["render", g3], ["__scopeId", "data-v-81d9605
|
|
|
35970
35970
|
return null;
|
|
35971
35971
|
const B = A[1].trim(), D = ["<=", ">=", "!=", "==", "<", ">", "="];
|
|
35972
35972
|
let k = null, P = "", M = "";
|
|
35973
|
-
for (const
|
|
35974
|
-
const
|
|
35975
|
-
|
|
35973
|
+
for (const H of D) {
|
|
35974
|
+
const j = B.indexOf(H);
|
|
35975
|
+
j > 0 && (k === null || H.length > k.length) && (k = H, P = B.substring(0, j).trim(), M = B.substring(j + H.length).trim());
|
|
35976
35976
|
}
|
|
35977
|
-
|
|
35978
|
-
|
|
35979
|
-
const L = P;
|
|
35980
|
-
let H = M;
|
|
35981
|
-
return (H.startsWith('"') && H.endsWith('"') || H.startsWith("'") && H.endsWith("'")) && (H = H.slice(1, -1)), {
|
|
35982
|
-
variable: L,
|
|
35977
|
+
return k ? {
|
|
35978
|
+
variable: P,
|
|
35983
35979
|
operator: k,
|
|
35984
|
-
|
|
35985
|
-
};
|
|
35980
|
+
rightPart: M
|
|
35981
|
+
} : null;
|
|
35986
35982
|
};
|
|
35987
35983
|
rr(
|
|
35988
35984
|
() => e.id,
|
|
35989
35985
|
(w) => {
|
|
35990
|
-
|
|
35986
|
+
An.isNotBlank(w) && d();
|
|
35991
35987
|
},
|
|
35992
35988
|
{ immediate: !0 }
|
|
35993
35989
|
);
|
|
@@ -36026,7 +36022,7 @@ const y3 = /* @__PURE__ */ li(v3, [["render", g3], ["__scopeId", "data-v-81d9605
|
|
|
36026
36022
|
if (!n.value || !r.value || o.value === "")
|
|
36027
36023
|
return "";
|
|
36028
36024
|
let w = o.value;
|
|
36029
|
-
return `\${${n.value}${r.value}${w}}`;
|
|
36025
|
+
return An.isNumeric(o.value) || (w = `"${o.value}"`), `\${${n.value}${r.value}${w}}`;
|
|
36030
36026
|
});
|
|
36031
36027
|
return rr(_, (w) => {
|
|
36032
36028
|
c.value.body = w, y();
|
|
@@ -36268,7 +36264,7 @@ function _3(e, t, n, r, o, s) {
|
|
|
36268
36264
|
})
|
|
36269
36265
|
]);
|
|
36270
36266
|
}
|
|
36271
|
-
const x3 = /* @__PURE__ */ li(b3, [["render", _3], ["__scopeId", "data-v-
|
|
36267
|
+
const x3 = /* @__PURE__ */ li(b3, [["render", _3], ["__scopeId", "data-v-5dff68e3"]]), w3 = {
|
|
36272
36268
|
// Labels
|
|
36273
36269
|
"Activate the global connect tool": "激活全局连接工具",
|
|
36274
36270
|
"Append {type}": "添加 {type}",
|
|
@@ -38095,13 +38091,13 @@ yu.prototype.getContextPadEntries = function(e) {
|
|
|
38095
38091
|
}
|
|
38096
38092
|
function w(k, P, M, L) {
|
|
38097
38093
|
typeof M != "string" && (L = M, M = d("Append {type}", { type: k.replace(/^bpmn:/, "") }));
|
|
38098
|
-
function H(
|
|
38094
|
+
function H(W, Q) {
|
|
38099
38095
|
var J = r.createShape(Y({ type: k }, L));
|
|
38100
|
-
s.start(
|
|
38096
|
+
s.start(W, J, {
|
|
38101
38097
|
source: Q
|
|
38102
38098
|
});
|
|
38103
38099
|
}
|
|
38104
|
-
var j = c ? function(
|
|
38100
|
+
var j = c ? function(W, Q) {
|
|
38105
38101
|
var J = r.createShape(Y({ type: k }, L));
|
|
38106
38102
|
c.append(Q, J);
|
|
38107
38103
|
} : H;
|
|
@@ -38305,7 +38301,7 @@ yu.prototype.getContextPadEntries = function(e) {
|
|
|
38305
38301
|
};
|
|
38306
38302
|
function PE(e, t, n) {
|
|
38307
38303
|
var r = e.$instanceOf(t), o = !1, s = e.eventDefinitions || [];
|
|
38308
|
-
return
|
|
38304
|
+
return z(s, function(l) {
|
|
38309
38305
|
l.$type === n && (o = !0);
|
|
38310
38306
|
}), r && o;
|
|
38311
38307
|
}
|
|
@@ -38521,8 +38517,8 @@ const H3 = {
|
|
|
38521
38517
|
const { modelerStore: L } = va;
|
|
38522
38518
|
L.modeler = M, L.modeling = M.get("modeling"), L.moddle = M.get("moddle"), L.canvas = M.get("canvas"), L.bpmnFactory = M.get("bpmnFactory"), L.elRegistry = M.get("elementRegistry");
|
|
38523
38519
|
}, u = (M, L, H) => {
|
|
38524
|
-
const j = new Blob([L], { type: H }),
|
|
38525
|
-
Q.href =
|
|
38520
|
+
const j = new Blob([L], { type: H }), W = URL.createObjectURL(j), Q = document.createElement("a");
|
|
38521
|
+
Q.href = W, Q.download = M, Q.click(), URL.revokeObjectURL(W);
|
|
38526
38522
|
}, c = () => r.value && r.value.getDefinitions().rootElements.find((L) => L.$type === "bpmn:Process") || null, d = () => {
|
|
38527
38523
|
m(AE(e.processId, e.processName));
|
|
38528
38524
|
}, v = () => {
|
|
@@ -38575,8 +38571,8 @@ const H3 = {
|
|
|
38575
38571
|
try {
|
|
38576
38572
|
const { svg: H } = await r.value.saveSVG();
|
|
38577
38573
|
if (L) {
|
|
38578
|
-
const j = c(),
|
|
38579
|
-
u(
|
|
38574
|
+
const j = c(), W = `${(j == null ? void 0 : j.name) || "diagram"}.svg`;
|
|
38575
|
+
u(W, H, "image/svg+xml");
|
|
38580
38576
|
}
|
|
38581
38577
|
return H;
|
|
38582
38578
|
} catch (H) {
|
|
@@ -38603,13 +38599,13 @@ const H3 = {
|
|
|
38603
38599
|
}, !1;
|
|
38604
38600
|
}, k = (M) => {
|
|
38605
38601
|
let L = 0, H = !1, j = !1;
|
|
38606
|
-
const
|
|
38602
|
+
const W = () => {
|
|
38607
38603
|
H = !1, j = !1, M.get("elementRegistry").forEach((J) => {
|
|
38608
38604
|
J.type === "bpmn:EndEvent" && (J.id === "agree_end" ? H = !0 : J.id === "reject_end" && (j = !0));
|
|
38609
38605
|
});
|
|
38610
38606
|
}, Q = () => {
|
|
38611
38607
|
let J = 0;
|
|
38612
|
-
|
|
38608
|
+
W(), M.get("elementRegistry").forEach((oe) => {
|
|
38613
38609
|
var pe;
|
|
38614
38610
|
if ((pe = oe.businessObject) != null && pe.name && /^节点(\d+)$/.test(oe.businessObject.name)) {
|
|
38615
38611
|
const Me = parseInt(oe.businessObject.name.replace("节点", ""), 10);
|
|
@@ -38622,7 +38618,7 @@ const H3 = {
|
|
|
38622
38618
|
const oe = J.context.shape;
|
|
38623
38619
|
if (!(oe.type === "bpmn:SequenceFlow" || oe.type === "bpmn:MessageFlow")) {
|
|
38624
38620
|
if (oe.type === "bpmn:EndEvent") {
|
|
38625
|
-
|
|
38621
|
+
W(), H ? j ? (M.get("modeling").updateProperties(oe, {
|
|
38626
38622
|
name: "多余结束(请删除)"
|
|
38627
38623
|
}), console.log("err:多余结束(请删除")) : (M.get("modeling").updateProperties(oe, {
|
|
38628
38624
|
id: "reject_end",
|
|
@@ -38661,18 +38657,18 @@ const H3 = {
|
|
|
38661
38657
|
} catch (L) {
|
|
38662
38658
|
console.warn("生成 XML 失败(可能模型不合法):", L);
|
|
38663
38659
|
}
|
|
38664
|
-
}), r.value = M, l(M),
|
|
38660
|
+
}), r.value = M, l(M), An.isBlank(e.xml) ? d() : m(e.xml), Tl(() => {
|
|
38665
38661
|
rr(
|
|
38666
38662
|
() => [e.processId, e.processName],
|
|
38667
38663
|
async (L) => {
|
|
38668
38664
|
console.log("watch process id");
|
|
38669
|
-
const [H, j] = L, { modelerStore:
|
|
38665
|
+
const [H, j] = L, { modelerStore: W } = va, J = W.modeler.get("elementRegistry").filter((oe) => oe.type === "bpmn:Process")[0];
|
|
38670
38666
|
if (J) {
|
|
38671
|
-
|
|
38667
|
+
W.modeling.updateProperties(J, {
|
|
38672
38668
|
id: H,
|
|
38673
38669
|
name: j
|
|
38674
38670
|
});
|
|
38675
|
-
const { xml: oe } = await
|
|
38671
|
+
const { xml: oe } = await W.modeler.saveXML({ format: !0 });
|
|
38676
38672
|
t("xmlChanged", oe);
|
|
38677
38673
|
} else
|
|
38678
38674
|
console.warn("未找到 process 元素");
|
|
@@ -38687,7 +38683,7 @@ const H3 = {
|
|
|
38687
38683
|
console.log("内部编辑xml pass");
|
|
38688
38684
|
return;
|
|
38689
38685
|
}
|
|
38690
|
-
|
|
38686
|
+
An.isNotBlank(M) ? m(M) : d();
|
|
38691
38687
|
},
|
|
38692
38688
|
{ immediate: !0 }
|
|
38693
38689
|
), {
|