camunda-bpmn-js 3.10.1 → 3.11.0
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/base-modeler.development.js +324 -226
- package/dist/base-modeler.production.min.js +33 -33
- package/dist/base-navigated-viewer.development.js +85 -18
- package/dist/base-navigated-viewer.production.min.js +1 -1
- package/dist/base-viewer.development.js +85 -18
- package/dist/base-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +864 -656
- package/dist/camunda-cloud-modeler.production.min.js +34 -34
- package/dist/camunda-cloud-navigated-viewer.development.js +85 -18
- package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-viewer.development.js +85 -18
- package/dist/camunda-cloud-viewer.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +529 -587
- package/dist/camunda-platform-modeler.production.min.js +33 -33
- package/dist/camunda-platform-navigated-viewer.development.js +85 -18
- package/dist/camunda-platform-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-platform-viewer.development.js +85 -18
- package/dist/camunda-platform-viewer.production.min.js +1 -1
- package/package.json +5 -5
|
@@ -2350,7 +2350,7 @@
|
|
|
2350
2350
|
}
|
|
2351
2351
|
|
|
2352
2352
|
/**
|
|
2353
|
-
* @typedef {import('./index').InjectAnnotated } InjectAnnotated
|
|
2353
|
+
* @typedef {import('./index.js').InjectAnnotated } InjectAnnotated
|
|
2354
2354
|
*/
|
|
2355
2355
|
|
|
2356
2356
|
/**
|
|
@@ -2420,9 +2420,9 @@
|
|
|
2420
2420
|
}
|
|
2421
2421
|
|
|
2422
2422
|
/**
|
|
2423
|
-
* @typedef { import('./index').ModuleDeclaration } ModuleDeclaration
|
|
2424
|
-
* @typedef { import('./index').ModuleDefinition } ModuleDefinition
|
|
2425
|
-
* @typedef { import('./index').InjectorContext } InjectorContext
|
|
2423
|
+
* @typedef { import('./index.js').ModuleDeclaration } ModuleDeclaration
|
|
2424
|
+
* @typedef { import('./index.js').ModuleDefinition } ModuleDefinition
|
|
2425
|
+
* @typedef { import('./index.js').InjectorContext } InjectorContext
|
|
2426
2426
|
*/
|
|
2427
2427
|
|
|
2428
2428
|
/**
|
|
@@ -2525,11 +2525,20 @@
|
|
|
2525
2525
|
};
|
|
2526
2526
|
}
|
|
2527
2527
|
|
|
2528
|
-
|
|
2528
|
+
/**
|
|
2529
|
+
* Instantiate the given type, injecting dependencies.
|
|
2530
|
+
*
|
|
2531
|
+
* @template T
|
|
2532
|
+
*
|
|
2533
|
+
* @param { Function | [...string[], Function ]} type
|
|
2534
|
+
*
|
|
2535
|
+
* @return T
|
|
2536
|
+
*/
|
|
2537
|
+
function instantiate(type) {
|
|
2529
2538
|
const {
|
|
2530
2539
|
fn,
|
|
2531
2540
|
dependencies
|
|
2532
|
-
} = fnDef(
|
|
2541
|
+
} = fnDef(type);
|
|
2533
2542
|
|
|
2534
2543
|
// instantiate var args constructor
|
|
2535
2544
|
const Constructor = Function.prototype.bind.apply(fn, [ null ].concat(dependencies));
|
|
@@ -2537,6 +2546,17 @@
|
|
|
2537
2546
|
return new Constructor();
|
|
2538
2547
|
}
|
|
2539
2548
|
|
|
2549
|
+
/**
|
|
2550
|
+
* Invoke the given function, injecting dependencies. Return the result.
|
|
2551
|
+
*
|
|
2552
|
+
* @template T
|
|
2553
|
+
*
|
|
2554
|
+
* @param { Function | [...string[], Function ]} func
|
|
2555
|
+
* @param { Object } [context]
|
|
2556
|
+
* @param { Object } [locals]
|
|
2557
|
+
*
|
|
2558
|
+
* @return {T} invocation result
|
|
2559
|
+
*/
|
|
2540
2560
|
function invoke(func, context, locals) {
|
|
2541
2561
|
const {
|
|
2542
2562
|
fn,
|
|
@@ -3817,35 +3837,6 @@
|
|
|
3817
3837
|
};
|
|
3818
3838
|
}
|
|
3819
3839
|
|
|
3820
|
-
function getDefaultExportFromCjs (x) {
|
|
3821
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
3822
|
-
}
|
|
3823
|
-
|
|
3824
|
-
function getAugmentedNamespace(n) {
|
|
3825
|
-
if (n.__esModule) return n;
|
|
3826
|
-
var f = n.default;
|
|
3827
|
-
if (typeof f == "function") {
|
|
3828
|
-
var a = function a () {
|
|
3829
|
-
if (this instanceof a) {
|
|
3830
|
-
return Reflect.construct(f, arguments, this.constructor);
|
|
3831
|
-
}
|
|
3832
|
-
return f.apply(this, arguments);
|
|
3833
|
-
};
|
|
3834
|
-
a.prototype = f.prototype;
|
|
3835
|
-
} else a = {};
|
|
3836
|
-
Object.defineProperty(a, '__esModule', {value: true});
|
|
3837
|
-
Object.keys(n).forEach(function (k) {
|
|
3838
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
3839
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
3840
|
-
enumerable: true,
|
|
3841
|
-
get: function () {
|
|
3842
|
-
return n[k];
|
|
3843
|
-
}
|
|
3844
|
-
});
|
|
3845
|
-
});
|
|
3846
|
-
return a;
|
|
3847
|
-
}
|
|
3848
|
-
|
|
3849
3840
|
/**
|
|
3850
3841
|
* This file contains source code adapted from Snap.svg (licensed Apache-2.0).
|
|
3851
3842
|
*
|
|
@@ -3910,7 +3901,7 @@
|
|
|
3910
3901
|
|
|
3911
3902
|
count.length >= 1e3 && delete cache[count.shift()];
|
|
3912
3903
|
count.push(args);
|
|
3913
|
-
cache[args] = f
|
|
3904
|
+
cache[args] = f(...arguments);
|
|
3914
3905
|
|
|
3915
3906
|
return cache[args];
|
|
3916
3907
|
}
|
|
@@ -3947,13 +3938,13 @@
|
|
|
3947
3938
|
});
|
|
3948
3939
|
|
|
3949
3940
|
if (name == 'm' && params.length > 2) {
|
|
3950
|
-
data.push([b
|
|
3941
|
+
data.push([ b, ...params.splice(0, 2) ]);
|
|
3951
3942
|
name = 'l';
|
|
3952
3943
|
b = b == 'm' ? 'l' : 'L';
|
|
3953
3944
|
}
|
|
3954
3945
|
|
|
3955
3946
|
while (params.length >= paramCounts[name]) {
|
|
3956
|
-
data.push([b
|
|
3947
|
+
data.push([ b, ...params.splice(0, paramCounts[name]) ]);
|
|
3957
3948
|
if (!paramCounts[name]) {
|
|
3958
3949
|
break;
|
|
3959
3950
|
}
|
|
@@ -4036,7 +4027,7 @@
|
|
|
4036
4027
|
|
|
4037
4028
|
function bezierBBox(points) {
|
|
4038
4029
|
|
|
4039
|
-
var bbox = curveBBox
|
|
4030
|
+
var bbox = curveBBox(...points);
|
|
4040
4031
|
|
|
4041
4032
|
return rectBBox(
|
|
4042
4033
|
bbox.x0,
|
|
@@ -4086,8 +4077,8 @@
|
|
|
4086
4077
|
|
|
4087
4078
|
var z2 = z / 2,
|
|
4088
4079
|
n = 12,
|
|
4089
|
-
Tvalues = [-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],
|
|
4090
|
-
Cvalues = [0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472],
|
|
4080
|
+
Tvalues = [ -.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816 ],
|
|
4081
|
+
Cvalues = [ 0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472 ],
|
|
4091
4082
|
sum = 0;
|
|
4092
4083
|
|
|
4093
4084
|
for (var i = 0; i < n; i++) {
|
|
@@ -4157,8 +4148,8 @@
|
|
|
4157
4148
|
|
|
4158
4149
|
// As an optimization, lines will have only 1 segment
|
|
4159
4150
|
|
|
4160
|
-
var l1 = bezlen
|
|
4161
|
-
l2 = bezlen
|
|
4151
|
+
var l1 = bezlen(...bez1),
|
|
4152
|
+
l2 = bezlen(...bez2),
|
|
4162
4153
|
n1 = isLine(bez1) ? 1 : ~~(l1 / 5) || 1,
|
|
4163
4154
|
n2 = isLine(bez2) ? 1 : ~~(l2 / 5) || 1,
|
|
4164
4155
|
dots1 = [],
|
|
@@ -4167,12 +4158,12 @@
|
|
|
4167
4158
|
res = justCount ? 0 : [];
|
|
4168
4159
|
|
|
4169
4160
|
for (var i = 0; i < n1 + 1; i++) {
|
|
4170
|
-
var p = findDotsAtSegment
|
|
4161
|
+
var p = findDotsAtSegment(...bez1, i / n1);
|
|
4171
4162
|
dots1.push({ x: p.x, y: p.y, t: i / n1 });
|
|
4172
4163
|
}
|
|
4173
4164
|
|
|
4174
4165
|
for (i = 0; i < n2 + 1; i++) {
|
|
4175
|
-
p = findDotsAtSegment
|
|
4166
|
+
p = findDotsAtSegment(...bez2, i / n2);
|
|
4176
4167
|
dots2.push({ x: p.x, y: p.y, t: i / n2 });
|
|
4177
4168
|
}
|
|
4178
4169
|
|
|
@@ -4267,11 +4258,11 @@
|
|
|
4267
4258
|
} else {
|
|
4268
4259
|
|
|
4269
4260
|
if (pi[0] == 'C') {
|
|
4270
|
-
bez1 = [x1, y1
|
|
4261
|
+
bez1 = [ x1, y1, ...pi.slice(1) ];
|
|
4271
4262
|
x1 = bez1[6];
|
|
4272
4263
|
y1 = bez1[7];
|
|
4273
4264
|
} else {
|
|
4274
|
-
bez1 = [x1, y1, x1, y1, x1m, y1m, x1m, y1m];
|
|
4265
|
+
bez1 = [ x1, y1, x1, y1, x1m, y1m, x1m, y1m ];
|
|
4275
4266
|
x1 = x1m;
|
|
4276
4267
|
y1 = y1m;
|
|
4277
4268
|
}
|
|
@@ -4285,11 +4276,11 @@
|
|
|
4285
4276
|
} else {
|
|
4286
4277
|
|
|
4287
4278
|
if (pj[0] == 'C') {
|
|
4288
|
-
bez2 = [x2, y2
|
|
4279
|
+
bez2 = [ x2, y2, ...pj.slice(1) ];
|
|
4289
4280
|
x2 = bez2[6];
|
|
4290
4281
|
y2 = bez2[7];
|
|
4291
4282
|
} else {
|
|
4292
|
-
bez2 = [x2, y2, x2, y2, x2m, y2m, x2m, y2m];
|
|
4283
|
+
bez2 = [ x2, y2, x2, y2, x2m, y2m, x2m, y2m ];
|
|
4293
4284
|
x2 = x2m;
|
|
4294
4285
|
y2 = y2m;
|
|
4295
4286
|
}
|
|
@@ -4330,7 +4321,7 @@
|
|
|
4330
4321
|
}
|
|
4331
4322
|
|
|
4332
4323
|
if (!pathArray || !pathArray.length) {
|
|
4333
|
-
return [['M', 0, 0]];
|
|
4324
|
+
return [ [ 'M', 0, 0 ] ];
|
|
4334
4325
|
}
|
|
4335
4326
|
|
|
4336
4327
|
var res = [],
|
|
@@ -4347,7 +4338,7 @@
|
|
|
4347
4338
|
mx = x;
|
|
4348
4339
|
my = y;
|
|
4349
4340
|
start++;
|
|
4350
|
-
res[0] = ['M', x, y];
|
|
4341
|
+
res[0] = [ 'M', x, y ];
|
|
4351
4342
|
}
|
|
4352
4343
|
|
|
4353
4344
|
for (var r, pa, i = start, ii = pathArray.length; i < ii; i++) {
|
|
@@ -4516,7 +4507,7 @@
|
|
|
4516
4507
|
f2 = f1 + _120 * (sweep_flag && f2 > f1 ? 1 : -1);
|
|
4517
4508
|
x2 = cx + rx * math.cos(f2);
|
|
4518
4509
|
y2 = cy + ry * math.sin(f2);
|
|
4519
|
-
res = arcToCurve(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [f2, f2old, cx, cy]);
|
|
4510
|
+
res = arcToCurve(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [ f2, f2old, cx, cy ]);
|
|
4520
4511
|
}
|
|
4521
4512
|
|
|
4522
4513
|
df = f2 - f1;
|
|
@@ -4528,18 +4519,18 @@
|
|
|
4528
4519
|
t = math.tan(df / 4),
|
|
4529
4520
|
hx = 4 / 3 * rx * t,
|
|
4530
4521
|
hy = 4 / 3 * ry * t,
|
|
4531
|
-
m1 = [x1, y1],
|
|
4532
|
-
m2 = [x1 + hx * s1, y1 - hy * c1],
|
|
4533
|
-
m3 = [x2 + hx * s2, y2 - hy * c2],
|
|
4534
|
-
m4 = [x2, y2];
|
|
4522
|
+
m1 = [ x1, y1 ],
|
|
4523
|
+
m2 = [ x1 + hx * s1, y1 - hy * c1 ],
|
|
4524
|
+
m3 = [ x2 + hx * s2, y2 - hy * c2 ],
|
|
4525
|
+
m4 = [ x2, y2 ];
|
|
4535
4526
|
|
|
4536
4527
|
m2[0] = 2 * m1[0] - m2[0];
|
|
4537
4528
|
m2[1] = 2 * m1[1] - m2[1];
|
|
4538
4529
|
|
|
4539
4530
|
if (recursive) {
|
|
4540
|
-
return [m2, m3, m4].concat(res);
|
|
4531
|
+
return [ m2, m3, m4 ].concat(res);
|
|
4541
4532
|
} else {
|
|
4542
|
-
res = [m2, m3, m4].concat(res).join().split(',');
|
|
4533
|
+
res = [ m2, m3, m4 ].concat(res).join().split(',');
|
|
4543
4534
|
var newres = [];
|
|
4544
4535
|
|
|
4545
4536
|
for (var i = 0, ii = res.length; i < ii; i++) {
|
|
@@ -4556,7 +4547,7 @@
|
|
|
4556
4547
|
// Modifications: https://github.com/timo22345
|
|
4557
4548
|
function curveBBox(x0, y0, x1, y1, x2, y2, x3, y3) {
|
|
4558
4549
|
var tvalues = [],
|
|
4559
|
-
bounds = [[], []],
|
|
4550
|
+
bounds = [ [], [] ],
|
|
4560
4551
|
a, b, c, t, t1, t2, b2ac, sqrtb2ac;
|
|
4561
4552
|
|
|
4562
4553
|
for (var i = 0; i < 2; ++i) {
|
|
@@ -4624,10 +4615,10 @@
|
|
|
4624
4615
|
bounds[0].length = bounds[1].length = jlen + 2;
|
|
4625
4616
|
|
|
4626
4617
|
return {
|
|
4627
|
-
x0: mmin
|
|
4628
|
-
y0: mmin
|
|
4629
|
-
x1: mmax
|
|
4630
|
-
y1: mmax
|
|
4618
|
+
x0: mmin(...bounds[0]),
|
|
4619
|
+
y0: mmin(...bounds[1]),
|
|
4620
|
+
x1: mmax(...bounds[0]),
|
|
4621
|
+
y1: mmax(...bounds[1])
|
|
4631
4622
|
};
|
|
4632
4623
|
}
|
|
4633
4624
|
|
|
@@ -4646,7 +4637,7 @@
|
|
|
4646
4637
|
var nx, ny;
|
|
4647
4638
|
|
|
4648
4639
|
if (!path) {
|
|
4649
|
-
return ['C', d.x, d.y, d.x, d.y, d.x, d.y];
|
|
4640
|
+
return [ 'C', d.x, d.y, d.x, d.y, d.x, d.y ];
|
|
4650
4641
|
}
|
|
4651
4642
|
|
|
4652
4643
|
!(path[0] in { T: 1, Q: 1 }) && (d.qx = d.qy = null);
|
|
@@ -4657,7 +4648,7 @@
|
|
|
4657
4648
|
d.Y = path[2];
|
|
4658
4649
|
break;
|
|
4659
4650
|
case 'A':
|
|
4660
|
-
path = ['C'
|
|
4651
|
+
path = [ 'C', ...arcToCurve(d.x, d.y, ...path.slice(1)) ];
|
|
4661
4652
|
break;
|
|
4662
4653
|
case 'S':
|
|
4663
4654
|
if (pathCommand == 'C' || pathCommand == 'S') {
|
|
@@ -4676,7 +4667,7 @@
|
|
|
4676
4667
|
nx = d.x;
|
|
4677
4668
|
ny = d.y;
|
|
4678
4669
|
}
|
|
4679
|
-
path = ['C', nx, ny
|
|
4670
|
+
path = [ 'C', nx, ny, ...path.slice(1) ];
|
|
4680
4671
|
break;
|
|
4681
4672
|
case 'T':
|
|
4682
4673
|
if (pathCommand == 'Q' || pathCommand == 'T') {
|
|
@@ -4695,24 +4686,24 @@
|
|
|
4695
4686
|
d.qx = d.x;
|
|
4696
4687
|
d.qy = d.y;
|
|
4697
4688
|
}
|
|
4698
|
-
path = ['C'
|
|
4689
|
+
path = [ 'C', ...qubicToCurve(d.x, d.y, d.qx, d.qy, path[1], path[2]) ];
|
|
4699
4690
|
break;
|
|
4700
4691
|
case 'Q':
|
|
4701
4692
|
d.qx = path[1];
|
|
4702
4693
|
d.qy = path[2];
|
|
4703
|
-
path = ['C'
|
|
4694
|
+
path = [ 'C', ...qubicToCurve(d.x, d.y, path[1], path[2], path[3], path[4]) ];
|
|
4704
4695
|
break;
|
|
4705
4696
|
case 'L':
|
|
4706
|
-
path = ['C'
|
|
4697
|
+
path = [ 'C', ...lineToCurve(d.x, d.y, path[1], path[2]) ];
|
|
4707
4698
|
break;
|
|
4708
4699
|
case 'H':
|
|
4709
|
-
path = ['C'
|
|
4700
|
+
path = [ 'C', ...lineToCurve(d.x, d.y, path[1], d.y) ];
|
|
4710
4701
|
break;
|
|
4711
4702
|
case 'V':
|
|
4712
|
-
path = ['C'
|
|
4703
|
+
path = [ 'C', ...lineToCurve(d.x, d.y, d.x, path[1]) ];
|
|
4713
4704
|
break;
|
|
4714
4705
|
case 'Z':
|
|
4715
|
-
path = ['C'
|
|
4706
|
+
path = [ 'C', ...lineToCurve(d.x, d.y, d.X, d.Y) ];
|
|
4716
4707
|
break;
|
|
4717
4708
|
}
|
|
4718
4709
|
|
|
@@ -4727,7 +4718,7 @@
|
|
|
4727
4718
|
|
|
4728
4719
|
while (pi.length) {
|
|
4729
4720
|
pathCommands[i] = 'A'; // if created multiple C:s, their original seg is saved
|
|
4730
|
-
pp.splice(i++, 0, ['C'
|
|
4721
|
+
pp.splice(i++, 0, [ 'C', ...pi.splice(0, 6) ]);
|
|
4731
4722
|
}
|
|
4732
4723
|
|
|
4733
4724
|
pp.splice(i, 1);
|
|
@@ -4770,10 +4761,6 @@
|
|
|
4770
4761
|
return curvedPath;
|
|
4771
4762
|
}
|
|
4772
4763
|
|
|
4773
|
-
var intersect = findPathIntersections;
|
|
4774
|
-
|
|
4775
|
-
var intersectPaths = /*@__PURE__*/getDefaultExportFromCjs(intersect);
|
|
4776
|
-
|
|
4777
4764
|
/**
|
|
4778
4765
|
* Checks whether a value is an instance of Connection.
|
|
4779
4766
|
*
|
|
@@ -5051,7 +5038,7 @@
|
|
|
5051
5038
|
|
|
5052
5039
|
|
|
5053
5040
|
function getIntersections(a, b) {
|
|
5054
|
-
return
|
|
5041
|
+
return findPathIntersections(a, b);
|
|
5055
5042
|
}
|
|
5056
5043
|
|
|
5057
5044
|
|
|
@@ -6838,6 +6825,35 @@
|
|
|
6838
6825
|
}
|
|
6839
6826
|
};
|
|
6840
6827
|
|
|
6828
|
+
function getDefaultExportFromCjs (x) {
|
|
6829
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
6830
|
+
}
|
|
6831
|
+
|
|
6832
|
+
function getAugmentedNamespace(n) {
|
|
6833
|
+
if (n.__esModule) return n;
|
|
6834
|
+
var f = n.default;
|
|
6835
|
+
if (typeof f == "function") {
|
|
6836
|
+
var a = function a () {
|
|
6837
|
+
if (this instanceof a) {
|
|
6838
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
6839
|
+
}
|
|
6840
|
+
return f.apply(this, arguments);
|
|
6841
|
+
};
|
|
6842
|
+
a.prototype = f.prototype;
|
|
6843
|
+
} else a = {};
|
|
6844
|
+
Object.defineProperty(a, '__esModule', {value: true});
|
|
6845
|
+
Object.keys(n).forEach(function (k) {
|
|
6846
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
6847
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
6848
|
+
enumerable: true,
|
|
6849
|
+
get: function () {
|
|
6850
|
+
return n[k];
|
|
6851
|
+
}
|
|
6852
|
+
});
|
|
6853
|
+
});
|
|
6854
|
+
return a;
|
|
6855
|
+
}
|
|
6856
|
+
|
|
6841
6857
|
var objectRefs = {exports: {}};
|
|
6842
6858
|
|
|
6843
6859
|
var collection = {};
|
|
@@ -17964,6 +17980,26 @@
|
|
|
17964
17980
|
return true;
|
|
17965
17981
|
}
|
|
17966
17982
|
|
|
17983
|
+
/**
|
|
17984
|
+
* @param {Element} element
|
|
17985
|
+
*
|
|
17986
|
+
* @return {boolean}
|
|
17987
|
+
*/
|
|
17988
|
+
function isHorizontal$4(element) {
|
|
17989
|
+
|
|
17990
|
+
if (!is$6(element, 'bpmn:Participant') && !is$6(element, 'bpmn:Lane')) {
|
|
17991
|
+
return undefined;
|
|
17992
|
+
}
|
|
17993
|
+
|
|
17994
|
+
var isHorizontal = getDi$1(element).isHorizontal;
|
|
17995
|
+
|
|
17996
|
+
if (isHorizontal === undefined) {
|
|
17997
|
+
return true;
|
|
17998
|
+
}
|
|
17999
|
+
|
|
18000
|
+
return isHorizontal;
|
|
18001
|
+
}
|
|
18002
|
+
|
|
17967
18003
|
/**
|
|
17968
18004
|
* @param {Element} element
|
|
17969
18005
|
*
|
|
@@ -19502,10 +19538,12 @@
|
|
|
19502
19538
|
}
|
|
19503
19539
|
|
|
19504
19540
|
function renderLaneLabel(parentGfx, text, element, attrs = {}) {
|
|
19541
|
+
var isHorizontalLane = isHorizontal$4(element);
|
|
19542
|
+
|
|
19505
19543
|
var textBox = renderLabel(parentGfx, text, {
|
|
19506
19544
|
box: {
|
|
19507
19545
|
height: 30,
|
|
19508
|
-
width: getHeight(element, attrs),
|
|
19546
|
+
width: isHorizontalLane ? getHeight(element, attrs) : getWidth(element, attrs),
|
|
19509
19547
|
},
|
|
19510
19548
|
align: 'center-middle',
|
|
19511
19549
|
style: {
|
|
@@ -19513,9 +19551,10 @@
|
|
|
19513
19551
|
}
|
|
19514
19552
|
});
|
|
19515
19553
|
|
|
19516
|
-
|
|
19517
|
-
|
|
19518
|
-
|
|
19554
|
+
if (isHorizontalLane) {
|
|
19555
|
+
var top = -1 * getHeight(element, attrs);
|
|
19556
|
+
transform(textBox, 0, -top, 270);
|
|
19557
|
+
}
|
|
19519
19558
|
}
|
|
19520
19559
|
|
|
19521
19560
|
function renderActivity(parentGfx, element, attrs = {}) {
|
|
@@ -20233,12 +20272,13 @@
|
|
|
20233
20272
|
var participant = renderLane(parentGfx, element, attrs);
|
|
20234
20273
|
|
|
20235
20274
|
var expandedParticipant = isExpanded$1(element);
|
|
20275
|
+
var horizontalParticipant = isHorizontal$4(element);
|
|
20236
20276
|
|
|
20237
20277
|
var semantic = getBusinessObject$2(element),
|
|
20238
20278
|
name = semantic.get('name');
|
|
20239
20279
|
|
|
20240
20280
|
if (expandedParticipant) {
|
|
20241
|
-
|
|
20281
|
+
var waypoints = horizontalParticipant ? [
|
|
20242
20282
|
{
|
|
20243
20283
|
x: 30,
|
|
20244
20284
|
y: 0
|
|
@@ -20247,20 +20287,43 @@
|
|
|
20247
20287
|
x: 30,
|
|
20248
20288
|
y: getHeight(element, attrs)
|
|
20249
20289
|
}
|
|
20250
|
-
]
|
|
20290
|
+
] : [
|
|
20291
|
+
{
|
|
20292
|
+
x: 0,
|
|
20293
|
+
y: 30
|
|
20294
|
+
},
|
|
20295
|
+
{
|
|
20296
|
+
x: getWidth(element, attrs),
|
|
20297
|
+
y: 30
|
|
20298
|
+
}
|
|
20299
|
+
];
|
|
20300
|
+
|
|
20301
|
+
drawLine(parentGfx, waypoints, {
|
|
20251
20302
|
stroke: getStrokeColor$1(element, defaultStrokeColor, attrs.stroke),
|
|
20252
20303
|
strokeWidth: PARTICIPANT_STROKE_WIDTH
|
|
20253
20304
|
});
|
|
20254
20305
|
|
|
20255
20306
|
renderLaneLabel(parentGfx, name, element, attrs);
|
|
20256
20307
|
} else {
|
|
20257
|
-
|
|
20258
|
-
|
|
20308
|
+
var bounds = getBounds$1(element, attrs);
|
|
20309
|
+
|
|
20310
|
+
if (!horizontalParticipant) {
|
|
20311
|
+
bounds.height = getWidth(element, attrs);
|
|
20312
|
+
bounds.width = getHeight(element, attrs);
|
|
20313
|
+
}
|
|
20314
|
+
|
|
20315
|
+
var textBox = renderLabel(parentGfx, name, {
|
|
20316
|
+
box: bounds,
|
|
20259
20317
|
align: 'center-middle',
|
|
20260
20318
|
style: {
|
|
20261
20319
|
fill: getLabelColor(element, defaultLabelColor, defaultStrokeColor, attrs.stroke)
|
|
20262
20320
|
}
|
|
20263
20321
|
});
|
|
20322
|
+
|
|
20323
|
+
if (!horizontalParticipant) {
|
|
20324
|
+
var top = -1 * getHeight(element, attrs);
|
|
20325
|
+
transform(textBox, 0, -top, 270);
|
|
20326
|
+
}
|
|
20264
20327
|
}
|
|
20265
20328
|
|
|
20266
20329
|
if (semantic.get('participantMultiplicity')) {
|
|
@@ -30577,6 +30640,10 @@
|
|
|
30577
30640
|
return (entry.rank || 0) >= 0;
|
|
30578
30641
|
}
|
|
30579
30642
|
|
|
30643
|
+
if (entry.searchable === false) {
|
|
30644
|
+
return false;
|
|
30645
|
+
}
|
|
30646
|
+
|
|
30580
30647
|
const search = [
|
|
30581
30648
|
entry.description || '',
|
|
30582
30649
|
entry.label || '',
|
|
@@ -32858,7 +32925,7 @@
|
|
|
32858
32925
|
* @typedef {import('../../core/EventBus').default} EventBus
|
|
32859
32926
|
*/
|
|
32860
32927
|
|
|
32861
|
-
var HIGH_PRIORITY$
|
|
32928
|
+
var HIGH_PRIORITY$o = 1500;
|
|
32862
32929
|
|
|
32863
32930
|
|
|
32864
32931
|
/**
|
|
@@ -32926,7 +32993,7 @@
|
|
|
32926
32993
|
*/
|
|
32927
32994
|
eventBus.on('drag.start', function(event) {
|
|
32928
32995
|
|
|
32929
|
-
eventBus.once('drag.move', HIGH_PRIORITY$
|
|
32996
|
+
eventBus.once('drag.move', HIGH_PRIORITY$o, function(event) {
|
|
32930
32997
|
|
|
32931
32998
|
ensureHover(event);
|
|
32932
32999
|
|
|
@@ -32957,7 +33024,7 @@
|
|
|
32957
33024
|
hover = event.element;
|
|
32958
33025
|
});
|
|
32959
33026
|
|
|
32960
|
-
eventBus.on('element.hover', HIGH_PRIORITY$
|
|
33027
|
+
eventBus.on('element.hover', HIGH_PRIORITY$o, function(event) {
|
|
32961
33028
|
|
|
32962
33029
|
// (3) am I on an element still?
|
|
32963
33030
|
if (hover) {
|
|
@@ -33874,7 +33941,7 @@
|
|
|
33874
33941
|
*/
|
|
33875
33942
|
function getPathIntersection(waypoints, reference) {
|
|
33876
33943
|
|
|
33877
|
-
var intersections =
|
|
33944
|
+
var intersections = findPathIntersections(circlePath(reference, INTERSECTION_THRESHOLD$1), linePath(waypoints));
|
|
33878
33945
|
|
|
33879
33946
|
var a = intersections[0],
|
|
33880
33947
|
b = intersections[intersections.length - 1],
|
|
@@ -34909,7 +34976,7 @@
|
|
|
34909
34976
|
MARKER_CONNECT_UPDATING$1 = 'djs-updating',
|
|
34910
34977
|
MARKER_DRAGGER = 'djs-dragging';
|
|
34911
34978
|
|
|
34912
|
-
var HIGH_PRIORITY$
|
|
34979
|
+
var HIGH_PRIORITY$n = 1100;
|
|
34913
34980
|
|
|
34914
34981
|
/**
|
|
34915
34982
|
* Preview connection while moving bendpoints.
|
|
@@ -34977,7 +35044,7 @@
|
|
|
34977
35044
|
eventBus.on([
|
|
34978
35045
|
'bendpoint.move.out',
|
|
34979
35046
|
'bendpoint.move.cleanup'
|
|
34980
|
-
], HIGH_PRIORITY$
|
|
35047
|
+
], HIGH_PRIORITY$n, function(event) {
|
|
34981
35048
|
var context = event.context,
|
|
34982
35049
|
hover = context.hover,
|
|
34983
35050
|
target = context.target;
|
|
@@ -35063,7 +35130,7 @@
|
|
|
35063
35130
|
eventBus.on([
|
|
35064
35131
|
'bendpoint.move.end',
|
|
35065
35132
|
'bendpoint.move.cancel'
|
|
35066
|
-
], HIGH_PRIORITY$
|
|
35133
|
+
], HIGH_PRIORITY$n, function(event) {
|
|
35067
35134
|
var context = event.context,
|
|
35068
35135
|
connection = context.connection,
|
|
35069
35136
|
draggerGfx = context.draggerGfx,
|
|
@@ -36079,7 +36146,7 @@
|
|
|
36079
36146
|
* @typedef {import('../../core/EventBus').default} EventBus
|
|
36080
36147
|
*/
|
|
36081
36148
|
|
|
36082
|
-
var HIGH_PRIORITY$
|
|
36149
|
+
var HIGH_PRIORITY$m = 1100,
|
|
36083
36150
|
LOW_PRIORITY$p = 900;
|
|
36084
36151
|
|
|
36085
36152
|
var MARKER_OK$3 = 'connect-ok',
|
|
@@ -36140,7 +36207,7 @@
|
|
|
36140
36207
|
eventBus.on([
|
|
36141
36208
|
'connect.out',
|
|
36142
36209
|
'connect.cleanup'
|
|
36143
|
-
], HIGH_PRIORITY$
|
|
36210
|
+
], HIGH_PRIORITY$m, function(event) {
|
|
36144
36211
|
var hover = event.hover;
|
|
36145
36212
|
|
|
36146
36213
|
if (hover) {
|
|
@@ -37466,7 +37533,7 @@
|
|
|
37466
37533
|
|
|
37467
37534
|
var PARTICIPANT_BORDER_WIDTH = 30;
|
|
37468
37535
|
|
|
37469
|
-
var HIGH_PRIORITY$
|
|
37536
|
+
var HIGH_PRIORITY$l = 2000;
|
|
37470
37537
|
|
|
37471
37538
|
|
|
37472
37539
|
/**
|
|
@@ -37483,7 +37550,7 @@
|
|
|
37483
37550
|
eventBus.on([
|
|
37484
37551
|
'create.start',
|
|
37485
37552
|
'shape.move.start'
|
|
37486
|
-
], HIGH_PRIORITY$
|
|
37553
|
+
], HIGH_PRIORITY$l, function(event) {
|
|
37487
37554
|
var context = event.context,
|
|
37488
37555
|
shape = context.shape,
|
|
37489
37556
|
rootElement = canvas.getRootElement();
|
|
@@ -37518,7 +37585,7 @@
|
|
|
37518
37585
|
});
|
|
37519
37586
|
|
|
37520
37587
|
// force hovering process when creating first participant
|
|
37521
|
-
eventBus.on('create.start', HIGH_PRIORITY$
|
|
37588
|
+
eventBus.on('create.start', HIGH_PRIORITY$l, function(event) {
|
|
37522
37589
|
var context = event.context,
|
|
37523
37590
|
shape = context.shape,
|
|
37524
37591
|
rootElement = canvas.getRootElement(),
|
|
@@ -37530,7 +37597,7 @@
|
|
|
37530
37597
|
}
|
|
37531
37598
|
|
|
37532
37599
|
if (is$6(shape, 'bpmn:Participant') && is$6(rootElement, 'bpmn:Process')) {
|
|
37533
|
-
eventBus.on('element.hover', HIGH_PRIORITY$
|
|
37600
|
+
eventBus.on('element.hover', HIGH_PRIORITY$l, ensureHoveringProcess);
|
|
37534
37601
|
|
|
37535
37602
|
eventBus.once('create.cleanup', function() {
|
|
37536
37603
|
eventBus.off('element.hover', ensureHoveringProcess);
|
|
@@ -37551,7 +37618,7 @@
|
|
|
37551
37618
|
|
|
37552
37619
|
// when creating mutliple elements through `elements.create` parent must be set to collaboration
|
|
37553
37620
|
// and passed to `shape.create` as hint
|
|
37554
|
-
this.preExecute('elements.create', HIGH_PRIORITY$
|
|
37621
|
+
this.preExecute('elements.create', HIGH_PRIORITY$l, function(context) {
|
|
37555
37622
|
var elements = context.elements,
|
|
37556
37623
|
parent = context.parent,
|
|
37557
37624
|
participant = findParticipant(elements),
|
|
@@ -38973,7 +39040,7 @@
|
|
|
38973
39040
|
* @typedef {import('diagram-js/lib/core/Canvas').default} Canvas
|
|
38974
39041
|
*/
|
|
38975
39042
|
|
|
38976
|
-
var HIGH_PRIORITY$
|
|
39043
|
+
var HIGH_PRIORITY$k = 1500;
|
|
38977
39044
|
var HIGHEST_PRIORITY = 2000;
|
|
38978
39045
|
|
|
38979
39046
|
|
|
@@ -38995,7 +39062,7 @@
|
|
|
38995
39062
|
'shape.move.move',
|
|
38996
39063
|
'shape.move.out',
|
|
38997
39064
|
'shape.move.end'
|
|
38998
|
-
], HIGH_PRIORITY$
|
|
39065
|
+
], HIGH_PRIORITY$k, function(event) {
|
|
38999
39066
|
var context = event.context,
|
|
39000
39067
|
shape = context.shape || event.shape,
|
|
39001
39068
|
hover = event.hover;
|
|
@@ -39026,7 +39093,7 @@
|
|
|
39026
39093
|
'global-connect.out',
|
|
39027
39094
|
'global-connect.end',
|
|
39028
39095
|
'global-connect.cleanup'
|
|
39029
|
-
], HIGH_PRIORITY$
|
|
39096
|
+
], HIGH_PRIORITY$k, function(event) {
|
|
39030
39097
|
var hover = event.hover;
|
|
39031
39098
|
|
|
39032
39099
|
// ensure connections start/end on bpmn:Participant,
|
|
@@ -39040,7 +39107,7 @@
|
|
|
39040
39107
|
|
|
39041
39108
|
eventBus.on([
|
|
39042
39109
|
'bendpoint.move.hover'
|
|
39043
|
-
], HIGH_PRIORITY$
|
|
39110
|
+
], HIGH_PRIORITY$k, function(event) {
|
|
39044
39111
|
var context = event.context,
|
|
39045
39112
|
hover = event.hover,
|
|
39046
39113
|
type = context.type;
|
|
@@ -39056,7 +39123,7 @@
|
|
|
39056
39123
|
|
|
39057
39124
|
eventBus.on([
|
|
39058
39125
|
'connect.start'
|
|
39059
|
-
], HIGH_PRIORITY$
|
|
39126
|
+
], HIGH_PRIORITY$k, function(event) {
|
|
39060
39127
|
var context = event.context,
|
|
39061
39128
|
start = context.start;
|
|
39062
39129
|
|
|
@@ -39639,10 +39706,15 @@
|
|
|
39639
39706
|
bo = getBusinessObject$2(shape),
|
|
39640
39707
|
di = getDi$1(shape);
|
|
39641
39708
|
|
|
39642
|
-
if (isAny$1(bo, elementTypesToUpdate)
|
|
39709
|
+
if (isAny$1(bo, elementTypesToUpdate)) {
|
|
39710
|
+
var isHorizontal = di.get('isHorizontal');
|
|
39711
|
+
|
|
39712
|
+
if (isHorizontal === undefined) {
|
|
39713
|
+
isHorizontal = true;
|
|
39714
|
+
}
|
|
39643
39715
|
|
|
39644
39716
|
// set attribute directly to avoid modeling#updateProperty side effects
|
|
39645
|
-
di.set('isHorizontal',
|
|
39717
|
+
di.set('isHorizontal', isHorizontal);
|
|
39646
39718
|
}
|
|
39647
39719
|
});
|
|
39648
39720
|
|
|
@@ -41506,7 +41578,7 @@
|
|
|
41506
41578
|
'selection'
|
|
41507
41579
|
];
|
|
41508
41580
|
|
|
41509
|
-
var HIGH_PRIORITY$
|
|
41581
|
+
var HIGH_PRIORITY$j = 1500;
|
|
41510
41582
|
|
|
41511
41583
|
/**
|
|
41512
41584
|
* @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
|
|
@@ -41549,7 +41621,7 @@
|
|
|
41549
41621
|
* @param {EventBus} eventBus
|
|
41550
41622
|
*/
|
|
41551
41623
|
function ResizeBehavior$1(eventBus) {
|
|
41552
|
-
eventBus.on('resize.start', HIGH_PRIORITY$
|
|
41624
|
+
eventBus.on('resize.start', HIGH_PRIORITY$j, function(event) {
|
|
41553
41625
|
var context = event.context,
|
|
41554
41626
|
shape = context.shape,
|
|
41555
41627
|
direction = context.direction,
|
|
@@ -42092,7 +42164,7 @@
|
|
|
42092
42164
|
*/
|
|
42093
42165
|
|
|
42094
42166
|
var LOW_PRIORITY$k = 400;
|
|
42095
|
-
var HIGH_PRIORITY$
|
|
42167
|
+
var HIGH_PRIORITY$i = 600;
|
|
42096
42168
|
|
|
42097
42169
|
var DEFAULT_POSITION = {
|
|
42098
42170
|
x: 180,
|
|
@@ -42379,7 +42451,7 @@
|
|
|
42379
42451
|
}, true);
|
|
42380
42452
|
|
|
42381
42453
|
// move elements between planes
|
|
42382
|
-
this.postExecuted('shape.toggleCollapse', HIGH_PRIORITY$
|
|
42454
|
+
this.postExecuted('shape.toggleCollapse', HIGH_PRIORITY$i, function(context) {
|
|
42383
42455
|
var shape = context.shape;
|
|
42384
42456
|
|
|
42385
42457
|
if (!is$6(shape, 'bpmn:SubProcess')) {
|
|
@@ -43027,7 +43099,7 @@
|
|
|
43027
43099
|
*/
|
|
43028
43100
|
|
|
43029
43101
|
var LOW_PRIORITY$i = 500,
|
|
43030
|
-
HIGH_PRIORITY$
|
|
43102
|
+
HIGH_PRIORITY$h = 5000;
|
|
43031
43103
|
|
|
43032
43104
|
|
|
43033
43105
|
/**
|
|
@@ -43101,7 +43173,7 @@
|
|
|
43101
43173
|
|
|
43102
43174
|
// listen to a lot of stuff to group lane updates
|
|
43103
43175
|
|
|
43104
|
-
this.preExecute(laneRefUpdateEvents, HIGH_PRIORITY$
|
|
43176
|
+
this.preExecute(laneRefUpdateEvents, HIGH_PRIORITY$h, function(event) {
|
|
43105
43177
|
initContext();
|
|
43106
43178
|
});
|
|
43107
43179
|
|
|
@@ -44429,7 +44501,7 @@
|
|
|
44429
44501
|
* @typedef {import('diagram-js/lib/core/Canvas').default} Canvas
|
|
44430
44502
|
*/
|
|
44431
44503
|
|
|
44432
|
-
var HIGH_PRIORITY$
|
|
44504
|
+
var HIGH_PRIORITY$g = 2000;
|
|
44433
44505
|
|
|
44434
44506
|
/**
|
|
44435
44507
|
* @param {EventBus} eventBus
|
|
@@ -44437,7 +44509,7 @@
|
|
|
44437
44509
|
*/
|
|
44438
44510
|
function BpmnDiOrdering(eventBus, canvas) {
|
|
44439
44511
|
|
|
44440
|
-
eventBus.on('saveXML.start', HIGH_PRIORITY$
|
|
44512
|
+
eventBus.on('saveXML.start', HIGH_PRIORITY$g, orderDi);
|
|
44441
44513
|
|
|
44442
44514
|
function orderDi() {
|
|
44443
44515
|
var rootElements = canvas.getRootElements();
|
|
@@ -44804,7 +44876,7 @@
|
|
|
44804
44876
|
|
|
44805
44877
|
var PREFIX = 'create';
|
|
44806
44878
|
|
|
44807
|
-
var HIGH_PRIORITY$
|
|
44879
|
+
var HIGH_PRIORITY$f = 2000;
|
|
44808
44880
|
|
|
44809
44881
|
|
|
44810
44882
|
/**
|
|
@@ -45032,7 +45104,7 @@
|
|
|
45032
45104
|
eventBus.on('create.init', function() {
|
|
45033
45105
|
eventBus.on('elements.changed', cancel);
|
|
45034
45106
|
|
|
45035
|
-
eventBus.once([ 'create.cancel', 'create.end' ], HIGH_PRIORITY$
|
|
45107
|
+
eventBus.once([ 'create.cancel', 'create.end' ], HIGH_PRIORITY$f, function() {
|
|
45036
45108
|
eventBus.off('elements.changed', cancel);
|
|
45037
45109
|
});
|
|
45038
45110
|
});
|
|
@@ -47172,7 +47244,7 @@
|
|
|
47172
47244
|
e: 'right'
|
|
47173
47245
|
};
|
|
47174
47246
|
|
|
47175
|
-
var HIGH_PRIORITY$
|
|
47247
|
+
var HIGH_PRIORITY$e = 1500;
|
|
47176
47248
|
|
|
47177
47249
|
var DIRECTION_TO_OPPOSITE = {
|
|
47178
47250
|
n: 's',
|
|
@@ -47221,7 +47293,7 @@
|
|
|
47221
47293
|
});
|
|
47222
47294
|
});
|
|
47223
47295
|
|
|
47224
|
-
eventBus.on('spaceTool.move', HIGH_PRIORITY$
|
|
47296
|
+
eventBus.on('spaceTool.move', HIGH_PRIORITY$e , function(event) {
|
|
47225
47297
|
var context = event.context,
|
|
47226
47298
|
initialized = context.initialized;
|
|
47227
47299
|
|
|
@@ -48710,7 +48782,7 @@
|
|
|
48710
48782
|
}
|
|
48711
48783
|
|
|
48712
48784
|
var LOW_PRIORITY$d = 250,
|
|
48713
|
-
HIGH_PRIORITY$
|
|
48785
|
+
HIGH_PRIORITY$d = 1400;
|
|
48714
48786
|
|
|
48715
48787
|
/**
|
|
48716
48788
|
* @typedef {import('../../model/Types').Element} Element
|
|
@@ -48737,7 +48809,7 @@
|
|
|
48737
48809
|
|
|
48738
48810
|
// remove labels from the collection that are being
|
|
48739
48811
|
// moved with other elements anyway
|
|
48740
|
-
eventBus.on('shape.move.start', HIGH_PRIORITY$
|
|
48812
|
+
eventBus.on('shape.move.start', HIGH_PRIORITY$d, function(e) {
|
|
48741
48813
|
|
|
48742
48814
|
var context = e.context,
|
|
48743
48815
|
shapes = context.shapes,
|
|
@@ -48776,7 +48848,7 @@
|
|
|
48776
48848
|
});
|
|
48777
48849
|
|
|
48778
48850
|
// add all labels to move closure
|
|
48779
|
-
this.preExecuted('elements.move', HIGH_PRIORITY$
|
|
48851
|
+
this.preExecuted('elements.move', HIGH_PRIORITY$d, function(e) {
|
|
48780
48852
|
var context = e.context,
|
|
48781
48853
|
closure = context.closure,
|
|
48782
48854
|
enclosedElements = closure.enclosedElements;
|
|
@@ -48892,7 +48964,7 @@
|
|
|
48892
48964
|
*/
|
|
48893
48965
|
|
|
48894
48966
|
var LOW_PRIORITY$c = 251,
|
|
48895
|
-
HIGH_PRIORITY$
|
|
48967
|
+
HIGH_PRIORITY$c = 1401;
|
|
48896
48968
|
|
|
48897
48969
|
var MARKER_ATTACH$1 = 'attach-ok';
|
|
48898
48970
|
|
|
@@ -48921,7 +48993,7 @@
|
|
|
48921
48993
|
|
|
48922
48994
|
// remove all the attached elements from the shapes to be validated
|
|
48923
48995
|
// add all the attached shapes to the overall list of moved shapes
|
|
48924
|
-
eventBus.on('shape.move.start', HIGH_PRIORITY$
|
|
48996
|
+
eventBus.on('shape.move.start', HIGH_PRIORITY$c, function(e) {
|
|
48925
48997
|
|
|
48926
48998
|
var context = e.context,
|
|
48927
48999
|
shapes = context.shapes,
|
|
@@ -48974,7 +49046,7 @@
|
|
|
48974
49046
|
});
|
|
48975
49047
|
|
|
48976
49048
|
// add all attachers to move closure
|
|
48977
|
-
this.preExecuted('elements.move', HIGH_PRIORITY$
|
|
49049
|
+
this.preExecuted('elements.move', HIGH_PRIORITY$c, function(e) {
|
|
48978
49050
|
var context = e.context,
|
|
48979
49051
|
closure = context.closure,
|
|
48980
49052
|
shapes = context.shapes,
|
|
@@ -57033,7 +57105,7 @@
|
|
|
57033
57105
|
*/
|
|
57034
57106
|
var START_EVENT$1 = [
|
|
57035
57107
|
{
|
|
57036
|
-
label: 'Start
|
|
57108
|
+
label: 'Start event',
|
|
57037
57109
|
actionName: 'replace-with-none-start',
|
|
57038
57110
|
className: 'bpmn-icon-start-event-none',
|
|
57039
57111
|
target: {
|
|
@@ -57041,7 +57113,7 @@
|
|
|
57041
57113
|
}
|
|
57042
57114
|
},
|
|
57043
57115
|
{
|
|
57044
|
-
label: 'Intermediate
|
|
57116
|
+
label: 'Intermediate throw event',
|
|
57045
57117
|
actionName: 'replace-with-none-intermediate-throwing',
|
|
57046
57118
|
className: 'bpmn-icon-intermediate-event-none',
|
|
57047
57119
|
target: {
|
|
@@ -57049,7 +57121,7 @@
|
|
|
57049
57121
|
}
|
|
57050
57122
|
},
|
|
57051
57123
|
{
|
|
57052
|
-
label: 'End
|
|
57124
|
+
label: 'End event',
|
|
57053
57125
|
actionName: 'replace-with-none-end',
|
|
57054
57126
|
className: 'bpmn-icon-end-event-none',
|
|
57055
57127
|
target: {
|
|
@@ -57057,7 +57129,7 @@
|
|
|
57057
57129
|
}
|
|
57058
57130
|
},
|
|
57059
57131
|
{
|
|
57060
|
-
label: 'Message
|
|
57132
|
+
label: 'Message start event',
|
|
57061
57133
|
actionName: 'replace-with-message-start',
|
|
57062
57134
|
className: 'bpmn-icon-start-event-message',
|
|
57063
57135
|
target: {
|
|
@@ -57066,7 +57138,7 @@
|
|
|
57066
57138
|
}
|
|
57067
57139
|
},
|
|
57068
57140
|
{
|
|
57069
|
-
label: 'Timer
|
|
57141
|
+
label: 'Timer start event',
|
|
57070
57142
|
actionName: 'replace-with-timer-start',
|
|
57071
57143
|
className: 'bpmn-icon-start-event-timer',
|
|
57072
57144
|
target: {
|
|
@@ -57075,7 +57147,7 @@
|
|
|
57075
57147
|
}
|
|
57076
57148
|
},
|
|
57077
57149
|
{
|
|
57078
|
-
label: 'Conditional
|
|
57150
|
+
label: 'Conditional start event',
|
|
57079
57151
|
actionName: 'replace-with-conditional-start',
|
|
57080
57152
|
className: 'bpmn-icon-start-event-condition',
|
|
57081
57153
|
target: {
|
|
@@ -57084,7 +57156,7 @@
|
|
|
57084
57156
|
}
|
|
57085
57157
|
},
|
|
57086
57158
|
{
|
|
57087
|
-
label: 'Signal
|
|
57159
|
+
label: 'Signal start event',
|
|
57088
57160
|
actionName: 'replace-with-signal-start',
|
|
57089
57161
|
className: 'bpmn-icon-start-event-signal',
|
|
57090
57162
|
target: {
|
|
@@ -57099,7 +57171,7 @@
|
|
|
57099
57171
|
*/
|
|
57100
57172
|
var START_EVENT_SUB_PROCESS$1 = [
|
|
57101
57173
|
{
|
|
57102
|
-
label: 'Start
|
|
57174
|
+
label: 'Start event',
|
|
57103
57175
|
actionName: 'replace-with-none-start',
|
|
57104
57176
|
className: 'bpmn-icon-start-event-none',
|
|
57105
57177
|
target: {
|
|
@@ -57107,7 +57179,7 @@
|
|
|
57107
57179
|
}
|
|
57108
57180
|
},
|
|
57109
57181
|
{
|
|
57110
|
-
label: 'Intermediate
|
|
57182
|
+
label: 'Intermediate throw event',
|
|
57111
57183
|
actionName: 'replace-with-none-intermediate-throwing',
|
|
57112
57184
|
className: 'bpmn-icon-intermediate-event-none',
|
|
57113
57185
|
target: {
|
|
@@ -57115,7 +57187,7 @@
|
|
|
57115
57187
|
}
|
|
57116
57188
|
},
|
|
57117
57189
|
{
|
|
57118
|
-
label: 'End
|
|
57190
|
+
label: 'End event',
|
|
57119
57191
|
actionName: 'replace-with-none-end',
|
|
57120
57192
|
className: 'bpmn-icon-end-event-none',
|
|
57121
57193
|
target: {
|
|
@@ -57129,7 +57201,7 @@
|
|
|
57129
57201
|
*/
|
|
57130
57202
|
var INTERMEDIATE_EVENT$1 = [
|
|
57131
57203
|
{
|
|
57132
|
-
label: 'Start
|
|
57204
|
+
label: 'Start event',
|
|
57133
57205
|
actionName: 'replace-with-none-start',
|
|
57134
57206
|
className: 'bpmn-icon-start-event-none',
|
|
57135
57207
|
target: {
|
|
@@ -57137,7 +57209,7 @@
|
|
|
57137
57209
|
}
|
|
57138
57210
|
},
|
|
57139
57211
|
{
|
|
57140
|
-
label: 'Intermediate
|
|
57212
|
+
label: 'Intermediate throw event',
|
|
57141
57213
|
actionName: 'replace-with-none-intermediate-throw',
|
|
57142
57214
|
className: 'bpmn-icon-intermediate-event-none',
|
|
57143
57215
|
target: {
|
|
@@ -57145,7 +57217,7 @@
|
|
|
57145
57217
|
}
|
|
57146
57218
|
},
|
|
57147
57219
|
{
|
|
57148
|
-
label: 'End
|
|
57220
|
+
label: 'End event',
|
|
57149
57221
|
actionName: 'replace-with-none-end',
|
|
57150
57222
|
className: 'bpmn-icon-end-event-none',
|
|
57151
57223
|
target: {
|
|
@@ -57153,7 +57225,7 @@
|
|
|
57153
57225
|
}
|
|
57154
57226
|
},
|
|
57155
57227
|
{
|
|
57156
|
-
label: 'Message
|
|
57228
|
+
label: 'Message intermediate catch event',
|
|
57157
57229
|
actionName: 'replace-with-message-intermediate-catch',
|
|
57158
57230
|
className: 'bpmn-icon-intermediate-event-catch-message',
|
|
57159
57231
|
target: {
|
|
@@ -57162,7 +57234,7 @@
|
|
|
57162
57234
|
}
|
|
57163
57235
|
},
|
|
57164
57236
|
{
|
|
57165
|
-
label: 'Message
|
|
57237
|
+
label: 'Message intermediate throw event',
|
|
57166
57238
|
actionName: 'replace-with-message-intermediate-throw',
|
|
57167
57239
|
className: 'bpmn-icon-intermediate-event-throw-message',
|
|
57168
57240
|
target: {
|
|
@@ -57171,7 +57243,7 @@
|
|
|
57171
57243
|
}
|
|
57172
57244
|
},
|
|
57173
57245
|
{
|
|
57174
|
-
label: 'Timer
|
|
57246
|
+
label: 'Timer intermediate catch event',
|
|
57175
57247
|
actionName: 'replace-with-timer-intermediate-catch',
|
|
57176
57248
|
className: 'bpmn-icon-intermediate-event-catch-timer',
|
|
57177
57249
|
target: {
|
|
@@ -57180,7 +57252,7 @@
|
|
|
57180
57252
|
}
|
|
57181
57253
|
},
|
|
57182
57254
|
{
|
|
57183
|
-
label: 'Escalation
|
|
57255
|
+
label: 'Escalation intermediate throw event',
|
|
57184
57256
|
actionName: 'replace-with-escalation-intermediate-throw',
|
|
57185
57257
|
className: 'bpmn-icon-intermediate-event-throw-escalation',
|
|
57186
57258
|
target: {
|
|
@@ -57189,7 +57261,7 @@
|
|
|
57189
57261
|
}
|
|
57190
57262
|
},
|
|
57191
57263
|
{
|
|
57192
|
-
label: 'Conditional
|
|
57264
|
+
label: 'Conditional intermediate catch event',
|
|
57193
57265
|
actionName: 'replace-with-conditional-intermediate-catch',
|
|
57194
57266
|
className: 'bpmn-icon-intermediate-event-catch-condition',
|
|
57195
57267
|
target: {
|
|
@@ -57198,7 +57270,7 @@
|
|
|
57198
57270
|
}
|
|
57199
57271
|
},
|
|
57200
57272
|
{
|
|
57201
|
-
label: 'Link
|
|
57273
|
+
label: 'Link intermediate catch event',
|
|
57202
57274
|
actionName: 'replace-with-link-intermediate-catch',
|
|
57203
57275
|
className: 'bpmn-icon-intermediate-event-catch-link',
|
|
57204
57276
|
target: {
|
|
@@ -57210,7 +57282,7 @@
|
|
|
57210
57282
|
}
|
|
57211
57283
|
},
|
|
57212
57284
|
{
|
|
57213
|
-
label: 'Link
|
|
57285
|
+
label: 'Link intermediate throw event',
|
|
57214
57286
|
actionName: 'replace-with-link-intermediate-throw',
|
|
57215
57287
|
className: 'bpmn-icon-intermediate-event-throw-link',
|
|
57216
57288
|
target: {
|
|
@@ -57222,7 +57294,7 @@
|
|
|
57222
57294
|
}
|
|
57223
57295
|
},
|
|
57224
57296
|
{
|
|
57225
|
-
label: 'Compensation
|
|
57297
|
+
label: 'Compensation intermediate throw event',
|
|
57226
57298
|
actionName: 'replace-with-compensation-intermediate-throw',
|
|
57227
57299
|
className: 'bpmn-icon-intermediate-event-throw-compensation',
|
|
57228
57300
|
target: {
|
|
@@ -57231,7 +57303,7 @@
|
|
|
57231
57303
|
}
|
|
57232
57304
|
},
|
|
57233
57305
|
{
|
|
57234
|
-
label: 'Signal
|
|
57306
|
+
label: 'Signal intermediate catch event',
|
|
57235
57307
|
actionName: 'replace-with-signal-intermediate-catch',
|
|
57236
57308
|
className: 'bpmn-icon-intermediate-event-catch-signal',
|
|
57237
57309
|
target: {
|
|
@@ -57240,7 +57312,7 @@
|
|
|
57240
57312
|
}
|
|
57241
57313
|
},
|
|
57242
57314
|
{
|
|
57243
|
-
label: 'Signal
|
|
57315
|
+
label: 'Signal intermediate throw event',
|
|
57244
57316
|
actionName: 'replace-with-signal-intermediate-throw',
|
|
57245
57317
|
className: 'bpmn-icon-intermediate-event-throw-signal',
|
|
57246
57318
|
target: {
|
|
@@ -57255,7 +57327,7 @@
|
|
|
57255
57327
|
*/
|
|
57256
57328
|
var END_EVENT$1 = [
|
|
57257
57329
|
{
|
|
57258
|
-
label: 'Start
|
|
57330
|
+
label: 'Start event',
|
|
57259
57331
|
actionName: 'replace-with-none-start',
|
|
57260
57332
|
className: 'bpmn-icon-start-event-none',
|
|
57261
57333
|
target: {
|
|
@@ -57263,7 +57335,7 @@
|
|
|
57263
57335
|
}
|
|
57264
57336
|
},
|
|
57265
57337
|
{
|
|
57266
|
-
label: 'Intermediate
|
|
57338
|
+
label: 'Intermediate throw event',
|
|
57267
57339
|
actionName: 'replace-with-none-intermediate-throw',
|
|
57268
57340
|
className: 'bpmn-icon-intermediate-event-none',
|
|
57269
57341
|
target: {
|
|
@@ -57271,7 +57343,7 @@
|
|
|
57271
57343
|
}
|
|
57272
57344
|
},
|
|
57273
57345
|
{
|
|
57274
|
-
label: 'End
|
|
57346
|
+
label: 'End event',
|
|
57275
57347
|
actionName: 'replace-with-none-end',
|
|
57276
57348
|
className: 'bpmn-icon-end-event-none',
|
|
57277
57349
|
target: {
|
|
@@ -57279,7 +57351,7 @@
|
|
|
57279
57351
|
}
|
|
57280
57352
|
},
|
|
57281
57353
|
{
|
|
57282
|
-
label: 'Message
|
|
57354
|
+
label: 'Message end event',
|
|
57283
57355
|
actionName: 'replace-with-message-end',
|
|
57284
57356
|
className: 'bpmn-icon-end-event-message',
|
|
57285
57357
|
target: {
|
|
@@ -57288,7 +57360,7 @@
|
|
|
57288
57360
|
}
|
|
57289
57361
|
},
|
|
57290
57362
|
{
|
|
57291
|
-
label: 'Escalation
|
|
57363
|
+
label: 'Escalation end event',
|
|
57292
57364
|
actionName: 'replace-with-escalation-end',
|
|
57293
57365
|
className: 'bpmn-icon-end-event-escalation',
|
|
57294
57366
|
target: {
|
|
@@ -57297,7 +57369,7 @@
|
|
|
57297
57369
|
}
|
|
57298
57370
|
},
|
|
57299
57371
|
{
|
|
57300
|
-
label: 'Error
|
|
57372
|
+
label: 'Error end event',
|
|
57301
57373
|
actionName: 'replace-with-error-end',
|
|
57302
57374
|
className: 'bpmn-icon-end-event-error',
|
|
57303
57375
|
target: {
|
|
@@ -57306,7 +57378,7 @@
|
|
|
57306
57378
|
}
|
|
57307
57379
|
},
|
|
57308
57380
|
{
|
|
57309
|
-
label: 'Cancel
|
|
57381
|
+
label: 'Cancel end event',
|
|
57310
57382
|
actionName: 'replace-with-cancel-end',
|
|
57311
57383
|
className: 'bpmn-icon-end-event-cancel',
|
|
57312
57384
|
target: {
|
|
@@ -57315,7 +57387,7 @@
|
|
|
57315
57387
|
}
|
|
57316
57388
|
},
|
|
57317
57389
|
{
|
|
57318
|
-
label: 'Compensation
|
|
57390
|
+
label: 'Compensation end event',
|
|
57319
57391
|
actionName: 'replace-with-compensation-end',
|
|
57320
57392
|
className: 'bpmn-icon-end-event-compensation',
|
|
57321
57393
|
target: {
|
|
@@ -57324,7 +57396,7 @@
|
|
|
57324
57396
|
}
|
|
57325
57397
|
},
|
|
57326
57398
|
{
|
|
57327
|
-
label: 'Signal
|
|
57399
|
+
label: 'Signal end event',
|
|
57328
57400
|
actionName: 'replace-with-signal-end',
|
|
57329
57401
|
className: 'bpmn-icon-end-event-signal',
|
|
57330
57402
|
target: {
|
|
@@ -57333,7 +57405,7 @@
|
|
|
57333
57405
|
}
|
|
57334
57406
|
},
|
|
57335
57407
|
{
|
|
57336
|
-
label: 'Terminate
|
|
57408
|
+
label: 'Terminate end event',
|
|
57337
57409
|
actionName: 'replace-with-terminate-end',
|
|
57338
57410
|
className: 'bpmn-icon-end-event-terminate',
|
|
57339
57411
|
target: {
|
|
@@ -57348,7 +57420,7 @@
|
|
|
57348
57420
|
*/
|
|
57349
57421
|
var GATEWAY$2 = [
|
|
57350
57422
|
{
|
|
57351
|
-
label: 'Exclusive
|
|
57423
|
+
label: 'Exclusive gateway',
|
|
57352
57424
|
actionName: 'replace-with-exclusive-gateway',
|
|
57353
57425
|
className: 'bpmn-icon-gateway-xor',
|
|
57354
57426
|
target: {
|
|
@@ -57356,7 +57428,7 @@
|
|
|
57356
57428
|
}
|
|
57357
57429
|
},
|
|
57358
57430
|
{
|
|
57359
|
-
label: 'Parallel
|
|
57431
|
+
label: 'Parallel gateway',
|
|
57360
57432
|
actionName: 'replace-with-parallel-gateway',
|
|
57361
57433
|
className: 'bpmn-icon-gateway-parallel',
|
|
57362
57434
|
target: {
|
|
@@ -57364,7 +57436,7 @@
|
|
|
57364
57436
|
}
|
|
57365
57437
|
},
|
|
57366
57438
|
{
|
|
57367
|
-
label: 'Inclusive
|
|
57439
|
+
label: 'Inclusive gateway',
|
|
57368
57440
|
actionName: 'replace-with-inclusive-gateway',
|
|
57369
57441
|
className: 'bpmn-icon-gateway-or',
|
|
57370
57442
|
target: {
|
|
@@ -57372,7 +57444,7 @@
|
|
|
57372
57444
|
}
|
|
57373
57445
|
},
|
|
57374
57446
|
{
|
|
57375
|
-
label: 'Complex
|
|
57447
|
+
label: 'Complex gateway',
|
|
57376
57448
|
actionName: 'replace-with-complex-gateway',
|
|
57377
57449
|
className: 'bpmn-icon-gateway-complex',
|
|
57378
57450
|
target: {
|
|
@@ -57380,7 +57452,7 @@
|
|
|
57380
57452
|
}
|
|
57381
57453
|
},
|
|
57382
57454
|
{
|
|
57383
|
-
label: 'Event
|
|
57455
|
+
label: 'Event-based gateway',
|
|
57384
57456
|
actionName: 'replace-with-event-based-gateway',
|
|
57385
57457
|
className: 'bpmn-icon-gateway-eventbased',
|
|
57386
57458
|
target: {
|
|
@@ -57429,7 +57501,7 @@
|
|
|
57429
57501
|
}
|
|
57430
57502
|
},
|
|
57431
57503
|
{
|
|
57432
|
-
label: 'Event
|
|
57504
|
+
label: 'Event sub-process',
|
|
57433
57505
|
actionName: 'replace-with-event-subprocess',
|
|
57434
57506
|
className: 'bpmn-icon-event-subprocess-expanded',
|
|
57435
57507
|
target: {
|
|
@@ -57439,7 +57511,7 @@
|
|
|
57439
57511
|
}
|
|
57440
57512
|
},
|
|
57441
57513
|
{
|
|
57442
|
-
label: 'Sub
|
|
57514
|
+
label: 'Sub-process (collapsed)',
|
|
57443
57515
|
actionName: 'replace-with-collapsed-subprocess',
|
|
57444
57516
|
className: 'bpmn-icon-subprocess-collapsed',
|
|
57445
57517
|
target: {
|
|
@@ -57463,7 +57535,7 @@
|
|
|
57463
57535
|
}
|
|
57464
57536
|
},
|
|
57465
57537
|
{
|
|
57466
|
-
label: 'Sub
|
|
57538
|
+
label: 'Sub-process',
|
|
57467
57539
|
actionName: 'replace-with-subprocess',
|
|
57468
57540
|
className: 'bpmn-icon-subprocess-expanded',
|
|
57469
57541
|
target: {
|
|
@@ -57472,7 +57544,7 @@
|
|
|
57472
57544
|
}
|
|
57473
57545
|
},
|
|
57474
57546
|
{
|
|
57475
|
-
label: 'Event
|
|
57547
|
+
label: 'Event sub-process',
|
|
57476
57548
|
actionName: 'replace-with-event-subprocess',
|
|
57477
57549
|
className: 'bpmn-icon-event-subprocess-expanded',
|
|
57478
57550
|
target: {
|
|
@@ -57501,7 +57573,7 @@
|
|
|
57501
57573
|
}
|
|
57502
57574
|
},
|
|
57503
57575
|
{
|
|
57504
|
-
label: 'User
|
|
57576
|
+
label: 'User task',
|
|
57505
57577
|
actionName: 'replace-with-user-task',
|
|
57506
57578
|
className: 'bpmn-icon-user',
|
|
57507
57579
|
target: {
|
|
@@ -57509,7 +57581,7 @@
|
|
|
57509
57581
|
}
|
|
57510
57582
|
},
|
|
57511
57583
|
{
|
|
57512
|
-
label: 'Service
|
|
57584
|
+
label: 'Service task',
|
|
57513
57585
|
actionName: 'replace-with-service-task',
|
|
57514
57586
|
className: 'bpmn-icon-service',
|
|
57515
57587
|
target: {
|
|
@@ -57517,7 +57589,7 @@
|
|
|
57517
57589
|
}
|
|
57518
57590
|
},
|
|
57519
57591
|
{
|
|
57520
|
-
label: 'Send
|
|
57592
|
+
label: 'Send task',
|
|
57521
57593
|
actionName: 'replace-with-send-task',
|
|
57522
57594
|
className: 'bpmn-icon-send',
|
|
57523
57595
|
target: {
|
|
@@ -57525,7 +57597,7 @@
|
|
|
57525
57597
|
}
|
|
57526
57598
|
},
|
|
57527
57599
|
{
|
|
57528
|
-
label: 'Receive
|
|
57600
|
+
label: 'Receive task',
|
|
57529
57601
|
actionName: 'replace-with-receive-task',
|
|
57530
57602
|
className: 'bpmn-icon-receive',
|
|
57531
57603
|
target: {
|
|
@@ -57533,7 +57605,7 @@
|
|
|
57533
57605
|
}
|
|
57534
57606
|
},
|
|
57535
57607
|
{
|
|
57536
|
-
label: 'Manual
|
|
57608
|
+
label: 'Manual task',
|
|
57537
57609
|
actionName: 'replace-with-manual-task',
|
|
57538
57610
|
className: 'bpmn-icon-manual',
|
|
57539
57611
|
target: {
|
|
@@ -57541,7 +57613,7 @@
|
|
|
57541
57613
|
}
|
|
57542
57614
|
},
|
|
57543
57615
|
{
|
|
57544
|
-
label: 'Business
|
|
57616
|
+
label: 'Business rule task',
|
|
57545
57617
|
actionName: 'replace-with-rule-task',
|
|
57546
57618
|
className: 'bpmn-icon-business-rule',
|
|
57547
57619
|
target: {
|
|
@@ -57549,7 +57621,7 @@
|
|
|
57549
57621
|
}
|
|
57550
57622
|
},
|
|
57551
57623
|
{
|
|
57552
|
-
label: 'Script
|
|
57624
|
+
label: 'Script task',
|
|
57553
57625
|
actionName: 'replace-with-script-task',
|
|
57554
57626
|
className: 'bpmn-icon-script',
|
|
57555
57627
|
target: {
|
|
@@ -57557,7 +57629,7 @@
|
|
|
57557
57629
|
}
|
|
57558
57630
|
},
|
|
57559
57631
|
{
|
|
57560
|
-
label: 'Call
|
|
57632
|
+
label: 'Call activity',
|
|
57561
57633
|
actionName: 'replace-with-call-activity',
|
|
57562
57634
|
className: 'bpmn-icon-call-activity',
|
|
57563
57635
|
target: {
|
|
@@ -57565,7 +57637,7 @@
|
|
|
57565
57637
|
}
|
|
57566
57638
|
},
|
|
57567
57639
|
{
|
|
57568
|
-
label: 'Sub
|
|
57640
|
+
label: 'Sub-process (collapsed)',
|
|
57569
57641
|
actionName: 'replace-with-collapsed-subprocess',
|
|
57570
57642
|
className: 'bpmn-icon-subprocess-collapsed',
|
|
57571
57643
|
target: {
|
|
@@ -57574,7 +57646,7 @@
|
|
|
57574
57646
|
}
|
|
57575
57647
|
},
|
|
57576
57648
|
{
|
|
57577
|
-
label: 'Sub
|
|
57649
|
+
label: 'Sub-process (expanded)',
|
|
57578
57650
|
actionName: 'replace-with-expanded-subprocess',
|
|
57579
57651
|
className: 'bpmn-icon-subprocess-expanded',
|
|
57580
57652
|
target: {
|
|
@@ -57589,7 +57661,7 @@
|
|
|
57589
57661
|
*/
|
|
57590
57662
|
var DATA_OBJECT_REFERENCE$1 = [
|
|
57591
57663
|
{
|
|
57592
|
-
label: 'Data
|
|
57664
|
+
label: 'Data store reference',
|
|
57593
57665
|
actionName: 'replace-with-data-store-reference',
|
|
57594
57666
|
className: 'bpmn-icon-data-store',
|
|
57595
57667
|
target: {
|
|
@@ -57603,7 +57675,7 @@
|
|
|
57603
57675
|
*/
|
|
57604
57676
|
var DATA_STORE_REFERENCE$1 = [
|
|
57605
57677
|
{
|
|
57606
|
-
label: 'Data
|
|
57678
|
+
label: 'Data object reference',
|
|
57607
57679
|
actionName: 'replace-with-data-object-reference',
|
|
57608
57680
|
className: 'bpmn-icon-data-object',
|
|
57609
57681
|
target: {
|
|
@@ -57617,7 +57689,7 @@
|
|
|
57617
57689
|
*/
|
|
57618
57690
|
var BOUNDARY_EVENT$1 = [
|
|
57619
57691
|
{
|
|
57620
|
-
label: 'Message
|
|
57692
|
+
label: 'Message boundary event',
|
|
57621
57693
|
actionName: 'replace-with-message-boundary',
|
|
57622
57694
|
className: 'bpmn-icon-intermediate-event-catch-message',
|
|
57623
57695
|
target: {
|
|
@@ -57627,7 +57699,7 @@
|
|
|
57627
57699
|
}
|
|
57628
57700
|
},
|
|
57629
57701
|
{
|
|
57630
|
-
label: 'Timer
|
|
57702
|
+
label: 'Timer boundary event',
|
|
57631
57703
|
actionName: 'replace-with-timer-boundary',
|
|
57632
57704
|
className: 'bpmn-icon-intermediate-event-catch-timer',
|
|
57633
57705
|
target: {
|
|
@@ -57637,7 +57709,7 @@
|
|
|
57637
57709
|
}
|
|
57638
57710
|
},
|
|
57639
57711
|
{
|
|
57640
|
-
label: 'Escalation
|
|
57712
|
+
label: 'Escalation boundary event',
|
|
57641
57713
|
actionName: 'replace-with-escalation-boundary',
|
|
57642
57714
|
className: 'bpmn-icon-intermediate-event-catch-escalation',
|
|
57643
57715
|
target: {
|
|
@@ -57647,7 +57719,7 @@
|
|
|
57647
57719
|
}
|
|
57648
57720
|
},
|
|
57649
57721
|
{
|
|
57650
|
-
label: 'Conditional
|
|
57722
|
+
label: 'Conditional boundary event',
|
|
57651
57723
|
actionName: 'replace-with-conditional-boundary',
|
|
57652
57724
|
className: 'bpmn-icon-intermediate-event-catch-condition',
|
|
57653
57725
|
target: {
|
|
@@ -57657,7 +57729,7 @@
|
|
|
57657
57729
|
}
|
|
57658
57730
|
},
|
|
57659
57731
|
{
|
|
57660
|
-
label: 'Error
|
|
57732
|
+
label: 'Error boundary event',
|
|
57661
57733
|
actionName: 'replace-with-error-boundary',
|
|
57662
57734
|
className: 'bpmn-icon-intermediate-event-catch-error',
|
|
57663
57735
|
target: {
|
|
@@ -57667,7 +57739,7 @@
|
|
|
57667
57739
|
}
|
|
57668
57740
|
},
|
|
57669
57741
|
{
|
|
57670
|
-
label: 'Cancel
|
|
57742
|
+
label: 'Cancel boundary event',
|
|
57671
57743
|
actionName: 'replace-with-cancel-boundary',
|
|
57672
57744
|
className: 'bpmn-icon-intermediate-event-catch-cancel',
|
|
57673
57745
|
target: {
|
|
@@ -57677,7 +57749,7 @@
|
|
|
57677
57749
|
}
|
|
57678
57750
|
},
|
|
57679
57751
|
{
|
|
57680
|
-
label: 'Signal
|
|
57752
|
+
label: 'Signal boundary event',
|
|
57681
57753
|
actionName: 'replace-with-signal-boundary',
|
|
57682
57754
|
className: 'bpmn-icon-intermediate-event-catch-signal',
|
|
57683
57755
|
target: {
|
|
@@ -57687,7 +57759,7 @@
|
|
|
57687
57759
|
}
|
|
57688
57760
|
},
|
|
57689
57761
|
{
|
|
57690
|
-
label: 'Compensation
|
|
57762
|
+
label: 'Compensation boundary event',
|
|
57691
57763
|
actionName: 'replace-with-compensation-boundary',
|
|
57692
57764
|
className: 'bpmn-icon-intermediate-event-catch-compensation',
|
|
57693
57765
|
target: {
|
|
@@ -57697,7 +57769,7 @@
|
|
|
57697
57769
|
}
|
|
57698
57770
|
},
|
|
57699
57771
|
{
|
|
57700
|
-
label: 'Message
|
|
57772
|
+
label: 'Message boundary event (non-interrupting)',
|
|
57701
57773
|
actionName: 'replace-with-non-interrupting-message-boundary',
|
|
57702
57774
|
className: 'bpmn-icon-intermediate-event-catch-non-interrupting-message',
|
|
57703
57775
|
target: {
|
|
@@ -57707,7 +57779,7 @@
|
|
|
57707
57779
|
}
|
|
57708
57780
|
},
|
|
57709
57781
|
{
|
|
57710
|
-
label: 'Timer
|
|
57782
|
+
label: 'Timer boundary event (non-interrupting)',
|
|
57711
57783
|
actionName: 'replace-with-non-interrupting-timer-boundary',
|
|
57712
57784
|
className: 'bpmn-icon-intermediate-event-catch-non-interrupting-timer',
|
|
57713
57785
|
target: {
|
|
@@ -57717,7 +57789,7 @@
|
|
|
57717
57789
|
}
|
|
57718
57790
|
},
|
|
57719
57791
|
{
|
|
57720
|
-
label: 'Escalation
|
|
57792
|
+
label: 'Escalation boundary event (non-interrupting)',
|
|
57721
57793
|
actionName: 'replace-with-non-interrupting-escalation-boundary',
|
|
57722
57794
|
className: 'bpmn-icon-intermediate-event-catch-non-interrupting-escalation',
|
|
57723
57795
|
target: {
|
|
@@ -57727,7 +57799,7 @@
|
|
|
57727
57799
|
}
|
|
57728
57800
|
},
|
|
57729
57801
|
{
|
|
57730
|
-
label: 'Conditional
|
|
57802
|
+
label: 'Conditional boundary event (non-interrupting)',
|
|
57731
57803
|
actionName: 'replace-with-non-interrupting-conditional-boundary',
|
|
57732
57804
|
className: 'bpmn-icon-intermediate-event-catch-non-interrupting-condition',
|
|
57733
57805
|
target: {
|
|
@@ -57737,7 +57809,7 @@
|
|
|
57737
57809
|
}
|
|
57738
57810
|
},
|
|
57739
57811
|
{
|
|
57740
|
-
label: 'Signal
|
|
57812
|
+
label: 'Signal boundary event (non-interrupting)',
|
|
57741
57813
|
actionName: 'replace-with-non-interrupting-signal-boundary',
|
|
57742
57814
|
className: 'bpmn-icon-intermediate-event-catch-non-interrupting-signal',
|
|
57743
57815
|
target: {
|
|
@@ -57753,7 +57825,7 @@
|
|
|
57753
57825
|
*/
|
|
57754
57826
|
var EVENT_SUB_PROCESS_START_EVENT$1 = [
|
|
57755
57827
|
{
|
|
57756
|
-
label: 'Message
|
|
57828
|
+
label: 'Message start event',
|
|
57757
57829
|
actionName: 'replace-with-message-start',
|
|
57758
57830
|
className: 'bpmn-icon-start-event-message',
|
|
57759
57831
|
target: {
|
|
@@ -57763,7 +57835,7 @@
|
|
|
57763
57835
|
}
|
|
57764
57836
|
},
|
|
57765
57837
|
{
|
|
57766
|
-
label: 'Timer
|
|
57838
|
+
label: 'Timer start event',
|
|
57767
57839
|
actionName: 'replace-with-timer-start',
|
|
57768
57840
|
className: 'bpmn-icon-start-event-timer',
|
|
57769
57841
|
target: {
|
|
@@ -57773,7 +57845,7 @@
|
|
|
57773
57845
|
}
|
|
57774
57846
|
},
|
|
57775
57847
|
{
|
|
57776
|
-
label: 'Conditional
|
|
57848
|
+
label: 'Conditional start event',
|
|
57777
57849
|
actionName: 'replace-with-conditional-start',
|
|
57778
57850
|
className: 'bpmn-icon-start-event-condition',
|
|
57779
57851
|
target: {
|
|
@@ -57783,7 +57855,7 @@
|
|
|
57783
57855
|
}
|
|
57784
57856
|
},
|
|
57785
57857
|
{
|
|
57786
|
-
label: 'Signal
|
|
57858
|
+
label: 'Signal start event',
|
|
57787
57859
|
actionName: 'replace-with-signal-start',
|
|
57788
57860
|
className: 'bpmn-icon-start-event-signal',
|
|
57789
57861
|
target: {
|
|
@@ -57793,7 +57865,7 @@
|
|
|
57793
57865
|
}
|
|
57794
57866
|
},
|
|
57795
57867
|
{
|
|
57796
|
-
label: 'Error
|
|
57868
|
+
label: 'Error start event',
|
|
57797
57869
|
actionName: 'replace-with-error-start',
|
|
57798
57870
|
className: 'bpmn-icon-start-event-error',
|
|
57799
57871
|
target: {
|
|
@@ -57803,7 +57875,7 @@
|
|
|
57803
57875
|
}
|
|
57804
57876
|
},
|
|
57805
57877
|
{
|
|
57806
|
-
label: 'Escalation
|
|
57878
|
+
label: 'Escalation start event',
|
|
57807
57879
|
actionName: 'replace-with-escalation-start',
|
|
57808
57880
|
className: 'bpmn-icon-start-event-escalation',
|
|
57809
57881
|
target: {
|
|
@@ -57813,7 +57885,7 @@
|
|
|
57813
57885
|
}
|
|
57814
57886
|
},
|
|
57815
57887
|
{
|
|
57816
|
-
label: 'Compensation
|
|
57888
|
+
label: 'Compensation start event',
|
|
57817
57889
|
actionName: 'replace-with-compensation-start',
|
|
57818
57890
|
className: 'bpmn-icon-start-event-compensation',
|
|
57819
57891
|
target: {
|
|
@@ -57823,7 +57895,7 @@
|
|
|
57823
57895
|
}
|
|
57824
57896
|
},
|
|
57825
57897
|
{
|
|
57826
|
-
label: 'Message
|
|
57898
|
+
label: 'Message start event (non-interrupting)',
|
|
57827
57899
|
actionName: 'replace-with-non-interrupting-message-start',
|
|
57828
57900
|
className: 'bpmn-icon-start-event-non-interrupting-message',
|
|
57829
57901
|
target: {
|
|
@@ -57833,7 +57905,7 @@
|
|
|
57833
57905
|
}
|
|
57834
57906
|
},
|
|
57835
57907
|
{
|
|
57836
|
-
label: 'Timer
|
|
57908
|
+
label: 'Timer start event (non-interrupting)',
|
|
57837
57909
|
actionName: 'replace-with-non-interrupting-timer-start',
|
|
57838
57910
|
className: 'bpmn-icon-start-event-non-interrupting-timer',
|
|
57839
57911
|
target: {
|
|
@@ -57843,7 +57915,7 @@
|
|
|
57843
57915
|
}
|
|
57844
57916
|
},
|
|
57845
57917
|
{
|
|
57846
|
-
label: 'Conditional
|
|
57918
|
+
label: 'Conditional start event (non-interrupting)',
|
|
57847
57919
|
actionName: 'replace-with-non-interrupting-conditional-start',
|
|
57848
57920
|
className: 'bpmn-icon-start-event-non-interrupting-condition',
|
|
57849
57921
|
target: {
|
|
@@ -57853,7 +57925,7 @@
|
|
|
57853
57925
|
}
|
|
57854
57926
|
},
|
|
57855
57927
|
{
|
|
57856
|
-
label: 'Signal
|
|
57928
|
+
label: 'Signal start event (non-interrupting)',
|
|
57857
57929
|
actionName: 'replace-with-non-interrupting-signal-start',
|
|
57858
57930
|
className: 'bpmn-icon-start-event-non-interrupting-signal',
|
|
57859
57931
|
target: {
|
|
@@ -57863,7 +57935,7 @@
|
|
|
57863
57935
|
}
|
|
57864
57936
|
},
|
|
57865
57937
|
{
|
|
57866
|
-
label: 'Escalation
|
|
57938
|
+
label: 'Escalation start event (non-interrupting)',
|
|
57867
57939
|
actionName: 'replace-with-non-interrupting-escalation-start',
|
|
57868
57940
|
className: 'bpmn-icon-start-event-non-interrupting-escalation',
|
|
57869
57941
|
target: {
|
|
@@ -57879,17 +57951,17 @@
|
|
|
57879
57951
|
*/
|
|
57880
57952
|
var SEQUENCE_FLOW$1 = [
|
|
57881
57953
|
{
|
|
57882
|
-
label: 'Sequence
|
|
57954
|
+
label: 'Sequence flow',
|
|
57883
57955
|
actionName: 'replace-with-sequence-flow',
|
|
57884
57956
|
className: 'bpmn-icon-connection'
|
|
57885
57957
|
},
|
|
57886
57958
|
{
|
|
57887
|
-
label: 'Default
|
|
57959
|
+
label: 'Default flow',
|
|
57888
57960
|
actionName: 'replace-with-default-flow',
|
|
57889
57961
|
className: 'bpmn-icon-default-flow'
|
|
57890
57962
|
},
|
|
57891
57963
|
{
|
|
57892
|
-
label: 'Conditional
|
|
57964
|
+
label: 'Conditional flow',
|
|
57893
57965
|
actionName: 'replace-with-conditional-flow',
|
|
57894
57966
|
className: 'bpmn-icon-conditional-flow'
|
|
57895
57967
|
}
|
|
@@ -57900,7 +57972,7 @@
|
|
|
57900
57972
|
*/
|
|
57901
57973
|
var PARTICIPANT$2 = [
|
|
57902
57974
|
{
|
|
57903
|
-
label: 'Expanded
|
|
57975
|
+
label: 'Expanded pool/participant',
|
|
57904
57976
|
actionName: 'replace-with-expanded-pool',
|
|
57905
57977
|
className: 'bpmn-icon-participant',
|
|
57906
57978
|
target: {
|
|
@@ -57910,7 +57982,7 @@
|
|
|
57910
57982
|
},
|
|
57911
57983
|
{
|
|
57912
57984
|
label: function(element) {
|
|
57913
|
-
var label = 'Empty
|
|
57985
|
+
var label = 'Empty pool/participant';
|
|
57914
57986
|
|
|
57915
57987
|
if (element.children && element.children.length) {
|
|
57916
57988
|
label += ' (removes content)';
|
|
@@ -58191,7 +58263,7 @@
|
|
|
58191
58263
|
// collapsed sub process cannot be replaced with itself
|
|
58192
58264
|
if (is$6(businessObject, 'bpmn:SubProcess') && !isExpanded$1(target)) {
|
|
58193
58265
|
filteredReplaceOptions = filter(filteredReplaceOptions, function(replaceOption) {
|
|
58194
|
-
return replaceOption.label !== 'Sub
|
|
58266
|
+
return replaceOption.label !== 'Sub-process (collapsed)';
|
|
58195
58267
|
});
|
|
58196
58268
|
}
|
|
58197
58269
|
|
|
@@ -58434,7 +58506,7 @@
|
|
|
58434
58506
|
return {
|
|
58435
58507
|
'toggle-parallel-mi' : {
|
|
58436
58508
|
className: 'bpmn-icon-parallel-mi-marker',
|
|
58437
|
-
title: translate('Parallel
|
|
58509
|
+
title: translate('Parallel multi-instance'),
|
|
58438
58510
|
active: isParallel,
|
|
58439
58511
|
action: toggleLoopEntry,
|
|
58440
58512
|
options: {
|
|
@@ -58444,7 +58516,7 @@
|
|
|
58444
58516
|
},
|
|
58445
58517
|
'toggle-sequential-mi': {
|
|
58446
58518
|
className: 'bpmn-icon-sequential-mi-marker',
|
|
58447
|
-
title: translate('Sequential
|
|
58519
|
+
title: translate('Sequential multi-instance'),
|
|
58448
58520
|
active: isSequential,
|
|
58449
58521
|
action: toggleLoopEntry,
|
|
58450
58522
|
options: {
|
|
@@ -58532,7 +58604,7 @@
|
|
|
58532
58604
|
return {
|
|
58533
58605
|
'toggle-participant-multiplicity': {
|
|
58534
58606
|
className: 'bpmn-icon-parallel-mi-marker',
|
|
58535
|
-
title: translate('Participant
|
|
58607
|
+
title: translate('Participant multiplicity'),
|
|
58536
58608
|
active: !!participantMultiplicity,
|
|
58537
58609
|
action: toggleParticipantMultiplicity,
|
|
58538
58610
|
}
|
|
@@ -58591,7 +58663,7 @@
|
|
|
58591
58663
|
return {
|
|
58592
58664
|
'toggle-non-interrupting': {
|
|
58593
58665
|
imageHtml: icon,
|
|
58594
|
-
title: translate('Toggle
|
|
58666
|
+
title: translate('Toggle non-interrupting'),
|
|
58595
58667
|
active: isNonInterrupting,
|
|
58596
58668
|
action: function() {
|
|
58597
58669
|
self._modeling.updateProperties(element, {
|
|
@@ -58817,18 +58889,13 @@
|
|
|
58817
58889
|
*
|
|
58818
58890
|
* @param {string} type
|
|
58819
58891
|
* @param {string} className
|
|
58820
|
-
* @param {string}
|
|
58892
|
+
* @param {string} title
|
|
58821
58893
|
* @param {Object} [options]
|
|
58822
58894
|
*
|
|
58823
58895
|
* @return {ContextPadEntry}
|
|
58824
58896
|
*/
|
|
58825
58897
|
function appendAction(type, className, title, options) {
|
|
58826
58898
|
|
|
58827
|
-
if (typeof title !== 'string') {
|
|
58828
|
-
options = title;
|
|
58829
|
-
title = translate('Append {type}', { type: type.replace(/^bpmn:/, '') });
|
|
58830
|
-
}
|
|
58831
|
-
|
|
58832
58899
|
function appendStart(event, element) {
|
|
58833
58900
|
|
|
58834
58901
|
var shape = elementFactory.createShape(assign$2({ type: type }, options));
|
|
@@ -58894,7 +58961,7 @@
|
|
|
58894
58961
|
'lane-insert-above': {
|
|
58895
58962
|
group: 'lane-insert-above',
|
|
58896
58963
|
className: 'bpmn-icon-lane-insert-above',
|
|
58897
|
-
title: translate('Add
|
|
58964
|
+
title: translate('Add lane above'),
|
|
58898
58965
|
action: {
|
|
58899
58966
|
click: function(event, element) {
|
|
58900
58967
|
modeling.addLane(element, 'top');
|
|
@@ -58910,7 +58977,7 @@
|
|
|
58910
58977
|
'lane-divide-two': {
|
|
58911
58978
|
group: 'lane-divide',
|
|
58912
58979
|
className: 'bpmn-icon-lane-divide-two',
|
|
58913
|
-
title: translate('Divide into two
|
|
58980
|
+
title: translate('Divide into two lanes'),
|
|
58914
58981
|
action: {
|
|
58915
58982
|
click: splitLaneHandler(2)
|
|
58916
58983
|
}
|
|
@@ -58923,7 +58990,7 @@
|
|
|
58923
58990
|
'lane-divide-three': {
|
|
58924
58991
|
group: 'lane-divide',
|
|
58925
58992
|
className: 'bpmn-icon-lane-divide-three',
|
|
58926
|
-
title: translate('Divide into three
|
|
58993
|
+
title: translate('Divide into three lanes'),
|
|
58927
58994
|
action: {
|
|
58928
58995
|
click: splitLaneHandler(3)
|
|
58929
58996
|
}
|
|
@@ -58936,7 +59003,7 @@
|
|
|
58936
59003
|
'lane-insert-below': {
|
|
58937
59004
|
group: 'lane-insert-below',
|
|
58938
59005
|
className: 'bpmn-icon-lane-insert-below',
|
|
58939
|
-
title: translate('Add
|
|
59006
|
+
title: translate('Add lane below'),
|
|
58940
59007
|
action: {
|
|
58941
59008
|
click: function(event, element) {
|
|
58942
59009
|
modeling.addLane(element, 'bottom');
|
|
@@ -58955,30 +59022,30 @@
|
|
|
58955
59022
|
'append.receive-task': appendAction(
|
|
58956
59023
|
'bpmn:ReceiveTask',
|
|
58957
59024
|
'bpmn-icon-receive-task',
|
|
58958
|
-
translate('Append
|
|
59025
|
+
translate('Append receive task')
|
|
58959
59026
|
),
|
|
58960
59027
|
'append.message-intermediate-event': appendAction(
|
|
58961
59028
|
'bpmn:IntermediateCatchEvent',
|
|
58962
59029
|
'bpmn-icon-intermediate-event-catch-message',
|
|
58963
|
-
translate('Append
|
|
59030
|
+
translate('Append message intermediate catch event'),
|
|
58964
59031
|
{ eventDefinitionType: 'bpmn:MessageEventDefinition' }
|
|
58965
59032
|
),
|
|
58966
59033
|
'append.timer-intermediate-event': appendAction(
|
|
58967
59034
|
'bpmn:IntermediateCatchEvent',
|
|
58968
59035
|
'bpmn-icon-intermediate-event-catch-timer',
|
|
58969
|
-
translate('Append
|
|
59036
|
+
translate('Append timer intermediate catch event'),
|
|
58970
59037
|
{ eventDefinitionType: 'bpmn:TimerEventDefinition' }
|
|
58971
59038
|
),
|
|
58972
59039
|
'append.condition-intermediate-event': appendAction(
|
|
58973
59040
|
'bpmn:IntermediateCatchEvent',
|
|
58974
59041
|
'bpmn-icon-intermediate-event-catch-condition',
|
|
58975
|
-
translate('Append
|
|
59042
|
+
translate('Append conditional intermediate catch event'),
|
|
58976
59043
|
{ eventDefinitionType: 'bpmn:ConditionalEventDefinition' }
|
|
58977
59044
|
),
|
|
58978
59045
|
'append.signal-intermediate-event': appendAction(
|
|
58979
59046
|
'bpmn:IntermediateCatchEvent',
|
|
58980
59047
|
'bpmn-icon-intermediate-event-catch-signal',
|
|
58981
|
-
translate('Append
|
|
59048
|
+
translate('Append signal intermediate catch event'),
|
|
58982
59049
|
{ eventDefinitionType: 'bpmn:SignalEventDefinition' }
|
|
58983
59050
|
)
|
|
58984
59051
|
});
|
|
@@ -59008,22 +59075,22 @@
|
|
|
59008
59075
|
'append.end-event': appendAction(
|
|
59009
59076
|
'bpmn:EndEvent',
|
|
59010
59077
|
'bpmn-icon-end-event-none',
|
|
59011
|
-
translate('Append
|
|
59078
|
+
translate('Append end event')
|
|
59012
59079
|
),
|
|
59013
59080
|
'append.gateway': appendAction(
|
|
59014
59081
|
'bpmn:ExclusiveGateway',
|
|
59015
59082
|
'bpmn-icon-gateway-none',
|
|
59016
|
-
translate('Append
|
|
59083
|
+
translate('Append gateway')
|
|
59017
59084
|
),
|
|
59018
59085
|
'append.append-task': appendAction(
|
|
59019
59086
|
'bpmn:Task',
|
|
59020
59087
|
'bpmn-icon-task',
|
|
59021
|
-
translate('Append
|
|
59088
|
+
translate('Append task')
|
|
59022
59089
|
),
|
|
59023
59090
|
'append.intermediate-event': appendAction(
|
|
59024
59091
|
'bpmn:IntermediateThrowEvent',
|
|
59025
59092
|
'bpmn-icon-intermediate-event-none',
|
|
59026
|
-
translate('Append
|
|
59093
|
+
translate('Append intermediate/boundary event')
|
|
59027
59094
|
)
|
|
59028
59095
|
});
|
|
59029
59096
|
}
|
|
@@ -59060,7 +59127,7 @@
|
|
|
59060
59127
|
'append.text-annotation': appendAction(
|
|
59061
59128
|
'bpmn:TextAnnotation',
|
|
59062
59129
|
'bpmn-icon-text-annotation',
|
|
59063
|
-
translate('Append
|
|
59130
|
+
translate('Append text annotation')
|
|
59064
59131
|
)
|
|
59065
59132
|
});
|
|
59066
59133
|
}
|
|
@@ -59077,7 +59144,7 @@
|
|
|
59077
59144
|
'append.text-annotation': appendAction(
|
|
59078
59145
|
'bpmn:TextAnnotation',
|
|
59079
59146
|
'bpmn-icon-text-annotation',
|
|
59080
|
-
translate('Append
|
|
59147
|
+
translate('Append text annotation')
|
|
59081
59148
|
),
|
|
59082
59149
|
|
|
59083
59150
|
'connect': {
|
|
@@ -59087,8 +59154,8 @@
|
|
|
59087
59154
|
'Connect using ' +
|
|
59088
59155
|
(businessObject.isForCompensation
|
|
59089
59156
|
? ''
|
|
59090
|
-
: '
|
|
59091
|
-
'
|
|
59157
|
+
: 'sequence/message flow or ') +
|
|
59158
|
+
'association'
|
|
59092
59159
|
),
|
|
59093
59160
|
action: {
|
|
59094
59161
|
click: startConnect,
|
|
@@ -59103,7 +59170,7 @@
|
|
|
59103
59170
|
'connect': {
|
|
59104
59171
|
group: 'connect',
|
|
59105
59172
|
className: 'bpmn-icon-connection-multi',
|
|
59106
|
-
title: translate('Connect using
|
|
59173
|
+
title: translate('Connect using association'),
|
|
59107
59174
|
action: {
|
|
59108
59175
|
click: startConnect,
|
|
59109
59176
|
dragstart: startConnect,
|
|
@@ -59117,7 +59184,7 @@
|
|
|
59117
59184
|
'connect': {
|
|
59118
59185
|
group: 'connect',
|
|
59119
59186
|
className: 'bpmn-icon-connection-multi',
|
|
59120
|
-
title: translate('Connect using
|
|
59187
|
+
title: translate('Connect using data input association'),
|
|
59121
59188
|
action: {
|
|
59122
59189
|
click: startConnect,
|
|
59123
59190
|
dragstart: startConnect
|
|
@@ -59131,7 +59198,7 @@
|
|
|
59131
59198
|
'append.text-annotation': appendAction(
|
|
59132
59199
|
'bpmn:TextAnnotation',
|
|
59133
59200
|
'bpmn-icon-text-annotation',
|
|
59134
|
-
translate('Append
|
|
59201
|
+
translate('Append text annotation')
|
|
59135
59202
|
)
|
|
59136
59203
|
});
|
|
59137
59204
|
}
|
|
@@ -60622,7 +60689,7 @@
|
|
|
60622
60689
|
* @typedef {import('../../grid-snapping/GridSnapping').default} GridSnapping
|
|
60623
60690
|
*/
|
|
60624
60691
|
|
|
60625
|
-
var HIGH_PRIORITY$
|
|
60692
|
+
var HIGH_PRIORITY$b = 2000;
|
|
60626
60693
|
|
|
60627
60694
|
/**
|
|
60628
60695
|
* Integrates space tool with grid snapping.
|
|
@@ -60634,7 +60701,7 @@
|
|
|
60634
60701
|
eventBus.on([
|
|
60635
60702
|
'spaceTool.move',
|
|
60636
60703
|
'spaceTool.end'
|
|
60637
|
-
], HIGH_PRIORITY$
|
|
60704
|
+
], HIGH_PRIORITY$b, function(event) {
|
|
60638
60705
|
var context = event.context;
|
|
60639
60706
|
|
|
60640
60707
|
if (!context.initialized) {
|
|
@@ -60693,14 +60760,14 @@
|
|
|
60693
60760
|
* @typedef {import('diagram-js/lib/util/Types').Axis} Axis
|
|
60694
60761
|
*/
|
|
60695
60762
|
|
|
60696
|
-
var HIGH_PRIORITY$
|
|
60763
|
+
var HIGH_PRIORITY$a = 2000;
|
|
60697
60764
|
|
|
60698
60765
|
/**
|
|
60699
60766
|
* @param {EventBus} eventBus
|
|
60700
60767
|
* @param {GridSnapping} gridSnapping
|
|
60701
60768
|
*/
|
|
60702
60769
|
function GridSnappingAutoPlaceBehavior(eventBus, gridSnapping) {
|
|
60703
|
-
eventBus.on('autoPlace', HIGH_PRIORITY$
|
|
60770
|
+
eventBus.on('autoPlace', HIGH_PRIORITY$a, function(context) {
|
|
60704
60771
|
var source = context.source,
|
|
60705
60772
|
sourceMid = getMid(source),
|
|
60706
60773
|
shape = context.shape;
|
|
@@ -60809,7 +60876,7 @@
|
|
|
60809
60876
|
* @typedef {import('diagram-js/lib/util/Types').Point} Point
|
|
60810
60877
|
*/
|
|
60811
60878
|
|
|
60812
|
-
var HIGH_PRIORITY$
|
|
60879
|
+
var HIGH_PRIORITY$9 = 3000;
|
|
60813
60880
|
|
|
60814
60881
|
|
|
60815
60882
|
/**
|
|
@@ -60829,7 +60896,7 @@
|
|
|
60829
60896
|
this.postExecuted([
|
|
60830
60897
|
'connection.create',
|
|
60831
60898
|
'connection.layout'
|
|
60832
|
-
], HIGH_PRIORITY$
|
|
60899
|
+
], HIGH_PRIORITY$9, function(event) {
|
|
60833
60900
|
var context = event.context,
|
|
60834
60901
|
connection = context.connection,
|
|
60835
60902
|
hints = context.hints || {},
|
|
@@ -62058,7 +62125,7 @@
|
|
|
62058
62125
|
* } } DirectEditingContext
|
|
62059
62126
|
*/
|
|
62060
62127
|
|
|
62061
|
-
var HIGH_PRIORITY$
|
|
62128
|
+
var HIGH_PRIORITY$8 = 2000;
|
|
62062
62129
|
|
|
62063
62130
|
/**
|
|
62064
62131
|
* @param {EventBus} eventBus
|
|
@@ -62103,7 +62170,7 @@
|
|
|
62103
62170
|
eventBus.on([
|
|
62104
62171
|
'shape.remove',
|
|
62105
62172
|
'connection.remove'
|
|
62106
|
-
], HIGH_PRIORITY$
|
|
62173
|
+
], HIGH_PRIORITY$8, function(event) {
|
|
62107
62174
|
|
|
62108
62175
|
if (directEditing.isActive(event.element)) {
|
|
62109
62176
|
directEditing.cancel();
|
|
@@ -62291,13 +62358,47 @@
|
|
|
62291
62358
|
|
|
62292
62359
|
// adjust for expanded pools AND lanes
|
|
62293
62360
|
if (is$6(element, 'bpmn:Lane') || isExpandedPool(element)) {
|
|
62361
|
+
var isHorizontalLane = isHorizontal$4(element);
|
|
62294
62362
|
|
|
62295
|
-
|
|
62363
|
+
var laneBounds = isHorizontalLane ? {
|
|
62296
62364
|
width: bbox.height,
|
|
62297
62365
|
height: 30 * zoom,
|
|
62298
62366
|
x: bbox.x - bbox.height / 2 + (15 * zoom),
|
|
62299
62367
|
y: mid.y - (30 * zoom) / 2
|
|
62368
|
+
} : {
|
|
62369
|
+
width: bbox.width,
|
|
62370
|
+
height: 30 * zoom
|
|
62371
|
+
};
|
|
62372
|
+
|
|
62373
|
+
assign$2(bounds, laneBounds);
|
|
62374
|
+
|
|
62375
|
+
assign$2(style, {
|
|
62376
|
+
fontSize: defaultFontSize + 'px',
|
|
62377
|
+
lineHeight: defaultLineHeight,
|
|
62378
|
+
paddingTop: (7 * zoom) + 'px',
|
|
62379
|
+
paddingBottom: (7 * zoom) + 'px',
|
|
62380
|
+
paddingLeft: (5 * zoom) + 'px',
|
|
62381
|
+
paddingRight: (5 * zoom) + 'px',
|
|
62382
|
+
transform: isHorizontalLane ? 'rotate(-90deg)' : null
|
|
62300
62383
|
});
|
|
62384
|
+
}
|
|
62385
|
+
|
|
62386
|
+
|
|
62387
|
+
// internal labels for collapsed participants
|
|
62388
|
+
if (isCollapsedPool(element)) {
|
|
62389
|
+
var isHorizontalPool = isHorizontal$4(element);
|
|
62390
|
+
|
|
62391
|
+
var poolBounds = isHorizontalPool ? {
|
|
62392
|
+
width: bbox.width,
|
|
62393
|
+
height: bbox.height
|
|
62394
|
+
} : {
|
|
62395
|
+
width: bbox.height,
|
|
62396
|
+
height: bbox.width,
|
|
62397
|
+
x: mid.x - bbox.height / 2,
|
|
62398
|
+
y: mid.y - bbox.width / 2
|
|
62399
|
+
};
|
|
62400
|
+
|
|
62401
|
+
assign$2(bounds, poolBounds);
|
|
62301
62402
|
|
|
62302
62403
|
assign$2(style, {
|
|
62303
62404
|
fontSize: defaultFontSize + 'px',
|
|
@@ -62306,15 +62407,14 @@
|
|
|
62306
62407
|
paddingBottom: (7 * zoom) + 'px',
|
|
62307
62408
|
paddingLeft: (5 * zoom) + 'px',
|
|
62308
62409
|
paddingRight: (5 * zoom) + 'px',
|
|
62309
|
-
transform: 'rotate(-90deg)'
|
|
62410
|
+
transform: isHorizontalPool ? null : 'rotate(-90deg)'
|
|
62310
62411
|
});
|
|
62311
62412
|
}
|
|
62312
62413
|
|
|
62313
62414
|
|
|
62314
|
-
// internal labels for tasks and collapsed call activities
|
|
62315
|
-
// sub processes
|
|
62415
|
+
// internal labels for tasks and collapsed call activities
|
|
62416
|
+
// and sub processes
|
|
62316
62417
|
if (isAny$1(element, [ 'bpmn:Task', 'bpmn:CallActivity' ]) ||
|
|
62317
|
-
isCollapsedPool(element) ||
|
|
62318
62418
|
isCollapsedSubProcess(element)) {
|
|
62319
62419
|
|
|
62320
62420
|
assign$2(bounds, {
|
|
@@ -63075,7 +63175,7 @@
|
|
|
63075
63175
|
|
|
63076
63176
|
var LOW_PRIORITY$8 = 500,
|
|
63077
63177
|
MEDIUM_PRIORITY = 1250,
|
|
63078
|
-
HIGH_PRIORITY$
|
|
63178
|
+
HIGH_PRIORITY$7 = 1500;
|
|
63079
63179
|
|
|
63080
63180
|
var round = Math.round;
|
|
63081
63181
|
|
|
@@ -63125,7 +63225,7 @@
|
|
|
63125
63225
|
// * validatedShapes: a list of shapes that are being checked
|
|
63126
63226
|
// against the rules before and during move
|
|
63127
63227
|
//
|
|
63128
|
-
eventBus.on('shape.move.start', HIGH_PRIORITY$
|
|
63228
|
+
eventBus.on('shape.move.start', HIGH_PRIORITY$7, function(event) {
|
|
63129
63229
|
|
|
63130
63230
|
var context = event.context,
|
|
63131
63231
|
shape = event.shape,
|
|
@@ -64554,7 +64654,7 @@
|
|
|
64554
64654
|
* @typedef {import('../tool-manager/ToolManager').default} ToolManager
|
|
64555
64655
|
*/
|
|
64556
64656
|
|
|
64557
|
-
var HIGH_PRIORITY$
|
|
64657
|
+
var HIGH_PRIORITY$6 = 1500;
|
|
64558
64658
|
var HAND_CURSOR = 'grab';
|
|
64559
64659
|
|
|
64560
64660
|
/**
|
|
@@ -64580,7 +64680,7 @@
|
|
|
64580
64680
|
dragging: 'hand.move'
|
|
64581
64681
|
});
|
|
64582
64682
|
|
|
64583
|
-
eventBus.on('element.mousedown', HIGH_PRIORITY$
|
|
64683
|
+
eventBus.on('element.mousedown', HIGH_PRIORITY$6, function(event) {
|
|
64584
64684
|
|
|
64585
64685
|
if (!hasPrimaryModifier(event)) {
|
|
64586
64686
|
return;
|
|
@@ -64591,7 +64691,7 @@
|
|
|
64591
64691
|
return false;
|
|
64592
64692
|
});
|
|
64593
64693
|
|
|
64594
|
-
keyboard && keyboard.addListener(HIGH_PRIORITY$
|
|
64694
|
+
keyboard && keyboard.addListener(HIGH_PRIORITY$6, function(e) {
|
|
64595
64695
|
if (!isSpace$1(e.keyEvent) || self.isActive()) {
|
|
64596
64696
|
return;
|
|
64597
64697
|
}
|
|
@@ -64601,7 +64701,7 @@
|
|
|
64601
64701
|
self.activateMove(mouseEvent, !!mouseEvent);
|
|
64602
64702
|
}, 'keyboard.keydown');
|
|
64603
64703
|
|
|
64604
|
-
keyboard && keyboard.addListener(HIGH_PRIORITY$
|
|
64704
|
+
keyboard && keyboard.addListener(HIGH_PRIORITY$6, function(e) {
|
|
64605
64705
|
if (!isSpace$1(e.keyEvent) || !self.isActive()) {
|
|
64606
64706
|
return;
|
|
64607
64707
|
}
|
|
@@ -64967,12 +65067,10 @@
|
|
|
64967
65067
|
create.start(event, shape);
|
|
64968
65068
|
}
|
|
64969
65069
|
|
|
64970
|
-
var shortType = type.replace(/^bpmn:/, '');
|
|
64971
|
-
|
|
64972
65070
|
return {
|
|
64973
65071
|
group: group,
|
|
64974
65072
|
className: className,
|
|
64975
|
-
title: title
|
|
65073
|
+
title: title,
|
|
64976
65074
|
action: {
|
|
64977
65075
|
dragstart: createListener,
|
|
64978
65076
|
click: createListener
|
|
@@ -65010,7 +65108,7 @@
|
|
|
65010
65108
|
'hand-tool': {
|
|
65011
65109
|
group: 'tools',
|
|
65012
65110
|
className: 'bpmn-icon-hand-tool',
|
|
65013
|
-
title: translate('Activate
|
|
65111
|
+
title: translate('Activate hand tool'),
|
|
65014
65112
|
action: {
|
|
65015
65113
|
click: function(event) {
|
|
65016
65114
|
handTool.activateHand(event);
|
|
@@ -65020,7 +65118,7 @@
|
|
|
65020
65118
|
'lasso-tool': {
|
|
65021
65119
|
group: 'tools',
|
|
65022
65120
|
className: 'bpmn-icon-lasso-tool',
|
|
65023
|
-
title: translate('Activate
|
|
65121
|
+
title: translate('Activate lasso tool'),
|
|
65024
65122
|
action: {
|
|
65025
65123
|
click: function(event) {
|
|
65026
65124
|
lassoTool.activateSelection(event);
|
|
@@ -65030,7 +65128,7 @@
|
|
|
65030
65128
|
'space-tool': {
|
|
65031
65129
|
group: 'tools',
|
|
65032
65130
|
className: 'bpmn-icon-space-tool',
|
|
65033
|
-
title: translate('Activate
|
|
65131
|
+
title: translate('Activate create/remove space tool'),
|
|
65034
65132
|
action: {
|
|
65035
65133
|
click: function(event) {
|
|
65036
65134
|
spaceTool.activateSelection(event);
|
|
@@ -65040,7 +65138,7 @@
|
|
|
65040
65138
|
'global-connect-tool': {
|
|
65041
65139
|
group: 'tools',
|
|
65042
65140
|
className: 'bpmn-icon-connection-multi',
|
|
65043
|
-
title: translate('Activate
|
|
65141
|
+
title: translate('Activate global connect tool'),
|
|
65044
65142
|
action: {
|
|
65045
65143
|
click: function(event) {
|
|
65046
65144
|
globalConnect.start(event);
|
|
@@ -65053,36 +65151,36 @@
|
|
|
65053
65151
|
},
|
|
65054
65152
|
'create.start-event': createAction(
|
|
65055
65153
|
'bpmn:StartEvent', 'event', 'bpmn-icon-start-event-none',
|
|
65056
|
-
translate('Create
|
|
65154
|
+
translate('Create start event')
|
|
65057
65155
|
),
|
|
65058
65156
|
'create.intermediate-event': createAction(
|
|
65059
65157
|
'bpmn:IntermediateThrowEvent', 'event', 'bpmn-icon-intermediate-event-none',
|
|
65060
|
-
translate('Create
|
|
65158
|
+
translate('Create intermediate/boundary event')
|
|
65061
65159
|
),
|
|
65062
65160
|
'create.end-event': createAction(
|
|
65063
65161
|
'bpmn:EndEvent', 'event', 'bpmn-icon-end-event-none',
|
|
65064
|
-
translate('Create
|
|
65162
|
+
translate('Create end event')
|
|
65065
65163
|
),
|
|
65066
65164
|
'create.exclusive-gateway': createAction(
|
|
65067
65165
|
'bpmn:ExclusiveGateway', 'gateway', 'bpmn-icon-gateway-none',
|
|
65068
|
-
translate('Create
|
|
65166
|
+
translate('Create gateway')
|
|
65069
65167
|
),
|
|
65070
65168
|
'create.task': createAction(
|
|
65071
65169
|
'bpmn:Task', 'activity', 'bpmn-icon-task',
|
|
65072
|
-
translate('Create
|
|
65170
|
+
translate('Create task')
|
|
65073
65171
|
),
|
|
65074
65172
|
'create.data-object': createAction(
|
|
65075
65173
|
'bpmn:DataObjectReference', 'data-object', 'bpmn-icon-data-object',
|
|
65076
|
-
translate('Create
|
|
65174
|
+
translate('Create data object reference')
|
|
65077
65175
|
),
|
|
65078
65176
|
'create.data-store': createAction(
|
|
65079
65177
|
'bpmn:DataStoreReference', 'data-store', 'bpmn-icon-data-store',
|
|
65080
|
-
translate('Create
|
|
65178
|
+
translate('Create data store reference')
|
|
65081
65179
|
),
|
|
65082
65180
|
'create.subprocess-expanded': {
|
|
65083
65181
|
group: 'activity',
|
|
65084
65182
|
className: 'bpmn-icon-subprocess-expanded',
|
|
65085
|
-
title: translate('Create expanded
|
|
65183
|
+
title: translate('Create expanded sub-process'),
|
|
65086
65184
|
action: {
|
|
65087
65185
|
dragstart: createSubprocess,
|
|
65088
65186
|
click: createSubprocess
|
|
@@ -65091,7 +65189,7 @@
|
|
|
65091
65189
|
'create.participant-expanded': {
|
|
65092
65190
|
group: 'collaboration',
|
|
65093
65191
|
className: 'bpmn-icon-participant',
|
|
65094
|
-
title: translate('Create
|
|
65192
|
+
title: translate('Create pool/participant'),
|
|
65095
65193
|
action: {
|
|
65096
65194
|
dragstart: createParticipant,
|
|
65097
65195
|
click: createParticipant
|
|
@@ -65099,7 +65197,7 @@
|
|
|
65099
65197
|
},
|
|
65100
65198
|
'create.group': createAction(
|
|
65101
65199
|
'bpmn:Group', 'artifact', 'bpmn-icon-group',
|
|
65102
|
-
translate('Create
|
|
65200
|
+
translate('Create group')
|
|
65103
65201
|
),
|
|
65104
65202
|
});
|
|
65105
65203
|
|
|
@@ -65897,7 +65995,7 @@
|
|
|
65897
65995
|
* @typedef {import('../../model/Types').Shape} Shape
|
|
65898
65996
|
*/
|
|
65899
65997
|
|
|
65900
|
-
var HIGH_PRIORITY$
|
|
65998
|
+
var HIGH_PRIORITY$5 = 1500;
|
|
65901
65999
|
|
|
65902
66000
|
|
|
65903
66001
|
/**
|
|
@@ -65910,7 +66008,7 @@
|
|
|
65910
66008
|
injector.invoke(CreateMoveSnapping, this);
|
|
65911
66009
|
|
|
65912
66010
|
// creating first participant
|
|
65913
|
-
eventBus.on([ 'create.move', 'create.end' ], HIGH_PRIORITY$
|
|
66011
|
+
eventBus.on([ 'create.move', 'create.end' ], HIGH_PRIORITY$5, setSnappedIfConstrained);
|
|
65914
66012
|
|
|
65915
66013
|
// snap boundary events
|
|
65916
66014
|
eventBus.on([
|
|
@@ -65918,7 +66016,7 @@
|
|
|
65918
66016
|
'create.end',
|
|
65919
66017
|
'shape.move.move',
|
|
65920
66018
|
'shape.move.end'
|
|
65921
|
-
], HIGH_PRIORITY$
|
|
66019
|
+
], HIGH_PRIORITY$5, function(event) {
|
|
65922
66020
|
var context = event.context,
|
|
65923
66021
|
canExecute = context.canExecute,
|
|
65924
66022
|
target = context.target;
|
|
@@ -116869,7 +116967,7 @@
|
|
|
116869
116967
|
});
|
|
116870
116968
|
}
|
|
116871
116969
|
|
|
116872
|
-
const HIGH_PRIORITY$
|
|
116970
|
+
const HIGH_PRIORITY$4 = 5000;
|
|
116873
116971
|
|
|
116874
116972
|
|
|
116875
116973
|
/**
|
|
@@ -116883,7 +116981,7 @@
|
|
|
116883
116981
|
this.postExecute([
|
|
116884
116982
|
'element.updateProperties',
|
|
116885
116983
|
'element.updateModdleProperties'
|
|
116886
|
-
], HIGH_PRIORITY$
|
|
116984
|
+
], HIGH_PRIORITY$4, function(context) {
|
|
116887
116985
|
const {
|
|
116888
116986
|
element,
|
|
116889
116987
|
moddleElement,
|
|
@@ -116954,7 +117052,7 @@
|
|
|
116954
117052
|
'modeling'
|
|
116955
117053
|
];
|
|
116956
117054
|
|
|
116957
|
-
const HIGH_PRIORITY$
|
|
117055
|
+
const HIGH_PRIORITY$3 = 5000;
|
|
116958
117056
|
|
|
116959
117057
|
|
|
116960
117058
|
/**
|
|
@@ -116969,7 +117067,7 @@
|
|
|
116969
117067
|
this.postExecute([
|
|
116970
117068
|
'element.updateProperties',
|
|
116971
117069
|
'element.updateModdleProperties'
|
|
116972
|
-
], HIGH_PRIORITY$
|
|
117070
|
+
], HIGH_PRIORITY$3, function(context) {
|
|
116973
117071
|
const {
|
|
116974
117072
|
element,
|
|
116975
117073
|
moddleElement,
|
|
@@ -117134,7 +117232,7 @@
|
|
|
117134
117232
|
'modeling'
|
|
117135
117233
|
];
|
|
117136
117234
|
|
|
117137
|
-
const HIGH_PRIORITY$
|
|
117235
|
+
const HIGH_PRIORITY$2 = 5000;
|
|
117138
117236
|
|
|
117139
117237
|
|
|
117140
117238
|
/**
|
|
@@ -117148,7 +117246,7 @@
|
|
|
117148
117246
|
this.preExecute([
|
|
117149
117247
|
'element.updateProperties',
|
|
117150
117248
|
'element.updateModdleProperties',
|
|
117151
|
-
], HIGH_PRIORITY$
|
|
117249
|
+
], HIGH_PRIORITY$2, function(context) {
|
|
117152
117250
|
const {
|
|
117153
117251
|
element,
|
|
117154
117252
|
moddleElement,
|
|
@@ -117243,7 +117341,7 @@
|
|
|
117243
117341
|
'eventBus'
|
|
117244
117342
|
];
|
|
117245
117343
|
|
|
117246
|
-
const HIGH_PRIORITY = 5000;
|
|
117344
|
+
const HIGH_PRIORITY$1 = 5000;
|
|
117247
117345
|
|
|
117248
117346
|
|
|
117249
117347
|
/**
|
|
@@ -117257,7 +117355,7 @@
|
|
|
117257
117355
|
this.preExecute([
|
|
117258
117356
|
'element.updateProperties',
|
|
117259
117357
|
'element.updateModdleProperties'
|
|
117260
|
-
], HIGH_PRIORITY, function(context) {
|
|
117358
|
+
], HIGH_PRIORITY$1, function(context) {
|
|
117261
117359
|
const {
|
|
117262
117360
|
element,
|
|
117263
117361
|
moddleElement,
|
|
@@ -118212,11 +118310,11 @@
|
|
|
118212
118310
|
}
|
|
118213
118311
|
|
|
118214
118312
|
var name$1 = "@camunda/zeebe-element-templates-json-schema";
|
|
118215
|
-
var version = "0.
|
|
118313
|
+
var version = "0.17.0";
|
|
118216
118314
|
|
|
118217
118315
|
var standaloneZeebeValidator = {exports: {}};
|
|
118218
118316
|
|
|
118219
|
-
standaloneZeebeValidator.exports = validate14;standaloneZeebeValidator.exports.default = validate14;const schema17 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"version":{"$id":"#/version","type":"integer","description":"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Indicates whether the element template is deprecated.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"Optional link to migration documentation."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:SendTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#zeebe:subscription#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}}]}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"icon":{"$id":"#/icon","type":"object","description":"Custom icon to be shown on the element","default":{},"properties":{"contents":{"$id":"#/icon/contents","type":"string","description":"The URL of an icon.","pattern":"^(https?|data):.*","errorMessage":{"pattern":"Malformed icon source, must be a valid HTTP(s) or data URL"}}},"required":["contents"],"errorMessage":{"required":{"contents":"missing icon contents"}}},"elementType":{"allOf":[{"allOf":[{"properties":{"eventDefinition":{"$id":"#/elementType/eventDefinition","enum":["bpmn:MessageEventDefinition"]}}},{"if":{"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"required":["value"]}}]}]},"groups":{"items":{"properties":{"tooltip":{"$id":"#/groups/group/tooltip","type":"string"},"openByDefault":{"$id":"#/groups/group/openByDefault","type":"boolean","description":"Specifies whether the Group should be opened when first viewed. Defaults to true.","default":true}}}}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern4 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const func0 = equal.exports;const schema18 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."},"condition":{"$id":"#/condition","type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}}},"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","zeebe:taskDefinition:type","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"}},"required":["type"]}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"constraints":{"properties":{"notEmpty":{"const":false,"errorMessage":"optional is not allowed for truthy \"notEmpty\" constraint"}},"required":["notEmpty"]}}}},{"if":{"properties":{"feel":{"not":{"const":null}}},"required":["feel"]},"then":{"properties":{"type":{"enum":["String","Text"],"errorMessage":"feel is only supported for \"String\" and \"Text\" type"}},"required":["type"]}},{"if":{"properties":{"language":{"not":{"const":null}}},"required":["language"]},"then":{"properties":{"type":{"enum":["Text"],"errorMessage":"language is only supported for \"Text\" type"}}}},{"if":{"required":["value"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["Boolean","Dropdown"]}},"required":["type"]},"then":{"not":{"required":["generatedValue"]}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","zeebe:property","zeebe:input","bpmn:Message#property","bpmn:Message#zeebe:subscription#property"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"zeebe:taskHeader"}},"required":["type"]},"then":{"required":["key"],"errorMessage":"property.binding ${0/type} requires key"}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["type","retries"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition:type"}},"required":["type"]},"then":{"deprecated":true}},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:property","name":"property"},{"type":"zeebe:taskHeader","key":"key"},{"type":"zeebe:taskDefinition","property":"retries"},{"type":"zeebe:taskDefinition","property":"type"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","description":"The type of a property binding.","enum":["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"The key value of a property binding (zeebe:taskHeader)."},"property":{"$id":"#/properties/property/binding/property","type":"string","description":"The name of the property defined in the binding."}}},"optional":{"$id":"#/optional","type":"boolean","description":"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},"feel":{"$id":"#/properties/property/feel","type":"string","default":null,"description":"Indicates whether the property can be a feel expression","enum":[null,"optional","required"]},"language":{"$id":"#/properties/property/language","type":"string","description":"Indicates that the field is a custom language editor"},"generatedValue":{"$id":"#/properties/property/generatedValue","type":"object","required":["type"],"properties":{"type":{"const":"uuid"}},"description":"Sets property to a generated value according to given scheme."},"tooltip":{"$id":"#/properties/property/tooltip","type":"string","description":"Hints for the control field."}},"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}}}}]};const schema20 = {"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};function validate17(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {keyword:"type",dataPath:dataPath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {keyword:"type",dataPath:dataPath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {keyword:"type",dataPath:dataPath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {keyword:"type",dataPath:dataPath+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}}}if(!valid2){const err8 = {keyword:"oneOf",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err9 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.type !== undefined){if(!func0(data.type, "simple")){const err10 = {keyword:"const",dataPath:dataPath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err11 = {keyword:"type",dataPath:dataPath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {keyword:"type",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err13 of vErrors){if((((((err13.keyword !== "errorMessage") && (!err13.emUsed)) && (err13.dataPath === dataPath)) && (err13.keyword in emErrors0)) && (err13.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err13.schemaPath.slice(81)))){emPropParams0 = obj0[err13.keyword];emParamsErrors0 = emErrors0[err13.keyword][err13.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err13);err13.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err14 = {keyword:"errorMessage",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}const emErrs0 = [];for(const err15 of vErrors){if(!err15.emUsed){emErrs0.push(err15);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err16 = {keyword:"required",dataPath,schemaPath:"#/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.allMatch !== undefined){let data6 = data.allMatch;if(Array.isArray(data6)){if(data6.length < 1){const err17 = {keyword:"minItems",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const len1 = data6.length;for(let i1=0; i1<len1; i1++){let data7 = data6[i1];const _errs26 = errors;let valid13 = false;let passing2 = null;const _errs27 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.equals === undefined){const err18 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data7.equals !== undefined){let data8 = data7.equals;if(((typeof data8 !== "string") && (!(typeof data8 == "number"))) && (typeof data8 !== "boolean")){const err19 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2){valid13 = true;passing2 = 0;}const _errs30 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.oneOf === undefined){const err20 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data7.oneOf !== undefined){let data9 = data7.oneOf;if(Array.isArray(data9)){const len2 = data9.length;for(let i2=0; i2<len2; i2++){let data10 = data9[i2];if((typeof data10 !== "string") && (!(typeof data10 == "number"))){const err21 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 1];}else {if(_valid2){valid13 = true;passing2 = 1;}const _errs35 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.isActive === undefined){const err23 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data7.isActive !== undefined){if(typeof data7.isActive !== "boolean"){const err24 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid2 = _errs35 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 2];}else {if(_valid2){valid13 = true;passing2 = 2;}}}if(!valid13){const err25 = {keyword:"oneOf",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.property === undefined){const err26 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data7.type !== undefined){if(!func0(data7.type, "simple")){const err27 = {keyword:"const",dataPath:dataPath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data7.property !== undefined){if(typeof data7.property !== "string"){const err28 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.dataPath === dataPath+"/allMatch/" + i1)) && (err30.keyword in emErrors1)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(81)))){emPropParams1 = obj0[err30.keyword];emParamsErrors1 = emErrors1[err30.keyword][err30.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err30);err30.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err31 = {keyword:"errorMessage",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs1 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs1.push(err32);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err33 = {keyword:"type",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid0 = _errs20 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err34 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17.errors = vErrors;return errors === 0;}function validate16(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if(!func0(data0.type, "Dropdown")){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {keyword:"required",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.dataPath === dataPath+"/" + i0) || ((err3.dataPath.indexOf(dataPath+"/" + i0) === 0) && (err3.dataPath[dataPath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {keyword:"if",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err7 = {keyword:"type",dataPath:dataPath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data0.value !== undefined){let data3 = data0.value;if((typeof data3 !== "string") && (typeof data3 !== "boolean")){const err8 = {keyword:"type",dataPath:dataPath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",params:{type: schema18.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err11 = {keyword:"type",dataPath:dataPath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err12 = {keyword:"type",dataPath:dataPath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data0.choices !== undefined){let data8 = data0.choices;if(Array.isArray(data8)){const len1 = data8.length;for(let i1=0; i1<len1; i1++){let data9 = data8[i1];if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.value === undefined){const err13 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data9.name === undefined){const err14 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data9.name !== undefined){if(typeof data9.name !== "string"){const err15 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data9.value !== undefined){if(typeof data9.value !== "string"){const err16 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data9.condition !== undefined){if(!(validate17(data9.condition, {dataPath:dataPath+"/" + i0+"/choices/" + i1+"/condition",parentData:data9,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err17 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(errors > 0){const emErrors0 = {"required":[]};const templates0 = {};for(const err18 of vErrors){if((((((err18.keyword !== "errorMessage") && (!err18.emUsed)) && (err18.dataPath === dataPath+"/" + i0+"/choices/" + i1)) && (err18.keyword in emErrors0)) && (err18.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err18.schemaPath.slice(40)))){emErrors0[err18.keyword].push(err18);err18.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err19 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema18.allOf[0].items.properties.choices.items.errorMessage[key0]};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}const emErrs2 = [];for(const err20 of vErrors){if(!err20.emUsed){emErrs2.push(err20);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data0.constraints !== undefined){let data13 = data0.constraints;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.notEmpty !== undefined){if(typeof data13.notEmpty !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data13.minLength !== undefined){if(!(typeof data13.minLength == "number")){const err23 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data13.maxLength !== undefined){if(!(typeof data13.maxLength == "number")){const err24 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data13.pattern !== undefined){let data17 = data13.pattern;const _errs39 = errors;let valid13 = false;let passing0 = null;const _errs40 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){if(typeof data17.value !== "string"){const err25 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data17.message !== undefined){if(typeof data17.message !== "string"){const err26 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid1 = _errs40 === errors;if(_valid1){valid13 = true;passing0 = 0;}const _errs46 = errors;if(typeof data17 !== "string"){const err28 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid1 = _errs46 === errors;if(_valid1 && valid13){valid13 = false;passing0 = [passing0, 1];}else {if(_valid1){valid13 = true;passing0 = 1;}}if(!valid13){const err29 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}}}else {const err30 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err31 = {keyword:"type",dataPath:dataPath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data0.condition !== undefined){let data21 = data0.condition;if(!(data21 && typeof data21 == "object" && !Array.isArray(data21))){const err32 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}const _errs52 = errors;let valid15 = false;let passing1 = null;const _errs53 = errors;const _errs56 = errors;let valid17 = false;let passing2 = null;const _errs57 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.equals === undefined){const err33 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data21.equals !== undefined){let data22 = data21.equals;if(((typeof data22 !== "string") && (!(typeof data22 == "number"))) && (typeof data22 !== "boolean")){const err34 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}var _valid3 = _errs57 === errors;if(_valid3){valid17 = true;passing2 = 0;}const _errs60 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.oneOf === undefined){const err35 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data21.oneOf !== undefined){let data23 = data21.oneOf;if(Array.isArray(data23)){const len2 = data23.length;for(let i2=0; i2<len2; i2++){let data24 = data23[i2];if((typeof data24 !== "string") && (!(typeof data24 == "number"))){const err36 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}var _valid3 = _errs60 === errors;if(_valid3 && valid17){valid17 = false;passing2 = [passing2, 1];}else {if(_valid3){valid17 = true;passing2 = 1;}const _errs65 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.isActive === undefined){const err38 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(data21.isActive !== undefined){if(typeof data21.isActive !== "boolean"){const err39 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid3 = _errs65 === errors;if(_valid3 && valid17){valid17 = false;passing2 = [passing2, 2];}else {if(_valid3){valid17 = true;passing2 = 2;}}}if(!valid17){const err40 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.property === undefined){const err41 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data21.type !== undefined){if(!func0(data21.type, "simple")){const err42 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data21.property !== undefined){if(typeof data21.property !== "string"){const err43 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}else {const err44 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.dataPath === dataPath+"/" + i0+"/condition")) && (err45.keyword in emErrors1)) && (err45.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(81)))){emPropParams0 = obj0[err45.keyword];emParamsErrors0 = emErrors1[err45.keyword][err45.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err45);err45.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp0 in emErrors1[key1]){emParamsErrors0 = emErrors1[key1][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key1] && templates1[key1][keyProp0];const err46 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key1][keyProp0]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs3 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs3.push(err47);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid2 = _errs53 === errors;if(_valid2){valid15 = true;passing1 = 0;}const _errs71 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.allMatch === undefined){const err48 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if(data21.allMatch !== undefined){let data28 = data21.allMatch;if(Array.isArray(data28)){if(data28.length < 1){const err49 = {keyword:"minItems",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}const len3 = data28.length;for(let i3=0; i3<len3; i3++){let data29 = data28[i3];const _errs77 = errors;let valid28 = false;let passing3 = null;const _errs78 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.equals === undefined){const err50 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data29.equals !== undefined){let data30 = data29.equals;if(((typeof data30 !== "string") && (!(typeof data30 == "number"))) && (typeof data30 !== "boolean")){const err51 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}var _valid4 = _errs78 === errors;if(_valid4){valid28 = true;passing3 = 0;}const _errs81 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.oneOf === undefined){const err52 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(data29.oneOf !== undefined){let data31 = data29.oneOf;if(Array.isArray(data31)){const len4 = data31.length;for(let i4=0; i4<len4; i4++){let data32 = data31[i4];if((typeof data32 !== "string") && (!(typeof data32 == "number"))){const err53 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf/" + i4,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}else {const err54 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}var _valid4 = _errs81 === errors;if(_valid4 && valid28){valid28 = false;passing3 = [passing3, 1];}else {if(_valid4){valid28 = true;passing3 = 1;}const _errs86 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.isActive === undefined){const err55 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data29.isActive !== undefined){if(typeof data29.isActive !== "boolean"){const err56 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}var _valid4 = _errs86 === errors;if(_valid4 && valid28){valid28 = false;passing3 = [passing3, 2];}else {if(_valid4){valid28 = true;passing3 = 2;}}}if(!valid28){const err57 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}}if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.property === undefined){const err58 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data29.type !== undefined){if(!func0(data29.type, "simple")){const err59 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}if(data29.property !== undefined){if(typeof data29.property !== "string"){const err60 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}}else {const err61 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(errors > 0){const emErrors2 = {"required":{"property":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err62 of vErrors){if((((((err62.keyword !== "errorMessage") && (!err62.emUsed)) && (err62.dataPath === dataPath+"/" + i0+"/condition/allMatch/" + i3)) && (err62.keyword in emErrors2)) && (err62.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err62.schemaPath.slice(81)))){emPropParams1 = obj0[err62.keyword];emParamsErrors1 = emErrors2[err62.keyword][err62.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err62);err62.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp1 in emErrors2[key2]){emParamsErrors1 = emErrors2[key2][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key2] && templates2[key2][keyProp1];const err63 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key2][keyProp1]};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}const emErrs4 = [];for(const err64 of vErrors){if(!err64.emUsed){emErrs4.push(err64);}}vErrors = emErrs4;errors = emErrs4.length;}}}else {const err65 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}var _valid2 = _errs71 === errors;if(_valid2 && valid15){valid15 = false;passing1 = [passing1, 1];}else {if(_valid2){valid15 = true;passing1 = 1;}}if(!valid15){const err66 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}}}else {const err67 = {keyword:"type",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}else {const err68 = {keyword:"type",dataPath,schemaPath:"#/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data36 = data[i5];const _errs97 = errors;let valid39 = true;const _errs98 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {if(data36.binding !== undefined){let data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {if(data37.type !== undefined){if(!func0(data37.type, "property")){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}}}}}var _valid5 = _errs98 === errors;errors = _errs97;if(vErrors !== null){if(_errs97){vErrors.length = _errs97;}else {vErrors = null;}}if(_valid5){const _errs101 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data39 = data36.type;if(!(((((data39 === "String") || (data39 === "Text")) || (data39 === "Hidden")) || (data39 === "Dropdown")) || (data39 === "Boolean"))){const err72 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(errors > 0){const emErrs5 = [];for(const err73 of vErrors){if(((((err73.keyword !== "errorMessage") && (!err73.emUsed)) && ((err73.dataPath === dataPath+"/" + i5+"/type") || ((err73.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err73.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err73.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err73.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs5.push(err73);err73.emUsed = true;}}if(emErrs5.length){const err74 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs5},message:"invalid property type " + JSON.stringify(data39) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}const emErrs6 = [];for(const err75 of vErrors){if(!err75.emUsed){emErrs6.push(err75);}}vErrors = emErrs6;errors = emErrs6.length;}}}var _valid5 = _errs101 === errors;valid39 = _valid5;}if(!valid39){const err76 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}const _errs104 = errors;let valid43 = true;const _errs105 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {if(data36.binding !== undefined){let data40 = data36.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {if(data40.type !== undefined){let data41 = data40.type;if(!((((((((data41 === "zeebe:input") || (data41 === "zeebe:output")) || (data41 === "zeebe:property")) || (data41 === "zeebe:taskHeader")) || (data41 === "zeebe:taskDefinition:type")) || (data41 === "bpmn:Message#property")) || (data41 === "bpmn:Message#zeebe:subscription#property")) || (data41 === "zeebe:taskDefinition"))){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}}}}}var _valid6 = _errs105 === errors;errors = _errs104;if(vErrors !== null){if(_errs104){vErrors.length = _errs104;}else {vErrors = null;}}if(_valid6){const _errs108 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data42 = data36.type;if(!((((data42 === "String") || (data42 === "Text")) || (data42 === "Hidden")) || (data42 === "Dropdown"))){const err80 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(errors > 0){const emErrs7 = [];for(const err81 of vErrors){if(((((err81.keyword !== "errorMessage") && (!err81.emUsed)) && ((err81.dataPath === dataPath+"/" + i5+"/type") || ((err81.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err81.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err81.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err81.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs7.push(err81);err81.emUsed = true;}}if(emErrs7.length){const err82 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data42) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}const emErrs8 = [];for(const err83 of vErrors){if(!err83.emUsed){emErrs8.push(err83);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid6 = _errs108 === errors;valid43 = _valid6;}if(!valid43){const err84 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}const _errs111 = errors;let valid47 = true;const _errs112 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err85 = {};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}else {if(data36.optional !== undefined){if(!func0(data36.optional, true)){const err86 = {};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}}}var _valid7 = _errs112 === errors;errors = _errs111;if(vErrors !== null){if(_errs111){vErrors.length = _errs111;}else {vErrors = null;}}if(_valid7){const _errs114 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding !== undefined){let data44 = data36.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.type === undefined){const err87 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(data44.type !== undefined){let data45 = data44.type;if(!((((data45 === "zeebe:input") || (data45 === "zeebe:output")) || (data45 === "zeebe:property")) || (data45 === "zeebe:taskHeader"))){const err88 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(errors > 0){const emErrs9 = [];for(const err89 of vErrors){if(((((err89.keyword !== "errorMessage") && (!err89.emUsed)) && ((err89.dataPath === dataPath+"/" + i5+"/binding/type") || ((err89.dataPath.indexOf(dataPath+"/" + i5+"/binding/type") === 0) && (err89.dataPath[dataPath+"/" + i5+"/binding/type".length] === "/")))) && (err89.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err89.schemaPath["#/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs9.push(err89);err89.emUsed = true;}}if(emErrs9.length){const err90 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",params:{errors: emErrs9},message:"optional is not supported for binding type " + JSON.stringify(data45) + "; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}const emErrs10 = [];for(const err91 of vErrors){if(!err91.emUsed){emErrs10.push(err91);}}vErrors = emErrs10;errors = emErrs10.length;}}}}}var _valid7 = _errs114 === errors;valid47 = _valid7;}if(!valid47){const err92 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}const _errs118 = errors;let valid51 = true;const _errs119 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(data36.optional !== undefined){if(!func0(data36.optional, true)){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}}var _valid8 = _errs119 === errors;errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}if(_valid8){const _errs121 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.constraints !== undefined){let data47 = data36.constraints;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.notEmpty === undefined){const err95 = {keyword:"required",dataPath:dataPath+"/" + i5+"/constraints",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/required",params:{missingProperty: "notEmpty"},message:"should have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(data47.notEmpty !== undefined){if(!func0(data47.notEmpty, false)){const err96 = {keyword:"const",dataPath:dataPath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",params:{allowedValue: false},message:"should be equal to constant"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(errors > 0){const emErrs11 = [];for(const err97 of vErrors){if(((((err97.keyword !== "errorMessage") && (!err97.emUsed)) && ((err97.dataPath === dataPath+"/" + i5+"/constraints/notEmpty") || ((err97.dataPath.indexOf(dataPath+"/" + i5+"/constraints/notEmpty") === 0) && (err97.dataPath[dataPath+"/" + i5+"/constraints/notEmpty".length] === "/")))) && (err97.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err97.schemaPath["#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs11.push(err97);err97.emUsed = true;}}if(emErrs11.length){const err98 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",params:{errors: emErrs11},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}const emErrs12 = [];for(const err99 of vErrors){if(!err99.emUsed){emErrs12.push(err99);}}vErrors = emErrs12;errors = emErrs12.length;}}}}}var _valid8 = _errs121 === errors;valid51 = _valid8;}if(!valid51){const err100 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const _errs125 = errors;let valid55 = true;const _errs126 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.feel === undefined) && ("feel")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data36.feel !== undefined){const _errs128 = errors;const _errs129 = errors;if(!func0(data36.feel, schema18.allOf[1].items.allOf[4].if.properties.feel.not.const)){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}var valid57 = _errs129 === errors;if(!valid57){errors = _errs128;if(vErrors !== null){if(_errs128){vErrors.length = _errs128;}else {vErrors = null;}}}else {const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}var _valid9 = _errs126 === errors;errors = _errs125;if(vErrors !== null){if(_errs125){vErrors.length = _errs125;}else {vErrors = null;}}if(_valid9){const _errs130 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type === undefined){const err104 = {keyword:"required",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/then/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(data36.type !== undefined){let data50 = data36.type;if(!((data50 === "String") || (data50 === "Text"))){const err105 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[4].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(errors > 0){const emErrs13 = [];for(const err106 of vErrors){if(((((err106.keyword !== "errorMessage") && (!err106.emUsed)) && ((err106.dataPath === dataPath+"/" + i5+"/type") || ((err106.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err106.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err106.schemaPath.indexOf("#/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err106.schemaPath["#/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs13.push(err106);err106.emUsed = true;}}if(emErrs13.length){const err107 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/errorMessage",params:{errors: emErrs13},message:"feel is only supported for \"String\" and \"Text\" type"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}const emErrs14 = [];for(const err108 of vErrors){if(!err108.emUsed){emErrs14.push(err108);}}vErrors = emErrs14;errors = emErrs14.length;}}}var _valid9 = _errs130 === errors;valid55 = _valid9;}if(!valid55){const err109 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}const _errs133 = errors;let valid59 = true;const _errs134 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.language === undefined) && ("language")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}else {if(data36.language !== undefined){const _errs136 = errors;const _errs137 = errors;if(!func0(data36.language, schema18.allOf[1].items.allOf[5].if.properties.language.not.const)){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}var valid61 = _errs137 === errors;if(!valid61){errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}}else {const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}}var _valid10 = _errs134 === errors;errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}if(_valid10){const _errs138 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){if(!(data36.type === "Text")){const err113 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[5].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if(errors > 0){const emErrs15 = [];for(const err114 of vErrors){if(((((err114.keyword !== "errorMessage") && (!err114.emUsed)) && ((err114.dataPath === dataPath+"/" + i5+"/type") || ((err114.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err114.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err114.schemaPath.indexOf("#/allOf/1/items/allOf/5/then/properties/type") === 0)) && (err114.schemaPath["#/allOf/1/items/allOf/5/then/properties/type".length] === "/")){emErrs15.push(err114);err114.emUsed = true;}}if(emErrs15.length){const err115 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/errorMessage",params:{errors: emErrs15},message:"language is only supported for \"Text\" type"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const emErrs16 = [];for(const err116 of vErrors){if(!err116.emUsed){emErrs16.push(err116);}}vErrors = emErrs16;errors = emErrs16.length;}}}var _valid10 = _errs138 === errors;valid59 = _valid10;}if(!valid59){const err117 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/5/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const _errs141 = errors;let valid63 = true;const _errs142 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.value === undefined) && ("value")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}var _valid11 = _errs142 === errors;errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}if(_valid11){const _errs143 = errors;const _errs144 = errors;const _errs145 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.generatedValue === undefined) && ("generatedValue")){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}var valid64 = _errs145 === errors;if(!valid64){errors = _errs144;if(vErrors !== null){if(_errs144){vErrors.length = _errs144;}else {vErrors = null;}}}else {const err120 = {keyword:"not",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/then/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}var _valid11 = _errs143 === errors;valid63 = _valid11;}if(!valid63){const err121 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const _errs147 = errors;let valid65 = true;const _errs148 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.type === undefined) && ("type")){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {if(data36.type !== undefined){let data53 = data36.type;if(!((data53 === "Boolean") || (data53 === "Dropdown"))){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}}var _valid12 = _errs148 === errors;errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}if(_valid12){const _errs150 = errors;const _errs151 = errors;const _errs152 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.generatedValue === undefined) && ("generatedValue")){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}var valid67 = _errs152 === errors;if(!valid67){errors = _errs151;if(vErrors !== null){if(_errs151){vErrors.length = _errs151;}else {vErrors = null;}}}else {const err125 = {keyword:"not",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/then/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var _valid12 = _errs150 === errors;valid65 = _valid12;}if(!valid65){const err126 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding === undefined){const err127 = {keyword:"required",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(data36.binding !== undefined){let data54 = data36.binding;const _errs156 = errors;let valid70 = true;const _errs157 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.type === undefined) && ("type")){const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {if(data54.type !== undefined){let data55 = data54.type;if(!(((((data55 === "property") || (data55 === "zeebe:property")) || (data55 === "zeebe:input")) || (data55 === "bpmn:Message#property")) || (data55 === "bpmn:Message#zeebe:subscription#property"))){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}}var _valid13 = _errs157 === errors;errors = _errs156;if(vErrors !== null){if(_errs156){vErrors.length = _errs156;}else {vErrors = null;}}if(_valid13){const _errs159 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.name === undefined){const err130 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(errors > 0){const emErrs17 = [];for(const err131 of vErrors){if(((((err131.keyword !== "errorMessage") && (!err131.emUsed)) && ((err131.dataPath === dataPath+"/" + i5+"/binding") || ((err131.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err131.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err131.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err131.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs17.push(err131);err131.emUsed = true;}}if(emErrs17.length){const err132 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data54 && data54.type) + " requires name"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}const emErrs18 = [];for(const err133 of vErrors){if(!err133.emUsed){emErrs18.push(err133);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid13 = _errs159 === errors;valid70 = _valid13;}if(!valid70){const err134 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}const _errs161 = errors;let valid72 = true;const _errs162 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.type === undefined) && ("type")){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}else {if(data54.type !== undefined){if(!func0(data54.type, "zeebe:output")){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}}}var _valid14 = _errs162 === errors;errors = _errs161;if(vErrors !== null){if(_errs161){vErrors.length = _errs161;}else {vErrors = null;}}if(_valid14){const _errs164 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.source === undefined){const err137 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(errors > 0){const emErrs19 = [];for(const err138 of vErrors){if(((((err138.keyword !== "errorMessage") && (!err138.emUsed)) && ((err138.dataPath === dataPath+"/" + i5+"/binding") || ((err138.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err138.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err138.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err138.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs19.push(err138);err138.emUsed = true;}}if(emErrs19.length){const err139 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data54 && data54.type) + " requires source"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}const emErrs20 = [];for(const err140 of vErrors){if(!err140.emUsed){emErrs20.push(err140);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid14 = _errs164 === errors;valid72 = _valid14;}if(!valid72){const err141 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}const _errs166 = errors;let valid74 = true;const _errs167 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.type === undefined) && ("type")){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}else {if(data54.type !== undefined){if(!func0(data54.type, "zeebe:taskHeader")){const err143 = {};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}}var _valid15 = _errs167 === errors;errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}if(_valid15){const _errs169 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.key === undefined){const err144 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/required",params:{missingProperty: "key"},message:"should have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}if(errors > 0){const emErrs21 = [];for(const err145 of vErrors){if(((((err145.keyword !== "errorMessage") && (!err145.emUsed)) && ((err145.dataPath === dataPath+"/" + i5+"/binding") || ((err145.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err145.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err145.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err145.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs21.push(err145);err145.emUsed = true;}}if(emErrs21.length){const err146 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data54 && data54.type) + " requires key"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}const emErrs22 = [];for(const err147 of vErrors){if(!err147.emUsed){emErrs22.push(err147);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid15 = _errs169 === errors;valid74 = _valid15;}if(!valid74){const err148 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}const _errs171 = errors;let valid76 = true;const _errs172 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.type === undefined) && ("type")){const err149 = {};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}else {if(data54.type !== undefined){if(!func0(data54.type, "zeebe:taskDefinition")){const err150 = {};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}}}var _valid16 = _errs172 === errors;errors = _errs171;if(vErrors !== null){if(_errs171){vErrors.length = _errs171;}else {vErrors = null;}}if(_valid16){const _errs174 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.property === undefined){const err151 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(data54.property !== undefined){let data59 = data54.property;if(!((data59 === "type") || (data59 === "retries"))){const err152 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/properties/property/enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.allOf[3].then.properties.property.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}}var _valid16 = _errs174 === errors;valid76 = _valid16;}if(!valid76){const err153 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.type === undefined){const err154 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if(data54.type !== undefined){let data60 = data54.type;if(typeof data60 !== "string"){const err155 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(!(((((((((data60 === "property") || (data60 === "zeebe:taskDefinition:type")) || (data60 === "zeebe:input")) || (data60 === "zeebe:output")) || (data60 === "zeebe:property")) || (data60 === "zeebe:taskHeader")) || (data60 === "bpmn:Message#property")) || (data60 === "bpmn:Message#zeebe:subscription#property")) || (data60 === "zeebe:taskDefinition"))){const err156 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(errors > 0){const emErrs23 = [];for(const err157 of vErrors){if(((((err157.keyword !== "errorMessage") && (!err157.emUsed)) && ((err157.dataPath === dataPath+"/" + i5+"/binding/type") || ((err157.dataPath.indexOf(dataPath+"/" + i5+"/binding/type") === 0) && (err157.dataPath[dataPath+"/" + i5+"/binding/type".length] === "/")))) && (err157.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err157.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs23.push(err157);err157.emUsed = true;}}if(emErrs23.length){const err158 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs23},message:"invalid property.binding type " + JSON.stringify(data60) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}const emErrs24 = [];for(const err159 of vErrors){if(!err159.emUsed){emErrs24.push(err159);}}vErrors = emErrs24;errors = emErrs24.length;}}if(data54.name !== undefined){if(typeof data54.name !== "string"){const err160 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data54.source !== undefined){if(typeof data54.source !== "string"){const err161 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data54.key !== undefined){if(typeof data54.key !== "string"){const err162 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/key",schemaPath:"#/allOf/1/items/properties/binding/properties/key/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data54.property !== undefined){if(typeof data54.property !== "string"){const err163 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}}else {const err164 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data36.optional !== undefined){if(typeof data36.optional !== "boolean"){const err165 = {keyword:"type",dataPath:dataPath+"/" + i5+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data36.feel !== undefined){let data66 = data36.feel;if(typeof data66 !== "string"){const err166 = {keyword:"type",dataPath:dataPath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(!(((data66 === null) || (data66 === "optional")) || (data66 === "required"))){const err167 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",params:{allowedValues: schema18.allOf[1].items.properties.feel.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}if(data36.language !== undefined){if(typeof data36.language !== "string"){const err168 = {keyword:"type",dataPath:dataPath+"/" + i5+"/language",schemaPath:"#/allOf/1/items/properties/language/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(data36.generatedValue !== undefined){let data68 = data36.generatedValue;if(data68 && typeof data68 == "object" && !Array.isArray(data68)){if(data68.type === undefined){const err169 = {keyword:"required",dataPath:dataPath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if(data68.type !== undefined){if(!func0(data68.type, "uuid")){const err170 = {keyword:"const",dataPath:dataPath+"/" + i5+"/generatedValue/type",schemaPath:"#/allOf/1/items/properties/generatedValue/properties/type/const",params:{allowedValue: "uuid"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}else {const err171 = {keyword:"type",dataPath:dataPath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}if(data36.tooltip !== undefined){if(typeof data36.tooltip !== "string"){const err172 = {keyword:"type",dataPath:dataPath+"/" + i5+"/tooltip",schemaPath:"#/allOf/1/items/properties/tooltip/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}}else {const err173 = {keyword:"type",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(errors > 0){const emErrors3 = {"required":{"binding":[]}};const templates3 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i5) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err174 of vErrors){if((((((err174.keyword !== "errorMessage") && (!err174.emUsed)) && (err174.dataPath === dataPath+"/" + i5)) && (err174.keyword in emErrors3)) && (err174.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err174.schemaPath.slice(15)))){emPropParams2 = obj0[err174.keyword];emParamsErrors2 = emErrors3[err174.keyword][err174.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err174);err174.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp2 in emErrors3[key3]){emParamsErrors2 = emErrors3[key3][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates3[key3] && templates3[key3][keyProp2];const err175 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}}const emErrs25 = [];for(const err176 of vErrors){if(!err176.emUsed){emErrs25.push(err176);}}vErrors = emErrs25;errors = emErrs25.length;}}}else {const err177 = {keyword:"type",dataPath,schemaPath:"#/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}validate16.errors = vErrors;return errors === 0;}function validate15(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {keyword:"type",dataPath:dataPath+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {keyword:"type",dataPath:dataPath+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {keyword:"type",dataPath:dataPath+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){let data3 = data.version;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "integer"},message:"should be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {keyword:"type",dataPath:dataPath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.deprecated !== undefined){let data5 = data.deprecated;if((typeof data5 !== "boolean") && (!(data5 && typeof data5 == "object" && !Array.isArray(data5)))){const err9 = {keyword:"type",dataPath:dataPath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"should be boolean,object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.message !== undefined){if(typeof data5.message !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.documentationRef !== undefined){let data7 = data5.documentationRef;if(typeof data7 === "string"){if(!pattern0.test(data7)){const err11 = {keyword:"pattern",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {keyword:"type",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}}if(data.appliesTo !== undefined){let data8 = data.appliesTo;if(Array.isArray(data8)){const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];if(typeof data9 === "string"){if(!pattern1.test(data9)){const err13 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.dataPath === dataPath+"/appliesTo/" + i0)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(36)))){emErrors0[err15.keyword].push(err15);err15.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err16 = {keyword:"errorMessage",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err18 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.elementType !== undefined){let data10 = data.elementType;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.value === undefined){const err19 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data10.value !== undefined){let data11 = data10.value;if(typeof data11 === "string"){if(!pattern1.test(data11)){const err20 = {keyword:"pattern",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {keyword:"type",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.dataPath === dataPath+"/elementType/value")) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(49)))){emErrors1[err22.keyword].push(err22);err22.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err23 = {keyword:"errorMessage",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}const emErrs1 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs1.push(err24);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err25 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.dataPath === dataPath+"/elementType")) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(32)))){emPropParams0 = obj0[err26.keyword];emParamsErrors0 = emErrors2[err26.keyword][err26.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err26);err26.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err27 = {keyword:"errorMessage",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs2 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs2.push(err28);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data12 = data.metadata;if(!(data12 && typeof data12 == "object" && !Array.isArray(data12))){const err29 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err30 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.groups !== undefined){let data14 = data.groups;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){let data15 = data14[i1];if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.id === undefined){const err31 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data15.label === undefined){const err32 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "label"},message:"should have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data15.id !== undefined){if(typeof data15.id !== "string"){const err33 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data15.label !== undefined){if(typeof data15.label !== "string"){const err34 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err36 of vErrors){if((((((err36.keyword !== "errorMessage") && (!err36.emUsed)) && (err36.dataPath === dataPath+"/groups/" + i1)) && (err36.keyword in emErrors3)) && (err36.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err36.schemaPath.slice(33)))){emPropParams1 = obj0[err36.keyword];emParamsErrors1 = emErrors3[err36.keyword][err36.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err36);err36.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err37 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}const emErrs3 = [];for(const err38 of vErrors){if(!err38.emUsed){emErrs3.push(err38);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err39 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.documentationRef !== undefined){let data18 = data.documentationRef;if(typeof data18 === "string"){if(!pattern0.test(data18)){const err40 = {keyword:"pattern",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err42 of vErrors){if((((((err42.keyword !== "errorMessage") && (!err42.emUsed)) && (err42.dataPath === dataPath+"/documentationRef")) && (err42.keyword in emErrors4)) && (err42.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err42.schemaPath.slice(37)))){emErrors4[err42.keyword].push(err42);err42.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err43 = {keyword:"errorMessage",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}const emErrs4 = [];for(const err44 of vErrors){if(!err44.emUsed){emErrs4.push(err44);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.dataPath === dataPath)) && (err45.keyword in emErrors5)) && (err45.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(9)))){emPropParams2 = obj0[err45.keyword];emParamsErrors2 = emErrors5[err45.keyword][err45.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err45);err45.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err46 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs5 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs5.push(err47);}}vErrors = emErrs5;errors = emErrs5.length;}const _errs42 = errors;let valid13 = true;const _errs43 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data.properties !== undefined){let data19 = data.properties;if(Array.isArray(data19)){const _errs45 = errors;const len2 = data19.length;for(let i2=0; i2<len2; i2++){let data20 = data19[i2];const _errs46 = errors;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if((data20.binding === undefined) && ("binding")){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {if(data20.binding !== undefined){let data21 = data20.binding;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if((data21.type === undefined) && ("type")){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data21.type !== undefined){if(!func0(data21.type, "bpmn:Message#property")){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}}}}}var valid15 = _errs46 === errors;if(valid15){break;}}if(!valid15){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {errors = _errs45;if(vErrors !== null){if(_errs45){vErrors.length = _errs45;}else {vErrors = null;}}}}}}}var _valid0 = _errs43 === errors;errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}if(_valid0){const _errs49 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err53 = {keyword:"required",dataPath,schemaPath:"#/allOf/1/allOf/0/then/required",params:{missingProperty: "elementType"},message:"should have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data.elementType !== undefined){let data23 = data.elementType;const _errs52 = errors;let valid20 = true;const _errs53 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value !== undefined){let data24 = data23.value;if(!(((((data24 === "bpmn:StartEvent") || (data24 === "bpmn:IntermediateCatchEvent")) || (data24 === "bpmn:IntermediateThrowEvent")) || (data24 === "bpmn:BoundaryEvent")) || (data24 === "bpmn:EndEvent"))){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}var _valid1 = _errs53 === errors;errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}if(_valid1){const _errs55 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.eventDefinition === undefined){const err55 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/then/required",params:{missingProperty: "eventDefinition"},message:"should have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var _valid1 = _errs55 === errors;valid20 = _valid1;}if(!valid20){const err56 = {keyword:"if",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value === undefined){const err57 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(data23.value !== undefined){let data25 = data23.value;if(!(((((((data25 === "bpmn:ReceiveTask") || (data25 === "bpmn:SendTask")) || (data25 === "bpmn:StartEvent")) || (data25 === "bpmn:IntermediateCatchEvent")) || (data25 === "bpmn:IntermediateThrowEvent")) || (data25 === "bpmn:BoundaryEvent")) || (data25 === "bpmn:EndEvent"))){const err58 = {keyword:"enum",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/properties/value/enum",params:{allowedValues: schema17.allOf[1].allOf[0].then.properties.elementType.properties.value.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}}var _valid0 = _errs49 === errors;valid13 = _valid0;}if(!valid13){const err59 = {keyword:"if",dataPath,schemaPath:"#/allOf/1/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}const _errs58 = errors;let valid23 = true;const _errs59 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data.properties !== undefined){let data26 = data.properties;if(Array.isArray(data26)){const _errs61 = errors;const len3 = data26.length;for(let i3=0; i3<len3; i3++){let data27 = data26[i3];const _errs62 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.binding === undefined) && ("binding")){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {if(data27.binding !== undefined){let data28 = data27.binding;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if((data28.type === undefined) && ("type")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data28.type !== undefined){if(!func0(data28.type, "bpmn:Message#zeebe:subscription#property")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}}}}}var valid25 = _errs62 === errors;if(valid25){break;}}if(!valid25){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs61;if(vErrors !== null){if(_errs61){vErrors.length = _errs61;}else {vErrors = null;}}}}}}}var _valid2 = _errs59 === errors;errors = _errs58;if(vErrors !== null){if(_errs58){vErrors.length = _errs58;}else {vErrors = null;}}if(_valid2){const _errs65 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err65 = {keyword:"required",dataPath,schemaPath:"#/allOf/1/allOf/1/then/required",params:{missingProperty: "elementType"},message:"should have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data.elementType !== undefined){let data30 = data.elementType;const _errs68 = errors;let valid30 = true;const _errs69 = errors;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value !== undefined){let data31 = data30.value;if(!(((((data31 === "bpmn:StartEvent") || (data31 === "bpmn:IntermediateCatchEvent")) || (data31 === "bpmn:IntermediateThrowEvent")) || (data31 === "bpmn:BoundaryEvent")) || (data31 === "bpmn:EndEvent"))){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}var _valid3 = _errs69 === errors;errors = _errs68;if(vErrors !== null){if(_errs68){vErrors.length = _errs68;}else {vErrors = null;}}if(_valid3){const _errs71 = errors;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.eventDefinition === undefined){const err67 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/then/required",params:{missingProperty: "eventDefinition"},message:"should have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}var _valid3 = _errs71 === errors;valid30 = _valid3;}if(!valid30){const err68 = {keyword:"if",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err69 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data30.value !== undefined){let data32 = data30.value;if(!((((((data32 === "bpmn:ReceiveTask") || (data32 === "bpmn:StartEvent")) || (data32 === "bpmn:IntermediateCatchEvent")) || (data32 === "bpmn:IntermediateThrowEvent")) || (data32 === "bpmn:BoundaryEvent")) || (data32 === "bpmn:EndEvent"))){const err70 = {keyword:"enum",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/properties/value/enum",params:{allowedValues: schema17.allOf[1].allOf[1].then.properties.elementType.properties.value.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}}}var _valid2 = _errs65 === errors;valid23 = _valid2;}if(!valid23){const err71 = {keyword:"if",dataPath,schemaPath:"#/allOf/1/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16(data.properties, {dataPath:dataPath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.icon !== undefined){let data34 = data.icon;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.contents === undefined){const err72 = {keyword:"required",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/required",params:{missingProperty: "contents"},message:"should have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data34.contents !== undefined){let data35 = data34.contents;if(typeof data35 === "string"){if(!pattern4.test(data35)){const err73 = {keyword:"pattern",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",params:{pattern: "^(https?|data):.*"},message:"should match pattern \""+"^(https?|data):.*"+"\""};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}else {const err74 = {keyword:"type",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(errors > 0){const emErrors6 = {"pattern":[]};const templates6 = {};for(const err75 of vErrors){if((((((err75.keyword !== "errorMessage") && (!err75.emUsed)) && (err75.dataPath === dataPath+"/icon/contents")) && (err75.keyword in emErrors6)) && (err75.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err75.schemaPath.slice(37)))){emErrors6[err75.keyword].push(err75);err75.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err76 = {keyword:"errorMessage",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema17.properties.icon.properties.contents.errorMessage[key6]};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}const emErrs6 = [];for(const err77 of vErrors){if(!err77.emUsed){emErrs6.push(err77);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err78 = {keyword:"type",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(errors > 0){const emErrors7 = {"required":{"contents":[]}};const templates7 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err79 of vErrors){if((((((err79.keyword !== "errorMessage") && (!err79.emUsed)) && (err79.dataPath === dataPath+"/icon")) && (err79.keyword in emErrors7)) && (err79.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err79.schemaPath.slice(17)))){emPropParams3 = obj0[err79.keyword];emParamsErrors3 = emErrors7[err79.keyword][err79.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err79);err79.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp3 in emErrors7[key7]){emParamsErrors3 = emErrors7[key7][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates7[key7] && templates7[key7][keyProp3];const err80 = {keyword:"errorMessage",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.icon.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}}const emErrs7 = [];for(const err81 of vErrors){if(!err81.emUsed){emErrs7.push(err81);}}vErrors = emErrs7;errors = emErrs7.length;}}if(data.elementType !== undefined){let data36 = data.elementType;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.eventDefinition !== undefined){if(!(data36.eventDefinition === "bpmn:MessageEventDefinition")){const err82 = {keyword:"enum",dataPath:dataPath+"/elementType/eventDefinition",schemaPath:"#/properties/elementType/allOf/0/allOf/0/properties/eventDefinition/enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[0].properties.eventDefinition.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}}const _errs83 = errors;let valid38 = true;const _errs84 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.eventDefinition === undefined) && ("eventDefinition")){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}var _valid4 = _errs84 === errors;errors = _errs83;if(vErrors !== null){if(_errs83){vErrors.length = _errs83;}else {vErrors = null;}}if(_valid4){const _errs85 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.value === undefined){const err84 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if(data36.value !== undefined){let data38 = data36.value;if(!(((((data38 === "bpmn:StartEvent") || (data38 === "bpmn:IntermediateCatchEvent")) || (data38 === "bpmn:IntermediateThrowEvent")) || (data38 === "bpmn:BoundaryEvent")) || (data38 === "bpmn:EndEvent"))){const err85 = {keyword:"enum",dataPath:dataPath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/properties/value/enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[1].then.properties.value.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}var _valid4 = _errs85 === errors;valid38 = _valid4;}if(!valid38){const err86 = {keyword:"if",dataPath:dataPath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data.groups !== undefined){let data39 = data.groups;if(Array.isArray(data39)){const len4 = data39.length;for(let i4=0; i4<len4; i4++){let data40 = data39[i4];if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.tooltip !== undefined){if(typeof data40.tooltip !== "string"){const err87 = {keyword:"type",dataPath:dataPath+"/groups/" + i4+"/tooltip",schemaPath:"#/properties/groups/items/properties/tooltip/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}if(data40.openByDefault !== undefined){if(typeof data40.openByDefault !== "boolean"){const err88 = {keyword:"type",dataPath:dataPath+"/groups/" + i4+"/openByDefault",schemaPath:"#/properties/groups/items/properties/openByDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}}}}}else {const err89 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {dataPath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {dataPath:dataPath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {keyword:"type",dataPath,schemaPath:"#/oneOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
|
|
118317
|
+
standaloneZeebeValidator.exports = validate14;standaloneZeebeValidator.exports.default = validate14;const schema17 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"version":{"$id":"#/version","type":"integer","description":"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Indicates whether the element template is deprecated.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"Optional link to migration documentation."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"The BPMN type the element will be transformed into.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:SendTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#zeebe:subscription#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:CallActivity"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:CallActivity"]}}}]}}]}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"icon":{"$id":"#/icon","type":"object","description":"Custom icon to be shown on the element","default":{},"properties":{"contents":{"$id":"#/icon/contents","type":"string","description":"The URL of an icon.","pattern":"^(https?|data):.*","errorMessage":{"pattern":"Malformed icon source, must be a valid HTTP(s) or data URL"}}},"required":["contents"],"errorMessage":{"required":{"contents":"missing icon contents"}}},"elementType":{"allOf":[{"allOf":[{"properties":{"eventDefinition":{"$id":"#/elementType/eventDefinition","enum":["bpmn:MessageEventDefinition"]}}},{"if":{"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"required":["value"]}}]}]},"groups":{"items":{"properties":{"tooltip":{"$id":"#/groups/group/tooltip","type":"string"},"openByDefault":{"$id":"#/groups/group/openByDefault","type":"boolean","description":"Specifies whether the Group should be opened when first viewed. Defaults to true.","default":true}}}}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern4 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const func0 = equal.exports;const schema18 = {"allOf":[{"type":"array","description":"List of properties of the element template.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"value":{"$id":"#/properties/property/value","type":["string","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"The validation constraints of a control field.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."},"condition":{"$id":"#/condition","type":"object","description":"Condition(s) to activate the binding.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}}},"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","zeebe:taskDefinition:type","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition","zeebe:calledElement"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"}},"required":["type"]}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"constraints":{"properties":{"notEmpty":{"const":false,"errorMessage":"optional is not allowed for truthy \"notEmpty\" constraint"}},"required":["notEmpty"]}}}},{"if":{"properties":{"feel":{"not":{"const":null}}},"required":["feel"]},"then":{"properties":{"type":{"enum":["String","Text"],"errorMessage":"feel is only supported for \"String\" and \"Text\" type"}},"required":["type"]}},{"if":{"properties":{"language":{"not":{"const":null}}},"required":["language"]},"then":{"properties":{"type":{"enum":["Text"],"errorMessage":"language is only supported for \"Text\" type"}}}},{"if":{"required":["value"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["Boolean","Dropdown"]}},"required":["type"]},"then":{"not":{"required":["generatedValue"]}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","zeebe:property","zeebe:input","bpmn:Message#property","bpmn:Message#zeebe:subscription#property"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"zeebe:taskHeader"}},"required":["type"]},"then":{"required":["key"],"errorMessage":"property.binding ${0/type} requires key"}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["type","retries"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition:type"}},"required":["type"]},"then":{"deprecated":true}},{"if":{"properties":{"type":{"const":"zeebe:calledElement"}},"required":["type"]},"then":{"properties":{"property":{"const":"processId"}},"required":["property"]}},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:property","name":"property"},{"type":"zeebe:taskHeader","key":"key"},{"type":"zeebe:taskDefinition","property":"retries"},{"type":"zeebe:taskDefinition","property":"type"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","description":"The type of a property binding.","enum":["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition","zeebe:calledElement"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"The key value of a property binding (zeebe:taskHeader)."},"property":{"$id":"#/properties/property/binding/property","type":"string","description":"The name of the property defined in the binding."}}},"optional":{"$id":"#/optional","type":"boolean","description":"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},"feel":{"$id":"#/properties/property/feel","type":"string","default":null,"description":"Indicates whether the property can be a feel expression","enum":[null,"optional","required"]},"language":{"$id":"#/properties/property/language","type":"string","description":"Indicates that the field is a custom language editor"},"generatedValue":{"$id":"#/properties/property/generatedValue","type":"object","required":["type"],"properties":{"type":{"const":"uuid"}},"description":"Sets property to a generated value according to given scheme."},"tooltip":{"$id":"#/properties/property/tooltip","type":"string","description":"Hints for the control field."}},"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}}}}]};const schema20 = {"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};function validate17(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {keyword:"type",dataPath:dataPath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {keyword:"type",dataPath:dataPath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {keyword:"type",dataPath:dataPath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {keyword:"type",dataPath:dataPath+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}}}if(!valid2){const err8 = {keyword:"oneOf",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err9 = {keyword:"required",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.type !== undefined){if(!func0(data.type, "simple")){const err10 = {keyword:"const",dataPath:dataPath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err11 = {keyword:"type",dataPath:dataPath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {keyword:"type",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err13 of vErrors){if((((((err13.keyword !== "errorMessage") && (!err13.emUsed)) && (err13.dataPath === dataPath)) && (err13.keyword in emErrors0)) && (err13.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err13.schemaPath.slice(81)))){emPropParams0 = obj0[err13.keyword];emParamsErrors0 = emErrors0[err13.keyword][err13.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err13);err13.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err14 = {keyword:"errorMessage",dataPath,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}const emErrs0 = [];for(const err15 of vErrors){if(!err15.emUsed){emErrs0.push(err15);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err16 = {keyword:"required",dataPath,schemaPath:"#/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.allMatch !== undefined){let data6 = data.allMatch;if(Array.isArray(data6)){if(data6.length < 1){const err17 = {keyword:"minItems",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const len1 = data6.length;for(let i1=0; i1<len1; i1++){let data7 = data6[i1];const _errs26 = errors;let valid13 = false;let passing2 = null;const _errs27 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.equals === undefined){const err18 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data7.equals !== undefined){let data8 = data7.equals;if(((typeof data8 !== "string") && (!(typeof data8 == "number"))) && (typeof data8 !== "boolean")){const err19 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2){valid13 = true;passing2 = 0;}const _errs30 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.oneOf === undefined){const err20 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data7.oneOf !== undefined){let data9 = data7.oneOf;if(Array.isArray(data9)){const len2 = data9.length;for(let i2=0; i2<len2; i2++){let data10 = data9[i2];if((typeof data10 !== "string") && (!(typeof data10 == "number"))){const err21 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 1];}else {if(_valid2){valid13 = true;passing2 = 1;}const _errs35 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.isActive === undefined){const err23 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data7.isActive !== undefined){if(typeof data7.isActive !== "boolean"){const err24 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid2 = _errs35 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 2];}else {if(_valid2){valid13 = true;passing2 = 2;}}}if(!valid13){const err25 = {keyword:"oneOf",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.property === undefined){const err26 = {keyword:"required",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data7.type !== undefined){if(!func0(data7.type, "simple")){const err27 = {keyword:"const",dataPath:dataPath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data7.property !== undefined){if(typeof data7.property !== "string"){const err28 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {keyword:"type",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.dataPath === dataPath+"/allMatch/" + i1)) && (err30.keyword in emErrors1)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(81)))){emPropParams1 = obj0[err30.keyword];emParamsErrors1 = emErrors1[err30.keyword][err30.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err30);err30.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err31 = {keyword:"errorMessage",dataPath:dataPath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs1 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs1.push(err32);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err33 = {keyword:"type",dataPath:dataPath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid0 = _errs20 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err34 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17.errors = vErrors;return errors === 0;}function validate16(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if(!func0(data0.type, "Dropdown")){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {keyword:"required",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",params:{missingProperty: "choices"},message:"should have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.dataPath === dataPath+"/" + i0) || ((err3.dataPath.indexOf(dataPath+"/" + i0) === 0) && (err3.dataPath[dataPath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {keyword:"if",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err7 = {keyword:"type",dataPath:dataPath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data0.value !== undefined){let data3 = data0.value;if((typeof data3 !== "string") && (typeof data3 !== "boolean")){const err8 = {keyword:"type",dataPath:dataPath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",params:{type: schema18.allOf[0].items.properties.value.type},message:"should be string,boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err9 = {keyword:"type",dataPath:dataPath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err11 = {keyword:"type",dataPath:dataPath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err12 = {keyword:"type",dataPath:dataPath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data0.choices !== undefined){let data8 = data0.choices;if(Array.isArray(data8)){const len1 = data8.length;for(let i1=0; i1<len1; i1++){let data9 = data8[i1];if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.value === undefined){const err13 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data9.name === undefined){const err14 = {keyword:"required",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data9.name !== undefined){if(typeof data9.name !== "string"){const err15 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data9.value !== undefined){if(typeof data9.value !== "string"){const err16 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data9.condition !== undefined){if(!(validate17(data9.condition, {dataPath:dataPath+"/" + i0+"/choices/" + i1+"/condition",parentData:data9,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err17 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(errors > 0){const emErrors0 = {"required":[]};const templates0 = {};for(const err18 of vErrors){if((((((err18.keyword !== "errorMessage") && (!err18.emUsed)) && (err18.dataPath === dataPath+"/" + i0+"/choices/" + i1)) && (err18.keyword in emErrors0)) && (err18.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err18.schemaPath.slice(40)))){emErrors0[err18.keyword].push(err18);err18.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err19 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/choices/" + i1,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema18.allOf[0].items.properties.choices.items.errorMessage[key0]};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}const emErrs2 = [];for(const err20 of vErrors){if(!err20.emUsed){emErrs2.push(err20);}}vErrors = emErrs2;errors = emErrs2.length;}}}else {const err21 = {keyword:"type",dataPath:dataPath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data0.constraints !== undefined){let data13 = data0.constraints;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.notEmpty !== undefined){if(typeof data13.notEmpty !== "boolean"){const err22 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data13.minLength !== undefined){if(!(typeof data13.minLength == "number")){const err23 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data13.maxLength !== undefined){if(!(typeof data13.maxLength == "number")){const err24 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type: "number"},message:"should be number"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data13.pattern !== undefined){let data17 = data13.pattern;const _errs39 = errors;let valid13 = false;let passing0 = null;const _errs40 = errors;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.value !== undefined){if(typeof data17.value !== "string"){const err25 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data17.message !== undefined){if(typeof data17.message !== "string"){const err26 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid1 = _errs40 === errors;if(_valid1){valid13 = true;passing0 = 0;}const _errs46 = errors;if(typeof data17 !== "string"){const err28 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid1 = _errs46 === errors;if(_valid1 && valid13){valid13 = false;passing0 = [passing0, 1];}else {if(_valid1){valid13 = true;passing0 = 1;}}if(!valid13){const err29 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}}}else {const err30 = {keyword:"type",dataPath:dataPath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err31 = {keyword:"type",dataPath:dataPath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data0.condition !== undefined){let data21 = data0.condition;if(!(data21 && typeof data21 == "object" && !Array.isArray(data21))){const err32 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}const _errs52 = errors;let valid15 = false;let passing1 = null;const _errs53 = errors;const _errs56 = errors;let valid17 = false;let passing2 = null;const _errs57 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.equals === undefined){const err33 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data21.equals !== undefined){let data22 = data21.equals;if(((typeof data22 !== "string") && (!(typeof data22 == "number"))) && (typeof data22 !== "boolean")){const err34 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}var _valid3 = _errs57 === errors;if(_valid3){valid17 = true;passing2 = 0;}const _errs60 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.oneOf === undefined){const err35 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data21.oneOf !== undefined){let data23 = data21.oneOf;if(Array.isArray(data23)){const len2 = data23.length;for(let i2=0; i2<len2; i2++){let data24 = data23[i2];if((typeof data24 !== "string") && (!(typeof data24 == "number"))){const err36 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}var _valid3 = _errs60 === errors;if(_valid3 && valid17){valid17 = false;passing2 = [passing2, 1];}else {if(_valid3){valid17 = true;passing2 = 1;}const _errs65 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.isActive === undefined){const err38 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(data21.isActive !== undefined){if(typeof data21.isActive !== "boolean"){const err39 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid3 = _errs65 === errors;if(_valid3 && valid17){valid17 = false;passing2 = [passing2, 2];}else {if(_valid3){valid17 = true;passing2 = 2;}}}if(!valid17){const err40 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing2},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}}if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.property === undefined){const err41 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data21.type !== undefined){if(!func0(data21.type, "simple")){const err42 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data21.property !== undefined){if(typeof data21.property !== "string"){const err43 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}else {const err44 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.dataPath === dataPath+"/" + i0+"/condition")) && (err45.keyword in emErrors1)) && (err45.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(81)))){emPropParams0 = obj0[err45.keyword];emParamsErrors0 = emErrors1[err45.keyword][err45.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err45);err45.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp0 in emErrors1[key1]){emParamsErrors0 = emErrors1[key1][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates1[key1] && templates1[key1][keyProp0];const err46 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key1][keyProp0]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs3 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs3.push(err47);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid2 = _errs53 === errors;if(_valid2){valid15 = true;passing1 = 0;}const _errs71 = errors;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.allMatch === undefined){const err48 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/required",params:{missingProperty: "allMatch"},message:"should have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if(data21.allMatch !== undefined){let data28 = data21.allMatch;if(Array.isArray(data28)){if(data28.length < 1){const err49 = {keyword:"minItems",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/minItems",params:{limit: 1},message:"should NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}const len3 = data28.length;for(let i3=0; i3<len3; i3++){let data29 = data28[i3];const _errs77 = errors;let valid28 = false;let passing3 = null;const _errs78 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.equals === undefined){const err50 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/required",params:{missingProperty: "equals"},message:"should have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if(data29.equals !== undefined){let data30 = data29.equals;if(((typeof data30 !== "string") && (!(typeof data30 == "number"))) && (typeof data30 !== "boolean")){const err51 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/0/properties/equals/type",params:{type: schema20.oneOf[0].properties.equals.type},message:"should be string,number,boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}var _valid4 = _errs78 === errors;if(_valid4){valid28 = true;passing3 = 0;}const _errs81 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.oneOf === undefined){const err52 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/required",params:{missingProperty: "oneOf"},message:"should have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(data29.oneOf !== undefined){let data31 = data29.oneOf;if(Array.isArray(data31)){const len4 = data31.length;for(let i4=0; i4<len4; i4++){let data32 = data31[i4];if((typeof data32 !== "string") && (!(typeof data32 == "number"))){const err53 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf/" + i4,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/items/type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"should be string,number"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}else {const err54 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/1/properties/oneOf/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}var _valid4 = _errs81 === errors;if(_valid4 && valid28){valid28 = false;passing3 = [passing3, 1];}else {if(_valid4){valid28 = true;passing3 = 1;}const _errs86 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.isActive === undefined){const err55 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/required",params:{missingProperty: "isActive"},message:"should have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data29.isActive !== undefined){if(typeof data29.isActive !== "boolean"){const err56 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf/2/properties/isActive/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}var _valid4 = _errs86 === errors;if(_valid4 && valid28){valid28 = false;passing3 = [passing3, 2];}else {if(_valid4){valid28 = true;passing3 = 2;}}}if(!valid28){const err57 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/oneOf",params:{passingSchemas: passing3},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}}if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.property === undefined){const err58 = {keyword:"required",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data29.type !== undefined){if(!func0(data29.type, "simple")){const err59 = {keyword:"const",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/type/const",params:{allowedValue: "simple"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}if(data29.property !== undefined){if(typeof data29.property !== "string"){const err60 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3+"/property",schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}}else {const err61 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(errors > 0){const emErrors2 = {"required":{"property":[]}};const templates2 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err62 of vErrors){if((((((err62.keyword !== "errorMessage") && (!err62.emUsed)) && (err62.dataPath === dataPath+"/" + i0+"/condition/allMatch/" + i3)) && (err62.keyword in emErrors2)) && (err62.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/condition/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err62.schemaPath.slice(81)))){emPropParams1 = obj0[err62.keyword];emParamsErrors1 = emErrors2[err62.keyword][err62.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err62);err62.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp1 in emErrors2[key2]){emParamsErrors1 = emErrors2[key2][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates2[key2] && templates2[key2][keyProp1];const err63 = {keyword:"errorMessage",dataPath:dataPath+"/" + i0+"/condition/allMatch/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/properties/condition/definitions/condition/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key2][keyProp1]};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}const emErrs4 = [];for(const err64 of vErrors){if(!err64.emUsed){emErrs4.push(err64);}}vErrors = emErrs4;errors = emErrs4.length;}}}else {const err65 = {keyword:"type",dataPath:dataPath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/properties/condition/oneOf/1/properties/allMatch/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}var _valid2 = _errs71 === errors;if(_valid2 && valid15){valid15 = false;passing1 = [passing1, 1];}else {if(_valid2){valid15 = true;passing1 = 1;}}if(!valid15){const err66 = {keyword:"oneOf",dataPath:dataPath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/properties/condition/oneOf",params:{passingSchemas: passing1},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}}}else {const err67 = {keyword:"type",dataPath:dataPath+"/" + i0,schemaPath:"#/allOf/0/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}else {const err68 = {keyword:"type",dataPath,schemaPath:"#/allOf/0/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data36 = data[i5];const _errs97 = errors;let valid39 = true;const _errs98 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {if(data36.binding !== undefined){let data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {if(data37.type !== undefined){if(!func0(data37.type, "property")){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}}}}}var _valid5 = _errs98 === errors;errors = _errs97;if(vErrors !== null){if(_errs97){vErrors.length = _errs97;}else {vErrors = null;}}if(_valid5){const _errs101 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data39 = data36.type;if(!(((((data39 === "String") || (data39 === "Text")) || (data39 === "Hidden")) || (data39 === "Dropdown")) || (data39 === "Boolean"))){const err72 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(errors > 0){const emErrs5 = [];for(const err73 of vErrors){if(((((err73.keyword !== "errorMessage") && (!err73.emUsed)) && ((err73.dataPath === dataPath+"/" + i5+"/type") || ((err73.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err73.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err73.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err73.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs5.push(err73);err73.emUsed = true;}}if(emErrs5.length){const err74 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors: emErrs5},message:"invalid property type " + JSON.stringify(data39) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}const emErrs6 = [];for(const err75 of vErrors){if(!err75.emUsed){emErrs6.push(err75);}}vErrors = emErrs6;errors = emErrs6.length;}}}var _valid5 = _errs101 === errors;valid39 = _valid5;}if(!valid39){const err76 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}const _errs104 = errors;let valid43 = true;const _errs105 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {if(data36.binding !== undefined){let data40 = data36.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {if(data40.type !== undefined){let data41 = data40.type;if(!(((((((((data41 === "zeebe:input") || (data41 === "zeebe:output")) || (data41 === "zeebe:property")) || (data41 === "zeebe:taskHeader")) || (data41 === "zeebe:taskDefinition:type")) || (data41 === "bpmn:Message#property")) || (data41 === "bpmn:Message#zeebe:subscription#property")) || (data41 === "zeebe:taskDefinition")) || (data41 === "zeebe:calledElement"))){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}}}}}var _valid6 = _errs105 === errors;errors = _errs104;if(vErrors !== null){if(_errs104){vErrors.length = _errs104;}else {vErrors = null;}}if(_valid6){const _errs108 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){let data42 = data36.type;if(!((((data42 === "String") || (data42 === "Text")) || (data42 === "Hidden")) || (data42 === "Dropdown"))){const err80 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(errors > 0){const emErrs7 = [];for(const err81 of vErrors){if(((((err81.keyword !== "errorMessage") && (!err81.emUsed)) && ((err81.dataPath === dataPath+"/" + i5+"/type") || ((err81.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err81.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err81.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err81.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs7.push(err81);err81.emUsed = true;}}if(emErrs7.length){const err82 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data42) + " for binding type " + JSON.stringify(data36 && data36.binding && data36.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}const emErrs8 = [];for(const err83 of vErrors){if(!err83.emUsed){emErrs8.push(err83);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid6 = _errs108 === errors;valid43 = _valid6;}if(!valid43){const err84 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}const _errs111 = errors;let valid47 = true;const _errs112 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err85 = {};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}else {if(data36.optional !== undefined){if(!func0(data36.optional, true)){const err86 = {};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}}}var _valid7 = _errs112 === errors;errors = _errs111;if(vErrors !== null){if(_errs111){vErrors.length = _errs111;}else {vErrors = null;}}if(_valid7){const _errs114 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding !== undefined){let data44 = data36.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.type === undefined){const err87 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(data44.type !== undefined){let data45 = data44.type;if(!((((data45 === "zeebe:input") || (data45 === "zeebe:output")) || (data45 === "zeebe:property")) || (data45 === "zeebe:taskHeader"))){const err88 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(errors > 0){const emErrs9 = [];for(const err89 of vErrors){if(((((err89.keyword !== "errorMessage") && (!err89.emUsed)) && ((err89.dataPath === dataPath+"/" + i5+"/binding/type") || ((err89.dataPath.indexOf(dataPath+"/" + i5+"/binding/type") === 0) && (err89.dataPath[dataPath+"/" + i5+"/binding/type".length] === "/")))) && (err89.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err89.schemaPath["#/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs9.push(err89);err89.emUsed = true;}}if(emErrs9.length){const err90 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",params:{errors: emErrs9},message:"optional is not supported for binding type " + JSON.stringify(data45) + "; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}const emErrs10 = [];for(const err91 of vErrors){if(!err91.emUsed){emErrs10.push(err91);}}vErrors = emErrs10;errors = emErrs10.length;}}}}}var _valid7 = _errs114 === errors;valid47 = _valid7;}if(!valid47){const err92 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}const _errs118 = errors;let valid51 = true;const _errs119 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.optional === undefined) && ("optional")){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(data36.optional !== undefined){if(!func0(data36.optional, true)){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}}var _valid8 = _errs119 === errors;errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}if(_valid8){const _errs121 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.constraints !== undefined){let data47 = data36.constraints;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.notEmpty === undefined){const err95 = {keyword:"required",dataPath:dataPath+"/" + i5+"/constraints",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/required",params:{missingProperty: "notEmpty"},message:"should have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(data47.notEmpty !== undefined){if(!func0(data47.notEmpty, false)){const err96 = {keyword:"const",dataPath:dataPath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",params:{allowedValue: false},message:"should be equal to constant"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(errors > 0){const emErrs11 = [];for(const err97 of vErrors){if(((((err97.keyword !== "errorMessage") && (!err97.emUsed)) && ((err97.dataPath === dataPath+"/" + i5+"/constraints/notEmpty") || ((err97.dataPath.indexOf(dataPath+"/" + i5+"/constraints/notEmpty") === 0) && (err97.dataPath[dataPath+"/" + i5+"/constraints/notEmpty".length] === "/")))) && (err97.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err97.schemaPath["#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs11.push(err97);err97.emUsed = true;}}if(emErrs11.length){const err98 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",params:{errors: emErrs11},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}const emErrs12 = [];for(const err99 of vErrors){if(!err99.emUsed){emErrs12.push(err99);}}vErrors = emErrs12;errors = emErrs12.length;}}}}}var _valid8 = _errs121 === errors;valid51 = _valid8;}if(!valid51){const err100 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const _errs125 = errors;let valid55 = true;const _errs126 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.feel === undefined) && ("feel")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data36.feel !== undefined){const _errs128 = errors;const _errs129 = errors;if(!func0(data36.feel, schema18.allOf[1].items.allOf[4].if.properties.feel.not.const)){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}var valid57 = _errs129 === errors;if(!valid57){errors = _errs128;if(vErrors !== null){if(_errs128){vErrors.length = _errs128;}else {vErrors = null;}}}else {const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}var _valid9 = _errs126 === errors;errors = _errs125;if(vErrors !== null){if(_errs125){vErrors.length = _errs125;}else {vErrors = null;}}if(_valid9){const _errs130 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type === undefined){const err104 = {keyword:"required",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/then/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(data36.type !== undefined){let data50 = data36.type;if(!((data50 === "String") || (data50 === "Text"))){const err105 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[4].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(errors > 0){const emErrs13 = [];for(const err106 of vErrors){if(((((err106.keyword !== "errorMessage") && (!err106.emUsed)) && ((err106.dataPath === dataPath+"/" + i5+"/type") || ((err106.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err106.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err106.schemaPath.indexOf("#/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err106.schemaPath["#/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs13.push(err106);err106.emUsed = true;}}if(emErrs13.length){const err107 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/errorMessage",params:{errors: emErrs13},message:"feel is only supported for \"String\" and \"Text\" type"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}const emErrs14 = [];for(const err108 of vErrors){if(!err108.emUsed){emErrs14.push(err108);}}vErrors = emErrs14;errors = emErrs14.length;}}}var _valid9 = _errs130 === errors;valid55 = _valid9;}if(!valid55){const err109 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}const _errs133 = errors;let valid59 = true;const _errs134 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.language === undefined) && ("language")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}else {if(data36.language !== undefined){const _errs136 = errors;const _errs137 = errors;if(!func0(data36.language, schema18.allOf[1].items.allOf[5].if.properties.language.not.const)){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}var valid61 = _errs137 === errors;if(!valid61){errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}}else {const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}}var _valid10 = _errs134 === errors;errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}if(_valid10){const _errs138 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.type !== undefined){if(!(data36.type === "Text")){const err113 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.allOf[5].then.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if(errors > 0){const emErrs15 = [];for(const err114 of vErrors){if(((((err114.keyword !== "errorMessage") && (!err114.emUsed)) && ((err114.dataPath === dataPath+"/" + i5+"/type") || ((err114.dataPath.indexOf(dataPath+"/" + i5+"/type") === 0) && (err114.dataPath[dataPath+"/" + i5+"/type".length] === "/")))) && (err114.schemaPath.indexOf("#/allOf/1/items/allOf/5/then/properties/type") === 0)) && (err114.schemaPath["#/allOf/1/items/allOf/5/then/properties/type".length] === "/")){emErrs15.push(err114);err114.emUsed = true;}}if(emErrs15.length){const err115 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/errorMessage",params:{errors: emErrs15},message:"language is only supported for \"Text\" type"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const emErrs16 = [];for(const err116 of vErrors){if(!err116.emUsed){emErrs16.push(err116);}}vErrors = emErrs16;errors = emErrs16.length;}}}var _valid10 = _errs138 === errors;valid59 = _valid10;}if(!valid59){const err117 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/5/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const _errs141 = errors;let valid63 = true;const _errs142 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.value === undefined) && ("value")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}var _valid11 = _errs142 === errors;errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}if(_valid11){const _errs143 = errors;const _errs144 = errors;const _errs145 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.generatedValue === undefined) && ("generatedValue")){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}var valid64 = _errs145 === errors;if(!valid64){errors = _errs144;if(vErrors !== null){if(_errs144){vErrors.length = _errs144;}else {vErrors = null;}}}else {const err120 = {keyword:"not",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/then/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}var _valid11 = _errs143 === errors;valid63 = _valid11;}if(!valid63){const err121 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const _errs147 = errors;let valid65 = true;const _errs148 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.type === undefined) && ("type")){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {if(data36.type !== undefined){let data53 = data36.type;if(!((data53 === "Boolean") || (data53 === "Dropdown"))){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}}var _valid12 = _errs148 === errors;errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}if(_valid12){const _errs150 = errors;const _errs151 = errors;const _errs152 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.generatedValue === undefined) && ("generatedValue")){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}var valid67 = _errs152 === errors;if(!valid67){errors = _errs151;if(vErrors !== null){if(_errs151){vErrors.length = _errs151;}else {vErrors = null;}}}else {const err125 = {keyword:"not",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/then/not",params:{},message:"should NOT be valid"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var _valid12 = _errs150 === errors;valid65 = _valid12;}if(!valid65){const err126 = {keyword:"if",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.binding === undefined){const err127 = {keyword:"required",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/required",params:{missingProperty: "binding"},message:"should have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(data36.binding !== undefined){let data54 = data36.binding;const _errs156 = errors;let valid70 = true;const _errs157 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.type === undefined) && ("type")){const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {if(data54.type !== undefined){let data55 = data54.type;if(!(((((data55 === "property") || (data55 === "zeebe:property")) || (data55 === "zeebe:input")) || (data55 === "bpmn:Message#property")) || (data55 === "bpmn:Message#zeebe:subscription#property"))){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}}var _valid13 = _errs157 === errors;errors = _errs156;if(vErrors !== null){if(_errs156){vErrors.length = _errs156;}else {vErrors = null;}}if(_valid13){const _errs159 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.name === undefined){const err130 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(errors > 0){const emErrs17 = [];for(const err131 of vErrors){if(((((err131.keyword !== "errorMessage") && (!err131.emUsed)) && ((err131.dataPath === dataPath+"/" + i5+"/binding") || ((err131.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err131.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err131.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err131.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs17.push(err131);err131.emUsed = true;}}if(emErrs17.length){const err132 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data54 && data54.type) + " requires name"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}const emErrs18 = [];for(const err133 of vErrors){if(!err133.emUsed){emErrs18.push(err133);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid13 = _errs159 === errors;valid70 = _valid13;}if(!valid70){const err134 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}const _errs161 = errors;let valid72 = true;const _errs162 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.type === undefined) && ("type")){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}else {if(data54.type !== undefined){if(!func0(data54.type, "zeebe:output")){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}}}var _valid14 = _errs162 === errors;errors = _errs161;if(vErrors !== null){if(_errs161){vErrors.length = _errs161;}else {vErrors = null;}}if(_valid14){const _errs164 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.source === undefined){const err137 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty: "source"},message:"should have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(errors > 0){const emErrs19 = [];for(const err138 of vErrors){if(((((err138.keyword !== "errorMessage") && (!err138.emUsed)) && ((err138.dataPath === dataPath+"/" + i5+"/binding") || ((err138.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err138.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err138.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err138.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs19.push(err138);err138.emUsed = true;}}if(emErrs19.length){const err139 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data54 && data54.type) + " requires source"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}const emErrs20 = [];for(const err140 of vErrors){if(!err140.emUsed){emErrs20.push(err140);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid14 = _errs164 === errors;valid72 = _valid14;}if(!valid72){const err141 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}const _errs166 = errors;let valid74 = true;const _errs167 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.type === undefined) && ("type")){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}else {if(data54.type !== undefined){if(!func0(data54.type, "zeebe:taskHeader")){const err143 = {};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}}var _valid15 = _errs167 === errors;errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}if(_valid15){const _errs169 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.key === undefined){const err144 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/required",params:{missingProperty: "key"},message:"should have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}if(errors > 0){const emErrs21 = [];for(const err145 of vErrors){if(((((err145.keyword !== "errorMessage") && (!err145.emUsed)) && ((err145.dataPath === dataPath+"/" + i5+"/binding") || ((err145.dataPath.indexOf(dataPath+"/" + i5+"/binding") === 0) && (err145.dataPath[dataPath+"/" + i5+"/binding".length] === "/")))) && (err145.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err145.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs21.push(err145);err145.emUsed = true;}}if(emErrs21.length){const err146 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data54 && data54.type) + " requires key"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}const emErrs22 = [];for(const err147 of vErrors){if(!err147.emUsed){emErrs22.push(err147);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid15 = _errs169 === errors;valid74 = _valid15;}if(!valid74){const err148 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}const _errs171 = errors;let valid76 = true;const _errs172 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.type === undefined) && ("type")){const err149 = {};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}else {if(data54.type !== undefined){if(!func0(data54.type, "zeebe:taskDefinition")){const err150 = {};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}}}var _valid16 = _errs172 === errors;errors = _errs171;if(vErrors !== null){if(_errs171){vErrors.length = _errs171;}else {vErrors = null;}}if(_valid16){const _errs174 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.property === undefined){const err151 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(data54.property !== undefined){let data59 = data54.property;if(!((data59 === "type") || (data59 === "retries"))){const err152 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/properties/property/enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.allOf[3].then.properties.property.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}}var _valid16 = _errs174 === errors;valid76 = _valid16;}if(!valid76){const err153 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}const _errs179 = errors;let valid79 = true;const _errs180 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.type === undefined) && ("type")){const err154 = {};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}else {if(data54.type !== undefined){if(!func0(data54.type, "zeebe:calledElement")){const err155 = {};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}}}var _valid17 = _errs180 === errors;errors = _errs179;if(vErrors !== null){if(_errs179){vErrors.length = _errs179;}else {vErrors = null;}}if(_valid17){const _errs182 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.property === undefined){const err156 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/required",params:{missingProperty: "property"},message:"should have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(data54.property !== undefined){if(!func0(data54.property, "processId")){const err157 = {keyword:"const",dataPath:dataPath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/properties/property/const",params:{allowedValue: "processId"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}}var _valid17 = _errs182 === errors;valid79 = _valid17;}if(!valid79){const err158 = {keyword:"if",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.type === undefined){const err159 = {keyword:"required",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(data54.type !== undefined){let data62 = data54.type;if(typeof data62 !== "string"){const err160 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if(!((((((((((data62 === "property") || (data62 === "zeebe:taskDefinition:type")) || (data62 === "zeebe:input")) || (data62 === "zeebe:output")) || (data62 === "zeebe:property")) || (data62 === "zeebe:taskHeader")) || (data62 === "bpmn:Message#property")) || (data62 === "bpmn:Message#zeebe:subscription#property")) || (data62 === "zeebe:taskDefinition")) || (data62 === "zeebe:calledElement"))){const err161 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if(errors > 0){const emErrs23 = [];for(const err162 of vErrors){if(((((err162.keyword !== "errorMessage") && (!err162.emUsed)) && ((err162.dataPath === dataPath+"/" + i5+"/binding/type") || ((err162.dataPath.indexOf(dataPath+"/" + i5+"/binding/type") === 0) && (err162.dataPath[dataPath+"/" + i5+"/binding/type".length] === "/")))) && (err162.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err162.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs23.push(err162);err162.emUsed = true;}}if(emErrs23.length){const err163 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors: emErrs23},message:"invalid property.binding type " + JSON.stringify(data62) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property }"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}const emErrs24 = [];for(const err164 of vErrors){if(!err164.emUsed){emErrs24.push(err164);}}vErrors = emErrs24;errors = emErrs24.length;}}if(data54.name !== undefined){if(typeof data54.name !== "string"){const err165 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data54.source !== undefined){if(typeof data54.source !== "string"){const err166 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}if(data54.key !== undefined){if(typeof data54.key !== "string"){const err167 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/key",schemaPath:"#/allOf/1/items/properties/binding/properties/key/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}if(data54.property !== undefined){if(typeof data54.property !== "string"){const err168 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/properties/property/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}}else {const err169 = {keyword:"type",dataPath:dataPath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}if(data36.optional !== undefined){if(typeof data36.optional !== "boolean"){const err170 = {keyword:"type",dataPath:dataPath+"/" + i5+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}if(data36.feel !== undefined){let data68 = data36.feel;if(typeof data68 !== "string"){const err171 = {keyword:"type",dataPath:dataPath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if(!(((data68 === null) || (data68 === "optional")) || (data68 === "required"))){const err172 = {keyword:"enum",dataPath:dataPath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",params:{allowedValues: schema18.allOf[1].items.properties.feel.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data36.language !== undefined){if(typeof data36.language !== "string"){const err173 = {keyword:"type",dataPath:dataPath+"/" + i5+"/language",schemaPath:"#/allOf/1/items/properties/language/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data36.generatedValue !== undefined){let data70 = data36.generatedValue;if(data70 && typeof data70 == "object" && !Array.isArray(data70)){if(data70.type === undefined){const err174 = {keyword:"required",dataPath:dataPath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/required",params:{missingProperty: "type"},message:"should have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if(data70.type !== undefined){if(!func0(data70.type, "uuid")){const err175 = {keyword:"const",dataPath:dataPath+"/" + i5+"/generatedValue/type",schemaPath:"#/allOf/1/items/properties/generatedValue/properties/type/const",params:{allowedValue: "uuid"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}}else {const err176 = {keyword:"type",dataPath:dataPath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data36.tooltip !== undefined){if(typeof data36.tooltip !== "string"){const err177 = {keyword:"type",dataPath:dataPath+"/" + i5+"/tooltip",schemaPath:"#/allOf/1/items/properties/tooltip/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}}else {const err178 = {keyword:"type",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}if(errors > 0){const emErrors3 = {"required":{"binding":[]}};const templates3 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i5) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err179 of vErrors){if((((((err179.keyword !== "errorMessage") && (!err179.emUsed)) && (err179.dataPath === dataPath+"/" + i5)) && (err179.keyword in emErrors3)) && (err179.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err179.schemaPath.slice(15)))){emPropParams2 = obj0[err179.keyword];emParamsErrors2 = emErrors3[err179.keyword][err179.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err179);err179.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp2 in emErrors3[key3]){emParamsErrors2 = emErrors3[key3][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates3[key3] && templates3[key3][keyProp2];const err180 = {keyword:"errorMessage",dataPath:dataPath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}}const emErrs25 = [];for(const err181 of vErrors){if(!err181.emUsed){emErrs25.push(err181);}}vErrors = emErrs25;errors = emErrs25.length;}}}else {const err182 = {keyword:"type",dataPath,schemaPath:"#/allOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}validate16.errors = vErrors;return errors === 0;}function validate15(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "name"},message:"should have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {keyword:"required",dataPath,schemaPath:"#/allOf/0/required",params:{missingProperty: "properties"},message:"should have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.name !== undefined){if(typeof data.name !== "string"){const err4 = {keyword:"type",dataPath:dataPath+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {keyword:"type",dataPath:dataPath+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {keyword:"type",dataPath:dataPath+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){let data3 = data.version;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){const err7 = {keyword:"type",dataPath:dataPath+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type: "integer"},message:"should be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {keyword:"type",dataPath:dataPath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.deprecated !== undefined){let data5 = data.deprecated;if((typeof data5 !== "boolean") && (!(data5 && typeof data5 == "object" && !Array.isArray(data5)))){const err9 = {keyword:"type",dataPath:dataPath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"should be boolean,object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.message !== undefined){if(typeof data5.message !== "string"){const err10 = {keyword:"type",dataPath:dataPath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.documentationRef !== undefined){let data7 = data5.documentationRef;if(typeof data7 === "string"){if(!pattern0.test(data7)){const err11 = {keyword:"pattern",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {keyword:"type",dataPath:dataPath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}}if(data.appliesTo !== undefined){let data8 = data.appliesTo;if(Array.isArray(data8)){const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];if(typeof data9 === "string"){if(!pattern1.test(data9)){const err13 = {keyword:"pattern",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {keyword:"type",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.dataPath === dataPath+"/appliesTo/" + i0)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(36)))){emErrors0[err15.keyword].push(err15);err15.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err16 = {keyword:"errorMessage",dataPath:dataPath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err18 = {keyword:"type",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.elementType !== undefined){let data10 = data.elementType;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.value === undefined){const err19 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data10.value !== undefined){let data11 = data10.value;if(typeof data11 === "string"){if(!pattern1.test(data11)){const err20 = {keyword:"pattern",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"should match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {keyword:"type",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.dataPath === dataPath+"/elementType/value")) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(49)))){emErrors1[err22.keyword].push(err22);err22.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err23 = {keyword:"errorMessage",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}const emErrs1 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs1.push(err24);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err25 = {keyword:"type",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.dataPath === dataPath+"/elementType")) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(32)))){emPropParams0 = obj0[err26.keyword];emParamsErrors0 = emErrors2[err26.keyword][err26.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err26);err26.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err27 = {keyword:"errorMessage",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs2 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs2.push(err28);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data12 = data.metadata;if(!(data12 && typeof data12 == "object" && !Array.isArray(data12))){const err29 = {keyword:"type",dataPath:dataPath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err30 = {keyword:"type",dataPath:dataPath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.groups !== undefined){let data14 = data.groups;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){let data15 = data14[i1];if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.id === undefined){const err31 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "id"},message:"should have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data15.label === undefined){const err32 = {keyword:"required",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty: "label"},message:"should have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data15.id !== undefined){if(typeof data15.id !== "string"){const err33 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data15.label !== undefined){if(typeof data15.label !== "string"){const err34 = {keyword:"type",dataPath:dataPath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {keyword:"type",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i1) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i1) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err36 of vErrors){if((((((err36.keyword !== "errorMessage") && (!err36.emUsed)) && (err36.dataPath === dataPath+"/groups/" + i1)) && (err36.keyword in emErrors3)) && (err36.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err36.schemaPath.slice(33)))){emPropParams1 = obj0[err36.keyword];emParamsErrors1 = emErrors3[err36.keyword][err36.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err36);err36.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err37 = {keyword:"errorMessage",dataPath:dataPath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}const emErrs3 = [];for(const err38 of vErrors){if(!err38.emUsed){emErrs3.push(err38);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err39 = {keyword:"type",dataPath:dataPath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.documentationRef !== undefined){let data18 = data.documentationRef;if(typeof data18 === "string"){if(!pattern0.test(data18)){const err40 = {keyword:"pattern",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",params:{pattern: "^(https|http)://.*"},message:"should match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {keyword:"type",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err42 of vErrors){if((((((err42.keyword !== "errorMessage") && (!err42.emUsed)) && (err42.dataPath === dataPath+"/documentationRef")) && (err42.keyword in emErrors4)) && (err42.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err42.schemaPath.slice(37)))){emErrors4[err42.keyword].push(err42);err42.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err43 = {keyword:"errorMessage",dataPath:dataPath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}const emErrs4 = [];for(const err44 of vErrors){if(!err44.emUsed){emErrs4.push(err44);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.dataPath === dataPath)) && (err45.keyword in emErrors5)) && (err45.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(9)))){emPropParams2 = obj0[err45.keyword];emParamsErrors2 = emErrors5[err45.keyword][err45.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err45);err45.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err46 = {keyword:"errorMessage",dataPath,schemaPath:"#/allOf/0/errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}const emErrs5 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs5.push(err47);}}vErrors = emErrs5;errors = emErrs5.length;}const _errs42 = errors;let valid13 = true;const _errs43 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {if(data.properties !== undefined){let data19 = data.properties;if(Array.isArray(data19)){const _errs45 = errors;const len2 = data19.length;for(let i2=0; i2<len2; i2++){let data20 = data19[i2];const _errs46 = errors;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if((data20.binding === undefined) && ("binding")){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {if(data20.binding !== undefined){let data21 = data20.binding;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if((data21.type === undefined) && ("type")){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data21.type !== undefined){if(!func0(data21.type, "bpmn:Message#property")){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}}}}}var valid15 = _errs46 === errors;if(valid15){break;}}if(!valid15){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {errors = _errs45;if(vErrors !== null){if(_errs45){vErrors.length = _errs45;}else {vErrors = null;}}}}}}}var _valid0 = _errs43 === errors;errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}if(_valid0){const _errs49 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err53 = {keyword:"required",dataPath,schemaPath:"#/allOf/1/allOf/0/then/required",params:{missingProperty: "elementType"},message:"should have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if(data.elementType !== undefined){let data23 = data.elementType;const _errs52 = errors;let valid20 = true;const _errs53 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value !== undefined){let data24 = data23.value;if(!(((((data24 === "bpmn:StartEvent") || (data24 === "bpmn:IntermediateCatchEvent")) || (data24 === "bpmn:IntermediateThrowEvent")) || (data24 === "bpmn:BoundaryEvent")) || (data24 === "bpmn:EndEvent"))){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}var _valid1 = _errs53 === errors;errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}if(_valid1){const _errs55 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.eventDefinition === undefined){const err55 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/then/required",params:{missingProperty: "eventDefinition"},message:"should have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var _valid1 = _errs55 === errors;valid20 = _valid1;}if(!valid20){const err56 = {keyword:"if",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.value === undefined){const err57 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(data23.value !== undefined){let data25 = data23.value;if(!(((((((data25 === "bpmn:ReceiveTask") || (data25 === "bpmn:SendTask")) || (data25 === "bpmn:StartEvent")) || (data25 === "bpmn:IntermediateCatchEvent")) || (data25 === "bpmn:IntermediateThrowEvent")) || (data25 === "bpmn:BoundaryEvent")) || (data25 === "bpmn:EndEvent"))){const err58 = {keyword:"enum",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/properties/value/enum",params:{allowedValues: schema17.allOf[1].allOf[0].then.properties.elementType.properties.value.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}}var _valid0 = _errs49 === errors;valid13 = _valid0;}if(!valid13){const err59 = {keyword:"if",dataPath,schemaPath:"#/allOf/1/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}const _errs58 = errors;let valid23 = true;const _errs59 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data.properties !== undefined){let data26 = data.properties;if(Array.isArray(data26)){const _errs61 = errors;const len3 = data26.length;for(let i3=0; i3<len3; i3++){let data27 = data26[i3];const _errs62 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.binding === undefined) && ("binding")){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {if(data27.binding !== undefined){let data28 = data27.binding;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if((data28.type === undefined) && ("type")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data28.type !== undefined){if(!func0(data28.type, "bpmn:Message#zeebe:subscription#property")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}}}}}var valid25 = _errs62 === errors;if(valid25){break;}}if(!valid25){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs61;if(vErrors !== null){if(_errs61){vErrors.length = _errs61;}else {vErrors = null;}}}}}}}var _valid2 = _errs59 === errors;errors = _errs58;if(vErrors !== null){if(_errs58){vErrors.length = _errs58;}else {vErrors = null;}}if(_valid2){const _errs65 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err65 = {keyword:"required",dataPath,schemaPath:"#/allOf/1/allOf/1/then/required",params:{missingProperty: "elementType"},message:"should have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data.elementType !== undefined){let data30 = data.elementType;const _errs68 = errors;let valid30 = true;const _errs69 = errors;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value !== undefined){let data31 = data30.value;if(!(((((data31 === "bpmn:StartEvent") || (data31 === "bpmn:IntermediateCatchEvent")) || (data31 === "bpmn:IntermediateThrowEvent")) || (data31 === "bpmn:BoundaryEvent")) || (data31 === "bpmn:EndEvent"))){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}var _valid3 = _errs69 === errors;errors = _errs68;if(vErrors !== null){if(_errs68){vErrors.length = _errs68;}else {vErrors = null;}}if(_valid3){const _errs71 = errors;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.eventDefinition === undefined){const err67 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/then/required",params:{missingProperty: "eventDefinition"},message:"should have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}var _valid3 = _errs71 === errors;valid30 = _valid3;}if(!valid30){const err68 = {keyword:"if",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err69 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data30.value !== undefined){let data32 = data30.value;if(!((((((data32 === "bpmn:ReceiveTask") || (data32 === "bpmn:StartEvent")) || (data32 === "bpmn:IntermediateCatchEvent")) || (data32 === "bpmn:IntermediateThrowEvent")) || (data32 === "bpmn:BoundaryEvent")) || (data32 === "bpmn:EndEvent"))){const err70 = {keyword:"enum",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/properties/value/enum",params:{allowedValues: schema17.allOf[1].allOf[1].then.properties.elementType.properties.value.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}}}var _valid2 = _errs65 === errors;valid23 = _valid2;}if(!valid23){const err71 = {keyword:"if",dataPath,schemaPath:"#/allOf/1/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}const _errs74 = errors;let valid33 = true;const _errs75 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}else {if(data.properties !== undefined){let data33 = data.properties;if(Array.isArray(data33)){const _errs77 = errors;const len4 = data33.length;for(let i4=0; i4<len4; i4++){let data34 = data33[i4];const _errs78 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.binding === undefined) && ("binding")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(data34.binding !== undefined){let data35 = data34.binding;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if((data35.type === undefined) && ("type")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data35.type !== undefined){if(!func0(data35.type, "zeebe:calledElement")){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}}}}}var valid35 = _errs78 === errors;if(valid35){break;}}if(!valid35){const err76 = {};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}else {errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}}}}}}var _valid4 = _errs75 === errors;errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}if(_valid4){const _errs81 = errors;const _errs82 = errors;let valid38 = false;const _errs83 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err77 = {keyword:"required",dataPath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/required",params:{missingProperty: "elementType"},message:"should have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if(data.elementType !== undefined){let data37 = data.elementType;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(data37.value === undefined){const err78 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(data37.value !== undefined){if(!func0(data37.value, "bpmn:CallActivity")){const err79 = {keyword:"const",dataPath:dataPath+"/elementType/value",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/properties/value/const",params:{allowedValue: "bpmn:CallActivity"},message:"should be equal to constant"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}}}var _valid5 = _errs83 === errors;valid38 = valid38 || _valid5;if(!valid38){const _errs86 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err80 = {keyword:"required",dataPath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/required",params:{missingProperty: "appliesTo"},message:"should have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const)){const err81 = {keyword:"const",dataPath:dataPath+"/appliesTo",schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/properties/appliesTo/const",params:{allowedValue: schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const},message:"should be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}var _valid5 = _errs86 === errors;valid38 = valid38 || _valid5;}if(!valid38){const err82 = {keyword:"anyOf",dataPath,schemaPath:"#/allOf/1/allOf/2/then/anyOf",params:{},message:"should match some schema in anyOf"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}}var _valid4 = _errs81 === errors;valid33 = _valid4;}if(!valid33){const err83 = {keyword:"if",dataPath,schemaPath:"#/allOf/1/allOf/2/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16(data.properties, {dataPath:dataPath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.icon !== undefined){let data41 = data.icon;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.contents === undefined){const err84 = {keyword:"required",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/required",params:{missingProperty: "contents"},message:"should have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if(data41.contents !== undefined){let data42 = data41.contents;if(typeof data42 === "string"){if(!pattern4.test(data42)){const err85 = {keyword:"pattern",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",params:{pattern: "^(https?|data):.*"},message:"should match pattern \""+"^(https?|data):.*"+"\""};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}else {const err86 = {keyword:"type",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(errors > 0){const emErrors6 = {"pattern":[]};const templates6 = {};for(const err87 of vErrors){if((((((err87.keyword !== "errorMessage") && (!err87.emUsed)) && (err87.dataPath === dataPath+"/icon/contents")) && (err87.keyword in emErrors6)) && (err87.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err87.schemaPath.slice(37)))){emErrors6[err87.keyword].push(err87);err87.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err88 = {keyword:"errorMessage",dataPath:dataPath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema17.properties.icon.properties.contents.errorMessage[key6]};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}const emErrs6 = [];for(const err89 of vErrors){if(!err89.emUsed){emErrs6.push(err89);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err90 = {keyword:"type",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(errors > 0){const emErrors7 = {"required":{"contents":[]}};const templates7 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err91 of vErrors){if((((((err91.keyword !== "errorMessage") && (!err91.emUsed)) && (err91.dataPath === dataPath+"/icon")) && (err91.keyword in emErrors7)) && (err91.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err91.schemaPath.slice(17)))){emPropParams3 = obj0[err91.keyword];emParamsErrors3 = emErrors7[err91.keyword][err91.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err91);err91.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp3 in emErrors7[key7]){emParamsErrors3 = emErrors7[key7][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates7[key7] && templates7[key7][keyProp3];const err92 = {keyword:"errorMessage",dataPath:dataPath+"/icon",schemaPath:"#/properties/icon/errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.icon.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}const emErrs7 = [];for(const err93 of vErrors){if(!err93.emUsed){emErrs7.push(err93);}}vErrors = emErrs7;errors = emErrs7.length;}}if(data.elementType !== undefined){let data43 = data.elementType;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.eventDefinition !== undefined){if(!(data43.eventDefinition === "bpmn:MessageEventDefinition")){const err94 = {keyword:"enum",dataPath:dataPath+"/elementType/eventDefinition",schemaPath:"#/properties/elementType/allOf/0/allOf/0/properties/eventDefinition/enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[0].properties.eventDefinition.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}const _errs98 = errors;let valid47 = true;const _errs99 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.eventDefinition === undefined) && ("eventDefinition")){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}var _valid6 = _errs99 === errors;errors = _errs98;if(vErrors !== null){if(_errs98){vErrors.length = _errs98;}else {vErrors = null;}}if(_valid6){const _errs100 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.value === undefined){const err96 = {keyword:"required",dataPath:dataPath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/required",params:{missingProperty: "value"},message:"should have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(data43.value !== undefined){let data45 = data43.value;if(!(((((data45 === "bpmn:StartEvent") || (data45 === "bpmn:IntermediateCatchEvent")) || (data45 === "bpmn:IntermediateThrowEvent")) || (data45 === "bpmn:BoundaryEvent")) || (data45 === "bpmn:EndEvent"))){const err97 = {keyword:"enum",dataPath:dataPath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/properties/value/enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[1].then.properties.value.enum},message:"should be equal to one of the allowed values"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}var _valid6 = _errs100 === errors;valid47 = _valid6;}if(!valid47){const err98 = {keyword:"if",dataPath:dataPath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/if",params:{failingKeyword: "then"},message:"should match \"then\" schema"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}if(data.groups !== undefined){let data46 = data.groups;if(Array.isArray(data46)){const len5 = data46.length;for(let i5=0; i5<len5; i5++){let data47 = data46[i5];if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.tooltip !== undefined){if(typeof data47.tooltip !== "string"){const err99 = {keyword:"type",dataPath:dataPath+"/groups/" + i5+"/tooltip",schemaPath:"#/properties/groups/items/properties/tooltip/type",params:{type: "string"},message:"should be string"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}if(data47.openByDefault !== undefined){if(typeof data47.openByDefault !== "boolean"){const err100 = {keyword:"type",dataPath:dataPath+"/groups/" + i5+"/openByDefault",schemaPath:"#/properties/groups/items/properties/openByDefault/type",params:{type: "boolean"},message:"should be boolean"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}}}}}else {const err101 = {keyword:"type",dataPath,schemaPath:"#/type",params:{type: "object"},message:"should be object"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {dataPath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {dataPath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {dataPath:dataPath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {keyword:"type",dataPath,schemaPath:"#/oneOf/1/type",params:{type: "array"},message:"should be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {keyword:"oneOf",dataPath,schemaPath:"#/oneOf",params:{passingSchemas: passing0},message:"should match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
|
|
118220
118318
|
|
|
118221
118319
|
function getZeebeSchemaPackage() {
|
|
118222
118320
|
return name$1;
|
|
@@ -118270,7 +118368,8 @@
|
|
|
118270
118368
|
const ZEEBE_TASK_HEADER_TYPE = 'zeebe:taskHeader';
|
|
118271
118369
|
const MESSAGE_PROPERTY_TYPE = 'bpmn:Message#property';
|
|
118272
118370
|
const MESSAGE_ZEEBE_SUBSCRIPTION_PROPERTY_TYPE = 'bpmn:Message#zeebe:subscription#property';
|
|
118273
|
-
const
|
|
118371
|
+
const ZEEBE_CALLED_ELEMENT = 'zeebe:calledElement';
|
|
118372
|
+
const EXTENSION_BINDING_TYPES$1 = [MESSAGE_ZEEBE_SUBSCRIPTION_PROPERTY_TYPE, ZEBBE_INPUT_TYPE, ZEEBE_OUTPUT_TYPE, ZEEBE_PROPERTY_TYPE, ZEEBE_TASK_DEFINITION_TYPE_TYPE, ZEEBE_TASK_DEFINITION, ZEEBE_TASK_HEADER_TYPE, ZEEBE_CALLED_ELEMENT];
|
|
118274
118373
|
const TASK_DEFINITION_TYPES = [ZEEBE_TASK_DEFINITION_TYPE_TYPE, ZEEBE_TASK_DEFINITION];
|
|
118275
118374
|
const IO_BINDING_TYPES$1 = [ZEBBE_INPUT_TYPE, ZEEBE_OUTPUT_TYPE];
|
|
118276
118375
|
const MESSAGE_BINDING_TYPES = [MESSAGE_PROPERTY_TYPE, MESSAGE_ZEEBE_SUBSCRIPTION_PROPERTY_TYPE];
|
|
@@ -118379,11 +118478,11 @@
|
|
|
118379
118478
|
}
|
|
118380
118479
|
businessObject = eventDefinitions[0];
|
|
118381
118480
|
}
|
|
118481
|
+
if (!businessObject) {
|
|
118482
|
+
return;
|
|
118483
|
+
}
|
|
118382
118484
|
return businessObject.get('messageRef');
|
|
118383
118485
|
}
|
|
118384
|
-
function findZeebeSubscription(message) {
|
|
118385
|
-
return findExtension$1(message, 'zeebe:Subscription');
|
|
118386
|
-
}
|
|
118387
118486
|
function getDefaultValue(property) {
|
|
118388
118487
|
if (property.value !== undefined) {
|
|
118389
118488
|
return property.value;
|
|
@@ -118647,6 +118746,12 @@
|
|
|
118647
118746
|
return defaultValue;
|
|
118648
118747
|
}
|
|
118649
118748
|
|
|
118749
|
+
// zeebe:calledElement
|
|
118750
|
+
if (type === ZEEBE_CALLED_ELEMENT) {
|
|
118751
|
+
const calledElement = findExtension$1(businessObject, 'zeebe:CalledElement');
|
|
118752
|
+
return calledElement ? calledElement.get(bindingProperty) : defaultValue;
|
|
118753
|
+
}
|
|
118754
|
+
|
|
118650
118755
|
// should never throw as templates are validated beforehand
|
|
118651
118756
|
throw unknownBindingError$1(element, property);
|
|
118652
118757
|
}
|
|
@@ -118960,250 +119065,45 @@
|
|
|
118960
119065
|
});
|
|
118961
119066
|
}
|
|
118962
119067
|
}
|
|
118963
|
-
if (commands.length) {
|
|
118964
|
-
const commandsToExecute = commands.filter(command => command !== NO_OP);
|
|
118965
|
-
commandsToExecute.length && commandStack.execute('properties-panel.multi-command-executor', commandsToExecute);
|
|
118966
|
-
return;
|
|
118967
|
-
}
|
|
118968
|
-
|
|
118969
|
-
// should never throw as templates are validated beforehand
|
|
118970
|
-
throw unknownBindingError$1(element, property);
|
|
118971
|
-
}
|
|
118972
|
-
function unsetProperty(commandStack, element, property) {
|
|
118973
|
-
let businessObject = getBusinessObject$2(element);
|
|
118974
|
-
const {
|
|
118975
|
-
binding
|
|
118976
|
-
} = property;
|
|
118977
|
-
const {
|
|
118978
|
-
type
|
|
118979
|
-
} = binding;
|
|
118980
|
-
let extensionElements;
|
|
118981
|
-
const commands = [];
|
|
118982
|
-
const context = {
|
|
118983
|
-
element,
|
|
118984
|
-
property
|
|
118985
|
-
};
|
|
118986
|
-
if (MESSAGE_BINDING_TYPES.includes(type)) {
|
|
118987
|
-
businessObject = findMessage(businessObject);
|
|
118988
|
-
if (!businessObject) {
|
|
118989
|
-
return;
|
|
118990
|
-
}
|
|
118991
|
-
}
|
|
118992
|
-
|
|
118993
|
-
// property
|
|
118994
|
-
if (PROPERTY_BINDING_TYPES.includes(type)) {
|
|
118995
|
-
const {
|
|
118996
|
-
name
|
|
118997
|
-
} = binding;
|
|
118998
|
-
commands.push({
|
|
118999
|
-
cmd: 'element.updateModdleProperties',
|
|
119000
|
-
context: {
|
|
119001
|
-
...context,
|
|
119002
|
-
moddleElement: businessObject,
|
|
119003
|
-
properties: {
|
|
119004
|
-
[name]: undefined
|
|
119005
|
-
}
|
|
119006
|
-
}
|
|
119007
|
-
});
|
|
119008
|
-
}
|
|
119009
|
-
if (EXTENSION_BINDING_TYPES$1.includes(type)) {
|
|
119010
|
-
extensionElements = businessObject.get('extensionElements');
|
|
119011
|
-
if (!extensionElements) return;
|
|
119012
|
-
}
|
|
119013
|
-
|
|
119014
|
-
// zeebe:taskDefinition
|
|
119015
|
-
if (TASK_DEFINITION_TYPES.includes(type)) {
|
|
119016
|
-
const oldTaskDefinition = findExtension$1(extensionElements, 'zeebe:TaskDefinition');
|
|
119017
|
-
const propertyName = getTaskDefinitionPropertyName(binding);
|
|
119018
|
-
if (oldTaskDefinition) {
|
|
119019
|
-
if (isOnlyProperty(oldTaskDefinition, propertyName)) {
|
|
119020
|
-
// remove task definition
|
|
119021
|
-
commands.push({
|
|
119022
|
-
cmd: 'element.updateModdleProperties',
|
|
119023
|
-
context: {
|
|
119024
|
-
...context,
|
|
119025
|
-
moddleElement: extensionElements,
|
|
119026
|
-
properties: {
|
|
119027
|
-
values: without(extensionElements.get('values'), oldTaskDefinition)
|
|
119028
|
-
}
|
|
119029
|
-
}
|
|
119030
|
-
});
|
|
119031
|
-
} else {
|
|
119032
|
-
// remove property
|
|
119033
|
-
commands.push({
|
|
119034
|
-
cmd: 'element.updateModdleProperties',
|
|
119035
|
-
context: {
|
|
119036
|
-
...context,
|
|
119037
|
-
moddleElement: oldTaskDefinition,
|
|
119038
|
-
properties: {
|
|
119039
|
-
[propertyName]: undefined
|
|
119040
|
-
}
|
|
119041
|
-
}
|
|
119042
|
-
});
|
|
119043
|
-
}
|
|
119044
|
-
}
|
|
119045
|
-
}
|
|
119046
|
-
|
|
119047
|
-
// zeebe:IoMapping
|
|
119048
|
-
if (IO_BINDING_TYPES$1.includes(type)) {
|
|
119049
|
-
let ioMapping = findExtension$1(extensionElements, 'zeebe:IoMapping');
|
|
119050
|
-
if (!ioMapping) return;
|
|
119051
|
-
|
|
119052
|
-
// zeebe:Input
|
|
119053
|
-
if (type === ZEBBE_INPUT_TYPE) {
|
|
119054
|
-
const oldZeebeInputParameter = findInputParameter$1(ioMapping, binding);
|
|
119055
|
-
const values = ioMapping.get('inputParameters').filter(value => value !== oldZeebeInputParameter);
|
|
119056
|
-
if (ioMapping.get('outputParameters').length == 0 && values.length == 0) {
|
|
119057
|
-
commands.push({
|
|
119058
|
-
cmd: 'element.updateModdleProperties',
|
|
119059
|
-
context: {
|
|
119060
|
-
...context,
|
|
119061
|
-
moddleElement: extensionElements,
|
|
119062
|
-
properties: {
|
|
119063
|
-
values: without(extensionElements.get('values'), ioMapping)
|
|
119064
|
-
}
|
|
119065
|
-
}
|
|
119066
|
-
});
|
|
119067
|
-
} else {
|
|
119068
|
-
commands.push({
|
|
119069
|
-
cmd: 'element.updateModdleProperties',
|
|
119070
|
-
context: {
|
|
119071
|
-
...context,
|
|
119072
|
-
moddleElement: ioMapping,
|
|
119073
|
-
properties: {
|
|
119074
|
-
inputParameters: [...values]
|
|
119075
|
-
}
|
|
119076
|
-
}
|
|
119077
|
-
});
|
|
119078
|
-
}
|
|
119079
|
-
}
|
|
119080
|
-
|
|
119081
|
-
// zeebe:Output
|
|
119082
|
-
if (type === ZEEBE_OUTPUT_TYPE) {
|
|
119083
|
-
const oldZeebeOutputParameter = findOutputParameter$1(ioMapping, binding);
|
|
119084
|
-
const values = ioMapping.get('outputParameters').filter(value => value !== oldZeebeOutputParameter);
|
|
119085
|
-
if (ioMapping.get('inputParameters').length == 0 && values.length == 0) {
|
|
119086
|
-
commands.push({
|
|
119087
|
-
cmd: 'element.updateModdleProperties',
|
|
119088
|
-
context: {
|
|
119089
|
-
...context,
|
|
119090
|
-
moddleElement: extensionElements,
|
|
119091
|
-
properties: {
|
|
119092
|
-
values: without(extensionElements.get('values'), ioMapping)
|
|
119093
|
-
}
|
|
119094
|
-
}
|
|
119095
|
-
});
|
|
119096
|
-
}
|
|
119097
|
-
commands.push({
|
|
119098
|
-
cmd: 'element.updateModdleProperties',
|
|
119099
|
-
context: {
|
|
119100
|
-
...context,
|
|
119101
|
-
moddleElement: ioMapping,
|
|
119102
|
-
properties: {
|
|
119103
|
-
'outputParameters': [...values]
|
|
119104
|
-
}
|
|
119105
|
-
}
|
|
119106
|
-
});
|
|
119107
|
-
}
|
|
119108
|
-
}
|
|
119109
119068
|
|
|
119110
|
-
// zeebe:
|
|
119111
|
-
if (type ===
|
|
119112
|
-
let
|
|
119113
|
-
|
|
119114
|
-
const
|
|
119115
|
-
|
|
119116
|
-
|
|
119069
|
+
// zeebe:calledElement
|
|
119070
|
+
if (type === ZEEBE_CALLED_ELEMENT) {
|
|
119071
|
+
let calledElement = findExtension$1(element, 'zeebe:CalledElement');
|
|
119072
|
+
const propertyName = binding.property;
|
|
119073
|
+
const properties = {
|
|
119074
|
+
[propertyName]: value || ''
|
|
119075
|
+
};
|
|
119076
|
+
if (calledElement) {
|
|
119117
119077
|
commands.push({
|
|
119118
119078
|
cmd: 'element.updateModdleProperties',
|
|
119119
119079
|
context: {
|
|
119120
|
-
|
|
119121
|
-
|
|
119122
|
-
|
|
119123
|
-
values: without(extensionElements.get('values'), taskHeaders)
|
|
119124
|
-
}
|
|
119080
|
+
element,
|
|
119081
|
+
properties,
|
|
119082
|
+
moddleElement: calledElement
|
|
119125
119083
|
}
|
|
119126
119084
|
});
|
|
119127
119085
|
} else {
|
|
119128
|
-
|
|
119129
|
-
cmd: 'element.updateModdleProperties',
|
|
119130
|
-
context: {
|
|
119131
|
-
...context,
|
|
119132
|
-
moddleElement: taskHeaders,
|
|
119133
|
-
properties: {
|
|
119134
|
-
values: [...values]
|
|
119135
|
-
}
|
|
119136
|
-
}
|
|
119137
|
-
});
|
|
119138
|
-
}
|
|
119139
|
-
}
|
|
119140
|
-
|
|
119141
|
-
// zeebe:Property
|
|
119142
|
-
if (type === ZEEBE_PROPERTY_TYPE) {
|
|
119143
|
-
let zeebeProperties = findExtension$1(extensionElements, 'zeebe:Properties');
|
|
119144
|
-
if (!zeebeProperties) return;
|
|
119145
|
-
const oldZeebeProperty = findZeebeProperty(zeebeProperties, binding);
|
|
119146
|
-
const properties = zeebeProperties.get('properties').filter(property => property !== oldZeebeProperty);
|
|
119147
|
-
if (!properties.length) {
|
|
119086
|
+
calledElement = createElement('zeebe:CalledElement', properties, extensionElements, bpmnFactory);
|
|
119148
119087
|
commands.push({
|
|
119149
119088
|
cmd: 'element.updateModdleProperties',
|
|
119150
119089
|
context: {
|
|
119151
119090
|
...context,
|
|
119152
119091
|
moddleElement: extensionElements,
|
|
119153
119092
|
properties: {
|
|
119154
|
-
values:
|
|
119093
|
+
values: [...extensionElements.get('values'), calledElement]
|
|
119155
119094
|
}
|
|
119156
119095
|
}
|
|
119157
119096
|
});
|
|
119158
|
-
} else {
|
|
119159
|
-
commands.push({
|
|
119160
|
-
cmd: 'element.updateModdleProperties',
|
|
119161
|
-
context: {
|
|
119162
|
-
...context,
|
|
119163
|
-
moddleElement: zeebeProperties,
|
|
119164
|
-
properties: {
|
|
119165
|
-
properties: [...properties]
|
|
119166
|
-
}
|
|
119167
|
-
}
|
|
119168
|
-
});
|
|
119169
|
-
}
|
|
119170
|
-
}
|
|
119171
|
-
|
|
119172
|
-
// bpmn:Message#property
|
|
119173
|
-
if (type === MESSAGE_PROPERTY_TYPE) {
|
|
119174
|
-
commands.push({
|
|
119175
|
-
cmd: 'element.updateModdleProperties',
|
|
119176
|
-
context: {
|
|
119177
|
-
...context,
|
|
119178
|
-
moddleElement: businessObject,
|
|
119179
|
-
properties: {
|
|
119180
|
-
[binding.name]: undefined
|
|
119181
|
-
}
|
|
119182
|
-
}
|
|
119183
|
-
});
|
|
119184
|
-
}
|
|
119185
|
-
|
|
119186
|
-
// bpmn:Message#zeebe:subscription#property
|
|
119187
|
-
if (type === MESSAGE_ZEEBE_SUBSCRIPTION_PROPERTY_TYPE) {
|
|
119188
|
-
const subscription = findZeebeSubscription(businessObject);
|
|
119189
|
-
if (!subscription) {
|
|
119190
|
-
return;
|
|
119191
119097
|
}
|
|
119192
|
-
commands.push({
|
|
119193
|
-
cmd: 'element.updateModdleProperties',
|
|
119194
|
-
context: {
|
|
119195
|
-
...context,
|
|
119196
|
-
moddleElement: subscription,
|
|
119197
|
-
properties: {
|
|
119198
|
-
[binding.name]: undefined
|
|
119199
|
-
}
|
|
119200
|
-
}
|
|
119201
|
-
});
|
|
119202
119098
|
}
|
|
119203
119099
|
if (commands.length) {
|
|
119204
|
-
|
|
119100
|
+
const commandsToExecute = commands.filter(command => command !== NO_OP);
|
|
119101
|
+
commandsToExecute.length && commandStack.execute('properties-panel.multi-command-executor', commandsToExecute);
|
|
119205
119102
|
return;
|
|
119206
119103
|
}
|
|
119104
|
+
|
|
119105
|
+
// should never throw as templates are validated beforehand
|
|
119106
|
+
throw unknownBindingError$1(element, property);
|
|
119207
119107
|
}
|
|
119208
119108
|
|
|
119209
119109
|
// helpers
|
|
@@ -119218,14 +119118,6 @@
|
|
|
119218
119118
|
} = binding;
|
|
119219
119119
|
return new Error(`unknown binding <${type}> for element <${id}>, this should never happen`);
|
|
119220
119120
|
}
|
|
119221
|
-
function isOnlyProperty(moddleElement, propertyName) {
|
|
119222
|
-
const descriptor = moddleElement.$descriptor;
|
|
119223
|
-
return descriptor.properties.every(({
|
|
119224
|
-
name
|
|
119225
|
-
}) => {
|
|
119226
|
-
return propertyName === name || moddleElement.get(name) === undefined;
|
|
119227
|
-
});
|
|
119228
|
-
}
|
|
119229
119121
|
|
|
119230
119122
|
/**
|
|
119231
119123
|
* Based on conditions, remove properties from the template.
|
|
@@ -119304,49 +119196,7 @@
|
|
|
119304
119196
|
return true;
|
|
119305
119197
|
}
|
|
119306
119198
|
|
|
119307
|
-
|
|
119308
|
-
const modeling = injector.get('modeling'),
|
|
119309
|
-
canvas = injector.get('canvas'),
|
|
119310
|
-
bpmnjs = injector.get('bpmnjs');
|
|
119311
|
-
const element = canvas.getRootElement(),
|
|
119312
|
-
definitions = bpmnjs.getDefinitions(),
|
|
119313
|
-
rootElements = definitions.get('rootElements');
|
|
119314
|
-
const newRootElements = rootElements.filter(e => e !== rootElement);
|
|
119315
|
-
|
|
119316
|
-
// short-circuit to prevent unnecessary updates
|
|
119317
|
-
if (newRootElements.length === rootElements.length) {
|
|
119318
|
-
return;
|
|
119319
|
-
}
|
|
119320
|
-
modeling.updateModdleProperties(element, definitions, {
|
|
119321
|
-
rootElements: newRootElements
|
|
119322
|
-
});
|
|
119323
|
-
}
|
|
119324
|
-
|
|
119325
|
-
/**
|
|
119326
|
-
* Remove message from element and the diagram.
|
|
119327
|
-
*
|
|
119328
|
-
* @param {import('bpmn-js/lib/model/Types').Element} element
|
|
119329
|
-
* @param {import('didi').Injector} injector
|
|
119330
|
-
*/
|
|
119331
|
-
function removeMessage(element, injector) {
|
|
119332
|
-
const modeling = injector.get('modeling');
|
|
119333
|
-
const bo = getReferringElement(element);
|
|
119334
|
-
const message = findMessage(bo);
|
|
119335
|
-
if (!message) {
|
|
119336
|
-
return;
|
|
119337
|
-
}
|
|
119338
|
-
modeling.updateModdleProperties(element, bo, {
|
|
119339
|
-
messageRef: undefined
|
|
119340
|
-
});
|
|
119341
|
-
removeRootElement(message, injector);
|
|
119342
|
-
}
|
|
119343
|
-
function getReferringElement(element) {
|
|
119344
|
-
const bo = getBusinessObject$2(element);
|
|
119345
|
-
if (is$6(bo, 'bpmn:Event')) {
|
|
119346
|
-
return bo.get('eventDefinitions')[0];
|
|
119347
|
-
}
|
|
119348
|
-
return bo;
|
|
119349
|
-
}
|
|
119199
|
+
const HIGH_PRIORITY = 2500;
|
|
119350
119200
|
|
|
119351
119201
|
/**
|
|
119352
119202
|
* Checks the conditions of an element template and sets/resets the
|
|
@@ -119362,6 +119212,20 @@
|
|
|
119362
119212
|
this._injector = injector;
|
|
119363
119213
|
this.preExecute(['element.updateProperties', 'element.updateModdleProperties'], this._saveConditionalState, true, this);
|
|
119364
119214
|
this.postExecute(['element.updateProperties', 'element.updateModdleProperties', 'propertiesPanel.zeebe.changeTemplate', 'element.move'], this._applyConditions, true, this);
|
|
119215
|
+
|
|
119216
|
+
// Apply Conditions before changing properties. This persists the template so we can check if conditions apply
|
|
119217
|
+
// after upgrading the template.
|
|
119218
|
+
this.preExecute(['propertiesPanel.zeebe.changeTemplate'], HIGH_PRIORITY, this._handleTemplateUpgrade, true, this);
|
|
119219
|
+
}
|
|
119220
|
+
_handleTemplateUpgrade(context) {
|
|
119221
|
+
const {
|
|
119222
|
+
element,
|
|
119223
|
+
newTemplate
|
|
119224
|
+
} = context;
|
|
119225
|
+
if (!element || !newTemplate) {
|
|
119226
|
+
return;
|
|
119227
|
+
}
|
|
119228
|
+
context.newTemplate = applyConditions(context.element, context.newTemplate);
|
|
119365
119229
|
}
|
|
119366
119230
|
_saveConditionalState(context) {
|
|
119367
119231
|
const {
|
|
@@ -119376,29 +119240,52 @@
|
|
|
119376
119240
|
_applyConditions(context) {
|
|
119377
119241
|
const {
|
|
119378
119242
|
element,
|
|
119379
|
-
|
|
119243
|
+
hints = {}
|
|
119380
119244
|
} = context;
|
|
119245
|
+
if (hints.skipConditionUpdate) {
|
|
119246
|
+
return;
|
|
119247
|
+
}
|
|
119381
119248
|
const template = this._elementTemplates.get(element);
|
|
119249
|
+
|
|
119250
|
+
// New Template is persisted before applying default values,
|
|
119251
|
+
// new conditions might apply after the defaults are present.
|
|
119252
|
+
const oldTemplate = context.oldTemplate || context.newTemplate;
|
|
119382
119253
|
if (!template || !oldTemplate || template.id !== oldTemplate.id) {
|
|
119383
119254
|
return;
|
|
119384
119255
|
}
|
|
119385
119256
|
const newTemplate = applyConditions(element, template);
|
|
119386
|
-
|
|
119387
|
-
|
|
119388
|
-
this._updateReferencedElement(element, oldTemplate, newTemplate);
|
|
119389
|
-
propertiesToAdd.forEach(property => setPropertyValue(this._bpmnFactory, this._commandStack, element, property, property.value));
|
|
119390
|
-
propertiesToRemove.forEach(property => unsetProperty(this._commandStack, element, property));
|
|
119391
|
-
}
|
|
119392
|
-
_updateReferencedElement(element, oldTemplate, newTemplate) {
|
|
119393
|
-
if (hasMessageProperties(oldTemplate) && !hasMessageProperties(newTemplate)) {
|
|
119394
|
-
removeMessage(element, this._injector);
|
|
119257
|
+
if (!hasDifferentPropertyBindings(newTemplate, oldTemplate)) {
|
|
119258
|
+
return;
|
|
119395
119259
|
}
|
|
119260
|
+
const changeContext = {
|
|
119261
|
+
element,
|
|
119262
|
+
newTemplate,
|
|
119263
|
+
oldTemplate,
|
|
119264
|
+
hints: {
|
|
119265
|
+
skipConditionUpdate: true
|
|
119266
|
+
}
|
|
119267
|
+
};
|
|
119268
|
+
this._commandStack.execute('propertiesPanel.zeebe.changeTemplate', changeContext);
|
|
119396
119269
|
}
|
|
119397
119270
|
}
|
|
119398
119271
|
ElementTemplatesConditionChecker.$inject = ['eventBus', 'elementTemplates', 'commandStack', 'bpmnFactory', 'injector'];
|
|
119399
119272
|
|
|
119400
119273
|
// helpers
|
|
119401
119274
|
|
|
119275
|
+
function hasDifferentPropertyBindings(sourceTemplate, targetTemplate) {
|
|
119276
|
+
return hasNewProperties(sourceTemplate, targetTemplate) || hasRemovedProperties(sourceTemplate, targetTemplate);
|
|
119277
|
+
}
|
|
119278
|
+
function hasNewProperties(sourceTemplate, targetTemplate) {
|
|
119279
|
+
let properties = targetTemplate.properties;
|
|
119280
|
+
return properties.some(targetProp => !sourceTemplate.properties.find(sourceProp => compareProps(sourceProp, targetProp)));
|
|
119281
|
+
}
|
|
119282
|
+
function hasRemovedProperties(oldTemplate, newTemplate) {
|
|
119283
|
+
const oldProperties = getMissingProperties(newTemplate, oldTemplate);
|
|
119284
|
+
|
|
119285
|
+
// ensure XML properties are mantained for properties with
|
|
119286
|
+
// different conditions but same bindings
|
|
119287
|
+
return oldProperties.some(property => !findPropertyWithBinding(newTemplate, property));
|
|
119288
|
+
}
|
|
119402
119289
|
function getMissingProperties(sourceTemplate, targetTemplate) {
|
|
119403
119290
|
let properties = targetTemplate.properties;
|
|
119404
119291
|
return properties.filter(targetProp => !sourceTemplate.properties.find(sourceProp => compareProps(sourceProp, targetProp)));
|
|
@@ -119409,13 +119296,6 @@
|
|
|
119409
119296
|
function findPropertyWithBinding(template, prop1) {
|
|
119410
119297
|
return template.properties.some(prop2 => areBindingsEqual(prop1.binding, prop2.binding));
|
|
119411
119298
|
}
|
|
119412
|
-
function getPropertiesToRemove(newTemplate, oldTemplate) {
|
|
119413
|
-
const oldProperties = getMissingProperties(newTemplate, oldTemplate);
|
|
119414
|
-
|
|
119415
|
-
// ensure XML properties are mantained for properties with
|
|
119416
|
-
// different conditions but same bindings
|
|
119417
|
-
return oldProperties.filter(property => !findPropertyWithBinding(newTemplate, property));
|
|
119418
|
-
}
|
|
119419
119299
|
function normalizeReplacer$1(key, value) {
|
|
119420
119300
|
if (isObject$1(value)) {
|
|
119421
119301
|
const keys = Object.keys(value).sort();
|
|
@@ -119448,9 +119328,6 @@
|
|
|
119448
119328
|
function equals(a, b) {
|
|
119449
119329
|
return JSON.stringify(a, normalizeReplacer$1) === JSON.stringify(b, normalizeReplacer$1);
|
|
119450
119330
|
}
|
|
119451
|
-
function hasMessageProperties(template) {
|
|
119452
|
-
return template.properties.some(p => MESSAGE_BINDING_TYPES.includes(p.binding.type));
|
|
119453
|
-
}
|
|
119454
119331
|
|
|
119455
119332
|
/**
|
|
119456
119333
|
* The BPMN 2.0 extension attribute name under
|
|
@@ -120360,6 +120237,31 @@
|
|
|
120360
120237
|
return !is$6(eventDefinitions[0], eventDefinition);
|
|
120361
120238
|
}
|
|
120362
120239
|
|
|
120240
|
+
function removeRootElement(rootElement, injector) {
|
|
120241
|
+
const modeling = injector.get('modeling'),
|
|
120242
|
+
canvas = injector.get('canvas'),
|
|
120243
|
+
bpmnjs = injector.get('bpmnjs');
|
|
120244
|
+
const element = canvas.getRootElement(),
|
|
120245
|
+
definitions = bpmnjs.getDefinitions(),
|
|
120246
|
+
rootElements = definitions.get('rootElements');
|
|
120247
|
+
const newRootElements = rootElements.filter(e => e !== rootElement);
|
|
120248
|
+
|
|
120249
|
+
// short-circuit to prevent unnecessary updates
|
|
120250
|
+
if (newRootElements.length === rootElements.length) {
|
|
120251
|
+
return;
|
|
120252
|
+
}
|
|
120253
|
+
modeling.updateModdleProperties(element, definitions, {
|
|
120254
|
+
rootElements: newRootElements
|
|
120255
|
+
});
|
|
120256
|
+
}
|
|
120257
|
+
function getReferringElement(element) {
|
|
120258
|
+
const bo = getBusinessObject$2(element);
|
|
120259
|
+
if (is$6(bo, 'bpmn:Event')) {
|
|
120260
|
+
return bo.get('eventDefinitions')[0];
|
|
120261
|
+
}
|
|
120262
|
+
return bo;
|
|
120263
|
+
}
|
|
120264
|
+
|
|
120363
120265
|
class RemoveElementTemplateHandler {
|
|
120364
120266
|
constructor(modeling, elementFactory, elementRegistry, canvas, bpmnFactory, replace, commandStack) {
|
|
120365
120267
|
this._modeling = modeling;
|
|
@@ -121501,6 +121403,46 @@
|
|
|
121501
121403
|
}
|
|
121502
121404
|
GeneratedValueBehavior.$inject = ['eventBus', 'elementTemplates', 'modeling', 'commandStack', 'bpmnFactory'];
|
|
121503
121405
|
|
|
121406
|
+
/**
|
|
121407
|
+
* Enforces no variable propagation for templated call activities.
|
|
121408
|
+
*/
|
|
121409
|
+
class CalledElementBehavior extends CommandInterceptor$1 {
|
|
121410
|
+
/**
|
|
121411
|
+
* @param {*} eventBus
|
|
121412
|
+
* @param {*} modeling
|
|
121413
|
+
* @param {import('./ElementTemplates').default} elementTemplates
|
|
121414
|
+
*/
|
|
121415
|
+
constructor(eventBus, modeling, elementTemplates) {
|
|
121416
|
+
super(eventBus);
|
|
121417
|
+
this._modeling = modeling;
|
|
121418
|
+
this._elementTemplates = elementTemplates;
|
|
121419
|
+
this.postExecuted(['element.updateProperties', 'element.updateModdleProperties'], this._ensureNoPropagation, true, this);
|
|
121420
|
+
}
|
|
121421
|
+
_ensureNoPropagation(context) {
|
|
121422
|
+
const {
|
|
121423
|
+
element
|
|
121424
|
+
} = context;
|
|
121425
|
+
if (!this._elementTemplates.get(element)) {
|
|
121426
|
+
return;
|
|
121427
|
+
}
|
|
121428
|
+
if (!is$6(element, 'bpmn:CallActivity')) {
|
|
121429
|
+
return;
|
|
121430
|
+
}
|
|
121431
|
+
const calledElement = findExtension$1(element, 'zeebe:CalledElement');
|
|
121432
|
+
if (!calledElement) {
|
|
121433
|
+
return;
|
|
121434
|
+
}
|
|
121435
|
+
for (const property of ['propagateAllChildVariables', 'propagateAllParentVariables']) {
|
|
121436
|
+
if (calledElement.get(property) !== false) {
|
|
121437
|
+
this._modeling.updateModdleProperties(element, calledElement, {
|
|
121438
|
+
[property]: false
|
|
121439
|
+
});
|
|
121440
|
+
}
|
|
121441
|
+
}
|
|
121442
|
+
}
|
|
121443
|
+
}
|
|
121444
|
+
CalledElementBehavior.$inject = ['eventBus', 'modeling', 'elementTemplates'];
|
|
121445
|
+
|
|
121504
121446
|
/**
|
|
121505
121447
|
* This Behavior checks if the new element's type is in
|
|
121506
121448
|
* the list of elements the template applies to and unlinks
|