camunda-bpmn-js 5.5.0 → 5.5.1
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/assets/element-templates.css +117 -117
- package/dist/camunda-cloud-modeler.development.js +710 -695
- package/dist/camunda-cloud-modeler.production.min.js +4 -4
- package/dist/camunda-platform-modeler.development.js +770 -755
- package/dist/camunda-platform-modeler.production.min.js +6 -6
- package/package.json +2 -2
|
@@ -128539,111 +128539,111 @@
|
|
|
128539
128539
|
var jsonSourceMapExports = requireJsonSourceMap();
|
|
128540
128540
|
var jsonMap = /*@__PURE__*/getDefaultExportFromCjs(jsonSourceMapExports);
|
|
128541
128541
|
|
|
128542
|
-
function _validate(object, validateFn) {
|
|
128543
|
-
const dataPointerMap = generateDataPointerMap(object);
|
|
128544
|
-
|
|
128545
|
-
const valid = validateFn(object);
|
|
128546
|
-
|
|
128547
|
-
let errors = validateFn.errors;
|
|
128548
|
-
|
|
128549
|
-
if (errors && errors.length) {
|
|
128550
|
-
|
|
128551
|
-
// @pinussilvestrus: the <ajv-errors> extensions produces a couple of
|
|
128552
|
-
// unnecessary errors when using an <errorMessage> attribute.
|
|
128553
|
-
// Therefore, we should flatten the produced errors a bit to not
|
|
128554
|
-
// confuse the consumer of this library.
|
|
128555
|
-
|
|
128556
|
-
// (1) wrap raw errors in case of custom errorMessage attribute
|
|
128557
|
-
forEach$2(errors, wrapRawErrors);
|
|
128558
|
-
|
|
128559
|
-
// (2) ignore supportive error messages (e.g. "if-then-rules")
|
|
128560
|
-
errors = ignoreSupportiveErrors(errors);
|
|
128561
|
-
|
|
128562
|
-
// (3) set data pointer for each error
|
|
128563
|
-
forEach$2(errors, function(error) {
|
|
128564
|
-
setDataPointer(error, dataPointerMap);
|
|
128565
|
-
});
|
|
128566
|
-
}
|
|
128567
|
-
|
|
128568
|
-
return {
|
|
128569
|
-
valid: valid,
|
|
128570
|
-
object: object,
|
|
128571
|
-
errors: errors
|
|
128572
|
-
};
|
|
128573
|
-
}
|
|
128574
|
-
|
|
128575
|
-
|
|
128576
|
-
// helper //////////////
|
|
128577
|
-
function wrapRawErrors(error) {
|
|
128578
|
-
const params = error.params;
|
|
128579
|
-
|
|
128580
|
-
if (params && params.errors) {
|
|
128581
|
-
params.rawErrors = params.errors;
|
|
128582
|
-
delete params.errors;
|
|
128583
|
-
}
|
|
128584
|
-
}
|
|
128585
|
-
|
|
128586
|
-
function setDataPointer(error, dataPointerMap) {
|
|
128587
|
-
const dataPath = error.instancePath;
|
|
128588
|
-
|
|
128589
|
-
const pointer = dataPointerMap[dataPath];
|
|
128590
|
-
|
|
128591
|
-
error.dataPointer = pointer;
|
|
128592
|
-
}
|
|
128593
|
-
|
|
128594
|
-
function ignoreSupportiveErrors(errors) {
|
|
128595
|
-
return filter(errors, function(error) {
|
|
128596
|
-
return error.keyword !== 'if';
|
|
128597
|
-
});
|
|
128598
|
-
}
|
|
128599
|
-
|
|
128600
|
-
/**
|
|
128601
|
-
* Generates a key-pointer map for the object.
|
|
128602
|
-
*
|
|
128603
|
-
* Example:
|
|
128604
|
-
*
|
|
128605
|
-
* {
|
|
128606
|
-
* foo: 'bar'
|
|
128607
|
-
* }
|
|
128608
|
-
*
|
|
128609
|
-
* =>
|
|
128610
|
-
*
|
|
128611
|
-
* {
|
|
128612
|
-
* '': {
|
|
128613
|
-
* value: { line: 0, column: 0, pos: 0 },
|
|
128614
|
-
* valueEnd: { line: 2, column: 1, pos: 18 }
|
|
128615
|
-
* },
|
|
128616
|
-
* '/foo': {
|
|
128617
|
-
* key: { line: 1, column: 2, pos: 4 },
|
|
128618
|
-
* keyEnd: { line: 1, column: 7, pos: 9 },
|
|
128619
|
-
* value: { line: 1, column: 9, pos: 11 },
|
|
128620
|
-
* valueEnd: { line: 1, column: 14, pos: 16 }
|
|
128621
|
-
* }
|
|
128622
|
-
* }
|
|
128623
|
-
*
|
|
128624
|
-
* @param {Object} object
|
|
128625
|
-
* @return {Object}
|
|
128626
|
-
*/
|
|
128627
|
-
function generateDataPointerMap(object) {
|
|
128628
|
-
return jsonMap.stringify(object, null, 2).pointers;
|
|
128542
|
+
function _validate(object, validateFn) {
|
|
128543
|
+
const dataPointerMap = generateDataPointerMap(object);
|
|
128544
|
+
|
|
128545
|
+
const valid = validateFn(object);
|
|
128546
|
+
|
|
128547
|
+
let errors = validateFn.errors;
|
|
128548
|
+
|
|
128549
|
+
if (errors && errors.length) {
|
|
128550
|
+
|
|
128551
|
+
// @pinussilvestrus: the <ajv-errors> extensions produces a couple of
|
|
128552
|
+
// unnecessary errors when using an <errorMessage> attribute.
|
|
128553
|
+
// Therefore, we should flatten the produced errors a bit to not
|
|
128554
|
+
// confuse the consumer of this library.
|
|
128555
|
+
|
|
128556
|
+
// (1) wrap raw errors in case of custom errorMessage attribute
|
|
128557
|
+
forEach$2(errors, wrapRawErrors);
|
|
128558
|
+
|
|
128559
|
+
// (2) ignore supportive error messages (e.g. "if-then-rules")
|
|
128560
|
+
errors = ignoreSupportiveErrors(errors);
|
|
128561
|
+
|
|
128562
|
+
// (3) set data pointer for each error
|
|
128563
|
+
forEach$2(errors, function(error) {
|
|
128564
|
+
setDataPointer(error, dataPointerMap);
|
|
128565
|
+
});
|
|
128566
|
+
}
|
|
128567
|
+
|
|
128568
|
+
return {
|
|
128569
|
+
valid: valid,
|
|
128570
|
+
object: object,
|
|
128571
|
+
errors: errors
|
|
128572
|
+
};
|
|
128629
128573
|
}
|
|
128630
128574
|
|
|
128631
|
-
|
|
128632
|
-
|
|
128633
|
-
|
|
128634
|
-
|
|
128635
|
-
|
|
128636
|
-
|
|
128637
|
-
|
|
128638
|
-
|
|
128639
|
-
|
|
128640
|
-
|
|
128641
|
-
|
|
128642
|
-
|
|
128643
|
-
|
|
128575
|
+
|
|
128576
|
+
// helper //////////////
|
|
128577
|
+
function wrapRawErrors(error) {
|
|
128578
|
+
const params = error.params;
|
|
128579
|
+
|
|
128580
|
+
if (params && params.errors) {
|
|
128581
|
+
params.rawErrors = params.errors;
|
|
128582
|
+
delete params.errors;
|
|
128583
|
+
}
|
|
128584
|
+
}
|
|
128585
|
+
|
|
128586
|
+
function setDataPointer(error, dataPointerMap) {
|
|
128587
|
+
const dataPath = error.instancePath;
|
|
128588
|
+
|
|
128589
|
+
const pointer = dataPointerMap[dataPath];
|
|
128590
|
+
|
|
128591
|
+
error.dataPointer = pointer;
|
|
128592
|
+
}
|
|
128593
|
+
|
|
128594
|
+
function ignoreSupportiveErrors(errors) {
|
|
128595
|
+
return filter(errors, function(error) {
|
|
128596
|
+
return error.keyword !== 'if';
|
|
128597
|
+
});
|
|
128598
|
+
}
|
|
128599
|
+
|
|
128600
|
+
/**
|
|
128601
|
+
* Generates a key-pointer map for the object.
|
|
128602
|
+
*
|
|
128603
|
+
* Example:
|
|
128604
|
+
*
|
|
128605
|
+
* {
|
|
128606
|
+
* foo: 'bar'
|
|
128607
|
+
* }
|
|
128608
|
+
*
|
|
128609
|
+
* =>
|
|
128610
|
+
*
|
|
128611
|
+
* {
|
|
128612
|
+
* '': {
|
|
128613
|
+
* value: { line: 0, column: 0, pos: 0 },
|
|
128614
|
+
* valueEnd: { line: 2, column: 1, pos: 18 }
|
|
128615
|
+
* },
|
|
128616
|
+
* '/foo': {
|
|
128617
|
+
* key: { line: 1, column: 2, pos: 4 },
|
|
128618
|
+
* keyEnd: { line: 1, column: 7, pos: 9 },
|
|
128619
|
+
* value: { line: 1, column: 9, pos: 11 },
|
|
128620
|
+
* valueEnd: { line: 1, column: 14, pos: 16 }
|
|
128621
|
+
* }
|
|
128622
|
+
* }
|
|
128623
|
+
*
|
|
128624
|
+
* @param {Object} object
|
|
128625
|
+
* @return {Object}
|
|
128626
|
+
*/
|
|
128627
|
+
function generateDataPointerMap(object) {
|
|
128628
|
+
return jsonMap.stringify(object, null, 2).pointers;
|
|
128629
|
+
}
|
|
128630
|
+
|
|
128631
|
+
function getSchemaVersion$1() {
|
|
128632
|
+
return version$1;
|
|
128633
|
+
}
|
|
128634
|
+
|
|
128635
|
+
/**
|
|
128636
|
+
* Validate a single object.
|
|
128637
|
+
*
|
|
128638
|
+
* @param {Object} object
|
|
128639
|
+
* @return {Object} single object validation result
|
|
128640
|
+
*/
|
|
128641
|
+
function validate(object) {
|
|
128642
|
+
return _validate(object, validateTemplate$1);
|
|
128643
|
+
}
|
|
128644
128644
|
|
|
128645
128645
|
var name$1 = "@camunda/zeebe-element-templates-json-schema";
|
|
128646
|
-
var version = "0.22.
|
|
128646
|
+
var version = "0.22.3";
|
|
128647
128647
|
|
|
128648
128648
|
var standaloneZeebeValidator = {exports: {}};
|
|
128649
128649
|
|
|
@@ -128652,29 +128652,29 @@
|
|
|
128652
128652
|
function requireStandaloneZeebeValidator () {
|
|
128653
128653
|
if (hasRequiredStandaloneZeebeValidator) return standaloneZeebeValidator.exports;
|
|
128654
128654
|
hasRequiredStandaloneZeebeValidator = 1;
|
|
128655
|
-
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"},"engines":{"$id":"#/engines","type":"object","description":"Defines the compatibility of this element template with different engines. Keys are engine names, values are semantic version ranges.","default":{},"examples":[{"camunda":"^8.5"}],"properties":{"camunda":{"$id":"#/engines/camunda","type":"string","description":"A semantic version range that denotes compatible Camunda versions.","default":""}}},"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 = requireEqual().default;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"}},{"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"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}},{"then":{"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"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"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}},{"if":{"oneOf":[{"properties":{"type":{"enum":["String","Text"]}},"required":["type"]},{"not":{"required":["type"]}}]},"then":{"properties":{"placeholder":{"type":"string"}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","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/allOf/1/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."}}}},{"$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","Number"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"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","zeebe:linkedResource"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"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","Number","Boolean"],"errorMessage":"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" 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"]}}},{"if":{"properties":{"type":{"enum":["String","Text"]}},"required":["feel"]},"then":{"properties":{"feel":{"enum":["optional","required"]}}}},{"if":{"properties":{"feel":{"const":"required"}},"required":["feel"]},"then":{"properties":{"value":{"type":"string"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:linkedResource"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"binding":{"properties":{"linkName":{"type":"string"},"property":{"enum":["resourceId","resourceType","bindingType","versionTag"],"errorMessage":"invalid binding.property ${0}; must be any of { resourceId, resourceType, bindingType, versionTag }"}},"required":["linkName","property"]}}}},{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output"]}},"required":["type"]},"type":{"enum":["Boolean","Number"]}},"required":["binding","type"]},"then":{"required":["feel"],"properties":{"feel":{"enum":["optional","static"]}}}}]}],"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","zeebe:linkedResource"],"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, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource }"},"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."},"linkName":{"$id":"#/properties/property/binding/linkName","type":"string","description":"The `linkName` of the element (zeebe:linkedResource)."}}},"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","description":"Indicates whether the property can be a feel expression","enum":["optional","required","static"]},"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 schema19 = {"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}};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, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must 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 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must 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 = {instancePath:instancePath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must 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 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must 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 = {instancePath:instancePath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must 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 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must 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 = {instancePath:instancePath+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must 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 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must 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 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.type !== undefined){if("simple" !== data.type){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must 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 = {instancePath:instancePath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must 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.instancePath === instancePath)) && (err13.keyword in emErrors0)) && (err13.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err13.schemaPath.slice(68)))){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 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"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 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must 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 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data7.type !== undefined){if("simple" !== data7.type){const err27 = {instancePath:instancePath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must 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.instancePath === instancePath+"/allMatch/" + i1)) && (err30.keyword in emErrors1)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){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 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"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 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must 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 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must 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, {instancePath="", 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("Dropdown" !== data0.type){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 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must 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.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + 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 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",keyword:"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 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs12 = errors;let valid8 = true;const _errs13 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(((data0.id === undefined) && ("id")) || ((data0.condition === undefined) && ("condition"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.condition !== undefined){let data2 = data0.condition;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if((data2.property === undefined) && ("property")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data2.property !== undefined){if(!func0(data2.property, schema19.properties.property.const)){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}}}}var _valid1 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid1){const _errs17 = errors;const _errs18 = errors;const _errs19 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.condition === undefined) && ("condition")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid12 = _errs19 === errors;if(valid12){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}if(errors > 0){const emErrs2 = [];for(const err12 of vErrors){if(((((err12.keyword !== "errorMessage") && (!err12.emUsed)) && ((err12.instancePath === instancePath+"/" + i0) || ((err12.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err12.instancePath[instancePath+"/" + i0.length] === "/")))) && (err12.schemaPath.indexOf("#/allOf/0/items/allOf/1/allOf/0/then") === 0)) && (err12.schemaPath["#/allOf/0/items/allOf/1/allOf/0/then".length] === "/")){emErrs2.push(err12);err12.emUsed = true;}}if(emErrs2.length){const err13 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs2},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const emErrs3 = [];for(const err14 of vErrors){if(!err14.emUsed){emErrs3.push(err14);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid1 = _errs17 === errors;valid8 = _valid1;}if(!valid8){const err15 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err16 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/allOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data0.condition !== undefined){let data5 = data0.condition;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err17 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const _errs25 = errors;let valid14 = false;let passing0 = null;const _errs26 = errors;const _errs29 = errors;let valid16 = false;let passing1 = null;const _errs30 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.equals === undefined){const err18 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data5.equals !== undefined){let data6 = data5.equals;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err19 = {instancePath:instancePath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid3 = _errs30 === errors;if(_valid3){valid16 = true;passing1 = 0;}const _errs33 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.oneOf === undefined){const err20 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data5.oneOf !== undefined){let data7 = data5.oneOf;if(Array.isArray(data7)){const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];if((typeof data8 !== "string") && (!(typeof data8 == "number"))){const err21 = {instancePath:instancePath+"/" + i0+"/condition/oneOf/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid3 = _errs33 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 1];}else {if(_valid3){valid16 = true;passing1 = 1;}const _errs38 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.isActive === undefined){const err23 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data5.isActive !== undefined){if(typeof data5.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs38 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 2];}else {if(_valid3){valid16 = true;passing1 = 2;}}}if(!valid16){const err25 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.property === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data5.type !== undefined){if("simple" !== data5.type){const err27 = {instancePath:instancePath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data5.property !== undefined){if(typeof data5.property !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/" + i0+"/condition")) && (err30.keyword in emErrors0)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams0 = obj0[err30.keyword];emParamsErrors0 = emErrors0[err30.keyword][err30.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err30);err30.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 err31 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs4 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs4.push(err32);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid2 = _errs26 === errors;if(_valid2){valid14 = true;passing0 = 0;}const _errs44 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.allMatch === undefined){const err33 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data5.allMatch !== undefined){let data12 = data5.allMatch;if(Array.isArray(data12)){if(data12.length < 1){const err34 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const len2 = data12.length;for(let i2=0; i2<len2; i2++){let data13 = data12[i2];const _errs50 = errors;let valid27 = false;let passing2 = null;const _errs51 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.equals === undefined){const err35 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data13.equals !== undefined){let data14 = data13.equals;if(((typeof data14 !== "string") && (!(typeof data14 == "number"))) && (typeof data14 !== "boolean")){const err36 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid4 = _errs51 === errors;if(_valid4){valid27 = true;passing2 = 0;}const _errs54 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.oneOf === undefined){const err37 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data13.oneOf !== undefined){let data15 = data13.oneOf;if(Array.isArray(data15)){const len3 = data15.length;for(let i3=0; i3<len3; i3++){let data16 = data15[i3];if((typeof data16 !== "string") && (!(typeof data16 == "number"))){const err38 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid4 = _errs54 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 1];}else {if(_valid4){valid27 = true;passing2 = 1;}const _errs59 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.isActive === undefined){const err40 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data13.isActive !== undefined){if(typeof data13.isActive !== "boolean"){const err41 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var _valid4 = _errs59 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 2];}else {if(_valid4){valid27 = true;passing2 = 2;}}}if(!valid27){const err42 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.property === undefined){const err43 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data13.type !== undefined){if("simple" !== data13.type){const err44 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data13.property !== undefined){if(typeof data13.property !== "string"){const err45 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath+"/" + i0+"/condition/allMatch/" + i2)) && (err47.keyword in emErrors1)) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(68)))){emPropParams1 = obj0[err47.keyword];emParamsErrors1 = emErrors1[err47.keyword][err47.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err47);err47.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 err48 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}}}else {const err50 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}}var _valid2 = _errs44 === errors;if(_valid2 && valid14){valid14 = false;passing0 = [passing0, 1];}else {if(_valid2){valid14 = true;passing0 = 1;}}if(!valid14){const err51 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}}}const _errs66 = errors;let valid35 = true;const _errs67 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.type !== undefined){const _errs69 = errors;const _errs70 = errors;if("Number" !== data0.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid37 = _errs70 === errors;if(valid37){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs69;if(vErrors !== null){if(_errs69){vErrors.length = _errs69;}else {vErrors = null;}}}}}}var _valid5 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid5){const _errs71 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data21 = data0.value;if((typeof data21 !== "string") && (typeof data21 !== "boolean")){const err55 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/allOf/2/then/properties/value/type",keyword:"type",params:{type: schema18.allOf[0].items.allOf[2].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid5 = _errs71 === errors;valid35 = _valid5;}if(!valid35){const err56 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}const _errs75 = errors;let valid39 = true;const _errs76 = errors;const _errs77 = errors;let valid40 = false;const _errs78 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {if(data0.type !== undefined){let data22 = data0.type;if(!((data22 === "String") || (data22 === "Text"))){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}var _valid7 = _errs78 === errors;if(_valid7){valid40 = true;}const _errs80 = errors;const _errs81 = errors;const _errs82 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var valid42 = _errs82 === errors;if(valid42){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {errors = _errs81;if(vErrors !== null){if(_errs81){vErrors.length = _errs81;}else {vErrors = null;}}}var _valid7 = _errs80 === errors;if(_valid7 && valid40){valid40 = false;}else {if(_valid7){valid40 = true;}}if(!valid40){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}}var _valid6 = _errs76 === errors;errors = _errs75;if(vErrors !== null){if(_errs75){vErrors.length = _errs75;}else {vErrors = null;}}let ifClause0;if(_valid6){const _errs83 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.placeholder !== undefined){if(typeof data0.placeholder !== "string"){const err62 = {instancePath:instancePath+"/" + i0+"/placeholder",schemaPath:"#/allOf/0/items/allOf/3/then/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var _valid6 = _errs83 === errors;valid39 = _valid6;ifClause0 = "then";}else {const _errs86 = errors;const _errs87 = errors;const _errs88 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.placeholder === undefined) && ("placeholder")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var valid44 = _errs88 === errors;if(valid44){const err64 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs87;if(vErrors !== null){if(_errs87){vErrors.length = _errs87;}else {vErrors = null;}}}var _valid6 = _errs86 === errors;valid39 = _valid6;ifClause0 = "else";}if(!valid39){const err65 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data24 = data0.value;if(((typeof data24 !== "string") && (!(typeof data24 == "number"))) && (typeof data24 !== "boolean")){const err66 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",keyword:"type",params:{type: schema18.allOf[0].items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err67 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err68 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err69 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err70 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data0.choices !== undefined){let data29 = data0.choices;if(Array.isArray(data29)){const len4 = data29.length;for(let i4=0; i4<len4; i4++){let data30 = data29[i4];if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err71 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data30.name === undefined){const err72 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data30.name !== undefined){if(typeof data30.name !== "string"){const err73 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data30.value !== undefined){if(typeof data30.value !== "string"){const err74 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data30.condition !== undefined){if(!(validate17(data30.condition, {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/condition",parentData:data30,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err75 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(errors > 0){const emErrors2 = {"required":[]};const templates2 = {};for(const err76 of vErrors){if((((((err76.keyword !== "errorMessage") && (!err76.emUsed)) && (err76.instancePath === instancePath+"/" + i0+"/choices/" + i4)) && (err76.keyword in emErrors2)) && (err76.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err76.schemaPath.slice(40)))){emErrors2[err76.keyword].push(err76);err76.emUsed = true;}}for(const key2 in emErrors2){if(emErrors2[key2].length){const err77 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors2[key2]},message:key2 in templates2 ? templates2[key2]() : schema18.allOf[0].items.properties.choices.items.errorMessage[key2]};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}const emErrs6 = [];for(const err78 of vErrors){if(!err78.emUsed){emErrs6.push(err78);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err79 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data0.constraints !== undefined){let data34 = data0.constraints;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.notEmpty !== undefined){if(typeof data34.notEmpty !== "boolean"){const err80 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data34.minLength !== undefined){if(!(typeof data34.minLength == "number")){const err81 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data34.maxLength !== undefined){if(!(typeof data34.maxLength == "number")){const err82 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(data34.pattern !== undefined){let data38 = data34.pattern;const _errs117 = errors;let valid51 = false;let passing4 = null;const _errs118 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.value !== undefined){if(typeof data38.value !== "string"){const err83 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data38.message !== undefined){if(typeof data38.message !== "string"){const err84 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid8 = _errs118 === errors;if(_valid8){valid51 = true;passing4 = 0;}const _errs124 = errors;if(typeof data38 !== "string"){const err86 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var _valid8 = _errs124 === errors;if(_valid8 && valid51){valid51 = false;passing4 = [passing4, 1];}else {if(_valid8){valid51 = true;passing4 = 1;}}if(!valid51){const err87 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {errors = _errs117;if(vErrors !== null){if(_errs117){vErrors.length = _errs117;}else {vErrors = null;}}}}}else {const err88 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err89 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath,schemaPath:"#/allOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data42 = data[i5];const _errs133 = errors;let valid56 = true;const _errs134 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {if(data42.binding !== undefined){let data43 = data42.binding;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(data43.type !== undefined){if("property" !== data43.type){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}}}}}var _valid9 = _errs134 === errors;errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}if(_valid9){const _errs137 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data45 = data42.type;if(!((((((data45 === "String") || (data45 === "Text")) || (data45 === "Hidden")) || (data45 === "Dropdown")) || (data45 === "Boolean")) || (data45 === "Number"))){const err95 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(errors > 0){const emErrs7 = [];for(const err96 of vErrors){if(((((err96.keyword !== "errorMessage") && (!err96.emUsed)) && ((err96.instancePath === instancePath+"/" + i5+"/type") || ((err96.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err96.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err96.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err96.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs7.push(err96);err96.emUsed = true;}}if(emErrs7.length){const err97 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data45) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const emErrs8 = [];for(const err98 of vErrors){if(!err98.emUsed){emErrs8.push(err98);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid9 = _errs137 === errors;valid56 = _valid9;}if(!valid56){const err99 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}const _errs140 = errors;let valid60 = true;const _errs141 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {if(data42.binding !== undefined){let data46 = data42.binding;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data46.type !== undefined){let data47 = data46.type;if(!((((((((((data47 === "zeebe:input") || (data47 === "zeebe:output")) || (data47 === "zeebe:property")) || (data47 === "zeebe:taskHeader")) || (data47 === "zeebe:taskDefinition:type")) || (data47 === "bpmn:Message#property")) || (data47 === "bpmn:Message#zeebe:subscription#property")) || (data47 === "zeebe:taskDefinition")) || (data47 === "zeebe:calledElement")) || (data47 === "zeebe:linkedResource"))){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}}}}}var _valid10 = _errs141 === errors;errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}if(_valid10){const _errs144 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data48 = data42.type;if(!((((((data48 === "String") || (data48 === "Text")) || (data48 === "Hidden")) || (data48 === "Dropdown")) || (data48 === "Boolean")) || (data48 === "Number"))){const err103 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(errors > 0){const emErrs9 = [];for(const err104 of vErrors){if(((((err104.keyword !== "errorMessage") && (!err104.emUsed)) && ((err104.instancePath === instancePath+"/" + i5+"/type") || ((err104.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err104.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err104.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err104.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs9.push(err104);err104.emUsed = true;}}if(emErrs9.length){const err105 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data48) + " for binding type " + JSON.stringify(data42 && data42.binding && data42.binding.type) + "; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}const emErrs10 = [];for(const err106 of vErrors){if(!err106.emUsed){emErrs10.push(err106);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid10 = _errs144 === errors;valid60 = _valid10;}if(!valid60){const err107 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}const _errs147 = errors;let valid64 = true;const _errs148 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.optional === undefined) && ("optional")){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}else {if(data42.optional !== undefined){if(true !== data42.optional){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}}}var _valid11 = _errs148 === errors;errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}if(_valid11){const _errs150 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding !== undefined){let data50 = data42.binding;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.type === undefined){const err110 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data50.type !== undefined){let data51 = data50.type;if(!((((data51 === "zeebe:input") || (data51 === "zeebe:output")) || (data51 === "zeebe:property")) || (data51 === "zeebe:taskHeader"))){const err111 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(errors > 0){const emErrs11 = [];for(const err112 of vErrors){if(((((err112.keyword !== "errorMessage") && (!err112.emUsed)) && ((err112.instancePath === instancePath+"/" + i5+"/binding/type") || ((err112.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err112.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err112.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err112.schemaPath["#/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs11.push(err112);err112.emUsed = true;}}if(emErrs11.length){const err113 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs11},message:"optional is not supported for binding type " + JSON.stringify(data51) + "; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}const emErrs12 = [];for(const err114 of vErrors){if(!err114.emUsed){emErrs12.push(err114);}}vErrors = emErrs12;errors = emErrs12.length;}}}}}var _valid11 = _errs150 === errors;valid64 = _valid11;}if(!valid64){const err115 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const _errs154 = errors;let valid68 = true;const _errs155 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.optional === undefined) && ("optional")){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}else {if(data42.optional !== undefined){if(true !== data42.optional){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}}}var _valid12 = _errs155 === errors;errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}if(_valid12){const _errs157 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.constraints !== undefined){let data53 = data42.constraints;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.notEmpty === undefined){const err118 = {instancePath:instancePath+"/" + i5+"/constraints",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/required",keyword:"required",params:{missingProperty: "notEmpty"},message:"must have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if(data53.notEmpty !== undefined){if(false !== data53.notEmpty){const err119 = {instancePath:instancePath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if(errors > 0){const emErrs13 = [];for(const err120 of vErrors){if(((((err120.keyword !== "errorMessage") && (!err120.emUsed)) && ((err120.instancePath === instancePath+"/" + i5+"/constraints/notEmpty") || ((err120.instancePath.indexOf(instancePath+"/" + i5+"/constraints/notEmpty") === 0) && (err120.instancePath[instancePath+"/" + i5+"/constraints/notEmpty".length] === "/")))) && (err120.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err120.schemaPath["#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs13.push(err120);err120.emUsed = true;}}if(emErrs13.length){const err121 = {instancePath:instancePath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",keyword:"errorMessage",params:{errors: emErrs13},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const emErrs14 = [];for(const err122 of vErrors){if(!err122.emUsed){emErrs14.push(err122);}}vErrors = emErrs14;errors = emErrs14.length;}}}}}var _valid12 = _errs157 === errors;valid68 = _valid12;}if(!valid68){const err123 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}const _errs161 = errors;let valid72 = true;const _errs162 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {if(data42.feel !== undefined){const _errs164 = errors;const _errs165 = errors;if(null !== data42.feel){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var valid74 = _errs165 === errors;if(valid74){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}}}}var _valid13 = _errs162 === errors;errors = _errs161;if(vErrors !== null){if(_errs161){vErrors.length = _errs161;}else {vErrors = null;}}if(_valid13){const _errs166 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err127 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(data42.type !== undefined){let data56 = data42.type;if(!((((data56 === "String") || (data56 === "Text")) || (data56 === "Number")) || (data56 === "Boolean"))){const err128 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[4].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(errors > 0){const emErrs15 = [];for(const err129 of vErrors){if(((((err129.keyword !== "errorMessage") && (!err129.emUsed)) && ((err129.instancePath === instancePath+"/" + i5+"/type") || ((err129.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err129.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err129.schemaPath.indexOf("#/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err129.schemaPath["#/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs15.push(err129);err129.emUsed = true;}}if(emErrs15.length){const err130 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs15},message:"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" type"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}const emErrs16 = [];for(const err131 of vErrors){if(!err131.emUsed){emErrs16.push(err131);}}vErrors = emErrs16;errors = emErrs16.length;}}}var _valid13 = _errs166 === errors;valid72 = _valid13;}if(!valid72){const err132 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}const _errs169 = errors;let valid76 = true;const _errs170 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.language === undefined) && ("language")){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {if(data42.language !== undefined){const _errs172 = errors;const _errs173 = errors;if(null !== data42.language){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var valid78 = _errs173 === errors;if(valid78){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}else {errors = _errs172;if(vErrors !== null){if(_errs172){vErrors.length = _errs172;}else {vErrors = null;}}}}}}var _valid14 = _errs170 === errors;errors = _errs169;if(vErrors !== null){if(_errs169){vErrors.length = _errs169;}else {vErrors = null;}}if(_valid14){const _errs174 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){if(!(data42.type === "Text")){const err136 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[5].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if(errors > 0){const emErrs17 = [];for(const err137 of vErrors){if(((((err137.keyword !== "errorMessage") && (!err137.emUsed)) && ((err137.instancePath === instancePath+"/" + i5+"/type") || ((err137.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err137.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err137.schemaPath.indexOf("#/allOf/1/items/allOf/5/then/properties/type") === 0)) && (err137.schemaPath["#/allOf/1/items/allOf/5/then/properties/type".length] === "/")){emErrs17.push(err137);err137.emUsed = true;}}if(emErrs17.length){const err138 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs17},message:"language is only supported for \"Text\" type"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}const emErrs18 = [];for(const err139 of vErrors){if(!err139.emUsed){emErrs18.push(err139);}}vErrors = emErrs18;errors = emErrs18.length;}}}var _valid14 = _errs174 === errors;valid76 = _valid14;}if(!valid76){const err140 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}const _errs177 = errors;let valid80 = true;const _errs178 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.value === undefined) && ("value")){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid15 = _errs178 === errors;errors = _errs177;if(vErrors !== null){if(_errs177){vErrors.length = _errs177;}else {vErrors = null;}}if(_valid15){const _errs179 = errors;const _errs180 = errors;const _errs181 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.generatedValue === undefined) && ("generatedValue")){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var valid81 = _errs181 === errors;if(valid81){const err143 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}else {errors = _errs180;if(vErrors !== null){if(_errs180){vErrors.length = _errs180;}else {vErrors = null;}}}var _valid15 = _errs179 === errors;valid80 = _valid15;}if(!valid80){const err144 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}const _errs183 = errors;let valid82 = true;const _errs184 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.type === undefined) && ("type")){const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(data42.type !== undefined){let data59 = data42.type;if(!((data59 === "Boolean") || (data59 === "Dropdown"))){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}}var _valid16 = _errs184 === errors;errors = _errs183;if(vErrors !== null){if(_errs183){vErrors.length = _errs183;}else {vErrors = null;}}if(_valid16){const _errs186 = errors;const _errs187 = errors;const _errs188 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.generatedValue === undefined) && ("generatedValue")){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var valid84 = _errs188 === errors;if(valid84){const err148 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {errors = _errs187;if(vErrors !== null){if(_errs187){vErrors.length = _errs187;}else {vErrors = null;}}}var _valid16 = _errs186 === errors;valid82 = _valid16;}if(!valid82){const err149 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}const _errs190 = errors;let valid85 = true;const _errs191 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err150 = {};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}else {if(data42.type !== undefined){let data60 = data42.type;if(!((data60 === "String") || (data60 === "Text"))){const err151 = {};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}}var _valid17 = _errs191 === errors;errors = _errs190;if(vErrors !== null){if(_errs190){vErrors.length = _errs190;}else {vErrors = null;}}if(_valid17){const _errs193 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.feel !== undefined){let data61 = data42.feel;if(!((data61 === "optional") || (data61 === "required"))){const err152 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/allOf/8/then/properties/feel/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[8].then.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}}var _valid17 = _errs193 === errors;valid85 = _valid17;}if(!valid85){const err153 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}const _errs196 = errors;let valid88 = true;const _errs197 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err154 = {};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}else {if(data42.feel !== undefined){if("required" !== data42.feel){const err155 = {};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}}}var _valid18 = _errs197 === errors;errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}if(_valid18){const _errs199 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.value !== undefined){if(typeof data42.value !== "string"){const err156 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}}var _valid18 = _errs199 === errors;valid88 = _valid18;}if(!valid88){const err157 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}const _errs203 = errors;let valid91 = true;const _errs204 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}else {if(data42.binding !== undefined){let data64 = data42.binding;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if((data64.type === undefined) && ("type")){const err159 = {};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {if(data64.type !== undefined){if("zeebe:linkedResource" !== data64.type){const err160 = {};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}}}}}var _valid19 = _errs204 === errors;errors = _errs203;if(vErrors !== null){if(_errs203){vErrors.length = _errs203;}else {vErrors = null;}}if(_valid19){const _errs207 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding !== undefined){let data66 = data42.binding;if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if(data66.linkName === undefined){const err161 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/required",keyword:"required",params:{missingProperty: "linkName"},message:"must have required property '"+"linkName"+"'"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if(data66.property === undefined){const err162 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(data66.linkName !== undefined){if(typeof data66.linkName !== "string"){const err163 = {instancePath:instancePath+"/" + i5+"/binding/linkName",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/properties/linkName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}if(data66.property !== undefined){let data68 = data66.property;if(!((((data68 === "resourceId") || (data68 === "resourceType")) || (data68 === "bindingType")) || (data68 === "versionTag"))){const err164 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[10].then.properties.binding.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(errors > 0){const emErrs19 = [];for(const err165 of vErrors){if(((((err165.keyword !== "errorMessage") && (!err165.emUsed)) && ((err165.instancePath === instancePath+"/" + i5+"/binding/property") || ((err165.instancePath.indexOf(instancePath+"/" + i5+"/binding/property") === 0) && (err165.instancePath[instancePath+"/" + i5+"/binding/property".length] === "/")))) && (err165.schemaPath.indexOf("#/allOf/1/items/allOf/10/then/properties/binding/properties/property") === 0)) && (err165.schemaPath["#/allOf/1/items/allOf/10/then/properties/binding/properties/property".length] === "/")){emErrs19.push(err165);err165.emUsed = true;}}if(emErrs19.length){const err166 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs19},message:"invalid binding.property " + JSON.stringify(data68) + "; must be any of { resourceId, resourceType, bindingType, versionTag }"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}const emErrs20 = [];for(const err167 of vErrors){if(!err167.emUsed){emErrs20.push(err167);}}vErrors = emErrs20;errors = emErrs20.length;}}}}}var _valid19 = _errs207 === errors;valid91 = _valid19;}if(!valid91){const err168 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/10/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}const _errs214 = errors;let valid97 = true;const _errs215 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(((data42.binding === undefined) && ("binding")) || ((data42.type === undefined) && ("type"))){const err169 = {};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {if(data42.binding !== undefined){let data69 = data42.binding;const _errs216 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if((data69.type === undefined) && ("type")){const err170 = {};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}else {if(data69.type !== undefined){let data70 = data69.type;if(!((data70 === "zeebe:input") || (data70 === "zeebe:output"))){const err171 = {};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}}var valid98 = _errs216 === errors;}else {var valid98 = true;}if(valid98){if(data42.type !== undefined){let data71 = data42.type;const _errs218 = errors;if(!((data71 === "Boolean") || (data71 === "Number"))){const err172 = {};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}var valid98 = _errs218 === errors;}else {var valid98 = true;}}}}var _valid20 = _errs215 === errors;errors = _errs214;if(vErrors !== null){if(_errs214){vErrors.length = _errs214;}else {vErrors = null;}}if(_valid20){const _errs219 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.feel === undefined){const err173 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/11/allOf/0/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(data42.feel !== undefined){let data72 = data42.feel;if(!((data72 === "optional") || (data72 === "static"))){const err174 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/allOf/11/allOf/0/then/properties/feel/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[11].allOf[0].then.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}}var _valid20 = _errs219 === errors;valid97 = _valid20;}if(!valid97){const err175 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/11/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding === undefined){const err176 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}if(data42.binding !== undefined){let data73 = data42.binding;const _errs224 = errors;let valid103 = true;const _errs225 = errors;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if((data73.type === undefined) && ("type")){const err177 = {};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}else {if(data73.type !== undefined){let data74 = data73.type;if(!(((((data74 === "property") || (data74 === "zeebe:property")) || (data74 === "zeebe:input")) || (data74 === "bpmn:Message#property")) || (data74 === "bpmn:Message#zeebe:subscription#property"))){const err178 = {};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}}var _valid21 = _errs225 === errors;errors = _errs224;if(vErrors !== null){if(_errs224){vErrors.length = _errs224;}else {vErrors = null;}}if(_valid21){const _errs227 = errors;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if(data73.name === undefined){const err179 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(errors > 0){const emErrs21 = [];for(const err180 of vErrors){if(((((err180.keyword !== "errorMessage") && (!err180.emUsed)) && ((err180.instancePath === instancePath+"/" + i5+"/binding") || ((err180.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err180.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err180.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err180.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs21.push(err180);err180.emUsed = true;}}if(emErrs21.length){const err181 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data73 && data73.type) + " requires name"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}const emErrs22 = [];for(const err182 of vErrors){if(!err182.emUsed){emErrs22.push(err182);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid21 = _errs227 === errors;valid103 = _valid21;}if(!valid103){const err183 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}const _errs229 = errors;let valid105 = true;const _errs230 = errors;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if((data73.type === undefined) && ("type")){const err184 = {};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}else {if(data73.type !== undefined){if("zeebe:output" !== data73.type){const err185 = {};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}}}var _valid22 = _errs230 === errors;errors = _errs229;if(vErrors !== null){if(_errs229){vErrors.length = _errs229;}else {vErrors = null;}}if(_valid22){const _errs232 = errors;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if(data73.source === undefined){const err186 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}if(errors > 0){const emErrs23 = [];for(const err187 of vErrors){if(((((err187.keyword !== "errorMessage") && (!err187.emUsed)) && ((err187.instancePath === instancePath+"/" + i5+"/binding") || ((err187.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err187.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err187.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err187.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs23.push(err187);err187.emUsed = true;}}if(emErrs23.length){const err188 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data73 && data73.type) + " requires source"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}const emErrs24 = [];for(const err189 of vErrors){if(!err189.emUsed){emErrs24.push(err189);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid22 = _errs232 === errors;valid105 = _valid22;}if(!valid105){const err190 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}const _errs234 = errors;let valid107 = true;const _errs235 = errors;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if((data73.type === undefined) && ("type")){const err191 = {};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}else {if(data73.type !== undefined){if("zeebe:taskHeader" !== data73.type){const err192 = {};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}}}var _valid23 = _errs235 === errors;errors = _errs234;if(vErrors !== null){if(_errs234){vErrors.length = _errs234;}else {vErrors = null;}}if(_valid23){const _errs237 = errors;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if(data73.key === undefined){const err193 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(errors > 0){const emErrs25 = [];for(const err194 of vErrors){if(((((err194.keyword !== "errorMessage") && (!err194.emUsed)) && ((err194.instancePath === instancePath+"/" + i5+"/binding") || ((err194.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err194.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err194.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err194.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs25.push(err194);err194.emUsed = true;}}if(emErrs25.length){const err195 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs25},message:"property.binding " + JSON.stringify(data73 && data73.type) + " requires key"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}const emErrs26 = [];for(const err196 of vErrors){if(!err196.emUsed){emErrs26.push(err196);}}vErrors = emErrs26;errors = emErrs26.length;}var _valid23 = _errs237 === errors;valid107 = _valid23;}if(!valid107){const err197 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}const _errs239 = errors;let valid109 = true;const _errs240 = errors;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if((data73.type === undefined) && ("type")){const err198 = {};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}else {if(data73.type !== undefined){if("zeebe:taskDefinition" !== data73.type){const err199 = {};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}}}var _valid24 = _errs240 === errors;errors = _errs239;if(vErrors !== null){if(_errs239){vErrors.length = _errs239;}else {vErrors = null;}}if(_valid24){const _errs242 = errors;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if(data73.property === undefined){const err200 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}if(data73.property !== undefined){let data78 = data73.property;if(!((data78 === "type") || (data78 === "retries"))){const err201 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.allOf[3].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}}var _valid24 = _errs242 === errors;valid109 = _valid24;}if(!valid109){const err202 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}const _errs247 = errors;let valid112 = true;const _errs248 = errors;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if((data73.type === undefined) && ("type")){const err203 = {};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}else {if(data73.type !== undefined){if("zeebe:calledElement" !== data73.type){const err204 = {};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}}}var _valid25 = _errs248 === errors;errors = _errs247;if(vErrors !== null){if(_errs247){vErrors.length = _errs247;}else {vErrors = null;}}if(_valid25){const _errs250 = errors;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if(data73.property === undefined){const err205 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if(data73.property !== undefined){if("processId" !== data73.property){const err206 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/properties/property/const",keyword:"const",params:{allowedValue: "processId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}}var _valid25 = _errs250 === errors;valid112 = _valid25;}if(!valid112){const err207 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if(data73.type === undefined){const err208 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}if(data73.type !== undefined){let data81 = data73.type;if(typeof data81 !== "string"){const err209 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}if(!(((((((((((data81 === "property") || (data81 === "zeebe:taskDefinition:type")) || (data81 === "zeebe:input")) || (data81 === "zeebe:output")) || (data81 === "zeebe:property")) || (data81 === "zeebe:taskHeader")) || (data81 === "bpmn:Message#property")) || (data81 === "bpmn:Message#zeebe:subscription#property")) || (data81 === "zeebe:taskDefinition")) || (data81 === "zeebe:calledElement")) || (data81 === "zeebe:linkedResource"))){const err210 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}if(errors > 0){const emErrs27 = [];for(const err211 of vErrors){if(((((err211.keyword !== "errorMessage") && (!err211.emUsed)) && ((err211.instancePath === instancePath+"/" + i5+"/binding/type") || ((err211.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err211.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err211.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err211.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs27.push(err211);err211.emUsed = true;}}if(emErrs27.length){const err212 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs27},message:"invalid property.binding type " + JSON.stringify(data81) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource }"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}const emErrs28 = [];for(const err213 of vErrors){if(!err213.emUsed){emErrs28.push(err213);}}vErrors = emErrs28;errors = emErrs28.length;}}if(data73.name !== undefined){if(typeof data73.name !== "string"){const err214 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}if(data73.source !== undefined){if(typeof data73.source !== "string"){const err215 = {instancePath:instancePath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}if(data73.key !== undefined){if(typeof data73.key !== "string"){const err216 = {instancePath:instancePath+"/" + i5+"/binding/key",schemaPath:"#/allOf/1/items/properties/binding/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}if(data73.property !== undefined){if(typeof data73.property !== "string"){const err217 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data73.linkName !== undefined){if(typeof data73.linkName !== "string"){const err218 = {instancePath:instancePath+"/" + i5+"/binding/linkName",schemaPath:"#/allOf/1/items/properties/binding/properties/linkName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}}else {const err219 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}if(data42.optional !== undefined){if(typeof data42.optional !== "boolean"){const err220 = {instancePath:instancePath+"/" + i5+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(data42.feel !== undefined){let data88 = data42.feel;if(typeof data88 !== "string"){const err221 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}if(!(((data88 === "optional") || (data88 === "required")) || (data88 === "static"))){const err222 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}if(data42.language !== undefined){if(typeof data42.language !== "string"){const err223 = {instancePath:instancePath+"/" + i5+"/language",schemaPath:"#/allOf/1/items/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}if(data42.generatedValue !== undefined){let data90 = data42.generatedValue;if(data90 && typeof data90 == "object" && !Array.isArray(data90)){if(data90.type === undefined){const err224 = {instancePath:instancePath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}if(data90.type !== undefined){if("uuid" !== data90.type){const err225 = {instancePath:instancePath+"/" + i5+"/generatedValue/type",schemaPath:"#/allOf/1/items/properties/generatedValue/properties/type/const",keyword:"const",params:{allowedValue: "uuid"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}}else {const err226 = {instancePath:instancePath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}if(data42.tooltip !== undefined){if(typeof data42.tooltip !== "string"){const err227 = {instancePath:instancePath+"/" + i5+"/tooltip",schemaPath:"#/allOf/1/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}}else {const err228 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}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 err229 of vErrors){if((((((err229.keyword !== "errorMessage") && (!err229.emUsed)) && (err229.instancePath === instancePath+"/" + i5)) && (err229.keyword in emErrors3)) && (err229.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err229.schemaPath.slice(15)))){emPropParams2 = obj0[err229.keyword];emParamsErrors2 = emErrors3[err229.keyword][err229.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err229);err229.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 err230 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}const emErrs29 = [];for(const err231 of vErrors){if(!err231.emUsed){emErrs29.push(err231);}}vErrors = emErrs29;errors = emErrs29.length;}}}else {const err232 = {instancePath,schemaPath:"#/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}validate16.errors = vErrors;return errors === 0;}function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must 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 = {instancePath:instancePath+"/name",schemaPath:"#/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {instancePath:instancePath+"/description",schemaPath:"#/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must 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 = {instancePath:instancePath+"/version",schemaPath:"#/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {instancePath:instancePath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",keyword:"type",params:{type: "boolean"},message:"must 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 = {instancePath:instancePath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",keyword:"type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"must 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 = {instancePath:instancePath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",keyword:"type",params:{type: "string"},message:"must 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 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must 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 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",keyword:"type",params:{type: "string"},message:"must 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.instancePath === instancePath+"/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 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",keyword:"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 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",keyword:"type",params:{type: "array"},message:"must 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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must 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 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",keyword:"type",params:{type: "string"},message:"must 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.instancePath === instancePath+"/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 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",keyword:"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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",keyword:"type",params:{type: "object"},message:"must 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.instancePath === instancePath+"/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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",keyword:"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 = {instancePath:instancePath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err30 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",keyword:"type",params:{type: "boolean"},message:"must 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 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data15.label === undefined){const err32 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must 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 = {instancePath:instancePath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data15.label !== undefined){if(typeof data15.label !== "string"){const err34 = {instancePath:instancePath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must 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.instancePath === instancePath+"/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 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",keyword:"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 = {instancePath:instancePath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",keyword:"type",params:{type: "array"},message:"must 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 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must 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.instancePath === instancePath+"/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 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",keyword:"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.instancePath === instancePath)) && (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 = {instancePath,schemaPath:"#/allOf/0/errorMessage",keyword:"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("bpmn:Message#property" !== data21.type){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 = {instancePath,schemaPath:"#/allOf/1/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must 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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var _valid1 = _errs55 === errors;valid20 = _valid1;}if(!valid20){const err56 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must 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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must 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 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[0].then.properties.elementType.properties.value.enum},message:"must 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 = {instancePath,schemaPath:"#/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must 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("bpmn:Message#zeebe:subscription#property" !== data28.type){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 = {instancePath,schemaPath:"#/allOf/1/allOf/1/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must 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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}var _valid3 = _errs71 === errors;valid30 = _valid3;}if(!valid30){const err68 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must 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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must 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 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[1].then.properties.elementType.properties.value.enum},message:"must 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 = {instancePath,schemaPath:"#/allOf/1/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must 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("zeebe:calledElement" !== data35.type){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 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must 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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(data37.value !== undefined){if("bpmn:CallActivity" !== data37.value){const err79 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:CallActivity"},message:"must 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 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must 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 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const},message:"must 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 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a 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 = {instancePath,schemaPath:"#/allOf/1/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must 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, {instancePath:instancePath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.engines !== undefined){let data41 = data.engines;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.camunda !== undefined){if(typeof data41.camunda !== "string"){const err84 = {instancePath:instancePath+"/engines/camunda",schemaPath:"#/properties/engines/properties/camunda/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/engines",schemaPath:"#/properties/engines/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}if(data.icon !== undefined){let data43 = data.icon;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.contents === undefined){const err86 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/required",keyword:"required",params:{missingProperty: "contents"},message:"must have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(data43.contents !== undefined){let data44 = data43.contents;if(typeof data44 === "string"){if(!pattern4.test(data44)){const err87 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",keyword:"pattern",params:{pattern: "^(https?|data):.*"},message:"must match pattern \""+"^(https?|data):.*"+"\""};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}else {const err88 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(errors > 0){const emErrors6 = {"pattern":[]};const templates6 = {};for(const err89 of vErrors){if((((((err89.keyword !== "errorMessage") && (!err89.emUsed)) && (err89.instancePath === instancePath+"/icon/contents")) && (err89.keyword in emErrors6)) && (err89.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err89.schemaPath.slice(37)))){emErrors6[err89.keyword].push(err89);err89.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err90 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",keyword:"errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema17.properties.icon.properties.contents.errorMessage[key6]};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}const emErrs6 = [];for(const err91 of vErrors){if(!err91.emUsed){emErrs6.push(err91);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err92 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(errors > 0){const emErrors7 = {"required":{"contents":[]}};const templates7 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err93 of vErrors){if((((((err93.keyword !== "errorMessage") && (!err93.emUsed)) && (err93.instancePath === instancePath+"/icon")) && (err93.keyword in emErrors7)) && (err93.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err93.schemaPath.slice(17)))){emPropParams3 = obj0[err93.keyword];emParamsErrors3 = emErrors7[err93.keyword][err93.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err93);err93.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 err94 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.icon.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}const emErrs7 = [];for(const err95 of vErrors){if(!err95.emUsed){emErrs7.push(err95);}}vErrors = emErrs7;errors = emErrs7.length;}}if(data.elementType !== undefined){let data45 = data.elementType;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.eventDefinition !== undefined){if(!(data45.eventDefinition === "bpmn:MessageEventDefinition")){const err96 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/properties/elementType/allOf/0/allOf/0/properties/eventDefinition/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[0].properties.eventDefinition.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}const _errs102 = errors;let valid48 = true;const _errs103 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if((data45.eventDefinition === undefined) && ("eventDefinition")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}var _valid6 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}if(_valid6){const _errs104 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.value === undefined){const err98 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(data45.value !== undefined){let data47 = data45.value;if(!(((((data47 === "bpmn:StartEvent") || (data47 === "bpmn:IntermediateCatchEvent")) || (data47 === "bpmn:IntermediateThrowEvent")) || (data47 === "bpmn:BoundaryEvent")) || (data47 === "bpmn:EndEvent"))){const err99 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[1].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}var _valid6 = _errs104 === errors;valid48 = _valid6;}if(!valid48){const err100 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}if(data.groups !== undefined){let data48 = data.groups;if(Array.isArray(data48)){const len5 = data48.length;for(let i5=0; i5<len5; i5++){let data49 = data48[i5];if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.tooltip !== undefined){if(typeof data49.tooltip !== "string"){const err101 = {instancePath:instancePath+"/groups/" + i5+"/tooltip",schemaPath:"#/properties/groups/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data49.openByDefault !== undefined){if(typeof data49.openByDefault !== "boolean"){const err102 = {instancePath:instancePath+"/groups/" + i5+"/openByDefault",schemaPath:"#/properties/groups/items/properties/openByDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}}}}}else {const err103 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {instancePath="", 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, {instancePath,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], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must 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 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must 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;}
|
|
128655
|
+
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"},"engines":{"$id":"#/engines","type":"object","description":"Defines the compatibility of this element template with different engines. Keys are engine names, values are semantic version ranges.","default":{},"examples":[{"camunda":"^8.5"}],"properties":{"camunda":{"$id":"#/engines/camunda","type":"string","description":"A semantic version range that denotes compatible Camunda versions.","default":""}}},"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 = requireEqual().default;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"}},{"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"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}},{"then":{"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property."},"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"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},"minItems":1}},"required":["allMatch"]}]}}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}},{"if":{"oneOf":[{"properties":{"type":{"enum":["String","Text"]}},"required":["type"]},{"not":{"required":["type"]}}]},"then":{"properties":{"placeholder":{"type":"string"}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","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/allOf/1/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."}}}},{"$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","Number"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"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","zeebe:linkedResource"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"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","Number","Boolean"],"errorMessage":"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" 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"]}}},{"if":{"properties":{"type":{"enum":["String","Text"]}},"required":["feel"]},"then":{"properties":{"feel":{"enum":["optional","required"]}}}},{"if":{"properties":{"feel":{"const":"required"}},"required":["feel"]},"then":{"properties":{"value":{"type":"string"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:linkedResource"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"binding":{"properties":{"linkName":{"type":"string"},"property":{"enum":["resourceId","resourceType","bindingType","versionTag"],"errorMessage":"invalid binding.property ${0}; must be any of { resourceId, resourceType, bindingType, versionTag }"}},"required":["linkName","property"]}}}},{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output"]}},"required":["type"]},"type":{"enum":["Boolean","Number"]}},"required":["binding","type"]},"then":{"properties":{"feel":{"default":"static"}}}}]}],"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","zeebe:linkedResource"],"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, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource }"},"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."},"linkName":{"$id":"#/properties/property/binding/linkName","type":"string","description":"The `linkName` of the element (zeebe:linkedResource)."}}},"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","description":"Indicates whether the property can be a feel expression","enum":["optional","required","static"]},"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 schema19 = {"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}};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, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must 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 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must 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 = {instancePath:instancePath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must 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 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must 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 = {instancePath:instancePath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must 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 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must 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 = {instancePath:instancePath+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must 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 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must 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 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.type !== undefined){if("simple" !== data.type){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must 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 = {instancePath:instancePath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must 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.instancePath === instancePath)) && (err13.keyword in emErrors0)) && (err13.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err13.schemaPath.slice(68)))){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 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"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 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must 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 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data7.type !== undefined){if("simple" !== data7.type){const err27 = {instancePath:instancePath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must 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 = {instancePath:instancePath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must 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.instancePath === instancePath+"/allMatch/" + i1)) && (err30.keyword in emErrors1)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){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 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"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 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must 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 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must 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, {instancePath="", 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("Dropdown" !== data0.type){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 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must 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.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + 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 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",keyword:"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 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs12 = errors;let valid8 = true;const _errs13 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(((data0.id === undefined) && ("id")) || ((data0.condition === undefined) && ("condition"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.condition !== undefined){let data2 = data0.condition;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if((data2.property === undefined) && ("property")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data2.property !== undefined){if(!func0(data2.property, schema19.properties.property.const)){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}}}}var _valid1 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid1){const _errs17 = errors;const _errs18 = errors;const _errs19 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.condition === undefined) && ("condition")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid12 = _errs19 === errors;if(valid12){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}if(errors > 0){const emErrs2 = [];for(const err12 of vErrors){if(((((err12.keyword !== "errorMessage") && (!err12.emUsed)) && ((err12.instancePath === instancePath+"/" + i0) || ((err12.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err12.instancePath[instancePath+"/" + i0.length] === "/")))) && (err12.schemaPath.indexOf("#/allOf/0/items/allOf/1/allOf/0/then") === 0)) && (err12.schemaPath["#/allOf/0/items/allOf/1/allOf/0/then".length] === "/")){emErrs2.push(err12);err12.emUsed = true;}}if(emErrs2.length){const err13 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs2},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const emErrs3 = [];for(const err14 of vErrors){if(!err14.emUsed){emErrs3.push(err14);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid1 = _errs17 === errors;valid8 = _valid1;}if(!valid8){const err15 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err16 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/allOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data0.condition !== undefined){let data5 = data0.condition;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err17 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const _errs25 = errors;let valid14 = false;let passing0 = null;const _errs26 = errors;const _errs29 = errors;let valid16 = false;let passing1 = null;const _errs30 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.equals === undefined){const err18 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data5.equals !== undefined){let data6 = data5.equals;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err19 = {instancePath:instancePath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid3 = _errs30 === errors;if(_valid3){valid16 = true;passing1 = 0;}const _errs33 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.oneOf === undefined){const err20 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data5.oneOf !== undefined){let data7 = data5.oneOf;if(Array.isArray(data7)){const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];if((typeof data8 !== "string") && (!(typeof data8 == "number"))){const err21 = {instancePath:instancePath+"/" + i0+"/condition/oneOf/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid3 = _errs33 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 1];}else {if(_valid3){valid16 = true;passing1 = 1;}const _errs38 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.isActive === undefined){const err23 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data5.isActive !== undefined){if(typeof data5.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs38 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 2];}else {if(_valid3){valid16 = true;passing1 = 2;}}}if(!valid16){const err25 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.property === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data5.type !== undefined){if("simple" !== data5.type){const err27 = {instancePath:instancePath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data5.property !== undefined){if(typeof data5.property !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/" + i0+"/condition")) && (err30.keyword in emErrors0)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams0 = obj0[err30.keyword];emParamsErrors0 = emErrors0[err30.keyword][err30.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err30);err30.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 err31 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs4 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs4.push(err32);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid2 = _errs26 === errors;if(_valid2){valid14 = true;passing0 = 0;}const _errs44 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.allMatch === undefined){const err33 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data5.allMatch !== undefined){let data12 = data5.allMatch;if(Array.isArray(data12)){if(data12.length < 1){const err34 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const len2 = data12.length;for(let i2=0; i2<len2; i2++){let data13 = data12[i2];const _errs50 = errors;let valid27 = false;let passing2 = null;const _errs51 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.equals === undefined){const err35 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data13.equals !== undefined){let data14 = data13.equals;if(((typeof data14 !== "string") && (!(typeof data14 == "number"))) && (typeof data14 !== "boolean")){const err36 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid4 = _errs51 === errors;if(_valid4){valid27 = true;passing2 = 0;}const _errs54 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.oneOf === undefined){const err37 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data13.oneOf !== undefined){let data15 = data13.oneOf;if(Array.isArray(data15)){const len3 = data15.length;for(let i3=0; i3<len3; i3++){let data16 = data15[i3];if((typeof data16 !== "string") && (!(typeof data16 == "number"))){const err38 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid4 = _errs54 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 1];}else {if(_valid4){valid27 = true;passing2 = 1;}const _errs59 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.isActive === undefined){const err40 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data13.isActive !== undefined){if(typeof data13.isActive !== "boolean"){const err41 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var _valid4 = _errs59 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 2];}else {if(_valid4){valid27 = true;passing2 = 2;}}}if(!valid27){const err42 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.property === undefined){const err43 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data13.type !== undefined){if("simple" !== data13.type){const err44 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data13.property !== undefined){if(typeof data13.property !== "string"){const err45 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath+"/" + i0+"/condition/allMatch/" + i2)) && (err47.keyword in emErrors1)) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(68)))){emPropParams1 = obj0[err47.keyword];emParamsErrors1 = emErrors1[err47.keyword][err47.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err47);err47.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 err48 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}}}else {const err50 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}}var _valid2 = _errs44 === errors;if(_valid2 && valid14){valid14 = false;passing0 = [passing0, 1];}else {if(_valid2){valid14 = true;passing0 = 1;}}if(!valid14){const err51 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}}}const _errs66 = errors;let valid35 = true;const _errs67 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.type !== undefined){const _errs69 = errors;const _errs70 = errors;if("Number" !== data0.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid37 = _errs70 === errors;if(valid37){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs69;if(vErrors !== null){if(_errs69){vErrors.length = _errs69;}else {vErrors = null;}}}}}}var _valid5 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid5){const _errs71 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data21 = data0.value;if((typeof data21 !== "string") && (typeof data21 !== "boolean")){const err55 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/allOf/2/then/properties/value/type",keyword:"type",params:{type: schema18.allOf[0].items.allOf[2].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid5 = _errs71 === errors;valid35 = _valid5;}if(!valid35){const err56 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}const _errs75 = errors;let valid39 = true;const _errs76 = errors;const _errs77 = errors;let valid40 = false;const _errs78 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {if(data0.type !== undefined){let data22 = data0.type;if(!((data22 === "String") || (data22 === "Text"))){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}var _valid7 = _errs78 === errors;if(_valid7){valid40 = true;}const _errs80 = errors;const _errs81 = errors;const _errs82 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var valid42 = _errs82 === errors;if(valid42){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {errors = _errs81;if(vErrors !== null){if(_errs81){vErrors.length = _errs81;}else {vErrors = null;}}}var _valid7 = _errs80 === errors;if(_valid7 && valid40){valid40 = false;}else {if(_valid7){valid40 = true;}}if(!valid40){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}}var _valid6 = _errs76 === errors;errors = _errs75;if(vErrors !== null){if(_errs75){vErrors.length = _errs75;}else {vErrors = null;}}let ifClause0;if(_valid6){const _errs83 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.placeholder !== undefined){if(typeof data0.placeholder !== "string"){const err62 = {instancePath:instancePath+"/" + i0+"/placeholder",schemaPath:"#/allOf/0/items/allOf/3/then/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var _valid6 = _errs83 === errors;valid39 = _valid6;ifClause0 = "then";}else {const _errs86 = errors;const _errs87 = errors;const _errs88 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.placeholder === undefined) && ("placeholder")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var valid44 = _errs88 === errors;if(valid44){const err64 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs87;if(vErrors !== null){if(_errs87){vErrors.length = _errs87;}else {vErrors = null;}}}var _valid6 = _errs86 === errors;valid39 = _valid6;ifClause0 = "else";}if(!valid39){const err65 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data24 = data0.value;if(((typeof data24 !== "string") && (!(typeof data24 == "number"))) && (typeof data24 !== "boolean")){const err66 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",keyword:"type",params:{type: schema18.allOf[0].items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err67 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err68 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err69 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err70 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data0.choices !== undefined){let data29 = data0.choices;if(Array.isArray(data29)){const len4 = data29.length;for(let i4=0; i4<len4; i4++){let data30 = data29[i4];if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err71 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data30.name === undefined){const err72 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data30.name !== undefined){if(typeof data30.name !== "string"){const err73 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data30.value !== undefined){if(typeof data30.value !== "string"){const err74 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data30.condition !== undefined){if(!(validate17(data30.condition, {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/condition",parentData:data30,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err75 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(errors > 0){const emErrors2 = {"required":[]};const templates2 = {};for(const err76 of vErrors){if((((((err76.keyword !== "errorMessage") && (!err76.emUsed)) && (err76.instancePath === instancePath+"/" + i0+"/choices/" + i4)) && (err76.keyword in emErrors2)) && (err76.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err76.schemaPath.slice(40)))){emErrors2[err76.keyword].push(err76);err76.emUsed = true;}}for(const key2 in emErrors2){if(emErrors2[key2].length){const err77 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors2[key2]},message:key2 in templates2 ? templates2[key2]() : schema18.allOf[0].items.properties.choices.items.errorMessage[key2]};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}const emErrs6 = [];for(const err78 of vErrors){if(!err78.emUsed){emErrs6.push(err78);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err79 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data0.constraints !== undefined){let data34 = data0.constraints;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.notEmpty !== undefined){if(typeof data34.notEmpty !== "boolean"){const err80 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data34.minLength !== undefined){if(!(typeof data34.minLength == "number")){const err81 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data34.maxLength !== undefined){if(!(typeof data34.maxLength == "number")){const err82 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(data34.pattern !== undefined){let data38 = data34.pattern;const _errs117 = errors;let valid51 = false;let passing4 = null;const _errs118 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.value !== undefined){if(typeof data38.value !== "string"){const err83 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data38.message !== undefined){if(typeof data38.message !== "string"){const err84 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid8 = _errs118 === errors;if(_valid8){valid51 = true;passing4 = 0;}const _errs124 = errors;if(typeof data38 !== "string"){const err86 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var _valid8 = _errs124 === errors;if(_valid8 && valid51){valid51 = false;passing4 = [passing4, 1];}else {if(_valid8){valid51 = true;passing4 = 1;}}if(!valid51){const err87 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {errors = _errs117;if(vErrors !== null){if(_errs117){vErrors.length = _errs117;}else {vErrors = null;}}}}}else {const err88 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err89 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath,schemaPath:"#/allOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data42 = data[i5];const _errs133 = errors;let valid56 = true;const _errs134 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {if(data42.binding !== undefined){let data43 = data42.binding;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(data43.type !== undefined){if("property" !== data43.type){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}}}}}var _valid9 = _errs134 === errors;errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}if(_valid9){const _errs137 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data45 = data42.type;if(!((((((data45 === "String") || (data45 === "Text")) || (data45 === "Hidden")) || (data45 === "Dropdown")) || (data45 === "Boolean")) || (data45 === "Number"))){const err95 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(errors > 0){const emErrs7 = [];for(const err96 of vErrors){if(((((err96.keyword !== "errorMessage") && (!err96.emUsed)) && ((err96.instancePath === instancePath+"/" + i5+"/type") || ((err96.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err96.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err96.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err96.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs7.push(err96);err96.emUsed = true;}}if(emErrs7.length){const err97 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data45) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const emErrs8 = [];for(const err98 of vErrors){if(!err98.emUsed){emErrs8.push(err98);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid9 = _errs137 === errors;valid56 = _valid9;}if(!valid56){const err99 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}const _errs140 = errors;let valid60 = true;const _errs141 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {if(data42.binding !== undefined){let data46 = data42.binding;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data46.type !== undefined){let data47 = data46.type;if(!((((((((((data47 === "zeebe:input") || (data47 === "zeebe:output")) || (data47 === "zeebe:property")) || (data47 === "zeebe:taskHeader")) || (data47 === "zeebe:taskDefinition:type")) || (data47 === "bpmn:Message#property")) || (data47 === "bpmn:Message#zeebe:subscription#property")) || (data47 === "zeebe:taskDefinition")) || (data47 === "zeebe:calledElement")) || (data47 === "zeebe:linkedResource"))){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}}}}}var _valid10 = _errs141 === errors;errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}if(_valid10){const _errs144 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data48 = data42.type;if(!((((((data48 === "String") || (data48 === "Text")) || (data48 === "Hidden")) || (data48 === "Dropdown")) || (data48 === "Boolean")) || (data48 === "Number"))){const err103 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(errors > 0){const emErrs9 = [];for(const err104 of vErrors){if(((((err104.keyword !== "errorMessage") && (!err104.emUsed)) && ((err104.instancePath === instancePath+"/" + i5+"/type") || ((err104.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err104.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err104.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err104.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs9.push(err104);err104.emUsed = true;}}if(emErrs9.length){const err105 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data48) + " for binding type " + JSON.stringify(data42 && data42.binding && data42.binding.type) + "; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}const emErrs10 = [];for(const err106 of vErrors){if(!err106.emUsed){emErrs10.push(err106);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid10 = _errs144 === errors;valid60 = _valid10;}if(!valid60){const err107 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}const _errs147 = errors;let valid64 = true;const _errs148 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.optional === undefined) && ("optional")){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}else {if(data42.optional !== undefined){if(true !== data42.optional){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}}}var _valid11 = _errs148 === errors;errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}if(_valid11){const _errs150 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding !== undefined){let data50 = data42.binding;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.type === undefined){const err110 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data50.type !== undefined){let data51 = data50.type;if(!((((data51 === "zeebe:input") || (data51 === "zeebe:output")) || (data51 === "zeebe:property")) || (data51 === "zeebe:taskHeader"))){const err111 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(errors > 0){const emErrs11 = [];for(const err112 of vErrors){if(((((err112.keyword !== "errorMessage") && (!err112.emUsed)) && ((err112.instancePath === instancePath+"/" + i5+"/binding/type") || ((err112.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err112.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err112.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err112.schemaPath["#/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs11.push(err112);err112.emUsed = true;}}if(emErrs11.length){const err113 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs11},message:"optional is not supported for binding type " + JSON.stringify(data51) + "; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}const emErrs12 = [];for(const err114 of vErrors){if(!err114.emUsed){emErrs12.push(err114);}}vErrors = emErrs12;errors = emErrs12.length;}}}}}var _valid11 = _errs150 === errors;valid64 = _valid11;}if(!valid64){const err115 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const _errs154 = errors;let valid68 = true;const _errs155 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.optional === undefined) && ("optional")){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}else {if(data42.optional !== undefined){if(true !== data42.optional){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}}}var _valid12 = _errs155 === errors;errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}if(_valid12){const _errs157 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.constraints !== undefined){let data53 = data42.constraints;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.notEmpty === undefined){const err118 = {instancePath:instancePath+"/" + i5+"/constraints",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/required",keyword:"required",params:{missingProperty: "notEmpty"},message:"must have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if(data53.notEmpty !== undefined){if(false !== data53.notEmpty){const err119 = {instancePath:instancePath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if(errors > 0){const emErrs13 = [];for(const err120 of vErrors){if(((((err120.keyword !== "errorMessage") && (!err120.emUsed)) && ((err120.instancePath === instancePath+"/" + i5+"/constraints/notEmpty") || ((err120.instancePath.indexOf(instancePath+"/" + i5+"/constraints/notEmpty") === 0) && (err120.instancePath[instancePath+"/" + i5+"/constraints/notEmpty".length] === "/")))) && (err120.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err120.schemaPath["#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs13.push(err120);err120.emUsed = true;}}if(emErrs13.length){const err121 = {instancePath:instancePath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",keyword:"errorMessage",params:{errors: emErrs13},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const emErrs14 = [];for(const err122 of vErrors){if(!err122.emUsed){emErrs14.push(err122);}}vErrors = emErrs14;errors = emErrs14.length;}}}}}var _valid12 = _errs157 === errors;valid68 = _valid12;}if(!valid68){const err123 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}const _errs161 = errors;let valid72 = true;const _errs162 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {if(data42.feel !== undefined){const _errs164 = errors;const _errs165 = errors;if(null !== data42.feel){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var valid74 = _errs165 === errors;if(valid74){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}}}}var _valid13 = _errs162 === errors;errors = _errs161;if(vErrors !== null){if(_errs161){vErrors.length = _errs161;}else {vErrors = null;}}if(_valid13){const _errs166 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err127 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(data42.type !== undefined){let data56 = data42.type;if(!((((data56 === "String") || (data56 === "Text")) || (data56 === "Number")) || (data56 === "Boolean"))){const err128 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[4].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(errors > 0){const emErrs15 = [];for(const err129 of vErrors){if(((((err129.keyword !== "errorMessage") && (!err129.emUsed)) && ((err129.instancePath === instancePath+"/" + i5+"/type") || ((err129.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err129.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err129.schemaPath.indexOf("#/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err129.schemaPath["#/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs15.push(err129);err129.emUsed = true;}}if(emErrs15.length){const err130 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs15},message:"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" type"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}const emErrs16 = [];for(const err131 of vErrors){if(!err131.emUsed){emErrs16.push(err131);}}vErrors = emErrs16;errors = emErrs16.length;}}}var _valid13 = _errs166 === errors;valid72 = _valid13;}if(!valid72){const err132 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}const _errs169 = errors;let valid76 = true;const _errs170 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.language === undefined) && ("language")){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {if(data42.language !== undefined){const _errs172 = errors;const _errs173 = errors;if(null !== data42.language){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var valid78 = _errs173 === errors;if(valid78){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}else {errors = _errs172;if(vErrors !== null){if(_errs172){vErrors.length = _errs172;}else {vErrors = null;}}}}}}var _valid14 = _errs170 === errors;errors = _errs169;if(vErrors !== null){if(_errs169){vErrors.length = _errs169;}else {vErrors = null;}}if(_valid14){const _errs174 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){if(!(data42.type === "Text")){const err136 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[5].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if(errors > 0){const emErrs17 = [];for(const err137 of vErrors){if(((((err137.keyword !== "errorMessage") && (!err137.emUsed)) && ((err137.instancePath === instancePath+"/" + i5+"/type") || ((err137.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err137.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err137.schemaPath.indexOf("#/allOf/1/items/allOf/5/then/properties/type") === 0)) && (err137.schemaPath["#/allOf/1/items/allOf/5/then/properties/type".length] === "/")){emErrs17.push(err137);err137.emUsed = true;}}if(emErrs17.length){const err138 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs17},message:"language is only supported for \"Text\" type"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}const emErrs18 = [];for(const err139 of vErrors){if(!err139.emUsed){emErrs18.push(err139);}}vErrors = emErrs18;errors = emErrs18.length;}}}var _valid14 = _errs174 === errors;valid76 = _valid14;}if(!valid76){const err140 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}const _errs177 = errors;let valid80 = true;const _errs178 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.value === undefined) && ("value")){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid15 = _errs178 === errors;errors = _errs177;if(vErrors !== null){if(_errs177){vErrors.length = _errs177;}else {vErrors = null;}}if(_valid15){const _errs179 = errors;const _errs180 = errors;const _errs181 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.generatedValue === undefined) && ("generatedValue")){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var valid81 = _errs181 === errors;if(valid81){const err143 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}else {errors = _errs180;if(vErrors !== null){if(_errs180){vErrors.length = _errs180;}else {vErrors = null;}}}var _valid15 = _errs179 === errors;valid80 = _valid15;}if(!valid80){const err144 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}const _errs183 = errors;let valid82 = true;const _errs184 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.type === undefined) && ("type")){const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(data42.type !== undefined){let data59 = data42.type;if(!((data59 === "Boolean") || (data59 === "Dropdown"))){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}}var _valid16 = _errs184 === errors;errors = _errs183;if(vErrors !== null){if(_errs183){vErrors.length = _errs183;}else {vErrors = null;}}if(_valid16){const _errs186 = errors;const _errs187 = errors;const _errs188 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.generatedValue === undefined) && ("generatedValue")){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var valid84 = _errs188 === errors;if(valid84){const err148 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {errors = _errs187;if(vErrors !== null){if(_errs187){vErrors.length = _errs187;}else {vErrors = null;}}}var _valid16 = _errs186 === errors;valid82 = _valid16;}if(!valid82){const err149 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}const _errs190 = errors;let valid85 = true;const _errs191 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err150 = {};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}else {if(data42.type !== undefined){let data60 = data42.type;if(!((data60 === "String") || (data60 === "Text"))){const err151 = {};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}}var _valid17 = _errs191 === errors;errors = _errs190;if(vErrors !== null){if(_errs190){vErrors.length = _errs190;}else {vErrors = null;}}if(_valid17){const _errs193 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.feel !== undefined){let data61 = data42.feel;if(!((data61 === "optional") || (data61 === "required"))){const err152 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/allOf/8/then/properties/feel/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[8].then.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}}var _valid17 = _errs193 === errors;valid85 = _valid17;}if(!valid85){const err153 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}const _errs196 = errors;let valid88 = true;const _errs197 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err154 = {};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}else {if(data42.feel !== undefined){if("required" !== data42.feel){const err155 = {};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}}}var _valid18 = _errs197 === errors;errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}if(_valid18){const _errs199 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.value !== undefined){if(typeof data42.value !== "string"){const err156 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}}var _valid18 = _errs199 === errors;valid88 = _valid18;}if(!valid88){const err157 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}const _errs203 = errors;let valid91 = true;const _errs204 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}else {if(data42.binding !== undefined){let data64 = data42.binding;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if((data64.type === undefined) && ("type")){const err159 = {};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {if(data64.type !== undefined){if("zeebe:linkedResource" !== data64.type){const err160 = {};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}}}}}var _valid19 = _errs204 === errors;errors = _errs203;if(vErrors !== null){if(_errs203){vErrors.length = _errs203;}else {vErrors = null;}}if(_valid19){const _errs207 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding !== undefined){let data66 = data42.binding;if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if(data66.linkName === undefined){const err161 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/required",keyword:"required",params:{missingProperty: "linkName"},message:"must have required property '"+"linkName"+"'"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if(data66.property === undefined){const err162 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(data66.linkName !== undefined){if(typeof data66.linkName !== "string"){const err163 = {instancePath:instancePath+"/" + i5+"/binding/linkName",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/properties/linkName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}if(data66.property !== undefined){let data68 = data66.property;if(!((((data68 === "resourceId") || (data68 === "resourceType")) || (data68 === "bindingType")) || (data68 === "versionTag"))){const err164 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[10].then.properties.binding.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(errors > 0){const emErrs19 = [];for(const err165 of vErrors){if(((((err165.keyword !== "errorMessage") && (!err165.emUsed)) && ((err165.instancePath === instancePath+"/" + i5+"/binding/property") || ((err165.instancePath.indexOf(instancePath+"/" + i5+"/binding/property") === 0) && (err165.instancePath[instancePath+"/" + i5+"/binding/property".length] === "/")))) && (err165.schemaPath.indexOf("#/allOf/1/items/allOf/10/then/properties/binding/properties/property") === 0)) && (err165.schemaPath["#/allOf/1/items/allOf/10/then/properties/binding/properties/property".length] === "/")){emErrs19.push(err165);err165.emUsed = true;}}if(emErrs19.length){const err166 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs19},message:"invalid binding.property " + JSON.stringify(data68) + "; must be any of { resourceId, resourceType, bindingType, versionTag }"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}const emErrs20 = [];for(const err167 of vErrors){if(!err167.emUsed){emErrs20.push(err167);}}vErrors = emErrs20;errors = emErrs20.length;}}}}}var _valid19 = _errs207 === errors;valid91 = _valid19;}if(!valid91){const err168 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/10/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}const _errs214 = errors;let valid97 = true;const _errs215 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(((data42.binding === undefined) && ("binding")) || ((data42.type === undefined) && ("type"))){const err169 = {};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {if(data42.binding !== undefined){let data69 = data42.binding;const _errs216 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if((data69.type === undefined) && ("type")){const err170 = {};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}else {if(data69.type !== undefined){let data70 = data69.type;if(!((data70 === "zeebe:input") || (data70 === "zeebe:output"))){const err171 = {};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}}var valid98 = _errs216 === errors;}else {var valid98 = true;}if(valid98){if(data42.type !== undefined){let data71 = data42.type;const _errs218 = errors;if(!((data71 === "Boolean") || (data71 === "Number"))){const err172 = {};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}var valid98 = _errs218 === errors;}else {var valid98 = true;}}}}var _valid20 = _errs215 === errors;errors = _errs214;if(vErrors !== null){if(_errs214){vErrors.length = _errs214;}else {vErrors = null;}}if(_valid20){const _errs219 = errors;var _valid20 = _errs219 === errors;valid97 = _valid20;}if(!valid97){const err173 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/11/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding === undefined){const err174 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if(data42.binding !== undefined){let data72 = data42.binding;const _errs223 = errors;let valid102 = true;const _errs224 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if((data72.type === undefined) && ("type")){const err175 = {};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {if(data72.type !== undefined){let data73 = data72.type;if(!(((((data73 === "property") || (data73 === "zeebe:property")) || (data73 === "zeebe:input")) || (data73 === "bpmn:Message#property")) || (data73 === "bpmn:Message#zeebe:subscription#property"))){const err176 = {};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}}}var _valid21 = _errs224 === errors;errors = _errs223;if(vErrors !== null){if(_errs223){vErrors.length = _errs223;}else {vErrors = null;}}if(_valid21){const _errs226 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.name === undefined){const err177 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}if(errors > 0){const emErrs21 = [];for(const err178 of vErrors){if(((((err178.keyword !== "errorMessage") && (!err178.emUsed)) && ((err178.instancePath === instancePath+"/" + i5+"/binding") || ((err178.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err178.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err178.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err178.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs21.push(err178);err178.emUsed = true;}}if(emErrs21.length){const err179 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data72 && data72.type) + " requires name"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}const emErrs22 = [];for(const err180 of vErrors){if(!err180.emUsed){emErrs22.push(err180);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid21 = _errs226 === errors;valid102 = _valid21;}if(!valid102){const err181 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}const _errs228 = errors;let valid104 = true;const _errs229 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if((data72.type === undefined) && ("type")){const err182 = {};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}else {if(data72.type !== undefined){if("zeebe:output" !== data72.type){const err183 = {};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}}var _valid22 = _errs229 === errors;errors = _errs228;if(vErrors !== null){if(_errs228){vErrors.length = _errs228;}else {vErrors = null;}}if(_valid22){const _errs231 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.source === undefined){const err184 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}if(errors > 0){const emErrs23 = [];for(const err185 of vErrors){if(((((err185.keyword !== "errorMessage") && (!err185.emUsed)) && ((err185.instancePath === instancePath+"/" + i5+"/binding") || ((err185.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err185.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err185.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err185.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs23.push(err185);err185.emUsed = true;}}if(emErrs23.length){const err186 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data72 && data72.type) + " requires source"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}const emErrs24 = [];for(const err187 of vErrors){if(!err187.emUsed){emErrs24.push(err187);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid22 = _errs231 === errors;valid104 = _valid22;}if(!valid104){const err188 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}const _errs233 = errors;let valid106 = true;const _errs234 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if((data72.type === undefined) && ("type")){const err189 = {};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}else {if(data72.type !== undefined){if("zeebe:taskHeader" !== data72.type){const err190 = {};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}}}var _valid23 = _errs234 === errors;errors = _errs233;if(vErrors !== null){if(_errs233){vErrors.length = _errs233;}else {vErrors = null;}}if(_valid23){const _errs236 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.key === undefined){const err191 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(errors > 0){const emErrs25 = [];for(const err192 of vErrors){if(((((err192.keyword !== "errorMessage") && (!err192.emUsed)) && ((err192.instancePath === instancePath+"/" + i5+"/binding") || ((err192.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err192.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err192.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err192.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs25.push(err192);err192.emUsed = true;}}if(emErrs25.length){const err193 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs25},message:"property.binding " + JSON.stringify(data72 && data72.type) + " requires key"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}const emErrs26 = [];for(const err194 of vErrors){if(!err194.emUsed){emErrs26.push(err194);}}vErrors = emErrs26;errors = emErrs26.length;}var _valid23 = _errs236 === errors;valid106 = _valid23;}if(!valid106){const err195 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}const _errs238 = errors;let valid108 = true;const _errs239 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if((data72.type === undefined) && ("type")){const err196 = {};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}else {if(data72.type !== undefined){if("zeebe:taskDefinition" !== data72.type){const err197 = {};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}}}var _valid24 = _errs239 === errors;errors = _errs238;if(vErrors !== null){if(_errs238){vErrors.length = _errs238;}else {vErrors = null;}}if(_valid24){const _errs241 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.property === undefined){const err198 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}if(data72.property !== undefined){let data77 = data72.property;if(!((data77 === "type") || (data77 === "retries"))){const err199 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.allOf[3].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}}var _valid24 = _errs241 === errors;valid108 = _valid24;}if(!valid108){const err200 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}const _errs246 = errors;let valid111 = true;const _errs247 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if((data72.type === undefined) && ("type")){const err201 = {};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}else {if(data72.type !== undefined){if("zeebe:calledElement" !== data72.type){const err202 = {};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}}}var _valid25 = _errs247 === errors;errors = _errs246;if(vErrors !== null){if(_errs246){vErrors.length = _errs246;}else {vErrors = null;}}if(_valid25){const _errs249 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.property === undefined){const err203 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}if(data72.property !== undefined){if("processId" !== data72.property){const err204 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/properties/property/const",keyword:"const",params:{allowedValue: "processId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}}var _valid25 = _errs249 === errors;valid111 = _valid25;}if(!valid111){const err205 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.type === undefined){const err206 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}if(data72.type !== undefined){let data80 = data72.type;if(typeof data80 !== "string"){const err207 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(!(((((((((((data80 === "property") || (data80 === "zeebe:taskDefinition:type")) || (data80 === "zeebe:input")) || (data80 === "zeebe:output")) || (data80 === "zeebe:property")) || (data80 === "zeebe:taskHeader")) || (data80 === "bpmn:Message#property")) || (data80 === "bpmn:Message#zeebe:subscription#property")) || (data80 === "zeebe:taskDefinition")) || (data80 === "zeebe:calledElement")) || (data80 === "zeebe:linkedResource"))){const err208 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}if(errors > 0){const emErrs27 = [];for(const err209 of vErrors){if(((((err209.keyword !== "errorMessage") && (!err209.emUsed)) && ((err209.instancePath === instancePath+"/" + i5+"/binding/type") || ((err209.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err209.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err209.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err209.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs27.push(err209);err209.emUsed = true;}}if(emErrs27.length){const err210 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs27},message:"invalid property.binding type " + JSON.stringify(data80) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource }"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}const emErrs28 = [];for(const err211 of vErrors){if(!err211.emUsed){emErrs28.push(err211);}}vErrors = emErrs28;errors = emErrs28.length;}}if(data72.name !== undefined){if(typeof data72.name !== "string"){const err212 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}if(data72.source !== undefined){if(typeof data72.source !== "string"){const err213 = {instancePath:instancePath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(data72.key !== undefined){if(typeof data72.key !== "string"){const err214 = {instancePath:instancePath+"/" + i5+"/binding/key",schemaPath:"#/allOf/1/items/properties/binding/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}if(data72.property !== undefined){if(typeof data72.property !== "string"){const err215 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}if(data72.linkName !== undefined){if(typeof data72.linkName !== "string"){const err216 = {instancePath:instancePath+"/" + i5+"/binding/linkName",schemaPath:"#/allOf/1/items/properties/binding/properties/linkName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}}else {const err217 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data42.optional !== undefined){if(typeof data42.optional !== "boolean"){const err218 = {instancePath:instancePath+"/" + i5+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}if(data42.feel !== undefined){let data87 = data42.feel;if(typeof data87 !== "string"){const err219 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}if(!(((data87 === "optional") || (data87 === "required")) || (data87 === "static"))){const err220 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(data42.language !== undefined){if(typeof data42.language !== "string"){const err221 = {instancePath:instancePath+"/" + i5+"/language",schemaPath:"#/allOf/1/items/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}if(data42.generatedValue !== undefined){let data89 = data42.generatedValue;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.type === undefined){const err222 = {instancePath:instancePath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}if(data89.type !== undefined){if("uuid" !== data89.type){const err223 = {instancePath:instancePath+"/" + i5+"/generatedValue/type",schemaPath:"#/allOf/1/items/properties/generatedValue/properties/type/const",keyword:"const",params:{allowedValue: "uuid"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}}else {const err224 = {instancePath:instancePath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}if(data42.tooltip !== undefined){if(typeof data42.tooltip !== "string"){const err225 = {instancePath:instancePath+"/" + i5+"/tooltip",schemaPath:"#/allOf/1/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}}else {const err226 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}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 err227 of vErrors){if((((((err227.keyword !== "errorMessage") && (!err227.emUsed)) && (err227.instancePath === instancePath+"/" + i5)) && (err227.keyword in emErrors3)) && (err227.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err227.schemaPath.slice(15)))){emPropParams2 = obj0[err227.keyword];emParamsErrors2 = emErrors3[err227.keyword][err227.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err227);err227.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 err228 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}}const emErrs29 = [];for(const err229 of vErrors){if(!err229.emUsed){emErrs29.push(err229);}}vErrors = emErrs29;errors = emErrs29.length;}}}else {const err230 = {instancePath,schemaPath:"#/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}validate16.errors = vErrors;return errors === 0;}function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must 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 = {instancePath:instancePath+"/name",schemaPath:"#/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {instancePath:instancePath+"/description",schemaPath:"#/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must 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 = {instancePath:instancePath+"/version",schemaPath:"#/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {instancePath:instancePath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",keyword:"type",params:{type: "boolean"},message:"must 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 = {instancePath:instancePath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",keyword:"type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"must 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 = {instancePath:instancePath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",keyword:"type",params:{type: "string"},message:"must 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 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must 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 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",keyword:"type",params:{type: "string"},message:"must 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.instancePath === instancePath+"/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 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",keyword:"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 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",keyword:"type",params:{type: "array"},message:"must 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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must 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 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",keyword:"type",params:{type: "string"},message:"must 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.instancePath === instancePath+"/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 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",keyword:"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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",keyword:"type",params:{type: "object"},message:"must 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.instancePath === instancePath+"/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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",keyword:"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 = {instancePath:instancePath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err30 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",keyword:"type",params:{type: "boolean"},message:"must 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 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data15.label === undefined){const err32 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must 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 = {instancePath:instancePath+"/groups/" + i1+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data15.label !== undefined){if(typeof data15.label !== "string"){const err34 = {instancePath:instancePath+"/groups/" + i1+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must 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.instancePath === instancePath+"/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 = {instancePath:instancePath+"/groups/" + i1,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",keyword:"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 = {instancePath:instancePath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",keyword:"type",params:{type: "array"},message:"must 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 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must 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.instancePath === instancePath+"/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 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",keyword:"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.instancePath === instancePath)) && (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 = {instancePath,schemaPath:"#/allOf/0/errorMessage",keyword:"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("bpmn:Message#property" !== data21.type){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 = {instancePath,schemaPath:"#/allOf/1/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must 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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var _valid1 = _errs55 === errors;valid20 = _valid1;}if(!valid20){const err56 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must 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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must 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 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[0].then.properties.elementType.properties.value.enum},message:"must 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 = {instancePath,schemaPath:"#/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must 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("bpmn:Message#zeebe:subscription#property" !== data28.type){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 = {instancePath,schemaPath:"#/allOf/1/allOf/1/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must 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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}var _valid3 = _errs71 === errors;valid30 = _valid3;}if(!valid30){const err68 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must 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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must 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 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[1].then.properties.elementType.properties.value.enum},message:"must 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 = {instancePath,schemaPath:"#/allOf/1/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must 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("zeebe:calledElement" !== data35.type){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 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must 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 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(data37.value !== undefined){if("bpmn:CallActivity" !== data37.value){const err79 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:CallActivity"},message:"must 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 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must 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 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const},message:"must 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 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a 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 = {instancePath,schemaPath:"#/allOf/1/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must 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, {instancePath:instancePath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.engines !== undefined){let data41 = data.engines;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.camunda !== undefined){if(typeof data41.camunda !== "string"){const err84 = {instancePath:instancePath+"/engines/camunda",schemaPath:"#/properties/engines/properties/camunda/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/engines",schemaPath:"#/properties/engines/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}if(data.icon !== undefined){let data43 = data.icon;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.contents === undefined){const err86 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/required",keyword:"required",params:{missingProperty: "contents"},message:"must have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(data43.contents !== undefined){let data44 = data43.contents;if(typeof data44 === "string"){if(!pattern4.test(data44)){const err87 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",keyword:"pattern",params:{pattern: "^(https?|data):.*"},message:"must match pattern \""+"^(https?|data):.*"+"\""};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}else {const err88 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(errors > 0){const emErrors6 = {"pattern":[]};const templates6 = {};for(const err89 of vErrors){if((((((err89.keyword !== "errorMessage") && (!err89.emUsed)) && (err89.instancePath === instancePath+"/icon/contents")) && (err89.keyword in emErrors6)) && (err89.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err89.schemaPath.slice(37)))){emErrors6[err89.keyword].push(err89);err89.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err90 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",keyword:"errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema17.properties.icon.properties.contents.errorMessage[key6]};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}const emErrs6 = [];for(const err91 of vErrors){if(!err91.emUsed){emErrs6.push(err91);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err92 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(errors > 0){const emErrors7 = {"required":{"contents":[]}};const templates7 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err93 of vErrors){if((((((err93.keyword !== "errorMessage") && (!err93.emUsed)) && (err93.instancePath === instancePath+"/icon")) && (err93.keyword in emErrors7)) && (err93.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err93.schemaPath.slice(17)))){emPropParams3 = obj0[err93.keyword];emParamsErrors3 = emErrors7[err93.keyword][err93.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err93);err93.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 err94 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.icon.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}const emErrs7 = [];for(const err95 of vErrors){if(!err95.emUsed){emErrs7.push(err95);}}vErrors = emErrs7;errors = emErrs7.length;}}if(data.elementType !== undefined){let data45 = data.elementType;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.eventDefinition !== undefined){if(!(data45.eventDefinition === "bpmn:MessageEventDefinition")){const err96 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/properties/elementType/allOf/0/allOf/0/properties/eventDefinition/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[0].properties.eventDefinition.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}const _errs102 = errors;let valid48 = true;const _errs103 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if((data45.eventDefinition === undefined) && ("eventDefinition")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}var _valid6 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}if(_valid6){const _errs104 = errors;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.value === undefined){const err98 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(data45.value !== undefined){let data47 = data45.value;if(!(((((data47 === "bpmn:StartEvent") || (data47 === "bpmn:IntermediateCatchEvent")) || (data47 === "bpmn:IntermediateThrowEvent")) || (data47 === "bpmn:BoundaryEvent")) || (data47 === "bpmn:EndEvent"))){const err99 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[1].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}var _valid6 = _errs104 === errors;valid48 = _valid6;}if(!valid48){const err100 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}if(data.groups !== undefined){let data48 = data.groups;if(Array.isArray(data48)){const len5 = data48.length;for(let i5=0; i5<len5; i5++){let data49 = data48[i5];if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.tooltip !== undefined){if(typeof data49.tooltip !== "string"){const err101 = {instancePath:instancePath+"/groups/" + i5+"/tooltip",schemaPath:"#/properties/groups/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data49.openByDefault !== undefined){if(typeof data49.openByDefault !== "boolean"){const err102 = {instancePath:instancePath+"/groups/" + i5+"/openByDefault",schemaPath:"#/properties/groups/items/properties/openByDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}}}}}else {const err103 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {instancePath="", 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, {instancePath,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], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must 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 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must 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;}
|
|
128656
128656
|
return standaloneZeebeValidator.exports;
|
|
128657
128657
|
}
|
|
128658
128658
|
|
|
128659
128659
|
var standaloneZeebeValidatorExports = requireStandaloneZeebeValidator();
|
|
128660
128660
|
var validateTemplate = /*@__PURE__*/getDefaultExportFromCjs(standaloneZeebeValidatorExports);
|
|
128661
128661
|
|
|
128662
|
-
function getZeebeSchemaPackage() {
|
|
128663
|
-
return name$1;
|
|
128664
|
-
}
|
|
128665
|
-
|
|
128666
|
-
function getZeebeSchemaVersion() {
|
|
128667
|
-
return version;
|
|
128668
|
-
}
|
|
128669
|
-
|
|
128670
|
-
/**
|
|
128671
|
-
* Validate a single object.
|
|
128672
|
-
*
|
|
128673
|
-
* @param {Object} object
|
|
128674
|
-
* @return {Object} single object validation result
|
|
128675
|
-
*/
|
|
128676
|
-
function validateZeebe(object) {
|
|
128677
|
-
return _validate(object, validateTemplate);
|
|
128662
|
+
function getZeebeSchemaPackage() {
|
|
128663
|
+
return name$1;
|
|
128664
|
+
}
|
|
128665
|
+
|
|
128666
|
+
function getZeebeSchemaVersion() {
|
|
128667
|
+
return version;
|
|
128668
|
+
}
|
|
128669
|
+
|
|
128670
|
+
/**
|
|
128671
|
+
* Validate a single object.
|
|
128672
|
+
*
|
|
128673
|
+
* @param {Object} object
|
|
128674
|
+
* @return {Object} single object validation result
|
|
128675
|
+
*/
|
|
128676
|
+
function validateZeebe(object) {
|
|
128677
|
+
return _validate(object, validateTemplate);
|
|
128678
128678
|
}
|
|
128679
128679
|
|
|
128680
128680
|
var staticResolver;
|
|
@@ -128714,9 +128714,24 @@
|
|
|
128714
128714
|
|
|
128715
128715
|
requireStaticResolver();
|
|
128716
128716
|
|
|
128717
|
-
|
|
128718
|
-
|
|
128717
|
+
/**
|
|
128718
|
+
* Check if the property is cast to FEEL expression:
|
|
128719
|
+
* - Boolean and Number properties with feel set to 'optional' or 'static'
|
|
128720
|
+
* - Boolean and Number input/output parameters have default feel=static
|
|
128721
|
+
*
|
|
128722
|
+
* @returns {boolean}
|
|
128723
|
+
*/
|
|
128724
|
+
const shouldCastToFeel = property => {
|
|
128725
|
+
const feel = getFeelValue(property);
|
|
128726
|
+
return ['optional', 'static'].includes(feel) && ['Boolean', 'Number'].includes(property.type);
|
|
128719
128727
|
};
|
|
128728
|
+
const ALWAYS_CAST_TO_FEEL = ['zeebe:input', 'zeebe:output'];
|
|
128729
|
+
function getFeelValue(property) {
|
|
128730
|
+
if (ALWAYS_CAST_TO_FEEL.includes(property.binding.type)) {
|
|
128731
|
+
return property.feel || 'static';
|
|
128732
|
+
}
|
|
128733
|
+
return property.feel;
|
|
128734
|
+
}
|
|
128720
128735
|
const toFeelExpression = (value, type) => {
|
|
128721
128736
|
if (typeof value === 'string' && value.startsWith('=')) {
|
|
128722
128737
|
return value;
|
|
@@ -128731,36 +128746,36 @@
|
|
|
128731
128746
|
return '=' + value.toString();
|
|
128732
128747
|
};
|
|
128733
128748
|
|
|
128734
|
-
/**
|
|
128735
|
-
* The BPMN 2.0 extension attribute name under
|
|
128736
|
-
* which the element template ID is stored.
|
|
128737
|
-
*
|
|
128738
|
-
* @type {String}
|
|
128749
|
+
/**
|
|
128750
|
+
* The BPMN 2.0 extension attribute name under
|
|
128751
|
+
* which the element template ID is stored.
|
|
128752
|
+
*
|
|
128753
|
+
* @type {String}
|
|
128739
128754
|
*/
|
|
128740
128755
|
const TEMPLATE_ID_ATTR$1 = 'zeebe:modelerTemplate';
|
|
128741
128756
|
|
|
128742
|
-
/**
|
|
128743
|
-
* The BPMN 2.0 extension attribute name under
|
|
128744
|
-
* which the element template version is stored.
|
|
128745
|
-
*
|
|
128746
|
-
* @type {String}
|
|
128757
|
+
/**
|
|
128758
|
+
* The BPMN 2.0 extension attribute name under
|
|
128759
|
+
* which the element template version is stored.
|
|
128760
|
+
*
|
|
128761
|
+
* @type {String}
|
|
128747
128762
|
*/
|
|
128748
128763
|
const TEMPLATE_VERSION_ATTR$1 = 'zeebe:modelerTemplateVersion';
|
|
128749
128764
|
|
|
128750
|
-
/**
|
|
128751
|
-
* The BPMN 2.0 extension attribute name under
|
|
128752
|
-
* which the element template icon is stored.
|
|
128753
|
-
*
|
|
128754
|
-
* @type {String}
|
|
128765
|
+
/**
|
|
128766
|
+
* The BPMN 2.0 extension attribute name under
|
|
128767
|
+
* which the element template icon is stored.
|
|
128768
|
+
*
|
|
128769
|
+
* @type {String}
|
|
128755
128770
|
*/
|
|
128756
128771
|
const TEMPLATE_ICON_ATTR = 'zeebe:modelerTemplateIcon';
|
|
128757
128772
|
|
|
128758
|
-
/**
|
|
128759
|
-
* Get template id for a given diagram element.
|
|
128760
|
-
*
|
|
128761
|
-
* @param {djs.model.Base} element
|
|
128762
|
-
*
|
|
128763
|
-
* @return {String}
|
|
128773
|
+
/**
|
|
128774
|
+
* Get template id for a given diagram element.
|
|
128775
|
+
*
|
|
128776
|
+
* @param {djs.model.Base} element
|
|
128777
|
+
*
|
|
128778
|
+
* @return {String}
|
|
128764
128779
|
*/
|
|
128765
128780
|
function getTemplateId$1(element) {
|
|
128766
128781
|
const businessObject = getBusinessObject$2(element);
|
|
@@ -128769,12 +128784,12 @@
|
|
|
128769
128784
|
}
|
|
128770
128785
|
}
|
|
128771
128786
|
|
|
128772
|
-
/**
|
|
128773
|
-
* Get template version for a given diagram element.
|
|
128774
|
-
*
|
|
128775
|
-
* @param {djs.model.Base} element
|
|
128776
|
-
*
|
|
128777
|
-
* @return {String}
|
|
128787
|
+
/**
|
|
128788
|
+
* Get template version for a given diagram element.
|
|
128789
|
+
*
|
|
128790
|
+
* @param {djs.model.Base} element
|
|
128791
|
+
*
|
|
128792
|
+
* @return {String}
|
|
128778
128793
|
*/
|
|
128779
128794
|
function getTemplateVersion$1(element) {
|
|
128780
128795
|
const businessObject = getBusinessObject$2(element);
|
|
@@ -128783,12 +128798,12 @@
|
|
|
128783
128798
|
}
|
|
128784
128799
|
}
|
|
128785
128800
|
|
|
128786
|
-
/**
|
|
128787
|
-
* Get template icon for a given diagram element.
|
|
128788
|
-
*
|
|
128789
|
-
* @param {djs.model.Base} element
|
|
128790
|
-
*
|
|
128791
|
-
* @return {String}
|
|
128801
|
+
/**
|
|
128802
|
+
* Get template icon for a given diagram element.
|
|
128803
|
+
*
|
|
128804
|
+
* @param {djs.model.Base} element
|
|
128805
|
+
*
|
|
128806
|
+
* @return {String}
|
|
128792
128807
|
*/
|
|
128793
128808
|
function getTemplateIcon(element) {
|
|
128794
128809
|
const businessObject = getBusinessObject$2(element);
|
|
@@ -128797,14 +128812,14 @@
|
|
|
128797
128812
|
}
|
|
128798
128813
|
}
|
|
128799
128814
|
|
|
128800
|
-
/**
|
|
128801
|
-
* Find extension with given type in
|
|
128802
|
-
* BPMN element, diagram element or ExtensionElement.
|
|
128803
|
-
*
|
|
128804
|
-
* @param {ModdleElement|djs.model.Base} element
|
|
128805
|
-
* @param {String} type
|
|
128806
|
-
*
|
|
128807
|
-
* @return {ModdleElement} the extension
|
|
128815
|
+
/**
|
|
128816
|
+
* Find extension with given type in
|
|
128817
|
+
* BPMN element, diagram element or ExtensionElement.
|
|
128818
|
+
*
|
|
128819
|
+
* @param {ModdleElement|djs.model.Base} element
|
|
128820
|
+
* @param {String} type
|
|
128821
|
+
*
|
|
128822
|
+
* @return {ModdleElement} the extension
|
|
128808
128823
|
*/
|
|
128809
128824
|
function findExtension$1(element, type) {
|
|
128810
128825
|
const businessObject = getBusinessObject$2(element);
|
|
@@ -128858,7 +128873,7 @@
|
|
|
128858
128873
|
return businessObject.get('messageRef');
|
|
128859
128874
|
}
|
|
128860
128875
|
function getDefaultValue(property) {
|
|
128861
|
-
if (
|
|
128876
|
+
if (shouldCastToFeel(property)) {
|
|
128862
128877
|
return toFeelExpression(property.value, property.type);
|
|
128863
128878
|
}
|
|
128864
128879
|
if (property.value !== undefined) {
|
|
@@ -128874,28 +128889,28 @@
|
|
|
128874
128889
|
}
|
|
128875
128890
|
}
|
|
128876
128891
|
|
|
128877
|
-
/**
|
|
128878
|
-
* The BPMN 2.0 extension attribute name under
|
|
128879
|
-
* which the element template ID is stored.
|
|
128880
|
-
*
|
|
128881
|
-
* @type {String}
|
|
128892
|
+
/**
|
|
128893
|
+
* The BPMN 2.0 extension attribute name under
|
|
128894
|
+
* which the element template ID is stored.
|
|
128895
|
+
*
|
|
128896
|
+
* @type {String}
|
|
128882
128897
|
*/
|
|
128883
128898
|
const TEMPLATE_ID_ATTR = 'camunda:modelerTemplate';
|
|
128884
128899
|
|
|
128885
|
-
/**
|
|
128886
|
-
* The BPMN 2.0 extension attribute name under
|
|
128887
|
-
* which the element template version is stored.
|
|
128888
|
-
*
|
|
128889
|
-
* @type {String}
|
|
128900
|
+
/**
|
|
128901
|
+
* The BPMN 2.0 extension attribute name under
|
|
128902
|
+
* which the element template version is stored.
|
|
128903
|
+
*
|
|
128904
|
+
* @type {String}
|
|
128890
128905
|
*/
|
|
128891
128906
|
const TEMPLATE_VERSION_ATTR = 'camunda:modelerTemplateVersion';
|
|
128892
128907
|
|
|
128893
|
-
/**
|
|
128894
|
-
* Get template id for a given diagram element.
|
|
128895
|
-
*
|
|
128896
|
-
* @param {djs.model.Base} element
|
|
128897
|
-
*
|
|
128898
|
-
* @return {String}
|
|
128908
|
+
/**
|
|
128909
|
+
* Get template id for a given diagram element.
|
|
128910
|
+
*
|
|
128911
|
+
* @param {djs.model.Base} element
|
|
128912
|
+
*
|
|
128913
|
+
* @return {String}
|
|
128899
128914
|
*/
|
|
128900
128915
|
function getTemplateId(element) {
|
|
128901
128916
|
const businessObject = getBusinessObject$2(element);
|
|
@@ -128904,12 +128919,12 @@
|
|
|
128904
128919
|
}
|
|
128905
128920
|
}
|
|
128906
128921
|
|
|
128907
|
-
/**
|
|
128908
|
-
* Get template version for a given diagram element.
|
|
128909
|
-
*
|
|
128910
|
-
* @param {djs.model.Base} element
|
|
128911
|
-
*
|
|
128912
|
-
* @return {String}
|
|
128922
|
+
/**
|
|
128923
|
+
* Get template version for a given diagram element.
|
|
128924
|
+
*
|
|
128925
|
+
* @param {djs.model.Base} element
|
|
128926
|
+
*
|
|
128927
|
+
* @return {String}
|
|
128913
128928
|
*/
|
|
128914
128929
|
function getTemplateVersion(element) {
|
|
128915
128930
|
const businessObject = getBusinessObject$2(element);
|
|
@@ -128919,10 +128934,10 @@
|
|
|
128919
128934
|
}
|
|
128920
128935
|
|
|
128921
128936
|
// eslint-disable-next-line no-undef
|
|
128922
|
-
const packageVersion = "2.5.
|
|
128937
|
+
const packageVersion = "2.5.2";
|
|
128923
128938
|
|
|
128924
|
-
/**
|
|
128925
|
-
* Registry for element templates.
|
|
128939
|
+
/**
|
|
128940
|
+
* Registry for element templates.
|
|
128926
128941
|
*/
|
|
128927
128942
|
let ElementTemplates$1 = class ElementTemplates {
|
|
128928
128943
|
constructor(commandStack, eventBus, modeling, injector, config) {
|
|
@@ -128939,13 +128954,13 @@
|
|
|
128939
128954
|
});
|
|
128940
128955
|
}
|
|
128941
128956
|
|
|
128942
|
-
/**
|
|
128943
|
-
* Get template with given ID and optional version or for element.
|
|
128944
|
-
*
|
|
128945
|
-
* @param {String|djs.model.Base} id
|
|
128946
|
-
* @param {number} [version]
|
|
128947
|
-
*
|
|
128948
|
-
* @return {ElementTemplate}
|
|
128957
|
+
/**
|
|
128958
|
+
* Get template with given ID and optional version or for element.
|
|
128959
|
+
*
|
|
128960
|
+
* @param {String|djs.model.Base} id
|
|
128961
|
+
* @param {number} [version]
|
|
128962
|
+
*
|
|
128963
|
+
* @return {ElementTemplate}
|
|
128949
128964
|
*/
|
|
128950
128965
|
get(id, version) {
|
|
128951
128966
|
const templates = this._templatesById;
|
|
@@ -128967,12 +128982,12 @@
|
|
|
128967
128982
|
}
|
|
128968
128983
|
}
|
|
128969
128984
|
|
|
128970
|
-
/**
|
|
128971
|
-
* Get default template for given element.
|
|
128972
|
-
*
|
|
128973
|
-
* @param {djs.model.Base} element
|
|
128974
|
-
*
|
|
128975
|
-
* @return {ElementTemplate}
|
|
128985
|
+
/**
|
|
128986
|
+
* Get default template for given element.
|
|
128987
|
+
*
|
|
128988
|
+
* @param {djs.model.Base} element
|
|
128989
|
+
*
|
|
128990
|
+
* @return {ElementTemplate}
|
|
128976
128991
|
*/
|
|
128977
128992
|
getDefault(element) {
|
|
128978
128993
|
return find$2(this.getAll(element), function (template) {
|
|
@@ -128980,11 +128995,11 @@
|
|
|
128980
128995
|
}) || null;
|
|
128981
128996
|
}
|
|
128982
128997
|
|
|
128983
|
-
/**
|
|
128984
|
-
* Get all templates (with given ID or applicable to element).
|
|
128985
|
-
*
|
|
128986
|
-
* @param {string|djs.model.Base} [id]
|
|
128987
|
-
* @return {Array<ElementTemplate>}
|
|
128998
|
+
/**
|
|
128999
|
+
* Get all templates (with given ID or applicable to element).
|
|
129000
|
+
*
|
|
129001
|
+
* @param {string|djs.model.Base} [id]
|
|
129002
|
+
* @return {Array<ElementTemplate>}
|
|
128988
129003
|
*/
|
|
128989
129004
|
getAll(id) {
|
|
128990
129005
|
return this._getTemplateVerions(id, {
|
|
@@ -128992,14 +129007,14 @@
|
|
|
128992
129007
|
});
|
|
128993
129008
|
}
|
|
128994
129009
|
|
|
128995
|
-
/**
|
|
128996
|
-
* Get all templates (with given ID or applicable to element) with the latest
|
|
128997
|
-
* version.
|
|
128998
|
-
*
|
|
128999
|
-
* @param {String|djs.model.Base} [id]
|
|
129000
|
-
* @param {{ deprecated?: boolean }} [options]
|
|
129001
|
-
*
|
|
129002
|
-
* @return {Array<ElementTemplate>}
|
|
129010
|
+
/**
|
|
129011
|
+
* Get all templates (with given ID or applicable to element) with the latest
|
|
129012
|
+
* version.
|
|
129013
|
+
*
|
|
129014
|
+
* @param {String|djs.model.Base} [id]
|
|
129015
|
+
* @param {{ deprecated?: boolean }} [options]
|
|
129016
|
+
*
|
|
129017
|
+
* @return {Array<ElementTemplate>}
|
|
129003
129018
|
*/
|
|
129004
129019
|
getLatest(id, options = {}) {
|
|
129005
129020
|
return this._getTemplateVerions(id, {
|
|
@@ -129008,10 +129023,10 @@
|
|
|
129008
129023
|
});
|
|
129009
129024
|
}
|
|
129010
129025
|
|
|
129011
|
-
/**
|
|
129012
|
-
* Set templates.
|
|
129013
|
-
*
|
|
129014
|
-
* @param {Array<ElementTemplate>} templates
|
|
129026
|
+
/**
|
|
129027
|
+
* Set templates.
|
|
129028
|
+
*
|
|
129029
|
+
* @param {Array<ElementTemplate>} templates
|
|
129015
129030
|
*/
|
|
129016
129031
|
set(templates) {
|
|
129017
129032
|
this._templatesById = {};
|
|
@@ -129040,12 +129055,12 @@
|
|
|
129040
129055
|
this._fire('engines.changed');
|
|
129041
129056
|
}
|
|
129042
129057
|
|
|
129043
|
-
/**
|
|
129044
|
-
* Ensures that only valid engines are kept around
|
|
129045
|
-
*
|
|
129046
|
-
* @param { Record<string, string> } engines
|
|
129047
|
-
*
|
|
129048
|
-
* @return { Record<string, string> } filtered, valid engines
|
|
129058
|
+
/**
|
|
129059
|
+
* Ensures that only valid engines are kept around
|
|
129060
|
+
*
|
|
129061
|
+
* @param { Record<string, string> } engines
|
|
129062
|
+
*
|
|
129063
|
+
* @return { Record<string, string> } filtered, valid engines
|
|
129049
129064
|
*/
|
|
129050
129065
|
_coerceEngines(engines) {
|
|
129051
129066
|
// we provide <elementTemplates> engine with the current
|
|
@@ -129068,23 +129083,23 @@
|
|
|
129068
129083
|
}, {});
|
|
129069
129084
|
}
|
|
129070
129085
|
|
|
129071
|
-
/**
|
|
129072
|
-
* Check if template is compatible with currently set engine version.
|
|
129073
|
-
*
|
|
129074
|
-
* @param {ElementTemplate} template
|
|
129075
|
-
*
|
|
129076
|
-
* @return {boolean} - true if compatible or no engine is set for elementTemplates or template.
|
|
129086
|
+
/**
|
|
129087
|
+
* Check if template is compatible with currently set engine version.
|
|
129088
|
+
*
|
|
129089
|
+
* @param {ElementTemplate} template
|
|
129090
|
+
*
|
|
129091
|
+
* @return {boolean} - true if compatible or no engine is set for elementTemplates or template.
|
|
129077
129092
|
*/
|
|
129078
129093
|
isCompatible(template) {
|
|
129079
129094
|
return !Object.keys(this.getIncompatibleEngines(template)).length;
|
|
129080
129095
|
}
|
|
129081
129096
|
|
|
129082
|
-
/**
|
|
129083
|
-
* Get engines that are incompatible with the template.
|
|
129084
|
-
*
|
|
129085
|
-
* @param {any} template
|
|
129086
|
-
*
|
|
129087
|
-
* @return { Record<string, { required: string, found: string } } - incompatible engines along with their template and local versions
|
|
129097
|
+
/**
|
|
129098
|
+
* Get engines that are incompatible with the template.
|
|
129099
|
+
*
|
|
129100
|
+
* @param {any} template
|
|
129101
|
+
*
|
|
129102
|
+
* @return { Record<string, { required: string, found: string } } - incompatible engines along with their template and local versions
|
|
129088
129103
|
*/
|
|
129089
129104
|
getIncompatibleEngines(template) {
|
|
129090
129105
|
const localEngines = this._engines;
|
|
@@ -129103,11 +129118,11 @@
|
|
|
129103
129118
|
}, {});
|
|
129104
129119
|
}
|
|
129105
129120
|
|
|
129106
|
-
/**
|
|
129107
|
-
* @param {object|string|null} id
|
|
129108
|
-
* @param { { latest?: boolean, deprecated?: boolean } [options]
|
|
129109
|
-
*
|
|
129110
|
-
* @return {Array<ElementTemplate>}
|
|
129121
|
+
/**
|
|
129122
|
+
* @param {object|string|null} id
|
|
129123
|
+
* @param { { latest?: boolean, deprecated?: boolean } [options]
|
|
129124
|
+
*
|
|
129125
|
+
* @return {Array<ElementTemplate>}
|
|
129111
129126
|
*/
|
|
129112
129127
|
_getTemplateVerions(id, options = {}) {
|
|
129113
129128
|
const {
|
|
@@ -129143,13 +129158,13 @@
|
|
|
129143
129158
|
return getTemplateVersion(element);
|
|
129144
129159
|
}
|
|
129145
129160
|
|
|
129146
|
-
/**
|
|
129147
|
-
* Apply element template to a given element.
|
|
129148
|
-
*
|
|
129149
|
-
* @param {djs.model.Base} element
|
|
129150
|
-
* @param {ElementTemplate} newTemplate
|
|
129151
|
-
*
|
|
129152
|
-
* @return {djs.model.Base} the updated element
|
|
129161
|
+
/**
|
|
129162
|
+
* Apply element template to a given element.
|
|
129163
|
+
*
|
|
129164
|
+
* @param {djs.model.Base} element
|
|
129165
|
+
* @param {ElementTemplate} newTemplate
|
|
129166
|
+
*
|
|
129167
|
+
* @return {djs.model.Base} the updated element
|
|
129153
129168
|
*/
|
|
129154
129169
|
applyTemplate(element, newTemplate) {
|
|
129155
129170
|
let action = 'apply';
|
|
@@ -129180,12 +129195,12 @@
|
|
|
129180
129195
|
return this._eventBus.fire(`elementTemplates.${action}`, payload);
|
|
129181
129196
|
}
|
|
129182
129197
|
|
|
129183
|
-
/**
|
|
129184
|
-
* Remove template from a given element.
|
|
129185
|
-
*
|
|
129186
|
-
* @param {djs.model.Base} element
|
|
129187
|
-
*
|
|
129188
|
-
* @return {djs.model.Base} the updated element
|
|
129198
|
+
/**
|
|
129199
|
+
* Remove template from a given element.
|
|
129200
|
+
*
|
|
129201
|
+
* @param {djs.model.Base} element
|
|
129202
|
+
*
|
|
129203
|
+
* @return {djs.model.Base} the updated element
|
|
129189
129204
|
*/
|
|
129190
129205
|
removeTemplate(element) {
|
|
129191
129206
|
this._fire('remove', {
|
|
@@ -129198,12 +129213,12 @@
|
|
|
129198
129213
|
return context.newElement;
|
|
129199
129214
|
}
|
|
129200
129215
|
|
|
129201
|
-
/**
|
|
129202
|
-
* Unlink template from a given element.
|
|
129203
|
-
*
|
|
129204
|
-
* @param {djs.model.Base} element
|
|
129205
|
-
*
|
|
129206
|
-
* @return {djs.model.Base} the updated element
|
|
129216
|
+
/**
|
|
129217
|
+
* Unlink template from a given element.
|
|
129218
|
+
*
|
|
129219
|
+
* @param {djs.model.Base} element
|
|
129220
|
+
*
|
|
129221
|
+
* @return {djs.model.Base} the updated element
|
|
129207
129222
|
*/
|
|
129208
129223
|
unlinkTemplate(element) {
|
|
129209
129224
|
return this.applyTemplate(element, null);
|
|
@@ -129211,8 +129226,8 @@
|
|
|
129211
129226
|
};
|
|
129212
129227
|
ElementTemplates$1.$inject = ['commandStack', 'eventBus', 'modeling', 'injector', 'config.elementTemplates'];
|
|
129213
129228
|
|
|
129214
|
-
/**
|
|
129215
|
-
* Registry for element templates.
|
|
129229
|
+
/**
|
|
129230
|
+
* Registry for element templates.
|
|
129216
129231
|
*/
|
|
129217
129232
|
class ElementTemplates extends ElementTemplates$1 {
|
|
129218
129233
|
constructor(templateElementFactory, commandStack, eventBus, modeling, injector, config) {
|
|
@@ -129226,11 +129241,11 @@
|
|
|
129226
129241
|
return getTemplateVersion$1(element);
|
|
129227
129242
|
}
|
|
129228
129243
|
|
|
129229
|
-
/**
|
|
129230
|
-
* Create an element based on an element template.
|
|
129231
|
-
*
|
|
129232
|
-
* @param {ElementTemplate} template
|
|
129233
|
-
* @returns {djs.model.Base}
|
|
129244
|
+
/**
|
|
129245
|
+
* Create an element based on an element template.
|
|
129246
|
+
*
|
|
129247
|
+
* @param {ElementTemplate} template
|
|
129248
|
+
* @returns {djs.model.Base}
|
|
129234
129249
|
*/
|
|
129235
129250
|
createElement(template) {
|
|
129236
129251
|
if (!template) {
|
|
@@ -129240,13 +129255,13 @@
|
|
|
129240
129255
|
return element;
|
|
129241
129256
|
}
|
|
129242
129257
|
|
|
129243
|
-
/**
|
|
129244
|
-
* Apply element template to a given element.
|
|
129245
|
-
*
|
|
129246
|
-
* @param {djs.model.Base} element
|
|
129247
|
-
* @param {ElementTemplate} newTemplate
|
|
129248
|
-
*
|
|
129249
|
-
* @return {djs.model.Base} the updated element
|
|
129258
|
+
/**
|
|
129259
|
+
* Apply element template to a given element.
|
|
129260
|
+
*
|
|
129261
|
+
* @param {djs.model.Base} element
|
|
129262
|
+
* @param {ElementTemplate} newTemplate
|
|
129263
|
+
*
|
|
129264
|
+
* @return {djs.model.Base} the updated element
|
|
129250
129265
|
*/
|
|
129251
129266
|
applyTemplate(element, newTemplate) {
|
|
129252
129267
|
let action = 'apply';
|
|
@@ -129279,8 +129294,8 @@
|
|
|
129279
129294
|
const SUPPORTED_SCHEMA_VERSION$1 = getSchemaVersion$1();
|
|
129280
129295
|
const MORPHABLE_TYPES = ['bpmn:Activity', 'bpmn:Event', 'bpmn:Gateway'];
|
|
129281
129296
|
|
|
129282
|
-
/**
|
|
129283
|
-
* A element template validator.
|
|
129297
|
+
/**
|
|
129298
|
+
* A element template validator.
|
|
129284
129299
|
*/
|
|
129285
129300
|
let Validator$1 = class Validator {
|
|
129286
129301
|
constructor(moddle) {
|
|
@@ -129290,12 +129305,12 @@
|
|
|
129290
129305
|
this._moddle = moddle;
|
|
129291
129306
|
}
|
|
129292
129307
|
|
|
129293
|
-
/**
|
|
129294
|
-
* Adds the templates.
|
|
129295
|
-
*
|
|
129296
|
-
* @param {Array<TemplateDescriptor>} templates
|
|
129297
|
-
*
|
|
129298
|
-
* @return {Validator}
|
|
129308
|
+
/**
|
|
129309
|
+
* Adds the templates.
|
|
129310
|
+
*
|
|
129311
|
+
* @param {Array<TemplateDescriptor>} templates
|
|
129312
|
+
*
|
|
129313
|
+
* @return {Validator}
|
|
129299
129314
|
*/
|
|
129300
129315
|
addAll(templates) {
|
|
129301
129316
|
if (!isArray$5(templates)) {
|
|
@@ -129306,12 +129321,12 @@
|
|
|
129306
129321
|
return this;
|
|
129307
129322
|
}
|
|
129308
129323
|
|
|
129309
|
-
/**
|
|
129310
|
-
* Add the given element template, if it is valid.
|
|
129311
|
-
*
|
|
129312
|
-
* @param {TemplateDescriptor} template
|
|
129313
|
-
*
|
|
129314
|
-
* @return {Validator}
|
|
129324
|
+
/**
|
|
129325
|
+
* Add the given element template, if it is valid.
|
|
129326
|
+
*
|
|
129327
|
+
* @param {TemplateDescriptor} template
|
|
129328
|
+
*
|
|
129329
|
+
* @return {Validator}
|
|
129315
129330
|
*/
|
|
129316
129331
|
add(template) {
|
|
129317
129332
|
const err = this._validateTemplate(template);
|
|
@@ -129328,12 +129343,12 @@
|
|
|
129328
129343
|
return this;
|
|
129329
129344
|
}
|
|
129330
129345
|
|
|
129331
|
-
/**
|
|
129332
|
-
* Validate given template and return error (if any).
|
|
129333
|
-
*
|
|
129334
|
-
* @param {TemplateDescriptor} template
|
|
129335
|
-
*
|
|
129336
|
-
* @return {Error} validation error, if any
|
|
129346
|
+
/**
|
|
129347
|
+
* Validate given template and return error (if any).
|
|
129348
|
+
*
|
|
129349
|
+
* @param {TemplateDescriptor} template
|
|
129350
|
+
*
|
|
129351
|
+
* @return {Error} validation error, if any
|
|
129337
129352
|
*/
|
|
129338
129353
|
_validateTemplate(template) {
|
|
129339
129354
|
const id = template.id,
|
|
@@ -129390,12 +129405,12 @@
|
|
|
129390
129405
|
return err;
|
|
129391
129406
|
}
|
|
129392
129407
|
|
|
129393
|
-
/**
|
|
129394
|
-
* Validate elementType for given template and return error (if any).
|
|
129395
|
-
*
|
|
129396
|
-
* @param {TemplateDescriptor} template
|
|
129397
|
-
*
|
|
129398
|
-
* @return {Error} validation error, if any
|
|
129408
|
+
/**
|
|
129409
|
+
* Validate elementType for given template and return error (if any).
|
|
129410
|
+
*
|
|
129411
|
+
* @param {TemplateDescriptor} template
|
|
129412
|
+
*
|
|
129413
|
+
* @return {Error} validation error, if any
|
|
129399
129414
|
*/
|
|
129400
129415
|
_validateElementType(template) {
|
|
129401
129416
|
if (template.elementType && template.appliesTo) {
|
|
@@ -129418,24 +129433,24 @@
|
|
|
129418
129433
|
}
|
|
129419
129434
|
}
|
|
129420
129435
|
|
|
129421
|
-
/**
|
|
129422
|
-
* Check if given type is a subtype of given base type.
|
|
129423
|
-
*
|
|
129424
|
-
* @param {String} type
|
|
129425
|
-
* @param {String} baseType
|
|
129426
|
-
* @returns {Boolean}
|
|
129436
|
+
/**
|
|
129437
|
+
* Check if given type is a subtype of given base type.
|
|
129438
|
+
*
|
|
129439
|
+
* @param {String} type
|
|
129440
|
+
* @param {String} baseType
|
|
129441
|
+
* @returns {Boolean}
|
|
129427
129442
|
*/
|
|
129428
129443
|
_isType(type, baseType) {
|
|
129429
129444
|
const moddleType = this._moddle.getType(type);
|
|
129430
129445
|
return moddleType && baseType in this._moddle.getElementDescriptor(moddleType).allTypesByName;
|
|
129431
129446
|
}
|
|
129432
129447
|
|
|
129433
|
-
/**
|
|
129434
|
-
* Checks if a given type can be morphed into another type.
|
|
129435
|
-
*
|
|
129436
|
-
* @param {String} sourceType
|
|
129437
|
-
* @param {String} targetType
|
|
129438
|
-
* @returns {Boolean}
|
|
129448
|
+
/**
|
|
129449
|
+
* Checks if a given type can be morphed into another type.
|
|
129450
|
+
*
|
|
129451
|
+
* @param {String} sourceType
|
|
129452
|
+
* @param {String} targetType
|
|
129453
|
+
* @returns {Boolean}
|
|
129439
129454
|
*/
|
|
129440
129455
|
_canMorph(sourceType, targetType) {
|
|
129441
129456
|
if (sourceType === targetType) {
|
|
@@ -129448,13 +129463,13 @@
|
|
|
129448
129463
|
return this._isType(targetType, baseType);
|
|
129449
129464
|
}
|
|
129450
129465
|
|
|
129451
|
-
/**
|
|
129452
|
-
* Log an error for the given template
|
|
129453
|
-
*
|
|
129454
|
-
* @param {(String|Error)} err
|
|
129455
|
-
* @param {TemplateDescriptor} template
|
|
129456
|
-
*
|
|
129457
|
-
* @return {Error} logged validation errors
|
|
129466
|
+
/**
|
|
129467
|
+
* Log an error for the given template
|
|
129468
|
+
*
|
|
129469
|
+
* @param {(String|Error)} err
|
|
129470
|
+
* @param {TemplateDescriptor} template
|
|
129471
|
+
*
|
|
129472
|
+
* @return {Error} logged validation errors
|
|
129458
129473
|
*/
|
|
129459
129474
|
_logError(err, template) {
|
|
129460
129475
|
if (isString$2(err)) {
|
|
@@ -129480,12 +129495,12 @@
|
|
|
129480
129495
|
|
|
129481
129496
|
// helpers //////////
|
|
129482
129497
|
|
|
129483
|
-
/**
|
|
129484
|
-
* Extract schema version from schema URI
|
|
129485
|
-
*
|
|
129486
|
-
* @param {String} schemaUri - for example https://unpkg.com/@camunda/element-templates-json-schema@99.99.99/resources/schema.json
|
|
129487
|
-
*
|
|
129488
|
-
* @return {String} for example '99.99.99'
|
|
129498
|
+
/**
|
|
129499
|
+
* Extract schema version from schema URI
|
|
129500
|
+
*
|
|
129501
|
+
* @param {String} schemaUri - for example https://unpkg.com/@camunda/element-templates-json-schema@99.99.99/resources/schema.json
|
|
129502
|
+
*
|
|
129503
|
+
* @return {String} for example '99.99.99'
|
|
129489
129504
|
*/
|
|
129490
129505
|
function getSchemaVersion(schemaUri) {
|
|
129491
129506
|
const re = /\d+\.\d+\.\d+/g;
|
|
@@ -129493,19 +129508,19 @@
|
|
|
129493
129508
|
return match === null ? undefined : match[0];
|
|
129494
129509
|
}
|
|
129495
129510
|
|
|
129496
|
-
/**
|
|
129497
|
-
* Extract only relevant errors of the validation result.
|
|
129498
|
-
*
|
|
129499
|
-
* The JSON Schema we use under the hood produces more errors than we need for a
|
|
129500
|
-
* detected schema violation (for example, unmatched sub-schemas, if-then-rules,
|
|
129501
|
-
* `oneOf`-definitions ...).
|
|
129502
|
-
*
|
|
129503
|
-
* We call these errors "relevant" that have a custom error message defined by us OR
|
|
129504
|
-
* are basic data type errors.
|
|
129505
|
-
*
|
|
129506
|
-
* @param {Array} schemaErrors
|
|
129507
|
-
*
|
|
129508
|
-
* @return {Array}
|
|
129511
|
+
/**
|
|
129512
|
+
* Extract only relevant errors of the validation result.
|
|
129513
|
+
*
|
|
129514
|
+
* The JSON Schema we use under the hood produces more errors than we need for a
|
|
129515
|
+
* detected schema violation (for example, unmatched sub-schemas, if-then-rules,
|
|
129516
|
+
* `oneOf`-definitions ...).
|
|
129517
|
+
*
|
|
129518
|
+
* We call these errors "relevant" that have a custom error message defined by us OR
|
|
129519
|
+
* are basic data type errors.
|
|
129520
|
+
*
|
|
129521
|
+
* @param {Array} schemaErrors
|
|
129522
|
+
*
|
|
129523
|
+
* @return {Array}
|
|
129509
129524
|
*/
|
|
129510
129525
|
function filteredSchemaErrors(schemaErrors) {
|
|
129511
129526
|
return filter(schemaErrors, err => {
|
|
@@ -129531,20 +129546,20 @@
|
|
|
129531
129546
|
const SUPPORTED_SCHEMA_VERSION = getZeebeSchemaVersion();
|
|
129532
129547
|
const SUPPORTED_SCHEMA_PACKAGE = getZeebeSchemaPackage();
|
|
129533
129548
|
|
|
129534
|
-
/**
|
|
129535
|
-
* A Camunda Cloud element template validator.
|
|
129549
|
+
/**
|
|
129550
|
+
* A Camunda Cloud element template validator.
|
|
129536
129551
|
*/
|
|
129537
129552
|
class Validator extends Validator$1 {
|
|
129538
129553
|
constructor(moddle) {
|
|
129539
129554
|
super(moddle);
|
|
129540
129555
|
}
|
|
129541
129556
|
|
|
129542
|
-
/**
|
|
129543
|
-
* Validate given template and return error (if any).
|
|
129544
|
-
*
|
|
129545
|
-
* @param {TemplateDescriptor} template
|
|
129546
|
-
*
|
|
129547
|
-
* @return {Error} validation error, if any
|
|
129557
|
+
/**
|
|
129558
|
+
* Validate given template and return error (if any).
|
|
129559
|
+
*
|
|
129560
|
+
* @param {TemplateDescriptor} template
|
|
129561
|
+
*
|
|
129562
|
+
* @return {Error} validation error, if any
|
|
129548
129563
|
*/
|
|
129549
129564
|
_validateTemplate(template) {
|
|
129550
129565
|
const id = template.id,
|
|
@@ -129614,19 +129629,19 @@
|
|
|
129614
129629
|
}
|
|
129615
129630
|
}
|
|
129616
129631
|
|
|
129617
|
-
/**
|
|
129618
|
-
* The guy responsible for template loading.
|
|
129619
|
-
*
|
|
129620
|
-
* Provide the actual templates via the `config.elementTemplates`.
|
|
129621
|
-
*
|
|
129622
|
-
* That configuration can either be an array of template
|
|
129623
|
-
* descriptors or a node style callback to retrieve
|
|
129624
|
-
* the templates asynchronously.
|
|
129625
|
-
*
|
|
129626
|
-
* @param {Array<TemplateDescriptor>|Function} config
|
|
129627
|
-
* @param {EventBus} eventBus
|
|
129628
|
-
* @param {ElementTemplates} elementTemplates
|
|
129629
|
-
* @param {Moddle} moddle
|
|
129632
|
+
/**
|
|
129633
|
+
* The guy responsible for template loading.
|
|
129634
|
+
*
|
|
129635
|
+
* Provide the actual templates via the `config.elementTemplates`.
|
|
129636
|
+
*
|
|
129637
|
+
* That configuration can either be an array of template
|
|
129638
|
+
* descriptors or a node style callback to retrieve
|
|
129639
|
+
* the templates asynchronously.
|
|
129640
|
+
*
|
|
129641
|
+
* @param {Array<TemplateDescriptor>|Function} config
|
|
129642
|
+
* @param {EventBus} eventBus
|
|
129643
|
+
* @param {ElementTemplates} elementTemplates
|
|
129644
|
+
* @param {Moddle} moddle
|
|
129630
129645
|
*/
|
|
129631
129646
|
let ElementTemplatesLoader$1 = class ElementTemplatesLoader {
|
|
129632
129647
|
constructor(config, eventBus, elementTemplates, moddle) {
|
|
@@ -129686,11 +129701,11 @@
|
|
|
129686
129701
|
};
|
|
129687
129702
|
ElementTemplatesLoader$1.$inject = ['config.elementTemplates', 'eventBus', 'elementTemplates', 'moddle'];
|
|
129688
129703
|
|
|
129689
|
-
/**
|
|
129690
|
-
* @param {Object|Array<TemplateDescriptor>|Function} config
|
|
129691
|
-
* @param {EventBus} eventBus
|
|
129692
|
-
* @param {ElementTemplates} elementTemplates
|
|
129693
|
-
* @param {Moddle} moddle
|
|
129704
|
+
/**
|
|
129705
|
+
* @param {Object|Array<TemplateDescriptor>|Function} config
|
|
129706
|
+
* @param {EventBus} eventBus
|
|
129707
|
+
* @param {ElementTemplates} elementTemplates
|
|
129708
|
+
* @param {Moddle} moddle
|
|
129694
129709
|
*/
|
|
129695
129710
|
class ElementTemplatesLoader extends ElementTemplatesLoader$1 {
|
|
129696
129711
|
constructor(config, eventBus, elementTemplates, moddle) {
|
|
@@ -129711,15 +129726,15 @@
|
|
|
129711
129726
|
}
|
|
129712
129727
|
ElementTemplatesLoader.$inject = ['config.elementTemplates', 'eventBus', 'elementTemplates', 'moddle'];
|
|
129713
129728
|
|
|
129714
|
-
/**
|
|
129715
|
-
* Create a new element and set its parent.
|
|
129716
|
-
*
|
|
129717
|
-
* @param {String} elementType of the new element
|
|
129718
|
-
* @param {Object} properties of the new element in key-value pairs
|
|
129719
|
-
* @param {moddle.object} parent of the new element
|
|
129720
|
-
* @param {BpmnFactory} factory which creates the new element
|
|
129721
|
-
*
|
|
129722
|
-
* @returns {djs.model.Base} element which is created
|
|
129729
|
+
/**
|
|
129730
|
+
* Create a new element and set its parent.
|
|
129731
|
+
*
|
|
129732
|
+
* @param {String} elementType of the new element
|
|
129733
|
+
* @param {Object} properties of the new element in key-value pairs
|
|
129734
|
+
* @param {moddle.object} parent of the new element
|
|
129735
|
+
* @param {BpmnFactory} factory which creates the new element
|
|
129736
|
+
*
|
|
129737
|
+
* @returns {djs.model.Base} element which is created
|
|
129723
129738
|
*/
|
|
129724
129739
|
function createElement$1(elementType, properties, parent, factory) {
|
|
129725
129740
|
const element = factory.create(elementType, properties);
|
|
@@ -129729,8 +129744,8 @@
|
|
|
129729
129744
|
return element;
|
|
129730
129745
|
}
|
|
129731
129746
|
|
|
129732
|
-
/**
|
|
129733
|
-
* generate a semantic id with given prefix
|
|
129747
|
+
/**
|
|
129748
|
+
* generate a semantic id with given prefix
|
|
129734
129749
|
*/
|
|
129735
129750
|
function nextId(prefix) {
|
|
129736
129751
|
const ids = new Ids$1([32, 32, 1]);
|
|
@@ -129756,15 +129771,15 @@
|
|
|
129756
129771
|
return elements.find(element => element.id === id);
|
|
129757
129772
|
}
|
|
129758
129773
|
|
|
129759
|
-
/**
|
|
129760
|
-
* Create an input parameter representing the given
|
|
129761
|
-
* binding and value.
|
|
129762
|
-
*
|
|
129763
|
-
* @param {PropertyBinding} binding
|
|
129764
|
-
* @param {String} value
|
|
129765
|
-
* @param {BpmnFactory} bpmnFactory
|
|
129766
|
-
*
|
|
129767
|
-
* @return {ModdleElement}
|
|
129774
|
+
/**
|
|
129775
|
+
* Create an input parameter representing the given
|
|
129776
|
+
* binding and value.
|
|
129777
|
+
*
|
|
129778
|
+
* @param {PropertyBinding} binding
|
|
129779
|
+
* @param {String} value
|
|
129780
|
+
* @param {BpmnFactory} bpmnFactory
|
|
129781
|
+
*
|
|
129782
|
+
* @return {ModdleElement}
|
|
129768
129783
|
*/
|
|
129769
129784
|
function createInputParameter$1(binding, value, bpmnFactory) {
|
|
129770
129785
|
const {
|
|
@@ -129776,15 +129791,15 @@
|
|
|
129776
129791
|
});
|
|
129777
129792
|
}
|
|
129778
129793
|
|
|
129779
|
-
/**
|
|
129780
|
-
* Create an output parameter representing the given
|
|
129781
|
-
* binding and value.
|
|
129782
|
-
*
|
|
129783
|
-
* @param {PropertyBinding} binding
|
|
129784
|
-
* @param {String} value
|
|
129785
|
-
* @param {BpmnFactory} bpmnFactory
|
|
129786
|
-
*
|
|
129787
|
-
* @return {ModdleElement}
|
|
129794
|
+
/**
|
|
129795
|
+
* Create an output parameter representing the given
|
|
129796
|
+
* binding and value.
|
|
129797
|
+
*
|
|
129798
|
+
* @param {PropertyBinding} binding
|
|
129799
|
+
* @param {String} value
|
|
129800
|
+
* @param {BpmnFactory} bpmnFactory
|
|
129801
|
+
*
|
|
129802
|
+
* @return {ModdleElement}
|
|
129788
129803
|
*/
|
|
129789
129804
|
function createOutputParameter$1(binding, value, bpmnFactory) {
|
|
129790
129805
|
const {
|
|
@@ -129796,15 +129811,15 @@
|
|
|
129796
129811
|
});
|
|
129797
129812
|
}
|
|
129798
129813
|
|
|
129799
|
-
/**
|
|
129800
|
-
* Create a task header representing the given
|
|
129801
|
-
* binding and value.
|
|
129802
|
-
*
|
|
129803
|
-
* @param {PropertyBinding} binding
|
|
129804
|
-
* @param {String} value
|
|
129805
|
-
* @param {BpmnFactory} bpmnFactory
|
|
129806
|
-
*
|
|
129807
|
-
* @return {ModdleElement}
|
|
129814
|
+
/**
|
|
129815
|
+
* Create a task header representing the given
|
|
129816
|
+
* binding and value.
|
|
129817
|
+
*
|
|
129818
|
+
* @param {PropertyBinding} binding
|
|
129819
|
+
* @param {String} value
|
|
129820
|
+
* @param {BpmnFactory} bpmnFactory
|
|
129821
|
+
*
|
|
129822
|
+
* @return {ModdleElement}
|
|
129808
129823
|
*/
|
|
129809
129824
|
function createTaskHeader(binding, value, bpmnFactory) {
|
|
129810
129825
|
const {
|
|
@@ -129816,26 +129831,26 @@
|
|
|
129816
129831
|
});
|
|
129817
129832
|
}
|
|
129818
129833
|
|
|
129819
|
-
/**
|
|
129820
|
-
* Create a task definition representing the given value.
|
|
129821
|
-
*
|
|
129822
|
-
* @param {object} attrs
|
|
129823
|
-
* @param {BpmnFactory} bpmnFactory
|
|
129824
|
-
*
|
|
129825
|
-
* @return {ModdleElement}
|
|
129834
|
+
/**
|
|
129835
|
+
* Create a task definition representing the given value.
|
|
129836
|
+
*
|
|
129837
|
+
* @param {object} attrs
|
|
129838
|
+
* @param {BpmnFactory} bpmnFactory
|
|
129839
|
+
*
|
|
129840
|
+
* @return {ModdleElement}
|
|
129826
129841
|
*/
|
|
129827
129842
|
function createTaskDefinition(attrs = {}, bpmnFactory) {
|
|
129828
129843
|
return bpmnFactory.create('zeebe:TaskDefinition', attrs);
|
|
129829
129844
|
}
|
|
129830
129845
|
|
|
129831
|
-
/**
|
|
129832
|
-
* Create zeebe:Property from the given binding.
|
|
129833
|
-
*
|
|
129834
|
-
* @param {PropertyBinding} binding
|
|
129835
|
-
* @param {String} value
|
|
129836
|
-
* @param {BpmnFactory} bpmnFactory
|
|
129837
|
-
*
|
|
129838
|
-
* @return {ModdleElement}
|
|
129846
|
+
/**
|
|
129847
|
+
* Create zeebe:Property from the given binding.
|
|
129848
|
+
*
|
|
129849
|
+
* @param {PropertyBinding} binding
|
|
129850
|
+
* @param {String} value
|
|
129851
|
+
* @param {BpmnFactory} bpmnFactory
|
|
129852
|
+
*
|
|
129853
|
+
* @return {ModdleElement}
|
|
129839
129854
|
*/
|
|
129840
129855
|
function createZeebeProperty(binding, value = '', bpmnFactory) {
|
|
129841
129856
|
const {
|
|
@@ -129844,31 +129859,31 @@
|
|
|
129844
129859
|
return bpmnFactory.create('zeebe:Property', {
|
|
129845
129860
|
name,
|
|
129846
129861
|
value
|
|
129847
|
-
});
|
|
129848
|
-
}
|
|
129849
|
-
|
|
129850
|
-
/**
|
|
129851
|
-
* Create a called element representing the given value.
|
|
129852
|
-
*
|
|
129853
|
-
* @param {object} attrs
|
|
129854
|
-
* @param {BpmnFactory} bpmnFactory
|
|
129855
|
-
*
|
|
129856
|
-
* @return {ModdleElement}
|
|
129862
|
+
});
|
|
129863
|
+
}
|
|
129864
|
+
|
|
129865
|
+
/**
|
|
129866
|
+
* Create a called element representing the given value.
|
|
129867
|
+
*
|
|
129868
|
+
* @param {object} attrs
|
|
129869
|
+
* @param {BpmnFactory} bpmnFactory
|
|
129870
|
+
*
|
|
129871
|
+
* @return {ModdleElement}
|
|
129857
129872
|
*/
|
|
129858
129873
|
function createCalledElement(attrs = {}, bpmnFactory) {
|
|
129859
129874
|
return bpmnFactory.create('zeebe:CalledElement', attrs);
|
|
129860
129875
|
}
|
|
129861
129876
|
|
|
129862
|
-
/**
|
|
129863
|
-
* Retrieves whether an element should be updated for a given property.
|
|
129864
|
-
*
|
|
129865
|
-
* That matches once
|
|
129866
|
-
* a) the property value is not empty, or
|
|
129867
|
-
* b) the property is not optional
|
|
129868
|
-
*
|
|
129869
|
-
* @param {String} value
|
|
129870
|
-
* @param {Object} property
|
|
129871
|
-
* @returns {Boolean}
|
|
129877
|
+
/**
|
|
129878
|
+
* Retrieves whether an element should be updated for a given property.
|
|
129879
|
+
*
|
|
129880
|
+
* That matches once
|
|
129881
|
+
* a) the property value is not empty, or
|
|
129882
|
+
* b) the property is not optional
|
|
129883
|
+
*
|
|
129884
|
+
* @param {String} value
|
|
129885
|
+
* @param {Object} property
|
|
129886
|
+
* @returns {Boolean}
|
|
129872
129887
|
*/
|
|
129873
129888
|
function shouldUpdate(value, property) {
|
|
129874
129889
|
const {
|
|
@@ -129877,13 +129892,13 @@
|
|
|
129877
129892
|
return value || !optional;
|
|
129878
129893
|
}
|
|
129879
129894
|
|
|
129880
|
-
/**
|
|
129881
|
-
* Gets or, in case not existent, creates extension element for given element.
|
|
129882
|
-
*
|
|
129883
|
-
* @param {djs.model.Base} element
|
|
129884
|
-
* @param {String} type
|
|
129885
|
-
* @param {BpmnFactory} bpmnFactory
|
|
129886
|
-
* @returns {ModdleElement}
|
|
129895
|
+
/**
|
|
129896
|
+
* Gets or, in case not existent, creates extension element for given element.
|
|
129897
|
+
*
|
|
129898
|
+
* @param {djs.model.Base} element
|
|
129899
|
+
* @param {String} type
|
|
129900
|
+
* @param {BpmnFactory} bpmnFactory
|
|
129901
|
+
* @returns {ModdleElement}
|
|
129887
129902
|
*/
|
|
129888
129903
|
function ensureExtension(element, type, bpmnFactory) {
|
|
129889
129904
|
const businessObject = getBusinessObject$2(element);
|
|
@@ -129941,11 +129956,11 @@
|
|
|
129941
129956
|
});
|
|
129942
129957
|
}
|
|
129943
129958
|
|
|
129944
|
-
/**
|
|
129945
|
-
* Remove message from element and the diagram.
|
|
129946
|
-
*
|
|
129947
|
-
* @param {import('bpmn-js/lib/model/Types').Element} element
|
|
129948
|
-
* @param {import('didi').Injector} injector
|
|
129959
|
+
/**
|
|
129960
|
+
* Remove message from element and the diagram.
|
|
129961
|
+
*
|
|
129962
|
+
* @param {import('bpmn-js/lib/model/Types').Element} element
|
|
129963
|
+
* @param {import('didi').Injector} injector
|
|
129949
129964
|
*/
|
|
129950
129965
|
function removeMessage(element, injector) {
|
|
129951
129966
|
const modeling = injector.get('modeling');
|
|
@@ -129972,9 +129987,9 @@
|
|
|
129972
129987
|
return bo;
|
|
129973
129988
|
}
|
|
129974
129989
|
|
|
129975
|
-
/**
|
|
129976
|
-
* Applies an element template to an element. Sets `zeebe:modelerTemplate` and
|
|
129977
|
-
* `zeebe:modelerTemplateVersion`.
|
|
129990
|
+
/**
|
|
129991
|
+
* Applies an element template to an element. Sets `zeebe:modelerTemplate` and
|
|
129992
|
+
* `zeebe:modelerTemplateVersion`.
|
|
129978
129993
|
*/
|
|
129979
129994
|
let ChangeElementTemplateHandler$1 = class ChangeElementTemplateHandler {
|
|
129980
129995
|
constructor(bpmnFactory, bpmnReplace, commandStack, modeling, injector) {
|
|
@@ -129985,16 +130000,16 @@
|
|
|
129985
130000
|
this._injector = injector;
|
|
129986
130001
|
}
|
|
129987
130002
|
|
|
129988
|
-
/**
|
|
129989
|
-
* Change an element's template and update its properties as specified in `newTemplate`. Specify
|
|
129990
|
-
* `oldTemplate` to update from one template to another. If `newTemplate` isn't specified the
|
|
129991
|
-
* `zeebe:modelerTemplate` and `zeebe:modelerTemplateVersion` properties will be removed from
|
|
129992
|
-
* the element.
|
|
129993
|
-
*
|
|
129994
|
-
* @param {Object} context
|
|
129995
|
-
* @param {Object} context.element
|
|
129996
|
-
* @param {Object} [context.oldTemplate]
|
|
129997
|
-
* @param {Object} [context.newTemplate]
|
|
130003
|
+
/**
|
|
130004
|
+
* Change an element's template and update its properties as specified in `newTemplate`. Specify
|
|
130005
|
+
* `oldTemplate` to update from one template to another. If `newTemplate` isn't specified the
|
|
130006
|
+
* `zeebe:modelerTemplate` and `zeebe:modelerTemplateVersion` properties will be removed from
|
|
130007
|
+
* the element.
|
|
130008
|
+
*
|
|
130009
|
+
* @param {Object} context
|
|
130010
|
+
* @param {Object} context.element
|
|
130011
|
+
* @param {Object} [context.oldTemplate]
|
|
130012
|
+
* @param {Object} [context.newTemplate]
|
|
129998
130013
|
*/
|
|
129999
130014
|
preExecute(context) {
|
|
130000
130015
|
let newTemplate = context.newTemplate,
|
|
@@ -130113,13 +130128,13 @@
|
|
|
130113
130128
|
});
|
|
130114
130129
|
}
|
|
130115
130130
|
|
|
130116
|
-
/**
|
|
130117
|
-
* Update `zeebe:TaskDefinition` properties of specified business object. This
|
|
130118
|
-
* can only exist in `bpmn:ExtensionElements`.
|
|
130119
|
-
*
|
|
130120
|
-
* @param {djs.model.Base} element
|
|
130121
|
-
* @param {Object} oldTemplate
|
|
130122
|
-
* @param {Object} newTemplate
|
|
130131
|
+
/**
|
|
130132
|
+
* Update `zeebe:TaskDefinition` properties of specified business object. This
|
|
130133
|
+
* can only exist in `bpmn:ExtensionElements`.
|
|
130134
|
+
*
|
|
130135
|
+
* @param {djs.model.Base} element
|
|
130136
|
+
* @param {Object} oldTemplate
|
|
130137
|
+
* @param {Object} newTemplate
|
|
130123
130138
|
*/
|
|
130124
130139
|
_updateZeebeTaskDefinition(element, oldTemplate, newTemplate) {
|
|
130125
130140
|
const bpmnFactory = this._bpmnFactory,
|
|
@@ -130199,13 +130214,13 @@
|
|
|
130199
130214
|
});
|
|
130200
130215
|
}
|
|
130201
130216
|
|
|
130202
|
-
/**
|
|
130203
|
-
* Update `zeebe:Input` and `zeebe:Output` properties of specified business
|
|
130204
|
-
* object. Both can only exist in `zeebe:ioMapping` which can exist in `bpmn:ExtensionElements`.
|
|
130205
|
-
*
|
|
130206
|
-
* @param {djs.model.Base} element
|
|
130207
|
-
* @param {Object} oldTemplate
|
|
130208
|
-
* @param {Object} newTemplate
|
|
130217
|
+
/**
|
|
130218
|
+
* Update `zeebe:Input` and `zeebe:Output` properties of specified business
|
|
130219
|
+
* object. Both can only exist in `zeebe:ioMapping` which can exist in `bpmn:ExtensionElements`.
|
|
130220
|
+
*
|
|
130221
|
+
* @param {djs.model.Base} element
|
|
130222
|
+
* @param {Object} oldTemplate
|
|
130223
|
+
* @param {Object} newTemplate
|
|
130209
130224
|
*/
|
|
130210
130225
|
_updateZeebeInputOutputParameterProperties(element, oldTemplate, newTemplate) {
|
|
130211
130226
|
const bpmnFactory = this._bpmnFactory,
|
|
@@ -130326,13 +130341,13 @@
|
|
|
130326
130341
|
}
|
|
130327
130342
|
}
|
|
130328
130343
|
|
|
130329
|
-
/**
|
|
130330
|
-
* Update `zeebe:Header` properties of specified business
|
|
130331
|
-
* object. Those can only exist in `zeebe:taskHeaders` which can exist in `bpmn:ExtensionElements`.
|
|
130332
|
-
*
|
|
130333
|
-
* @param {djs.model.Base} element
|
|
130334
|
-
* @param {Object} oldTemplate
|
|
130335
|
-
* @param {Object} newTemplate
|
|
130344
|
+
/**
|
|
130345
|
+
* Update `zeebe:Header` properties of specified business
|
|
130346
|
+
* object. Those can only exist in `zeebe:taskHeaders` which can exist in `bpmn:ExtensionElements`.
|
|
130347
|
+
*
|
|
130348
|
+
* @param {djs.model.Base} element
|
|
130349
|
+
* @param {Object} oldTemplate
|
|
130350
|
+
* @param {Object} newTemplate
|
|
130336
130351
|
*/
|
|
130337
130352
|
_updateZeebeTaskHeaderProperties(element, oldTemplate, newTemplate) {
|
|
130338
130353
|
const bpmnFactory = this._bpmnFactory,
|
|
@@ -130417,12 +130432,12 @@
|
|
|
130417
130432
|
}
|
|
130418
130433
|
}
|
|
130419
130434
|
|
|
130420
|
-
/**
|
|
130421
|
-
* Update zeebe:Property properties of zeebe:Properties extension element.
|
|
130422
|
-
*
|
|
130423
|
-
* @param {djs.model.Base} element
|
|
130424
|
-
* @param {Object} oldTemplate
|
|
130425
|
-
* @param {Object} newTemplate
|
|
130435
|
+
/**
|
|
130436
|
+
* Update zeebe:Property properties of zeebe:Properties extension element.
|
|
130437
|
+
*
|
|
130438
|
+
* @param {djs.model.Base} element
|
|
130439
|
+
* @param {Object} oldTemplate
|
|
130440
|
+
* @param {Object} newTemplate
|
|
130426
130441
|
*/
|
|
130427
130442
|
_updateZeebePropertyProperties(element, oldTemplate, newTemplate) {
|
|
130428
130443
|
const bpmnFactory = this._bpmnFactory,
|
|
@@ -130519,12 +130534,12 @@
|
|
|
130519
130534
|
}
|
|
130520
130535
|
}
|
|
130521
130536
|
|
|
130522
|
-
/**
|
|
130523
|
-
* Update bpmn:Message properties.
|
|
130524
|
-
*
|
|
130525
|
-
* @param {djs.model.Base} element
|
|
130526
|
-
* @param {Object} oldTemplate
|
|
130527
|
-
* @param {Object} newTemplate
|
|
130537
|
+
/**
|
|
130538
|
+
* Update bpmn:Message properties.
|
|
130539
|
+
*
|
|
130540
|
+
* @param {djs.model.Base} element
|
|
130541
|
+
* @param {Object} oldTemplate
|
|
130542
|
+
* @param {Object} newTemplate
|
|
130528
130543
|
*/
|
|
130529
130544
|
_updateMessageProperties(element, oldTemplate, newTemplate) {
|
|
130530
130545
|
const newProperties = newTemplate.properties.filter(newProperty => {
|
|
@@ -130562,12 +130577,12 @@
|
|
|
130562
130577
|
});
|
|
130563
130578
|
}
|
|
130564
130579
|
|
|
130565
|
-
/**
|
|
130566
|
-
* Update bpmn:Message#zeebe:subscription properties.
|
|
130567
|
-
*
|
|
130568
|
-
* @param {djs.model.Base} element
|
|
130569
|
-
* @param {Object} oldTemplate
|
|
130570
|
-
* @param {Object} newTemplate
|
|
130580
|
+
/**
|
|
130581
|
+
* Update bpmn:Message#zeebe:subscription properties.
|
|
130582
|
+
*
|
|
130583
|
+
* @param {djs.model.Base} element
|
|
130584
|
+
* @param {Object} oldTemplate
|
|
130585
|
+
* @param {Object} newTemplate
|
|
130571
130586
|
*/
|
|
130572
130587
|
_updateMessageZeebeSubscriptionProperties(element, oldTemplate, newTemplate) {
|
|
130573
130588
|
const newProperties = newTemplate.properties.filter(newProperty => {
|
|
@@ -130671,13 +130686,13 @@
|
|
|
130671
130686
|
return bo && bo.get('messageRef');
|
|
130672
130687
|
}
|
|
130673
130688
|
|
|
130674
|
-
/**
|
|
130675
|
-
* Update `zeebe:CalledElement` properties of specified business object. This
|
|
130676
|
-
* can only exist in `bpmn:ExtensionElements`.
|
|
130677
|
-
*
|
|
130678
|
-
* @param {djs.model.Base} element
|
|
130679
|
-
* @param {Object} oldTemplate
|
|
130680
|
-
* @param {Object} newTemplate
|
|
130689
|
+
/**
|
|
130690
|
+
* Update `zeebe:CalledElement` properties of specified business object. This
|
|
130691
|
+
* can only exist in `bpmn:ExtensionElements`.
|
|
130692
|
+
*
|
|
130693
|
+
* @param {djs.model.Base} element
|
|
130694
|
+
* @param {Object} oldTemplate
|
|
130695
|
+
* @param {Object} newTemplate
|
|
130681
130696
|
*/
|
|
130682
130697
|
_updateCalledElement(element, oldTemplate, newTemplate) {
|
|
130683
130698
|
const bpmnFactory = this._bpmnFactory,
|
|
@@ -130755,12 +130770,12 @@
|
|
|
130755
130770
|
});
|
|
130756
130771
|
}
|
|
130757
130772
|
|
|
130758
|
-
/**
|
|
130759
|
-
* Replaces the element with the specified elementType.
|
|
130760
|
-
* Takes into account the eventDefinition for events.
|
|
130761
|
-
*
|
|
130762
|
-
* @param {djs.model.Base} element
|
|
130763
|
-
* @param {Object} newTemplate
|
|
130773
|
+
/**
|
|
130774
|
+
* Replaces the element with the specified elementType.
|
|
130775
|
+
* Takes into account the eventDefinition for events.
|
|
130776
|
+
*
|
|
130777
|
+
* @param {djs.model.Base} element
|
|
130778
|
+
* @param {Object} newTemplate
|
|
130764
130779
|
*/
|
|
130765
130780
|
_updateElementType(element, oldTemplate, newTemplate) {
|
|
130766
130781
|
// determine new task type
|
|
@@ -130896,13 +130911,13 @@
|
|
|
130896
130911
|
|
|
130897
130912
|
// helpers //////////
|
|
130898
130913
|
|
|
130899
|
-
/**
|
|
130900
|
-
* Find business object matching specified property.
|
|
130901
|
-
*
|
|
130902
|
-
* @param {djs.model.Base|ModdleElement} element
|
|
130903
|
-
* @param {Object} property
|
|
130904
|
-
*
|
|
130905
|
-
* @returns {ModdleElement}
|
|
130914
|
+
/**
|
|
130915
|
+
* Find business object matching specified property.
|
|
130916
|
+
*
|
|
130917
|
+
* @param {djs.model.Base|ModdleElement} element
|
|
130918
|
+
* @param {Object} property
|
|
130919
|
+
*
|
|
130920
|
+
* @returns {ModdleElement}
|
|
130906
130921
|
*/
|
|
130907
130922
|
function findBusinessObject(element, property) {
|
|
130908
130923
|
const businessObject = getBusinessObject$2(element);
|
|
@@ -130955,13 +130970,13 @@
|
|
|
130955
130970
|
}
|
|
130956
130971
|
}
|
|
130957
130972
|
|
|
130958
|
-
/**
|
|
130959
|
-
* Find old property matching specified new property.
|
|
130960
|
-
*
|
|
130961
|
-
* @param {Object} oldTemplate
|
|
130962
|
-
* @param {Object} newProperty
|
|
130963
|
-
*
|
|
130964
|
-
* @returns {Object}
|
|
130973
|
+
/**
|
|
130974
|
+
* Find old property matching specified new property.
|
|
130975
|
+
*
|
|
130976
|
+
* @param {Object} oldTemplate
|
|
130977
|
+
* @param {Object} newProperty
|
|
130978
|
+
*
|
|
130979
|
+
* @returns {Object}
|
|
130965
130980
|
*/
|
|
130966
130981
|
function findOldProperty$1(oldTemplate, newProperty) {
|
|
130967
130982
|
if (!oldTemplate) {
|
|
@@ -131060,16 +131075,16 @@
|
|
|
131060
131075
|
}
|
|
131061
131076
|
}
|
|
131062
131077
|
|
|
131063
|
-
/**
|
|
131064
|
-
* Check whether the existing property should be kept. This is the case if
|
|
131065
|
-
* - an old template was set and the value differs from the default
|
|
131066
|
-
* - no template was set but the property was set manually
|
|
131067
|
-
*
|
|
131068
|
-
* @param {djs.model.Base|ModdleElement} element
|
|
131069
|
-
* @param {Object} oldProperty
|
|
131070
|
-
* @param {Object} newProperty
|
|
131071
|
-
*
|
|
131072
|
-
* @returns {boolean}
|
|
131078
|
+
/**
|
|
131079
|
+
* Check whether the existing property should be kept. This is the case if
|
|
131080
|
+
* - an old template was set and the value differs from the default
|
|
131081
|
+
* - no template was set but the property was set manually
|
|
131082
|
+
*
|
|
131083
|
+
* @param {djs.model.Base|ModdleElement} element
|
|
131084
|
+
* @param {Object} oldProperty
|
|
131085
|
+
* @param {Object} newProperty
|
|
131086
|
+
*
|
|
131087
|
+
* @returns {boolean}
|
|
131073
131088
|
*/
|
|
131074
131089
|
function shouldKeepValue(element, oldProperty, newProperty) {
|
|
131075
131090
|
// "Hidden" values are treated as a constant
|
|
@@ -131096,13 +131111,13 @@
|
|
|
131096
131111
|
return !!getPropertyValue$1(element, newProperty);
|
|
131097
131112
|
}
|
|
131098
131113
|
|
|
131099
|
-
/**
|
|
131100
|
-
* Check whether property was changed after being set by template.
|
|
131101
|
-
*
|
|
131102
|
-
* @param {djs.model.Base|ModdleElement} element
|
|
131103
|
-
* @param {Object} oldProperty
|
|
131104
|
-
*
|
|
131105
|
-
* @returns {boolean}
|
|
131114
|
+
/**
|
|
131115
|
+
* Check whether property was changed after being set by template.
|
|
131116
|
+
*
|
|
131117
|
+
* @param {djs.model.Base|ModdleElement} element
|
|
131118
|
+
* @param {Object} oldProperty
|
|
131119
|
+
*
|
|
131120
|
+
* @returns {boolean}
|
|
131106
131121
|
*/
|
|
131107
131122
|
function propertyChanged$1(element, oldProperty) {
|
|
131108
131123
|
const oldPropertyValue = oldProperty.value;
|
|
@@ -131219,12 +131234,12 @@
|
|
|
131219
131234
|
});
|
|
131220
131235
|
}
|
|
131221
131236
|
|
|
131222
|
-
/**
|
|
131223
|
-
* Remove template from a given element.
|
|
131224
|
-
*
|
|
131225
|
-
* @param {djs.model.Base} element
|
|
131226
|
-
*
|
|
131227
|
-
* @return {djs.model.Base} the updated element
|
|
131237
|
+
/**
|
|
131238
|
+
* Remove template from a given element.
|
|
131239
|
+
*
|
|
131240
|
+
* @param {djs.model.Base} element
|
|
131241
|
+
*
|
|
131242
|
+
* @return {djs.model.Base} the updated element
|
|
131228
131243
|
*/
|
|
131229
131244
|
_removeRootTemplate(element) {
|
|
131230
131245
|
var modeling = this._modeling,
|
|
@@ -131287,14 +131302,14 @@
|
|
|
131287
131302
|
}
|
|
131288
131303
|
RemoveElementTemplateHandler.$inject = ['modeling', 'elementFactory', 'elementRegistry', 'canvas', 'bpmnFactory', 'replace', 'commandStack'];
|
|
131289
131304
|
|
|
131290
|
-
/**
|
|
131291
|
-
* A handler that combines and executes multiple commands.
|
|
131292
|
-
*
|
|
131293
|
-
* All updates are bundled on the command stack and executed in one step.
|
|
131294
|
-
* This also makes it possible to revert the changes in one step.
|
|
131295
|
-
*
|
|
131296
|
-
* Example use case: remove the camunda:formKey attribute and in addition
|
|
131297
|
-
* add all form fields needed for the camunda:formData property.
|
|
131305
|
+
/**
|
|
131306
|
+
* A handler that combines and executes multiple commands.
|
|
131307
|
+
*
|
|
131308
|
+
* All updates are bundled on the command stack and executed in one step.
|
|
131309
|
+
* This also makes it possible to revert the changes in one step.
|
|
131310
|
+
*
|
|
131311
|
+
* Example use case: remove the camunda:formKey attribute and in addition
|
|
131312
|
+
* add all form fields needed for the camunda:formData property.
|
|
131298
131313
|
*/
|
|
131299
131314
|
class MultiCommandHandler {
|
|
131300
131315
|
constructor(commandStack) {
|
|
@@ -131713,11 +131728,11 @@
|
|
|
131713
131728
|
throw unknownBindingError$1(element, property);
|
|
131714
131729
|
}
|
|
131715
131730
|
|
|
131716
|
-
/**
|
|
131717
|
-
* Cast a string value to a boolean if possible. Otherwise return the value.
|
|
131718
|
-
* Cannot always cast due to FEEL expressions.
|
|
131719
|
-
*
|
|
131720
|
-
* @param {string|boolean} value
|
|
131731
|
+
/**
|
|
131732
|
+
* Cast a string value to a boolean if possible. Otherwise return the value.
|
|
131733
|
+
* Cannot always cast due to FEEL expressions.
|
|
131734
|
+
*
|
|
131735
|
+
* @param {string|boolean} value
|
|
131721
131736
|
*/
|
|
131722
131737
|
function getBooleanPropertyValue(value) {
|
|
131723
131738
|
switch (value) {
|
|
@@ -132201,8 +132216,8 @@
|
|
|
132201
132216
|
return isString$2(value) && value.trim().startsWith('=');
|
|
132202
132217
|
}
|
|
132203
132218
|
|
|
132204
|
-
/**
|
|
132205
|
-
* Based on conditions, remove properties from the template.
|
|
132219
|
+
/**
|
|
132220
|
+
* Based on conditions, remove properties from the template.
|
|
132206
132221
|
*/
|
|
132207
132222
|
function applyConditions(element, elementTemplate) {
|
|
132208
132223
|
const {
|
|
@@ -132303,11 +132318,11 @@
|
|
|
132303
132318
|
};
|
|
132304
132319
|
}
|
|
132305
132320
|
|
|
132306
|
-
/**
|
|
132307
|
-
* Create an element based on an element template.
|
|
132308
|
-
*
|
|
132309
|
-
* @param {ElementTemplate} template
|
|
132310
|
-
* @returns {djs.model.Base}
|
|
132321
|
+
/**
|
|
132322
|
+
* Create an element based on an element template.
|
|
132323
|
+
*
|
|
132324
|
+
* @param {ElementTemplate} template
|
|
132325
|
+
* @returns {djs.model.Base}
|
|
132311
132326
|
*/
|
|
132312
132327
|
create(template) {
|
|
132313
132328
|
const {
|
|
@@ -132379,24 +132394,24 @@
|
|
|
132379
132394
|
businessObject.set('zeebe:modelerTemplateIcon', contents);
|
|
132380
132395
|
}
|
|
132381
132396
|
|
|
132382
|
-
/**
|
|
132383
|
-
* Apply properties to a given element.
|
|
132384
|
-
*
|
|
132385
|
-
* @param {djs.model.Base} element
|
|
132386
|
-
* @param {Array<Object>} properties
|
|
132397
|
+
/**
|
|
132398
|
+
* Apply properties to a given element.
|
|
132399
|
+
*
|
|
132400
|
+
* @param {djs.model.Base} element
|
|
132401
|
+
* @param {Array<Object>} properties
|
|
132387
132402
|
*/
|
|
132388
132403
|
_applyProperties(element, properties) {
|
|
132389
132404
|
const processedProperties = [];
|
|
132390
132405
|
properties.forEach(property => this._applyProperty(element, property, properties, processedProperties));
|
|
132391
132406
|
}
|
|
132392
132407
|
|
|
132393
|
-
/**
|
|
132394
|
-
* Apply a property and its parent properties to an element based on conditions.
|
|
132395
|
-
*
|
|
132396
|
-
* @param {djs.model.Base} element
|
|
132397
|
-
* @param {Object} property
|
|
132398
|
-
* @param {Array<Object>} properties
|
|
132399
|
-
* @param {Array<Object>} processedProperties
|
|
132408
|
+
/**
|
|
132409
|
+
* Apply a property and its parent properties to an element based on conditions.
|
|
132410
|
+
*
|
|
132411
|
+
* @param {djs.model.Base} element
|
|
132412
|
+
* @param {Object} property
|
|
132413
|
+
* @param {Array<Object>} properties
|
|
132414
|
+
* @param {Array<Object>} processedProperties
|
|
132400
132415
|
*/
|
|
132401
132416
|
_applyProperty(element, property, properties, processedProperties) {
|
|
132402
132417
|
// skip if already processed
|
|
@@ -132415,10 +132430,10 @@
|
|
|
132415
132430
|
processedProperties.push(property);
|
|
132416
132431
|
}
|
|
132417
132432
|
|
|
132418
|
-
/**
|
|
132419
|
-
* Bind property to element.
|
|
132420
|
-
* @param {Object} property
|
|
132421
|
-
* @param {djs.Model.Base} element
|
|
132433
|
+
/**
|
|
132434
|
+
* Bind property to element.
|
|
132435
|
+
* @param {Object} property
|
|
132436
|
+
* @param {djs.Model.Base} element
|
|
132422
132437
|
*/
|
|
132423
132438
|
_bindProperty(property, element) {
|
|
132424
132439
|
const {
|
|
@@ -132468,17 +132483,17 @@
|
|
|
132468
132483
|
templateElementFactory: ['type', TemplateElementFactory]
|
|
132469
132484
|
};
|
|
132470
132485
|
|
|
132471
|
-
/**
|
|
132472
|
-
* Checks the conditions of an element template and sets/resets the
|
|
132473
|
-
* corresponding properties on the element.
|
|
132486
|
+
/**
|
|
132487
|
+
* Checks the conditions of an element template and sets/resets the
|
|
132488
|
+
* corresponding properties on the element.
|
|
132474
132489
|
*/
|
|
132475
132490
|
class ConditionalBehavior extends CommandInterceptor$1 {
|
|
132476
|
-
/**
|
|
132477
|
-
* @param {import('diagram-js/lib/core/EventBus').default} eventBus
|
|
132478
|
-
* @param {import('../ElementTemplates').default} elementTemplates
|
|
132479
|
-
* @param {import('diagram-js/lib/command/CommandStack').default} commandStack
|
|
132480
|
-
* @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
|
|
132481
|
-
* @param {import('didi').Injector} injector
|
|
132491
|
+
/**
|
|
132492
|
+
* @param {import('diagram-js/lib/core/EventBus').default} eventBus
|
|
132493
|
+
* @param {import('../ElementTemplates').default} elementTemplates
|
|
132494
|
+
* @param {import('diagram-js/lib/command/CommandStack').default} commandStack
|
|
132495
|
+
* @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
|
|
132496
|
+
* @param {import('didi').Injector} injector
|
|
132482
132497
|
*/
|
|
132483
132498
|
constructor(eventBus, elementTemplates, commandStack, bpmnFactory, injector) {
|
|
132484
132499
|
super(eventBus);
|
|
@@ -132607,8 +132622,8 @@
|
|
|
132607
132622
|
return equals(binding1, binding2);
|
|
132608
132623
|
}
|
|
132609
132624
|
|
|
132610
|
-
/**
|
|
132611
|
-
* Convert deprecated binding type to new type.
|
|
132625
|
+
/**
|
|
132626
|
+
* Convert deprecated binding type to new type.
|
|
132612
132627
|
*/
|
|
132613
132628
|
function normalizeBinding(binding) {
|
|
132614
132629
|
if (binding.type === ZEEBE_TASK_DEFINITION_TYPE_TYPE) {
|
|
@@ -132624,25 +132639,25 @@
|
|
|
132624
132639
|
return JSON.stringify(a, normalizeReplacer$1) === JSON.stringify(b, normalizeReplacer$1);
|
|
132625
132640
|
}
|
|
132626
132641
|
|
|
132627
|
-
/**
|
|
132628
|
-
* Checks if the event only updates "meta" properties:
|
|
132629
|
-
*
|
|
132630
|
-
* * `zeebe:modelerTemplate`
|
|
132631
|
-
* * `zeebe:modelerTemplateVersion`
|
|
132632
|
-
*
|
|
132633
|
-
* @param {string} event
|
|
132634
|
-
* @param {any} context
|
|
132635
|
-
*
|
|
132636
|
-
* @return {boolean}
|
|
132642
|
+
/**
|
|
132643
|
+
* Checks if the event only updates "meta" properties:
|
|
132644
|
+
*
|
|
132645
|
+
* * `zeebe:modelerTemplate`
|
|
132646
|
+
* * `zeebe:modelerTemplateVersion`
|
|
132647
|
+
*
|
|
132648
|
+
* @param {string} event
|
|
132649
|
+
* @param {any} context
|
|
132650
|
+
*
|
|
132651
|
+
* @return {boolean}
|
|
132637
132652
|
*/
|
|
132638
132653
|
function isMetaUpdate(event, context) {
|
|
132639
132654
|
return event === 'element.updateProperties' && Object.keys(context.properties).every(key => ['zeebe:modelerTemplate', 'zeebe:modelerTemplateVersion'].includes(key));
|
|
132640
132655
|
}
|
|
132641
132656
|
|
|
132642
|
-
/**
|
|
132643
|
-
* This Behavior checks if the new element's type is in
|
|
132644
|
-
* the list of elements the template applies to and unlinks
|
|
132645
|
-
* it if not.
|
|
132657
|
+
/**
|
|
132658
|
+
* This Behavior checks if the new element's type is in
|
|
132659
|
+
* the list of elements the template applies to and unlinks
|
|
132660
|
+
* it if not.
|
|
132646
132661
|
*/
|
|
132647
132662
|
let ReplaceBehavior$1 = class ReplaceBehavior extends CommandInterceptor$1 {
|
|
132648
132663
|
constructor(elementTemplates, injector) {
|
|
@@ -132698,9 +132713,9 @@
|
|
|
132698
132713
|
return !is$5(eventDefinitions[0], eventDefinition);
|
|
132699
132714
|
}
|
|
132700
132715
|
|
|
132701
|
-
/**
|
|
132702
|
-
* Restores the original order of the template properties
|
|
132703
|
-
* on the moddle element.
|
|
132716
|
+
/**
|
|
132717
|
+
* Restores the original order of the template properties
|
|
132718
|
+
* on the moddle element.
|
|
132704
132719
|
*/
|
|
132705
132720
|
class UpdateTemplatePropertiesOrder extends CommandInterceptor$1 {
|
|
132706
132721
|
constructor(eventBus, elementTemplates, commandStack, bpmnFactory) {
|
|
@@ -132855,8 +132870,8 @@
|
|
|
132855
132870
|
});
|
|
132856
132871
|
}
|
|
132857
132872
|
|
|
132858
|
-
/**
|
|
132859
|
-
* Handles referenced elements.
|
|
132873
|
+
/**
|
|
132874
|
+
* Handles referenced elements.
|
|
132860
132875
|
*/
|
|
132861
132876
|
class ReferencedElementBehavior extends CommandInterceptor$1 {
|
|
132862
132877
|
constructor(eventBus, elementTemplates, modeling, injector, moddleCopy, bpmnFactory) {
|
|
@@ -132884,8 +132899,8 @@
|
|
|
132884
132899
|
});
|
|
132885
132900
|
}
|
|
132886
132901
|
|
|
132887
|
-
/**
|
|
132888
|
-
* Unlink referenced element when template is unlinked.
|
|
132902
|
+
/**
|
|
132903
|
+
* Unlink referenced element when template is unlinked.
|
|
132889
132904
|
*/
|
|
132890
132905
|
_handlePropertiesUpdate(context) {
|
|
132891
132906
|
const {
|
|
@@ -132907,9 +132922,9 @@
|
|
|
132907
132922
|
}
|
|
132908
132923
|
}
|
|
132909
132924
|
|
|
132910
|
-
/**
|
|
132911
|
-
* Remove referenced element when template is removed.
|
|
132912
|
-
* Keep referenced element when template is replaced.
|
|
132925
|
+
/**
|
|
132926
|
+
* Remove referenced element when template is removed.
|
|
132927
|
+
* Keep referenced element when template is replaced.
|
|
132913
132928
|
*/
|
|
132914
132929
|
_handleReplacement(context) {
|
|
132915
132930
|
const {
|
|
@@ -132971,8 +132986,8 @@
|
|
|
132971
132986
|
return element.type === 'label';
|
|
132972
132987
|
}
|
|
132973
132988
|
|
|
132974
|
-
/**
|
|
132975
|
-
* Handles generated value properties.
|
|
132989
|
+
/**
|
|
132990
|
+
* Handles generated value properties.
|
|
132976
132991
|
*/
|
|
132977
132992
|
class GeneratedValueBehavior extends CommandInterceptor$1 {
|
|
132978
132993
|
constructor(eventBus, elementTemplates, modeling, commandStack, bpmnFactory) {
|
|
@@ -132999,14 +133014,14 @@
|
|
|
132999
133014
|
}
|
|
133000
133015
|
GeneratedValueBehavior.$inject = ['eventBus', 'elementTemplates', 'modeling', 'commandStack', 'bpmnFactory'];
|
|
133001
133016
|
|
|
133002
|
-
/**
|
|
133003
|
-
* Enforces no variable propagation for templated call activities.
|
|
133017
|
+
/**
|
|
133018
|
+
* Enforces no variable propagation for templated call activities.
|
|
133004
133019
|
*/
|
|
133005
133020
|
class CalledElementBehavior extends CommandInterceptor$1 {
|
|
133006
|
-
/**
|
|
133007
|
-
* @param {*} eventBus
|
|
133008
|
-
* @param {*} modeling
|
|
133009
|
-
* @param {import('../ElementTemplates').default} elementTemplates
|
|
133021
|
+
/**
|
|
133022
|
+
* @param {*} eventBus
|
|
133023
|
+
* @param {*} modeling
|
|
133024
|
+
* @param {import('../ElementTemplates').default} elementTemplates
|
|
133010
133025
|
*/
|
|
133011
133026
|
constructor(eventBus, modeling, elementTemplates) {
|
|
133012
133027
|
super(eventBus);
|
|
@@ -133074,11 +133089,11 @@
|
|
|
133074
133089
|
|
|
133075
133090
|
// helper ///////////
|
|
133076
133091
|
|
|
133077
|
-
/**
|
|
133078
|
-
* Example: 01.01.1900 01:01
|
|
133079
|
-
*
|
|
133080
|
-
* @param {number} timestamp
|
|
133081
|
-
* @returns {string}
|
|
133092
|
+
/**
|
|
133093
|
+
* Example: 01.01.1900 01:01
|
|
133094
|
+
*
|
|
133095
|
+
* @param {number} timestamp
|
|
133096
|
+
* @returns {string}
|
|
133082
133097
|
*/
|
|
133083
133098
|
function toDateString(timestamp) {
|
|
133084
133099
|
const date = new Date(timestamp);
|
|
@@ -133166,13 +133181,13 @@
|
|
|
133166
133181
|
});
|
|
133167
133182
|
}
|
|
133168
133183
|
|
|
133169
|
-
/**
|
|
133170
|
-
*
|
|
133171
|
-
* @param {object} props
|
|
133172
|
-
* @param {object} props.element
|
|
133173
|
-
* @param {function} props.getTemplateId
|
|
133174
|
-
* @param {function} props.unlinkTemplate
|
|
133175
|
-
* @param {function} props.updateTemplate
|
|
133184
|
+
/**
|
|
133185
|
+
*
|
|
133186
|
+
* @param {object} props
|
|
133187
|
+
* @param {object} props.element
|
|
133188
|
+
* @param {function} props.getTemplateId
|
|
133189
|
+
* @param {function} props.unlinkTemplate
|
|
133190
|
+
* @param {function} props.updateTemplate
|
|
133176
133191
|
*/
|
|
133177
133192
|
function TemplateGroupButtons({
|
|
133178
133193
|
element,
|
|
@@ -133292,13 +133307,13 @@
|
|
|
133292
133307
|
});
|
|
133293
133308
|
}
|
|
133294
133309
|
|
|
133295
|
-
/**
|
|
133296
|
-
*
|
|
133297
|
-
* @param {object} props
|
|
133298
|
-
* @param {object} element
|
|
133299
|
-
* @param {UnknownTemplate} templateState
|
|
133300
|
-
* @param {function} unlinkTemplate
|
|
133301
|
-
* @param {function} updateTemplate
|
|
133310
|
+
/**
|
|
133311
|
+
*
|
|
133312
|
+
* @param {object} props
|
|
133313
|
+
* @param {object} element
|
|
133314
|
+
* @param {UnknownTemplate} templateState
|
|
133315
|
+
* @param {function} unlinkTemplate
|
|
133316
|
+
* @param {function} updateTemplate
|
|
133302
133317
|
*/
|
|
133303
133318
|
function OutdatedTemplate({
|
|
133304
133319
|
element,
|
|
@@ -133461,13 +133476,13 @@
|
|
|
133461
133476
|
|
|
133462
133477
|
// helper //////
|
|
133463
133478
|
|
|
133464
|
-
/**
|
|
133465
|
-
* Determine template state in the current element.
|
|
133466
|
-
*
|
|
133467
|
-
* @param {object} elementTemplates
|
|
133468
|
-
* @param {object} element
|
|
133469
|
-
* @param {function} getTemplateId
|
|
133470
|
-
* @returns {TemplateState}
|
|
133479
|
+
/**
|
|
133480
|
+
* Determine template state in the current element.
|
|
133481
|
+
*
|
|
133482
|
+
* @param {object} elementTemplates
|
|
133483
|
+
* @param {object} element
|
|
133484
|
+
* @param {function} getTemplateId
|
|
133485
|
+
* @returns {TemplateState}
|
|
133471
133486
|
*/
|
|
133472
133487
|
function getTemplateState(elementTemplates, element, getTemplateId) {
|
|
133473
133488
|
const templateId = getTemplateId(element),
|
|
@@ -133716,9 +133731,9 @@
|
|
|
133716
133731
|
}, i;
|
|
133717
133732
|
})(b$1);
|
|
133718
133733
|
|
|
133719
|
-
/**
|
|
133720
|
-
* Copied from existing form-js#Sanitizer
|
|
133721
|
-
* cf. https://github.com/bpmn-io/form-js/blob/master/packages/form-js-viewer/src/render/components/Sanitizer.js
|
|
133734
|
+
/**
|
|
133735
|
+
* Copied from existing form-js#Sanitizer
|
|
133736
|
+
* cf. https://github.com/bpmn-io/form-js/blob/master/packages/form-js-viewer/src/render/components/Sanitizer.js
|
|
133722
133737
|
*/
|
|
133723
133738
|
|
|
133724
133739
|
const NODE_TYPE_TEXT$1 = 3,
|
|
@@ -133730,11 +133745,11 @@
|
|
|
133730
133745
|
|
|
133731
133746
|
const FORM_ELEMENT$1 = document.createElement('form');
|
|
133732
133747
|
|
|
133733
|
-
/**
|
|
133734
|
-
* Sanitize a HTML string and return the cleaned, safe version.
|
|
133735
|
-
*
|
|
133736
|
-
* @param {string} html
|
|
133737
|
-
* @return {string}
|
|
133748
|
+
/**
|
|
133749
|
+
* Sanitize a HTML string and return the cleaned, safe version.
|
|
133750
|
+
*
|
|
133751
|
+
* @param {string} html
|
|
133752
|
+
* @return {string}
|
|
133738
133753
|
*/
|
|
133739
133754
|
function sanitizeHTML$1(html) {
|
|
133740
133755
|
const doc = new DOMParser().parseFromString(`<!DOCTYPE html>\n<html><body><div>${html}`, 'text/html');
|
|
@@ -133750,15 +133765,15 @@
|
|
|
133750
133765
|
}
|
|
133751
133766
|
}
|
|
133752
133767
|
|
|
133753
|
-
/**
|
|
133754
|
-
* Recursively sanitize a HTML node, potentially
|
|
133755
|
-
* removing it, its children or attributes.
|
|
133756
|
-
*
|
|
133757
|
-
* Inspired by https://github.com/developit/snarkdown/issues/70
|
|
133758
|
-
* and https://github.com/cure53/DOMPurify. Simplified
|
|
133759
|
-
* for our use-case.
|
|
133760
|
-
*
|
|
133761
|
-
* @param {Element} node
|
|
133768
|
+
/**
|
|
133769
|
+
* Recursively sanitize a HTML node, potentially
|
|
133770
|
+
* removing it, its children or attributes.
|
|
133771
|
+
*
|
|
133772
|
+
* Inspired by https://github.com/developit/snarkdown/issues/70
|
|
133773
|
+
* and https://github.com/cure53/DOMPurify. Simplified
|
|
133774
|
+
* for our use-case.
|
|
133775
|
+
*
|
|
133776
|
+
* @param {Element} node
|
|
133762
133777
|
*/
|
|
133763
133778
|
function sanitizeNode$1(node) {
|
|
133764
133779
|
// allow text nodes
|
|
@@ -133802,13 +133817,13 @@
|
|
|
133802
133817
|
}
|
|
133803
133818
|
}
|
|
133804
133819
|
|
|
133805
|
-
/**
|
|
133806
|
-
* Validates attributes for validity.
|
|
133807
|
-
*
|
|
133808
|
-
* @param {string} lcTag
|
|
133809
|
-
* @param {string} lcName
|
|
133810
|
-
* @param {string} value
|
|
133811
|
-
* @return {boolean}
|
|
133820
|
+
/**
|
|
133821
|
+
* Validates attributes for validity.
|
|
133822
|
+
*
|
|
133823
|
+
* @param {string} lcTag
|
|
133824
|
+
* @param {string} lcName
|
|
133825
|
+
* @param {string} value
|
|
133826
|
+
* @return {boolean}
|
|
133812
133827
|
*/
|
|
133813
133828
|
function isValidAttribute$1(lcTag, lcName, value) {
|
|
133814
133829
|
// disallow most attributes based on whitelist
|
|
@@ -133863,7 +133878,7 @@
|
|
|
133863
133878
|
}
|
|
133864
133879
|
return fromFeelExpression(directGet(), property.type);
|
|
133865
133880
|
}, [directGet, property, isFeelEnabled]);
|
|
133866
|
-
if (!
|
|
133881
|
+
if (!shouldCastToFeel(property)) {
|
|
133867
133882
|
return [directGet, directSet];
|
|
133868
133883
|
}
|
|
133869
133884
|
return [get, set];
|
|
@@ -133884,7 +133899,7 @@
|
|
|
133884
133899
|
return value;
|
|
133885
133900
|
};
|
|
133886
133901
|
const feelEnabled = (property, value) => {
|
|
133887
|
-
if (!
|
|
133902
|
+
if (!shouldCastToFeel(property)) {
|
|
133888
133903
|
return true;
|
|
133889
133904
|
}
|
|
133890
133905
|
if (property.type === 'Boolean') {
|
|
@@ -134272,7 +134287,7 @@
|
|
|
134272
134287
|
translate = useService$1('translate');
|
|
134273
134288
|
const [getValue, setValue] = usePropertyAccessors(bpmnFactory, commandStack, element, property);
|
|
134274
134289
|
const validate = T$2(value => {
|
|
134275
|
-
if (
|
|
134290
|
+
if (shouldCastToFeel(property) && isNumber$3(value) && value.toString().includes('e')) {
|
|
134276
134291
|
return translate('Scientific notation is disallowed in FEEL.');
|
|
134277
134292
|
}
|
|
134278
134293
|
const defaultValidator = propertyValidator$1(translate, property);
|
|
@@ -134504,12 +134519,12 @@
|
|
|
134504
134519
|
const EMPTY_OPTION = '';
|
|
134505
134520
|
const CREATE_NEW_OPTION = 'create-new';
|
|
134506
134521
|
|
|
134507
|
-
/**
|
|
134508
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
134522
|
+
/**
|
|
134523
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
134509
134524
|
*/
|
|
134510
134525
|
|
|
134511
|
-
/**
|
|
134512
|
-
* @returns {Array<Entry>} entries
|
|
134526
|
+
/**
|
|
134527
|
+
* @returns {Array<Entry>} entries
|
|
134513
134528
|
*/
|
|
134514
134529
|
function MessageProps(props) {
|
|
134515
134530
|
const {
|
|
@@ -134677,11 +134692,11 @@
|
|
|
134677
134692
|
return oldEntries.map(oldEntry => newEntries.find(newEntry => newEntry.id === oldEntry.id) || oldEntry);
|
|
134678
134693
|
}
|
|
134679
134694
|
|
|
134680
|
-
/**
|
|
134681
|
-
*
|
|
134682
|
-
* @param {string|string[]} idOrIds
|
|
134683
|
-
* @param {Array<{ id: string }} groups
|
|
134684
|
-
* @param {Array<{ id: string }>} groupsToAdd
|
|
134695
|
+
/**
|
|
134696
|
+
*
|
|
134697
|
+
* @param {string|string[]} idOrIds
|
|
134698
|
+
* @param {Array<{ id: string }} groups
|
|
134699
|
+
* @param {Array<{ id: string }>} groupsToAdd
|
|
134685
134700
|
*/
|
|
134686
134701
|
function addGroupsAfter$1(idOrIds, groups, groupsToAdd) {
|
|
134687
134702
|
let ids = idOrIds;
|
|
@@ -134719,10 +134734,10 @@
|
|
|
134719
134734
|
__depends__: [coreModule$1, propertiesProviderModule$1]
|
|
134720
134735
|
};
|
|
134721
134736
|
|
|
134722
|
-
/**
|
|
134723
|
-
* This Behavior checks if the new element's type is in
|
|
134724
|
-
* the list of elements the template applies to and unlinks
|
|
134725
|
-
* it if not.
|
|
134737
|
+
/**
|
|
134738
|
+
* This Behavior checks if the new element's type is in
|
|
134739
|
+
* the list of elements the template applies to and unlinks
|
|
134740
|
+
* it if not.
|
|
134726
134741
|
*/
|
|
134727
134742
|
class ReplaceBehavior extends CommandInterceptor$1 {
|
|
134728
134743
|
constructor(elementTemplates, injector) {
|